/* ============================================================================
   theme.css — PER-APP palette + brand overrides (the only design file a new
   site rewrites). tokens.css supplies structure; this supplies colour and the
   handful of brand-distinguishing knobs. Light + dark from the brand tokens.

   Brand: Counthall 2.0.0, the invoice desk (app direction A, 2026-10-05; site
   direction 2026-10-06). The colour source is design/tokens/counthall.tokens.json,
   mirrored into tokens-generated.css: ivory paper (#F6F2EB) as the ground, flat
   white cards, ink (#202D45) for text and the primary action, the 12% ink
   hairline, copper only in the mark, tally red (#C8492B) only as the fifth
   stroke of the tally glyph. In the dark the paper is #121826, the cards #1C2435,
   the text ivory and the primary action light copper with an ink label.

   tokens-generated.css carries the dark token values under [data-theme="dark"]
   only; the prefers-color-scheme block below repeats them (same values) so a
   page that follows the OS gets the same palette.

   --verified is the SEMANTIC green (a clear check, paid), never a brand colour.
   ============================================================================ */

/* ---- light ---- */
:root,
[data-theme="light"] {
  --bg:#f6f2eb; --bg-2:#f2ede4; --surface:#ffffff;
  --text:#202d45; --text-soft:#5a6273; --soft:#5a6273;
  --accent:#202d45; --accent-2:#c57650; --accent-ink:#f6f2eb;
  --accent-text:#202d45;                 /* links are ink and underlined; 13:1 on ivory */
  --line:#202d451f;                      /* the 12% ink hairline (rule-line token) */
  --rule-strong:rgba(32,45,69,.3);
  --control-edge:#7f8695;                /* secondary button edge, 3.4:1 on ivory */
  --action-hover:#2c3c5c;
  --control-hover:#f2ede4;               /* secondary button hover: a step off the white card */
  --mark-front:#c57650;
  --verified:#1b7a52; --caution:#b8862f; --caution-text:#8a6014;
  --halo:none;
}

/* ---- dark ---- */
[data-theme="dark"] {
  --bg:#121826; --bg-2:#182032; --surface:#1c2435;
  --text:#ede8df; --text-soft:#a9afbc; --soft:#a9afbc;
  --accent:#d9906b; --accent-2:#e8a784; --accent-ink:#202d45;
  --accent-text:#ede8df;
  --line:#ede8df24;
  --rule-strong:rgba(237,232,223,.32);
  --control-edge:#767a83;
  --action-hover:#e4a07c;
  --control-hover:#263045;               /* a step lighter than the #1c2435 card */
  --mark-front:#d9906b;
  --verified:#3fb585; --caution:#d9a441; --caution-text:#e3b45f;
  --chip-bg:#222b3e;
  --halo:none;
  color-scheme:dark;
}

/* Follow the OS when the document hasn't pinned a theme via [data-theme]. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg:#121826; --bg-2:#182032; --surface:#1c2435;
    --text:#ede8df; --text-soft:#a9afbc; --soft:#a9afbc;
    --accent:#d9906b; --accent-2:#e8a784; --accent-ink:#202d45;
    --accent-text:#ede8df;
    --line:#ede8df24;
    --rule-strong:rgba(237,232,223,.32);
    --control-edge:#767a83;
    --action-hover:#e4a07c;
    --control-hover:#263045;
    --mark-front:#d9906b;
    --verified:#3fb585; --caution:#d9a441; --caution-text:#e3b45f;
    --chip-bg:#222b3e;
    --halo:none;
    /* the token mirror's dark values, for a page that follows the OS */
    --accent-color:#d9906b; --blush:#1c2435; --card:#1c2435; --header:#121826;
    --ink:#ede8df; --on-header:#ede8df; --paper:#121826; --rule-line:#ede8df24;
    --tally:#e2664a; --on-accent:#202d45; --success:#3fb585;
    color-scheme:dark;
  }
}

/* ============================================================================
   The invoice desk. Every rule below is scoped to [data-brand="counthall"] or to
   a Counthall-only class (.ch-*), so the shared site.css keeps serving the other
   sites unchanged. One measure, one gutter, hairlines instead of shadows.
   ============================================================================ */
