/* ==========================================================================
   Bill24 landing — design tokens mirror the product palette
   (mobile/lib/core/theme/app_theme.dart, admin, Electron till):
   forest shell, cream canvas, lime accent, ink body text.
   ========================================================================== */

:root {
  --forest: #0f382d;
  --forest-dark: #0a2920;
  --forest-soft: #1a4a3c;
  --cream: #f7f6ef;
  --cream-2: #f1f0e7;
  --lime: #d9ff68;
  --lime-dim: #c6ec52;
  --ink: #13201c;
  --muted: #5b6a63;
  --line: rgba(15, 56, 45, 0.12);
  --white: #fff;

  --fs-sm: clamp(0.875rem, 0.84rem + 0.15vw, 0.95rem);
  --fs-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --fs-lg: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  --fs-h3: clamp(1.15rem, 1.05rem + 0.4vw, 1.35rem);
  --fs-h2: clamp(2rem, 1.4rem + 2.6vw, 3.5rem);
  --fs-display: clamp(2.6rem, 1.6rem + 4.6vw, 5.6rem);

  --radius: 20px;
  --radius-sm: 12px;
  --shadow-1: 0 1px 2px rgba(10, 41, 32, 0.06), 0 2px 8px rgba(10, 41, 32, 0.05);
  --shadow-3: 0 12px 32px rgba(10, 41, 32, 0.14), 0 2px 6px rgba(10, 41, 32, 0.06);
  --shadow-4: 0 30px 80px rgba(10, 41, 32, 0.28);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -0.03em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--lime-dim); outline-offset: 3px; border-radius: 8px; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--lime); color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip-link:focus { left: 16px; }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.section { padding-block: clamp(4rem, 3rem + 5vw, 8rem); }
.section__head { max-width: 760px; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.section__head--center { margin-inline: auto; text-align: center; }

.eyebrow { font-size: var(--fs-sm); font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: var(--forest-soft); margin-bottom: 1rem; }
.eyebrow--lime { color: var(--lime); }
.display { font-size: var(--fs-display); font-weight: 800; letter-spacing: -0.045em; }
.h2 { font-size: var(--fs-h2); font-weight: 800; }
.lead { font-size: var(--fs-lg); color: var(--muted); max-width: 36rem; }
/* Marker highlight drawn as a background rather than a pseudo-element, so it
   follows the text across line breaks (box-decoration-break: clone paints
   each line fragment separately). The old ::after bar could only span one
   box, which forced `white-space: nowrap` and overflowed narrow screens. */
.hl {
  --hl: var(--lime);
  padding-inline: 0.08em;
  margin-inline: -0.08em;
  background-image: linear-gradient(var(--hl), var(--hl));
  background-repeat: no-repeat;
  background-position: 0 88%;
  background-size: 100% 0.36em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  border-radius: 6px;
}
.hl--light { --hl: var(--white); }
.br-lg { display: none; }
@media (min-width: 900px) { .br-lg { display: inline; } }

.icon { width: 1.15em; height: 1.15em; flex-shrink: 0; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 44px; padding: 0.7rem 1.2rem; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: var(--fs-sm); text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  will-change: transform;
}
.btn--lg { padding: 0.95rem 1.6rem; font-size: var(--fs-base); }
.btn--block { width: 100%; }
.btn--primary { background: var(--forest); color: var(--white); box-shadow: 0 6px 20px rgba(15, 56, 45, 0.25); }
.btn--primary:hover { background: var(--forest-dark); }
.btn--lime { background: var(--lime); color: var(--ink); }
.btn--lime:hover { background: var(--lime-dim); }
.btn--outline { border-color: var(--forest); color: var(--forest); background: transparent; }
.btn--outline:hover { background: var(--forest); color: var(--white); }
.btn--ghost { color: var(--forest); background: transparent; }
.btn--ghost:hover { background: rgba(15, 56, 45, 0.07); }

.pill { display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.4rem 0.9rem 0.4rem 0.6rem; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: var(--fs-sm); font-weight: 600; color: var(--forest); box-shadow: var(--shadow-1); }
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0.06); } }

