/* tapStat website. One typeface (Manrope), one accent (emerald), flat fields of colour.
   Motion lives in site.js and motion.js; everything here reads fine without them. */
@font-face { font-family: Manrope; src: url(manrope.woff2) format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
  --bg: #F3F1EA; --bg-2: #E9E6DC; --bg-3: #DDD9CC; --card: #FBFAF6;
  --ink: #0D1410; --muted: #47514B; --line: #D2CFC3;
  --brand: #0F5132; --accent: #1F8A5B; --brand-2: #1F8A5B;
  --forest: #0B3D2A; --forest-2: #0F5132; --on-forest: #F1FAF4; --on-forest-2: #B9DCC8;
  --mint: #9FF0C6; --mint-soft: #D5F5E3; --mint-ink: #0B3D2A;
  --up: #126B43; --down: #B4400B;
  --btn: #0B3D2A; --btn-ink: #F1FAF4;
  --r: 16px; --r-lg: 28px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1240px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --float: 0 24px 60px -24px rgb(11 61 42 / .45);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #070C0A; --bg-2: #0E1613; --bg-3: #15201B; --card: #111A16;
    --ink: #ECF2EE; --muted: #A1AEA6; --line: #26342D;
    --brand: #7DEBB2; --accent: #34C77E; --brand-2: #34C77E;
    --forest: #0D3626; --forest-2: #12452F; --on-forest: #ECF7F0; --on-forest-2: #A9CDB8;
    --mint-soft: #12301F; --mint-ink: #C9F5DD; --up: #4ADE95; --down: #FB923C;
    --btn: #9FF0C6; --btn-ink: #06251A;
    --float: 0 24px 60px -24px rgb(0 0 0 / .8);
  }
}
:root[data-theme="dark"] {
  --bg: #070C0A; --bg-2: #0E1613; --bg-3: #15201B; --card: #111A16;
  --ink: #ECF2EE; --muted: #A1AEA6; --line: #26342D;
  --brand: #7DEBB2; --accent: #34C77E; --brand-2: #34C77E;
  --forest: #0D3626; --forest-2: #12452F; --on-forest: #ECF7F0; --on-forest-2: #A9CDB8;
  --mint-soft: #12301F; --mint-ink: #C9F5DD; --up: #4ADE95; --down: #FB923C;
  --btn: #9FF0C6; --btn-ink: #06251A;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 18px/1.6 Manrope, system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { text-decoration-thickness: 2.5px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--mint); color: var(--forest); }
h1, h2, h3, h4 { line-height: 1.05; letter-spacing: -0.035em; margin: 0 0 .45em; font-weight: 800; text-wrap: balance; }
h1 { font-size: clamp(42px, 6.6vw, 96px); letter-spacing: -0.048em; line-height: .98; }
h2 { font-size: clamp(32px, 4.4vw, 60px); }
h3 { font-size: clamp(20px, 1.8vw, 24px); letter-spacing: -0.02em; line-height: 1.2; }
h4 { font-size: 15px; letter-spacing: 0; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { padding-left: 1.2em; }
strong { font-weight: 750; }
code { overflow-wrap: anywhere; font-size: .86em; background: var(--bg-2); padding: 2px 7px; border-radius: 6px; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 860px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: var(--card); padding: 10px 14px; border-radius: 10px; }
.muted { color: var(--muted); }
.lead { font-size: clamp(19px, 1.7vw, 23px); line-height: 1.5; color: var(--muted); max-width: 36em; letter-spacing: -0.01em; }
.center { text-align: center; }
.center .lead, .center.lead { margin-left: auto; margin-right: auto; }
/* A plain kicker in the accent colour: no pill, no caps. */
.eyebrow { display: block; font-size: 16px; font-weight: 750; color: var(--accent); margin-bottom: 14px; letter-spacing: -0.005em; }
.num { font-variant-numeric: tabular-nums; }

/* Buttons: one shape (pill), one fill. */
.btn { --bx: 0px; --by: 0px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: var(--btn); color: var(--btn-ink); font: inherit; font-size: 17px; font-weight: 750; text-decoration: none; padding: 16px 26px; border-radius: 999px; border: 0; cursor: pointer; transform: translate(var(--bx), var(--by)); transition: transform .35s var(--ease), background-color .2s, color .2s; white-space: nowrap; }
.btn::after { content: "→"; display: inline-block; transition: transform .35s var(--ease); }
.btn:hover { text-decoration: none; }
.btn:hover::after { transform: translateX(4px); }
.btn:active { transform: translate(var(--bx), var(--by)) scale(.97); }
.btn-sm { padding: 10px 18px; font-size: 15px; }
.btn-sm::after { display: none; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn-ghost::after { display: none; }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 32px 0 16px; }

/* Header: a plain bar that steps aside while you read. */
.top { position: sticky; top: 0; z-index: 30; background: var(--bg); transition: transform .45s var(--ease), background-color .3s; }
.top.is-hidden { transform: translateY(-100%); }
.top.is-scrolled { background: color-mix(in srgb, var(--bg) 94%, transparent); box-shadow: 0 1px 0 var(--line); }
.top-in { display: flex; align-items: center; gap: 28px; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 22px; letter-spacing: -0.035em; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 10px; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a, .menu nav a:not(.btn) { position: relative; color: var(--ink); text-decoration: none; font-weight: 650; font-size: 16px; padding: 10px 14px; border-radius: 999px; transition: background-color .2s; }
.nav a:hover { background: var(--bg-2); }
.nav a[aria-current] { background: var(--bg-2); }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; width: 46px; height: 46px; border-radius: 999px; display: grid; place-content: center; gap: 6px; background: var(--bg-2); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.menu[open] summary span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu[open] summary span:nth-child(2) { opacity: 0; }
.menu[open] summary span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.menu nav { position: absolute; right: 0; top: 58px; background: var(--card); border-radius: 20px; padding: 10px; display: grid; min-width: 240px; box-shadow: var(--float); }
.menu nav a:not(.btn) { font-size: 18px; padding: 12px 14px; }
.menu nav .btn { margin-top: 8px; }
@media (max-width: 900px) {
  .nav, .top-in > .btn { display: none; }
  .menu { display: block; margin-left: auto; }
  .top-in { height: 64px; }
}

/* Sections */
section { padding: clamp(72px, 10vw, 160px) 0; }
.band { background: var(--bg-2); }
.field { background: var(--forest); color: var(--on-forest); }
.field .lead, .field .muted, .field p { color: var(--on-forest-2); }
.field h2, .field h3, .field strong { color: var(--on-forest); }
.field a:not(.btn) { color: var(--mint); }
.field .btn { background: var(--mint); color: var(--forest); }
.field .btn-ghost { background: transparent; color: var(--on-forest); box-shadow: inset 0 0 0 2px rgb(255 255 255 / .3); }
.field .eyebrow { color: var(--mint); }
.section-head { max-width: 820px; margin-bottom: clamp(40px, 5vw, 72px); }
.section-head.center { margin-left: auto; margin-right: auto; }
.split-head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 64px; align-items: end; margin-bottom: clamp(40px, 6vw, 88px); }
.split-head h2 { margin: 0; }
.split-head p { margin: 0; }
@media (max-width: 860px) { .split-head { grid-template-columns: 1fr; } }

/* Hero */
.hero { padding-top: clamp(32px, 5vw, 72px); padding-bottom: clamp(56px, 7vw, 112px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero h1 { font-size: clamp(40px, 5.5vw, 84px); }
.hero .center h1, .hero .wrap:not(.hero-grid) h1 { max-width: 15em; }
.hero-note { font-size: 15px; color: var(--muted); }
.hero .lead { margin-bottom: 0; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }

/* The hero stage: a forest field holding the real app and the live pace panel. */
.stage { position: relative; background: var(--forest); border-radius: var(--r-lg); min-height: 620px; overflow: hidden; display: grid; place-items: center; padding: 48px 24px; isolation: isolate; }
.stage .phone { width: min(290px, 62%); transform: translateX(16%) rotate(2deg); }
.stage .pace { position: absolute; left: 24px; bottom: 28px; width: min(360px, calc(100% - 48px)); z-index: 2; }
.stage-grid { position: absolute; inset: 0; z-index: -1; opacity: .5; background-image: radial-gradient(circle at 1px 1px, rgb(159 240 198 / .18) 1px, transparent 0); background-size: 22px 22px; }
@media (max-width: 960px) { .stage { min-height: 0; padding: 32px 16px 0; display: block; } .stage .phone { width: min(260px, 70%); margin: 0 auto; transform: none; } .stage .pace { position: relative; left: auto; bottom: auto; width: auto; margin: -120px 0 16px; } }
@media (prefers-reduced-motion: no-preference) {
  .stage { animation: shutter 1.15s var(--ease) .1s both; }
  .stage .phone { animation: settle 1.4s var(--ease) .1s both; }
  .stage .pace { animation: rise .9s var(--ease) .65s both; }
  @keyframes shutter { from { clip-path: inset(0 0 100% 0 round var(--r-lg)); } to { clip-path: inset(0 0 0 0 round var(--r-lg)); } }
  @keyframes settle { from { scale: 1.12; } }
}

/* Live pace panel (a real interface fragment) */
.pace { background: var(--card); color: var(--ink); border-radius: 22px; padding: 20px 20px 16px; box-shadow: var(--float); font-size: 15px; }
.pace-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.pace-label { font-weight: 700; color: var(--muted); font-size: 14px; margin: 0; }
.pace-value { font-size: 40px; font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; margin: 2px 0 0; font-variant-numeric: tabular-nums; }
.pace-delta { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; font-size: 14px; color: var(--up); background: var(--mint-soft); padding: 4px 10px; border-radius: 999px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pace-delta.is-down { color: var(--down); background: color-mix(in srgb, var(--down) 14%, transparent); }
.pace svg { width: 100%; height: auto; display: block; margin: 12px 0 6px; overflow: visible; }
.pace .l-last { fill: none; stroke: var(--muted); stroke-width: 2; stroke-dasharray: 4 5; opacity: .7; }
.pace .l-proj { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 2 5; stroke-linecap: round; }
.pace .l-today { fill: none; stroke: var(--accent); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.pace .a-today { fill: color-mix(in srgb, var(--accent) 16%, transparent); }
.pace .dot { fill: var(--accent); stroke: var(--card); stroke-width: 3; }
.pace-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 4px 0 12px; }
.pace-meta div { background: var(--bg-2); border-radius: 12px; padding: 8px 12px; }
.pace-meta small { display: block; color: var(--muted); font-size: 13px; font-weight: 650; }
.pace-meta b { font-size: 17px; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.pace label { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; color: var(--muted); }
.pace input[type=range] { width: 100%; accent-color: var(--accent); margin: 6px 0 0; height: 28px; cursor: ew-resize; }

/* Phone frame */
.phone { background: #060908; padding: 8px; border-radius: 40px; box-shadow: var(--float), 0 0 0 1px rgb(255 255 255 / .08) inset; }
.phone img { border-radius: 32px; width: 100%; aspect-ratio: 480 / 1000; object-fit: cover; object-position: top; }

/* Marquee of what it works with */
.strip { padding: 26px 0; background: var(--bg); overflow: hidden; }
.strip ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 14px 48px; flex-wrap: wrap; justify-content: center; font-weight: 750; font-size: clamp(17px, 1.6vw, 22px); letter-spacing: -0.02em; color: var(--muted); }
.strip li { display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; }
.strip li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.strip.is-marquee ul { flex-wrap: nowrap; justify-content: flex-start; width: max-content; animation: marquee 38s linear infinite; }
.strip.is-marquee:hover ul { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .strip.is-marquee ul { animation: none; flex-wrap: wrap; width: auto; justify-content: center; } .strip.is-marquee li[aria-hidden] { display: none; } }

/* Two figures compared */
.versus { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--r-lg); overflow: hidden; margin-top: clamp(40px, 6vw, 80px); }
.versus > div { padding: clamp(24px, 3vw, 40px); min-height: clamp(220px, 30vw, 380px); display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.versus > div:first-child { background: var(--bg-2); }
.versus > div:last-child { background: var(--forest); color: var(--on-forest); }
.versus p { margin: 0; font-weight: 700; font-size: 17px; }
.versus > div:last-child p { color: var(--on-forest-2); }
.versus b { display: block; font-size: clamp(88px, 15vw, 230px); line-height: .82; letter-spacing: -0.065em; font-weight: 800; margin-bottom: -0.12em; font-variant-numeric: tabular-nums; }
.versus > div:last-child b { color: var(--mint); }
@media (max-width: 640px) { .versus { grid-template-columns: 1fr; } }

/* Claims with a real interface fragment each */
.claims { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.claim .ui { min-height: 210px; margin-bottom: 26px; }
.claim p { margin: 0; }
@media (max-width: 900px) { .claims { grid-template-columns: 1fr; } .claim .ui { min-height: 0; } }
.ui { background: var(--card); border-radius: 22px; padding: 18px; font-size: 15px; line-height: 1.4; transition: transform .45s var(--ease); }
.ui:hover { transform: translateY(-4px); }
.ui-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ui-k { color: var(--muted); font-weight: 700; font-size: 13px; }
.ui-v { font-size: 30px; font-weight: 800; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.ui-spark { width: 100%; height: 56px; margin-top: 10px; }
.ui-spark path { fill: none; stroke: var(--accent); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.ui-spark path + path { stroke: var(--muted); stroke-width: 1.6; stroke-dasharray: 3 4; opacity: .7; }
.ui-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 12px; }
.ui-tiles div { background: var(--bg-2); border-radius: 10px; padding: 7px 9px; }
.ui-tiles small { display: block; color: var(--muted); font-size: 12px; font-weight: 700; }
.ui-tiles b { font-size: 15px; font-variant-numeric: tabular-nums; }
.ui-bars { display: grid; gap: 10px; margin-top: 12px; }
.ui-bar { display: grid; grid-template-columns: 112px 1fr 48px; gap: 10px; align-items: center; font-weight: 650; font-size: 14px; }
.ui-bar i { display: block; height: 10px; border-radius: 99px; background: var(--accent); transform-origin: left; width: var(--w); }
.ui-bar i.neg { background: var(--down); }
.ui-bar span:last-child { text-align: right; font-variant-numeric: tabular-nums; font-weight: 800; }
.ui-note { margin-top: 14px; background: var(--mint-soft); color: var(--mint-ink); border-radius: 12px; padding: 10px 12px; font-weight: 650; font-size: 14px; }
.ui-notif { display: grid; grid-template-columns: 36px 1fr; gap: 12px; background: var(--bg-2); border-radius: 16px; padding: 12px; }
.ui-notif + .ui-notif { margin-top: 8px; }
.ui-notif img { border-radius: 9px; }
.ui-notif b { display: flex; justify-content: space-between; font-size: 13px; }
.ui-notif b span { color: var(--muted); font-weight: 650; }
.ui-notif p { margin: 2px 0 0; font-size: 14px; }
.ui-notif.is-quiet { opacity: .62; }

/* Scroll story: steps on the left, a sticky phone on the right */
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); }
.story-stage { position: sticky; top: 110px; height: min(78vh, 700px); display: grid; place-items: center; }
.story-stage .phone { position: absolute; width: min(320px, 76%); transition: opacity .6s var(--ease), transform .8s var(--ease); }
.story-stage .phone:not(.is-active) { opacity: 0; transform: translateY(24px) scale(.96); }
.story-step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; padding: 24px 0; transition: opacity .4s; }
.story-step .phone { display: none; }
.js .story-step:not(.is-active) { opacity: .4; }
.story-step h3 { font-size: clamp(28px, 3vw, 42px); letter-spacing: -0.035em; line-height: 1.05; }
@media (max-width: 860px) {
  .story { grid-template-columns: 1fr; }
  .story-stage { display: none; }
  .story-step { min-height: 0; padding: 0 0 64px; }
  .js .story-step:not(.is-active) { opacity: 1; }
  .story-step .phone { display: block; width: min(280px, 76%); margin: 0 auto 32px; }
}

/* Cards (used sparingly: lists of links, roadmap) */
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.card { background: var(--card); border-radius: var(--r-lg); padding: clamp(22px, 2.4vw, 32px); }
.card h3 { margin-top: 2px; }
.card p:last-child { margin-bottom: 0; }
/* Facts in a row: a large word on a tinted field instead of an icon. */
.icon { width: 52px; height: 52px; border-radius: 16px; background: var(--forest); color: var(--mint); display: grid; place-items: center; margin-bottom: 18px; font-weight: 800; font-size: 20px; }
.icon svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hero-card { background: var(--forest); color: var(--on-forest); }
.hero-card .muted, .hero-card p { color: var(--on-forest-2); }
.hero-card a { color: var(--mint); }

/* Feature rows */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 7vw, 120px); align-items: center; padding: clamp(40px, 6vw, 88px) 0; }
.feature .phone { width: min(320px, 82%); margin: 0 auto; }
.feature-media { position: relative; background: var(--bg-2); border-radius: var(--r-lg); padding: clamp(32px, 5vw, 64px) 16px; overflow: hidden; }
.band .feature-media { background: var(--bg-3); }
.feature:nth-child(even) .feature-media { order: 2; }
.feature h2 { font-size: clamp(30px, 3.6vw, 52px); }
.feature h3 { font-size: clamp(26px, 2.6vw, 38px); letter-spacing: -0.035em; line-height: 1.05; }
.feature ul, .story ul { padding-left: 0; list-style: none; margin: 22px 0 0; }
.feature li, .story li { padding: 9px 0 9px 34px; position: relative; }
.feature li::before, .story li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 16px; height: 8px; border-left: 3px solid var(--accent); border-bottom: 3px solid var(--accent); transform: rotate(-45deg); transform-origin: 30% 60%; }
.tag { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .02em; color: var(--mint-ink); background: var(--mint-soft); padding: 2px 9px; border-radius: 99px; vertical-align: 2px; }
.tag.pro { background: var(--forest); color: var(--mint); }
@media (max-width: 800px) {
  .feature { grid-template-columns: 1fr; }
  .feature:nth-child(even) .feature-media { order: 0; }
}

/* Tables: no rules between cells; zebra steps of tone instead. */
.table-wrap { overflow-x: auto; border-radius: var(--r-lg); background: var(--card); -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: 16px; }
th, td { text-align: left; padding: 16px 20px; vertical-align: top; }
tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--bg-2) 60%, transparent); }
thead th { font-size: 14px; color: var(--muted); font-weight: 750; background: var(--bg-2); white-space: nowrap; }
.compare thead th:nth-child(2) { color: var(--brand); }
td.y, td.n, td.p { font-weight: 750; white-space: nowrap; }
td.y { color: var(--up); }
td.n { color: var(--muted); }
td.p { color: var(--down); }
.compare td:nth-child(2), .compare th:nth-child(2) { background: color-mix(in srgb, var(--mint-soft) 70%, transparent) !important; }
@media (max-width: 640px) { th, td { padding: 13px 14px; } table { font-size: 15px; } }

