/* Pocket PnL website.
   Every color is the app's own (PLTracker/Sources/Theme/Palette.swift): the dark liquid
   glass theme by default, the light glass theme when the device asks for light.
   Type rule: the system font is the app talking (the demo, rows, buttons, body text);
   Funnel Display is the site talking (headlines and the signed claims). */

@font-face {
  font-family: "Funnel Display";
  src: url("/assets/fonts/funnel-display-latin.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0a0a12;
  --dusk: #150a1f;
  --fen: #04120f;
  --text: #e9e9f0;
  --muted: rgba(233, 233, 240, .72);
  --faint: rgba(233, 233, 240, .5);
  --profit: #34d399;
  --loss: #f87171;
  --amber: #f0a35c;
  --on-accent: #0a0a12;
  --glass: rgba(255, 255, 255, .06);
  --glass-2: rgba(255, 255, 255, .1);
  --line: rgba(255, 255, 255, .14);
  --line-2: rgba(255, 255, 255, .22);
  --panel: rgba(20, 18, 28, .58);
  --shadow: 0 30px 70px rgba(0, 0, 0, .45);
  --blob-1: rgba(168, 85, 247, .42);
  --blob-2: rgba(236, 72, 153, .3);
  --blob-3: rgba(45, 212, 191, .3);
  --ground: linear-gradient(135deg, var(--ink), var(--dusk) 55%, var(--fen));

  --display: "Funnel Display", ui-sans-serif, system-ui, sans-serif;
  --ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --max: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --r-l: 30px;
  --r-m: 20px;
  --r-s: 14px;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --text: #1c2430;
    --muted: rgba(28, 36, 48, .8);
    --faint: rgba(28, 36, 48, .58);
    --profit: #166534;
    --loss: #b91c1c;
    --amber: #b45309;
    --on-accent: #ffffff;
    --glass: rgba(255, 255, 255, .5);
    --glass-2: rgba(255, 255, 255, .72);
    --line: rgba(255, 255, 255, .85);
    --line-2: rgba(28, 36, 48, .16);
    --panel: rgba(255, 255, 255, .55);
    --shadow: 0 24px 60px rgba(60, 40, 80, .16);
    --blob-1: rgba(255, 255, 255, .7);
    --blob-2: rgba(255, 214, 180, .45);
    --blob-3: rgba(180, 214, 235, .5);
    --ground: linear-gradient(135deg, #f2e2d3, #f2dbe3 40%, #dcd8f0 72%, #d9ece9);
    color-scheme: light;
  }
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--ink) var(--ground) fixed;
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--ui);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@media (prefers-color-scheme: light) { body { background-color: #efe4ea; } }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--profit); outline-offset: 3px; border-radius: 6px; }
::selection { background: color-mix(in srgb, var(--profit) 35%, transparent); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  padding: 10px 16px; border-radius: 12px;
  background: var(--profit); color: var(--on-accent); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* The drifting color field the app draws behind its glass. */
.field { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.field i { position: absolute; border-radius: 50%; width: 62vmax; height: 62vmax; }
.field i:nth-child(1) { left: -24vmax; top: -26vmax; background: radial-gradient(closest-side, var(--blob-1), transparent); animation: drift-a 48s ease-in-out infinite alternate; }
.field i:nth-child(2) { right: -28vmax; top: 22vh; background: radial-gradient(closest-side, var(--blob-3), transparent); animation: drift-b 56s ease-in-out infinite alternate; }
.field i:nth-child(3) { left: 18vw; bottom: -40vmax; background: radial-gradient(closest-side, var(--blob-2), transparent); animation: drift-a 62s ease-in-out infinite alternate-reverse; }
@keyframes drift-a { to { transform: translate(8vmax, 6vmax) scale(1.08); } }
@keyframes drift-b { to { transform: translate(-7vmax, 9vmax) scale(.94); } }

/* ---------- Header ---------- */

.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--ink) 55%, transparent);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3);
}
@media (prefers-color-scheme: light) { .top { background: rgba(255, 255, 255, .45); } }
.top-in { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 600 1.05rem/1 var(--ui); letter-spacing: -.01em; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.menu { margin-left: auto; }
.menu ul { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.menu a {
  display: block; padding: 8px 12px; border-radius: 999px;
  font: 500 .94rem/1.2 var(--ui); color: var(--muted); text-decoration: none;
}
.menu a:hover { color: var(--text); background: var(--glass); }
.menu a[aria-current="page"] { color: var(--text); background: var(--glass-2); }
@media (max-width: 760px) {
  .top-in { flex-wrap: wrap; gap: 0 12px; padding-block: 10px 0; min-height: 0; }
  .top-get { margin-left: auto; }
  .menu { order: 3; flex-basis: 100%; margin: 6px calc(var(--gutter) * -1) 0; overflow-x: auto; scrollbar-width: none; }
  .menu::-webkit-scrollbar { display: none; }
  .menu ul { padding: 0 calc(var(--gutter) - 12px) 8px; }
  .menu ul { gap: 0; }
  .menu a { padding: 8px 9px; font-size: .9rem; white-space: nowrap; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font: 600 1rem/1 var(--ui); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .2s, box-shadow .2s;
}
.btn:active { transform: scale(.98); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: .9rem; }
.btn-mint { background: var(--profit); color: var(--on-accent); box-shadow: 0 0 24px color-mix(in srgb, var(--profit) 30%, transparent); }
.btn-mint:hover { box-shadow: 0 0 36px color-mix(in srgb, var(--profit) 45%, transparent); }
.btn-glass { background: var(--glass); border-color: var(--line); }
.btn-glass:hover { background: var(--glass-2); }

.badge { display: inline-block; border-radius: 10px; }
.badge img { width: 150px; height: 50px; }
.get { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; }
.get-note { margin: 0; color: var(--muted); font-size: .92rem; }

/* ---------- Type ---------- */

.eyebrow {
  display: block; margin: 0 0 14px;
  font: 600 .75rem/1.3 var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.display-1 { font: 600 clamp(2.6rem, 6.4vw, 5.4rem)/.98 var(--display); letter-spacing: -.035em; }
.display-2 { font: 600 clamp(2rem, 4.2vw, 3.4rem)/1.04 var(--display); letter-spacing: -.03em; }
.display-3 { font: 600 clamp(1.5rem, 2.6vw, 2.1rem)/1.1 var(--display); letter-spacing: -.02em; }
.lede { font-size: clamp(1.08rem, 1.6vw, 1.28rem); line-height: 1.55; color: var(--muted); max-width: 36em; }
.in { color: var(--profit); }
.out { color: var(--loss); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Sections ---------- */

.section { padding-block: clamp(64px, 10vw, 128px); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head .lede { margin-top: 18px; }
.glass {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  -webkit-backdrop-filter: blur(24px) saturate(1.2); backdrop-filter: blur(24px) saturate(1.2);
}

/* ---------- Hero ---------- */

.hero { padding-block: clamp(32px, 5vw, 72px) clamp(48px, 7vw, 88px); }
.hero-in { max-width: 1260px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(2.7rem, 5.6vw, 4.7rem); }
.hero-copy .lede { margin: 24px 0 32px; }
@media (max-width: 900px) {
  .hero-in { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { display: contents; }
  .hero-copy > .eyebrow { order: 1; margin-bottom: -18px; }
  .hero-copy > h1 { order: 2; }
  .hero-copy > .lede { order: 3; margin: -12px 0 0; }
  .demo { order: 4; }
  .hero-copy > .get { order: 5; }
}

/* ---------- The demo: Today, rebuilt ---------- */

.demo { width: min(100%, 440px); margin-inline: auto; }
.demo-card { padding: 22px 20px 20px; box-shadow: var(--shadow); position: relative; isolation: isolate; overflow: hidden; }
.demo[data-sign="out"] { --accent: var(--loss); }
.demo[data-sign="in"] { --accent: var(--profit); }
.demo-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.demo-day { font: 600 .95rem/1 var(--ui); color: var(--muted); }
.pill {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--line); font: 600 .84rem/1 var(--ui); white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.pill .was { color: var(--muted); font-weight: 500; }

.orb-wrap { position: relative; display: grid; place-items: center; padding: 6px 0 14px; }
.orb-glow {
  position: absolute; left: 50%; top: 50%; z-index: -1; width: 220px; height: 220px; border-radius: 50%;
  transform: translate(-20%, -72%); background: var(--accent); opacity: .38; filter: blur(60px);
  transition: background .35s; pointer-events: none;
}
.orb {
  width: min(66vw, 236px); aspect-ratio: 1; border-radius: 50%; position: relative; overflow: hidden;
  container-type: inline-size;
  background: linear-gradient(180deg, rgba(255, 255, 255, .17), rgba(255, 255, 255, .07) 64%);
  border: 1px solid rgba(255, 255, 255, .2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 22px 44px rgba(0, 0, 0, .35);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
}
@media (prefers-color-scheme: light) {
  .orb { background: linear-gradient(180deg, rgba(255, 255, 255, .8), rgba(255, 255, 255, .45) 64%); border-color: rgba(255, 255, 255, .9); box-shadow: inset 0 1px 0 #fff, 0 18px 40px rgba(60, 40, 80, .14); }
}
.spark { position: absolute; inset: 0; width: 100%; height: 100%; }
.spark path { fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.spark .so-far { stroke: var(--profit); opacity: .55; }
.spark .so-far.is-down { stroke: var(--loss); }
.spark .step { stroke: var(--accent); stroke-dasharray: 1 6; transition: opacity .2s; }
.spark .dot { fill: var(--accent); stroke: rgba(255, 255, 255, .9); stroke-width: 1.5; transition: opacity .2s; }
.spark .ping { fill: none; stroke: var(--profit); stroke-width: 2; opacity: 0; }
.orb.is-saved .ping { animation: ping .7s ease-out; }
@keyframes ping { from { r: 4; opacity: .9; } to { r: 24; opacity: 0; } }
.orb-text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3cqw; padding-top: 22cqw; }
.orb-amount {
  color: var(--profit); font: 700 19cqw/1 var(--ui); letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap;
  transition: color .3s;
}
.orb-amount.is-down { color: var(--loss); }
.orb-amount.is-draft { color: var(--accent); }
.orb-amount .ghost { opacity: .35; }
.orb-label { font: 600 .66rem/1 var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

.keys { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.key {
  height: 64px; border-radius: 18px; border: 1px solid; cursor: pointer;
  display: grid; place-items: center; font: 500 1.9rem/1 var(--ui);
  transition: background .2s, box-shadow .2s, transform .12s;
}
.key:active { transform: scale(.98); }
.key-out { color: var(--loss); background: color-mix(in srgb, var(--loss) 14%, transparent); border-color: color-mix(in srgb, var(--loss) 45%, transparent); }
.key-in { color: var(--profit); background: color-mix(in srgb, var(--profit) 14%, transparent); border-color: color-mix(in srgb, var(--profit) 45%, transparent); }
.key[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--accent), 0 0 28px color-mix(in srgb, var(--accent) 35%, transparent); }

.qa { display: flex; gap: 8px; }
.qa-field { position: relative; flex: 1; min-width: 0; }
.qa-field svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.qa input {
  width: 100%; height: 50px; padding: 0 14px 0 40px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--line); font-size: 1rem;
}
.qa input::placeholder { color: var(--faint); }
.qa input:focus { outline: none; border-color: color-mix(in srgb, var(--accent) 70%, transparent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.qa .btn { min-height: 50px; padding: 0 18px; background: var(--accent); color: var(--on-accent); }

.rows { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 12px;
  padding: 10px 14px; border-radius: 16px; background: var(--glass); border: 1px solid var(--line);
}
.row-note { font: 600 .95rem/1.25 var(--ui); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-meta { grid-column: 1; font: 400 .78rem/1.2 var(--ui); color: var(--muted); }
.row-amt { grid-row: 1 / span 2; grid-column: 2; font: 600 .98rem/1 var(--ui); font-variant-numeric: tabular-nums; }
.row.is-new { animation: row-in .45s cubic-bezier(.2, .8, .2, 1); }
@keyframes row-in { from { opacity: 0; transform: translateY(-10px) scale(.98); } }
.demo-note { margin: 14px 4px 0; font-size: .86rem; color: var(--muted); text-align: center; }
.demo-hint { margin: 10px 4px 0; min-height: 1.3em; font-size: .84rem; color: var(--muted); text-align: center; }
.demo-hint.is-error { color: var(--loss); }

/* ---------- The P&L strip ---------- */

.ledger { padding-block: clamp(28px, 4vw, 44px); border-block: 1px solid var(--line); background: color-mix(in srgb, var(--ink) 25%, transparent); }
@media (prefers-color-scheme: light) { .ledger { background: rgba(255, 255, 255, .25); } }
.ledger-in { display: grid; gap: 4px; }
.ledger-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px clamp(18px, 3.2vw, 44px); margin: 0; padding: 0; list-style: none; }
.ledger li { font: 500 clamp(1.35rem, 3vw, 2.5rem)/1.2 var(--display); letter-spacing: -.02em; white-space: nowrap; }
.ledger .sign { display: inline-block; width: .62em; }

/* ---------- Feature panels ---------- */

.panels { display: grid; gap: clamp(20px, 3vw, 28px); }
.panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 5vw, 64px); padding: clamp(24px, 4vw, 52px); overflow: hidden; }
.panel:nth-child(even) .panel-copy { order: 2; }
.panel-copy h3 { margin-bottom: 14px; }
.panel-copy p { color: var(--muted); max-width: 30em; }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--profit); text-decoration: none; }
.more:hover { text-decoration: underline; text-underline-offset: 3px; }
.pro-tag {
  display: inline-block; margin-left: 8px; padding: 3px 9px; border-radius: 999px; vertical-align: 2px;
  font: 700 .66rem/1.2 var(--ui); letter-spacing: .1em; color: var(--on-accent); background: var(--amber);
}
@media (max-width: 820px) {
  .panel { grid-template-columns: minmax(0, 1fr); }
  .panel:nth-child(even) .panel-copy { order: 0; }
}

.shot { margin: 0; justify-self: center; width: min(100%, 380px); }
.shot img { width: 100%; border-radius: 26px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.shot-crop img { border-radius: 22px; }
.shot-phone { width: min(100%, 300px); }
.shot-phone img { border-radius: 40px; }
.shot figcaption { margin-top: 12px; font-size: .84rem; color: var(--muted); text-align: center; }

/* The smaller features, as a list of glass tiles */
.also { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 14px; margin-top: clamp(20px, 3vw, 28px); }
.tile { display: block; padding: 22px 22px 20px; border-radius: var(--r-m); text-decoration: none; transition: border-color .2s, transform .2s; }
a.tile:hover { border-color: var(--line-2); transform: translateY(-2px); }
@media (prefers-color-scheme: dark) { a.tile:hover { border-color: rgba(255, 255, 255, .3); } }
.tile h3 { font: 600 1.05rem/1.3 var(--ui); margin-bottom: 6px; }
.tile p { margin: 0; font-size: .95rem; color: var(--muted); }

/* ---------- Privacy diagram ---------- */

.flow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.flow-map { position: relative; padding: clamp(22px, 3.5vw, 36px); }
.flow-map svg { display: block; width: 100%; height: auto; }
.flow-map text { font-family: var(--ui); fill: var(--text); }
.flow-map .t-muted { fill: var(--muted); }
.flow-map .box { fill: var(--glass); stroke: var(--line); }
@media (prefers-color-scheme: light) { .flow-map .box { stroke: rgba(28, 36, 48, .14); } }
.flow-map .wire { stroke: var(--profit); stroke-width: 2.5; fill: none; }
.flow-map .wire-off { stroke: var(--loss); stroke-width: 2; stroke-dasharray: 3 7; fill: none; opacity: .8; }
.calls { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.calls li { padding: 14px 16px 14px 18px; border-left: 2px solid var(--profit); background: var(--glass); border-radius: 0 14px 14px 0; font-size: .97rem; }
.calls strong { display: block; font-weight: 600; margin-bottom: 2px; }
.calls span { color: var(--muted); }
@media (max-width: 860px) { .flow { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Pricing ---------- */

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 24px); }
.plan { padding: clamp(26px, 4vw, 40px); display: flex; flex-direction: column; }
.plan h3, .plan .plan-name { font: 600 .78rem/1.2 var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.plan-price { font: 600 clamp(2.2rem, 4vw, 3rem)/1 var(--display); letter-spacing: -.03em; margin-bottom: 6px; }
.plan-price small { font: 500 1rem/1 var(--ui); letter-spacing: 0; color: var(--muted); }
.plan-sub { color: var(--muted); margin-bottom: 22px; }
.plan ul { margin: 0 0 24px; padding: 0; list-style: none; display: grid; gap: 10px; }
.plan li { padding-left: 26px; position: relative; }
.plan li::before { content: "+"; position: absolute; left: 2px; top: -1px; font: 600 1.15rem/1.4 var(--display); color: var(--profit); }
.plan-pro { border-color: color-mix(in srgb, var(--amber) 55%, transparent); }
.plan-pro li::before { color: var(--amber); }
.plan .fine { margin-top: auto; font-size: .86rem; color: var(--muted); }
@media (max-width: 760px) { .plans { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Guide cards ---------- */

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; padding: 26px; border-radius: var(--r-m); text-decoration: none; min-height: 210px; transition: transform .2s, border-color .2s; }
.card:hover { transform: translateY(-3px); border-color: var(--line-2); }
@media (prefers-color-scheme: dark) { .card:hover { border-color: rgba(255, 255, 255, .3); } }
.card .eyebrow { margin-bottom: 12px; }
.card h3 { font: 600 1.4rem/1.15 var(--display); letter-spacing: -.015em; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .95rem; margin: 0 0 18px; }
.card .more { margin-top: auto; }

/* ---------- FAQ ---------- */

.faq { max-width: 820px; display: grid; gap: 10px; }
.faq details { border-radius: var(--r-m); padding: 0 22px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 32px 20px 0; position: relative;
  font: 600 1.06rem/1.35 var(--ui);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font: 500 1.6rem/1 var(--display); color: var(--profit); transition: transform .2s; }
.faq details[open] summary::after { content: "\2212"; color: var(--loss); }
.faq details > div { padding: 0 0 20px; color: var(--muted); }
.faq details > div p:last-child { margin-bottom: 0; }

/* ---------- Closing curve ---------- */

.close { text-align: center; padding-block: clamp(72px, 11vw, 140px) clamp(64px, 9vw, 112px); }
.curve { width: min(100%, 780px); height: auto; margin: 0 auto -18px; display: block; overflow: visible; }
.curve-line { stroke-dasharray: 1; stroke-dashoffset: 0; }
@media (prefers-reduced-motion: no-preference) {
  .curve-halo { animation: glow 3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
  @supports (animation-timeline: view()) {
    .curve-line { animation: draw linear both; animation-timeline: view(); animation-range: entry 5% cover 40%; }
  }
}
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes glow { 50% { opacity: .35; transform: scale(1.25); } }
.close h2 { margin-bottom: 18px; }
.close .lede { margin: 0 auto 30px; }
.close .get { justify-content: center; }

/* ---------- Footer ---------- */

.foot { border-top: 1px solid var(--line); padding-block: 56px 32px; background: color-mix(in srgb, var(--ink) 40%, transparent); }
@media (prefers-color-scheme: light) { .foot { background: rgba(255, 255, 255, .3); } }
.foot-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px; }
.foot-brand p { color: var(--muted); font-size: .95rem; margin: 14px 0 18px; max-width: 26em; }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.foot-cols h2 { font: 600 .74rem/1.2 var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.foot-cols ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.foot-cols a { color: var(--text); text-decoration: none; font-size: .94rem; }
.foot-cols a:hover { color: var(--profit); }
.foot-legal { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--faint); }
.foot-legal p { margin: 0 0 6px; }
@media (max-width: 860px) {
  .foot-in { grid-template-columns: minmax(0, 1fr); }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 420px) { .foot-cols { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Inner pages ---------- */

.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 22px; padding: 0; list-style: none; font-size: .86rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--faint); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); text-decoration: underline; }
.page-hero { padding-block: clamp(40px, 6vw, 80px) clamp(24px, 4vw, 48px); }
.page-hero .lede { margin-top: 22px; }
.page-hero .get { margin-top: 30px; }
.split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.split-aside { position: sticky; top: 96px; display: grid; gap: 18px; justify-items: center; }
@media (max-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split-aside { position: static; }
}

/* Long-form text: feature pages, guides, privacy */
.prose { max-width: 42rem; font-size: 1.0625rem; }
.prose > * + * { margin-top: 0; }
.prose h2 { font: 600 clamp(1.5rem, 2.6vw, 1.95rem)/1.15 var(--display); letter-spacing: -.02em; margin: 2.2em 0 .6em; }
.prose h3 { font: 600 1.18rem/1.3 var(--ui); margin: 1.8em 0 .5em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose p, .prose li { color: color-mix(in srgb, var(--text) 88%, transparent); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--profit); }
.prose a { color: var(--profit); text-underline-offset: 3px; }
.prose strong { color: var(--text); }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: .97rem; font-variant-numeric: tabular-nums; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font: 600 .76rem/1.2 var(--ui); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.prose td.n, .prose th.n { text-align: right; white-space: nowrap; }
.prose .table-wrap { overflow-x: auto; margin: 0 0 1.4em; }
.prose .table-wrap table { margin: 0; }
.prose-wide { max-width: none; }
.prose code { font: .88em/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; padding: .12em .4em; border-radius: 6px; background: var(--glass); border: 1px solid var(--line); overflow-wrap: anywhere; }
.prose pre { margin: 0 0 1.2em; padding: 14px 16px; border-radius: var(--r-s); background: var(--glass); border: 1px solid var(--line); overflow-x: auto; }
.prose pre code { padding: 0; border: 0; background: none; white-space: pre-wrap; word-break: break-all; }
.note-box { padding: 18px 20px; border-radius: 18px; background: var(--glass); border: 1px solid var(--line); margin: 0 0 1.4em; }
.note-box p:last-child { margin-bottom: 0; }
.updated { font-size: .9rem; color: var(--muted); margin-top: 16px; }
.toc { padding: 20px 22px; border-radius: 18px; margin-bottom: 32px; }
.toc h2 { font: 600 .74rem/1.2 var(--ui) !important; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px !important; }
.toc ol { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--profit); }
.app-note { padding: 24px; border-radius: var(--r-m); margin: 2em 0; }
.app-note h2, .app-note h3 { margin-top: 0 !important; }
.app-note p { color: var(--muted); }
.related { margin-top: clamp(48px, 7vw, 80px); }
.related h2 { margin-bottom: 18px; }

/* No spend challenge printable */
.printable { margin: 0 0 1.4em; padding: 22px; border-radius: 18px; }
.printable-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.printable-grid span {
  aspect-ratio: 1; border-radius: 10px; border: 1px solid var(--line-2);
  display: flex; align-items: flex-start; justify-content: flex-start; padding: 6px;
  font: 600 .8rem/1 var(--ui); color: var(--muted);
}
@media (prefers-color-scheme: dark) { .printable-grid span { border-color: rgba(255, 255, 255, .22); } }
.print-btn { margin-top: 16px; }

/* Template downloads */
.downloads { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.downloads-note { flex-basis: 100%; margin: 4px 0 0; color: var(--muted); font-size: .92rem; }

@media print {
  .top, .foot, .field, .skip, .crumbs, .toc, .app-note, .related, .print-btn, .no-print { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .glass { background: none; border: 1px solid #999; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .printable { break-inside: avoid; }
  .printable-grid span { border-color: #666; color: #333; }
  .prose a { color: #000; }
  .print-tracker main > :not(article), .print-tracker .page-hero, .print-tracker .related,
  .print-tracker .prose > :not(.printable) { display: none !important; }
  .print-tracker .printable { border: 0; padding: 0; }
  .print-tracker .printable h2 { margin-top: 0; }
  .print-tracker .printable-grid { gap: 4px; }
  .print-tracker .printable-grid span { font-size: 10pt; }
}

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .field i { animation: none !important; }
  .curve-line { stroke-dashoffset: 0 !important; }
}

/* ---------- Inner page layout ---------- */

.page-title { font: 600 clamp(2.3rem, 4.8vw, 4rem)/1.02 var(--display); letter-spacing: -.032em; }
.page-split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 860px) { .page-split { grid-template-columns: minmax(0, 1fr); } }
.section-tight { padding-block: clamp(32px, 5vw, 64px) clamp(56px, 8vw, 104px); }
.body-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: clamp(32px, 6vw, 88px); align-items: start; }
.body-grid > aside { position: sticky; top: 96px; display: grid; gap: 22px; }
@media (max-width: 960px) {
  .body-grid { grid-template-columns: minmax(0, 1fr); }
  .body-grid > aside { position: static; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
}
.facts { padding: 22px; border-radius: var(--r-m); }
.facts h2 { font: 600 .74rem/1.2 var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.facts dl { margin: 0; display: grid; gap: 12px; }
.facts dt { font-size: .82rem; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 600; }
.example-table td:first-child { font-style: italic; }
.csv-sample { font-size: .82rem; }
.csv-sample td, .csv-sample th { padding: 8px 10px; white-space: nowrap; }
.fill-table td:first-child { font-weight: 600; color: var(--text); }
.fill-table td:last-child { white-space: nowrap; }
.compare td:first-child { font-weight: 600; color: var(--text); }
.hub-list { margin-top: 24px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.hub-h2, .hub-more { margin-top: clamp(40px, 6vw, 64px); }
.toc-aside .toc { margin-bottom: 0; }
.aside-app p { font-size: .92rem; color: var(--muted); margin: 0 0 14px; }
@media (max-width: 960px) {
  .body-grid > .toc-aside { order: -1; }
  .toc-aside .aside-app { display: none; }
}