/* ── Nav ─────────────────────────────────────────────────────── */
.nav { position: sticky; top: 0; z-index: 50; transition: background-color 0.3s, box-shadow 0.3s, backdrop-filter 0.3s; }
.nav.is-scrolled { background: rgba(247, 246, 239, 0.78); backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%); box-shadow: 0 1px 0 var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 72px; }
.nav__brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 800; font-size: 1.3rem; letter-spacing: -0.03em; text-decoration: none; color: var(--forest); }
.nav__brand img { border-radius: 9px; }
.nav__links { display: none; gap: 2rem; }
.nav__links a { text-decoration: none; font-weight: 600; font-size: var(--fs-sm); color: var(--muted); position: relative; }
.nav__links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--forest); transform: scaleX(0); transform-origin: right; transition: transform 0.3s var(--ease); }
.nav__links a:hover { color: var(--forest); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { display: none; gap: 0.5rem; }
.nav__toggle { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); color: var(--forest); cursor: pointer; }
.nav__toggle .icon { width: 22px; height: 22px; }
.nav__mobile { display: grid; gap: 0.25rem; padding: 0.5rem 16px 1rem; background: var(--cream); border-bottom: 1px solid var(--line); }
.nav__mobile[hidden] { display: none; }
.nav__mobile a:not(.btn) { padding: 0.75rem 0; text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--line); }
.nav__mobile .btn { margin-top: 0.75rem; }
@media (min-width: 960px) {
  .nav__links, .nav__cta { display: flex; }
  .nav__toggle, .nav__mobile { display: none !important; }
}

/* ── Hero ────────────────────────────────────────────────────── */
.hero { position: relative; padding-block: clamp(2.5rem, 2rem + 4vw, 6rem) clamp(4rem, 3rem + 5vw, 7rem); overflow: hidden; }
.hero__glow { position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; background: radial-gradient(circle, rgba(217, 255, 104, 0.55), rgba(217, 255, 104, 0) 62%); filter: blur(10px); pointer-events: none; }
.hero__grid { position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%); opacity: 0.6; pointer-events: none; }
.hero__inner { position: relative; display: grid; gap: clamp(3rem, 2rem + 4vw, 4rem); align-items: center; }
@media (min-width: 1024px) { .hero__inner { grid-template-columns: 1.05fr 1fr; } }
.hero__copy { display: grid; gap: 1.5rem; justify-items: start; }
.hero__title { font-size: clamp(2.5rem, 1.3rem + 4.2vw, 4.9rem); }
.hero__title .line { display: block; white-space: nowrap; overflow: hidden; padding-bottom: 0.06em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero__platforms { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; color: var(--muted); font-size: var(--fs-sm); font-weight: 500; }
.hero__platforms li { display: inline-flex; align-items: center; gap: 0.4rem; }

.hero__visual { position: relative; padding: 0 0 3rem; }
@media (min-width: 640px) { .hero__visual { padding: 0 3rem 3.5rem 0; } }

.device { position: relative; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-4); overflow: hidden; border: 1px solid var(--line); }
.device__bar { display: flex; align-items: center; gap: 6px; height: 34px; padding-inline: 14px; background: var(--forest); color: rgba(255, 255, 255, 0.7); font-size: 12px; }
.device__bar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.25); }
.device__bar span:first-child { background: var(--lime); }
.device__bar em { font-style: normal; margin-left: 10px; font-weight: 600; }
.device img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }

.shot-placeholder { display: grid; place-items: center; align-content: center; gap: 0.6rem; aspect-ratio: 16 / 10; color: var(--muted); font-weight: 600; font-size: var(--fs-sm); background: repeating-linear-gradient(135deg, var(--cream-2) 0 14px, var(--cream) 14px 28px); }
.shot-placeholder .icon { width: 42px; height: 42px; color: var(--forest-soft); }

