/* css/home.css: the ONLY stylesheet of the home page (/ and /hi/).
 *
 * Self-contained on purpose: on 17 Nov 2026 the live site served the new
 * home.css with an old landing.css, and the page came out green on cream.
 * So the home page no longer loads landing.css. The block between BASE-BEGIN
 * and BASE-END is a byte-for-byte copy of css/landing.css (fonts, tokens,
 * header, buttons, FAQ, footer); tests/test_home_css_base.php fails if the two
 * drift. After editing landing.css, paste it here again.
 */
/* BASE-BEGIN css/landing.css */
:root {
  color-scheme: light;
  --paper: #f7f5ee;
  --surface: #fffdf7;
  --ink: #17332b;
  --muted: #4e5f57;
  --rule: #d9d9cb;
  --brand: #16483a;
  --brand-hover: #10372b;
  --accent: #89611e;
  --display: "Instrument Serif", Georgia, serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.6 Inter, system-ui, sans-serif;
}

h1, h2, h3, p { margin: 0; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.wrap {
  width: min(1184px, calc(100% - 64px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 16px;
  padding: 8px 14px;
  background: var(--surface);
  transform: translateY(-200%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  border-bottom: 1px solid rgba(217, 217, 203, .8);
  background: rgba(247, 245, 238, .93);
  backdrop-filter: blur(12px);
}

.nav, .navlinks, .brand, .actions {
  display: flex;
  align-items: center;
}

.nav {
  min-height: 77px;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -.04em;
  white-space: nowrap;
  text-decoration: none;
}

.brand img { border-radius: 7px; }

.navlinks { gap: clamp(16px, 2.4vw, 34px); }

.navlinks > a:not(.button) {
  padding-block: 10px;
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.navlinks > a:hover, .site-footer a:hover { text-decoration: underline; }

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 10px 17px;
  background: var(--brand);
  color: #fff;
  font-size: .88rem;
  font-weight: 650;
  text-align: center;
  text-decoration: none;
}

.button:hover { background: var(--brand-hover); }

.button-outline {
  border-color: #a5b2a7;
  background: transparent;
  color: var(--brand);
}

.button-outline:hover { background: #e9ede3; }

.flash-offer { position: relative; isolation: isolate; min-height: 92px; overflow: hidden; background: #102f29; color: #fff; }
.flash-offer > img { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 48%; opacity: .42; }
.flash-offer::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(9,31,26,.96), rgba(18,62,49,.88), rgba(9,31,26,.72)); }
.flash-offer__content { display: grid; grid-template-columns: auto minmax(180px,1fr) auto auto auto; align-items: center; gap: 16px; min-height: 92px; padding-block: 13px; }
.flash-offer__spark { display: inline-flex; align-items: center; gap: 5px; color: #f8d380; font-size: .71rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; animation: offerPulse 1.8s ease-in-out infinite; }
.flash-offer__content strong { display: block; font-size: 1rem; }
.flash-offer__content p { margin: 2px 0 0; color: rgba(255,255,255,.8); font-size: .78rem; }
.flash-offer__discount { padding: 7px 10px; border-radius: 999px; background: #f8d380; color: #392804; font-size: .78rem; font-weight: 850; white-space: nowrap; }
.flash-offer__code { font-size: .77rem; white-space: nowrap; }
.flash-offer__code b { margin-left: 3px; padding: 4px 7px; border: 1px dashed rgba(255,255,255,.75); border-radius: 4px; letter-spacing: .08em; }
.flash-offer__action { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 7px 11px; border-radius: 7px; background: #fff; color: #17332b; font-size: .78rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
.flash-offer__action:hover { background: #edf3eb; }
@keyframes offerPulse { 50% { transform: scale(1.035); filter: brightness(1.13); } }

.hero {
  padding: clamp(48px, 7vw, 105px) 0;
  background:
    radial-gradient(ellipse at 95% 60%, #e7ebde, transparent 63%),
    linear-gradient(135deg, #f7f5ee 0%, #fbfaf4 55%, #f0f2e8 100%);
  border-bottom: 1px solid var(--rule);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.03fr 1fr;
  align-items: center;
  gap: clamp(28px, 5.5vw, 84px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
}

h1, h2 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -.027em;
}

h1 {
  margin-top: 14px;
  font-size: clamp(3.2rem, 6.35vw, 5.5rem);
  line-height: .97;
}

h1 em { display: block; }
h1 em, h2 em { color: #35604e; }

.hero-description {
  max-width: 43ch;
  margin-top: 23px;
  color: var(--muted);
  font-size: clamp(1rem, 1.45vw, 1.17rem);
}

.actions {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 18px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: .8rem;
  list-style: none;
}

.hero-points li { display: inline-flex; align-items: center; gap: 5px; }
.hero-points i { color: #2c7a5d; font-size: .92rem; }

.invoice-preview {
  transform: rotate(1.2deg);
  transition: transform .2s ease, box-shadow .2s ease;
}

.invoice-preview:hover {
  transform: rotate(0) translateY(-3px);
  box-shadow: 0 24px 46px -27px #1a362ac0;
}

.invoice-preview {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #cbd3c4;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 20px 40px -27px #1a362ac0;
}

.invoice-preview > img {
  display: block;
  width: 100%;
  height: clamp(220px, 29vw, 330px);
  object-fit: cover;
  object-position: center;
}

.invoice-paper { padding: clamp(14px, 3vw, 28px); }

.preview-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--ink);
  font-size: .95rem;
  font-weight: 700;
}

.preview-heading i { margin-right: 5px; color: var(--accent); }
.preview-heading small {
  padding: 3px 7px;
  border-radius: 999px;
  background: #e3f1e8;
  color: #216044;
  font-size: .67rem;
  font-weight: 700;
  white-space: nowrap;
}

.invoice-paper table {
  width: 100%;
  border-collapse: collapse;
  font-size: .84rem;
  font-variant-numeric: tabular-nums;
}

.invoice-paper th, .invoice-paper td {
  padding: 8px 5px;
  border-bottom: 1px solid var(--rule);
  text-align: left;
}

.invoice-paper thead th {
  color: var(--muted);
  font-size: .74rem;
  font-weight: 600;
}

.invoice-paper tr > :last-child { text-align: right; }
.invoice-paper tfoot th { font-weight: 500; }
.invoice-paper .invoice-total > * { border: 0; font-weight: 700; }

.section { padding-block: clamp(48px, 7vw, 91px); }
.demo-section { border-bottom: 1px solid var(--rule); background: linear-gradient(115deg, #fffdf7, #edf3eb); }
.demo-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .9fr); gap: clamp(28px, 6vw, 90px); align-items: center; }
.demo-links { display: grid; gap: 12px; }
.demo-link { display: grid; grid-template-columns: auto 1fr auto; gap: 13px; align-items: center; padding: 15px; border: 1px solid #c9d7ca; border-radius: 13px; background: #fffdf7; box-shadow: 0 12px 27px -24px rgba(23, 51, 43, .8); color: var(--ink); text-decoration: none; transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.demo-link:hover { transform: translateY(-2px); border-color: #71937a; box-shadow: 0 18px 31px -22px rgba(23, 51, 43, .7); }
.demo-link__icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; background: var(--brand); color: #fff; font-size: 1.08rem; }
.demo-link strong, .demo-link small { display: block; }
.demo-link strong { font-size: .94rem; }
.demo-link small { margin-top: 2px; color: var(--muted); font-size: .78rem; }
.demo-link > i { color: var(--accent); }
h2 { font-size: clamp(2.65rem, 4.8vw, 4.2rem); line-height: 1.02; }
h3 { font-size: 1rem; font-weight: 700; }
.section-intro { max-width: 60ch; margin-top: 13px; color: var(--muted); font-size: 1rem; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 29px;
  overflow: hidden;
  gap: 1px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--rule);
}

.feature {
  padding: clamp(21px, 3vw, 36px);
  background: var(--surface);
  transition: background .16s ease, transform .16s ease;
}

.feature:hover { background: #fff; transform: translateY(-2px); }

.feature i {
  display: grid;
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  place-items: center;
  border-radius: 9px;
  background: #eef3e9;
  color: var(--accent);
  font-size: 1.08rem;
}
.feature p, .steps p, .faq p { margin-top: 5px; color: var(--muted); font-size: .9rem; }
.capability-intro { max-width: 760px; margin: clamp(44px, 7vw, 78px) auto 24px; text-align: center; }
.capability-intro .eyebrow { justify-content: center; }
.capability-intro h3 { margin-top: 11px; font: 400 clamp(1.8rem, 3.4vw, 2.65rem)/1.1 var(--display); }
.capability-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.capability-card { padding: clamp(21px, 3vw, 31px); border: 1px solid #d6dfd4; border-radius: 13px; background: #fffdf7; box-shadow: 0 14px 31px -29px rgba(23, 51, 43, .72); }
.capability-card > i { display: grid; width: 39px; height: 39px; place-items: center; border-radius: 10px; background: #edf3eb; color: var(--accent); font-size: 1.12rem; }
.capability-card h3 { margin-top: 15px; font-size: 1.03rem; }
.capability-card ul { display: grid; gap: 8px; margin: 14px 0 0; padding: 0; color: var(--muted); font-size: .88rem; list-style: none; }
.capability-card li { position: relative; padding-left: 17px; }
.capability-card li::before { content: ""; position: absolute; top: .52em; left: 1px; width: 7px; height: 7px; border-radius: 50%; background: #4d8769; }

.setup-section { border-block: 1px solid var(--rule); background: #edf0e5; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  align-items: start;
  gap: clamp(22px, 7vw, 96px);
}

.split h2 em { display: block; }

.text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: .9rem;
  font-weight: 700;
  text-underline-offset: 3px;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  display: flex;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid var(--rule);
}

.steps li:first-child { padding-top: 0; }

.steps li::before {
  content: counter(step);
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #b8c4b5;
  border-radius: 50%;
  color: var(--brand);
  font-size: .78rem;
  font-weight: 700;
}

.faq details { border-bottom: 1px solid var(--rule); }
.faq details:first-child { border-top: 1px solid var(--rule); }

.faq summary {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 4px;
  cursor: pointer;
  font-size: .95rem;
  font-weight: 650;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after { content: "+" / ""; color: var(--accent); font-size: 1.25rem; }
.faq details[open] summary::after { content: "−" / ""; }
.faq p { margin: 0 4px 16px; }

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(24px, 5vw, 55px);
  border-radius: 12px;
  background: var(--brand-hover);
  color: #fffdf7;
}

.cta h2 { font-size: clamp(2.4rem, 4.35vw, 3.8rem); }
.button-light { flex-shrink: 0; background: #e9d7a7; color: var(--ink); }
.button-light:hover { background: #f4e7c7; }
.cta :focus-visible { outline-color: #e9d7a7; }

.site-footer {
  margin-top: clamp(42px, 7vw, 86px);
  border-top: 1px solid var(--rule);
  background: #edf0e5;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(125px, .36fr) minmax(125px, .36fr);
  gap: 18px 32px;
  padding-block: 30px 27px;
}

.footer-brand p {
  max-width: 35ch;
  margin-top: 8px;
  color: var(--muted);
  font-size: .86rem;
}

.footer-grid nav { display: grid; justify-items: start; }
.footer-grid h2 {
  margin-bottom: 4px;
  font: 700 .88rem Inter, system-ui, sans-serif;
  letter-spacing: 0;
}

.footer-grid nav a, .footer-legal a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  font-size: .84rem;
  text-decoration: none;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 20px;
  padding-block: 8px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: .8rem;
}

@media (max-width: 800px) {
  .wrap { width: calc(100% - 40px); }
  .hero-grid, .split, .demo-layout { grid-template-columns: 1fr; }
  .hero-copy, .invoice-preview { max-width: 570px; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .navlinks .nav-support { display: none; }
  .invoice-preview { transform: none; }
  .flash-offer__content { grid-template-columns: minmax(0,1fr) auto auto; gap: 8px 14px; }
  .flash-offer__spark { grid-column: 1 / -1; }
  .flash-offer__code { display: none; }
}

@media (max-width: 540px) {
  .wrap { width: calc(100% - 32px); }
  .nav { min-height: 64px; gap: 8px; }
  .navlinks { gap: 10px; }
  .navlinks .section-link { display: none; }
  .navlinks .button { padding-inline: 9px; font-size: .77rem; }
  .navlinks > .nav-sign-in { font-size: .8rem; }
  .brand { gap: 6px; font-size: 1rem; }
  .brand img { width: 27px; height: 27px; }
  .feature-grid { grid-template-columns: 1fr; }
  .capability-grid { grid-template-columns: 1fr; }
  .flash-offer__content { grid-template-columns: 1fr auto; min-height: 0; padding-block: 12px; }
  .flash-offer__discount { grid-column: 1; justify-self: start; }
  .flash-offer__action { grid-column: 2; grid-row: 2; }
  .hero-points { gap: 7px 12px; }
  .cta { align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  .footer-brand { grid-column: 1 / -1; }
}
/* BASE-END css/landing.css */

/* ════════════════════════════════════════════════════════════════════
 * HOME PAGE (/ and /hi/). Everything below the base block.
 *
 * Motion rules: transform and opacity only (plus one stroke draw); content is
 * visible by default and only hidden for an entrance once js/home.js has set
 * .motion-ok on <html> (it does not when the visitor prefers reduced motion).
 * Nothing that carries meaning starts empty: the hero bill and the receipt are
 * printed complete, and motion only highlights them.
 * ════════════════════════════════════════════════════════════════════ */

.home h2 { max-width: 20ch; }
.on-dark { color: var(--on-dark); }
.on-dark h2, .on-dark h3 { color: var(--on-dark); }
.num { font-variant-numeric: tabular-nums; }
.home-hi h1, .home-hi h2 { letter-spacing: 0; line-height: 1.22; }
.button-lg { min-height: 56px; padding: 0 28px; font-size: 1.0625rem; }

/* ── Entrances ─────────────────────────────────────────────────── */
.motion-ok [data-reveal] { transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); transition-delay: calc(var(--i, 0) * 60ms); }
.motion-ok [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(22px); }

/* ── Offer strip ───────────────────────────────────────────────── */
.offer-strip { position: relative; z-index: 41; overflow: hidden; background: var(--gold); color: var(--ink); }
.offer-strip::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 35%, rgba(255, 250, 230, 0.7) 50%, transparent 65%);
  transform: translateX(-100%);
}
.motion-ok .offer-strip::after { animation: offer-sheen 5200ms var(--ease-in-out) 1200ms infinite; }
@keyframes offer-sheen { 0% { transform: translateX(-100%); } 40%, 100% { transform: translateX(100%); } }
.offer-inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 10px 14px; min-height: 40px; padding-block: 4px; }
.offer-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--velvet); box-shadow: 0 0 0 0 rgba(61, 11, 24, 0.5); }
.motion-ok .offer-dot { animation: offer-pulse 2200ms ease-out infinite; }
@keyframes offer-pulse { 0% { box-shadow: 0 0 0 0 rgba(61, 11, 24, 0.45); } 70%, 100% { box-shadow: 0 0 0 8px rgba(61, 11, 24, 0); } }
.offer-text { font-size: .95rem; font-weight: 600; line-height: 1.3; }
.offer-link { display: inline-flex; min-height: 32px; align-items: center; gap: 4px; padding: 0 12px; border-radius: 999px; background: var(--velvet); color: var(--gold); font-size: .875rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.offer-link svg { transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .offer-link:hover svg { transform: translateX(3px); } }
.offer-strip :focus-visible { outline-color: var(--velvet); }

/* the home header shows the language switch on phones too */
@media (max-width: 480px) {
  .is-home .navlinks > a.nav-lang { display: inline-flex; padding: 0 8px; }
  .is-home .navlinks > a.nav-sign-in { display: none; }
}

/* ── Hero: full screen ─────────────────────────────────────────── */
.h-hero {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: center;
  min-height: calc(100vh - 108px); min-height: calc(100svh - 108px);
  background: var(--velvet-950);
}
.h-fx { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.h-glow { position: absolute; border-radius: 50%; filter: blur(10px); }
.h-glow-a { width: 70vmax; height: 70vmax; right: -22vmax; top: -34vmax; background: radial-gradient(closest-side, rgba(227, 184, 91, 0.22), transparent 70%); }
.h-glow-b { width: 60vmax; height: 60vmax; left: -24vmax; bottom: -30vmax; background: radial-gradient(closest-side, rgba(110, 22, 44, 0.95), transparent 72%); }
.motion-ok .h-glow-a { animation: drift-a 16s var(--ease-in-out) infinite alternate; }
.motion-ok .h-glow-b { animation: drift-b 19s var(--ease-in-out) infinite alternate; }
@keyframes drift-a { to { transform: translate(-9vmax, 7vmax) scale(1.08); } }
@keyframes drift-b { to { transform: translate(8vmax, -6vmax) scale(1.1); } }
.h-trace { position: absolute; inset: auto 0 0 0; width: 100%; height: 72%; opacity: .5; }
.h-trace path { fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1600; stroke-dashoffset: 0; opacity: .55; }
.motion-ok .h-trace path { animation: trace 2600ms var(--ease-in-out) 200ms both; }
@keyframes trace { from { stroke-dashoffset: 1600; } }
.h-dust { position: absolute; left: var(--x); top: var(--y); width: 4px; height: 4px; border-radius: 50%; background: var(--gold-300); opacity: .35; box-shadow: 0 0 10px 2px rgba(243, 217, 149, 0.45); }
.motion-ok .h-dust { animation: dust 9s ease-in-out var(--d) infinite; }
@keyframes dust { 0%, 100% { transform: translateY(0); opacity: .15; } 50% { transform: translateY(-36px); opacity: .7; } }

.h-hero-grid {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  gap: clamp(32px, 5vw, 80px); align-items: center;
  padding-block: clamp(28px, 5vh, 64px) clamp(64px, 9vh, 96px);
}
.h-eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--gold); font-weight: 600; font-size: .95rem; }
.h-eyebrow::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: currentColor; }
.h-hero h1 { margin-top: 14px; font-size: clamp(2.4rem, 4.6vw, 4.5rem); line-height: 1.03; max-width: 14ch; }
.home-hi .h-hero h1 { font-size: clamp(2.3rem, 4.4vw, 4.1rem); line-height: 1.18; max-width: 13ch; }
.h-why { margin-top: 18px; max-width: 34ch; color: var(--on-dark); font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.4; }
.h-gains { display: grid; gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; }
.h-gains li { display: flex; align-items: flex-start; gap: 10px; color: var(--on-dark-2); font-size: 1.0625rem; line-height: 1.4; }
.h-gains svg { flex: none; width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: rgba(227, 184, 91, 0.16); color: var(--gold); }
.motion-ok .h-gains li { animation: gain-in 520ms var(--ease-out) both; }
.motion-ok .h-gains li:nth-child(2) { animation-delay: 90ms; }
.motion-ok .h-gains li:nth-child(3) { animation-delay: 180ms; }
@keyframes gain-in { from { opacity: 0; transform: translateX(-10px); } }
.h-hero .actions { margin-top: 28px; }
.h-hero-note { margin-top: 12px; color: var(--on-dark-2); font-size: .95rem; }

/* scroll cue */
.h-next {
  position: absolute; left: 50%; bottom: 14px; display: inline-flex; min-height: 44px; align-items: center; gap: 8px;
  padding: 0 14px; border-radius: 999px; color: var(--on-dark-2); font-size: .9rem; font-weight: 600; text-decoration: none;
  transform: translateX(-50%); white-space: nowrap;
}
.h-next svg { width: 18px; height: 18px; }
.motion-ok .h-next svg { animation: nudge 1800ms var(--ease-in-out) infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
@media (hover: hover) and (pointer: fine) { .h-next:hover { color: var(--gold); } }

/* the counter: a touchstone slab with a gold streak, the bill on top */
.h-counter { position: relative; margin: 0; padding: 30px 0 0; }
.h-stone {
  position: absolute; inset: 0 -6% 34px 2%; border-radius: 36px; overflow: hidden;
  background: radial-gradient(120% 90% at 30% 20%, #2c2621, var(--stone) 70%);
  transform: rotate(-3deg);
}
.h-streak { position: absolute; right: 4%; bottom: 5%; width: 46%; height: 12%; }
.h-streak path { fill: none; stroke: var(--gold); stroke-width: 12; stroke-linecap: round; opacity: .9; stroke-dasharray: 700; stroke-dashoffset: 0; }
.motion-ok .h-streak path { animation: streak 1600ms var(--ease-in-out) 350ms both; }
@keyframes streak { from { stroke-dashoffset: 700; } }

.bill {
  --rx: 0deg; --ry: 0deg;
  position: relative; z-index: 1; width: min(100%, 540px); margin-left: auto;
  padding: 22px 22px 20px; border-radius: 22px; background: var(--paper); color: var(--ink);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7), 0 2px 0 rgba(255, 255, 255, 0.6) inset;
  transform: perspective(1200px) rotateX(var(--rx)) rotateY(var(--ry)) rotate(1.2deg);
  transition: transform 500ms var(--ease-out);
  font-size: .9rem;
}
.bill-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.bill-title { font-family: var(--display); font-size: 1.5rem; line-height: 1.1; }
.bill-shop { color: #6a5a4d; font-size: .85rem; }
.bill-cust { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 10px 12px; border-radius: 12px; background: var(--chandi); }
.bill-cust b { margin-left: auto; font-weight: 600; }
.bill .k { display: inline-grid; min-width: 30px; height: 24px; padding: 0 6px; place-items: center; border-radius: 6px; background: var(--stone); color: var(--on-dark); font: 600 .75rem/1 var(--text); }
.bill-head, .bill-row { display: grid; grid-template-columns: 1.55fr .6fr 1fr .95fr .75fr 1.35fr; gap: 6px; align-items: baseline; }
.bill-head { margin-top: 16px; padding: 0 4px 6px; color: #6a5a4d; font-size: .78rem; }
.bill-head > :last-child, .bill-row > .num { text-align: right; }
.bill-row { padding: 12px 4px; border-radius: 10px; background: #fff; font-variant-numeric: tabular-nums; }
.bill-row > :first-child { font-weight: 600; }
.bill-sub { display: none; }
.bill-sums { display: grid; gap: 4px; margin-top: 12px; padding: 0 4px; font-variant-numeric: tabular-nums; }
.bill-sums > div { display: flex; justify-content: space-between; color: #4b4038; }
.bill-total { position: relative; overflow: hidden; margin-top: 6px; padding: 12px 14px; border-radius: 12px; background: var(--velvet); color: var(--on-dark) !important; font-size: 1.05rem; }
.bill-total .num { color: var(--gold); font-family: var(--display); font-size: 1.5rem; line-height: 1; }
.bill-done { display: flex; align-items: center; gap: 8px; margin-top: 12px; color: var(--leaf); font-size: .85rem; font-weight: 600; }
.bill-done svg { flex: none; }
/* motion: each part of the finished bill is lit as its key is pressed */
.bill [data-b] { position: relative; transition: box-shadow 260ms ease, background-color 260ms ease; }
.bill [data-b].is-hit { box-shadow: 0 0 0 2px var(--gold); border-radius: 10px; }
.bill-total::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(243, 217, 149, 0.35) 50%, transparent 70%); transform: translateX(-110%); }
.bill-total.is-hit::after { transform: translateX(110%); transition: transform 900ms var(--ease-out); }

.h-chips { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.h-chip {
  position: absolute; display: grid; gap: 2px; padding: 10px 14px; border-radius: 14px;
  background: rgba(37, 32, 28, 0.94); color: var(--on-dark); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(243, 217, 149, 0.18);
  font-size: .8rem; line-height: 1.25; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.h-chip em { font-style: normal; color: var(--on-dark-2); }
.h-chip b { color: var(--gold); font-family: var(--display); font-weight: 400; font-size: 1.2rem; }
.h-chip-a { right: -2%; bottom: 46px; }
.h-chip-b { right: -3%; top: -2%; }
.motion-ok .h-chip { animation: float 7s var(--ease-in-out) infinite; }
.motion-ok .h-chip-b { animation-delay: -3.5s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.keys-rail { position: relative; z-index: 2; display: flex; gap: 8px; margin: 16px 0 0 4%; }
.key {
  display: inline-grid; min-width: 46px; height: 42px; padding: 0 10px; place-items: center;
  border-radius: 10px; background: var(--stone-800); color: var(--on-dark);
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.08);
  font: 600 .9rem/1 var(--text);
  transition: transform 120ms var(--ease-out);
}
.key.is-down { transform: translateY(3px); background: var(--gold); color: var(--ink); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.3); }
.h-counter figcaption { position: relative; z-index: 2; margin-top: 12px; padding: 0 0 4px 4%; max-width: 60ch; color: var(--on-dark-2); font-size: .85rem; }

/* ── Section heads ─────────────────────────────────────────────── */
.sec-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px 64px; align-items: end; }
.sec-head p { max-width: 46ch; color: var(--ink-2); font-size: 1.125rem; }
.sec-head .text-link { display: inline; min-height: 0; margin-left: 4px; }
.sec-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 36px; }
.sec-cta p { color: var(--ink-2); font-size: .95rem; }

/* ── Kyun: pain → fix ──────────────────────────────────────────── */
.pains { padding-block: clamp(56px, 6.5vw, 88px); background: var(--chandi); }
.pain-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: clamp(32px, 4vw, 52px) 0 0; padding: 0; list-style: none; }
.pain { display: grid; align-content: start; gap: 14px; padding: 22px; border-radius: 22px; background: var(--paper); }
.pain-was { position: relative; justify-self: start; color: #6d5f53; font-size: .975rem; line-height: 1.45; }
.pain-was::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; border-radius: 2px;
  background: rgba(198, 59, 38, 0.55); transform-origin: left; transform: scaleX(0);
}
.pain-now { display: flex; align-items: flex-start; gap: 10px; color: var(--ink); font-size: 1.125rem; font-weight: 600; line-height: 1.4; }
.pain-now svg { flex: none; width: 26px; height: 26px; padding: 4px; border-radius: 50%; background: var(--velvet); color: var(--gold); }
.home-hi .pain-now { font-size: 1.15rem; }
/* the old way gets struck once the card is in view (motion only) */
.motion-ok .pain.is-in .pain-was::after { transform: scaleX(1); transition: transform 700ms var(--ease-out) 300ms; }

/* ── Story: the bill maths, compact ───────────────────────────── */
.story { background: var(--stone); padding-block: clamp(56px, 6.5vw, 88px); }
.story-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.story-lead { margin-top: 16px; max-width: 44ch; color: var(--on-dark-2); font-size: 1.125rem; }
.story-steps { display: grid; gap: 6px; margin: 28px 0 12px; padding: 0; list-style: none; counter-reset: s; }
.story-steps li {
  counter-increment: s; position: relative; padding: 12px 14px 12px 62px; border-radius: 14px;
  transition: background-color 300ms ease;
}
.story-steps li::before {
  content: counter(s); position: absolute; left: 12px; top: 12px; width: 36px; height: 36px; display: grid; place-items: center;
  border-radius: 50%; background: var(--stone-800); color: var(--gold); font-family: var(--display); font-size: 1.2rem; line-height: 1;
  transition: background-color 300ms ease, color 300ms ease;
}
.story-steps h3 { font-family: var(--display); font-weight: 400; font-size: 1.35rem; line-height: 1.25; }
.story-steps p { margin-top: 2px; color: var(--on-dark-2); font-size: 1rem; }
.story-steps li.is-active { background: var(--stone-800); }
.story-steps li.is-active::before { background: var(--gold); color: var(--ink); }

.receipt {
  padding: 28px 28px 34px; background: var(--paper); color: var(--ink); border-radius: 6px 6px 0 0;
  font-variant-numeric: tabular-nums;
  -webkit-mask: radial-gradient(10px 10px at 50% 100%, transparent 98%, #000) 50% 100% / 20px 100% repeat-x;
          mask: radial-gradient(10px 10px at 50% 100%, transparent 98%, #000) 50% 100% / 20px 100% repeat-x;
}
.receipt-head { display: flex; justify-content: space-between; color: #6a5a4d; font-size: .9rem; }
.receipt-item { margin-top: 6px; font-family: var(--display); font-size: 1.6rem; line-height: 1.2; }
.receipt dl { margin: 16px 0 0; }
.r-line { display: flex; justify-content: space-between; gap: 16px; padding: 9px 10px; border-radius: 8px; transition: background-color 360ms ease; }
.r-line dt { color: #4b4038; }
.r-line dd { margin: 0; font-weight: 600; white-space: nowrap; }
.r-sub { margin-top: 6px; background: var(--chandi); }
.r-total { margin-top: 10px; padding: 16px 14px; background: var(--velvet); color: var(--on-dark); }
.r-total dt { color: var(--on-dark); font-weight: 600; }
.r-total dd { color: var(--gold); font-family: var(--display); font-size: 1.9rem; font-weight: 400; line-height: 1; }
.receipt-note { margin-top: 14px; color: #6a5a4d; font-size: .85rem; }
/* the receipt is always complete; the lines of the current step are lit */
.receipt[data-at="1"] .r-line[data-line="1"],
.receipt[data-at="2"] .r-line[data-line="2"],
.receipt[data-at="3"] .r-line[data-line="3"] { background: rgba(227, 184, 91, 0.3); }
.receipt[data-at="4"] .r-total { box-shadow: 0 0 0 3px var(--gold); }

/* ── Old gold ──────────────────────────────────────────────────── */
.oldgold { position: relative; background: var(--velvet); padding-block: clamp(56px, 6.5vw, 88px); }
.og-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.og-copy p { margin-top: 18px; max-width: 44ch; color: var(--on-dark-2); font-size: 1.125rem; }
.og-copy .og-try { color: var(--gold); font-weight: 600; }
.og-copy .text-link { margin-top: 10px; }
.og-calc { padding: clamp(22px, 3vw, 34px); border-radius: 28px; background: var(--paper); color: var(--ink); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.6); }
.og-calc h3 { color: var(--ink); font-family: var(--display); font-weight: 400; font-size: 1.6rem; }
.og-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.og-fields label { display: grid; gap: 6px; align-content: end; font-size: .95rem; color: var(--ink-2); }
.og-fields input {
  width: 100%; min-height: 52px; padding: 0 14px; border: 2px solid transparent; border-radius: 12px;
  background: var(--chandi); color: var(--ink); font: 600 1.2rem/1 var(--text); font-variant-numeric: tabular-nums;
  transition: border-color 160ms ease, background-color 160ms ease;
}
.og-fields input:focus { outline: none; border-color: var(--gold-700); background: #fff; }
.og-fields input:focus-visible { outline: 3px solid var(--gold-700); outline-offset: 2px; }
.og-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.og-chips button {
  min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--chandi-200); color: var(--ink);
  font: 600 .95rem/1 var(--text); cursor: pointer; transition: background-color 160ms ease, color 160ms ease, transform 160ms var(--ease-out);
}
.og-chips button:active { transform: scale(0.97); }
.og-chips button[aria-pressed="true"] { background: var(--velvet); color: var(--gold); }
.og-stone { position: relative; display: grid; gap: 10px; margin-top: 20px; padding: 18px; border-radius: 16px; background: radial-gradient(120% 120% at 20% 0%, #2c2621, var(--stone) 70%); }
.og-streak { display: block; height: 14px; border-radius: 999px; transform-origin: left; transform: scaleX(var(--w)); transition: transform 700ms var(--ease-out); }
.og-gross { background: rgba(247, 239, 225, 0.32); }
.og-fine { background: var(--gold); }
.og-out { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 16px 0 0; }
.og-out > div { padding: 12px 14px; border-radius: 14px; background: var(--chandi); }
.og-out dt { color: var(--ink-2); font-size: .85rem; }
.og-out dd { margin: 2px 0 0; font-weight: 600; font-size: 1.1rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.og-out .og-credit { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--velvet); }
.og-out .og-credit dt { color: var(--on-dark); font-size: 1rem; font-weight: 600; }
.og-out .og-credit dd { color: var(--gold); font-family: var(--display); font-weight: 400; font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1; }
.og-note { margin-top: 12px; color: var(--ink-2); font-size: .85rem; }

/* ── Tiles ─────────────────────────────────────────────────────── */
.bento-section { padding-block: clamp(56px, 6.5vw, 88px); background: var(--chandi); }
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: clamp(32px, 4vw, 52px); }
.tile { display: flex; flex-direction: column; padding: 22px; border-radius: 24px; background: var(--paper); }
.tile h3 a { text-decoration: none; }
.tile h3 a::after { content: ""; display: inline-block; width: .55em; height: .55em; margin-left: .4em; border: solid currentColor; border-width: 2px 2px 0 0; transform: translateY(-.1em) rotate(45deg); transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .tile h3 a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
  .tile h3 a:hover::after { transform: translate(3px, -.1em) rotate(45deg); }
}
.tile p { margin-top: 8px; color: var(--ink-2); font-size: 1rem; }
.tile.on-dark p { color: var(--on-dark-2); }
.tile-demo { display: grid; min-height: 176px; margin-bottom: 18px; place-items: center; border-radius: 16px; background: var(--chandi); overflow: hidden; }
/* wide tiles: demo beside the text, so no tall empty box */
.t-girvi, .t-gst, .t-stock, .t-keys { grid-column: span 2; }
.t-girvi, .t-stock, .t-keys { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; align-items: center; }
.t-girvi .tile-demo, .t-stock .tile-demo, .t-keys .tile-demo { margin-bottom: 0; }
.t-girvi { background: var(--velvet); }
.t-girvi .tile-demo { padding: 18px 0; background: var(--velvet-900); }
.t-girvi h3 { font-family: var(--display); font-weight: 400; font-size: clamp(1.45rem, 2vw, 1.85rem); line-height: 1.2; }
.t-girvi h3 a:focus-visible { outline-color: var(--gold); }

/* girvi */
.loan { width: min(100% - 32px, 380px); font-variant-numeric: tabular-nums; }
.loan-title { display: flex; justify-content: space-between; color: var(--on-dark); font-family: var(--display); font-size: 1.3rem; }
.loan-title span { color: var(--on-dark-2); font-family: var(--text); font-size: .9rem; }
.loan-row { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; color: var(--on-dark-2); font-size: .95rem; }
.loan-row b { color: var(--on-dark); font-weight: 600; text-align: right; }
.loan-int { margin-top: 4px; padding: 10px 12px; border-radius: 12px; background: rgba(227, 184, 91, 0.12); }
.loan-int span { color: var(--on-dark); }
.loan-int b { color: var(--gold); font-family: var(--display); font-size: 1.6rem; font-weight: 400; line-height: 1; }
.loan-bar { height: 6px; margin-top: 12px; border-radius: 6px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.loan-bar span { display: block; height: 100%; background: var(--gold); transform-origin: left; transform: scaleX(.78); }
.loan-formula { margin-top: 8px; color: var(--on-dark-2); font-size: .9rem; }

/* gst report */
.t-gst .tile-demo { place-items: stretch; padding: 16px; }
.gst-tabs { display: flex; gap: 6px; }
.gst-tabs button {
  min-height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2);
  font: 600 .95rem/1 var(--text); cursor: pointer; transition: background-color 200ms ease, color 200ms ease;
}
.gst-tabs button[aria-selected="true"] { background: var(--velvet); color: var(--gold); }
.gst-panel { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: #fff; }
.gst-panel table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.gst-panel th { padding: 4px 0; color: var(--ink-2); font-size: .85rem; font-weight: 600; text-align: left; }
.gst-panel td { padding: 6px 0 2px; font-size: 1.05rem; font-weight: 600; }
.gst-panel .num { text-align: right; }
.gst-panel tbody { transition: opacity 180ms ease, filter 180ms ease; }
.gst-panel.is-swapping tbody { opacity: 0; filter: blur(2px); }
.gst-31a { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 10px; padding-top: 10px; background: linear-gradient(var(--chandi-200), var(--chandi-200)) top / 100% 2px no-repeat; }
.gst-31a span { color: var(--ink-2); font-size: .9rem; }
.gst-31a b { font-family: var(--display); font-weight: 400; font-size: 1.4rem; white-space: nowrap; }

/* schemes */
.beads { display: grid; grid-template-columns: repeat(6, 30px); gap: 10px; }
.beads span { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; background: var(--gold); color: var(--ink); font-size: .8rem; font-weight: 600; }
.beads .bonus { background: var(--velvet); color: var(--gold); box-shadow: 0 0 0 3px rgba(227, 184, 91, 0.45); }
.motion-ok .t-scheme:not(.is-in) .beads span { background: var(--chandi-200); color: var(--ink-2); box-shadow: none; transform: scale(.85); }
.motion-ok .t-scheme .beads span { transition: background-color 260ms ease, color 260ms ease, transform 360ms var(--ease-out), box-shadow 360ms ease; transition-delay: calc(var(--i) * 85ms + 250ms); }
.beads-cap { margin-top: 12px; color: var(--ink-2); font-size: .85rem; text-align: center; max-width: 26ch; }
.t-scheme .tile-demo { align-content: center; }

/* barcode tag */
.tag {
  position: relative; width: 180px; padding: 16px 16px 14px 34px; border-radius: 10px 18px 18px 10px; background: #fff; color: var(--ink);
  box-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.4); transform: rotate(-6deg); font-variant-numeric: tabular-nums;
}
.tag-hole { position: absolute; left: 12px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--chandi); box-shadow: inset 0 0 0 2px var(--chandi-200); }
.tag-bars { display: block; width: 100%; height: 34px; fill: var(--ink); }
.tag-code, .tag-meta, .tag-huid { display: block; font-size: .78rem; line-height: 1.35; }
.tag-code { margin-top: 4px; font-weight: 600; letter-spacing: .04em; }
.tag-huid { color: var(--gold-700); font-weight: 600; }
.tag-scan { position: absolute; left: 26px; right: 8px; top: 14px; height: 2px; border-radius: 2px; background: var(--sindoor); box-shadow: 0 0 10px 2px rgba(198, 59, 38, 0.5); opacity: 0; }
.motion-ok .t-tag.is-in.is-live .tag-scan { animation: scan 2600ms var(--ease-in-out) infinite; }
@keyframes scan { 0% { opacity: 0; transform: translateY(0); } 10% { opacity: 1; } 45% { transform: translateY(30px); } 55% { opacity: 1; } 70%, 100% { opacity: 0; transform: translateY(0); } }

/* whatsapp */
.chat { width: min(100% - 28px, 260px); }
.chat-to { color: var(--ink-2); font-size: .85rem; font-weight: 600; }
.chat-bubble { position: relative; margin-top: 6px; padding: 10px 12px; border-radius: 14px 14px 14px 4px; background: #d9f2df; color: #12311f; font-size: .875rem; line-height: 1.45; min-height: 7.4em; }
.t-wa .tile-demo { background: #ece6db; }

/* karigar rail */
.rail { position: relative; display: grid; gap: 4px; margin: 0; padding: 0 0 0 22px; list-style: none; font-size: .9rem; color: var(--ink-2); }
.rail::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 2px; background: var(--chandi-200); }
.rail li { position: relative; line-height: 1.5; }
.rail li::before { content: ""; position: absolute; left: -21px; top: .45em; width: 10px; height: 10px; border-radius: 50%; background: var(--chandi-200); }
.rail li:nth-child(-n+3)::before { background: var(--gold-700); }
.rail li:nth-child(3) { color: var(--ink); font-weight: 600; }
.motion-ok .t-karigar.is-in.is-live .rail li { animation: rail-step 7200ms steps(1) infinite; animation-delay: calc(var(--n) * 1200ms - 7200ms); }
.motion-ok .t-karigar .rail li:nth-child(1) { --n: 0; } .motion-ok .t-karigar .rail li:nth-child(2) { --n: 1; }
.motion-ok .t-karigar .rail li:nth-child(3) { --n: 2; } .motion-ok .t-karigar .rail li:nth-child(4) { --n: 3; }
.motion-ok .t-karigar .rail li:nth-child(5) { --n: 4; } .motion-ok .t-karigar .rail li:nth-child(6) { --n: 5; }
@keyframes rail-step { 0% { color: var(--ink); font-weight: 600; } 16.66%, 100% { color: var(--ink-2); font-weight: 400; } }

/* purity bars */
.purity { display: grid; gap: 10px; width: min(100% - 32px, 260px); margin: 0; padding: 0; list-style: none; font-variant-numeric: tabular-nums; }
.purity li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: .85rem; }
.purity span { font-weight: 600; }
.purity i { height: 10px; border-radius: 10px; background: var(--gold); transform-origin: left; transform: scaleX(var(--v)); transition: transform 900ms var(--ease-out); }
.purity .silver i { background: #b9b4ab; }
.motion-ok .t-stock:not(.is-in) .purity i { transform: scaleX(.04); }
.purity b { font-weight: 600; color: var(--ink-2); }

/* keyboard */
.keyboard { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 290px; }
.motion-ok .t-keys.is-in.is-live .key { animation: keypress 5000ms steps(1, end) infinite; animation-delay: calc(var(--i) * 1000ms); }
@keyframes keypress { 0% { transform: none; background: var(--stone-800); color: var(--on-dark); } 4% { transform: translateY(3px); background: var(--gold); color: var(--ink); } 12%, 100% { transform: none; background: var(--stone-800); color: var(--on-dark); } }

/* ── How it works ──────────────────────────────────────────────── */
.start { padding-block: clamp(56px, 6.5vw, 88px); background: var(--paper); }
.start-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.start-note { margin: 16px 0 24px; color: var(--gold-700); font-weight: 600; font-size: 1.0625rem; }
.start-steps { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: st; }
.start-steps li { counter-increment: st; position: relative; padding: 22px 22px 22px 88px; border-radius: 22px; background: var(--chandi); }
.start-steps li::before { content: counter(st); position: absolute; left: 22px; top: 50%; width: 46px; height: 46px; margin-top: -23px; display: grid; place-items: center; border-radius: 50%; background: var(--velvet); color: var(--gold); font-family: var(--display); font-size: 1.5rem; line-height: 1; }
.start-steps p { margin-top: 4px; color: var(--ink-2); }

/* ── Trust ─────────────────────────────────────────────────────── */
.trust { padding-block: clamp(56px, 6.5vw, 88px); background: var(--chandi-200); }
.trust-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: clamp(32px, 4vw, 52px) 0 0; padding: 0; list-style: none; }
.trust-item { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; padding: 22px; border-radius: 22px; background: var(--paper); }
.trust-ico { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 14px; background: var(--velvet); color: var(--gold); }
.trust-ico svg { width: 24px; height: 24px; }
/* gold-700 on chandi-200 is 4.35:1; velvet-700 is 10.5:1 (AA needs 4.5) */
.trust .text-link { color: var(--velvet-700); }
.trust-item p { margin-top: 4px; color: var(--ink-2); font-size: 1rem; overflow-wrap: anywhere; }

/* ── Language ──────────────────────────────────────────────────── */
.lang { background: var(--velvet-950); padding-block: clamp(56px, 6.5vw, 88px); }
.lang-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.lang-copy p { margin-top: 18px; max-width: 44ch; color: var(--on-dark-2); font-size: 1.125rem; }
.lang-toggle { display: inline-flex; gap: 4px; margin-top: 24px; padding: 5px; border-radius: 999px; background: var(--velvet); }
.lang-toggle button {
  min-height: 44px; min-width: 96px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; color: var(--on-dark-2);
  font: 600 1rem/1 var(--text); cursor: pointer; transition: background-color 200ms ease, color 200ms ease;
}
.lang-toggle button[aria-pressed="true"] { background: var(--gold); color: var(--ink); }
.appshell { border-radius: 22px; overflow: hidden; background: var(--paper); color: var(--ink); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8); }
.as-bar { display: flex; gap: 2px; padding: 10px; overflow: hidden; background: var(--stone); -webkit-mask: linear-gradient(90deg, #000 85%, transparent); mask: linear-gradient(90deg, #000 85%, transparent); }
.as-bar span { padding: 8px 12px; border-radius: 10px; color: var(--on-dark-2); font-size: .9rem; white-space: nowrap; }
.as-bar .on { background: var(--velvet-700); color: var(--gold); font-weight: 600; }
.as-body { display: grid; grid-template-columns: 170px minmax(0, 1fr); min-height: 220px; }
.as-side { margin: 0; padding: 12px; list-style: none; background: var(--chandi); font-size: .92rem; }
.as-side li { padding: 9px 12px; border-radius: 10px; }
.as-side .on { background: #fff; font-weight: 600; }
.as-main { padding: 20px; }
.as-h { font-family: var(--display); font-size: 1.5rem; line-height: 1.25; }
.as-keys { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.as-keys span { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; border-radius: 10px; background: var(--chandi); font-size: .88rem; }
.as-keys kbd { display: inline-grid; min-width: 34px; height: 26px; padding: 0 6px; place-items: center; border-radius: 6px; background: var(--stone); color: var(--on-dark); font: 600 .78rem/1 var(--text); }
.as-keys em { font-style: normal; }
.appshell [data-en] { transition: opacity 150ms ease, filter 150ms ease; }
.appshell.is-swapping [data-en] { opacity: 0; filter: blur(2px); }
.lang-list { grid-column: 1 / -1; }
.lang-key { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; color: var(--on-dark-2); font-size: .95rem; }
.lk { display: inline-block; width: 14px; height: 14px; border-radius: 50%; }
.lk-ready { background: var(--gold); }
.lk-draft { margin-left: 10px; background: rgba(255, 255, 255, 0.18); }
.lang-wall { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.lang-wall li { padding: 6px 14px; border-radius: 999px; font-size: 1rem; line-height: 1.5; }
.lang-wall .ready { background: var(--gold); color: var(--ink); font-weight: 600; }
.lang-wall .draft { background: rgba(255, 255, 255, 0.07); color: var(--on-dark-2); }

/* ── Product demos ─────────────────────────────────────────────── */
.demo-videos { padding-block: clamp(56px, 6.5vw, 88px); background: var(--paper); }
.demo-video-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: clamp(32px, 4vw, 52px); }
.demo-video-card { padding: 18px; border: 1px solid var(--chandi-200); border-radius: 22px; background: #fff; box-shadow: 0 22px 50px -40px rgba(34, 5, 12, .65); }
.demo-video-heading { display: flex; align-items: flex-start; gap: 12px; min-height: 54px; }
.demo-video-heading h3 { margin: 0; font-size: 1.18rem; }
.demo-video-heading p { margin-top: 4px; color: var(--ink-2); font-size: .9rem; line-height: 1.45; }
.demo-video-badge { display: inline-grid; min-width: 46px; min-height: 34px; place-items: center; border-radius: 10px; background: var(--velvet); color: var(--gold); font-size: .78rem; font-weight: 800; letter-spacing: .08em; }
.demo-video-badge-hi { min-width: 66px; font-size: .72rem; letter-spacing: 0; }
.demo-video-frame { display: grid; place-items: center; margin-top: 14px; overflow: hidden; aspect-ratio: 9 / 16; max-height: 540px; border-radius: 16px; background: linear-gradient(145deg, #0f2d23, #173f31); }
.demo-video-frame video { display: block; width: 100%; height: 100%; object-fit: contain; background: #0f2d23; }
.demo-video-open { display: inline-flex; align-items: center; gap: 7px; margin-top: 14px; color: var(--velvet-700); font-weight: 700; text-decoration: none; }
.demo-video-open:hover { color: var(--gold-700); text-decoration: underline; text-underline-offset: 3px; }
.demo-video-open svg { transition: transform 180ms var(--ease-out); }
.demo-video-open:hover svg { transform: translateX(3px); }

/* ── FAQ ───────────────────────────────────────────────────────── */
.faq-section { padding-block: clamp(56px, 6.5vw, 88px); background: var(--chandi); }
.faq-side p { margin-top: 18px; max-width: 34ch; color: var(--ink-2); }
.faq-side a { color: var(--velvet-700); font-weight: 600; text-underline-offset: 3px; overflow-wrap: anywhere; }
.faq-section .faq details { background: var(--paper); }
.faq-section .faq details[open] { background: #fff; }

/* ── Close ─────────────────────────────────────────────────────── */
.close { position: relative; overflow: hidden; isolation: isolate; background: var(--velvet-950); padding-block: clamp(72px, 9vw, 120px); }
.close-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 40px; align-items: end; }
.close h2 { font-size: clamp(2.5rem, 5.6vw, 5.2rem); line-height: 1.04; max-width: 15ch; }
.home-hi .close h2 { line-height: 1.2; }
.close-act p { margin-top: 16px; color: var(--on-dark-2); }
.button-xl { min-height: 64px; padding: 0 38px; font-size: 1.2rem; }
.button[data-magnetic] { transition: transform 260ms var(--ease-out), background-color 200ms ease; }

/* ── Sticky trial button (phones, after the hero) ──────────────── */
.m-cta { display: none; }
@media (max-width: 720px) {
  .js-on .m-cta {
    position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 45;
    display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 8px; border-radius: 999px;
    background: rgba(34, 5, 12, 0.96); color: var(--on-dark-2); box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(243, 217, 149, 0.2);
    font-size: .9rem; transform: translateY(140%); visibility: hidden;
    transition: transform 280ms var(--ease-out), visibility 0s linear 280ms;
  }
  .js-on .m-cta .button { flex: 1 1 auto; min-height: 48px; }
  .js-on .m-cta span { flex: none; padding-right: 12px; white-space: nowrap; }
  .js-on .m-cta.is-shown { transform: none; visibility: visible; transition: transform 280ms var(--ease-out), visibility 0s; }
  .js-on body:has(.m-cta) .site-footer { padding-bottom: 72px; }
}

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pain-grid, .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h-chip-a { left: -2%; }
}
@media (max-width: 900px) {

  .h-hero-grid, .og-grid, .lang-grid, .start-grid, .story-grid, .demo-video-grid, .sec-head, .close-inner { grid-template-columns: minmax(0, 1fr); }
  .h-hero-copy { padding-top: 24px; }
  .h-hero h1, .home-hi .h-hero h1 { max-width: 16ch; }
  .h-counter { max-width: 600px; }
  .h-next { display: none; }
}
@media (max-width: 640px) {
  .offer-inner { justify-content: space-between; gap: 8px; }
  .offer-text { font-size: .85rem; }
  .offer-link { padding: 0 10px; font-size: .8rem; }
  .offer-dot, .offer-more { display: none; }
  .h-hero-grid { padding-block: 32px 48px; }
  .h-hero-copy { min-height: 0; }
  .h-hero h1 { font-size: clamp(2.15rem, 9.6vw, 2.7rem); }
  .home-hi .h-hero h1 { font-size: clamp(2.05rem, 9.2vw, 2.5rem); }
  .h-why { margin-top: 14px; font-size: 1.15rem; }
  .h-gains { gap: 8px; margin-top: 16px; }
  .h-gains li { font-size: 1rem; }
  .h-hero .actions { margin-top: 22px; }
  .h-hero .actions .button-lg { flex: 1 1 100%; }
  .h-hero .actions .button-outline { flex: 1 1 100%; }
  .h-counter { padding-top: 18px; }
  .h-stone { inset: 0 -10% 30px -2%; border-radius: 24px; }
  .bill { padding: 16px 14px 14px; font-size: .84rem; transform: none; }
  .bill-title { font-size: 1.3rem; }
  .bill-head, .bill-row { grid-template-columns: minmax(0, 1.5fr) .55fr .95fr 1.25fr; }
  .bill-head > :nth-child(4), .bill-head > :nth-child(5), .bill-row > :nth-child(4), .bill-row > :nth-child(5) { display: none; }
  .bill-sub { display: block; grid-column: 1 / -1; color: #6a5a4d; font-size: .78rem; }
  .h-chips { display: none; }
  .keys-rail { gap: 6px; margin: 12px 0 0 6px; }
  .h-streak { right: 12%; bottom: 3%; width: 38%; height: 7%; }
  .key { min-width: 42px; height: 40px; font-size: .85rem; }
  .h-counter figcaption { padding-left: 6px; }
  .pain-grid, .trust-grid, .bento { grid-template-columns: minmax(0, 1fr); }
  .pain { padding: 18px; }
  .sec-cta .button { flex: 1 1 100%; }
  .t-girvi, .t-gst, .t-stock, .t-keys { grid-column: auto; }
  .t-girvi, .t-stock, .t-keys { display: flex; }
  .t-girvi .tile-demo, .t-stock .tile-demo, .t-keys .tile-demo { margin-bottom: 18px; }
  .story-steps li { padding-left: 58px; }
  .receipt { padding: 20px 18px 26px; }
  .r-line { padding: 7px 8px; font-size: .92rem; }
  .r-total dd { font-size: 1.5rem; }
  .og-fields { gap: 10px; }
  .og-fields input { font-size: 1.1rem; }
  .og-out { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .og-out > div:nth-child(3) { grid-column: 1 / -1; }
  .as-body { grid-template-columns: minmax(0, 1fr); }
  .as-side { display: flex; flex-wrap: wrap; gap: 4px; padding: 10px; }
  .as-side li { padding: 6px 10px; font-size: .85rem; }
  .start-steps li { padding: 18px 18px 18px 76px; }
  .start-steps li::before { left: 18px; }
  .start-copy .button { width: 100%; }
  .trust-item { padding: 18px; }
  .button-xl { width: 100%; }
}
@media (max-width: 380px) {
  .og-fields { grid-template-columns: minmax(0, 1fr); }
  .gst-tabs button { padding: 0 10px; }
  .offer-link svg { display: none; }
}
@media (max-height: 700px) and (min-width: 901px) {
  .h-chips { display: none; }
}

/* ── Reduced motion: everything in its final state, nothing travels ── */
@media (prefers-reduced-motion: reduce) {
  .h-trace path, .h-streak path, .h-gains li, .h-chip, .h-dust, .h-glow, .offer-strip::after, .offer-dot, .h-next svg { animation: none !important; }
  .bill, .og-streak, .purity i, .r-line, .story-steps li, .key, .button[data-magnetic], .m-cta { transition: none !important; }
  .bill { transform: rotate(1.2deg); }
}

/* Controls that need home.js stay hidden until it runs; the sample figures
   remain readable as a static example. */
html:not(.js-on) .needs-js { display: none !important; }
.og-fields input[readonly] { background: var(--chandi-200); }