[data-brand="counthall"]{ --ch-max:75rem; --ch-gutter:clamp(1.25rem,4vw,2.5rem); --radius:12px; --radius-sm:12px;
  --display-tracking:-.02em; background:var(--paper); color:var(--ink); font-size:1.0625rem; }
[data-brand="counthall"] main{ max-width:var(--ch-max); padding-inline:var(--ch-gutter); box-sizing:content-box; }
[data-brand="counthall"] main:has(.ch-hero){ max-width:none; padding-inline:0; }
[data-brand="counthall"] :is(h1,h2,h3){ font-weight:500; color:var(--ink); }
[data-brand="counthall"] :is(a,button,summary,input):focus-visible{ outline:2px solid var(--ink); outline-offset:3px; }
[data-brand="counthall"] .eyebrow{ display:block; margin:0; font-size:.9375rem; font-weight:400; letter-spacing:0;
  text-transform:none; color:var(--text-soft); }
[data-brand="counthall"] .eyebrow::before{ content:none; }

/* ---- the mark: the paired sheets of marketing/icon.svg; a light rear sheet in the dark ---- */
.ch-mark{ display:block; width:auto; height:30px; flex:none; }
.ch-mark-rear{ fill:var(--ink); }
.ch-mark-front{ fill:var(--mark-front); }

/* ---- header: paper, ink wordmark, one full-width hairline ---- */
[data-brand="counthall"] header.nav{ position:relative; z-index:5; max-width:none; min-height:4.25rem; padding-block:.75rem;
  padding-inline:max(var(--ch-gutter), calc((100% - var(--ch-max)) / 2)); background:var(--paper);
  border-bottom:1px solid var(--line); }
[data-brand="counthall"] header.nav .brand{ gap:.65rem; font-size:1.1875rem; font-weight:500; letter-spacing:-.02em; color:var(--ink); }
[data-brand="counthall"] header.nav nav:not([data-language-picker]){ gap:clamp(1rem,2.6vw,2rem); font-size:.9375rem; font-weight:400; }
[data-brand="counthall"] header.nav nav:not([data-language-picker]) a{ color:var(--ink); padding-block:.5rem; }
[data-brand="counthall"] header.nav nav:not([data-language-picker]) a:hover{ text-decoration:underline;
  text-underline-offset:4px; text-decoration-thickness:1px; }
[data-brand="counthall"] [data-language-picker] .language-trigger{ border-color:var(--rule-strong); background:var(--card); }

/* ---- buttons: ink primary, a white secondary with a quiet edge; 10px corners, no glow ---- */
[data-brand="counthall"] .btn, [data-brand="counthall"] .btn.primary{ min-height:3.125rem; padding:0 1.375rem; border-radius:10px;
  justify-content:center; font:500 1rem/1.2 var(--sans); white-space:nowrap; box-shadow:none;
  transition:background-color var(--dur-1) ease, border-color var(--dur-1) ease; }
[data-brand="counthall"] .btn.primary{ background:var(--accent); color:var(--accent-ink); border:1px solid var(--accent); }
[data-brand="counthall"] .btn.primary:hover{ background:var(--action-hover); border-color:var(--action-hover); transform:none; box-shadow:none; }
[data-brand="counthall"] .btn.primary + .btn.primary, [data-brand="counthall"] .btn:not(.primary){
  background:var(--card); color:var(--ink); border:1px solid var(--control-edge); }
[data-brand="counthall"] .btn.primary + .btn.primary:hover, [data-brand="counthall"] .btn:not(.primary):hover{
  background:var(--control-hover); color:var(--ink); border-color:var(--control-edge); }
[data-brand="counthall"] .btn:active{ transform:translateY(1px); }
.wd-actions{ margin-top:2rem; }
.wd-actions .launch-live, .wd-actions .launch-prelaunch{ display:flex; gap:.75rem; flex-wrap:wrap; align-items:center; }
[data-brand="counthall"] .app-langs{ margin-top:1.25rem; gap:.15rem; }
[data-brand="counthall"] .app-langs-lead{ font-size:.875rem; font-weight:500; color:var(--ink); }
[data-brand="counthall"] .app-langs-note{ font-size:.875rem; }

