/* Halfkit marketing site, "Momentum" direction.
   Tokens mirror static/src/app.css so the site and app match. */
:root {
  --canvas: #f2f2ee;
  --card: #ffffff;
  --card-2: #f7f7f3;
  --line: #e6e6e0;
  --line-strong: #d4d4cc;
  --ink: #111111;
  --ink-2: #3f3f3a;
  --ink-3: #66665f;
  --band: #111111;          /* dark hero/feature bands */
  --band-2: #1c1c1a;        /* cards on dark bands */
  --band-line: #2a2a27;
  --band-ink: #ffffff;
  --band-ink-2: #c9c9c4;
  --band-ink-3: #a8a8a1;
  --accent: #5ee0a8;        /* mint: fills, and text on dark */
  --accent-ink: #0a2118;    /* text on mint */
  --accent-strong: #0f7a4f; /* green text on light */
  --accent-soft: #e1f7ec;
  --neg: #b42318;
  --pos: #0f7a4f;
  --elim: #a34a00;
  --elim-soft: #fff2e4;
  --elim-dark: #f5b56b;     /* elimination text on dark */
  --focus: #0f7a4f;
  --hc-bg: #f2f2ee;         /* hero product card */
  --hc-inner: #ffffff;
  --hc-ink: #111111;
  --hc-ink-3: #55554f;
  --shadow: 0 1px 2px rgb(17 17 17 / .04), 0 18px 40px -24px rgb(17 17 17 / .18);

  --font-display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --font-sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --gutter: 16px;
  --radius: 24px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --canvas: #0c0c0b; --card: #161615; --card-2: #1e1e1c; --line: #2a2a27; --line-strong: #3a3a36;
    --ink: #f2f2ee; --ink-2: #cfcfc8; --ink-3: #9d9d96;
    --band: #070707; --band-2: #151514; --band-line: #242422;
    --accent-strong: #5ee0a8; --accent-soft: #10291f;
    --neg: #ff8a7a; --pos: #5ee0a8; --elim: #f5b56b; --elim-soft: #2a1d0f; --focus: #5ee0a8;
    --hc-bg: #1e1e1c; --hc-inner: #161615; --hc-ink: #f2f2ee; --hc-ink-3: #9d9d96;
    --shadow: 0 1px 0 rgb(255 255 255 / .03), 0 18px 40px -24px rgb(0 0 0 / .9);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --canvas: #0c0c0b; --card: #161615; --card-2: #1e1e1c; --line: #2a2a27; --line-strong: #3a3a36;
  --ink: #f2f2ee; --ink-2: #cfcfc8; --ink-3: #9d9d96;
  --band: #070707; --band-2: #151514; --band-line: #242422;
  --accent-strong: #5ee0a8; --accent-soft: #10291f;
  --neg: #ff8a7a; --pos: #5ee0a8; --elim: #f5b56b; --elim-soft: #2a1d0f; --focus: #5ee0a8;
  --hc-bg: #1e1e1c; --hc-inner: #161615; --hc-ink: #f2f2ee; --hc-ink-3: #9d9d96;
  --shadow: 0 1px 0 rgb(255 255 255 / .03), 0 18px 40px -24px rgb(0 0 0 / .9);
  color-scheme: dark;
}
@media (min-width: 768px) { :root { --gutter: 32px; } }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 400 1rem/1.6 var(--font-sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; }
p { margin: 0 0 1rem; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: var(--gutter); top: -3rem; z-index: 100; padding: .55rem 1rem; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 700; text-decoration: none; }
.skip:focus { top: .75rem; }

.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--ink-3); }
.small { font-size: .875rem; }
.num, .tile-value, .hc-row b, .ptable td, .mrow b, .mom b, .amount { font-variant-numeric: tabular-nums; }
.mint { color: var(--accent); }

/* dark bands: hero, features, final CTA */
.dark { background: var(--band); color: var(--band-ink); --focus: var(--accent); }
.dark .muted, .dark .dim { color: var(--band-ink-3); }

