/* Countera site. One stylesheet for every page. Tokens first: light on :root, dark swaps the roles. */
:root {
  --paper: #FEFAE0;
  --sheet: #FFFDF2;
  --ink: #283618;
  --muted: #4F5A2C;
  --accent: #BC6C25;
  --accent-ink: #8A4B14;
  --rule: #E3DCB9;
  --rule-strong: #606C38;
  --forest: #283618;
  --forest-deep: #202C12;
  --forest-line: #3C4C26;
  --on-forest: #FEFAE0;
  --on-forest-muted: #D4D6B4;
  --on-forest-accent: #DDA15E;
  --shadow: 0 1px 0 rgba(40, 54, 24, 0.08), 0 28px 50px -26px rgba(40, 54, 24, 0.55);
  --sans: Manrope, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 74px;
  --tag-shadow: #283618;
  --wrong: #A63D1F;
  /* Google's own light-theme button colours, from the branding guidelines: never
     mixed with the site's own palette. */
  --gsi-fill: #FFFFFF;
  --gsi-stroke: #747775;
  --gsi-text: #1F1F1F;
  --gsi-logo: image-set(
    url("/assets/google/g-light.png") 1x,
    url("/assets/google/g-light@2x.png") 2x,
    url("/assets/google/g-light@3x.png") 3x
  );
  color-scheme: light dark;
}
/* Dark: follows the device unless Light is chosen, and always applies when Dark is chosen. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #161A0D;
    --sheet: #1E2412;
    --ink: #FEFAE0;
    --muted: #C8CBA6;
    --accent: #DDA15E;
    --accent-ink: #E3B77F;
    --rule: #333D1D;
    --rule-strong: #7D8A4E;
    --forest-deep: #1B2410;
    --shadow: 0 1px 0 rgba(0, 0, 0, 0.3), 0 28px 50px -26px rgba(0, 0, 0, 0.9);
    --tag-shadow: #DDA15E;
    --wrong: #D8735A;
    --gsi-fill: #131314;
    --gsi-stroke: #8E918F;
    --gsi-text: #E3E3E3;
    --gsi-logo: image-set(
      url("/assets/google/g-dark.png") 1x,
      url("/assets/google/g-dark@2x.png") 2x,
      url("/assets/google/g-dark@3x.png") 3x
    );
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #161A0D;
  --sheet: #1E2412;
  --ink: #FEFAE0;
  --muted: #C8CBA6;
  --accent: #DDA15E;
  --accent-ink: #E3B77F;
  --rule: #333D1D;
  --rule-strong: #7D8A4E;
  --forest-deep: #1B2410;
  --shadow: 0 1px 0 rgba(0, 0, 0, 0.3), 0 28px 50px -26px rgba(0, 0, 0, 0.9);
  --tag-shadow: #DDA15E;
  --wrong: #D8735A;
  --gsi-fill: #131314;
  --gsi-stroke: #8E918F;
  --gsi-text: #E3E3E3;
  --gsi-logo: image-set(
    url("/assets/google/g-dark.png") 1x,
    url("/assets/google/g-dark@2x.png") 2x,
    url("/assets/google/g-dark@3x.png") 3x
  );
  color-scheme: dark;
}
:root[data-theme="light"] { color-scheme: light; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
section[id] { scroll-margin-top: 12px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.on-forest :focus-visible { outline-color: var(--on-forest-accent); }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
.mono, .fig { font-family: var(--mono); font-weight: 500; font-variant-numeric: tabular-nums; }
.caption {
  font-family: var(--mono); font-weight: 500; font-size: 0.78rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.shell { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px;
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: 16px; }

/* Masthead: sticky on every page. Forest over the hero, the page ground with a hairline once scrolled. Its height never changes. */
.masthead { position: sticky; top: 0; z-index: 50; padding-block: 18px; background: var(--paper); color: var(--ink); box-shadow: 0 1px 0 transparent; }
.masthead.on-forest { background: var(--forest); color: var(--on-forest); }
.masthead.is-stuck { box-shadow: 0 1px 0 var(--rule); }
@supports ((backdrop-filter: blur(8px)) or (-webkit-backdrop-filter: blur(8px))) {
  .masthead.is-stuck:not(.on-forest) { background: color-mix(in srgb, var(--paper) 90%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
}
@media (prefers-reduced-motion: no-preference) {
  .masthead, .masthead .soon-pill, .masthead .soon-pill .dot, .masthead .theme-switch, .masthead .theme-opt, .masthead .nav a {
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, text-decoration-color 0.25s ease;
  }
}
.nav a.is-current { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 7px; }
.on-forest .nav a.is-current { text-decoration-color: var(--on-forest-accent); }
.masthead-row { display: flex; align-items: center; gap: 16px 28px; flex-wrap: wrap; }
.lockup {
  display: inline-flex; align-items: center; gap: 11px; text-decoration: none;
  font-weight: 800; font-size: 1.2rem; letter-spacing: -0.017em;
}
.lockup svg { flex: none; }
.nav { display: flex; gap: 6px 22px; list-style: none; margin: 0 0 0 auto; padding: 0; flex-wrap: wrap; }
.nav a { text-decoration: none; font-weight: 600; font-size: 0.95rem; padding-block: 6px; }
.nav a:hover { text-decoration: underline; }
.soon-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-weight: 500; font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase;
  border: 1px solid currentColor; border-radius: 999px; padding: 5px 12px; white-space: nowrap;
}
.soon-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.soon-pill a { color: inherit; text-decoration: none; border-bottom: 1px solid currentColor; }
.soon-pill a:hover { border-bottom-color: var(--accent); }
/* Google's badge, used exactly as supplied and never restyled. The rules it
   has to meet, from the Play partner hub: a minimum height of 28px, clear
   space of one quarter of the badge height on every side, no recolouring,
   rearranging or effects, and a solid background with enough contrast. The
   image is an <img> rather than inline SVG so no stylesheet can reach inside
   it, and the padding below is the clear space, so a neighbouring control
   cannot crowd it however the row wraps. */
.play-badge { display: inline-flex; padding: 13px; margin: -13px; text-decoration: none; border: 0; }
.play-badge img { display: block; height: 52px; width: auto; }
.play-badge:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
@media (max-width: 520px) {
  .play-badge { padding: 11px; margin: -11px; }
  .play-badge img { height: 44px; }
}
.on-forest .soon-pill { color: var(--on-forest-muted); }
.on-forest .soon-pill .dot { background: var(--on-forest-accent); }
@media (max-width: 859px) { .nav { display: none; } }
@media (max-width: 1099px) { .masthead .soon-pill { display: none; } }

/* Colour theme switch: System, Light, Dark. Hidden until shell.js runs, since it cannot work without it. */
.theme-switch { display: inline-flex; align-items: center; gap: 2px; margin: 0 0 0 auto; padding: 3px; border: 1px solid currentColor; border-radius: 999px; min-width: 0; }
.theme-switch[hidden] { display: none; }
.theme-opt { position: relative; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 999px; cursor: pointer; }
.theme-opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.theme-opt svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.theme-opt svg .solid { fill: currentColor; stroke: none; }
.theme-opt:has(input:checked) { background: var(--ink); color: var(--paper); }
.theme-opt:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.on-forest .theme-switch { color: var(--on-forest-muted); }
.on-forest .theme-opt:has(input:checked) { background: var(--on-forest); color: var(--forest); }
.on-forest .theme-opt:has(input:focus-visible) { outline-color: var(--on-forest-accent); }
@media (prefers-reduced-motion: no-preference) {
  .theme-fading, .theme-fading *, .theme-fading *::before, .theme-fading *::after {
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, fill 0.25s ease, stroke 0.25s ease !important;
  }
}

/* Hero */
.hero {
  background: linear-gradient(to bottom, var(--forest) calc(100% - 110px), var(--paper) calc(100% - 110px));
  color: var(--on-forest);
  padding-block: clamp(28px, 6vw, 72px) 0;
  overflow: hidden;
}
.hero-grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; } }
.hero-copy { padding-bottom: 8px; min-width: 0; }
.hero .caption { color: var(--on-forest-accent); }
.hero h1 {
  font-size: clamp(2.5rem, 6.4vw, 5.1rem); font-weight: 800; letter-spacing: -0.037em; line-height: 1.0;
  margin: 18px 0 22px; max-width: 12em;
}
.hero h1 em { font-style: normal; color: var(--on-forest-accent); }
.hero .lede { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--on-forest-muted); max-width: 32em; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 32px; }
.soon-block {
  display: inline-flex; align-items: center; gap: 14px;
  background: var(--on-forest); color: var(--forest);
  border-radius: 14px; padding: 12px 20px 12px 14px; font-weight: 700; line-height: 1.25;
}
.soon-block svg { flex: none; }
.soon-block small { display: block; font-family: var(--mono); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: #4F5A2C; }
.button-ghost {
  display: inline-flex; align-items: center; min-height: 48px; padding: 10px 20px;
  border: 1.5px solid var(--on-forest-muted); border-radius: 14px; font-weight: 700; text-decoration: none;
}
.button-ghost:hover { border-color: var(--on-forest-accent); }
.hero-facts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 26px 0 0; padding: 0; list-style: none; color: var(--on-forest-muted); font-family: var(--mono); font-size: 0.82rem; }
.hero-facts li::before { content: "/ "; color: var(--on-forest-accent); }