/* ---- app screens: the shared, calibrated device frame (site.css) straight on the paper, sized
   per slot with --dv-scale; no sheet or coloured field behind a screen (owner, 2026-10-06) ---- */
.ch-phone{ display:grid; place-items:center; padding:clamp(1.5rem,3vw,2.25rem) 1rem; }
.ch-phone .device, .ch-devices .device, .ch-shot .device{ --rot:0deg; }
.ch-phone-archive .device{ --dv-scale:.56; }
.ch-phone-invoice{ justify-items:start; padding:1.25rem 0 0; }
.ch-phone-invoice .device{ --dv-scale:.36; }

/* ---- hero: the copy, then an iPad with an iPhone in front of it ---- */
.ch-in, .ch-ledger-in, .ch-archive-in{ max-width:var(--ch-max); margin-inline:auto; padding-inline:var(--ch-gutter); box-sizing:content-box; }
.ch-in{ display:grid; grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr); gap:clamp(2.5rem,6vw,5.5rem); align-items:center;
  padding-block:clamp(2.5rem,5vw,4.5rem) clamp(2.5rem,4vw,3.5rem); }
.ch-copy .ch-verbs{ display:flex; flex-wrap:wrap; gap:.25rem 1.1rem; margin:1.75rem 0 0; font-size:1.0625rem; font-weight:500;
  letter-spacing:-.01em; color:var(--ink); }
.ch-copy h1{ margin:.6rem 0 0; font-size:clamp(2.4rem,4.4vw,3.9rem); line-height:1.04; letter-spacing:-.03em; max-width:16ch;
  text-wrap:balance; hyphens:manual; }
.ch-copy .wd-lede{ margin:1.4rem 0 0; font-size:clamp(1.0625rem,1.35vw,1.1875rem); line-height:1.55; max-width:33em; color:var(--ink); }
.ch-copy .note{ margin-top:1rem; font-size:.9375rem; color:var(--text-soft); max-width:40em; }
.ch-copy .launch-prelaunch span{ color:var(--text-soft); }

.ch-devices{ --ch-tab:.72; --ch-hand:.46; --ch-tuck:6.75rem; position:relative; justify-self:end;
  padding-bottom:3rem; }
.ch-tablet{ display:flex; justify-content:flex-end; padding-left:var(--ch-tuck); }
.ch-tablet .device{ --dv-scale:var(--ch-tab); }
.ch-handset{ position:absolute; left:0; bottom:0; }
.ch-handset .device{ --dv-scale:var(--ch-hand); }

/* ---- formats: one quiet row between two hairlines, like the format line on an invoice ---- */
.ch-formats{ border-block:1px solid var(--line); }
.ch-formats-in{ max-width:var(--ch-max); margin-inline:auto; padding:1.1rem var(--ch-gutter); box-sizing:content-box;
  display:flex; flex-wrap:wrap; column-gap:clamp(1.25rem,3.2vw,2.75rem); row-gap:.4rem;
  font-size:1.0625rem; font-weight:500; letter-spacing:-.01em; color:var(--ink); }

/* ---- the tasks: one card per job, its lead line first, the related features under a hairline;
   the tier word stands where the existing copy prices the feature ---- */
.ch-tasks{ padding-block:clamp(3rem,6vw,5rem) clamp(1.5rem,3vw,2.5rem); }
.ch-tasks-in, .ch-gallery-in{ max-width:var(--ch-max); margin-inline:auto; padding-inline:var(--ch-gutter); box-sizing:content-box; }
.ch-tasks-in{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:clamp(1rem,1.8vw,1.5rem); }
.ch-task{ padding:0 1.5rem; background:var(--card); border:1px solid var(--line); border-radius:var(--radius); min-width:0; }
.ch-tile{ padding-block:1.1rem 1.2rem; }
.ch-tile + .ch-tile{ border-top:1px solid var(--line); }
.ch-tile-lead{ padding-block:1.5rem 1.35rem; }
.ch-tile-head{ display:flex; align-items:baseline; justify-content:space-between; gap:1rem; }
.ch-tile h2, .ch-tile h3{ margin:0; text-wrap:pretty; hyphens:manual; overflow-wrap:break-word; min-width:0; }
.ch-tile h2{ font-size:clamp(1.25rem,1.6vw,1.375rem); line-height:1.25; letter-spacing:-.02em; }
.ch-tile h3{ font-size:1.0625rem; line-height:1.35; letter-spacing:-.01em; }
.ch-tile-tier{ margin:0; flex:none; font-size:.9375rem; line-height:1.3; color:var(--text-soft); }
.ch-tile-unlock{ font-weight:500; color:var(--ink); }
.ch-tile > p{ margin:.45rem 0 0; font-size:.9375rem; line-height:1.55; color:var(--text-soft); }
.ch-tile-lead > p{ margin-top:.6rem; font-size:1rem; color:var(--ink); }

