/* Hallmark · shape: Counter Desk (product-led, one idea per band) · genre: modern-minimal · theme: custom (the app's own system, by request) · job: try · idea: "the bill on the screen becomes the receipt in the customer's hand" · vibe: "calm, exact, Indian counter, quietly premium"
 * paper: #F4F6F9 (cool grey) · accent: #1259D0 (the logo blue) · display: General Sans 600 · body: General Sans 400 · hero: copy left, the real billing counter right with the printed receipt laid over its corner · nav: edge-aligned wordmark, three links, one action · footer: wordmark over two link columns · imagery: the product (a real screenshot) · signature: the printed receipt with "Paid" pressed in blue, overlapping the live counter
 * axes: cool-paper/grotesk/blue · posture: stage · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P2 H2 E2 S2 R1 V2 · weakest: R (range without photographs), answered with typographic bands: the spoken lines, the paper index, the language row */
/* Hallmark · waive 77 · .doc .container capped at 52rem · a policy is one narrow reading column by design, so its sections carry no visual mass */
/* Hallmark · waive 78 · .doc h2 at 1.25rem under a 2.44rem h1 · legal headings are signposts in a running document, not section displays */
@import url("./tokens.css");
@import url("./base.css");

/* ---------------------------------------------------------------- chrome */
.nav { position: sticky; top: 0; z-index: var(--z-sticky-nav); background: color-mix(in oklab, var(--color-paper) 92%, transparent); backdrop-filter: blur(8px); border-bottom: var(--rule-hair) solid var(--color-rule); }
.nav .container { display: flex; align-items: center; gap: var(--space-xl); height: 68px; }
.nav__brand { display: flex; align-items: center; }
.nav__brand img { height: 30px; width: auto; }
.nav__links { display: flex; gap: var(--space-lg); margin-left: auto; }
.nav__links a { text-decoration: none; color: var(--color-ink-2); font-size: var(--text-sm); font-weight: 500; padding: var(--space-xs) 0; }
.nav__links a:hover { color: var(--color-ink); text-decoration: underline; }
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) { .logo-light { display: none; } .logo-dark { display: block; } }

/* ---------------------------------------------------------------- controls (eight states) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); min-height: 44px; padding: 0 var(--space-lg); border-radius: var(--radius-control); font-weight: 600; font-size: var(--text-md); text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: background-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out), border-color var(--dur-micro) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn--primary { background: var(--color-accent); color: var(--color-accent-ink); }
.btn--primary:hover { background: var(--color-accent-hover); }
.btn--ghost { background: transparent; color: var(--color-ink); border-color: var(--color-rule-strong); }
.btn--ghost:hover { background: var(--color-paper-3); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; transition: none; }
.btn[aria-disabled="true"] { opacity: 0.55; pointer-events: none; }
.btn--sm { min-height: 38px; padding: 0 var(--space-md); font-size: var(--text-sm); }

/* ---------------------------------------------------------------- hero */
.hero { padding-block: var(--space-2xl) var(--space-xl); }
.hero .container { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-2xl); align-items: center; }
.hero h1 { font-size: var(--text-display-s); font-weight: 600; line-height: 1.04; letter-spacing: var(--tracking-display); color: var(--color-ink); }
.hero__lead { margin-top: var(--space-lg); font-size: var(--text-lead); color: var(--color-muted); max-width: 30ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-xl); }
.hero__note { margin-top: var(--space-md); font-size: var(--text-sm); color: var(--color-muted); }

.desk { position: relative; padding: 0 0 10rem var(--space-xl); }
.screen { margin: 0; border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-card); overflow: hidden; background: var(--color-paper-2); }
.screen img { width: 100%; height: auto; aspect-ratio: 2378 / 1200; object-fit: cover; object-position: left top; }