/* Pricing */
.toggle { position: relative; display: inline-flex; background: var(--bg-2); border-radius: 999px; padding: 5px; margin: 12px 0 40px; }
.toggle button { position: relative; z-index: 1; font: inherit; font-weight: 750; font-size: 16px; border: 0; background: transparent; color: var(--muted); padding: 11px 20px; border-radius: 999px; cursor: pointer; transition: color .25s, background-color .25s; }
.toggle button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 2px 10px -4px rgb(0 0 0 / .25); }
.toggle small { color: var(--accent); font-weight: 800; }
/* Plans stand as fields that meet at hard edges; the wider dark one is the one we recommend. */
.plans { gap: 0; border-radius: var(--r-lg); overflow: hidden; grid-template-columns: 1fr 1.3fr 1fr; align-items: stretch; }
.plans > .card { border-radius: 0; background: var(--bg-2); padding: clamp(28px, 3vw, 44px); }
.plans > .card:last-child { background: var(--bg-3); }
.plans > .hero-card { background: var(--forest); }
.plan { display: flex; flex-direction: column; position: relative; }
.plan h3 { font-size: clamp(26px, 2.4vw, 34px); letter-spacing: -0.035em; }
.plan .price { font-size: clamp(52px, 5.6vw, 84px); font-weight: 800; letter-spacing: -0.055em; line-height: .95; margin: 18px 0 8px; font-variant-numeric: tabular-nums; }
.plan .price small { font-size: 17px; font-weight: 650; color: var(--muted); letter-spacing: 0; }
.plan.hero-card .price { color: var(--mint); }
.plan.hero-card .price small { color: var(--on-forest-2); }
.plan ul { list-style: none; padding: 0; margin: 20px 0 28px; flex: 1; }
.plan li { padding: 7px 0 7px 28px; position: relative; font-size: 16px; }
.plan li::before { content: ""; position: absolute; left: 2px; top: 14px; width: 12px; height: 6px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }
.plan.hero-card li::before { border-color: var(--mint); }
.plan .btn { width: 100%; }
.plan.hero-card .btn { background: var(--mint); color: var(--forest); }
.plan.hero-card .btn-ghost { background: transparent; color: var(--on-forest); box-shadow: inset 0 0 0 2px rgb(255 255 255 / .3); }
.badge { position: absolute; top: clamp(28px, 3vw, 44px); right: clamp(28px, 3vw, 44px); background: var(--mint); color: var(--forest); font-size: 13px; font-weight: 800; padding: 5px 12px; border-radius: 99px; }
[data-period="yearly"] .m, [data-period="monthly"] .y { display: none; }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; } .plans > .hero-card { order: -1; } }
/* A single dark plan card on its own (Team hero) keeps its rounded corners. */
.hero-card.plan { border-radius: var(--r-lg); padding: clamp(28px, 3vw, 44px); }
.hero-card.plan .badge { position: static; align-self: flex-start; margin-bottom: 14px; }