/* ---- the gallery: tablets and a phone side by side on the paper, each named below ---- */
.ch-gallery{ padding-block:clamp(2rem,4vw,3rem) clamp(2.5rem,4vw,3.5rem); }
.ch-gallery-in{ display:flex; justify-content:center; align-items:flex-start; gap:clamp(2rem,5vw,4.5rem); }
.ch-shot{ margin:0; display:flex; flex-direction:column; align-items:center; }
.ch-shot-ipad .device{ --dv-scale:.72; }
.ch-shot-iphone .device{ --dv-scale:.56; }
.ch-shot figcaption{ margin-top:1.25rem; max-width:18rem; font-size:.9375rem; font-weight:500; line-height:1.4; text-align:center;
  color:var(--ink); text-wrap:balance; }

/* ---- the ledger (features page): each feature an invoice line; the right column says free or unlock ---- */
.ch-ledger{ padding-block:clamp(3rem,6vw,5rem) clamp(3rem,5vw,4.5rem); }
.ch-ledger-in{ display:grid; grid-template-columns:minmax(12rem,17rem) minmax(0,1fr) minmax(10rem,auto); column-gap:clamp(1.5rem,3vw,3rem); }
.ch-ledger-in::before, .ch-ledger-in::after{ content:""; grid-column:1 / -1; }
.ch-ledger-in::before{ border-top:1px solid var(--ink); }
.ch-ledger-in::after{ border-top:3px double var(--ink); }
.ch-line{ grid-column:1 / -1; display:grid; grid-template-columns:subgrid; grid-template-rows:auto 1fr;
  border-bottom:1px solid var(--rule-strong); }
.ch-line:last-child{ border-bottom:0; }
.ch-line h2{ grid-column:1; grid-row:1; padding-block:1.9rem 0; font-size:clamp(1.25rem,1.6vw,1.375rem); line-height:1.25;
  letter-spacing:-.02em; text-wrap:balance; hyphens:manual; overflow-wrap:break-word; }
.ch-line-body{ grid-column:2; grid-row:1 / span 2; padding-block:1.9rem; max-width:42rem; }
.ch-line-body p{ margin:.75rem 0 0; font-size:.9375rem; line-height:1.6; color:var(--text-soft); }
.ch-line-body p:first-child{ margin-top:0; font-size:1.0625rem; line-height:1.58; color:var(--ink); }
.ch-tier{ grid-column:3; grid-row:1 / span 2; margin:0; padding:1.55rem 0 1.9rem 1.5rem; border-left:1px solid var(--line);
  text-align:right; font-size:clamp(1.625rem,2.2vw,2.125rem); font-weight:300; line-height:1.15; letter-spacing:-.01em;
  color:var(--ink); white-space:nowrap; }
.ch-line:not(:has(.ch-tier))::after{ content:""; grid-column:3; grid-row:1 / span 2; border-left:1px solid var(--line); }
.ch-line-still{ grid-column:1; grid-row:2; padding-block:.25rem 1.9rem; }