.hero-stage { position: relative; min-width: 0; }
.stage { position: relative; display: grid; padding-bottom: 36px; }
.stage > * { grid-area: 1 / 1; min-width: 0; }
.stage > .chip-layer { grid-area: auto; }
.chip-layer { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.big-tally { display: block; height: clamp(64px, 8vw, 100px); width: auto; margin: 0 0 10px -10px; }
.big-tally .v { stroke: var(--on-forest); }
.big-tally .x { stroke: var(--on-forest-accent); }
@media (min-width: 900px) { .hero-copy { padding-bottom: 150px; } .hero-stage { align-self: end; } }
.slot-front { position: relative; z-index: 2; width: min(300px, 58vw); justify-self: end; margin-right: 4%; margin-top: 40px; }
.slot-back { position: relative; z-index: 1; width: min(250px, 47vw); justify-self: start; align-self: start; margin-left: 2%; }
.phone.back { rotate: -6deg; }
@media (max-width: 899px) {
  .hero-stage { max-width: 520px; width: 100%; justify-self: center; }
  .slot-front { margin-right: 0; margin-top: 56px; }
  .slot-back { margin-left: 0; }
}

/* Phone frames: the frame carries the contrast, so a light screenshot reads on either ground. */
.phone {
  background: #283618; padding: 7px; border-radius: 32px;
  border: 1px solid #606C38; box-shadow: var(--shadow); min-width: 0;
}
.phone img { width: 100%; aspect-ratio: 1080 / 2210; border-radius: 25px; background: #fff; }
.phone picture { display: block; }

/* Live figures beside the phones. Decorative copies of numbers on the screens; always visible at rest.
   .chip-at places a chip and carries its idle float; .live-chip inside it is the chip and carries its entrance. */
.chip-at { position: absolute; z-index: 3; pointer-events: none; }
.live-chip {
  margin: 0; display: flex; flex-direction: column; gap: 3px;
  padding: 9px 14px 10px; border-radius: 14px; background: #FFFDF2; color: #283618;
  border: 1px solid #606C38; box-shadow: 0 16px 30px -16px rgba(0, 0, 0, 0.6);
  line-height: 1.15; white-space: nowrap; pointer-events: none;
}
.chip-cap { font-weight: 600; font-size: 0.72rem; color: #4F5A2C; }
.chip-big { font-family: var(--mono); font-weight: 500; font-size: 1.45rem; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.chip-row { display: flex; align-items: center; gap: 10px; }
.chip-delta { font-family: var(--mono); font-size: 0.72rem; color: #8A4B14; border: 1px solid #BC6C25; border-radius: 999px; padding: 2px 8px; }
.chip-perfect { flex-direction: row; align-items: center; gap: 9px; border-radius: 14px; padding: 8px 14px 9px; font-weight: 600; font-size: 0.95rem; }
.chip-stack { display: flex; flex-direction: column; gap: 2px; }
.chip-note { font-weight: 500; font-size: 0.7rem; color: #4F5A2C; }
.chip-perfect .dot { width: 8px; height: 8px; border-radius: 50%; background: #606C38; }
.chip-rating { background: #202C12; color: #FEFAE0; border-color: #DDA15E; }
.chip-rating .chip-cap { color: #D4D6B4; }
@media (min-width: 900px) {
  .stage { padding-top: 88px; }
  .chip-at-rating { top: 6px; left: 0; }
  .chip-at-score { top: 22px; right: 0; }
  .chip-at-perfect { bottom: 112px; left: 2%; }
}
@media (min-width: 900px) and (max-width: 1179px) { .chip-at-perfect { display: none; } }
@media (max-width: 899px) {
  .chip-at-rating { display: none; }
  .chip-at-score { top: 0; right: 0; }
  .chip-score { padding: 7px 10px 8px; gap: 4px; }
  .chip-score .chip-cap { display: none; }
  .chip-score .chip-row { flex-direction: column; align-items: flex-start; gap: 4px; }
  .chip-score .chip-big { font-size: 1.1rem; }
  .chip-at-perfect { bottom: 78px; left: 0; }
  .chip-perfect { padding: 6px 12px; font-size: 0.8rem; gap: 6px; border-radius: 999px; }
  .chip-perfect .chip-note { display: none; }
}

/* Motion. Nothing below hides content unless JavaScript has confirmed Motion is running (motion-ready),
   except the brief motion-pending state set in the head, which a 2 second timer always clears.
   motion-pending only offsets visible things (headline words, phones) and hides decoration (tally, chips). */
.hero h1 .w { display: inline-block; }
.motion-pending .hero h1 .w { transform: translateY(0.14em); opacity: 0.6; }
.motion-pending .hero .phone { transform: translateY(48px); }
.motion-pending .big-tally line { stroke-dashoffset: 100; }
.motion-pending .live-chip { opacity: 0; transform: scale(0.6); }
.motion-pending .big-tally line, .motion-ready .big-tally line, .motion-ready .tally line, .motion-ready .close-tally line { stroke-dasharray: 100; }
html:not(.motion-pending):not(.motion-ready) .hero h1 .w,
html:not(.motion-pending):not(.motion-ready) .hero .phone,
html:not(.motion-pending):not(.motion-ready) .live-chip { transition: transform 1s ease, opacity 1s ease; }
@media (prefers-reduced-motion: no-preference) {
  .offer { transition: transform 0.3s ease, border-color 0.3s ease; }
  .offer:not([aria-disabled="true"]):hover { transform: translateY(-2px); }
  .offer:not([aria-disabled="true"]):active { transform: scale(0.98); }
  .motion-ready .offer { transition: border-color 0.3s ease; }
}
@media print {
  .motion-ready *, .motion-pending * { opacity: 1 !important; transform: none !important; stroke-dashoffset: 0 !important; }
}
.offer-mark svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* The Practice story: only when JavaScript adds story-on, on wide screens. */
.story-phone { display: none; }
.story-stack { position: relative; }
.story-stack picture + picture { position: absolute; inset: 0; }
@media (min-width: 1000px) {
  .story-on .screens.duo { display: none; }
  .story-on .story-phone { display: block; width: 290px; }
  .story-on .split > .screens-col { top: max(calc(var(--header-h) + 16px), calc(50vh - 290px)); }
}

/* USP band */
.usps { padding-block: clamp(40px, 6vw, 80px) 0; }
.usps-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }
.usps h2 { font-size: clamp(1.95rem, 3.7vw, 3.05rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; max-width: 15em; }
.usp-tally { height: 34px; }
.usp-grid { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 32px; border-top: 2px solid var(--ink); }
@media (min-width: 620px) { .usp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .usp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1180px) { .usp-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.usp { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 4px 14px; align-content: start; padding-block: 18px 20px; border-bottom: 1px solid var(--rule); min-width: 0; }
.usp-icon { width: 28px; height: 28px; grid-row: span 2; margin-top: 1px; fill: none; stroke: var(--accent-ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.usp-claim { font-weight: 800; font-size: 1.06rem; letter-spacing: -0.01em; line-height: 1.25; }
.usp-proof { grid-column: 2; color: var(--muted); font-size: 0.95rem; line-height: 1.5; }
.usp-lead { grid-column: 1 / -1; background: var(--forest); color: var(--on-forest); border-bottom: 0; border-radius: 0 0 16px 16px; padding: 22px 22px 24px; grid-template-columns: 40px minmax(0, 1fr); margin-bottom: 8px; }
.usp-lead .usp-icon { width: 40px; height: 40px; stroke: var(--on-forest-accent); }
.usp-lead .usp-claim { font-size: clamp(1.45rem, 2.6vw, 1.9rem); letter-spacing: -0.02em; }
/* Twelve claims: the lead takes one cell like the rest, so every row is full at two, three and four across. */
@media (min-width: 620px) {
  .usp-lead { grid-column: auto; margin-bottom: 0; border-radius: 0 0 14px 14px; padding: 18px 16px 20px; grid-template-columns: 32px minmax(0, 1fr); }
  .usp-lead .usp-icon { width: 32px; height: 32px; }
  .usp-lead .usp-claim { font-size: 1.4rem; }
}
.usp-lead .usp-proof { color: var(--on-forest-muted); }

/* Ledger sections */
.entry { padding-block: clamp(56px, 8vw, 104px); }
.entry + .entry .entry-grid { border-top: 1px solid var(--rule); padding-top: clamp(56px, 8vw, 104px); }
.entry + .entry { padding-top: 0; }
.entry-grid { display: grid; gap: 18px; }
@media (min-width: 860px) { .entry-grid { grid-template-columns: 150px minmax(0, 1fr); gap: 40px; } }
.rail { display: flex; align-items: center; gap: 12px; color: var(--ink); min-width: 0; }
@media (min-width: 860px) {
  .rail { flex-direction: column; align-items: flex-start; gap: 10px; position: sticky; top: calc(var(--header-h) + 16px); align-self: start; padding-top: 10px; }
}
.tally { height: 30px; width: auto; flex: none; }
.tally .v { stroke: currentColor; }
.tally .x { stroke: var(--accent); }
.entry-body { min-width: 0; }
.entry h2 {
  font-size: clamp(1.95rem, 3.7vw, 3.05rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05;
  max-width: 17em;
}
.lead { font-size: clamp(1.1rem, 1.5vw, 1.24rem); margin-top: 18px; max-width: 36em; }
.body-copy { color: var(--muted); max-width: 36em; }
.body-copy + .body-copy { margin-top: 12px; }
.entry h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.015em; line-height: 1.25; margin: 40px 0 10px; }
strong { font-weight: 700; color: var(--ink); }

.split { display: grid; gap: 40px; margin-top: 36px; align-items: start; }
@media (min-width: 1000px) {
  .split { grid-template-columns: minmax(0, 1fr) auto; gap: 56px; margin-top: 44px; }
  .split.flip { grid-template-columns: auto minmax(0, 1fr); }
  .split.flip > .screens, .split.flip > .screens-col { order: -1; }
  .split > .screens, .split > .screens-col { position: sticky; top: calc(var(--header-h) + 16px); }
}
.split > * { min-width: 0; }
.split > :first-child, .try-grid > :first-child { container-type: inline-size; }

.screens { display: flex; gap: 20px; }
.screens .phone { width: 270px; flex: none; }
.screens.duo .phone { width: 250px; }
.screens.duo .phone:nth-child(2) { margin-left: -64px; margin-top: 96px; position: relative; z-index: 1; }
.screens.solo .phone { width: 290px; }
@media (max-width: 999px) {
  .screens { overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 28px; margin-inline: -4px; overscroll-behavior-x: contain; }
  .screens .phone, .screens.solo .phone, .screens.duo .phone { width: min(270px, 68vw); scroll-snap-align: start; }
  .screens.duo .phone:nth-child(2) { margin-top: 0; margin-left: 0; }
  .screens.solo { justify-content: center; overflow: visible; }
}
.screens-note { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); margin-top: 10px; }

/* Try one: a shelf-edge price label */
.try-grid { display: grid; gap: 36px; margin-top: 36px; align-items: start; }
@media (min-width: 1000px) { .try-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 56px; } }
.tag {
  background: var(--sheet); border: 1.5px solid var(--ink); border-radius: 10px;
  position: relative; box-shadow: 8px 8px 0 var(--tag-shadow);
}
.tag::before {
  content: ""; position: absolute; left: 18px; top: 18px; width: 12px; height: 12px; border-radius: 50%;
  border: 1.5px solid var(--ink); background: var(--paper);
}
.tag-head {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 14px 20px 14px 44px; border-bottom: 1.5px dashed var(--ink);
}
.tag-head .caption { color: var(--ink); }
.tag-body { padding: 22px 20px 24px; }
@media (min-width: 480px) { .tag-body { padding: 26px 28px 28px; } }
.tag-q { font-size: clamp(1.5rem, 3vw, 1.9rem); font-weight: 800; letter-spacing: -0.025em; margin: 0 0 20px; }
.offers { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
@media (min-width: 420px) { .offers { grid-template-columns: 1fr 1fr; } }
.offer {
  width: 100%; min-height: 64px; font: inherit; color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--rule-strong); border-radius: 12px; padding: 12px 14px; cursor: pointer;
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left;
}
.offer:hover { border-color: var(--ink); }
.offer-main { font-weight: 700; font-size: 1.22rem; letter-spacing: -0.01em; }
.offer-each { font-family: var(--mono); font-weight: 500; font-size: 0.86rem; color: var(--muted); }
.offer-mark { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; }
.offer[data-state="best"] { border-color: var(--ink); border-width: 2.5px; padding: 11px 13px; background: var(--sheet); }
.offer[data-state="best"] .offer-mark { color: var(--ink); }
.offer[data-state="wrong"] { border-color: var(--accent-ink); border-style: dashed; }
.offer[data-state="wrong"] .offer-mark { color: var(--accent-ink); }
.offer[aria-disabled="true"] { cursor: default; }
.try-status { margin-top: 18px; font-weight: 600; min-height: 3.2em; }
.working { margin-top: 8px; border-top: 1px solid var(--rule); padding-top: 12px; }
.working summary { cursor: pointer; font-weight: 700; padding-block: 6px; width: fit-content; }
.working ol { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
.working li { display: flex; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: 0.92rem; border-bottom: 1px dotted var(--rule-strong); padding-bottom: 6px; }
.working li b { font-weight: 500; }
.try-reset {
  margin-top: 16px; font: inherit; font-weight: 700; color: var(--paper); background: var(--ink);
  border: 0; border-radius: 12px; min-height: 48px; padding: 10px 22px; cursor: pointer;
}

/* Steps */
.howto { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 18px; counter-reset: step; }
@media (min-width: 700px) { .howto { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.howto li { border-top: 2px solid var(--ink); padding-top: 14px; }
.howto .caption { display: block; margin-bottom: 6px; color: var(--accent-ink); }
.howto b { display: block; font-size: 1.1rem; margin-bottom: 4px; }
.howto span.t { color: var(--muted); }

/* Ledger table of modes */
.ledger { list-style: none; margin: 18px 0 0; padding: 0; border-top: 1px solid var(--ink); }
.ledger li { display: grid; gap: 2px 20px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
@container (min-width: 460px) { .ledger li { grid-template-columns: 9.5em minmax(0, 1fr); align-items: baseline; } }
.ledger b { font-weight: 700; }
.ledger .what { color: var(--muted); }
.ledger .eg { grid-column: 1 / -1; font-family: var(--mono); font-size: 0.86rem; color: var(--ink); margin-top: 4px; }
@container (min-width: 460px) { .ledger .eg { grid-column: 2; } }
.grade { display: inline-block; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; border: 1px solid var(--rule-strong); border-radius: 999px; padding: 1px 8px; margin-left: 6px; color: var(--muted); white-space: nowrap; }

.facts { margin: 18px 0 0; display: grid; gap: 0; border-top: 1px solid var(--ink); }
.facts div { display: grid; grid-template-columns: 4.2em minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.facts dt { font-family: var(--mono); font-weight: 500; font-size: 1.35rem; color: var(--accent-ink); }
.facts dd { margin: 0; color: var(--muted); }
.facts dd strong { display: block; }

/* Grading ruler */
.grading { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.grading li {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px 16px; background: var(--sheet);
  border: 1px solid var(--rule); border-left: 5px solid var(--g, var(--rule-strong)); border-radius: 10px; padding: 12px 16px;
}
@container (min-width: 520px) { .grading li { grid-template-columns: 7.5em 11em minmax(0, 1fr); align-items: baseline; } }
.grading b { font-weight: 700; }
.grading .fig { font-size: 0.95rem; }
.grading .eff { color: var(--muted); font-size: 0.95rem; }
.grading .g-exact { --g: var(--ink); }
.grading .g-very { --g: #606C38; }
.grading .g-close { --g: var(--accent); }
.grading .g-wrong { --g: var(--wrong); border-left-style: dashed; }

/* Band ladder */
.ladder { margin-top: 18px; }
.ladder-bar { display: flex; height: 16px; border-radius: 4px; overflow: hidden; border: 1px solid var(--ink); position: relative; }
.ladder-bar span { height: 100%; border-right: 1px solid var(--ink); }
.ladder-bar span:last-child { border-right: 0; }
.ladder-bar span:nth-child(odd) { background: var(--sheet); }
.ladder-bar span:nth-child(even) { background: var(--rule); }
.ladder-marker { position: relative; height: 34px; }
.ladder-marker i { position: absolute; top: 0; width: 2px; height: 14px; background: var(--accent); }
.ladder-marker em { position: absolute; top: 14px; font-style: normal; font-family: var(--mono); font-size: 0.78rem; color: var(--accent-ink); white-space: nowrap; }
.bands { list-style: none; margin: 4px 0 0; padding: 0; border-top: 1px solid var(--ink); }
.bands li { display: grid; grid-template-columns: 6.5em 4.5em minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.bands b { font-weight: 700; }
.bands .fig { color: var(--ink); font-size: 0.95rem; }
.bands .meaning { color: var(--muted); }
@container (max-width: 400px) { .bands li { grid-template-columns: 6.5em minmax(0, 1fr); } .bands .meaning { grid-column: 1 / -1; } }

.table-wrap { overflow-x: auto; margin-top: 14px; }
table.points { border-collapse: collapse; width: 100%; min-width: 320px; font-size: 0.95rem; }
.points th, .points td { text-align: left; padding: 9px 10px 9px 0; border-bottom: 1px solid var(--rule); }
.points thead th { font-family: var(--mono); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--ink); }
.points td { font-family: var(--mono); font-weight: 500; }
.points tbody th { font-weight: 700; }

/* Shields */
.shield-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
@container (min-width: 460px) { .shield-list { grid-template-columns: 1fr 1fr; } }
.shield-list li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: start; }
.shield-list svg { width: 40px; height: 46px; }
.shield-list b { display: block; font-weight: 700; }
.shield-list span { color: var(--muted); font-size: 0.97rem; }
.shield-body { fill: var(--sheet); stroke: var(--rule-strong); stroke-width: 3; }
.shield-chief { fill: var(--accent); }
.shield-fig { fill: var(--ink); font-family: var(--mono); font-weight: 500; font-size: 17px; }

/* Boards */
.boards { display: grid; gap: 14px; margin-top: 24px; }
@container (min-width: 520px) { .boards { grid-template-columns: 1fr 1fr; } }
.board { border: 1.5px solid var(--ink); border-radius: 14px; padding: 20px; background: var(--sheet); }
.board.skill { background: var(--forest); color: var(--on-forest); border-color: var(--forest); }
.board .caption { display: block; margin-bottom: 8px; }
.board.skill .caption { color: var(--on-forest-accent); }
.board h3 { margin: 0 0 6px; font-size: 1.45rem; }
.board p { color: var(--muted); }
.board.skill p { color: var(--on-forest-muted); }
.board .ranks { font-family: var(--mono); font-size: 0.95rem; margin-bottom: 8px; color: var(--ink); }
.board.skill .ranks { color: var(--on-forest); }

/* Currency specimen */
.specimen { margin-top: 26px; border: 1.5px solid var(--ink); border-radius: 14px; background: var(--sheet); overflow: hidden; }
.specimen fieldset { border: 0; margin: 0; padding: 16px 18px 0; min-width: 0; }
.specimen legend { float: left; width: 100%; padding: 0; margin-bottom: 10px; }
.specimen legend + .chips { clear: both; }
.specimen fieldset + fieldset { padding-top: 18px; }
.specimen fieldset:first-child { padding-top: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 12px;
  border: 1px solid var(--rule-strong); border-radius: 10px; font-weight: 600; font-size: 0.95rem;
}
.chip span .fig { font-size: 1rem; }
.chip input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.specimen-out { margin-top: 18px; padding: 20px 18px 22px; border-top: 1.5px dashed var(--ink); }
.specimen-q { font-size: clamp(1.25rem, 2.6vw, 1.6rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.3; }
.specimen-a { margin-top: 10px; font-family: var(--mono); color: var(--muted); }
.specimen-a b { color: var(--ink); font-weight: 500; }

/* Privacy panel */
.panel { background: var(--forest); color: var(--on-forest); border-radius: 22px; padding: clamp(26px, 5vw, 56px); }
.panel h2 { color: var(--on-forest); }
.panel .lead { color: var(--on-forest-muted); }
.panel strong { color: var(--on-forest); }
.promises { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 0; }
@media (min-width: 760px) { .promises { grid-template-columns: 1fr 1fr; column-gap: 40px; } }
.promises li { border-top: 1px solid var(--forest-line); padding: 16px 0; color: var(--on-forest-muted); }
.promises b { display: block; color: var(--on-forest); font-size: 1.08rem; margin-bottom: 3px; }
.promises a { color: var(--on-forest); }
.panel-links { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 22px; font-weight: 700; }
.panel-links a { color: var(--on-forest); }

/* FAQ */
.faq-groups { display: grid; gap: 8px; margin-top: 20px; }
.faq-group h3 { margin-top: 32px; }
.faq { border-bottom: 1px solid var(--rule); }
.faq:first-of-type { border-top: 1px solid var(--ink); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 16px 0; font-weight: 700; font-size: 1.08rem; line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-family: var(--mono); font-weight: 500; font-size: 1.35rem; line-height: 1; color: var(--accent-ink); flex: none;
}
.faq[open] summary::after { content: "\2212"; }
.faq-a { padding: 0 0 20px; max-width: 42em; color: var(--muted); }
.faq-a p + p, .faq-a p + ul, .faq-a ul + p { margin-top: 10px; }
.faq-a ul { margin: 8px 0 0; padding-left: 1.2em; }
.faq-a li + li { margin-top: 4px; }

/* Closing */
.closing { padding-block: 0 clamp(56px, 8vw, 104px); }
.close-tally { width: 84px; height: auto; }
.close-tally .v { stroke: var(--on-forest); }
.close-tally .x { stroke: var(--on-forest-accent); }
.closing .panel { text-align: center; display: grid; justify-items: center; gap: 18px; padding-block: clamp(44px, 7vw, 88px); }
.closing h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
.closing p { color: var(--on-forest-muted); max-width: 34em; }
.closing .cta-row { justify-content: center; margin-top: 8px; }

/* Footer */
.site-foot { border-top: 1px solid var(--rule); padding-block: 36px 56px; font-size: 0.95rem; color: var(--muted); }
.site-foot .shell { display: grid; gap: 16px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 0; padding: 0; }
.foot-nav a { color: var(--ink); font-weight: 600; }
.site-foot .mono { font-size: 0.85rem; }
.site-foot .mono a { color: var(--ink); }

/* Legal pages share the tokens and the chrome, and keep their own copy. */
.legal { max-width: 728px; margin-inline: auto; padding-inline: var(--gutter); padding-block: clamp(36px, 6vw, 64px) 72px; line-height: 1.65; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.9rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.08; margin: 0 0 12px; }
.legal .updated { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 0 0 36px; }
.legal .headline { background: var(--forest); color: var(--on-forest); border-radius: 14px; padding: 26px 28px; margin-bottom: 44px; }
.legal .headline p { margin: 0; font-size: 1.18rem; font-weight: 700; letter-spacing: -0.01em; }
.legal .headline span { display: block; margin-top: 10px; font-size: 0.95rem; color: var(--on-forest-muted); }
.legal h2 { font-size: 1.32rem; font-weight: 700; letter-spacing: -0.015em; margin: 40px 0 12px; }
.legal p { margin: 0 0 16px; }
.legal ul { margin: 0 0 16px; padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal strong { font-weight: 700; }
.legal .note { border-left: 2px solid var(--accent); padding-left: 18px; color: var(--muted); font-size: 0.97rem; }
.legal .muted { color: var(--muted); }

/* Practice preferences: Answer Entry, Drill Layout, Keypad. Complete at rest; site.js only animates into this state. */
.prefs-block { margin-top: clamp(48px, 7vw, 88px); }
.prefs-block > h3 { margin-top: 0; }
.prefs { display: grid; gap: 16px; margin-top: 22px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .prefs { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pref-entry { grid-column: 1 / -1; } }
@media (min-width: 1180px) { .prefs { grid-template-columns: 1.25fr 1fr 1fr; } .pref-entry { grid-column: auto; } }
.pref { container-type: inline-size; display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 18px; background: var(--sheet); border: 1.5px solid var(--ink); border-radius: 14px; }
.pref .caption { color: var(--accent-ink); }
.pref h4 { margin: 0; font-size: 1.15rem; font-weight: 800; letter-spacing: -0.012em; line-height: 1.25; text-wrap: balance; }
.pref-copy { color: var(--muted); font-size: 0.95rem; line-height: 1.55; }
.pref-where { margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--rule-strong); font-family: var(--mono); font-size: 0.78rem; color: var(--muted); }
.pref-demo { min-width: 0; padding: 14px; background: var(--paper); border: 1px solid var(--rule); border-radius: 10px; }
.mini { min-width: 0; }
.mini-label { display: block; margin-bottom: 8px; font-family: var(--mono); font-weight: 500; font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.layout-demo, .keypad-demo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
@container (max-width: 420px) { .layout-demo { grid-template-columns: minmax(0, 1fr); } }
.inline-drill { font-size: 1.05rem; color: var(--ink); white-space: nowrap; }
.col-drill { display: inline-grid; justify-items: end; min-width: 5.5ch; font-size: 1.2rem; line-height: 1.35; color: var(--ink); }
.cd-row { display: flex; justify-content: flex-end; gap: 0.6ch; width: 100%; }
.cd-low .cd-sign { margin-right: auto; color: var(--accent-ink); }
.cd-rule { display: block; width: 100%; height: 2px; margin: 2px 0 3px; background: var(--ink); transform-origin: right center; }
.cd-ans { gap: 0; color: var(--accent-ink); }
.d { display: inline-block; }
.entry-demo { display: grid; gap: 14px; }
.ed-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.ed-order { flex: 1 1 12em; font-size: 0.9rem; color: var(--muted); }
.ed-order b { color: var(--ink); }
.ed-rows { display: grid; gap: 8px; }
.ed-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.ed-row .mini-label { flex: 0 0 8.5em; margin: 0; }
@container (max-width: 380px) { .ed-row .mini-label { flex-basis: 100%; } }
.ed-box { position: relative; display: inline-flex; justify-content: center; min-width: 3.4ch; padding: 2px 10px; font-size: 1.35rem; color: var(--ink); background: var(--sheet); border: 1.5px solid var(--rule-strong); border-radius: 8px; }
.ed-strike { position: absolute; left: 6px; right: 6px; top: 50%; height: 2px; margin-top: -1px; background: var(--wrong); transform-origin: left center; }
.ed-verdict { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 0.9rem; }
.ed-verdict svg, .kp svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
.ed-verdict svg { width: 15px; height: 15px; stroke-width: 2.4; }
.ed-verdict.wrong { color: var(--wrong); }
.ed-verdict.right { color: var(--ink); }
.pref-replay { justify-self: start; min-height: 40px; padding: 6px 14px; font: inherit; font-weight: 700; font-size: 0.88rem; color: var(--ink); background: transparent; border: 1.5px solid var(--ink); border-radius: 10px; cursor: pointer; }
.kp { display: grid; gap: 4px; }
.kp-row { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.kp-row.hi { z-index: 2; }
.kp-row > span { display: grid; place-items: center; height: 26px; font-family: var(--mono); font-size: 0.85rem; color: var(--ink); background: var(--sheet); border: 1px solid var(--rule-strong); border-radius: 6px; }
.kp-row.hi > span { background: color-mix(in srgb, var(--accent) 22%, var(--sheet)); border-color: var(--accent); }
.kp-fixed > span { background: transparent; }
.kp svg { width: 13px; height: 13px; stroke-width: 1.8; }

/* Google's Sign in with Google button, to the branding guidelines: the standard
   multicolour G at 20x20, 12 before it, 10 between it and the text, 12 after the
   text, height 40 inside a 48 tap target, and the light/dark fill, stroke and text
   from --gsi-* above. Matches lib/features/account/presentation/widgets/
   google_sign_in_button.dart, the app's own copy of the same guidelines. */
.gsi-btn {
  position: relative;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--gsi-stroke);
  background: var(--gsi-fill);
  color: var(--gsi-text);
  font-family: Roboto, var(--sans);
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  cursor: pointer;
}
/* Grows the tap target to 48 without drawing the button any taller than 40: an
   absolutely positioned pseudo-element still counts as part of the button for
   hit-testing, so it enlarges what you can tap without enlarging what you see. */
.gsi-btn::before { content: ""; position: absolute; inset: -4px; }
.gsi-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.gsi-btn .gsi-logo {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  background-image: var(--gsi-logo);
  background-size: 20px 20px;
  background-repeat: no-repeat;
}