/* Calculator */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; background: var(--forest); color: var(--on-forest); }
.calc p, .calc .muted, .calc li { color: var(--on-forest-2); }
.calc strong { color: var(--on-forest); }
.calc label { font-weight: 750; display: block; margin-bottom: 10px; }
.calc input[type=range] { width: 100%; accent-color: var(--mint); height: 32px; cursor: ew-resize; }
.calc output { font-size: 36px; font-weight: 800; display: block; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.calc .big { font-size: clamp(64px, 9vw, 132px); font-weight: 800; line-height: .9; letter-spacing: -0.06em; color: var(--mint); font-variant-numeric: tabular-nums; }
@media (max-width: 800px) { .calc { grid-template-columns: 1fr; } }

/* Roadmap board */
.board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: start; }
@media (max-width: 1040px) { .board { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .board { grid-template-columns: 1fr; } }
.col { background: var(--bg-2); border-radius: var(--r-lg); padding: 14px; }
.col:first-child { background: var(--forest); }
.col:first-child h3 { color: var(--mint); }
.col h3 { font-size: 18px; color: var(--ink); padding: 8px 8px 14px; margin: 0; display: flex; justify-content: space-between; letter-spacing: -0.02em; }
.item { background: var(--card); border-radius: 18px; padding: 16px 18px; margin-bottom: 10px; transition: transform .35s var(--ease); }
.item:hover { transform: translateY(-3px); }
.item strong { display: block; font-size: 17px; letter-spacing: -0.01em; }
.item p { font-size: 15px; color: var(--muted); margin: 4px 0 12px; }
.item p:last-child { margin-bottom: 0; }
.vote { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; font-weight: 750; text-decoration: none; color: var(--brand); background: var(--bg-2); border-radius: 99px; padding: 6px 13px; transition: background-color .2s, transform .2s; }
.vote:hover { background: var(--mint-soft); text-decoration: none; }
.vote:active { transform: scale(.95); }

/* Changelog timeline */
.log { border-left: 3px solid var(--bg-3); margin-left: 8px; padding-left: 32px; }
.log article { position: relative; padding-bottom: 44px; }
.log article::before { content: ""; position: absolute; left: -42px; top: 5px; width: 17px; height: 17px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px var(--bg); }
.log article:first-child::before { background: var(--mint); box-shadow: 0 0 0 5px var(--bg), 0 0 0 9px color-mix(in srgb, var(--accent) 35%, transparent); }
.log time { font-size: 15px; font-weight: 750; color: var(--muted); }
.log h3 { margin: 6px 0 10px; font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -0.03em; }
.log ul { margin: 0; padding-left: 20px; }
.log li { margin-bottom: 6px; }

/* FAQ: each question a row; opening animates where the browser supports it. */
.faq h2 { margin-bottom: 32px; }
.faq details { border-radius: 20px; background: var(--card); margin-bottom: 10px; transition: background-color .25s; interpolate-size: allow-keywords; }
.faq details::details-content { block-size: 0; overflow: hidden; transition: block-size .4s var(--ease), content-visibility .4s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
.faq summary { cursor: pointer; font-weight: 750; font-size: clamp(18px, 1.5vw, 20px); letter-spacing: -0.015em; padding: 22px 24px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--bg-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F8A5B' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 18px no-repeat; transition: transform .4s var(--ease); }
.faq details[open] summary::after { transform: rotate(135deg); }
.faq details > *:not(summary) { margin: 0; padding: 0 24px; color: var(--muted); }
.faq details > *:last-child { padding-bottom: 22px; }
.band .faq details, .faq.band details { background: var(--card); }

/* Closing call to action: a whole field of colour. */
.cta { background: var(--forest); color: var(--on-forest); border-radius: var(--r-lg); padding: clamp(40px, 7vw, 104px) clamp(24px, 6vw, 88px); text-align: left; position: relative; overflow: hidden; }
.cta h2 { color: var(--on-forest); font-size: clamp(36px, 5.6vw, 80px); max-width: 13em; letter-spacing: -0.045em; }
.cta p { color: var(--on-forest-2); max-width: 34em; font-size: clamp(18px, 1.5vw, 21px); }
.cta .actions { justify-content: flex-start !important; }
.cta .btn { background: var(--mint); color: var(--forest); }
.cta .btn-ghost { background: transparent; color: var(--on-forest); box-shadow: inset 0 0 0 2px rgb(255 255 255 / .3); }
.cta a:not(.btn) { color: var(--mint); }
.cta-mark { position: absolute; right: clamp(-60px, -3vw, -20px); bottom: clamp(-60px, -3vw, -20px); width: clamp(160px, 26vw, 380px); opacity: .9; pointer-events: none; }
@media (max-width: 760px) { .cta-mark { display: none; } }

/* Notes, steps and prose */
.note { background: var(--mint-soft); color: var(--mint-ink); border-radius: 18px; padding: 20px 24px; margin: 28px 0; }
.note a { color: inherit; }
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; position: relative; padding-left: 54px; margin-bottom: 20px; min-height: 36px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 36px; height: 36px; border-radius: 50%; background: var(--forest); color: var(--mint); font-weight: 800; display: grid; place-items: center; font-size: 15px; }

.prose { max-width: 780px; margin: 0 auto; padding: clamp(40px, 6vw, 88px) var(--gutter) clamp(56px, 8vw, 120px); }
.prose h1 { font-size: clamp(38px, 5.4vw, 72px); }
.prose h2 { font-size: clamp(28px, 2.8vw, 38px); margin-top: 1.8em; letter-spacing: -0.03em; }
.prose h3 { margin-top: 1.6em; }
.prose p, .prose li { color: var(--ink); }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--accent); font-weight: 800; }
.prose .lead { color: var(--muted); }
.prose figure { margin: 40px 0; background: var(--bg-2); border-radius: var(--r-lg); padding: clamp(28px, 4vw, 48px) 16px 20px; }
.prose figcaption { font-size: 15px; color: var(--muted); margin-top: 18px; text-align: center; }
.prose .phone { width: min(280px, 76%); margin: 0 auto; }
.prose .table-wrap { margin: 28px 0; background: var(--card); }
.prose .faq { margin-top: 20px; }
.prose .cta { margin-top: 64px !important; }
.prose .cta h2 { font-size: clamp(32px, 4vw, 52px); margin-top: 0; }
.prose .card { background: var(--card); }
.meta { font-size: 15px; color: var(--muted); margin-bottom: 32px; font-weight: 650; }
.crumbs { font-size: 15px; margin-bottom: 22px; color: var(--muted); font-weight: 650; }
.crumbs a { color: var(--muted); }