/* ---- the archive: the years counted with the app's tally glyph, beside the archive itself ---- */
.ch-archive{ padding-block:clamp(1rem,2vw,1.5rem) clamp(3rem,5vw,4.5rem); }
.ch-archive-in{ display:grid; grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr); gap:clamp(2.5rem,6vw,5.5rem); align-items:center; }
.ch-archive h2{ margin-top:.9rem; font-size:clamp(2rem,3.4vw,2.875rem); line-height:1.08; letter-spacing:-.025em; max-width:17ch; text-wrap:balance; }
.ch-archive p{ margin:1.1rem 0 0; font-size:1.0625rem; max-width:34em; color:var(--ink); }
.ch-archive .more{ font-weight:500; color:var(--ink); text-decoration:underline; text-underline-offset:4px;
  text-decoration-thickness:1px; text-decoration-color:var(--rule-strong); }
.ch-archive .more:hover{ text-decoration-color:currentColor; }
.ch-years{ margin-top:1.75rem; max-width:34em; background:var(--card); border:1px solid var(--line); border-radius:var(--radius); }
.ch-year{ display:grid; grid-template-columns:minmax(0,1fr) auto 2.2ch; align-items:center; column-gap:1rem; padding:.75rem 1.375rem; }
.ch-year + .ch-year{ border-top:1px solid var(--line); margin-left:1.375rem; padding-left:0; }
.ch-cc{ font-size:1rem; font-weight:500; letter-spacing:.02em; color:var(--ink); }
.ch-tallies{ display:flex; gap:.25rem; }
.ch-tallies svg{ display:block; width:2.875rem; height:2.875rem; fill:none; stroke:var(--ink); stroke-width:1.75; stroke-linecap:round; }
.ch-tallies .ch-cross{ stroke:var(--tally); }
.ch-year b{ font-size:3rem; font-weight:300; line-height:1; letter-spacing:-.01em; text-align:right; font-variant-numeric:tabular-nums; color:var(--ink); }
.ch-archive .wd-archive-still{ justify-self:end; width:min(100%,26.25rem); }

/* ---- price: one card, one light figure, the same two actions ---- */
.ch-price{ max-width:var(--ch-max); margin-inline:auto; padding:0 var(--ch-gutter) clamp(3rem,5vw,4.5rem); box-sizing:content-box; }
.ch-price-card{ display:grid; grid-template-columns:minmax(0,.72fr) minmax(0,1.28fr); gap:clamp(1.75rem,5vw,4.5rem); align-items:start;
  padding:clamp(1.5rem,3vw,2.5rem); background:var(--card); border:1px solid var(--line); border-radius:var(--radius); }
.ch-price .wd-price-row{ display:flex; flex-direction:column; gap:.75rem; margin-top:.9rem; }
.ch-price .wd-amt{ font-size:clamp(3.5rem,6.4vw,5.5rem); font-weight:300; line-height:1; letter-spacing:-.02em;
  font-variant-numeric:tabular-nums; color:var(--ink); }
.ch-price .wd-once{ font-size:1.0625rem; font-weight:500; color:var(--ink); }
.ch-price-body p{ font-size:1rem; line-height:1.6; color:var(--text-soft); max-width:36em; }
.ch-price-body .wd-actions{ margin-top:1.5rem; }

/* ---- questions: one card of ruled rows, on the home page and the FAQ page ---- */
[data-brand="counthall"] .faq{ max-width:46rem; padding-block:clamp(1rem,3vw,2rem) clamp(3.5rem,6vw,5rem); padding-inline:0; margin-inline:auto; }
[data-brand="counthall"] main:has(.ch-hero) .faq{ padding-inline:var(--ch-gutter); box-sizing:content-box; }
[data-brand="counthall"] .faq h2{ margin-bottom:1.25rem; font-size:clamp(1.75rem,3vw,2.25rem); letter-spacing:-.025em; }
[data-brand="counthall"] .faq details{ margin:0; padding:0 1.375rem; background:var(--card); border:1px solid var(--line);
  border-block-width:0; border-radius:0; }
[data-brand="counthall"] .faq details:first-of-type{ border-top-width:1px; border-radius:var(--radius) var(--radius) 0 0; }
[data-brand="counthall"] .faq details:last-of-type{ border-bottom-width:1px; border-radius:0 0 var(--radius) var(--radius); }
[data-brand="counthall"] .faq summary{ position:relative; display:block; padding:1.05rem 2rem 1.05rem 0; font-size:1.0625rem; font-weight:500; line-height:1.4; }
[data-brand="counthall"] .faq details + details summary{ border-top:1px solid var(--line); }
[data-brand="counthall"] .faq summary::after{ content:""; position:absolute; right:.2rem; top:1.45rem; float:none; width:.5rem; height:.5rem;
  border-right:1.5px solid var(--ink); border-bottom:1.5px solid var(--ink); transform:rotate(45deg); }