.receipt {
  position: absolute; right: 0; bottom: 0; width: min(310px, 78%);
  background: var(--white); border-radius: 18px; padding: 1.1rem 1.1rem 0.9rem; box-shadow: var(--shadow-4);
  font-size: 13px; border: 1px solid var(--line);
}
.receipt::before { content: ''; position: absolute; left: 0; right: 0; top: -8px; height: 10px; background: radial-gradient(circle at 6px 0, transparent 6px, var(--white) 6.5px) 0 0 / 14px 10px repeat-x; }
.receipt__head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 0.6rem; border-bottom: 1.5px dashed var(--line); margin-bottom: 0.5rem; }
.receipt__head strong { font-size: 14px; color: var(--forest); }
.receipt__head span { color: var(--muted); font-size: 11px; font-family: ui-monospace, monospace; }
.receipt__lines li { display: flex; justify-content: space-between; gap: 0.75rem; padding: 0.3rem 0; }
.receipt__lines em { display: block; font-style: normal; color: var(--muted); font-size: 11px; }
.receipt__lines b { font-variant-numeric: tabular-nums; font-weight: 600; }
.receipt__disc { color: #15803d; }
.receipt__total { display: flex; justify-content: space-between; align-items: center; margin-top: 0.5rem; padding-top: 0.6rem; border-top: 1.5px dashed var(--line); }
.receipt__total span { font-weight: 700; }
.receipt__total em { font-style: normal; font-weight: 500; color: var(--muted); font-size: 11px; margin-left: 4px; }
.receipt__total b { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--forest); }
.receipt__status { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.75rem; padding: 0.45rem 0.7rem; border-radius: 10px; background: var(--cream-2); font-size: 11.5px; font-weight: 600; color: var(--forest); }
.receipt__status .dot { width: 8px; height: 8px; border-radius: 50%; background: #f59e0b; flex-shrink: 0; transition: background-color 0.4s; }
.receipt__status.is-synced .dot { background: #22c55e; }

.chip { position: absolute; display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.55rem 0.9rem; border-radius: 999px; font-size: 13px; font-weight: 700; box-shadow: var(--shadow-3); }
.chip--sync { left: -8px; top: 42%; background: var(--lime); color: var(--ink); }
@media (max-width: 639px) { .chip--sync { left: 8px; top: auto; bottom: 1rem; } }

/* ── Stats ───────────────────────────────────────────────────── */
.stats { background: var(--forest); color: var(--white); padding-block: clamp(2.5rem, 2rem + 2vw, 3.5rem); }
.stats__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
@media (min-width: 800px) { .stats__grid { grid-template-columns: repeat(4, 1fr); } }
.stat__value { font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.4rem); font-weight: 800; letter-spacing: -0.04em; color: var(--lime); font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat__label { color: rgba(255, 255, 255, 0.72); font-size: var(--fs-sm); font-weight: 500; }

/* ── Bento ───────────────────────────────────────────────────── */
.bento { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .bento { grid-template-columns: repeat(4, 1fr); grid-auto-flow: dense; } }
.bento__card { position: relative; overflow: hidden; padding: 1.6rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-1); display: grid; align-content: start; gap: 0.6rem; min-height: 220px; transform-style: preserve-3d; transition: box-shadow 0.3s var(--ease), border-color 0.3s; }
.bento__card:hover { box-shadow: var(--shadow-3); border-color: rgba(15, 56, 45, 0.22); }
.bento__card h3 { font-size: var(--fs-h3); font-weight: 700; }
.bento__card p { color: var(--muted); font-size: var(--fs-sm); }
.bento__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--lime); color: var(--forest); margin-bottom: 0.4rem; }
.bento__icon .icon { width: 24px; height: 24px; }
@media (min-width: 700px) { .bento--wide { grid-column: span 2; } }
@media (min-width: 1024px) { .bento--tall { grid-row: span 3; } }
.bento--dark { background: var(--forest); border-color: var(--forest); color: var(--white); }
.bento--dark p { color: rgba(255, 255, 255, 0.72); }

.scanline { position: relative; height: 54px; margin-top: auto; border-radius: 12px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 5px, var(--ink) 5px 6px, transparent 6px 10px, var(--ink) 10px 13px, transparent 13px 15px); opacity: 0.85; overflow: hidden; }
.scanline span { position: absolute; top: 0; bottom: 0; width: 3px; background: #ef4444; box-shadow: 0 0 14px 4px rgba(239, 68, 68, 0.6); left: 0; }

.queue { display: grid; gap: 0.5rem; margin-top: auto; padding-top: 1rem; }
.queue span { height: 38px; border-radius: 10px; background: rgba(255, 255, 255, 0.08); border: 1px dashed rgba(217, 255, 104, 0.4); position: relative; }
.queue span::after { content: 'Bill queued'; position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, 0.72); }
.queue span.is-synced { background: rgba(217, 255, 104, 0.16); border-style: solid; }
.queue span.is-synced::after { content: '✓ Synced'; color: var(--lime); }