/* The signature: a printed counter receipt, lit from the left, laid over the screen. */
.receipt { position: absolute; left: 0; bottom: 0; width: 14rem; padding: var(--space-md) var(--space-md) var(--space-sm); background: var(--color-receipt); color: var(--color-receipt-ink); border-radius: 3px; transform: rotate(-2.2deg); box-shadow: 7px 9px 18px -6px var(--color-shadow), 0.5px 0.5px 0.5px var(--color-shadow); font-size: 0.75rem; line-height: 1.4; }
.receipt__shop { text-align: center; font-weight: 600; font-size: 0.875rem; }
.receipt__meta { text-align: center; color: var(--color-receipt-muted); font-size: 0.6875rem; }
.receipt__rule { border: 0; border-top: 1px dashed var(--color-rule-strong); margin: var(--space-xs) 0; }
.receipt__row { display: flex; justify-content: space-between; gap: var(--space-sm); padding-block: 1px; }
.receipt__row span:last-child, .receipt__total span:last-child { font-family: var(--font-figures); font-variant-numeric: tabular-nums; }
.receipt__total { display: flex; justify-content: space-between; font-weight: 600; font-size: 0.875rem; }
.receipt__save { text-align: center; color: var(--color-receipt-muted); margin-top: var(--space-2xs); }
.receipt__stamp { display: block; text-align: right; font-weight: 600; font-size: 1.75rem; line-height: 1; letter-spacing: -0.02em; color: var(--color-stamp); opacity: 0.85; transform: rotate(-9deg); margin-top: var(--space-xs); }

/* ---------------------------------------------------------------- bands */
.band { padding-block: var(--section-gap-s); border-top: var(--rule-hair) solid var(--color-rule); }
.band h2 { font-size: var(--text-section); font-weight: 600; line-height: 1.08; letter-spacing: var(--tracking-display); max-width: 18ch; }
.band__lead { margin-top: var(--space-md); font-size: var(--text-lead); color: var(--color-muted); max-width: 46ch; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-2xl); align-items: start; }

/* Voice: what was said, what landed on the bill. */
.spoken { display: grid; gap: var(--space-md); margin: 0; padding: 0; list-style: none; }
.spoken li { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: var(--space-md); padding: var(--space-md) var(--space-lg); background: var(--color-paper-2); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-card); }
.spoken q { font-size: var(--text-title); font-weight: 500; quotes: "\201C" "\201D"; }
.spoken small { display: block; font-size: var(--text-xs); color: var(--color-muted); margin-top: var(--space-3xs); }
.spoken .to { color: var(--color-muted); font-size: var(--text-lg); }
.spoken .line { display: flex; justify-content: space-between; gap: var(--space-sm); font-weight: 500; }
.spoken .line span:last-child { font-family: var(--font-figures); }

/* Offline + free: a statement and the plain facts. */
.facts { margin: 0; display: grid; gap: 0; border-top: var(--rule-hair) solid var(--color-rule); }
.facts div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--space-lg); padding-block: var(--space-md); border-bottom: var(--rule-hair) solid var(--color-rule); }
.facts dt { font-weight: 600; }
.facts dd { margin: 0; color: var(--color-ink-2); }

/* The paper index: every document the counter can produce. */
.papers { list-style: none; margin: var(--space-xl) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-2xl); }
.papers li { display: flex; justify-content: space-between; gap: var(--space-md); padding-block: var(--space-md); border-bottom: var(--rule-hair) solid var(--color-rule); font-size: var(--text-lg); font-weight: 500; }
.papers li span { color: var(--color-muted); font-size: var(--text-sm); font-weight: 400; align-self: center; text-align: right; }

/* Pricing */
.prices { margin-top: var(--space-xl); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-card); background: var(--color-paper-2); overflow: hidden; }
.plan { padding: var(--space-lg); display: flex; flex-direction: column; gap: var(--space-sm); }
.plan + .plan { border-left: var(--rule-hair) solid var(--color-rule); }
.plan h3 { font-size: var(--text-lg); font-weight: 600; }
.plan__price { font-family: var(--font-figures); font-size: var(--text-2xl); font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; }
.plan__price small { font-family: var(--font-body); font-size: var(--text-sm); color: var(--color-muted); letter-spacing: 0; font-weight: 400; }
.plan__year { font-size: var(--text-sm); color: var(--color-muted); min-height: 1.5em; }
.plan p { font-size: var(--text-sm); color: var(--color-ink-2); }
.plan--free { background: var(--color-accent-soft); }
.prices__note { margin-top: var(--space-md); font-size: var(--text-sm); color: var(--color-muted); }

/* Languages */
.langs { list-style: none; margin: var(--space-xl) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-md) var(--space-2xl); font-size: clamp(1.75rem, 2.2vw + 1rem, 2.75rem); font-weight: 500; line-height: 1.25; color: var(--color-ink-2); }