[data-brand="counthall"] .faq details[open] summary::after{ content:""; top:1.7rem; transform:rotate(225deg); }
[data-brand="counthall"] .faq details p{ margin:0; padding-bottom:1.15rem; font-size:1rem; color:var(--text-soft); }

/* ---- content pages: the same paper, type and rules ---- */
[data-brand="counthall"] .prose{ padding-block:clamp(2.5rem,6vw,4.5rem) clamp(2rem,4vw,3rem); }
[data-brand="counthall"] .prose h1{ font-size:clamp(2.1rem,4vw,3.1rem); line-height:1.06; letter-spacing:-.03em; }
[data-brand="counthall"] .prose h2{ font-size:1.25rem; letter-spacing:-.015em; }
[data-brand="counthall"] .prose a{ color:var(--ink); text-decoration-thickness:1px; }
[data-brand="counthall"] .prose:has(+ :is(.benefits, .ch-ledger)){ max-width:46rem; margin-inline:0; }
[data-brand="counthall"] .prose:has(+ .faq){ max-width:46rem; padding-bottom:0; }
/* the FAQ page's list repeats the page title right under it; the h2 stays for assistive tech */
[data-brand="counthall"] .prose:has(+ .faq) + .faq > h2{ position:absolute; width:1px; height:1px; margin:-1px; padding:0;
  overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
[data-brand="counthall"] .prose:has(+ :is(.benefits, .ch-ledger)) p{ font-size:1.1875rem; }
/* on the features page the ledger sits inside main, which already sets the measure and gutter */
[data-brand="counthall"] main:not(:has(.ch-hero)) .ch-ledger{ padding-top:0; }
[data-brand="counthall"] main:not(:has(.ch-hero)) .ch-ledger-in{ max-width:none; padding-inline:0; }
/* the features page reads as the same ledger: title | description, hairlines, a closing double rule */
[data-brand="counthall"] .benefits{ display:block; padding:0; margin-bottom:clamp(3rem,5vw,4rem); border-top:1px solid var(--ink);
  border-bottom:3px double var(--ink); }
[data-brand="counthall"] .benefit{ display:grid; grid-template-columns:minmax(12rem,17rem) minmax(0,42rem); column-gap:clamp(1.5rem,3vw,3rem);
  padding:1.6rem 0; background:none; border:0; border-radius:0; min-width:0; overflow-wrap:break-word; }
[data-brand="counthall"] .benefit + .benefit{ border-top:1px solid var(--rule-strong); }
[data-brand="counthall"] .benefit h2{ margin:0; font-size:1.25rem; line-height:1.25; letter-spacing:-.02em; hyphens:manual;
  overflow-wrap:break-word; }
[data-brand="counthall"] .benefit p{ font-size:1rem; line-height:1.6; color:var(--text-soft); }
[data-brand="counthall"] .proof{ display:grid; grid-template-columns:minmax(0,.72fr) minmax(0,1.28fr); gap:.75rem clamp(1.75rem,5vw,4.5rem);
  margin-bottom:clamp(3rem,5vw,4.5rem); padding:clamp(1.5rem,3vw,2.5rem); background:var(--card); border:1px solid var(--line);
  border-radius:var(--radius); }
[data-brand="counthall"] .proof h2{ grid-row:1 / span 2; margin:0; font-size:clamp(1.75rem,3vw,2.25rem); letter-spacing:-.025em; }
[data-brand="counthall"] .proof p{ color:var(--text-soft); max-width:36em; }
[data-brand="counthall"] .proof .cta-row{ grid-column:2; margin-top:.75rem; }
[data-brand="counthall"] #how-its-made{ padding-block:0 clamp(3rem,5vw,4.5rem); }
[data-brand="counthall"] #how-its-made .wrap{ padding-inline:0; }
[data-brand="counthall"] #how-its-made .prose{ padding-block:1.5rem 0; border-top:1px solid var(--line); }
[data-brand="counthall"] #how-its-made details{ margin-top:1rem; }
[data-brand="counthall"] #how-its-made summary{ display:inline-flex; align-items:center; gap:.75rem; cursor:pointer;
  list-style:none; font-weight:500; color:var(--ink); }
