/* Pago Invoice marketing site. Light mode only.
   Colours come from the app (Theme.swift, AccentColor). Screens in assets/app are real captures. */

:root {
  /* Palette: inspired by 7shifts' warm neutrals and bright accents, shifted to our own shades.
     Orange leads (buttons, highlights); blue is secondary. */
  --accent: #F65A1E;     /* ember orange */
  --accent-2: #DB4A12;
  --blue: #3F66F2;
  --blue-2: #2C52DC;
  --peri: #DEE5FF;
  --beige: #E9E4DA;
  --lime: #D4F7A6;
  --green: #1E4A42;
  --lav: #D2B4F2;
  --warm: #F6F4EF;       /* page background */

  --band: var(--peri);
  --canvas: var(--warm);

  --ink: #000000;
  --ink-2: #3A3A3A;
  --ink-3: #6E6E6E;
  --line: #E4E2DC;
  --white: #FFFFFF;

  --draft: #4A5468;
  --estimate: #2A3FA0;
  --unpaid: #8A3F06;
  --overdue: #A11F1F;
  --paid: #176030;

  --nav-h: 88px;
  --nav-tail: 8px;
  --track-h: 84px;
  --track-gap: 16px;
  --r-xl: 32px;
  --r-lg: 24px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --expo: cubic-bezier(.16, 1, .3, 1);   /* long, soft settle for entrances */
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --f-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --f-head: "Inter Tight", "Inter", -apple-system, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + var(--track-h) + 24px); }
/* Lenis smooth scrolling (script.js) takes over from the browser's own smooth scroll. */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 16px/1.55 var(--f-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5 { margin: 0; font-family: var(--f-head); font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

/* One visible focus style for everything you can tab to. */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 200; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 600; transition: top .2s; }
.skip:focus { top: 12px; }
img, svg { display: block; }
button { font: inherit; color: inherit; }
::selection { background: #FFD9C7; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--ink-3); }

/* ─────────── Chips: the app's status labels ─────────── */
.chip {
  --c: var(--draft);
  display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px;
  font: 600 12.5px/1 var(--f-body); white-space: nowrap; letter-spacing: 0;
  color: var(--c); background: color-mix(in srgb, var(--c) 12%, white);
}
.chip[data-stage="sent"] { --c: var(--estimate); }
.chip[data-stage="unpaid"] { --c: var(--unpaid); }
.chip[data-stage="overdue"] { --c: var(--overdue); }
.chip[data-stage="paid"] { --c: var(--paid); }
.chip--lg { height: 30px; padding: 0 14px; font-size: 13.5px; }
.chip--on-dark { color: #fff; background: rgba(255,255,255,.16); }

/* ─────────── Buttons ─────────── */
.btn {
  --bg: var(--ink); --fg: #fff; --bg-h: #2A2C31;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 22px; border-radius: 14px;
  background: var(--bg); color: var(--fg);
  font: 600 16px/1 var(--f-body); letter-spacing: -0.01em; white-space: nowrap;
  transition: background .25s, transform .35s var(--spring), box-shadow .3s;
}
.btn:hover { background: var(--bg-h); transform: translateY(-2px); }
.btn:active { transform: scale(.97); }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateY(2px); }
.btn--accent, .btn--orange { --bg: var(--accent); --bg-h: var(--accent-2); box-shadow: 0 10px 24px -10px rgba(246,90,30,.6); }
.btn--blue { --bg: var(--blue); --bg-h: var(--blue-2); box-shadow: 0 10px 24px -10px rgba(63,102,242,.55); }
.btn--outline { --bg: #fff; --fg: var(--accent); --bg-h: #FFF1EA; box-shadow: inset 0 0 0 2px var(--accent); }
.btn--orange, .btn--outline { border-radius: 999px; }
.btn--accent, .btn--blue, .btn--ghost, .btn--sm { border-radius: 999px; }
.btn--ghost { --bg: #fff; --fg: var(--ink); --bg-h: var(--warm); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--sm { height: 40px; padding: 0 16px; font-size: 14.5px; border-radius: 12px; }

/* Apple's official "Download on the App Store" badge (assets/app-store-badge.svg, from
   developer.apple.com). Apple's rules: use the artwork as supplied, at least 40px tall on
   screen, with clear space around it. Only its height is set here; the width follows. */
.store-badge { --bh: 48px; display: inline-block; flex: none; line-height: 0; border-radius: 8px; transition: transform .35s var(--spring), box-shadow .3s; }
.store-badge img { display: block; height: var(--bh); width: auto; }
.store-badge:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -14px rgba(0,0,0,.55); }
.store-badge:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ─────────── Nav (full-width app-style bar) ─────────── */
/* Floating pill nav. --nav-h is the whole sticky area (gap above + pill + gap below). */
.nav { position: sticky; top: 0; z-index: 100; height: var(--nav-h); padding: 12px 20px 0; pointer-events: none; }
.nav__in {
  pointer-events: auto;
  max-width: 1240px; height: 68px; margin: 0 auto; padding: 0 12px 0 26px;
  display: flex; align-items: center; gap: 24px;
  background: rgba(255,255,255,.98); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.05), 0 8px 28px -12px rgba(0,0,0,.14);
  transition: box-shadow .3s;
}
.nav.is-scrolled .nav__in { box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 14px 36px -12px rgba(0,0,0,.22); }
.nav__cta { display: inline-flex; align-items: center; flex: none; white-space: nowrap; height: 48px; padding: 0 22px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 600; font-size: 15px; box-shadow: inset 0 0 0 2px rgba(255,255,255,.22), 0 0 0 2px rgba(246,90,30,.25); transition: background .25s, transform .35s var(--spring); }
.nav__cta:hover { background: var(--accent-2); transform: translateY(-1px); }
.nav__soft { display: inline-flex; align-items: center; height: 48px; padding: 0 22px; border-radius: 999px; background: var(--warm); font-weight: 600; font-size: 15px; transition: background .25s; }
.nav__soft:hover { background: var(--beige); }
.nav__links .nav__link--menu-only { display: none; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; white-space: nowrap; font: 700 18px/1 var(--f-head); letter-spacing: -0.03em; }
.brand__logo { height: 22px; width: auto; display: block; }
.nav__links { display: flex; align-items: center; justify-content: center; gap: 4px; flex: none; }
.nav__in > .brand, .nav__end { flex: 1 1 0; }
.nav__end { justify-content: flex-end; }
.nav__link { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border: 0; border-radius: 999px; background: none; cursor: pointer; font-size: 15.5px; font-weight: 500; color: var(--ink); transition: background .2s; }
.nav__link:hover, .dd.is-open > .nav__link { background: var(--warm); }
.caret { width: 7px; height: 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .3s var(--ease); }
.dd.is-open .caret { transform: translateY(1px) rotate(225deg); }
.dd { position: relative; }
.dd__panel {
  position: absolute; top: calc(100% + 12px); left: -16px; width: 560px; padding: 10px;
  background: #fff; border-radius: 20px; box-shadow: 0 0 0 1px rgba(14,15,18,.06), 0 30px 60px -20px rgba(14,15,18,.3);
  opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s var(--ease), transform .35s var(--ease), visibility .25s;
}
.dd.is-open .dd__panel { opacity: 1; visibility: visible; transform: none; }
.dd__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.trades-menu .dd__panel--trades { width: min(560px, calc(100vw - 32px)); max-height: min(70vh, 560px); overflow-y: auto; }
.trades-menu .dd__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.trades-menu .dd__item { min-height: 44px; justify-content: center; padding: 10px 12px; }
.dd__item { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px; border-radius: 14px; transition: background .2s; }
.dd__item:hover { background: var(--canvas); }
.dd__item b { display: block; font-size: 15px; }
.dd__item small { color: var(--ink-3); font-size: 13px; }
.dd__foot { display: block; margin-top: 6px; padding: 12px 14px; border-radius: 12px; background: var(--canvas); font-size: 14px; font-weight: 600; color: var(--accent); }
.nav__end { display: flex; align-items: center; gap: 8px; margin-left: auto; }

/* Language switcher: a globe menu on desktop, a row of links inside the phone menu. */
.lang__btn { gap: 6px; padding: 0 10px; font-weight: 600; font-size: 14px; }
.lang__btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.dd__panel--lang { left: auto; right: 0; width: 220px; padding: 8px; transform-origin: top right; }
.lang__opt { display: flex; align-items: baseline; gap: 8px; padding: 11px 12px; border-radius: 12px; font-size: 15px; transition: background .2s; }
.lang__opt:hover { background: var(--canvas); }
.lang__opt b { font-weight: 600; }
.lang__opt small { color: var(--ink-3); font-size: 12.5px; }
.lang__opt[aria-current="page"] { background: var(--canvas); }
.lang__opt[aria-current="page"]::after { content: "✓"; margin-left: auto; color: var(--accent); font-weight: 700; }
.nav__langs { display: none; }
.footer__langs { display: flex; gap: 16px; }
.footer__langs a { transition: color .2s; }
.footer__langs a:hover, .footer__langs a[aria-current="page"] { color: var(--ink); }
.footer__langs a[aria-current="page"] { font-weight: 600; }
.burger { display: none; position: relative; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--canvas); cursor: pointer; }
.burger i { position: absolute; left: 13px; right: 13px; height: 1.8px; background: var(--ink); border-radius: 2px; transition: transform .35s var(--ease), top .35s var(--ease); }
.burger i:first-child { top: 18px; } .burger i:last-child { top: 25px; }
.nav.is-menu .burger i:first-child { top: 21.5px; transform: rotate(45deg); }
.nav.is-menu .burger i:last-child { top: 21.5px; transform: rotate(-45deg); }

/* ─────────── iPhone frame around real screenshots ───────────
   Proportions follow an iPhone 16/17 Pro: a thin black bezel inside a titanium band,
   corner radius about 16% of the width, Dynamic Island about 31% of the screen width. */
.device {
  position: relative; margin: 0;
  /* The bezel is measured against the phone itself (container units), not its parent. */
  container-type: inline-size;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 16.5% / 7.6%;
  background:
    linear-gradient(#0A0A0B, #0A0A0B) padding-box,
    linear-gradient(140deg, #F2F2F4 0%, #A7A9AE 18%, #6C6E73 38%, #D9DADD 58%, #8E9095 78%, #E7E8EA 100%) border-box;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.06),
    0 1px 1px rgba(0,0,0,.08),
    0 50px 90px -40px rgba(20,30,80,.5),
    0 22px 40px -22px rgba(0,0,0,.35);
}
.device__screen {
  position: relative; overflow: hidden;
  margin: 2.3cqw;
  aspect-ratio: 598 / 1300;
  border-radius: 14.4% / 6.6%;
  background: #000;
}
.device__screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.device__screen::after {
  /* faint glass reflection */
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(115deg, rgba(255,255,255,.10) 0%, rgba(255,255,255,0) 28%);
}
.device__island {
  position: absolute; z-index: 2; left: 50%; top: 1.15%;
  width: 31%; aspect-ratio: 125 / 37; translate: -50% 0;
  border-radius: 999px; background: #000;
}
.hw {
  position: absolute; width: 1.15%; border-radius: 2px;
  background: linear-gradient(90deg, #6C6E73, #D9DADD 50%, #8E9095);
}
.hw--action { left: -1.9%; top: 16.5%; height: 3.6%; }
.hw--up { left: -1.9%; top: 23.5%; height: 6.6%; }
.hw--down { left: -1.9%; top: 31.5%; height: 6.6%; }
.hw--power { right: -1.9%; top: 26%; height: 10.5%; }

/* ─────────── Hero ─────────── */
/* On desktop the hero fills one screen: type and gaps scale with the viewport height, and
   script.js sizes the showcase to the space that's left (see fitHero). */
.hero { position: relative; padding: clamp(18px, 3.6vh, 52px) 0 0; background: #fff; overflow: hidden; }
.hero__in { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }

.hero h1 { max-width: 880px; margin-top: clamp(16px, 3vh, 40px); font-size: clamp(32px, min(5.1vw, 6vh), 68px); font-weight: 600; letter-spacing: -0.05em; line-height: 1; }
.hl { color: var(--accent); white-space: nowrap; }
.hero__sub { max-width: 620px; margin-top: clamp(10px, 1.8vh, 20px); font-size: clamp(15px, 1.9vh, 17.5px); color: var(--ink-2); }
/* One row: Apple's badge as the main action, and a secondary button cut to the same height
   and corner shape so the pair reads as a set. */
.hero__cta { --cta-h: clamp(46px, 5.6vh, 54px); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-top: clamp(16px, 3vh, 34px); }
.hero__cta .store-badge { --bh: var(--cta-h); }
.hero__how {
  display: inline-flex; align-items: center; gap: 8px; height: var(--cta-h); padding: 0 22px;
  border-radius: calc(var(--cta-h) * .22); box-shadow: inset 0 0 0 1.5px var(--ink);
  font-weight: 600; font-size: 16px; color: var(--ink); background: #fff;
  transition: background .25s, transform .35s var(--spring);
}
.hero__how:hover { background: var(--warm); transform: translateY(-2px); }
.hero__how svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease); }
.hero__how:hover svg { transform: translateY(2px); }
.hero__note { margin-top: 14px; font-size: 13.5px; color: var(--ink-3); }
.final__cta .store-badge { --bh: 56px; }

/* showcase: real PDF in the middle, phone left, summary cards right */
.showcase { position: relative; width: var(--sc-w, 100%); max-width: 1080px; aspect-ratio: 1080 / 660; margin: clamp(18px, 3.4vh, 48px) auto clamp(16px, 2.6vh, 32px); container-type: inline-size; }
.showcase > * { position: absolute; transition: translate .9s var(--ease); }
.doc { left: 25%; top: 4%; width: 54%; padding: 1.4%; border-radius: 1.6cqw; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.05), 0 40px 80px -40px rgba(30,40,90,.35); }
.doc::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; border-radius: 1.6cqw 1.6cqw 0 0; background: var(--accent); }
.doc img { width: 100%; height: auto; display: block; border-radius: .8cqw; }
.stamp {
  position: absolute; left: 9%; top: 66%;
  padding: .2em .5em; border: .12em solid #1F8A4C; border-radius: .14em; outline: .05em solid #1F8A4C; outline-offset: .08em;
  font: 800 6.2cqw/1 var(--f-head); letter-spacing: .04em; color: #1F8A4C; background: rgba(255,255,255,.55);
  rotate: -12deg; opacity: 0; transform: scale(2.2);
  mix-blend-mode: multiply;
}
.is-loaded .stamp { animation: stamp .55s 1.9s cubic-bezier(.3, 1.6, .5, 1) forwards; }
@keyframes stamp { to { opacity: .92; transform: none; } }

/* Showcase entrance: the invoice rises, the phone swings in from the left, the cards slide in. */
.is-loaded .doc { animation: inDoc 1.3s var(--expo) .55s both; }
.is-loaded .device--hero { animation: inPhone 1.4s var(--expo) .8s both; }
.is-loaded .sc-owed { animation: inRight 1.2s var(--expo) 1.05s both; }
.is-loaded .sc-activity { animation: inRight 1.2s var(--expo) 1.2s both; }
@keyframes inDoc { from { opacity: 0; transform: translateY(70px) scale(.96); } }
@keyframes inPhone { from { opacity: 0; transform: translate(-80px, 50px) rotate(-9deg); } }
@keyframes inRight { from { opacity: 0; transform: translateX(70px); } }

.device--hero { left: 6%; top: 13%; width: 22%; rotate: -4deg; }
.sc-card { background: #fff; border-radius: 1.4cqw; box-shadow: 0 0 0 1px rgba(0,0,0,.05), 0 30px 60px -30px rgba(30,40,90,.4); font-size: max(10px, 1.25cqw); }
.sc-owed { left: 68%; top: 16%; width: 27%; display: flex; align-items: center; gap: 1.1cqw; padding: 1.4cqw 1.6cqw; }
.ring { flex: none; width: 3.6cqw; height: 3.6cqw; }
.ring svg { width: 100%; height: 100%; rotate: -90deg; }
.ring circle { fill: none; stroke: var(--line); stroke-width: 4; }
.ring .ring__a { stroke: var(--accent); stroke-dasharray: 0 100; stroke-linecap: round; transition: stroke-dasharray 1.4s 1s var(--ease); }
.is-loaded .ring .ring__a { stroke-dasharray: 56 100; }
.sc-owed__t { flex: 1; text-align: left; }
.sc-owed__t small { display: block; color: var(--ink-3); }
.sc-owed__t b { display: block; font: 600 2.2cqw/1.15 var(--f-head); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.sc-owed__d { text-align: right; }
.sc-owed__d em { display: block; font-style: normal; font-weight: 600; color: var(--overdue); }
.sc-owed__d small { color: var(--ink-3); }

.sc-activity { left: 66%; top: 60%; width: 30%; overflow: hidden; text-align: left; }
.sc-activity__h { display: flex; justify-content: space-between; align-items: baseline; padding: 1.3cqw 1.6cqw; background: var(--peri); }
.sc-activity__h b { font-size: 1.15em; }
.sc-activity__h small { color: var(--ink-3); }
.sc-row { display: flex; align-items: center; justify-content: space-between; gap: 1cqw; margin: 0 1.6cqw; padding: 1.1cqw 0; border-top: 1px solid var(--line); opacity: 0; transform: translateX(16px); }
.sc-row:first-of-type { border-top: 0; }
.is-loaded .sc-row { animation: rowIn2 .8s var(--expo) forwards; }
.is-loaded .sc-row:nth-of-type(2) { animation-delay: 1.5s; }
.is-loaded .sc-row:nth-of-type(3) { animation-delay: 1.62s; }
.is-loaded .sc-row:nth-of-type(4) { animation-delay: 1.74s; }
@keyframes rowIn2 { to { opacity: 1; transform: none; } }
.sc-row b { display: block; font-weight: 600; }
.sc-row small { color: var(--ink-3); }
.badge { flex: none; padding: .45em .8em; border-radius: .5em; font-style: normal; font-weight: 700; font-size: .85em; color: #fff; text-transform: uppercase; letter-spacing: .03em; }
.badge--paid { background: #1F8A4C; }
.badge--sent { background: var(--blue); }
.badge--overdue { background: #D7262B; }

/* the app's own stepper (used in places outside the hero) */

.callout { display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; background: #fff; border-radius: 16px; box-shadow: 0 24px 50px -20px rgba(0,0,0,.3), 0 0 0 1px rgba(0,0,0,.04); font-size: 13px; white-space: nowrap; }
.callout b { display: block; font-size: 14px; }
.callout small { color: var(--ink-3); }
.callout__ico { --c: var(--paid); display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 11px; background: var(--c); color: #fff; font-weight: 700; font-size: 17px; }
.callout__ico svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* entrance */
[data-in] { opacity: 0; transform: translateY(24px); }
.is-loaded [data-in] { opacity: 1; transform: none; transition: opacity .9s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--d, 0) * 110ms); }

/* Trades strip: sits where a "trusted by" logo row usually goes, in quiet grey type. */
.ticker { position: relative; padding: 28px 0 48px; background: #fff; text-align: center; }
.ticker__label { font-size: 14px; color: var(--ink-3); margin-bottom: 20px; }
.ticker__label b { color: var(--ink); font-weight: 600; }
.ticker__row { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.ticker__track { display: flex; gap: 56px; width: max-content; padding-right: 56px; animation: tick 55s linear infinite; }
.ticker__row:hover .ticker__track { animation-play-state: paused; }
.ticker__item { display: flex; align-items: center; gap: 10px; font: 600 21px/1 var(--f-head); letter-spacing: -0.02em; color: #A7A49B; white-space: nowrap; transition: color .3s; }
.ticker__item:hover { color: var(--ink); }
.ticker__item svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
@keyframes tick { to { transform: translateX(-50%); } }
@media (max-width: 560px) {
  .ticker { padding-bottom: 32px; }
  .ticker__track { gap: 36px; padding-right: 36px; animation-duration: 40s; }
  .ticker__item { font-size: 17px; }
  .ticker__item svg { width: 20px; height: 20px; }
}

/* ─────────── Section heads ─────────── */
.head { max-width: 780px; margin: 0 auto 48px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.head h2 { font-size: clamp(36px, 4.8vw, 58px); }
.head > p { font-size: 18px; color: var(--ink-2); max-width: 620px; }
.head--left { text-align: left; align-items: flex-start; margin-left: 0; }

/* ─────────── Features: stacking cards ─────────── */
.features { padding: 112px 0 40px; background: var(--canvas); border-radius: var(--r-xl) var(--r-xl) 0 0; margin-top: 40px; }

.track { position: sticky; top: calc(var(--nav-h) + var(--track-gap)); z-index: 30; height: var(--track-h); display: flex; align-items: center; justify-content: center; padding: 0 24px; background: var(--canvas); }
.track::before { content: ""; position: absolute; top: calc(0px - var(--track-gap) - var(--nav-tail)); right: 0; left: 0; height: calc(var(--track-gap) + var(--nav-tail)); background: var(--canvas); }
.track__in { position: relative; display: flex; justify-content: space-between; width: 100%; max-width: 860px; }
.track__line { position: absolute; left: 32px; right: 32px; top: 13px; height: 3px; border-radius: 3px; background: #D9DEEA; overflow: hidden; }
.track__line i { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.step { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; width: 64px; }
.step__dot { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px #D9DEEA; transition: background .35s, box-shadow .35s, transform .45s var(--spring); }
.step__dot svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transform: scale(.4); transition: opacity .3s, transform .45s var(--spring); }
.step__label { font-size: 13.5px; font-weight: 600; color: var(--ink-3); transition: color .3s; white-space: nowrap; }
.step:hover .step__label { color: var(--ink); }
.step.is-done .step__dot { background: var(--accent); box-shadow: none; }
.step.is-done .step__dot svg { opacity: 1; transform: none; }
.step.is-active .step__dot { background: #fff; box-shadow: inset 0 0 0 2px var(--accent), 0 0 0 6px rgba(246,90,30,.16); transform: scale(1.12); }
.step.is-active .step__label { color: var(--ink); }

.stack { --top: calc(var(--nav-h) + var(--track-gap) + var(--track-h) + 12px); padding-top: 16px; padding-bottom: 60px; }
@media (min-width: 901px) {
  .stack::after { content: ""; display: block; height: max(0px, calc(var(--top) + 60px + 560px - 100vh)); }
}
.card {
  --p: 0;
  position: sticky; top: calc(var(--top) + var(--i) * 12px);
  display: grid; grid-template-columns: 1fr 1fr; height: min(560px, calc(100vh - var(--top) - 40px)); min-height: 460px;
  background: #fff; border-radius: var(--r-xl); overflow: hidden;
  box-shadow: 0 -1px 0 rgba(14,15,18,.04), 0 -12px 40px -24px rgba(20,30,80,.3);
  transform: scale(calc(1 - var(--p) * .05)); transform-origin: 50% 0;
  will-change: transform;
}
/* As the next card covers this one, its text eases back and the phone drifts up. */
.card__copy { opacity: calc(1 - var(--p) * .55); transform: translateY(calc(var(--p) * -18px)); }
.device--card { transform: translateY(calc(var(--p) * -36px)); }
.card + .card { margin-top: 28px; }
.card::after { content: ""; position: absolute; inset: 0; background: #0E0F12; opacity: calc(var(--p) * .12); pointer-events: none; border-radius: inherit; }
.card__copy { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 48px 56px; }
.card__top { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.card__num { font: 600 14px/1 var(--f-head); color: var(--ink-3); letter-spacing: 0; font-variant-numeric: tabular-nums; }
.card h3 { font-size: clamp(28px, 3vw, 40px); max-width: 460px; }
.card__copy > p { margin-top: 16px; font-size: 17px; color: var(--ink-2); max-width: 440px; }
.card__media { position: relative; background: var(--tint); overflow: hidden; }
.card__media::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 110%, rgba(255,255,255,.28), transparent 60%); }
.device--card { position: absolute; left: 50%; top: 48px; width: min(300px, 62%); translate: -50% 0; transition: translate 1.3s var(--expo); }
.card:not(.is-in) .device--card { translate: -50% 90px; }
.callout--card { position: absolute; z-index: 2; left: var(--x); top: var(--y); opacity: 0; transform: translateY(18px) scale(.92); transition: opacity .6s .45s var(--expo), transform .8s .45s var(--spring); }
.card.is-in .callout--card { opacity: 1; transform: none; }

.ticks, .xs { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 11px; }
.ticks li, .xs li { display: flex; align-items: center; gap: 12px; font-size: 15.5px; font-weight: 500; }
.ticks li::before, .xs li::before { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; background: #3A3A3A center/14px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5 6.5 11.5 12.5 5' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.xs li::before { background: color-mix(in srgb, var(--overdue) 12%, white) center/14px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5 5l6 6M11 5l-6 6' fill='none' stroke='%23A11F1F' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E"); }

/* ─────────── Before / after slider ─────────── */
.ba { padding: 112px 0; background: var(--canvas); }
.compare { --pos: 50%; position: relative; height: 560px; border-radius: var(--r-xl); overflow: hidden; user-select: none; touch-action: pan-y; box-shadow: 0 30px 70px -40px rgba(20,30,80,.4); }
.compare__side { position: absolute; inset: 0; isolation: isolate; }
.compare__before { z-index: 1; }
.compare__after { background: var(--peri); }
.compare__before { background: #F3EFE6; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare.is-anim .compare__before { transition: clip-path .7s var(--expo); }
.compare.is-anim .compare__handle { transition: left .7s var(--expo); }
.before, .after { position: relative; height: 100%; }
.before__copy, .after__copy { position: absolute; z-index: 2; top: 48px; width: 300px; }
.before__copy { left: 48px; }
.after__copy { right: 48px; text-align: right; display: flex; flex-direction: column; align-items: flex-end; }
.after__copy .ticks li { flex-direction: row-reverse; }
.before__copy h3, .after__copy h3 { margin-top: 14px; font-size: clamp(24px, 2.4vw, 32px); }
.device--compare { position: absolute; left: 50%; top: 50%; width: 226px; translate: -50% -50%; }
/* No transition on the handle or the reveal while dragging: both follow the pointer exactly.
   They only animate during the intro sweep (.is-anim). */
.compare__handle { position: absolute; z-index: 5; top: 0; bottom: 0; left: var(--pos); width: 0; cursor: ew-resize; outline: none; will-change: left; }
.compare.is-drag { cursor: ew-resize; }
.compare__handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: -1.5px; width: 3px; background: #fff; box-shadow: 0 0 0 1px rgba(14,15,18,.08); }
.compare__knob { position: absolute; top: 50%; left: 0; width: 56px; height: 56px; margin: -28px 0 0 -28px; display: grid; place-items: center; border-radius: 50%; background: #fff; box-shadow: 0 10px 30px -8px rgba(0,0,0,.35); transition: transform .3s var(--spring); }
.compare__handle:hover .compare__knob, .compare__handle:focus-visible .compare__knob, .compare.is-drag .compare__knob { transform: scale(1.1); }
.compare__handle:focus-visible .compare__knob { box-shadow: 0 0 0 3px var(--accent), 0 10px 30px -8px rgba(0,0,0,.35); }
.compare__knob svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mess { position: absolute; left: 50%; top: 50%; width: 480px; height: 440px; translate: -50% -46%; }
.mess__paper { position: absolute; left: 4%; top: 0; width: 230px; padding: 18px 20px; background: #FFF6B8; font: 500 20px/1.5 "Bradley Hand", "Segoe Print", "Comic Sans MS", cursive; color: #3B3A36; rotate: -6deg; box-shadow: 0 20px 40px -20px rgba(0,0,0,.35); display: flex; flex-direction: column; background-image: repeating-linear-gradient(transparent 0 29px, rgba(70,98,247,.16) 29px 30px); }
.strike { text-decoration: line-through; text-decoration-color: var(--overdue); }
.mess__sheet { position: absolute; right: 2%; top: 60px; width: 250px; background: #fff; border-radius: 6px; overflow: hidden; font-size: 12.5px; box-shadow: 0 20px 40px -20px rgba(0,0,0,.35); rotate: 3deg; }
.mess__sheet div { display: grid; grid-template-columns: 28px 1.4fr 1fr; }
.mess__sheet b, .mess__sheet span { padding: 6px 8px; border-right: 1px solid #E5E5E5; border-bottom: 1px solid #E5E5E5; min-height: 29px; }
.mess__sheet b { background: #F1F3F4; text-align: center; color: #777; font-weight: 500; }
.err { color: var(--overdue); font-weight: 600; }
.mess__sms { position: absolute; left: 10%; bottom: 60px; padding: 10px 14px; border-radius: 18px 18px 18px 6px; background: #E5E5EA; font-size: 13.5px; box-shadow: 0 10px 30px -14px rgba(0,0,0,.35); }
.mess__sms--2 { left: auto; right: 6%; bottom: 10px; }

/* ─────────── Trades ─────────── */
.trades { padding: 112px 0; }
.trades__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.trades__copy h2 { margin-top: 18px; font-size: clamp(34px, 4vw, 52px); }
.trades__copy > p { margin-top: 18px; font-size: 18px; color: var(--ink-2); }
.pickers { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.picker { height: 42px; padding: 0 16px; border: 0; border-radius: 12px; cursor: pointer; background: var(--canvas); font-size: 14.5px; font-weight: 600; color: var(--ink-2); transition: background .3s, color .3s, transform .3s var(--spring); }
.picker:hover { transform: translateY(-2px); background: var(--band); }
.picker[aria-selected="true"] { background: var(--ink); color: #fff; }
.trades__visual { display: flex; justify-content: center; }
/* The price list is drawn in HTML at the app's own scale (a 402pt screen shown about 290px wide). */
.pl { width: 300px; }
.pl__screen { background: #F4F6FB; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", var(--f-body); letter-spacing: -0.01em; }
.pl__status { display: flex; justify-content: space-between; align-items: center; height: 38px; padding: 6px 22px 0 26px; background: #DFE8FD; font-size: 12px; font-weight: 600; }
.pl__sig { width: 20px; height: 9px; border-radius: 2.5px; border: 1.3px solid #000; position: relative; }
.pl__sig::after { content: ""; position: absolute; inset: 1px 3px 1px 1px; background: #000; border-radius: 1px; }
.pl__bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 6px 14px; background: #DFE8FD; font-size: 12px; }
.pl__bar span:first-child { color: #D2440C; }
.pl__head { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 14px 14px; background: #DFE8FD; }
.pl__head b { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.pl__head small { color: #4A5468; font-weight: 600; font-size: 11px; }
.pl__tabs { position: absolute; left: 10px; right: 10px; bottom: 16px; display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px 4px; border-radius: 999px; background: rgba(255,255,255,.92); box-shadow: 0 4px 16px -6px rgba(0,0,0,.18); }
.pl__tabs span { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 9px; font-weight: 500; color: #111; }
.pl__tabs svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pl__tabs .is-on { color: #D2440C; }
.pl__list { margin: 10px 10px 0; background: #fff; border-radius: 10px; overflow: hidden; }
.pl__row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 12px; border-top: 1px solid #EEF0F4; font-size: 12px; animation: rowIn .5s var(--ease) both; }
.pl__row:first-child { border-top: 0; }
.pl__row b { display: block; font-weight: 600; } .pl__row small { color: #6B7180; font-size: 10.5px; }
.pl__row span:last-child { font-weight: 600; font-variant-numeric: tabular-nums; }
@keyframes rowIn { from { opacity: 0; transform: translateX(-14px); } }
.pl__add { margin: 8px 10px 0; padding: 10px 12px; border-radius: 10px; background: #fff; color: #D2440C; font-weight: 600; font-size: 12px; }

/* ─────────── Field ─────────── */
.field-sec { padding: 40px 0 112px; }
.field { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.field__c { padding: 28px; border-radius: var(--r-lg); background: var(--warm); transition: transform .5s var(--ease), background .3s; }
.field__c:hover { transform: translateY(-6px); background: var(--band); }
.field__ico { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 24px; border-radius: 14px; background: #fff; }
.field__ico svg { width: 24px; height: 24px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.field__c h4 { font-size: 20px; margin-bottom: 8px; }
.field__c p { color: var(--ink-2); font-size: 15px; }

/* ─────────── Pricing ─────────── */
.pricing { padding: 112px 0; background: var(--warm); }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 900px; margin: 0 auto; }
.plan { position: relative; padding: 40px; border-radius: var(--r-xl); background: #fff; display: flex; flex-direction: column; align-items: flex-start; transition: transform .5s var(--ease), box-shadow .5s; }
.plan:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(20,30,80,.3); }
.plan h3 { font-size: 22px; }
.plan__price { margin: 16px 0 6px; font: 600 50px/1 var(--f-head); letter-spacing: -0.04em; display: flex; align-items: baseline; gap: 10px; }
.plan__price--rates { font-size: 40px; letter-spacing: -0.03em; flex-wrap: wrap; gap: 4px 10px; }
.plan__price small { font: 500 16px/1 var(--f-body); color: var(--ink-3); letter-spacing: 0; }
.plan__rate-note { margin: 0 0 10px; font-size: 15px; font-weight: 600; }
.plan .btn { margin-top: 26px; width: 100%; }
.plan .ticks { margin-top: 30px; padding-top: 28px; border-top: 1px solid var(--line); width: 100%; }
.plan--pro { background: var(--ink); color: #fff; }
.plan--pro .muted, .plan--pro .plan__price small { color: #A8A8A8; }
.plan--pro .plan__rate-note { color: #fff; }
.plan--pro .ticks { border-color: #2A2A2A; }
.plan--pro .ticks li::before { background-color: var(--lime); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5 6.5 11.5 12.5 5' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
/* Currency switch: both prices are in the page; the section's data-currency hides the other one. */
.cur-toggle { display: flex; width: max-content; margin: -12px auto 40px; padding: 4px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.cur-toggle__opt { appearance: none; border: 0; background: none; padding: 9px 20px; border-radius: 999px; font: 600 14px/1 var(--f-body); color: var(--ink-3); cursor: pointer; transition: background .25s, color .25s; }
.cur-toggle__opt[aria-checked="true"] { background: var(--ink); color: #fff; }
.cur-toggle__opt:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.pricing:not([data-currency="USD"]) [data-cur="USD"], .pricing[data-currency="USD"] [data-cur="CAD"] { display: none; }
.plan__flag { position: absolute; top: -14px; left: 40px; padding: 6px 12px; border-radius: 999px; background: var(--lime); color: var(--ink); font-size: 12.5px; font-weight: 600; }

/* ─────────── FAQ ─────────── */
.faq-sec { padding: 112px 0; }
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.faq-grid .head { margin-bottom: 0; position: sticky; top: calc(var(--nav-h) + 40px); }
.faq-grid .head h2 { font-size: clamp(34px, 4vw, 52px); }
.faq { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa__q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; border: 0; background: none; cursor: pointer; text-align: left; font: 600 19px/1.3 var(--f-head); letter-spacing: -0.02em; }
.qa__q i { position: relative; flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--canvas); transition: background .3s, transform .45s var(--ease); }
.qa__q i::before, .qa__q i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.8px; margin: -1px 0 0 -6px; background: var(--ink); border-radius: 2px; transition: background .3s; }
.qa__q i::after { transform: rotate(90deg); }
.qa__q:hover i { background: var(--band); }
.qa.is-open .qa__q i { transform: rotate(135deg); background: var(--accent); }
.qa.is-open .qa__q i::before, .qa.is-open .qa__q i::after { background: #fff; }
.qa__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.qa__a > div { overflow: hidden; }
.qa__a p { padding: 0 60px 24px 0; color: var(--ink-2); font-size: 16.5px; opacity: 0; transform: translateY(-6px); transition: opacity .4s, transform .5s var(--ease); }
.qa.is-open .qa__a { grid-template-rows: 1fr; }
.qa.is-open .qa__a p { opacity: 1; transform: none; transition-delay: .1s; }

/* ─────────── Testimonials ─────────── */
.voices { padding: 112px 0; background: var(--warm); }
.quotes { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-auto-rows: auto; gap: 16px; }
.quote { display: flex; flex-direction: column; margin: 0; padding: 28px; border-radius: var(--r-lg); background: #fff; transition: transform .5s var(--ease), box-shadow .5s; }
  .quote:hover { transform: translateY(-4px); box-shadow: 0 16px 36px -28px rgba(30,40,90,.18); }
.quote--lead { position: relative; grid-row: span 2; justify-content: space-between; background: var(--ink); color: #fff; overflow: hidden; }
/* A big orange quote mark fills the tall card's top and gives the quote somewhere to sit. */
.quote--lead::before { content: "\201C"; position: absolute; left: 22px; top: 44px; font: 700 180px/1 Georgia, "Times New Roman", serif; color: var(--accent); pointer-events: none; }
.quote.quote--lead blockquote { position: relative; display: flex; align-items: flex-end; font: 600 clamp(24px, 2.4vw, 31px)/1.22 var(--f-head); letter-spacing: -0.02em; }
.quote--lead figcaption small { color: #A8A8A8; }
.quote__stars { color: var(--accent); letter-spacing: 3px; font-size: 15px; }
.quote blockquote { flex: 1; margin: 14px 0 22px; font-size: 16px; line-height: 1.5; }
.quote figcaption { display: flex; align-items: center; gap: 12px; }
.quote figcaption b { display: block; font-size: 15px; }
.quote figcaption small { color: var(--ink-3); font-size: 13px; }
.quote__av { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--c); color: #fff; font-size: 13px; font-weight: 700; }
.voices + .final { padding-top: 0; background: var(--warm); }

/* ─────────── Final ─────────── */
.final { padding: 0 0 24px; }
.final__in { position: relative; display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: end; padding: 80px 72px 0; border-radius: var(--r-xl); background: var(--accent); color: #fff; overflow: hidden; }
.final__in .chip--on-dark { background: rgba(0,0,0,.18); }
.final__in::before { content: ""; position: absolute; width: 700px; height: 700px; right: -200px; top: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.2), transparent 65%); }
.final__copy { padding-bottom: 80px; }
.final h2 { margin-top: 18px; font-size: clamp(40px, 5.2vw, 68px); letter-spacing: -0.05em; line-height: 1; }
.final__copy > p { margin-top: 18px; font-size: 19px; color: #FFE6DA; }
.final__cta { display: flex; align-items: center; gap: 18px; margin-top: 32px; flex-wrap: wrap; }
.final__cta > small { color: #FFE0D2; }
.final__art { position: relative; height: 420px; }
.device--final { position: absolute; left: 50%; top: 0; width: 280px; translate: -50% 40px; rotate: 6deg; transition: translate 1.2s var(--ease), rotate 1.2s var(--ease); }
.final__art.is-visible .device--final { translate: -50% 0; rotate: -3deg; }

/* ─────────── Footer ─────────── */
.footer { padding: 72px 0 32px; }
.footer__top { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.footer__brand p { margin-top: 14px; max-width: 280px; color: var(--ink-3); }
.footer__brand .store-badge { --bh: 44px; margin-top: 20px; }
.footer__cols { display: flex; gap: 80px; }
.footer h5 { font: 600 14px/1 var(--f-body); letter-spacing: 0; margin-bottom: 16px; }
.footer__cols a { display: block; padding: 5px 0; color: var(--ink-3); font-size: 15px; transition: color .2s; }
.footer__cols a:hover { color: var(--accent); }
.footer__base { display: flex; justify-content: space-between; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-3); }

/* ─────────── Reveal ─────────── */
[data-reveal] { opacity: 0; transform: translateY(44px); transition: opacity 1s var(--expo), transform 1.3s var(--expo); transition-delay: calc(var(--d, 0) * 110ms); }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* Headings rise word by word (words are wrapped in script.js). */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.w > span { display: inline-block; transform: translateY(110%); transition: transform 1.1s var(--expo); transition-delay: calc(var(--wi) * 45ms + 120ms); }
.is-visible .w > span, .w.is-visible > span { transform: none; }

/* List items arrive one after another once their list is in view. */
.faq .qa { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--expo), transform 1s var(--expo); }
.faq.is-visible .qa { opacity: 1; transform: none; }
.faq.is-visible .qa:nth-child(2) { transition-delay: 60ms; }
.faq.is-visible .qa:nth-child(3) { transition-delay: 120ms; }
.faq.is-visible .qa:nth-child(4) { transition-delay: 180ms; }
.faq.is-visible .qa:nth-child(5) { transition-delay: 240ms; }
.faq.is-visible .qa:nth-child(6) { transition-delay: 300ms; }
.ticks li { transition: opacity .7s var(--expo), transform .9s var(--expo); }
[data-reveal]:not(.is-visible) .ticks li { opacity: 0; transform: translateX(-10px); }
[data-reveal].is-visible .ticks li:nth-child(2) { transition-delay: 80ms; }
[data-reveal].is-visible .ticks li:nth-child(3) { transition-delay: 160ms; }
[data-reveal].is-visible .ticks li:nth-child(4) { transition-delay: 240ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  html { scroll-behavior: auto; }
}

/* ─────────── Responsive ─────────── */
@media (max-width: 1080px) {
  .card__copy { padding: 40px 36px; }
  .field { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  :root { --nav-h: 78px; --track-h: 72px; --track-gap: 10px; }
  .nav { padding: 10px 12px 0; }
  .nav__in { height: 62px; padding: 0 8px 0 18px; }
  .nav__cta { height: 46px; padding: 0 18px; font-size: 14.5px; }
  .nav__end { gap: 6px; }
  .burger { display: block; border-radius: 999px; }
  .nav__links { position: absolute; top: calc(var(--nav-h) + 4px); left: 12px; right: 12px; flex-direction: column; align-items: stretch; gap: 0; padding: 0 16px; background: #fff; border-radius: 24px; max-height: 0; overflow: hidden; box-shadow: 0 24px 40px -20px rgba(0,0,0,.25); pointer-events: auto; transition: max-height .5s var(--ease), padding .4s; }
  .nav.is-menu .nav__links { max-height: 80vh; overflow-y: auto; padding: 8px 16px 20px; }
  .nav__link { justify-content: space-between; height: 52px; font-size: 17px; }
  .nav__links .nav__link--menu-only { display: inline-flex; }
  .nav__end .lang { display: none; }
  .nav__langs { display: flex; gap: 8px; padding: 14px 0 4px; margin-top: 6px; border-top: 1px solid var(--line); }
  .nav__langs a { flex: 1; padding: 10px 0; border-radius: 12px; background: var(--canvas); text-align: center; font-size: 15px; font-weight: 500; }
  .nav__langs a[aria-current="page"] { background: var(--ink); color: #fff; }
  .dd__panel { position: static; width: auto; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0; display: none; }
  .dd.is-open .dd__panel { display: block; }
  .dd__grid { grid-template-columns: 1fr; }
  .trades-menu .dd__panel--trades { width: auto; max-height: none; overflow: visible; }
  .trades-menu .dd__grid { grid-template-columns: 1fr; }

  .hero { padding-top: 36px; }
  .hero__sub { font-size: 17px; }

  /* Tablet: feature cards stay two columns, just tighter. */
  .features { padding-top: 80px; }
  .track { padding: 0 12px; }
  .card { height: calc(100vh - var(--top) - 24px); min-height: 420px; max-height: 540px; }
  .card__copy { padding: 32px 28px; }
  .card h3 { font-size: 28px; }
  .card__copy > p { font-size: 15.5px; }
  .device--card { top: 32px; width: min(250px, 72%); }
  .callout--card { left: 50%; top: auto; bottom: 22px; translate: -50% 0; }

  /* Before/after: keep the headings as labels only and shrink the notebook art to fit. */
  .compare { height: 560px; }
  .before__copy, .after__copy { top: 24px; left: 24px; right: 24px; width: auto; }
  .before__copy { right: auto; }
  .after__copy { left: auto; }
  .before__copy h3, .after__copy h3, .before__copy .xs, .after__copy .ticks { display: none; }
  .device--compare { top: 54%; width: 210px; }
  .mess { top: 52%; transform: scale(.74); }

  .trades__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .faq-grid { grid-template-columns: 1fr; gap: 40px; }
  .faq-grid .head { position: static; }
  .plan { padding: 32px 24px; }
  .quotes { grid-template-columns: 1fr 1fr; }
  .final__in { grid-template-columns: 1fr; padding: 56px 28px 0; }
  .final__copy { padding-bottom: 0; }
  .final__art { height: 300px; }
  .device--final { width: 220px; }
  .footer__cols { gap: 40px; flex-wrap: wrap; }
  .ba, .trades, .pricing, .faq-sec, .voices { padding: 80px 0; }
}

/* Phones and small tablets in portrait: one column. */
@media (max-width: 700px) {
  .step { width: 52px; }
  .step__label { font-size: 11.5px; }
  .track__line { left: 26px; right: 26px; }
  .card { grid-template-columns: 1fr; grid-template-rows: auto 1fr; height: calc(100svh - var(--top) - 20px); min-height: 0; max-height: 640px; }
  .card__copy { padding: 24px 22px 16px; }
  .card__top { margin-bottom: 10px; }
  .card h3 { font-size: 24px; }
  .card__copy > p { font-size: 15px; margin-top: 8px; }
  .card .ticks { display: none; }
  .device--card { top: 22px; width: min(210px, 56%); }
  .trades__grid { grid-template-columns: 1fr; gap: 40px; }
  .plans { grid-template-columns: 1fr; gap: 28px; }
  .quotes { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .nav__cta-more { display: none; }
  /* Room for the longer Spanish and French button labels. */
  .brand { font-size: 15px; gap: 6px; }
  .brand__logo { height: 20px; }
  .nav__cta { padding: 0 10px; font-size: 13.5px; }
  .nav__in { gap: 4px; padding-right: 6px; padding-left: 8px; }
  .hero__sub { font-size: 16px; }
  .hero__cta { --cta-h: 48px; gap: 10px; }
  .hero__how { padding: 0 16px; font-size: 15px; }

  /* Hero showcase on a phone: the PDF across the top, the phone overlapping its lower left,
     and the "You're owed" card bottom right. */
  .showcase { aspect-ratio: 360 / 440; margin-top: 36px; }
  .doc { left: 14%; top: 0; width: 86%; }
  .stamp { left: 46%; top: 64%; font-size: 7.5cqw; }
  .device--hero { left: 0; top: 24%; width: 38%; rotate: -3deg; }
  .sc-owed { left: auto; right: 0; top: auto; bottom: 3%; width: 60%; font-size: 11.5px; padding: 12px 14px; gap: 10px; }
  .sc-owed__t b { font-size: 19px; }
  .ring { width: 28px; height: 28px; }
  .sc-activity { display: none; }

  /* Feature track: only the current step keeps its label. */
  .step__label { opacity: 0; transition: opacity .3s; }
  .step.is-active .step__label { opacity: 1; }

  .compare { height: 520px; }
  .device--compare { width: 180px; top: 55%; }
  .mess { transform: scale(.62); }
  .field { grid-template-columns: 1fr; }
  .footer__base { flex-direction: column; gap: 6px; }
}

/* Standalone trade, help and policy pages. */
.content-page { min-height: 100vh; }
.content-page > .footer { background: var(--white); }
.feature-detail { padding: 72px 0; background: var(--white); scroll-margin-top: calc(var(--nav-h) + 16px); }
.feature-detail--reverse { background: var(--warm); }
.feature-detail__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 64px; }
.feature-detail__copy { max-width: 510px; }
.feature-detail__copy .card__num { display: inline-flex; margin-right: 10px; }
.feature-detail__copy h2 { margin-top: 18px; font-size: clamp(32px, 3rem, 48px); }
.feature-detail__copy > p { margin-top: 18px; color: var(--ink-2); font-size: 17px; }
.feature-detail__copy .ticks { margin-top: 20px; }
.feature-detail__visual { position: relative; display: grid; min-height: 520px; padding: 28px; place-items: center; overflow: hidden; border-radius: var(--r-xl); background: var(--feature-tint); }
.feature-detail__device { width: min(250px, 68%); }
.feature-detail--reverse .feature-detail__copy { grid-column: 2; grid-row: 1; }
.feature-detail--reverse .feature-detail__visual { grid-column: 1; grid-row: 1; }
.breadcrumbs { color: var(--ink-3); font-size: 14px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li + li::before { content: "/"; margin-right: 10px; color: var(--ink-3); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs li[aria-current="page"] { color: var(--ink-2); font-weight: 600; }
@media (max-width: 900px) {
  .feature-detail__in { gap: 32px; }
  .feature-detail__visual { min-height: 440px; }
}
@media (max-width: 640px) {
  .feature-detail { padding: 48px 0; }
  .feature-detail__in { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .feature-detail__copy, .feature-detail--reverse .feature-detail__copy { grid-column: 1; grid-row: 1; }
  .feature-detail__visual, .feature-detail--reverse .feature-detail__visual { grid-column: 1; grid-row: 2; min-height: 440px; padding: 20px; }
  .feature-detail__device { width: min(190px, 60%); }
  .feature-detail__copy h2 { font-size: 32px; }
}
.trade-work-list { padding: 22px 26px; border-top: 6px solid var(--accent); background: var(--white); }
.trade-work-list h3 { font-size: 22px; }
.trade-work-list ul { display: grid; gap: 0; margin: 14px 0 0; padding: 0; list-style: none; }
.trade-work-list li { padding: 12px 0; border-top: 1px solid var(--line); font-weight: 600; }
.trade-work-list p { margin-top: 14px; color: var(--ink-3); font-size: 14px; }
.trade-price-note { margin-top: 20px; font-size: 14px !important; color: var(--ink-3) !important; }
.content-section { margin-top: 64px; }
.content-section h2 { margin-bottom: 16px; font-size: 30px; }
.content-section h3 { margin: 28px 0 8px; font-size: 20px; }
.content-section p, .content-section li { max-width: 760px; color: var(--ink-2); }
.content-section p + p { margin-top: 14px; }
.content-section ul, .content-section ol { display: grid; gap: 10px; padding-left: 22px; }
.content-callout { margin-top: 24px; padding: 20px 22px; border-left: 4px solid var(--accent); background: #fff; }
.content-callout p { color: var(--ink-2); }
.content-faq { border-top: 1px solid var(--line); }
.content-faq details { padding: 0; border-bottom: 1px solid var(--line); }
.content-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0; cursor: pointer; font: 600 19px/1.3 var(--f-head); list-style: none; }
.content-faq summary::-webkit-details-marker { display: none; }
.content-faq summary::after { content: ""; flex: none; width: 34px; height: 34px; border-radius: 10px; background-color: var(--canvas); background-image: linear-gradient(var(--ink),var(--ink)), linear-gradient(var(--ink),var(--ink)); background-repeat: no-repeat; background-size: 12px 1.8px, 1.8px 12px; background-position: center; transition: background-color .3s, transform .45s var(--ease); }
.content-faq summary:hover::after { background-color: var(--band); }
.content-faq details[open] summary::after { transform: rotate(135deg); background-color: var(--accent); background-image: linear-gradient(#fff,#fff), linear-gradient(#fff,#fff); }
.content-faq details[open] summary:hover::after { background-color: var(--accent-2); }
.content-faq p { margin: 0; padding: 0 60px 24px 0; color: var(--ink-2); font-size: 16.5px; }
@media (max-width: 900px) {
}
@media (max-width: 640px) {
  .content-section { margin-top: 44px; }
  .content-section h2 { font-size: 26px; }
}

/* ─────────── Secondary pages ───────────
   Every page other than the home page uses the same parts, so they read as one site:
     .page-hero        white opening band: breadcrumbs, chip, h1, lead, actions, then a visual
     .page-hero--text  the same band without a visual (help, policies, blog)
     .sec / .sec--white  the sections below it, alternating warm and white
     .split            copy on the left, a supporting card or list on the right
     .longform              long text with a sticky table of contents (help, privacy, terms)
   and every page closes with the shared orange CTA (layout.py) before the footer. */
/* White behind the nav, so it runs straight into the white .page-hero below, as on the home page. */
.content-page { background: linear-gradient(var(--white) 0 var(--nav-h), var(--warm) var(--nav-h)) no-repeat, var(--warm); }
.content-page .final { padding-top: 24px; }

.page-hero { padding: 40px 0 96px; background: #fff; }
.page-hero__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 72px; }
.page-hero__copy { display: flex; flex-direction: column; align-items: flex-start; max-width: 600px; }
.page-hero .breadcrumbs { margin-bottom: 32px; }
.page-hero h1 { margin-top: 18px; font-size: clamp(38px, 4.4vw, 60px); letter-spacing: -0.05em; line-height: 1; }
.page-hero h1 .hl { color: var(--accent); }
.page-hero__lead { max-width: 580px; margin-top: 20px; color: var(--ink-2); font-size: 18.5px; }
.page-hero__actions { --cta-h: 52px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 30px; }
.page-hero__actions .store-badge { --bh: var(--cta-h); }
.page-hero__actions .btn { height: var(--cta-h); }
.page-hero__note, .page-hero__meta { margin-top: 14px; color: var(--ink-3); font-size: 13.5px; }
.page-hero__meta { margin-top: 22px; font-size: 14px; }
.page-hero--text { padding-bottom: 72px; }
.page-hero--text .page-hero__in { grid-template-columns: minmax(0, 1fr); }
.page-hero--text .page-hero__copy { max-width: 820px; }
.page-hero--text .page-hero__lead { max-width: 700px; }

/* Jump links under a hero (features). */
.jump { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-top: 56px; }
.jump a { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 64px; padding: 10px 16px; border-radius: 14px; background: var(--warm); font-weight: 600; transition: background .2s, color .2s, transform .35s var(--spring); }
.jump a small { color: var(--ink-3); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; transition: color .2s; }
.jump a:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }
.jump a:hover small { color: #C6C6C6; }

/* Hero visuals. */
.hero-photo { position: relative; margin: 0 0 40px; }
.hero-photo > img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-xl); background: var(--warm); }
.hero-photo figcaption { position: absolute; left: 14px; bottom: 14px; padding: 4px 10px; border-radius: 999px; background: rgba(0,0,0,.45); color: #fff; font-size: 12px; backdrop-filter: blur(6px); }
.hero-photo figcaption a { text-decoration: underline; text-underline-offset: 2px; }
.device--overlay { position: absolute; right: -20px; bottom: -40px; width: 31%; rotate: 4deg; }
.hero-shot { margin: 0; overflow: hidden; border-radius: var(--r-xl); background: var(--warm); box-shadow: 0 0 0 1px rgba(0,0,0,.05), 0 40px 80px -44px rgba(20,30,80,.32); }
.hero-shot img { display: block; width: 100%; height: auto; }
.hero-panel { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: 4%; min-height: 500px; padding: 48px 32px 0; overflow: hidden; border-radius: var(--r-xl); background: var(--tint, var(--peri)); }
.hero-panel .device { width: min(220px, 40%); margin-bottom: -18%; }
.hero-panel .device:first-child { rotate: -5deg; translate: 0 6%; }
.hero-panel .device:last-child { rotate: 4deg; }
.hero-card { padding: 36px; border-radius: var(--r-xl); background: var(--warm); }
.hero-card h2 { margin-top: 18px; font-size: clamp(26px, 2.4vw, 32px); }
.hero-card p { margin-top: 12px; color: var(--ink-2); }
.hero-card ol { display: grid; gap: 14px; margin: 24px 0 0; padding: 0; list-style: none; counter-reset: step; }
.hero-card li { display: flex; align-items: flex-start; gap: 14px; font-weight: 500; counter-increment: step; }
.hero-card li::before { content: counter(step); flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #fff; color: var(--accent); font: 600 14px/1 var(--f-head); }

/* Sections. */
.sec { padding: 104px 0; scroll-margin-top: calc(var(--nav-h) + 16px); }
.sec--white { background: #fff; }
.sec:not(.sec--white) .field__c { background: #fff; }
.sec:not(.sec--white) .field__c:hover { background: var(--band); }
.sec:not(.sec--white) .field__ico { background: var(--warm); }
.sec .faq-grid .content-faq { border-top: 0; }
.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: 72px; }
.split__copy { display: flex; flex-direction: column; align-items: flex-start; }
.split__copy h2 { margin-top: 18px; font-size: clamp(32px, 3.6vw, 48px); }
.split__copy > p { margin-top: 18px; color: var(--ink-2); font-size: 17.5px; }
.split__copy .ticks { margin-top: 24px; }
.split__visual { display: flex; justify-content: center; }

/* A white card holding a list (trade service examples, contact checklist). */
.list-card, .trade-work-list { padding: 28px 32px; border-radius: var(--r-lg); border-top: 0; background: #fff; box-shadow: inset 0 6px 0 var(--accent); }
.sec--white .list-card, .sec--white .trade-work-list { background: var(--warm); }
.list-card h3, .trade-work-list h3 { font-size: 22px; }
.list-card ul, .trade-work-list ul { display: grid; margin: 16px 0 0; padding: 0; list-style: none; }
.list-card li, .trade-work-list li { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); font-weight: 600; }
.list-card li::before, .trade-work-list li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.list-card p, .trade-work-list p { margin-top: 14px; color: var(--ink-3); font-size: 14px; }

/* Link cards (contact "looking for something else", related articles). */
.link-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.link-cards a { display: flex; flex-direction: column; gap: 8px; padding: 28px; border-radius: var(--r-lg); background: #fff; transition: transform .5s var(--ease), background .3s; }
.sec--white .link-cards a { background: var(--warm); }
.link-cards a:hover { transform: translateY(-6px); background: var(--band); }
.link-cards b { font: 600 20px/1.2 var(--f-head); letter-spacing: -0.02em; }
.link-cards small { color: var(--ink-2); font-size: 15px; }
.link-cards span { margin-top: auto; padding-top: 12px; color: var(--accent); font-weight: 600; }

/* Long text: sticky contents on the left, prose on the right. */
.longform { display: grid; grid-template-columns: 220px minmax(0, 760px); justify-content: space-between; gap: 64px; align-items: start; }
.longform__toc { position: sticky; top: calc(var(--nav-h) + 32px); }
.longform__toc b { display: block; margin-bottom: 12px; color: var(--ink-3); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.longform__toc ol { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.longform__toc a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--ink-2); font-size: 14.5px; font-weight: 500; transition: background .2s, color .2s; }
.longform__toc a:hover { background: #fff; color: var(--ink); }
.prose > .content-section:first-child { margin-top: 0; }
.prose .content-section { scroll-margin-top: calc(var(--nav-h) + 24px); }
.prose .content-faq { margin-top: 8px; }
.prose .content-callout { border-radius: 0 var(--r-lg) var(--r-lg) 0; }

@media (max-width: 1080px) {
  .jump { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .page-hero__in, .split { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .page-hero__copy { max-width: 680px; }
  .longform { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .longform__toc { position: static; }
  .longform__toc ol { display: flex; flex-wrap: wrap; gap: 6px; }
  .longform__toc a { padding: 6px 12px; border-radius: 999px; background: #fff; font-size: 13.5px; }
  .link-cards { grid-template-columns: minmax(0, 1fr); }
  .sec { padding: 80px 0; }
}
@media (max-width: 640px) {
  .page-hero { padding: 24px 0 64px; }
  .page-hero--text { padding-bottom: 48px; }
  .page-hero .breadcrumbs { margin-bottom: 24px; }
  .page-hero h1 { font-size: 36px; }
  .page-hero__lead { font-size: 16.5px; }
  .page-hero__actions { --cta-h: 48px; }
  .jump { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 40px; }
  .hero-photo { margin-bottom: 28px; }
  .device--overlay { right: 8px; bottom: -28px; width: 30%; }
  .hero-panel { min-height: 380px; padding: 32px 16px 0; }
  .hero-card { padding: 26px 22px; }
  .sec { padding: 64px 0; }
  .split { gap: 32px; }
  .list-card, .trade-work-list { padding: 22px; }
  .link-cards a { padding: 22px; }
}
a.link, .prose a, .page-hero__lead a, .article a:not(.btn) { color: var(--accent-2); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a.link:hover, .prose a:hover, .page-hero__lead a:hover, .article a:not(.btn):hover { color: var(--ink); }
/* Features: the hero is white, so the first feature section starts on the warm canvas. */
.content-page .feature-detail { background: var(--warm); }
.content-page .feature-detail--reverse { background: #fff; }

/* ─────────── Blog ───────────
   blog/index.html  a single-column list (.post-list): text on the left, a small photo on the right.
   .post cards      the "Keep reading" cards under an article. A card or row is one link: the title's ::after covers it.
   blog/*.html      cover image, then .longform (contents on the left, the article on the right),
                    then "Keep reading" cards. */
.posts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.post { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r-lg); background: #fff; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.post:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -28px rgba(20, 30, 80, .35); }
.post:focus-within { outline: 3px solid var(--accent); outline-offset: 3px; }
.post__media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--beige); }
.post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.post:hover .post__media img { transform: scale(1.04); }
.post__body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 12px; padding: 26px 28px 28px; }
.post__body h2, .post__body h3 { font-size: 25px; line-height: 1.15; }
.post__body h2 a::after, .post__body h3 a::after { content: ""; position: absolute; inset: 0; }
.post__body a:focus-visible { outline: none; }
.post__body p { color: var(--ink-2); }
.post__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: auto; padding-top: 6px; color: var(--ink-3); font-size: 14px; }
.post__meta span + span::before { content: "·"; margin-right: 10px; }
.post--compact .post__media { aspect-ratio: 2 / 1; }
.post--compact .post__body { padding: 22px 24px 24px; }
.post--compact h3 { font-size: 21px; }

/* Article */
.page-hero--post { padding-bottom: 64px; }
.page-hero--post h1 { font-size: clamp(36px, 4vw, 54px); }
.page-hero--post .page-hero__meta { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.page-hero--post .page-hero__meta span + span::before { content: "·"; margin-right: 10px; }
.sec--post { padding-top: 56px; }
.post-cover { margin: 0 0 64px; overflow: hidden; border-radius: var(--r-xl); background: var(--beige); }
.post-cover img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.post-body { font-size: 17.5px; line-height: 1.7; }
.post-body .content-section { margin-top: 56px; }
.post-body .content-section h2 { margin-bottom: 14px; font-size: 30px; }
.post-body .content-section h3 { margin: 28px 0 8px; font-size: 20px; }
.post-summary { padding: 26px 30px; border-radius: var(--r-lg); background: #fff; }
.post-summary b, .post-related > b { display: block; color: var(--ink-3); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.post-summary .ticks { margin-top: 14px; }
.post-summary .ticks li { align-items: flex-start; font-size: 16px; line-height: 1.5; font-weight: 500; color: var(--ink); }
.post-summary .ticks li::before { margin-top: 1px; background-color: var(--accent); }
.checklist { list-style: none; padding: 0 !important; gap: 0 !important; border-top: 1px solid var(--line); }
.checklist li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.checklist li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 3px; border: 2px solid var(--ink-3); border-radius: 6px; background: #fff; }
.post-steps { counter-reset: step; list-style: none; padding: 0 !important; gap: 12px !important; }
.post-steps li { counter-increment: step; display: flex; align-items: flex-start; gap: 16px; padding: 16px 20px; border-radius: 16px; background: #fff; }
.post-steps li::before { content: counter(step); flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; font: 600 15px/1 var(--f-head); }
.post-steps b { color: var(--ink); }
.post-table { margin: 22px 0 0; overflow-x: auto; border-radius: var(--r-lg); background: #fff; }
.post-table table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: 15.5px; line-height: 1.45; }
.post-table th, .post-table td { padding: 13px 20px; border-bottom: 1px solid var(--line); text-align: left; }
.post-table thead th { color: var(--ink-3); font-size: 12.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.post-table td:not(:first-child), .post-table th:not(:first-child) { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.post-table tbody td { color: var(--ink-2); }
.post-table tfoot td, .post-table tfoot th { border-bottom: 0; color: var(--ink-2); font-weight: 500; }
.post-table tfoot tr:first-child > * { border-top: 2px solid var(--line); }
.post-table tfoot tr:last-child th, .post-table tfoot tr:last-child td { background: color-mix(in srgb, var(--accent) 9%, white); color: var(--ink); font-weight: 700; }
.post-table caption { caption-side: bottom; padding: 12px 20px 16px; color: var(--ink-3); font-size: 13.5px; text-align: left; }
.post-body .content-callout { border-radius: 0 var(--r-lg) var(--r-lg) 0; }
.post-body .content-callout p { max-width: none; }
.post-body .content-faq summary { font-size: 18px; }
.post-related { margin-top: 96px; padding-top: 40px; border-top: 1px solid var(--line); }
.post-related > h2 { margin: 8px 0 28px; font-size: 32px; }
.longform__toc a[aria-current="true"] { background: #fff; color: var(--ink); font-weight: 600; }

@media (max-width: 900px) {
  .post-cover { margin-bottom: 40px; }
  .post-cover img { aspect-ratio: 16 / 9; }
}
@media (max-width: 640px) {
  .posts { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .post__body h2, .post__body h3 { font-size: 22px; }
  .sec--post { padding-top: 32px; }
  .post-cover { margin-bottom: 32px; border-radius: var(--r-lg); }
  .post-body { font-size: 16.5px; }
  .post-body .content-section { margin-top: 44px; }
  .post-body .content-section h2 { font-size: 25px; }
  .post-summary { padding: 22px; }
  .post-table table { min-width: 0; font-size: 14px; }
  .post-table th, .post-table td { padding: 12px 12px; }
  .post-table th:first-child, .post-table td:first-child { padding-left: 16px; }
  .post-table th:last-child, .post-table td:last-child { padding-right: 16px; }
  .post-table td:not(:first-child):not(:last-child) { white-space: normal; }
  .post-table caption { padding: 12px 16px 14px; }
  .post-related { margin-top: 64px; }
  .post-related > h2 { font-size: 27px; }
}

/* Blog index: one quiet column of posts, divided by lines. */
.post-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.post-row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 320px; align-items: center; gap: 64px; padding: 40px 0; border-bottom: 1px solid var(--line); }
.post-row__topic { color: var(--accent-2); font-size: 13.5px; font-weight: 600; }
.post-row h2 { margin-top: 10px; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.15; transition: color .2s; }
.post-row h2 a::after { content: ""; position: absolute; inset: 0; }
.post-row h2 a:focus-visible { outline: none; }
.post-row:focus-within { outline: 3px solid var(--accent); outline-offset: 6px; border-radius: 8px; }
.post-row:hover h2 { color: var(--accent-2); }
.post-row__text > p:not([class]) { max-width: 600px; margin-top: 12px; color: var(--ink-2); }
.post-row .post__meta { margin-top: 16px; padding-top: 0; }
.post-row__media { overflow: hidden; border-radius: 16px; background: var(--beige); }
.post-row__media img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .7s var(--ease); }
.post-row:hover .post-row__media img { transform: scale(1.04); }
@media (max-width: 640px) {
  .post-row { grid-template-columns: minmax(0, 1fr) 96px; gap: 18px; padding: 28px 0; align-items: start; }
  .post-row h2 { font-size: 21px; }
  .post-row__text > p:not([class]) { font-size: 15px; }
  .post-row__media { border-radius: 12px; }
  .post-row__media img { aspect-ratio: 1; }
}