.kicker { margin: 0 0 .9rem; font-size: .85rem; font-weight: 700; letter-spacing: .01em; color: var(--accent-strong); }
.dark .kicker { color: var(--accent); }
.display {
  font-size: clamp(2.6rem, 1.4rem + 5vw, 4.75rem);
  font-weight: 800; line-height: .98; letter-spacing: -0.045em;
  text-wrap: balance;
}
.display-2 { font-size: clamp(2.1rem, 1.3rem + 3vw, 3.5rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; text-wrap: balance; }
.h2-sm { font-size: clamp(1.7rem, 1.4rem + 1vw, 2.2rem); font-weight: 800; letter-spacing: -0.035em; margin-bottom: .75rem; }
.lede { font-size: clamp(1.05rem, 1rem + .35vw, 1.2rem); line-height: 1.55; color: var(--ink-2); max-width: 34rem; }
.dark .lede { color: var(--band-ink-2); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 2.75rem; padding: 0 1.25rem; border: 1px solid transparent; border-radius: 999px;
  font: 700 .95rem/1 var(--font-sans); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .15s, border-color .15s, filter .15s, transform .15s, opacity .15s;
}
.btn:active { transform: translateY(1px); }
.btn-lg { min-height: 3.25rem; padding: 0 1.65rem; font-size: 1rem; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { filter: brightness(1.06); }
.btn-primary { background: var(--ink); color: var(--card); }
.btn-primary:hover { opacity: .88; }
.btn-quiet { background: var(--card-2); color: var(--ink); border-color: var(--line); }
.btn-quiet:hover { border-color: var(--line-strong); }
.btn-outline-dark { color: var(--band-ink); border-color: #3a3a37; font-weight: 600; }
.btn-outline-dark:hover { border-color: var(--band-ink-3); }
.btn-ghost-dark { color: var(--band-ink); font-weight: 600; padding-inline: 1rem; }
.btn-ghost-dark:hover { color: var(--accent); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--band) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--band-ink); border-bottom: 1px solid var(--band-line); --focus: var(--accent); }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 4.25rem; gap: 1rem; }
.brand { display: inline-flex; align-items: center; min-height: 2.75rem; gap: .6rem; text-decoration: none; font: 700 1.3rem/1 var(--font-display); letter-spacing: -0.02em; }
.brand-icon { width: 1.9rem; height: 1.9rem; }
.brand-word { width: auto; height: 1.3rem; }
.brand-mark { display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 9px; background: var(--accent); color: #111; font: 800 1.15rem/1 var(--font-display); }

.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a:not(.btn) { text-decoration: none; color: #d6d6d1; font-size: .95rem; font-weight: 500; }
.site-nav a:not(.btn):hover { color: var(--band-ink); }
.nav-actions { display: flex; align-items: center; gap: .5rem; }
.theme-btn, .menu-btn { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0; background: transparent; border: 1px solid #3a3a37; border-radius: 999px; color: var(--band-ink); cursor: pointer; }
.theme-btn:hover, .menu-btn:hover { border-color: var(--band-ink-3); }
.theme-btn svg { width: 1.05rem; height: 1.05rem; }
.theme-btn circle { fill: none; stroke: currentColor; stroke-width: 1.7; }
.theme-btn path { fill: currentColor; }

.menu-btn { display: none; }
.menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 1.05rem; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s; }
.menu-icon { position: relative; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }
.menu-btn[aria-expanded="true"] .menu-icon { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-icon::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-icon::after { transform: translateY(-6px) rotate(-45deg); }

/* Desktop nav from 1100px: fits about six top-level links plus the actions. */
@media (min-width: 1100px) {
  .site-nav { display: flex; align-items: center; gap: 1.75rem; }
  .site-nav ul { display: flex; gap: 1.5rem; }
  .site-nav a:not(.btn) { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; min-width: 2.75rem; white-space: nowrap; }
}
@media (max-width: 1099.98px) {
  .js .menu-btn { display: inline-grid; }
  .js .site-nav { position: absolute; inset: 4.25rem 0 auto 0; max-height: calc(100dvh - 4.25rem); overflow-y: auto; overscroll-behavior: contain; background: var(--band); border-bottom: 1px solid var(--band-line); padding: .5rem var(--gutter) 1.25rem; display: none; }
  .js .site-nav.is-open { display: block; }
  .site-nav li a:not(.btn) { display: block; padding: .8rem 0; min-height: 2.75rem; border-bottom: 1px solid var(--band-line); font-size: 1.05rem; }
  .nav-actions { padding-top: 1rem; flex-wrap: wrap; }
  .nav-actions .btn { flex: 1; min-height: 3rem; }
  .nav-actions .btn-ghost-dark { border-color: #3a3a37; }
  html:not(.js) .header-row { flex-wrap: wrap; height: auto; padding-block: .75rem; }
  html:not(.js) .site-nav { width: 100%; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: clip; padding-block: clamp(2.75rem, 7vw, 5rem) 2.25rem; }
.hero::before { content: ""; position: absolute; inset: auto -10% -40% 35%; height: 90%; background: radial-gradient(closest-side, rgb(94 224 168 / .16), transparent); pointer-events: none; }
.hero-grid { position: relative; display: grid; gap: clamp(2.75rem, 6vw, 3.5rem); align-items: center; }
@media (min-width: 1040px) { .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 3.5rem; } }
.hero-copy .display { font-size: clamp(2.6rem, 1.3rem + 4.4vw, 4.2rem); margin-bottom: 1.5rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.9rem 0 1rem; }
@media (max-width: 479.98px) { .cta-row .btn { flex: 1 1 100%; } }
.fineprint { font-size: .85rem; color: var(--band-ink-3); margin: 0; }

.hero-card {
  margin: 0; padding: 1.35rem; min-width: 0; border-radius: var(--radius);
  background: var(--hc-bg); color: var(--hc-ink);
  transform: rotate(-1.5deg); transition: transform .4s cubic-bezier(.2, .7, .2, 1);
  box-shadow: 0 30px 60px -30px rgb(0 0 0 / .6);
  display: flex; flex-direction: column; gap: .85rem;
  --focus: #0f7a4f;
}
.hero-card:hover { transform: rotate(-.5deg); }
@media (max-width: 1039.98px) { .hero-card { width: 100%; max-width: 34rem; justify-self: center; } }
@media (max-width: 559.98px) { .hero-card { transform: rotate(-1deg); padding: 1rem; } }
.hc-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .75rem 1rem; }
.hc-title { margin: 0; font: 700 1.4rem/1.1 var(--font-display); letter-spacing: -0.03em; }
.hc-meta { margin: .2rem 0 0; font-size: .82rem; color: var(--hc-ink-3); }
.ccy { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: var(--hc-inner); }
.ccy button { min-width: 2.85rem; min-height: 2.75rem; padding: 0 .6rem; border: 0; border-radius: 999px; background: transparent; color: var(--hc-ink-3); font: 700 .75rem/1 var(--font-sans); letter-spacing: .02em; cursor: pointer; }
.ccy button:hover { color: var(--hc-ink); }
.ccy button[aria-pressed="true"] { background: #111; color: var(--accent); }
:root[data-theme="dark"] .ccy button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ccy button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); } }
.hc-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.tile { padding: 1rem; border-radius: 16px; background: var(--hc-inner); min-width: 0; }
.tile-dark { background: #111; color: #fff; }
.tile-label { margin: 0 0 .25rem; font-size: .8rem; color: var(--hc-ink-3); }
.tile-dark .tile-label { color: #b9b9b3; }
.tile-value { margin: 0; font: 700 clamp(1.45rem, 1rem + 2.2vw, 2.15rem)/1.1 var(--font-display); letter-spacing: -0.035em; white-space: nowrap; }
.tile-dark .tile-value { color: var(--accent); }
.hc-rows { padding: .85rem 1rem; border-radius: 16px; background: var(--hc-inner); display: flex; flex-direction: column; gap: .55rem; font-size: .9rem; }
.hc-rows-label { margin: 0; font-size: .75rem; font-weight: 600; color: var(--hc-ink-3); }
.hc-row { display: flex; justify-content: space-between; gap: 1rem; }
.hc-row b { font-weight: 700; white-space: nowrap; }
.hc-row.is-elim { color: var(--elim); }
.hc-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .4rem 1rem; padding-inline: .25rem; font-size: .8rem; font-weight: 600; color: var(--hc-ink-3); }
.hc-foot b { color: var(--hc-ink); }
.dot { display: inline-block; width: .55rem; height: .55rem; margin-right: .45rem; border-radius: 50%; background: var(--accent); vertical-align: .02em; animation: pulse 2.4s ease-out infinite; }
.hero-strip { list-style: none; margin: clamp(2.5rem, 5vw, 3.5rem) 0 0; padding: 1.5rem 0 0; border-top: 1px solid var(--band-line); display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; color: #9a9a94; font-weight: 600; font-size: .95rem; }
.hero-strip li + li::before { content: "·"; margin-right: 1.75rem; color: #55554f; }
@media (max-width: 559.98px) { .hero-strip li + li::before { content: none; } .hero-strip li { width: calc(50% - .9rem); } }
.demo-note { margin: 1rem 0 0; font-size: .78rem; color: #8a8a84; }

@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgb(94 224 168 / .5); } 70%, 100% { box-shadow: 0 0 0 .5rem transparent; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes card-in { from { opacity: 0; transform: translateY(24px) rotate(-4deg); } to { opacity: 1; transform: rotate(-1.5deg); } }
.hero-copy > * { animation: rise .6s cubic-bezier(.2, .7, .2, 1) both; }
.hero-copy > :nth-child(2) { animation-delay: 60ms; }
.hero-copy > :nth-child(3) { animation-delay: 120ms; }
.hero-copy > :nth-child(4) { animation-delay: 180ms; }
.hero-copy > :nth-child(5) { animation-delay: 240ms; }
.hero-card { animation: card-in .8s .15s cubic-bezier(.2, .7, .2, 1) backwards; }
@keyframes tick { from { opacity: .35; transform: translateY(3px); } to { opacity: 1; transform: none; } }
.hc-row b, [data-unit] { display: inline-block; }
.hero-card.is-switching [data-v], .hero-card.is-switching [data-unit] { animation: tick .45s cubic-bezier(.2, .7, .2, 1); }

/* Scroll reveal. script.js adds .reveal only when motion is allowed, so without JS
   (or with reduced motion) everything below renders in its final state.
   Uses the individual `translate` property so it never fights hover/rotate transforms. */
.reveal { opacity: 0; translate: 0 18px; transition: opacity .7s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms), translate .7s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms), transform .3s cubic-bezier(.2, .7, .2, 1); }
.reveal.is-in { opacity: 1; translate: none; }

/* subtle lift on cards that stand alone */
@media (hover: hover) {
  .steps li, .wordmark, .trust .card, .plan, .feature:not(.feature-wide) { transition: opacity .7s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms), translate .7s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms), transform .3s cubic-bezier(.2, .7, .2, 1); }
  .steps li:hover, .wordmark:hover, .trust .card:hover, .plan:hover, .feature:not(.feature-wide):hover { transform: translateY(-4px); }
}

/* aging bar fills left to right, then its labels appear */
.aging span { position: relative; isolation: isolate; }
.aging span::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; transform-origin: left; }
.reveal .aging span::before { transform: scaleX(0); transition: transform .5s cubic-bezier(.3, .7, .2, 1); }
.reveal .aging span { color: transparent; transition: color .3s; }
.reveal.is-in .aging span { color: #111; }
.reveal.is-in .aging span::before { transform: none; }
.reveal.is-in .aging span:nth-child(1)::before { transition-delay: .25s; } .reveal.is-in .aging span:nth-child(1) { transition-delay: .6s; }
.reveal.is-in .aging span:nth-child(2)::before { transition-delay: .4s; }  .reveal.is-in .aging span:nth-child(2) { transition-delay: .75s; }
.reveal.is-in .aging span:nth-child(3)::before { transition-delay: .55s; } .reveal.is-in .aging span:nth-child(3) { transition-delay: .9s; }
.reveal.is-in .aging span:nth-child(4)::before { transition-delay: .7s; }  .reveal.is-in .aging span:nth-child(4) { transition-delay: 1.05s; }
.reveal.is-in .aging span:nth-child(5)::before { transition-delay: .85s; } .reveal.is-in .aging span:nth-child(5) { transition-delay: 1.2s; }

/* 13-week forecast: rows build in week by week, the line draws under a sliding cover */
.reveal .mini-card .mrow, .reveal .mini-card .spark { opacity: 0; translate: 0 8px; transition: opacity .45s ease-out, translate .45s cubic-bezier(.2, .7, .2, 1); }
.reveal.is-in .mini-card .mrow, .reveal.is-in .mini-card .spark { opacity: 1; translate: none; }
.reveal.is-in .mini-card > :nth-child(2) { transition-delay: .25s; }
.reveal.is-in .mini-card > :nth-child(3) { transition-delay: .35s; }
.reveal.is-in .mini-card > :nth-child(4) { transition-delay: .45s; }
.reveal.is-in .mini-card > :nth-child(5) { transition-delay: .55s; }
.reveal.is-in .mini-card > :nth-child(6) { transition-delay: .65s; }
.reveal.is-in .mini-card > :nth-child(7) { transition-delay: .75s; }
.reveal .spark::after { content: ""; position: absolute; inset: 0 -2px 0 0; background: var(--hc-inner); transform-origin: right; transition: transform 1.1s cubic-bezier(.45, .05, .25, 1) .45s; }
.reveal.is-in .spark::after { transform: scaleX(0); }
.reveal .spark i { opacity: 0; transition: opacity .3s 1.3s; }
.reveal.is-in .spark i { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- sections ---------- */
.section { padding-top: clamp(4rem, 9vw, 7rem); }
.section.dark, .section:has(+ .dark) { padding-bottom: clamp(4rem, 9vw, 7rem); }
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .display-2 { margin-bottom: 1rem; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }

/* integrations */
.int-grid { display: grid; gap: 1rem; align-items: stretch; }
@media (min-width: 600px) { .int-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .int-intro { grid-column: 1 / -1; } }
@media (min-width: 1000px) { .int-grid { grid-template-columns: 1.15fr 1fr 1fr; gap: 1.25rem; } .int-intro { grid-column: auto; grid-row: span 2; padding-right: 1.5rem; align-self: center; } }
.int-intro p:last-child { margin: 0; }
.wordmark { padding: 1.5rem; display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; }
.int-top { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
/* Logos keep a white plate in both themes: the wordmarks have black text. */
.logo-plate { display: inline-flex; align-items: center; height: 3.75rem; padding: .5rem .85rem; border: 1px solid var(--line); border-radius: 14px; background: #fff; min-width: 0; }
.logo-plate img { display: block; width: auto; height: 2.6rem; max-width: 100%; object-fit: contain; }
.logo-plate img.sq { height: 2.75rem; }
.tag { flex: none; padding: .25rem .65rem; border-radius: 999px; background: var(--card-2); color: var(--ink-3); font-size: .75rem; font-weight: 700; }
.wordmark p { margin: 0; color: var(--ink-2); font-size: .95rem; }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { padding: 1.6rem; display: flex; flex-direction: column; }
.step-no { font: 800 2.6rem/1 var(--font-display); letter-spacing: -0.05em; color: var(--accent-strong); margin-bottom: 1rem; }
.steps h3 { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.035em; margin-bottom: .55rem; }
.steps p { color: var(--ink-2); }
.entry { margin: auto 0 0; padding: .8rem .95rem; border-radius: 14px; background: var(--card-2); font-size: .82rem; line-height: 1.7; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.elim-text { color: var(--elim); font-weight: 600; }
.steps .entry-total { display: flex; justify-content: space-between; background: #111; color: #fff; font-weight: 700; font-size: .9rem; }
.entry-total b { color: var(--accent); }

/* report card + table */
.report-card { margin: 1.25rem 0 0; padding: 1.5rem; }
@media (max-width: 559.98px) { .report-card { padding: 1rem .85rem; } }
.report-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .75rem; margin-bottom: 1rem; }
.report-head .kicker { margin-bottom: .3rem; }
.report-title { margin: 0; font: 700 1.4rem/1.15 var(--font-display); letter-spacing: -0.03em; }
.pill { display: inline-flex; align-items: center; padding: .35rem .8rem; border-radius: 999px; background: var(--card-2); font-size: .78rem; font-weight: 600; color: var(--ink-3); }
.report-card figcaption { margin-top: .9rem; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ptable { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .72rem; }
.ptable th, .ptable td { padding: .55rem .25rem; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--line); }
.ptable th:first-child { text-align: left; padding-left: .25rem; }
.ptable tbody th { font-weight: 500; white-space: normal; line-height: 1.25; }
.ptable thead th { font-size: .66rem; font-weight: 700; color: var(--ink-3); vertical-align: bottom; }
.ptable thead th small { display: block; margin-top: .15rem; font-size: .6rem; font-weight: 500; }
.ptable .elim { color: var(--elim); }
.ptable td.elim { background: var(--elim-soft); }
.ptable td.c { font-weight: 700; }
.ptable tr.is-sub > * { font-weight: 700; }
.ptable tr.is-total > * { background: #111; color: #fff; font-weight: 700; border-bottom: 0; }
.ptable tr.is-total th { border-radius: 12px 0 0 12px; }
.ptable tr.is-total td:last-child { border-radius: 0 12px 12px 0; color: var(--accent); }
.ptable tr.is-total td.elim { color: var(--elim-dark); }
.ptable tr.is-split > * { padding-block: .4rem; border-bottom: 0; color: var(--ink-3); font-weight: 500; }
.ptable tr.is-split td.c { color: var(--ink-2); font-weight: 600; }
.ptable tr.is-total + tr.is-split > * { padding-top: .7rem; }
.ptable .long { display: none; }
@media (min-width: 560px) {
  .ptable { font-size: .92rem; }
  .ptable th, .ptable td { padding: .75rem .8rem; }
  .ptable thead th { font-size: .75rem; }
  .ptable .long { display: inline; }
  .ptable .short { display: none; }
}

.callout { margin-top: 1.25rem; padding: 1.3rem 1.5rem; border-radius: var(--radius); background: var(--elim-soft); display: grid; gap: .25rem 2rem; }
.callout .kicker { color: var(--elim); margin: 0; }
.callout p:last-child { margin: 0; color: var(--ink-2); }
@media (min-width: 760px) { .callout { grid-template-columns: 11rem 1fr; align-items: baseline; } }

/* features (dark band) */
.features { display: grid; gap: 1rem; }
@media (min-width: 720px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .features { grid-template-columns: repeat(3, 1fr); } }
/* 9 single cards: in two columns the last one between wide cards would sit alone, so it spans. */
@media (min-width: 720px) and (max-width: 1039.98px) { .feature-fill { grid-column: 1 / -1; } .feature-fill p:not(.kicker) { max-width: 40rem; } }
.feature { padding: 1.6rem; border-radius: var(--radius); background: var(--band-2); min-width: 0; }
.feature h3 { font-size: 1.45rem; font-weight: 800; letter-spacing: -0.035em; margin-bottom: .6rem; }
.feature p { color: var(--band-ink-2); }
.feature > p:last-child { margin-bottom: 0; }
.feature-wide { grid-column: 1 / -1; display: grid; gap: 1.5rem 3rem; align-items: center; padding: clamp(1.6rem, 3vw, 2.5rem); }
@media (min-width: 860px) { .feature-wide { grid-template-columns: 1.1fr 1fr; } }
.feature-wide h3 { font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem); }
.ccy-list { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.ccy-list li { padding: .3rem .75rem; border-radius: 999px; background: #2a2a27; color: var(--band-ink); font-size: .78rem; font-weight: 700; letter-spacing: .03em; }
.ccy-list li:first-child { background: var(--accent); color: var(--accent-ink); }
.feature-wide .small { margin: 0; }
.mini-card { padding: 1.25rem; border-radius: 20px; background: var(--hc-bg); color: var(--hc-ink); display: flex; flex-direction: column; gap: .5rem; transform: rotate(1deg); }
.feature .mini-title { margin: 0 0 .25rem; font-size: .8rem; font-weight: 600; color: var(--hc-ink-3); }
.mrow { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem .9rem; border-radius: 12px; background: var(--hc-inner); font-size: .92rem; }
.mrow b { font-weight: 700; white-space: nowrap; }
.mrow-cta b { color: #0f7a4f; }
:root[data-theme="dark"] .mrow-cta b { color: var(--accent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mrow-cta b { color: var(--accent); } }
.mrow-total { background: #111; color: #fff; }
.spark { position: relative; height: 4.25rem; padding: .7rem .9rem; border-radius: 12px; background: var(--hc-inner); overflow: hidden; }
.spark svg { display: block; width: 100%; height: 100%; overflow: visible; }
.spark polyline { fill: none; stroke: var(--hc-ink); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
/* --x/--y are fractions of the plot area (inside the padding), matching the SVG points */
.spark i { position: absolute; left: calc(.9rem + (100% - 1.8rem) * var(--x)); top: calc(.7rem + (100% - 1.4rem) * var(--y)); width: .6rem; height: .6rem; margin: -.3rem 0 0 -.3rem; border-radius: 50%; }
.spark-low { background: #0f7a4f; box-shadow: 0 0 0 3px var(--hc-inner); }
.spark-end { background: var(--hc-ink); box-shadow: 0 0 0 3px var(--hc-inner); }
:root[data-theme="dark"] .spark-low { background: var(--accent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .spark-low { background: var(--accent); } }
.mrow-total b { color: var(--accent); }
.elim-chip { display: flex; justify-content: space-between; padding: .75rem .9rem; border-radius: 12px; background: #2a1d0f; color: var(--elim-dark); font-weight: 700; font-size: .92rem; }
.mom { display: grid; gap: .35rem; }
.mom div { display: grid; grid-template-columns: 1fr auto 4.5rem; gap: 1rem; padding: .55rem .9rem; border-radius: 12px; background: #242422; font-size: .9rem; }
.mom span { color: var(--band-ink-3); }
.mom b { font-weight: 700; }
.mom i { font-style: normal; text-align: right; font-weight: 700; color: var(--band-ink-3); }
.mom i.up { color: var(--accent); }
.mom i.down { color: #ff8a7a; }
.aging { display: flex; height: 2.75rem; gap: 3px; }
.aging span { width: var(--w); display: flex; align-items: flex-end; padding: 0 .4rem .35rem; border-radius: 8px; font-size: .68rem; font-weight: 700; color: #111; overflow: hidden; white-space: nowrap; }
.aging span:nth-child(1)::before { background: var(--accent); }
.aging span:nth-child(2)::before { background: #a6ecc9; }
.aging span:nth-child(3)::before { background: #f7d9a8; }
.aging span:nth-child(4)::before { background: var(--elim-dark); }
.aging span:nth-child(5)::before { background: #ff8a7a; }

/* chat app: copy beside a phone showing a conversation in the app's own reply format */
.chat-grid { display: grid; gap: clamp(2.5rem, 6vw, 4rem); align-items: center; }
@media (min-width: 960px) { .chat-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } }
.chat-copy .display-2 { margin-bottom: 1.25rem; }
.chat-points { margin: 1.75rem 0 0; display: grid; gap: 1.1rem; max-width: 36rem; }
.chat-points > div { padding-left: 1.1rem; border-left: 3px solid var(--accent); }
.chat-points dt { font: 700 1.05rem/1.35 var(--font-display); letter-spacing: -0.02em; margin-bottom: .2rem; }
.chat-points dd { margin: 0; color: var(--ink-2); font-size: .95rem; }
.chat-note { margin: 0; max-width: 34rem; }

.phone { margin: 0; justify-self: center; width: 100%; max-width: 23rem; padding: .7rem; border-radius: 2.6rem; background: #111; box-shadow: 0 0 0 1px rgb(255 255 255 / .1), 0 30px 60px -30px rgb(0 0 0 / .55); transform: rotate(1.5deg); }
.phone-screen { display: flex; flex-direction: column; min-height: 35rem; border-radius: 2rem; overflow: hidden; background: var(--canvas); color: var(--ink); }
.phone-bar { display: flex; align-items: center; gap: .55rem; padding: 1.1rem 1rem .8rem; background: #111; color: #fff; font: 700 1.05rem/1 var(--font-display); }
.phone-bar img { border-radius: 7px; }
.phone-new { margin-left: auto; padding: .35rem .7rem; border: 1px solid #2a2a27; border-radius: 999px; font: 500 .72rem/1 var(--font-sans); color: #a8a8a1; }
.phone-thread { flex: 1; display: flex; flex-direction: column; gap: .7rem; padding: 1rem .85rem; font-size: .86rem; line-height: 1.5; }
.msg { margin: 0; max-width: 88%; padding: .65rem .85rem; border-radius: 1.1rem; }
.msg p { margin: 0; }
.msg-user { align-self: flex-end; background: var(--ink); color: var(--canvas); border-bottom-right-radius: .35rem; }
.msg-reply { align-self: flex-start; max-width: 95%; background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: .35rem; }
.msg-reply strong { font-weight: 700; background: linear-gradient(transparent 58%, var(--accent-soft) 58%); }
.msg-rows { list-style: none; margin: .55rem 0 0; padding: 0; border-top: 1px solid var(--line); }
.msg-rows li { display: flex; justify-content: space-between; gap: .75rem; padding: .4rem 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.msg-rows b { color: var(--ink); font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.msg-rows .is-elim, .msg-rows .is-elim b { color: var(--elim); }
.phone-input { display: flex; align-items: center; gap: .5rem; padding: .7rem .75rem 1rem; border-top: 1px solid var(--line); background: var(--card); font-size: .8rem; }
.phone-input span:first-child { flex: 1; min-width: 0; padding: .55rem .8rem; border: 1px solid var(--line); border-radius: 999px; background: var(--canvas); color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phone-send { padding: .55rem .9rem; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 700; }
@media (max-width: 559.98px) { .phone { transform: none; padding: .55rem; border-radius: 2.2rem; } .phone-screen { min-height: 0; border-radius: 1.75rem; } }

/* audience */
.aud-grid { display: grid; gap: 2.5rem; }
@media (min-width: 960px) { .aud-grid { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; } }
.aud-grid .display-2 { margin-bottom: 1.25rem; }
.aud-list { margin: 0; padding: .5rem 1.6rem; }
.aud-list > div { display: grid; gap: .25rem 1.5rem; padding: 1.15rem 0; border-bottom: 1px solid var(--line); }
.aud-list > div:last-child { border-bottom: 0; }
@media (min-width: 560px) { .aud-list > div { grid-template-columns: 10rem 1fr; } }
.aud-list dt { font: 700 1.05rem/1.4 var(--font-display); letter-spacing: -0.02em; }
.aud-list dd { margin: 0; color: var(--ink-2); }

/* trust */
.trust { display: grid; gap: 1rem; }
@media (min-width: 720px) { .trust { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .trust { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 720px) and (max-width: 1039.98px) { .trust > :last-child:nth-child(odd) { grid-column: 1 / -1; } }
.trust .card { padding: 1.6rem; }
.ico { display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; margin-bottom: 1rem; border-radius: 12px; background: var(--accent-soft); color: var(--accent-strong); font: 800 .85rem/1 var(--font-display); }
.trust h3 { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.03em; margin-bottom: .5rem; }
.trust p { margin: 0; color: var(--ink-2); font-size: .95rem; }

/* pricing */
.plans { display: grid; gap: 1rem; max-width: 1080px; margin-inline: auto; }
@media (max-width: 899.98px) { .plans { max-width: 34rem; } }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.plan { display: flex; flex-direction: column; padding: 1.75rem; }
.plan-name { display: flex; align-items: center; justify-content: space-between; gap: .5rem; font: 700 1rem/1.3 var(--font-sans); letter-spacing: 0; color: var(--ink-2); }
.chip { padding: .25rem .65rem; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: .72rem; font-weight: 700; }
.price { display: flex; flex-direction: column; gap: .4rem; margin: .9rem 0 1.25rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.amount { font: 800 3.4rem/1 var(--font-display); letter-spacing: -0.05em; }
.price small { font-size: .85rem; color: var(--ink-3); }
.plan ul { list-style: none; margin: 0 0 1.75rem; padding: 0; flex: 1; display: grid; gap: .65rem; align-content: start; }
.plan li { padding-left: 1.6rem; position: relative; color: var(--ink-2); font-size: .95rem; }
.plan li::before { content: ""; position: absolute; left: 0; top: .3em; width: 1rem; height: 1rem; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2 7 10.5l4.5-5' fill='none' stroke='%230f7a4f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }
.plan-featured { background: #111; color: #fff; box-shadow: 0 30px 60px -30px rgb(0 0 0 / .55); --focus: var(--accent); }
.plan-featured .plan-name { color: #d6d6d1; }
.plan-featured .amount { color: var(--accent); }
.plan-featured .price { border-color: #2a2a27; }
.plan-featured .price small, .plan-featured li { color: var(--band-ink-2); }
.plan-featured li::before { background-color: #10291f; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2 7 10.5l4.5-5' fill='none' stroke='%235ee0a8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
:root[data-theme="dark"] .plan-featured { box-shadow: inset 0 0 0 1px #2f5c48, 0 30px 60px -30px #000; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .plan-featured { box-shadow: inset 0 0 0 1px #2f5c48, 0 30px 60px -30px #000; } }
:root[data-theme="dark"] .plan li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2 7 10.5l4.5-5' fill='none' stroke='%235ee0a8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .plan li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2 7 10.5l4.5-5' fill='none' stroke='%235ee0a8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); } }
.plans-note { text-align: center; margin: 1.5rem 0 0; }

/* faq */
.faq-grid { display: grid; gap: 1rem; }
@media (min-width: 960px) { .faq-grid { grid-template-columns: 1fr 1.6fr; gap: 4rem; align-items: start; } .faq-grid .section-head { position: sticky; top: 6.5rem; } }
.faq { padding: .5rem 1.6rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.15rem 0; font: 700 1.1rem/1.35 var(--font-display); letter-spacing: -0.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--card-2); color: var(--ink); font: 500 1.2rem/1 var(--font-sans); transition: transform .2s, background-color .2s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--accent); color: var(--accent-ink); }
.faq summary:hover { color: var(--accent-strong); }
.faq details p { margin: -.2rem 0 1.25rem; max-width: 40rem; color: var(--ink-2); }
.faq code { padding: .1rem .35rem; border-radius: 6px; background: var(--card-2); font-size: .88em; }

/* final CTA */
.final { position: relative; overflow: clip; padding-block: clamp(4.5rem, 10vw, 7.5rem); }
.final::before { content: ""; position: absolute; inset: -30% 20% auto; height: 120%; background: radial-gradient(closest-side, rgb(94 224 168 / .14), transparent); pointer-events: none; }
.final-inner { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
.final .display { max-width: 15ch; margin-bottom: 1.25rem; }
.final .cta-row { justify-content: center; }

/* footer: one row of links, the legal line on a double rule (like a total), then the wordmark set very large.
   Columns are <details>: open everywhere without JS; script.js folds them into an accordion on phones. */
.site-footer { padding-top: clamp(3.5rem, 7vw, 5.5rem); border-top: 1px solid var(--band-line); overflow: hidden; }
.footer-grid { display: grid; gap: 2.5rem 2rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 1040px) {
  .footer-grid { grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr)); }
  .footer-brand { grid-column: auto; padding-right: 2rem; }
}
.footer-brand p { max-width: 21rem; margin: 1rem 0 .75rem; color: var(--band-ink-2); }
.footer-mail { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--accent); font-weight: 700; text-decoration: none; }
.footer-mail:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-h { margin: 0 0 .75rem; font: 600 .82rem/1.2 var(--font-sans); color: var(--band-ink-3); list-style: none; }
.footer-h::-webkit-details-marker { display: none; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--band-ink); text-decoration: none; font-size: .95rem; font-weight: 500; line-height: 1.25; }
@media (pointer: fine) { .footer-col a { min-height: 2rem; } }
.footer-col a:hover, .footer-legal a:hover { color: var(--accent); }

/* Phones: brand on top, then each heading a full-width toggle row. */
@media (max-width: 719.98px) {
  .footer-grid { grid-template-columns: 1fr; gap: 0; }
  .footer-brand { margin-bottom: 2rem; }
  .footer-col { border-top: 1px solid var(--band-line); }
  .footer-col:last-child { border-bottom: 1px solid var(--band-line); }
  .footer-col > summary { display: flex; align-items: center; justify-content: space-between; min-height: 3.25rem; margin: 0; cursor: pointer; font-size: .95rem; color: var(--band-ink); }
  .footer-col > summary::after { content: "+"; font-size: 1.3rem; color: var(--band-ink-3); transition: transform .2s ease; }
  .footer-col[open] > summary::after { transform: rotate(45deg); }
  .footer-col ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1rem; padding-bottom: .75rem; }
}
@media (prefers-reduced-motion: reduce) { .footer-col > summary::after { transition: none; } }

.footer-base-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem 1.5rem;
  padding-top: .75rem; border-top: 3px double #3a3a37; font-size: .85rem; color: var(--band-ink-3); }
.footer-base { margin-top: clamp(3rem, 6vw, 4.5rem); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 0 1.5rem; list-style: none; margin: 0; padding: 0; }
.footer-legal a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--band-ink-2); text-decoration: none; }
/* The wordmark fills the page width; its baseline sits just above the trademark line. */
.footer-word { margin-top: clamp(1.5rem, 4vw, 3rem); user-select: none; }
.footer-word img { display: block; width: 100%; height: auto; }
.footer-tm { margin-top: 1.25rem; padding-bottom: 1.5rem; font-size: .75rem; line-height: 1.5; color: var(--band-ink-3); }

/* legal placeholder pages */
.legal { padding-block: 3rem 5rem; max-width: 46rem; }
.legal h1 { margin-bottom: .75rem; }
.legal h2 { font-size: 1.4rem; margin: 2rem 0 .5rem; }
.legal p, .legal li { color: var(--ink-2); }
.legal a { color: var(--accent-strong); font-weight: 600; }
.placeholder { padding: 1rem 1.25rem; margin-bottom: 2rem; border-radius: 16px; background: var(--elim-soft); color: var(--elim); font-weight: 700; }

/* Links from homepage sections to their product pages */
.more { margin: 1rem 0 0; }
.more-link { display: inline-flex; align-items: center; gap: .35rem; min-height: 2.75rem; font-weight: 700; color: var(--accent-strong, #0f7a4f); text-decoration: none; }
.dark .more-link, .band .more-link { color: var(--accent); }
.more-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* 404 */
.nf-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.nf-links a { display: flex; flex-direction: column; gap: .3rem; padding: 1.25rem 1.4rem; min-height: 2.75rem; text-decoration: none; color: inherit; }
.nf-links span { color: var(--ink-2, inherit); font-size: .95rem; }