[data-brand="counthall"] #how-its-made summary::-webkit-details-marker{ display:none; }
[data-brand="counthall"] #how-its-made summary::after{ content:""; flex:none; width:.5rem; height:.5rem; margin-top:-.3rem;
  border-right:1.5px solid var(--ink); border-bottom:1.5px solid var(--ink); transform:rotate(45deg); }
[data-brand="counthall"] #how-its-made details[open] summary::after{ margin-top:.3rem; transform:rotate(225deg); }
[data-brand="counthall"] .hero{ padding-block:clamp(3rem,8vw,6rem); }
[data-brand="counthall"] .hero .sub{ color:var(--text-soft); }
[data-brand="counthall"] .hero .sub a{ color:var(--ink); }
/* legal pages: the shared legal-doc.css, in this brand's type */
[data-brand="counthall"] .legal-eyebrow{ font-family:var(--sans); font-size:.9375rem; font-weight:400; letter-spacing:0;
  text-transform:none; color:var(--text-soft); }
[data-brand="counthall"] .legal-head h1{ font-weight:500; letter-spacing:-.03em; }
[data-brand="counthall"] .legal-doc :is(h2,h3){ font-weight:500; }
[data-brand="counthall"] :is(.legal-meta dt, .legal-toc > summary, .legal-scope .legal-scope-tag){ font-family:var(--sans);
  font-size:.8125rem; font-weight:500; letter-spacing:0; text-transform:none; color:var(--text-soft); }
[data-brand="counthall"] .legal-meta dd{ font-weight:500; }
[data-brand="counthall"] .legal-num, [data-brand="counthall"] .legal-toc a::before{ font-family:var(--sans); font-weight:400; }
[data-brand="counthall"] .legal-num{ color:var(--ink); background:var(--blush); border:1px solid var(--line); }
[data-brand="counthall"] .legal-scope{ background:var(--card); border-left-width:1px; border-left-color:var(--line); }
[data-brand="counthall"] .legal-prose :is(p,li) strong{ font-weight:600; }

/* ---- footer: paper, one hairline, the mark beside the line ---- */
/* Clip the full-bleed divider: 100vw includes the browser's vertical scrollbar. */
.app-foot{ padding:0; overflow-x:clip; }
[data-brand="counthall"] footer.app-foot{ margin-top:0; background:var(--paper); border-top:1px solid var(--line); }
.app-foot .app-foot-base{ max-width:var(--ch-max,72rem); margin-inline:auto; padding:1.5rem var(--ch-gutter,clamp(1.1rem,4vw,2.5rem));
  box-sizing:content-box; display:flex; gap:.75rem 1.5rem; flex-wrap:wrap; align-items:center; justify-content:space-between;
  font-size:.875rem; color:var(--text-soft); }
.app-foot .app-foot-base .links{ display:flex; gap:.5rem 1.25rem; flex-wrap:wrap; }
[data-brand="counthall"] .app-foot a{ color:var(--text-soft); }
[data-brand="counthall"] .app-foot a:hover{ color:var(--ink); text-decoration:underline; text-underline-offset:3px; }
.ch-foot-brand{ display:inline-flex; align-items:center; gap:.6rem; }
.ch-foot-brand .ch-mark{ height:20px; }