/* ── Offline scrollytelling ──────────────────────────────────── */
.offline { background: var(--forest-dark); color: var(--white); }
.offline__inner { display: grid; }
@media (min-width: 960px) { .offline__inner { grid-template-columns: 1fr 1fr; gap: 5rem; } }
.offline__sticky { align-self: start; }
@media (min-width: 960px) { .offline__sticky { position: sticky; top: calc(50vh - 150px); } }
/* Phones: the heading scrolls away but the progress rail pins under the nav
   while the steps pass, so the rail and the steps are on screen together.
   `display: contents` lifts the rail out of its wrapper so it can stick for
   the whole height of .offline__inner, not just its wrapper's height. */
@media (max-width: 959px) {
  .offline__sticky { display: contents; }
  .offline .netline { position: sticky; top: 72px; z-index: 5; margin-top: 1.5rem; padding-block: 1rem; background: var(--forest-dark); box-shadow: 0 12px 16px -12px rgba(0, 0, 0, 0.5); }
  .offline .netline__status { font-size: 13px; padding: 0.35rem 0.8rem; }
}
.netline { margin-top: 2.5rem; display: grid; gap: 1rem; }
.netline__track { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.netline__fill { height: 100%; width: 100%; background: linear-gradient(90deg, var(--lime), #7ee0a8); transform: scaleX(0); transform-origin: left; border-radius: inherit; }
.netline[data-state="offline"] .netline__fill { background: linear-gradient(90deg, var(--lime), #fbbf24); }
.netline__ticks { display: grid; grid-template-columns: repeat(var(--n), 1fr); margin-top: -0.4rem; font-family: ui-monospace, monospace; font-size: 12px; font-weight: 700; color: rgba(255, 255, 255, 0.35); }
.netline__ticks li { position: relative; padding-top: 0.7rem; transition: color 0.3s var(--ease); }
.netline__ticks li::before { content: ''; position: absolute; left: 0; top: 0; width: 2px; height: 8px; border-radius: 2px; background: currentColor; }
.netline__ticks li span { display: none; }
.netline__ticks li.is-reached { color: rgba(255, 255, 255, 0.6); }
.netline__ticks li.is-active { color: var(--lime); }
@media (min-width: 1200px) { .netline__ticks li span { display: block; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 600; font-size: 11px; margin-top: 2px; } }
.netline__status { justify-self: start; padding: 0.45rem 0.9rem; border-radius: 999px; font-weight: 700; font-size: var(--fs-sm); background: rgba(217, 255, 104, 0.14); color: var(--lime); }
.netline__status[data-state="offline"] { background: rgba(245, 158, 11, 0.16); color: #fbbf24; }
.offline__steps { display: grid; gap: clamp(2rem, 8vh, 6rem); padding-block: 1rem; }
/* With JS, every step gets its own stretch of scroll: progress maps one equal
   slice per step, so equal-height steps keep each one on screen for a while
   rather than flashing past. */
.js .offline__steps { gap: 0; padding-block: 0; }
.js .step { min-height: 60vh; align-content: center; }
@media (max-width: 959px) { .js .step { min-height: 50vh; } }
.step { display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; opacity: 0.35; transition: opacity 0.5s var(--ease); }
.step.is-active { opacity: 1; }
.step__num { font-family: ui-monospace, monospace; font-weight: 700; color: var(--lime); padding-top: 0.2rem; }
.step h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); margin-bottom: 0.5rem; }
.step p { color: rgba(255, 255, 255, 0.72); }
html:not(.js) .step { opacity: 1; }

/* ── Tour ────────────────────────────────────────────────────── */
.tour { display: grid; gap: 1.5rem; }
.tour__tabs { position: relative; display: flex; gap: 0.25rem; padding: 0.35rem; border-radius: 999px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-1); justify-self: start; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tour__tabs::-webkit-scrollbar { display: none; }
.tour__tabs button { position: relative; z-index: 1; min-height: 40px; padding: 0.5rem 1.1rem; border: 0; border-radius: 999px; background: transparent; font: inherit; font-weight: 700; font-size: var(--fs-sm); color: var(--muted); cursor: pointer; white-space: nowrap; transition: color 0.25s; }
.tour__tabs button[aria-selected="true"] { color: var(--white); }
.tour__indicator { position: absolute; z-index: 0; top: 0.35rem; left: 0; height: calc(100% - 0.7rem); width: 0; border-radius: 999px; background: var(--forest); }
html:not(.js) .tour__indicator { display: none; }
html:not(.js) .tour__tabs button[aria-selected="true"] { background: var(--forest); }
.tour__panels { position: relative; }
.tour__panel { margin: 0; }
.tour__panel figcaption { position: absolute; left: 1rem; bottom: 1rem; padding: 0.5rem 0.9rem; border-radius: 12px; background: rgba(10, 41, 32, 0.82); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: var(--white); font-size: var(--fs-sm); font-weight: 600; max-width: calc(100% - 2rem); }

/* ── Pricing ─────────────────────────────────────────────────── */
.pricing { background: var(--cream-2); }
.billing-toggle { position: relative; display: inline-flex; margin-top: 1.75rem; padding: 0.3rem; border-radius: 999px; background: var(--white); border: 1px solid var(--line); }
.billing-toggle button { position: relative; z-index: 1; min-height: 40px; padding: 0.45rem 1.1rem; border: 0; background: transparent; border-radius: 999px; font: inherit; font-weight: 700; font-size: var(--fs-sm); color: var(--muted); cursor: pointer; transition: color 0.25s; }
.billing-toggle button[aria-checked="true"] { color: var(--ink); }
.billing-toggle small { font-weight: 600; color: #15803d; margin-left: 0.25rem; }
.billing-toggle__thumb { position: absolute; top: 0.3rem; left: 0; height: calc(100% - 0.6rem); border-radius: 999px; background: var(--lime); }
.plans { display: grid; gap: 1.25rem; max-width: 900px; margin-inline: auto; }
@media (min-width: 760px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan { position: relative; padding: 2rem; border-radius: 24px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-1); display: grid; gap: 1rem; align-content: start; }
.plan h3 { font-size: 1.5rem; }
.plan__desc { color: var(--muted); font-size: var(--fs-sm); min-height: 3em; }
.plan__price { display: flex; align-items: baseline; gap: 0.4rem; }
.plan__price span { font-size: clamp(2.6rem, 2rem + 2vw, 3.4rem); font-weight: 800; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.plan__price small { color: var(--muted); font-weight: 600; }
.plan__note { color: var(--muted); font-size: 13px; margin-top: -0.75rem; }
.plan__items { display: grid; gap: 0.6rem; margin-top: 0.5rem; font-size: var(--fs-sm); }
.plan__items li { display: flex; gap: 0.6rem; align-items: flex-start; }
.plan__items .icon { color: #15803d; margin-top: 0.2em; }
.plan--featured { background: var(--forest); color: var(--white); border-color: var(--forest); box-shadow: var(--shadow-4); }
.plan--featured .plan__desc, .plan--featured .plan__price small, .plan--featured .plan__note { color: rgba(255, 255, 255, 0.7); }
.plan--featured .plan__items .icon { color: var(--lime); }
.plan__badge { position: absolute; top: 1.4rem; right: 1.4rem; padding: 0.3rem 0.75rem; border-radius: 999px; background: var(--lime); color: var(--ink); font-size: 12px; font-weight: 800; }

/* ── FAQ ─────────────────────────────────────────────────────── */
.faq { display: grid; gap: 2rem; }
@media (min-width: 960px) { .faq { grid-template-columns: 0.8fr 1.2fr; gap: 4rem; } }
.faq__list { display: grid; gap: 0.75rem; }
.faq__item { border-radius: 16px; background: var(--white); border: 1px solid var(--line); overflow: hidden; }
.faq__item summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.2rem 1.4rem; cursor: pointer; font-weight: 700; list-style: none; min-height: 44px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__plus { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--cream-2); flex-shrink: 0; transition: transform 0.35s var(--ease), background-color 0.3s; }
.faq__item[open] .faq__plus { transform: rotate(45deg); background: var(--lime); }
.faq__body { padding: 0 1.4rem 1.3rem; color: var(--muted); }

/* ── CTA ─────────────────────────────────────────────────────── */
.cta { padding-bottom: clamp(4rem, 3rem + 4vw, 7rem); }
.cta__card {
  position: relative; overflow: hidden; border-radius: clamp(20px, 3vw, 32px); background: var(--lime);
  /* Top padding clears the marquee strip so it never touches the headline. */
  padding: clamp(4rem, 3rem + 4vw, 6.5rem) clamp(1.25rem, 0.75rem + 4vw, 5rem) clamp(2.5rem, 2rem + 3vw, 5rem);
  /* The headline sizes to the card, not the viewport: the card is narrower
     than the window (gutters, max container width), so vw-based type
     overshoots it on phones. */
  container-type: inline-size;
}
.cta__body { display: grid; gap: clamp(1.75rem, 1.25rem + 2vw, 2.5rem); }
.cta__title {
  font-size: clamp(2rem, 9.6cqi, 4.9rem);
  font-weight: 800; letter-spacing: -0.045em; line-height: 1.04;
  color: var(--forest);
  text-wrap: balance; overflow-wrap: break-word;
}
/* Each sentence starts its own line; balance then evens out the second
   sentence if it has to wrap on a narrow card. */
.cta__lead { display: block; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
/* Narrow cards: full-width stacked buttons are easier thumb targets. */
@container (max-width: 420px) {
  .cta__actions { display: grid; }
  .cta__actions .btn { width: 100%; }
}
/* Wide cards: headline left, actions pinned bottom-right, instead of a
   single left-aligned column leaving the right half empty. */
@container (min-width: 860px) {
  .cta__body { grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: 3rem; }
  .cta__title { font-size: clamp(3.25rem, 6.4cqi, 5rem); }
  .cta__actions { flex-direction: column; align-items: stretch; }
}
.cta__marquee { position: absolute; top: clamp(1rem, 0.8rem + 1vw, 1.5rem); left: 0; right: 0; overflow: hidden; opacity: 0.35; pointer-events: none; }
.cta__track { display: flex; width: max-content; font-weight: 800; font-size: 0.9rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--forest); animation: marquee 30s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── Footer ──────────────────────────────────────────────────── */
.footer { background: var(--forest-dark); color: rgba(255, 255, 255, 0.72); padding-block: 3rem; font-size: var(--fs-sm); }
.footer__inner { display: grid; gap: 1.75rem; }
@media (min-width: 900px) { .footer__inner { grid-template-columns: auto 1fr auto; align-items: center; } }
.footer__brand { display: flex; align-items: center; gap: 0.8rem; }
.footer__brand img { border-radius: 10px; }
.footer__brand strong { color: var(--white); font-size: 1.1rem; }
.footer__links { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; justify-content: center; }
.footer__links a { text-decoration: none; }
.footer__links a:hover { color: var(--lime); }

.notfound { min-height: 60vh; display: grid; align-items: center; }
.notfound .container { display: grid; gap: 1.25rem; justify-items: start; }

/* ── Pre-animation states (only when JS is running) ──────────── */
.js [data-reveal], .js [data-hero-item], .js [data-hero-visual] { opacity: 0; }
.hero__title [data-hero-line] { display: inline-block; }
.js [data-hero-line] { transform: translateY(110%); }
.js .hl { background-size: 0% 0.36em; transition: background-size 0.9s var(--ease); }
.js .hl.is-drawn { background-size: 100% 0.36em; }
.js .receipt [data-line] { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal], .js [data-hero-item], .js [data-hero-visual], .js .receipt [data-line] { opacity: 1; }
  .js [data-hero-line] { transform: none; }
  .js .hl { background-size: 100% 0.36em; }
}