/* Article shell: contents list beside the article on wide screens, progress bar on top */
.article-shell { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1fr minmax(0, 780px) 1fr; }
.article-shell > .prose { grid-column: 2; margin: 0; }
.toc { grid-column: 1; grid-row: 1; justify-self: end; width: 230px; padding-top: clamp(260px, 30vw, 420px); padding-right: 8px; }
.toc nav { position: sticky; top: 108px; font-size: 14px; }
.toc p { font-weight: 800; margin: 0 0 10px; font-size: 14px; }
.toc a { display: block; color: var(--muted); text-decoration: none; padding: 6px 0 6px 14px; border-left: 2px solid var(--bg-3); line-height: 1.35; transition: color .2s, border-color .2s; }
.toc a:hover { color: var(--ink); }
.toc a.is-active { color: var(--ink); border-color: var(--accent); font-weight: 700; }
@media (max-width: 1220px) { .article-shell { display: block; } .toc { display: none; } }
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 40; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }
@supports (animation-timeline: scroll()) {
  .progress { animation: progress linear both; animation-timeline: scroll(root); }
  @keyframes progress { to { transform: scaleX(1); } }
}

/* Lists of guides */
.post-list a { color: inherit; text-decoration: none; display: block; height: 100%; }
.post-list .card { height: 100%; display: flex; flex-direction: column; transition: transform .45s var(--ease), background-color .3s; }
.post-list .card h3 { font-size: clamp(21px, 1.9vw, 26px); letter-spacing: -0.025em; }
.post-list .card span { margin-top: auto; color: var(--brand); font-weight: 750; font-size: 16px; }
.post-list a:hover .card { transform: translateY(-5px); background: var(--mint-soft); }
.post-list a:focus-visible { outline: none; }
.post-list a:focus-visible .card { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Data use (OAuth verification relies on this section staying on the home page) */
.trust { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.trust h2 { margin: 0; }
.scope { display: inline-flex; align-items: center; gap: 10px; background: var(--card); border-radius: 999px; padding: 8px 16px 8px 10px; font-weight: 750; font-size: 15px; margin-top: 24px; }
.scope::before { content: ""; width: 22px; height: 22px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 13px no-repeat; }
@media (max-width: 860px) { .trust { grid-template-columns: 1fr; } }

/* Built in public */
.public { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.shipped { background: var(--card); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 36px); }
.shipped h3 { display: flex; justify-content: space-between; align-items: center; }
.shipped ol { list-style: none; padding: 0; margin: 0; }
.shipped li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding: 12px 0; font-weight: 600; }
.shipped li + li { box-shadow: 0 -1px 0 var(--bg-2); }
.shipped li::before { content: ""; width: 22px; height: 22px; border-radius: 50%; background: var(--mint-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F8A5B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 13px no-repeat; margin-top: 2px; }
.live { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 750; color: var(--accent); letter-spacing: 0; }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 currentColor; }
@media (prefers-reduced-motion: no-preference) { .live::before { animation: ping 2s var(--ease) infinite; } @keyframes ping { 70%, 100% { box-shadow: 0 0 0 8px transparent; } } }
@media (max-width: 860px) { .public { grid-template-columns: 1fr; } }

/* Footer: a designed close with the name at full width */
.foot { background: var(--forest); color: var(--on-forest); padding: clamp(64px, 8vw, 112px) 0 28px; margin-top: clamp(40px, 6vw, 80px); font-size: 16px; overflow: hidden; }
.foot-grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 36px; }
.foot .brand { color: var(--on-forest); }
.foot-brand p { color: var(--on-forest-2); margin-top: 14px; max-width: 24em; }
.foot .foot-h { font-size: 15px; color: var(--mint); margin: 0 0 14px; font-weight: 800; }
.foot-grid a:not(.brand) { display: block; color: var(--on-forest); text-decoration: none; padding: 5px 0; opacity: .86; transition: opacity .2s, transform .3s var(--ease); }
.foot-grid a:not(.brand):hover { opacity: 1; transform: translateX(3px); }
.foot-brand p a { display: inline !important; color: var(--mint) !important; opacity: 1 !important; }
.foot-word { font-size: clamp(88px, 22.5vw, 330px); font-weight: 800; letter-spacing: -0.07em; line-height: .78; margin: clamp(56px, 8vw, 120px) 0 0.24em -0.04em; color: var(--mint); white-space: nowrap; user-select: none; }
.foot-word span { color: var(--on-forest); }
.fine { color: var(--on-forest-2); font-size: 14px; margin: 36px 0 0; padding-top: 22px; box-shadow: 0 -1px 0 rgb(255 255 255 / .12); }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* Entrances. Content is visible by default; site.js only adds .reveal when it can animate it in. */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .9s var(--ease) both; }
  .rise.d1 { animation-delay: .08s; } .rise.d2 { animation-delay: .16s; } .rise.d3 { animation-delay: .24s; }
  @keyframes rise { from { opacity: 0; transform: translateY(22px); } }
  h1.rise { animation-name: lift; }
  @keyframes lift { from { transform: translateY(22px); } }
  .reveal { opacity: 0; transform: translateY(28px); }
  .reveal.is-in { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
  .ui-bar i { transition: transform 1.1s var(--ease) .2s; }
  .reveal:not(.is-in) .ui-bar i { transform: scaleX(0); }
}
.hero-card tbody tr td { background: transparent; }
.post-list .featured { grid-column: 1 / -1; }
.post-list .featured .card { background: var(--forest); color: var(--on-forest); padding: clamp(28px, 4vw, 56px); }
.post-list .featured .card h3 { font-size: clamp(28px, 3.4vw, 48px); letter-spacing: -0.04em; line-height: 1.02; max-width: 16em; }
.post-list .featured .card p { color: var(--on-forest-2) !important; max-width: 36em; }
.post-list .featured .card span { color: var(--mint); }
.post-list .featured:hover .card { background: var(--forest-2); }
.prose .cta p { color: var(--on-forest-2); }
.prose .cta h2 { color: var(--on-forest); }