@media (max-width:1279px){
  .ch-devices{ --ch-tab:.6; --ch-hand:.4; --ch-tuck:5.5rem; }
  .ch-shot-ipad .device{ --dv-scale:.6; }
  .ch-shot-iphone .device{ --dv-scale:.465; }
}
@media (max-width:1100px){
  .ch-devices{ --ch-tab:.5; --ch-hand:.34; --ch-tuck:4rem; }
  .ch-shot-ipad .device{ --dv-scale:.5; }
  .ch-shot-iphone .device{ --dv-scale:.39; }
}
@media (max-width:1040px){
  .ch-ledger-in{ grid-template-columns:minmax(10rem,13rem) minmax(0,1fr) minmax(7rem,auto); }
  .ch-tasks-in{ grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:860px){
  .ch-in, .ch-archive-in, .ch-price-card, [data-brand="counthall"] .proof{ grid-template-columns:minmax(0,1fr); }
  .ch-devices{ --ch-tab:.62; --ch-hand:.4; --ch-tuck:6rem; justify-self:center; }
  .ch-gallery-in{ flex-direction:column; align-items:center; gap:3rem; }
  .ch-shot-ipad .device{ --dv-scale:.55; }
  .ch-shot-iphone .device{ --dv-scale:.42; }
  .ch-archive .wd-archive-still{ justify-self:start; }
  [data-brand="counthall"] .proof h2{ grid-row:auto; }
  [data-brand="counthall"] .proof .cta-row{ grid-column:1; }
  /* the ledger stacks: title and tier on one line, the description below */
  .ch-ledger-in{ display:block; border-top:1px solid var(--ink); border-bottom:3px double var(--ink); }
  .ch-ledger-in::before, .ch-ledger-in::after, .ch-line:not(:has(.ch-tier))::after{ content:none; }
  .ch-line{ grid-template-columns:minmax(0,1fr) auto; grid-template-rows:auto; column-gap:1.25rem; padding-block:1.6rem; }
  .ch-line h2{ padding:0; align-self:baseline; }
  .ch-tier{ grid-column:2; grid-row:1; padding:0; border:0; align-self:baseline; font-size:1.5rem; }
  .ch-line-body{ grid-column:1 / -1; grid-row:2; padding:.75rem 0 0; }
  .ch-line-still{ grid-column:1 / -1; grid-row:3; padding:1.25rem 0 0; }
  [data-brand="counthall"] .benefit{ grid-template-columns:minmax(0,1fr); row-gap:.5rem; }
}
@media (max-width:680px){
  .ch-tasks-in{ grid-template-columns:minmax(0,1fr); }
}
@media (max-width:520px){
  .ch-copy h1{ font-size:2.25rem; }
  .ch-in .wd-actions .btn, .ch-price .wd-actions .btn{ flex:1 1 100%; }
  .ch-devices{ --ch-tab:.5; --ch-hand:.32; --ch-tuck:4.5rem; padding-bottom:2rem; }
  .ch-task{ padding-inline:1.125rem; }
  .ch-tile-head{ flex-direction:column; align-items:flex-start; gap:.2rem; }
  .ch-year{ column-gap:.875rem; padding-inline:1.125rem; }
  .ch-year + .ch-year{ margin-left:1.125rem; }
  .ch-year b{ font-size:2.625rem; }
  .ch-tallies svg{ width:2.25rem; height:2.25rem; }
  [data-brand="counthall"] .faq details{ padding-inline:1.125rem; }
  /* the tier word under the heading, so a long heading keeps the full width and does not hyphenate */
  .ch-line h2{ grid-column:1 / -1; }
  .ch-tier{ grid-column:1 / -1; grid-row:2; margin-top:.3rem; text-align:left; font-size:1.25rem; }
  .ch-line-body{ grid-row:3; }
  .ch-line-still{ grid-row:4; }
}
@media (prefers-reduced-motion:reduce){ [data-brand="counthall"] .btn{ transition:none; } }

/* ---- launch swap ----
   Wording and store link derive from ONE fact (app.toml [store] app_store_url /
   play_store_url, via {{launchState}} + the badge states), so a page can never say
   "coming soon" beside a working store button. Per-brand rules by design: site.css is
   byte-identical across sites and not the place (see maythorn/tondo theme.css). */
.hero-actions .launch-live, .hero-actions .launch-prelaunch,
.cta-row .launch-live, .cta-row .launch-prelaunch{ display:flex; gap:.9rem;
  flex-wrap:wrap; align-items:center; }
[data-launch="prelaunch"] .launch-live{ display:none; }
[data-launch="live"] .launch-prelaunch{ display:none; }
[data-store-badge="prelaunch"], [data-store-badge="absent"]{ display:none; }
