/* All colour, type and radius values below come from the Trakytt app repo:
   lib/ui-tokens/src/tokens.ts (web + mobile palettes, status palette, radius)
   and artifacts/trakytt-web/src/index.css (Inter). */
:root {
  /* web light palette */
  --ink: hsl(222 47% 11%);            /* foreground #0F172A */
  --graphite: #1E293B;                /* sidebar (repo note: #1E293B) */
  --graphite-2: hsl(215 28% 17%);     /* secondary-foreground */
  --graphite-border: hsl(215 28% 22%);/* sidebar-border */
  --muted: hsl(215 16% 40%);          /* muted-foreground (WCAG AA) */
  --line: hsl(214 32% 91%);           /* border #E2E8F0 */
  --line-soft: hsl(210 40% 96%);      /* secondary/muted #F1F5F9 */
  --bg: hsl(0 0% 100%);               /* card */
  --bg-soft: hsl(214 40% 98%);        /* background #F8FAFC */
  --surface: hsl(210 40% 96%);        /* secondary #F1F5F9 */
  --teal: hsl(174 80% 20%);           /* primary #0A5C54 */
  --teal-2: #0F9F8D;                  /* mobile primaryDark */
  --teal-bright: #14B8A6;             /* status-validated */
  --mint: #CCFBF1;                    /* mobile primaryLight */
  --mint-soft: hsl(166 76% 90%);      /* accent */
  --mint-ink: hsl(174 80% 25%);       /* accent-foreground */
  --amber: #F59E0B;                   /* status-review */
  --rose: #DC2626;                    /* status-error */
  /* status palette */
  --ok-bg: rgba(20,184,166,0.10); --ok-text: #0F766E;
  --warn-bg: rgba(245,158,11,0.10); --warn-text: #B45309;
  --err-bg: rgba(220,38,38,0.08); --err-text: #B91C1C;
  --info-bg: rgba(59,130,246,0.08); --info-text: #1D4ED8;
  --pending-text: #64748B;
  /* radius scale: web --radius 0.25rem, mobileRadius 6 */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius: 6px;
  --radius-lg: 8px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 2px 4px rgba(15, 23, 42, 0.04), 0 24px 60px rgba(15, 23, 42, 0.12);
  --font: "Inter", system-ui, sans-serif;
  --font-display: "Inter", system-ui, sans-serif;
  --font-mono: "SF Mono", "Fira Code", Menlo, monospace;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; letter-spacing: -0.025em; line-height: 1.12; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: var(--radius); border: 1px solid transparent;
  font-weight: 500; font-size: 15px; transition: transform .2s, box-shadow .2s, background .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-dark { background: var(--graphite); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 6px 16px rgba(15,23,42,.18); }
.btn-dark:hover { background: var(--ink); }
.btn-light { background: var(--bg-soft); border-color: var(--line); color: var(--ink); }
.btn-light:hover { background: #fff; box-shadow: var(--shadow); }
.btn-mint { background: var(--mint); color: var(--teal); }
.btn-mint:hover { background: var(--mint-soft); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-2); }
.btn-block { width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 50;
  display: flex; align-items: center; gap: 4px; padding: 6px;
  background: var(--graphite); /* #1E293B — app sidebar token */
  border-radius: var(--radius); box-shadow: 0 10px 30px rgba(15,23,42,.18);
  width: min(720px, calc(100% - 32px));
}
.nav-side { display: flex; gap: 2px; flex: 1; align-items: center; }
.nav-side.right { justify-content: flex-end; }
.nav a.link {
  color: var(--line); font-size: 14px; padding: 9px 12px; border-radius: var(--radius); transition: background .2s, color .2s;
}
.nav a.link:hover, .nav a.link.active { color: var(--ink); background: #fff; }
.nav .brand { width: 44px; height: 44px; display: grid; place-items: center; margin: 0 8px; }
.nav .brand img { width: 38px; height: 38px; }
.nav .btn { height: 40px; padding: 0 16px; border-radius: var(--radius); font-size: 14px; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; padding: 8px; }
.mobile-menu {
  display: none; position: fixed; top: 84px; left: 16px; right: 16px; z-index: 49;
  background: var(--graphite); border-radius: var(--radius); padding: 10px; box-shadow: var(--shadow-lg);
}
.mobile-menu a { display: block; color: var(--line); padding: 12px 14px; border-radius: var(--radius); }
.mobile-menu a:hover { background: rgba(255,255,255,.08); }
.mobile-menu.open { display: block; }

/* ---------- Section chrome ---------- */
section { position: relative; }
.section { padding: 110px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; margin-bottom: 18px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 500;
  box-shadow: 0 1px 2px rgba(15,23,42,.04);
}
.eyebrow .dot { width: 22px; height: 22px; border-radius: var(--radius-md); background: var(--mint); display: grid; place-items: center; }
.eyebrow .dot .icon { width: 13px; height: 13px; stroke-width: 2.2; }
.section-head h2 { font-size: clamp(32px, 4.4vw, 48px); font-weight: 600; }
.section-head p { color: var(--muted); font-size: 17px; margin-top: 16px; }

.grid-bg {
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 56px 56px;
}

/* ---------- Hero ---------- */
.hero { padding: 150px 0 70px; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 220px;
  background: linear-gradient(transparent, #fff); pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; text-align: center; max-width: 780px; margin: 0 auto; }
.hero-mark {
  width: 76px; height: 76px; margin: 0 auto 24px; border-radius: 50%; display: grid; place-items: center;
}
.hero-mark img { width: 76px; height: 76px; }
.pill-join {
  display: inline-flex; align-items: center; gap: 10px; padding: 5px 5px 5px 6px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); font-size: 14px; box-shadow: var(--shadow);
}
.avatars { display: flex; }
.avatars span {
  width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; margin-left: -8px; display: grid; place-items: center;
  font-size: 10px; font-weight: 600; color: #fff;
}
.avatars span:first-child { margin-left: 0; }
.pill-join .tag { background: var(--mint); padding: 5px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 500; }
.hero h1 { font-size: clamp(38px, 6vw, 62px); font-weight: 600; margin: 24px 0 18px; }
.hero h1 em { font-style: normal; color: var(--cta-hover); } /* #0EA5A4: brand CTA teal, 3.0:1 on white = AA for large text */
.hero .lede { color: var(--muted); font-size: 18px; max-width: 620px; margin: 0 auto; }
.hero-ctas { display: flex; gap: 12px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }

.float-card {
  position: absolute; z-index: 1; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 16px; font-size: 13px; width: 250px;
  animation: bob 7s ease-in-out infinite;
}
.float-card h5 { margin: 0 0 10px; font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
/* Cards hug the outer edges. Each offset = ~16px visible gap + ~14px tilt overhang + the card's
   parallax travel in motion.js (14/24/20/30px), so a card never crops at the viewport edge. */
.fc-1 { left: 44px; top: 170px; transform: rotate(-8deg); width: 230px; }
.fc-2 { left: 54px; top: 470px; transform: rotate(6deg); animation-delay: -2s; width: 240px; }
.fc-3 { right: 50px; top: 160px; transform: rotate(7deg); animation-delay: -4s; width: 230px; }
.fc-4 { right: 60px; top: 470px; transform: rotate(-5deg); animation-delay: -1s; width: 220px; }
.float-card .fc-row:has(+ .fc-note, + .bar) { border-bottom: 0; }
.float-card .fc-note { margin-top: 10px; font-size: 10.5px; color: var(--muted); letter-spacing: .02em; }
/* Below this width the gutters are narrower than a card, so the cards would cover the headline. */
@media (max-width: 1399px) { .float-card { display: none; } }
@keyframes bob { 50% { translate: 0 -10px; } }
.fc-row { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.fc-row:last-child { border-bottom: 0; }
.fc-row b { font-weight: 600; }
.chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 500;
}
.chip.ok { background: var(--ok-bg); color: var(--ok-text); }
.chip.warn { background: var(--warn-bg); color: var(--warn-text); }
.chip.bad { background: var(--err-bg); color: var(--err-text); }
.chip.info { background: var(--info-bg); color: var(--info-text); }
.check { display: flex; align-items: center; gap: 10px; padding: 6px 0; color: var(--graphite-2); }
.check i { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--line); flex: none; }
.check.done i { background: var(--teal-bright); border-color: var(--teal-bright); box-shadow: inset 0 0 0 3px #fff; }
.check.done span { text-decoration: line-through; color: var(--muted); }
.bar { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; margin-top: 10px; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--teal-bright), var(--mint)); border-radius: inherit; }

.marquee-wrap { margin-top: 70px; position: relative; z-index: 2; text-align: center; }
.marquee-wrap > p { font-size: 14px; font-weight: 500; margin-bottom: 18px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
.marquee-track { display: flex; gap: 10px; width: max-content; animation: scroll 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-50%); } }
.feat-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: var(--radius); background: #fff;
  border: 1px solid var(--line); font-size: 14px; color: var(--graphite-2); white-space: nowrap;
}
.feat-chip .icon { width: 17px; height: 17px; color: var(--teal); }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.tile {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
  padding: 28px; display: flex; flex-direction: column; overflow: hidden; position: relative;
}
.tile h3 { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.tile p { color: var(--muted); font-size: 15px; }
.tile .stage { margin-top: 24px; flex: 1; display: flex; align-items: flex-end; justify-content: center; }
.span-3 { grid-column: span 3; }
.span-2 { grid-column: span 2; }
.span-6 { grid-column: 1 / -1; }
/* Wide tile with the copy beside the demo */
.tile-split { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 32px; align-items: center; }
.tile-split .stage { margin-top: 0; }
.mock { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; padding: 14px; font-size: 13px; }

.receipt-scan { display: grid; grid-template-columns: 110px 1fr; gap: 14px; align-items: stretch; }
.receipt {
  background: repeating-linear-gradient(#fff 0 14px, var(--surface) 14px 15px); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 10px; position: relative; overflow: hidden; font-size: 10px; color: var(--muted);
}
.receipt b { color: var(--ink); display: block; font-size: 11px; margin-bottom: 6px; }
.receipt .scanline {
  position: absolute; left: 0; right: 0; height: 2px; background: var(--teal-bright);
  box-shadow: 0 0 14px 4px rgba(20,184,166,.45); animation: scan 2.6s ease-in-out infinite;
}
@keyframes scan { 0%, 100% { top: 6%; } 50% { top: 92%; } }
.field { display: flex; justify-content: space-between; gap: 8px; padding: 6px 8px; border-radius: var(--radius-md); background: var(--bg-soft); margin-bottom: 6px; }
.field span { color: var(--muted); }
.field b { font-weight: 600; }
.conf { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); margin-top: 8px; }
.conf .bar { flex: 1; margin: 0; }

.queue-row { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 9px 4px; border-bottom: 1px solid var(--line-soft); }
.queue-row:last-child { border: 0; }
.queue-row .who { display: flex; align-items: center; gap: 10px; }
.queue-row .ava { width: 28px; height: 28px; border-radius: var(--radius-md); display: grid; place-items: center; font-size: 11px; font-weight: 600; color: #fff; }
.queue-row small { display: block; color: var(--muted); font-size: 11.5px; }
.amt { font-weight: 600; font-variant-numeric: tabular-nums; }

.sync-art { display: flex; align-items: center; justify-content: center; gap: 14px; width: 100%; padding: 10px 0; }
.sync-node { width: 64px; height: 64px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; place-items: center; }
.sync-node img { width: 38px; height: 38px; object-fit: contain; }
.sync-node.core { width: 76px; height: 76px; background: #fff; border: 2px solid var(--teal); }
.sync-node.core img { width: 48px; height: 48px; }
.sync-line { flex: 1; max-width: 60px; height: 2px; background: repeating-linear-gradient(90deg, var(--teal-bright) 0 6px, transparent 6px 12px); background-size: 24px 2px; animation: dash 1s linear infinite; }
@keyframes dash { to { background-position: 24px 0; } }

.deadline { background: var(--graphite); color: #fff; border-radius: var(--radius); padding: 14px; display: flex; gap: 12px; align-items: center; }
.deadline .cal { width: 46px; height: 50px; border-radius: var(--radius-md); background: var(--mint); color: var(--ink); text-align: center; display: grid; align-content: center; line-height: 1.1; }
.deadline .cal small { font-size: 10px; text-transform: uppercase; font-weight: 600; }
.deadline .cal b { font-size: 19px; }
.deadline p { color: var(--line); font-size: 12px; }

.bas-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.bas-grid div { background: var(--bg-soft); border-radius: var(--radius-md); padding: 7px 9px; display: flex; justify-content: space-between; font-size: 12px; }
.bas-grid div span { color: var(--muted); }
.bas-total { margin-top: 8px; background: var(--mint-soft); color: var(--teal); border-radius: var(--radius-md); padding: 10px; display: flex; justify-content: space-between; font-weight: 600; }

/* ---------- Top features ---------- */
.checks-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: -24px auto 48px; max-width: 820px; }
.checks-row .feat-chip { white-space: normal; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: box-shadow .25s, transform .25s;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.card .ic { width: 46px; height: 46px; border-radius: var(--radius); background: var(--mint); display: grid; place-items: center; margin-bottom: 20px; }
.card .ic .icon { width: 22px; height: 22px; }
.card h3 { font-size: 19px; font-weight: 600; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }

/* ---------- Showcase ---------- */
.showcase {
  border-radius: var(--radius-lg); padding: 70px 24px 0; overflow: hidden; position: relative;
  background:
    radial-gradient(55% 55% at 50% 28%, rgba(255,255,255,.22), transparent 70%),
    linear-gradient(160deg, var(--cta) 0%, var(--cta-hover) 45%, #0F766E 100%); /* electric teal → deep teal */
  min-height: 560px; display: flex; justify-content: center; align-items: flex-end;
}
.showcase .squiggle { position: absolute; color: rgba(255,255,255,.35); width: 60px; height: 60px; }
.phone {
  width: 300px; height: 520px; border-radius: 46px 46px 0 0; background: var(--ink); padding: 12px 12px 0;
  box-shadow: 0 30px 80px rgba(0,0,0,.35), inset 0 0 0 2px var(--graphite-border); position: relative; z-index: 2;
}
.screen { background: var(--bg-soft); height: 100%; border-radius: 36px 36px 0 0; overflow: hidden; padding: 14px 16px; font-size: 12px; }
.status-bar { display: flex; justify-content: space-between; font-weight: 600; font-size: 12px; padding: 0 6px 10px; }
.notch { position: absolute; top: 20px; left: 50%; translate: -50% 0; width: 92px; height: 26px; background: var(--ink); border-radius: 99px; }
.app-greet { display: flex; justify-content: space-between; align-items: center; margin: 6px 0 12px; }
.app-greet small { color: var(--muted); }
.app-greet h4 { font-size: 17px; }
.app-greet .me { width: 34px; height: 34px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; font-weight: 600; }
.app-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0; }
.app-tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; }
.app-tile small { color: var(--muted); font-size: 10.5px; }
.app-tile b { display: block; font-size: 18px; font-family: var(--font-display); }
.app-list .fc-row { font-size: 11.5px; }
.app-list h6 { margin: 12px 0 4px; font-size: 12px; }
.scan-fab { position: absolute; bottom: 20px; left: 50%; translate: -50% 0; background: var(--graphite); color: #fff; border-radius: 999px; padding: 10px 18px; display: flex; gap: 8px; align-items: center; font-weight: 500; font-size: 13px; box-shadow: 0 10px 24px rgba(15,23,42,.35); }

.side-note {
  position: absolute; z-index: 3; background: rgba(255,255,255,.95); border-radius: var(--radius); padding: 14px 16px; width: 230px;
  box-shadow: var(--shadow-lg); font-size: 13px;
}
.side-note b { display: block; font-size: 14px; margin-bottom: 2px; }
.side-note p { color: var(--muted); }
.sn-1 { left: 7%; top: 120px; }
.sn-2 { right: 7%; top: 200px; }
.sn-3 { left: 10%; bottom: 60px; }

.highlight-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 18px; }

/* ---------- Why / stats ---------- */
.why { display: grid; grid-template-columns: 1.05fr 1fr; gap: 18px; }
.why-panel { background: var(--graphite); color: #fff; border-radius: var(--radius-lg); padding: 40px; position: relative; overflow: hidden; }
.why-panel::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 50% at 90% 0%, rgba(20,184,166,.25), transparent); }
.why-panel > * { position: relative; }
.why-panel h3 { font-size: 30px; font-weight: 600; }
.why-panel > p { color: hsl(214 20% 70%); margin-top: 12px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 40px; }
.stat { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); padding: 18px; }
.stat b { font-family: var(--font-display); font-size: 34px; font-weight: 600; color: var(--mint); display: block; line-height: 1.1; }
.stat span { color: var(--line); font-size: 13px; }
.why-list { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.why-list .card { padding: 24px; }

/* ---------- Steps ---------- */
.steps { margin-top: 56px; }
.steps-title { text-align: center; font-size: 22px; font-weight: 600; margin: 0 0 18px; }
.steps-tabs { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; background: var(--surface); padding: 6px; border-radius: var(--radius); width: max-content; max-width: 100%; margin: 0 auto 28px; }
.steps-tabs button { border: 0; background: none; padding: 10px 16px; border-radius: var(--radius); color: var(--muted); font-weight: 500; font-size: 14px; display: inline-flex; gap: 8px; align-items: center; min-height: 44px; }
.steps-tabs button .icon { width: 16px; height: 16px; }
.steps-tabs button.active { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.steps-tabs button:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.step-panel { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; background: var(--surface); border-radius: var(--radius-lg); padding: 44px; animation: fade .4s ease; }
.step-panel[hidden] { display: none; }
.step-panel > * { min-width: 0; }
.step-panel .num { font-family: var(--font-display); color: var(--teal); font-weight: 600; font-size: 14px; }
.step-panel h3 { font-size: 30px; font-weight: 600; margin: 8px 0 14px; }
.step-panel p { color: var(--muted); font-size: 16px; }
.step-panel p b { color: var(--ink); font-weight: 600; }
.step-panel .step-end { display: flex; gap: 10px; align-items: center; margin-top: 20px; padding: 12px 14px; border-radius: var(--radius); background: var(--mint); color: var(--ink); font-weight: 600; font-size: 15px; }
.step-panel .step-end .icon { width: 18px; height: 18px; color: var(--teal); flex: none; }
@media (max-width: 900px) {
  .step-panel { grid-template-columns: 1fr; padding: 28px; }
  .steps-tabs { width: 100%; }
  .steps-tabs button { padding: 8px 10px; font-size: 13px; }
}
@media (max-width: 560px) {
  .step-panel { padding: 20px; gap: 24px; }
  .step-panel h3 { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) { .step-panel { animation: none; } }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } }
.tick { width: 20px; height: 20px; border-radius: 50%; background: var(--mint); display: grid; place-items: center; flex: none; margin-top: 2px; }
.tick .icon { width: 12px; height: 12px; stroke-width: 3; }

/* ---------- Audiences / apps ---------- */
.apps { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.app-card { border-radius: var(--radius-lg); padding: 36px; display: flex; flex-direction: column; gap: 14px; overflow: hidden; position: relative; min-height: 420px; }
.app-card.web { background: var(--surface); }
.app-card.mob { background: var(--graphite); color: #fff; }
.app-card.mob p { color: hsl(214 20% 70%); }
.app-card .kicker { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--teal); }
.app-card.mob .kicker { color: var(--mint); }
.app-card h3 { font-size: 28px; font-weight: 600; }
.app-card p { color: var(--muted); }
.store-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; }
.store {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px; border-radius: var(--radius); background: #fff; color: var(--ink);
  border: 1px solid var(--line); transition: transform .2s;
}
.store:hover { transform: translateY(-1px); }
.store small { display: block; font-size: 10.5px; color: var(--muted); line-height: 1.1; }
.store b { font-size: 15px; line-height: 1.2; }
.store svg { width: 22px; height: 22px; }
.mob .store { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); color: #fff; }
.mob .store small { color: hsl(214 20% 70%); }
.mini-dash { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mini-dash div { background: var(--bg-soft); border-radius: var(--radius-md); padding: 10px; }
.mini-dash small { color: var(--muted); font-size: 11px; display: block; }
.mini-dash b { font-family: var(--font-display); font-size: 20px; }
.spark { grid-column: 1 / -1; height: 70px; background: var(--bg-soft); border-radius: var(--radius-md); padding: 8px !important; }
.spark svg { width: 100%; height: 100%; }

/* ---------- Integrations ---------- */
.integrations { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.integ { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 12px; transition: box-shadow .25s; }
.integ:hover { box-shadow: var(--shadow-lg); }
.integ .top { display: flex; justify-content: space-between; align-items: center; }
.integ .logo { width: 52px; height: 52px; border-radius: var(--radius); background: var(--bg-soft); border: 1px solid var(--line-soft); display: grid; place-items: center; font-weight: 700; font-size: 18px; }
.integ .logo img { width: 34px; height: 34px; object-fit: contain; }
.integ h4 { font-size: 18px; font-weight: 600; }
.integ p { color: var(--muted); font-size: 14.5px; }

/* ---------- Pricing ---------- */
.billing-toggle { display: inline-flex; background: var(--surface); padding: 5px; border-radius: var(--radius); margin-top: 24px; }
.billing-toggle button { border: 0; background: none; padding: 9px 18px; border-radius: var(--radius-md); font-weight: 500; color: var(--muted); font-size: 14px; }
.billing-toggle button.active { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.billing-toggle .save { font-size: 11px; background: var(--mint); color: var(--ink); padding: 2px 6px; border-radius: 6px; margin-left: 6px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; display: flex; flex-direction: column; gap: 18px; }
.plan.featured { background: var(--graphite); color: #fff; border-color: var(--graphite); box-shadow: var(--shadow-lg); position: relative; }
.plan.featured p, .plan.featured .per, .plan.featured li { color: var(--line); }
.plan .name { display: flex; justify-content: space-between; align-items: center; }
.plan .name h3 { font-size: 22px; font-weight: 600; }
.plan .for { font-size: 12.5px; padding: 4px 10px; border-radius: 999px; background: var(--surface); color: var(--graphite-2); }
.plan.featured .for { background: var(--mint); color: var(--ink); }
.price { display: flex; align-items: baseline; gap: 6px; }
.price b { font-family: var(--font-display); font-size: 46px; font-weight: 600; letter-spacing: -0.03em; }
.price .per { color: var(--muted); font-size: 14px; }
.plan p { color: var(--muted); font-size: 15px; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; font-size: 14.5px; }
.plan li { display: flex; gap: 10px; align-items: center; color: var(--graphite-2); }
.plan hr { border: 0; border-top: 1px dashed var(--line); margin: 0; width: 100%; }
.plan.featured hr { border-color: rgba(255,255,255,.15); }
.plan .inc { font-size: 13px; font-weight: 600; }
.promo { text-align: center; margin-top: 22px; color: var(--muted); font-size: 14px; }
.promo b { color: var(--teal); }

.compare { margin-top: 56px; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: auto; }
.compare table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 640px; }
.compare th, .compare td { padding: 16px 20px; text-align: center; border-bottom: 1px solid var(--line-soft); }
.compare th:first-child, .compare td:first-child { text-align: left; }
.compare thead th { background: var(--surface); font-weight: 600; font-family: var(--font-display); }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare td .icon { margin: 0 auto; color: var(--teal); }
.compare td.no { color: var(--line); }

/* ---------- Voices ---------- */
.voices { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.voice { background: var(--surface); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.voice h4 { font-size: 17px; font-weight: 600; }
.voice p { color: var(--muted); font-size: 14.5px; flex: 1; }
.outcomes { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 18px; margin-top: 18px; }
.outcome { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.outcome b { font-family: var(--font-display); font-size: 32px; color: var(--teal); font-weight: 600; }
.outcome p { color: var(--muted); font-size: 14px; }
.outcome.quote { background: var(--graphite); color: #fff; }
.outcome.quote p { color: var(--line); font-size: 16px; }
.outcome.quote small { color: var(--mint); display: block; margin-top: 14px; font-size: 13px; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: start; }
.faq .section-head { text-align: left; margin: 0; position: sticky; top: 120px; }
.faq-list { display: grid; gap: 12px; }
.faq-item { background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid transparent; transition: background .2s, border-color .2s; }
.faq-item.open { background: #fff; border-color: var(--line); box-shadow: var(--shadow); }
.faq-item button { width: 100%; border: 0; background: none; text-align: left; padding: 20px 22px; display: flex; justify-content: space-between; gap: 16px; font-weight: 600; font-size: 16px; color: var(--ink); }
.faq-item button .pm { width: 28px; height: 28px; border-radius: var(--radius-md); background: #fff; display: grid; place-items: center; flex: none; transition: transform .25s, background .2s; }
.faq-item.open button .pm { transform: rotate(45deg); background: var(--mint); }
.faq-item .ans { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.faq-item.open .ans { grid-template-rows: 1fr; }
.faq-item .ans > div { overflow: hidden; }
.faq-item .ans p { padding: 0 22px 20px; color: var(--muted); }

/* ---------- Contact / CTA ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 18px; }
.contact-info { display: grid; gap: 18px; }
.contact-info .card { display: flex; flex-direction: column; gap: 6px; }
.contact-info .card small { color: var(--muted); }
.contact-info .card a.big { font-family: var(--font-display); font-size: 22px; font-weight: 600; }
form.card { display: grid; gap: 14px; }
form.card h3 { font-size: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { font-size: 13.5px; font-weight: 500; display: grid; gap: 6px; }
input, select, textarea {
  font: inherit; font-size: 15px; padding: 12px 14px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-soft); color: var(--ink); width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--teal-bright); outline-offset: 1px; background: #fff; }
textarea { min-height: 110px; resize: vertical; }
.form-ok { display: none; background: var(--mint-soft); color: var(--teal); padding: 12px 14px; border-radius: var(--radius); font-weight: 500; }

.cta {
  border-radius: var(--radius-lg); padding: 70px 40px; text-align: center; color: #fff; overflow: hidden; position: relative;
  background: radial-gradient(50% 80% at 50% 0%, rgba(20,184,166,.35), transparent 70%), var(--graphite);
}
.cta h2 { font-size: clamp(32px, 4.6vw, 50px); font-weight: 600; max-width: 760px; margin: 0 auto; }
.cta > p { color: hsl(214 20% 70%); max-width: 560px; margin: 16px auto 0; font-size: 17px; }
.cta .store-btns { justify-content: center; margin-top: 32px; }
.cta .store { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); color: #fff; }
.cta .store small { color: hsl(214 20% 70%); }
.cta-stats { display: flex; justify-content: center; gap: 40px; margin-top: 40px; flex-wrap: wrap; }
.cta-stats div b { font-family: var(--font-display); font-size: 28px; color: var(--mint); display: block; }
.cta-stats div span { color: hsl(214 20% 70%); font-size: 13px; }

/* ---------- Footer ---------- */
footer { padding: 70px 0 30px; }
.foot { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; }
.foot .brandline { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 20px; }
.foot .brandline img { width: 34px; height: 34px; }
.foot p { color: var(--muted); margin-top: 14px; max-width: 320px; font-size: 14.5px; }
.foot h5 { font-size: 14px; margin: 0 0 14px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 14.5px; color: var(--muted); }
.foot ul a:hover { color: var(--ink); }
.legal { border-top: 1px solid var(--line); margin-top: 50px; padding-top: 24px; display: flex; justify-content: space-between; color: var(--muted); font-size: 13.5px; flex-wrap: wrap; gap: 10px; }
.wordmark { white-space: nowrap; overflow: hidden; }
/* Footer: Follow TRAKYTT social icons (#48). [hidden] must win over the display rules below. */
.foot-social { margin-top: 22px; }
.foot-social[hidden], .foot-social [hidden] { display: none !important; }
.foot .foot-social .foot-title { margin: 0 0 10px; max-width: none; }
.foot-social ul { display: flex; flex-wrap: wrap; gap: 8px; }
.foot-social a {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius);
  border: 1px solid var(--line); color: var(--muted); background: #fff; transition: color .2s, border-color .2s, background .2s;
}
.foot-social a:hover { color: var(--ink); border-color: var(--ink); }
.foot-social a:focus-visible { color: var(--ink); outline: 2px solid var(--teal-bright); outline-offset: 2px; }
.foot-social svg { width: 18px; height: 18px; fill: currentColor; }
@media (max-width: 640px) { .legal { flex-direction: column; } }
.wordmark { font-family: var(--font-display); font-weight: 700; font-size: clamp(48px, 15vw, 200px); letter-spacing: -0.06em; line-height: .8; text-align: center; margin-top: 50px; color: transparent; background: linear-gradient(180deg, var(--line), #fff 90%); -webkit-background-clip: text; background-clip: text; user-select: none; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .float-card { display: none; }
  .side-note { display: none; }
  .voices { grid-template-columns: 1fr 1fr; }
  .outcomes { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .section { padding: 80px 0; }
  .bento { grid-template-columns: 1fr 1fr; }
  .span-3, .span-2 { grid-column: span 1; }
  .tile-split { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .tile-split .stage { margin-top: 24px; }
  .bento .wide-sm { grid-column: 1 / -1; }
  .cards-3, .highlight-cards, .integrations, .plans { grid-template-columns: 1fr 1fr; }
  .why, .apps, .faq, .contact { grid-template-columns: 1fr; }
  .faq .section-head { position: static; }
  .foot { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-side .link, .nav-side .btn { display: none; }
  .nav-toggle { display: block; }
  .nav { justify-content: space-between; }
  .nav-side { flex: 0; }
  .nav .brand { margin: 0; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .hero { padding-top: 130px; }
  .bento, .cards-3, .highlight-cards, .integrations, .plans, .why-list, .voices, .outcomes, .form-row { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .stat { padding: 12px; }
  .stat b { font-size: 24px; }
  .why-panel, .app-card, .tile, .plan { padding: 24px; }
  .showcase { border-radius: var(--radius-lg); min-height: 0; }
  .phone { width: 270px; height: 480px; }
  .cta { padding: 50px 20px; border-radius: var(--radius-lg); }
  .mini-dash { grid-template-columns: 1fr 1fr; }
  .foot { grid-template-columns: 1fr; }
}

/* ---------- SEO / a11y helpers ---------- */
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--teal); color: #fff; padding: 10px 16px; border-radius: var(--radius); }
.skip:focus { top: 16px; }
.chip.soon { vertical-align: middle; margin-left: 6px; font-size: 11px; }
:focus-visible { outline: 2px solid var(--teal-bright); outline-offset: 2px; }

/* ---------- Small-screen fixes ---------- */
.tile > *, .receipt-scan > * { min-width: 0; }
.receipt-scan { grid-template-columns: 110px minmax(0, 1fr); }
@media (max-width: 480px) {
  .receipt-scan { grid-template-columns: minmax(0, 1fr); }
  .receipt { min-height: 120px !important; }
  .pill-join { font-size: 13px; gap: 8px; }
  .pill-join .avatars { display: none; }
  .hero .lede { font-size: 16px; }
  .hero-ctas .btn { width: 100%; }
  .section-head { margin-bottom: 36px; }
  .field { flex-wrap: wrap; }
  .queue-row { grid-template-columns: minmax(0, 1fr) auto; }
  .queue-row .chip { grid-column: 2; justify-self: end; }
  .nav .brand { width: 40px; height: 40px; }
}
.nav-toggle, .faq-item button, .billing-toggle button { min-height: 44px; }

/* ---------- Bento: journal preview + BAS calendar ---------- */
.tile .stage-stack { flex-direction: column; align-items: stretch; justify-content: flex-end; gap: 14px; }
.journal-head { display: flex; justify-content: space-between; align-items: center; font-weight: 600; margin-bottom: 8px; }
.journal-row { display: grid; grid-template-columns: minmax(0, 1.6fr) 1fr 1fr; gap: 8px; padding: 7px 4px; border-bottom: 1px solid var(--line-soft); font-variant-numeric: tabular-nums; }
.journal-row span:not(:first-child) { text-align: right; }
.journal-row small { color: var(--muted); font-size: 11px; margin-left: 4px; }
.journal-cols { color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; padding-top: 2px; }
.journal-total { border-bottom: 0; font-weight: 600; background: var(--ok-bg); color: var(--ok-text); border-radius: var(--radius-md); margin-top: 4px; }
.cal-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 2px; border-bottom: 1px solid var(--line-soft); }
.cal-row:last-child { border-bottom: 0; }
.cal-row .ava { width: 28px; height: 28px; border-radius: var(--radius-md); display: grid; place-items: center; font-size: 11px; font-weight: 600; color: #fff; }
.cal-row small { display: block; color: var(--muted); font-size: 11.5px; }
.cal-row > span:nth-child(2) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bas-cal .cal-row > span:nth-child(2) { white-space: normal; font-weight: 600; }
.bas-cal .cal-row small { font-weight: 400; }
.bas-cal .cal-row .chip { max-width: 96px; white-space: normal; text-align: center; justify-content: center; line-height: 1.25; padding: 3px 8px; }
.mock .journal-id { font-size: 12px; color: var(--muted); margin: -4px 0 6px; }
.journal-oob { border-bottom: 0; font-weight: 600; color: var(--ok-text); }
.tile .sync-art { padding: 0; }

/* ---------- Primary CTA: electric teal ----------
   #14B8A6 is the repo's status-validated teal; #0EA5A4 is its hover.
   Dark ink text keeps AA contrast (7.2:1 / 5.9:1) — white would fail (2.5:1). */
:root { --cta: #14B8A6; --cta-hover: #0EA5A4; --cta-ink: var(--ink); }
.btn-primary {
  background: var(--cta); color: var(--cta-ink); font-weight: 600;
  box-shadow: 0 6px 18px rgba(20, 184, 166, .35), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.btn-primary:hover { background: var(--cta-hover); box-shadow: 0 8px 22px rgba(14, 165, 164, .4), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-primary:active { transform: translateY(0) scale(.98); }
.btn-primary:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.plan.featured .btn-primary, .cta .btn-primary, .nav .btn-primary { box-shadow: 0 6px 18px rgba(20, 184, 166, .28); }

/* ---------- Critique fixes (#4 contrast, #5 demo affordance) ---------- */
.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; }
.compare td.no { color: var(--muted); }                       /* was 1.2:1, now 6:1 */
.check.done i { background: var(--ok-text); border-color: var(--ok-text); }  /* #0F766E, 5.5:1 */
:focus-visible, input:focus, select:focus, textarea:focus { outline-color: var(--teal); } /* 7.9:1 focus ring */
.try-tag {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; margin-bottom: 12px;
  padding: 4px 10px 4px 8px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: var(--ok-bg); color: var(--ok-text); border: 1px solid rgba(20, 184, 166, .25);
}
.try-tag .icon { width: 13px; height: 13px; stroke-width: 2.2; }
@media (prefers-reduced-motion: no-preference) {
  .try-tag .icon { animation: try-pulse 2.4s ease-in-out infinite; }
  @keyframes try-pulse { 0%, 70%, 100% { transform: none; } 80% { transform: scale(1.25) rotate(-10deg); } 90% { transform: scale(.95); } }
}
/* receipt demo sits under its copy instead of pinned to the tile bottom */
.bento .tile:first-child .stage { align-items: flex-start; }

/* ---------- Consent checkboxes (all forms) ---------- */
.consents { border: 0; padding: 0; margin: 2px 0 0; display: grid; gap: 10px; min-width: 0; }
.consent { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; font-size: 13.5px; font-weight: 400; color: var(--muted); line-height: 1.5; cursor: pointer; }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; padding: 0; accent-color: var(--teal); cursor: pointer; }
.consent a { color: var(--teal); text-decoration: underline; text-underline-offset: 2px; font-weight: 500; }
.consent .req { color: var(--err-text); }
.consent.is-invalid span { color: var(--err-text); }
.consent.is-invalid input { outline: 2px solid var(--err-text); outline-offset: 2px; }

/* Closed-beta pill: pulsing status dot */
.beta-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cta); margin-left: 8px; box-shadow: 0 0 0 0 rgba(20, 184, 166, .5); }
@media (prefers-reduced-motion: no-preference) { .beta-dot { animation: beta-pulse 2s ease-out infinite; } }
@keyframes beta-pulse { 70% { box-shadow: 0 0 0 8px rgba(20, 184, 166, 0); } 100% { box-shadow: 0 0 0 0 rgba(20, 184, 166, 0); } }

/* ---------- Usage-based pricing ---------- */
.pay-grid { display: grid; grid-template-columns: 1fr 56px 1fr; align-items: stretch; }
.meter { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; display: flex; flex-direction: column; gap: 10px; transition: box-shadow .25s, transform .25s; }
.meter:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.meter-ic { width: 46px; height: 46px; border-radius: var(--radius); background: var(--ok-bg); color: var(--ok-text); display: grid; place-items: center; }
.meter-ic .icon { width: 22px; height: 22px; }
.meter-price { display: flex; align-items: center; gap: 12px; margin: 6px 0 2px; }
.meter-price b { font-size: 56px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; color: var(--ink); }
.meter-price span { font-size: 14px; line-height: 1.3; color: var(--muted); }
.meter h3 { font-size: 19px; font-weight: 600; }
.meter p { color: var(--muted); font-size: 15px; }
.meter p b { color: var(--ink); }
.pay-plus { display: grid; place-items: center; font-size: 30px; font-weight: 300; color: var(--muted); }

.calc { display: grid; grid-template-columns: 1.3fr 1fr; gap: 0; margin-top: 18px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.calc-inputs { padding: 30px; display: grid; gap: 22px; align-content: start; }
.calc-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.calc-head h3 { font-size: 20px; font-weight: 600; }
.calc-field { display: grid; gap: 10px; font-weight: 500; }
.calc-label { display: flex; justify-content: space-between; align-items: baseline; font-size: 14.5px; }
.calc-label output { font-size: 22px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.calc-scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); font-weight: 400; }
.calc-hint { font-size: 13.5px; color: var(--muted); }
.calc input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 8px; padding: 0; border: 0; border-radius: 99px; cursor: pointer;
  background: linear-gradient(90deg, var(--cta) 0 var(--fill, 50%), var(--line) var(--fill, 50%) 100%);
}
.calc input[type="range"]:focus { outline: none; }
.calc input[type="range"]:focus-visible { outline: 2px solid var(--teal); outline-offset: 6px; }
.calc input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 3px solid var(--cta);
  box-shadow: 0 2px 8px rgba(15, 23, 42, .2); transition: transform .15s;
}
.calc input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--cta); box-shadow: 0 2px 8px rgba(15, 23, 42, .2); }
.calc input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); }
.calc-out { background: var(--graphite); color: #fff; padding: 30px; display: flex; flex-direction: column; gap: 12px; }
.calc-line { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 12px; border-bottom: 1px dashed rgba(255, 255, 255, .15); font-variant-numeric: tabular-nums; }
.calc-line span { color: var(--line); }
.calc-line small { display: block; color: hsl(214 20% 70%); font-size: 12.5px; margin-top: 2px; }
.calc-line b { font-size: 18px; }
.calc-total { display: flex; flex-direction: column; gap: 2px; padding: 6px 0 2px; }
.calc-total span { color: var(--mint); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.calc-total b { font-size: 46px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.calc-total.bump b { animation: calc-bump .35s ease-out; }
@keyframes calc-bump { 40% { color: var(--cta); } }
.calc-per { color: var(--line); font-size: 14px; }
.calc-per b { color: #fff; }
.calc-out .btn { margin-top: auto; }
.calc-fine { font-size: 12px; color: hsl(214 20% 70%); text-align: center; }

.included { margin-top: 18px; background: var(--surface); border-radius: var(--radius-lg); padding: 30px; }
.included h3 { font-size: 20px; font-weight: 600; margin-bottom: 18px; }
.included ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 24px; }
.included li { display: flex; gap: 10px; align-items: center; font-size: 15px; color: var(--graphite); }
.included li .icon { width: 18px; height: 18px; color: var(--ok-text); flex: none; stroke-width: 2.4; }

@media (max-width: 900px) {
  .pay-grid { grid-template-columns: 1fr; }
  .pay-plus { height: 44px; }
  .calc { grid-template-columns: 1fr; }
  .included ul { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .meter, .calc-inputs, .calc-out, .included { padding: 22px; }
  .meter-price b { font-size: 46px; }
  .calc-total b { font-size: 38px; }
  .included ul { grid-template-columns: 1fr; }
}

/* Former mock/footers headings, now plain text (keeps the heading outline clean for SEO) */
.float-card .fc-title { margin: 0 0 10px; font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.app-greet .app-name { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; }
.app-list .app-h { margin: 12px 0 4px; font-size: 12px; font-weight: 600; }
.foot .foot-title { font-size: 14px; font-weight: 600; margin: 0 0 14px; color: var(--ink); }
.integ h3 { font-size: 18px; font-weight: 600; }
.voice h3 { font-size: 17px; font-weight: 600; }
.q-reset { background: none; border: 0; padding: 0; color: var(--teal); font: inherit; font-size: 12.5px; text-decoration: underline; cursor: pointer; }

/* Closed-beta pill: never squash the dot or wrap the button; stack the copy on phones */
.pill-join .beta-dot, .pill-join .tag { flex: none; white-space: nowrap; }
.pill-join .pill-text span { white-space: nowrap; }
@media (max-width: 560px) {
  .pill-join { flex-wrap: wrap; justify-content: center; gap: 8px 10px; padding: 12px 14px; border-radius: var(--radius-lg); max-width: 100%; text-align: left; }
  .pill-join .beta-dot { margin-left: 0; }
  .pill-join .pill-text { display: flex; flex-direction: column; line-height: 1.35; font-size: 13.5px; }
  .pill-join .pill-text span:first-child { font-weight: 600; }
  .pill-join .pill-sep { display: none; }
  .pill-join .tag { flex-basis: 100%; text-align: center; padding: 8px 12px; border-radius: var(--radius); }
}

/* Phones: beta badge is one row (dot · two-line copy · round arrow button) */
@media (max-width: 560px) {
  .pill-join { flex-wrap: nowrap; justify-content: flex-start; gap: 10px; padding: 10px 10px 10px 14px; text-align: left; }
  .pill-join .pill-text { flex: 1; min-width: 0; }
  .pill-join .tag {
    flex: none; flex-basis: auto; width: 38px; height: 38px; padding: 0; border-radius: 50%;
    display: grid; place-items: center; font-size: 18px; line-height: 1; transition: transform .2s;
  }
  .pill-join:active .tag { transform: translateX(2px); }
  .pill-join .tag-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.bas-cal .nw { white-space: nowrap; }
/* Narrow calendar card: status chip moves under the client details */
.bas-cal { container-type: inline-size; }
@container (max-width: 360px) {
  .bas-cal .cal-row { grid-template-columns: 28px minmax(0, 1fr); align-items: start; }
  .bas-cal .cal-row .chip { grid-column: 2; justify-self: start; max-width: none; margin-top: 2px; }
}

/* ---------- Hero headline: two balanced lines, teal then navy (#24) ---------- */
.hero h1.hero-title { font-size: clamp(40px, 7vw, 76px); line-height: 1.04; margin: 26px 0 20px; }
.hero-title > em, .hero-title > .ht-line { display: block; }
.hero-title > .ht-line { color: var(--ink); }
.section-head h2 { text-wrap: balance; }

/* ---------- For your clients: phone content flows, capture button below activity (#11) ---------- */
.phone { height: auto; min-height: 520px; }
.screen { height: auto; min-height: 508px; display: flex; flex-direction: column; padding-bottom: 18px; }
.screen > .chip { align-self: flex-start; }
.app-bas { margin-top: 10px; padding: 10px; }
.app-bas .cal { width: 40px; height: 44px; flex: none; }
.app-bas .cal b { font-size: 16px; }
.app-bas > div:last-child b { font-size: 12.5px; display: block; }
.app-bas p { font-size: 11px; }
.app-bas .app-bas-left { color: var(--mint); font-weight: 600; }
.app-list .fc-row { gap: 8px; }
.app-list .fc-row .chip { white-space: nowrap; }
.screen .scan-fab { position: static; translate: none; align-self: center; margin-top: 14px; }
.showcase-note { text-align: center; margin-top: 10px; font-size: 12px; color: var(--muted); font-style: italic; }
@media (max-width: 640px) { .phone { min-height: 480px; } .screen { min-height: 468px; } }

/* ---------- Why TRAKYTT: word tiles (#12) ---------- */
.stats-words .stat b { font-size: 26px; }
.stats-words .stat span { display: block; margin-top: 4px; }
@media (max-width: 640px) {
  .stats.stats-words { grid-template-columns: 1fr; }
  .stats-words .stat b { font-size: 22px; }
}

/* ---------- Store badges as recognition graphics, not links (#15, #21) ---------- */
.store-badges { display: flex; gap: 10px; flex-wrap: wrap; }
.store-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px; border-radius: var(--radius);
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: #fff; cursor: default; user-select: none;
}
.store-badge small { display: block; font-size: 10.5px; color: hsl(214 20% 70%); line-height: 1.1; }
.store-badge b { font-size: 15px; line-height: 1.2; }
.store-badge svg { width: 22px; height: 22px; }
.invite-access { margin-top: auto; display: grid; gap: 14px; padding-top: 6px; }
.app-card.mob .invite-access .invite-title { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: #fff; letter-spacing: -0.01em; }
.app-card.mob .invite-access .invite-note { font-size: 14px; color: hsl(214 20% 70%); }

/* ---------- Pricing inclusions: 1–4 left, 5–8 centre, 9–12 right (#17) ---------- */
@media (min-width: 901px) {
  .included ul { grid-auto-flow: column; grid-template-rows: repeat(4, auto); }
}
.included li { align-items: flex-start; }
.included li .icon { margin-top: 3px; }

/* ---------- What to expect: feature cards replace testimonials (#18) ---------- */
.expect-card .ic { width: 46px; height: 46px; border-radius: var(--radius); background: var(--mint); color: var(--teal); display: grid; place-items: center; }
.expect-card .ic .icon { width: 22px; height: 22px; }
.expect-card h3 { line-height: 1.25; }

/* ---------- FAQ: long questions wrap beside the +/- control (#19) ---------- */
.faq-item button { align-items: flex-start; }
.faq-item button .faq-q { flex: 1; min-width: 0; padding-top: 2px; }

/* ---------- Closing banner (#21) ---------- */
.cta-action { display: flex; justify-content: center; margin-top: 32px; }
.cta .cta-access { color: hsl(214 20% 70%); font-size: 14.5px; margin: 22px auto 0; max-width: 520px; }
.cta .store-badges { justify-content: center; margin-top: 14px; }
.cta-stats { gap: 24px 40px; }
.cta-stats > div { flex: 1 1 180px; max-width: 240px; }
.cta-stats div span { display: block; margin-top: 4px; line-height: 1.4; }
.cta-stats div b { font-size: 24px; line-height: 1.2; }
@media (max-width: 640px) {
  .cta-stats { flex-direction: column; align-items: center; }
  .cta-stats > div { flex: none; max-width: 280px; }
}