/* Download */
.get { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-lg); margin-top: var(--space-xl); }
.get article { min-height: 14rem; padding: var(--space-lg); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-card); background: var(--color-paper-2); display: flex; flex-direction: column; gap: var(--space-sm); align-items: flex-start; }
.get h3 { font-size: var(--text-lg); font-weight: 600; }
.get p { color: var(--color-ink-2); font-size: var(--text-sm); flex: 1; }

/* ---------------------------------------------------------------- footer */
.footer { padding-block: var(--space-2xl) var(--space-xl); border-top: var(--rule-hair) solid var(--color-rule); background: var(--color-paper-3); color: var(--color-ink); }
.footer .container { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-2xl); }
.footer img { height: 28px; width: auto; }
.footer p { margin-top: var(--space-sm); color: var(--color-muted); font-size: var(--text-sm); }
.footer h2 { font-size: var(--text-sm); font-weight: 600; margin-bottom: var(--space-sm); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-xs); }
.footer a { color: var(--color-ink-2); font-size: var(--text-sm); text-decoration: none; }
.footer a:hover { text-decoration: underline; color: var(--color-ink); }
.footer__base { grid-column: 1 / -1; padding-top: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); font-size: var(--text-xs); color: var(--color-muted); }

/* ---------------------------------------------------------------- policy pages */
.doc { padding-block: var(--space-2xl) var(--section-gap-s); }
.doc .container { max-width: 52rem; }
.doc h1 { font-size: var(--text-3xl); font-weight: 600; letter-spacing: var(--tracking-display); line-height: 1.1; }
.doc__updated { margin-top: var(--space-sm); color: var(--color-muted); font-size: var(--text-sm); }
.doc h2 { margin-top: var(--space-xl); font-size: var(--text-lg); font-weight: 600; }
.doc p, .doc li { color: var(--color-ink-2); }
.doc strong { font-weight: 600; color: var(--color-ink); }
.doc p { margin-top: var(--space-sm); max-width: 68ch; }
.doc ul { margin: var(--space-sm) 0 0; padding-left: 1.2em; display: grid; gap: var(--space-xs); max-width: 68ch; }
.doc table { margin-top: var(--space-md); width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.doc th, .doc td { text-align: left; vertical-align: top; padding: var(--space-sm); border-bottom: var(--rule-hair) solid var(--color-rule); }
.doc th { font-weight: 600; color: var(--color-ink); }
.doc .fill { background: var(--color-accent-soft); color: var(--color-ink); padding: 0 0.3em; border-radius: 4px; font-weight: 500; }
.doc a { color: var(--color-accent); }
.doc .steps { counter-reset: s; list-style: none; padding: 0; }
.doc .steps li { counter-increment: s; padding-left: 2.2em; position: relative; }
.doc .steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 1.6em; height: 1.6em; border-radius: 50%; background: var(--color-accent-soft); color: var(--color-accent); font-weight: 600; font-size: var(--text-sm); display: grid; place-items: center; }

/* ---------------------------------------------------------------- small screens */
@media (max-width: 60rem) {
  .hero .container, .split { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .desk { padding-left: var(--space-lg); }
  .prices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .get { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .desk { padding-bottom: 8rem; }
  .plan:nth-child(3) { border-left: 0; }
  .plan:nth-child(n + 3) { border-top: var(--rule-hair) solid var(--color-rule); }
  .footer .container { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer .container > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 40rem) {
  .nav__links { display: none; }
  .nav .container { justify-content: space-between; }
  .desk { padding: 0; }
  .receipt { position: relative; left: auto; bottom: auto; width: 13rem; margin: calc(var(--space-xl) * -1) 0 0 var(--space-md); font-size: 0.6875rem; }
  .spoken li { grid-template-columns: minmax(0, 1fr); gap: var(--space-xs); }
  .spoken .to { display: none; }
  .papers { grid-template-columns: minmax(0, 1fr); }
  .prices { grid-template-columns: minmax(0, 1fr); }
  .plan + .plan { border-left: 0; border-top: var(--rule-hair) solid var(--color-rule); }
  .get { grid-template-columns: minmax(0, 1fr); }
  .facts div { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xs); }
}
