/* Spendlore — one stylesheet for the whole site. Tokens match the app. */

:root {
  --paper: #FBF9F5;
  --sheet: #FFFEFD;
  --well: #F1EFEA;
  --rule: #E2DFDA;
  --ink: #181A21;
  --ink-muted: #5A5D66;
  --neel: #324CA7;
  --on-neel: #FFFFFF;
  --money-in: #1A763F;
  --money-out: #9E4B44;
  --mark: #E1E6F5;
  --tile-food: #FBE5DA;   --tile-food-ink: #8A3A10;
  --tile-health: #F7E1E4; --tile-health-ink: #9A2F44;
  --tile-groc: #E1F0E2;   --tile-groc-ink: #23672F;

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --pad: clamp(20px, 5vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0F0E0C;
    --sheet: #1A1917;
    --well: #21201E;
    --rule: #2D2B28;
    --ink: #F2F0EC;
    --ink-muted: #ABAEB4;
    --neel: #97ACFA;
    --on-neel: #0F0E0C;
    --money-in: #6DD48D;
    --money-out: #E0918A;
    --mark: #2A3352;
    --tile-food: #3A2519;   --tile-food-ink: #F2A87F;
    --tile-health: #3A1F25; --tile-health-ink: #F09AAB;
    --tile-groc: #1C3120;   --tile-groc-ink: #86D394;
  }
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--neel); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--neel); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.015em; margin: 0; font-weight: 700; text-wrap: balance; }
p { margin: 0; }
code { font-family: var(--mono); font-size: 0.88em; background: var(--well); border-radius: 5px; padding: 0.08em 0.25em; overflow-wrap: anywhere; }

.wrap { max-width: 1120px; margin-inline: auto; padding-inline: var(--pad); }
.label {
  font-size: 15px;
  font-weight: 600;
  font-variant-caps: small-caps;
  letter-spacing: 0.6px;
  color: var(--ink-muted);
}
.skip {
  position: absolute; left: 12px; top: -60px;
  background: var(--neel); color: var(--on-neel);
  padding: 10px 14px; border-radius: 10px; font-weight: 600; text-decoration: none; z-index: 2;
}
.skip:focus { top: 12px; }

/* Header */
.site-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.brand img { width: 32px; height: 32px; border-radius: 22.4%; }
.brand picture { flex: none; }
.site-nav { display: flex; gap: clamp(14px, 3vw, 28px); }
.site-nav a { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; padding-block: 6px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--neel); }
/* Very narrow phones: the icon alone carries the brand, so the three links fit. */
@media (max-width: 389px) { .site-head .brand-name { display: none; } }

/* Sections */
.section { padding-block: clamp(56px, 8vw, 104px); border-top: 1px solid var(--rule); }
.section-head { display: grid; gap: 10px; margin-bottom: clamp(28px, 4vw, 44px); max-width: 40em; }
.section-head h2 { font-size: clamp(28px, 2.6vw + 16px, 42px); }
.section-head p:not(.label) { color: var(--ink-muted); font-size: 18px; }

/* Hero */
.hero { display: grid; gap: 44px; padding-block: clamp(32px, 6vw, 88px) clamp(56px, 8vw, 104px); align-items: center; }
@media (min-width: 920px) { .hero { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 72px; } }
.hero-icon { width: 72px; height: 72px; border-radius: 22.4%; border: 1px solid var(--rule); margin-bottom: 28px; }
.hero h1 { font-size: clamp(38px, 4.4vw + 18px, 64px); line-height: 1.04; letter-spacing: -0.025em; margin: 10px 0 22px; max-width: 12em; }
.lede { font-size: clamp(18px, 0.6vw + 15px, 21px); color: var(--ink-muted); max-width: 32em; }
.works-with { display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; background: var(--well); border-radius: 20px; padding: 8px 16px; font-size: 15px; font-weight: 600; }
.works-with svg { width: 16px; height: 16px; color: var(--neel); flex: none; }

/* Alert → ledger demo */
.demo { margin: 0; display: grid; gap: 12px; width: 100%; max-width: 460px; justify-self: center; }
.alerts { display: grid; }
.alert { grid-area: 1 / 1; background: var(--sheet); border: 1px solid var(--rule); border-radius: 20px; padding: 16px 18px; }
.alert-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.alert-head time { color: var(--ink-muted); font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.alert-text { font-family: var(--mono); font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.alert mark { background: var(--mark); color: inherit; border-radius: 4px; padding: 0 2px; }
.demo .arrow { justify-self: center; width: 20px; height: 20px; color: var(--neel); }
.ledger { background: var(--sheet); border: 1px solid var(--rule); border-radius: 20px; overflow: hidden; }
.ledger-head { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 18px 10px; border-bottom: 1px solid var(--rule); }
.total { display: grid; font-weight: 600; font-variant-numeric: tabular-nums; }
.total span { grid-area: 1 / 1; justify-self: end; }
.rows { list-style: none; margin: 0; padding: 0; min-height: 201px; }
.grow { display: grid; grid-template-rows: 1fr; }
.row { min-height: 0; overflow: hidden; }
.row-in { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: center; padding-left: 18px; }
.cell { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 66px; padding: 10px 18px 10px 0; }
.grow + .grow .cell { border-top: 1px solid var(--rule); }
.tile { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; }
.tile svg { width: 22px; height: 22px; }
.t-food { background: var(--tile-food); color: var(--tile-food-ink); }
.t-health { background: var(--tile-health); color: var(--tile-health-ink); }
.t-groc { background: var(--tile-groc); color: var(--tile-groc-ink); }
.who { font-weight: 600; line-height: 1.25; }
.meta { color: var(--ink-muted); font-size: 14px; }
.amt { color: var(--money-out); font-weight: 600; font-variant-numeric: tabular-nums; }
/* Resting state (also the reduced-motion state): the last alert and all three rows. */
.a1, .a2 { opacity: 0; visibility: hidden; }
.total .s1, .total .s2 { opacity: 0; }

/* How it works */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 36px; counter-reset: step; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; } }
.steps li { border-top: 1px solid var(--rule); padding-top: 18px; counter-increment: step; }
.steps li::before { content: counter(step); display: block; color: var(--neel); font-weight: 700; font-variant-numeric: tabular-nums; margin-bottom: 6px; }
.steps h3 { font-size: 21px; margin-bottom: 8px; }
.steps p { color: var(--ink-muted); }
.steps p + p { margin-top: 10px; }

/* Screens */
.shots { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: min(72%, 290px); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--pad)); padding-inline: var(--pad); scroll-padding-inline: var(--pad); padding-bottom: 8px; }
.shots li { scroll-snap-align: start; }
@media (min-width: 900px) { .shots { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; margin-inline: 0; padding-inline: 0; gap: 28px; } }
.shots figure { margin: 0; }
.shot { border-radius: 26px; border: 1px solid var(--rule); background: var(--sheet); width: 100%; }
.shots figcaption { margin-top: 14px; font-size: 15px; color: var(--ink-muted); }
.shots figcaption b { display: block; color: var(--ink); font-size: 17px; font-weight: 600; margin-bottom: 2px; }
.note { margin-top: 28px; font-size: 14px; color: var(--ink-muted); max-width: 44em; }

/* Feature lists: hairline-topped tiles, used on the homepage and /features */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 32px 40px; }
@media (min-width: 620px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 940px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tiles li { border-top: 1px solid var(--rule); padding-top: 18px; }
.tiles h3 { font-size: 19px; margin-bottom: 6px; }
.tiles p { color: var(--ink-muted); }
.tiles p + p { margin-top: 10px; }
.glyph { width: 40px; height: 40px; border-radius: 11px; background: var(--well); color: var(--neel); display: grid; place-items: center; margin-bottom: 14px; }
.glyph svg { width: 22px; height: 22px; }
.more { margin-top: 32px; font-weight: 600; }

.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.banks-strip { margin-top: clamp(40px, 5vw, 56px); display: grid; gap: 14px; }
.names { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.names li { background: var(--well); border-radius: 20px; padding: 6px 14px; font-size: 15px; font-weight: 500; }
.banks-strip .more { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 10px 28px; }

/* Supported banks table (/features) */
.bank-table { overflow-x: auto; margin-inline: calc(-1 * var(--pad)); padding-inline: var(--pad); }
.bank-table table { width: 100%; min-width: 300px; border-collapse: collapse; font-size: 16px; }
.bank-table th, .bank-table td { padding: 12px 0; border-bottom: 1px solid var(--rule); text-align: left; font-weight: 400; vertical-align: top; }
.bank-table thead th { font-size: 14px; font-weight: 600; color: var(--ink-muted); border-bottom-color: var(--ink-muted); padding-top: 0; }
.bank-table thead th + th, .bank-table td { text-align: center; width: 7.5em; padding-inline: 6px; }
.bank-table tbody th { color: var(--ink-muted); padding-right: 12px; }
.bank-table tbody th b { color: var(--ink); font-weight: 600; }
.bank-table .yes { color: var(--neel); font-weight: 700; }
.bank-table .no { color: var(--ink-muted); }
@media (max-width: 559px) { .bank-table thead th + th, .bank-table td { width: 4.4em; } .bank-table thead th { font-size: 12px; } .bank-table tbody th { font-size: 15px; } .bank-table tbody th b { display: block; } .bank-table th, .bank-table td { padding-block: 10px; } }
.bank-notes { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 8px; font-size: 15px; color: var(--ink-muted); max-width: 44em; }

/* /features */
.page-head { padding-block: clamp(32px, 6vw, 80px) clamp(48px, 7vw, 88px); }
.page-head h1 { font-size: clamp(38px, 3.6vw + 20px, 60px); line-height: 1.04; letter-spacing: -0.025em; margin: 10px 0 20px; max-width: 14em; }
.feature { display: grid; gap: 36px; align-items: center; }
@media (min-width: 860px) {
  .feature { grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: 96px; }
  .feature.flip { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); }
  .feature.flip .feature-copy { order: 2; }
}
.feature-copy { display: grid; gap: 10px; max-width: 34em; }
.feature-copy h2 { font-size: clamp(28px, 2.6vw + 16px, 42px); margin-bottom: 10px; }
.feature-shot { display: block; width: min(100%, 300px); }
@media (min-width: 860px) { .feature-shot { width: 100%; justify-self: center; } }
.ticks { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.ticks li { padding: 13px 0 13px 28px; border-bottom: 1px solid var(--rule); color: var(--ink-muted); position: relative; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: calc(13px + 0.72em); width: 12px; height: 7px; border-left: 2px solid var(--neel); border-bottom: 2px solid var(--neel); transform: translateY(-50%) rotate(-45deg); }

/* Spending report chart (homepage). Sample data: each bar's size is set in the data block below. */
.report { margin: 0; background: var(--sheet); border: 1px solid var(--rule); border-radius: 24px; padding: clamp(20px, 3.4vw, 40px); display: grid; gap: clamp(28px, 4vw, 40px); }
.report-top { display: grid; gap: 8px; }
.hero-fig { font-size: clamp(46px, 3.4vw + 28px, 64px); font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.hero-fig .cur { font-size: 0.5em; vertical-align: 0.72em; margin-right: 3px; font-weight: 600; letter-spacing: 0; }
.report-sub { color: var(--ink-muted); }
.report-grid { display: grid; gap: 44px; }
@media (min-width: 900px) { .report-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 64px; } }
.panel-title { font-size: 17px; font-weight: 600; letter-spacing: 0; margin-bottom: 18px; }

.plot { position: relative; padding-left: 54px; }
.plot-grid, .cols { height: 200px; }
@media (min-width: 900px) { .plot-grid, .cols { height: 300px; } }
.plot-grid { position: absolute; top: 0; left: 54px; right: 0; pointer-events: none; }
.gl, .pace { position: absolute; left: 0; right: 0; border-top: 1px solid var(--rule); }
.gl > span { position: absolute; right: calc(100% + 10px); top: 0; transform: translateY(-50%); font-size: 12px; color: var(--ink-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pace { border-top-color: var(--ink-muted); }
.pace > span { position: absolute; right: 0; bottom: 5px; font-size: 12px; font-weight: 600; color: var(--ink-muted); }
.cols { list-style: none; margin: 0; padding: 0; display: flex; position: relative; }
.d { flex: 1 1 0; position: relative; display: flex; align-items: flex-end; justify-content: center; }
.bar { width: min(10px, 64%); background: var(--neel); border-radius: 4px 4px 0 0; }
.d:hover .bar { background: color-mix(in srgb, var(--neel) 72%, var(--sheet)); }
.val { position: absolute; left: 50%; transform: translateX(-50%); font-size: 12px; font-weight: 600; white-space: nowrap; }
.tip { position: absolute; left: 50%; transform: translateX(-50%); z-index: 1; background: var(--ink); color: var(--paper); font-size: 13px; line-height: 1.3; padding: 6px 10px; border-radius: 8px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s; }
.tip b { font-weight: 700; margin-right: 3px; }
.d:nth-child(-n+3) .tip { left: 0; transform: none; }
.d:hover .tip { opacity: 1; }
.d:hover ~ .today .val, .today:hover .val { opacity: 0; }
.x-axis { position: relative; height: 18px; margin-top: 8px; font-size: 12px; color: var(--ink-muted); }
.x-axis span { position: absolute; top: 0; white-space: nowrap; }
.x-axis span:first-child { left: 0; }
.x-axis span:last-child { right: 0; }
.x-axis .x-today { transform: translateX(-50%); font-weight: 600; color: var(--ink); }

.legend { list-style: none; margin: -6px 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 14px; color: var(--ink-muted); }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.key-bar { width: 16px; height: 10px; background: var(--neel); border-radius: 0 4px 4px 0; }
.key-tick { width: 2px; height: 16px; background: var(--ink); border-radius: 1px; }
.cats { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cat { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: baseline; font-size: 15px; }
.cat-val { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cat-more { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.cat:hover .cat-more { position: static; width: auto; height: auto; overflow: visible; clip-path: none; color: var(--ink-muted); font-weight: 400; }
.cat-track { grid-column: 1 / -1; position: relative; height: 16px; }
.cat-bar { position: absolute; left: 0; top: 3px; height: 10px; background: var(--neel); border-radius: 0 4px 4px 0; }
.cat:hover .cat-bar { background: color-mix(in srgb, var(--neel) 72%, var(--sheet)); }
.cat-usual { position: absolute; top: 0; width: 2px; height: 16px; margin-left: -1px; background: var(--ink); border-radius: 1px; outline: 2px solid var(--sheet); }

.numbers summary { cursor: pointer; color: var(--neel); font-weight: 600; font-size: 15px; width: fit-content; }
.number-tables { display: grid; gap: 28px; margin-top: 18px; }
@media (min-width: 760px) { .number-tables { grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); align-items: start; } }
.number-tables table { border-collapse: collapse; width: 100%; font-size: 14px; font-variant-numeric: tabular-nums; }
.number-tables caption { text-align: left; font-weight: 600; padding-bottom: 8px; }
.number-tables th, .number-tables td { padding: 6px 0; border-bottom: 1px solid var(--rule); font-weight: 400; text-align: left; }
.number-tables td { text-align: right; padding-left: 16px; }
.number-tables thead th { color: var(--ink-muted); font-weight: 600; }
.number-tables thead th + th { text-align: right; padding-left: 16px; }
.report .note { margin-top: 0; }

/* Report chart data (sample month): bar heights, positions, scroll stagger. Keep in step with the tables in index.html. */
.d1 { --i: 1; } .d1 .bar { height: 28.44%; } .d1 .tip { bottom: calc(28.44% + 8px); }
.d2 { --i: 2; } .d2 .bar { height: 14.22%; } .d2 .tip { bottom: calc(14.22% + 8px); }
.d3 { --i: 3; } .d3 .bar { height: 65.56%; } .d3 .tip { bottom: calc(65.56% + 8px); }
.d4 { --i: 4; } .d4 .bar { height: 9.11%; } .d4 .tip { bottom: calc(9.11% + 8px); }
.d5 { --i: 5; } .d5 .bar { height: 41.33%; } .d5 .tip { bottom: calc(41.33% + 8px); }
.d6 { --i: 6; } .d6 .bar { height: 16%; } .d6 .tip { bottom: calc(16% + 8px); }
.d7 { --i: 7; } .d7 .bar { height: 25.56%; } .d7 .tip { bottom: calc(25.56% + 8px); }
.d8 { --i: 8; } .d8 .bar { height: 76%; } .d8 .tip { bottom: calc(76% + 8px); }
.d9 { --i: 9; } .d9 .bar { height: 5.78%; } .d9 .tip { bottom: calc(5.78% + 8px); }
.d10 { --i: 10; } .d10 .bar { height: 34.22%; } .d10 .tip { bottom: calc(34.22% + 8px); }
.d11 { --i: 11; } .d11 .bar { height: 21.78%; } .d11 .tip { bottom: calc(21.78% + 8px); }
.d12 { --i: 12; } .d12 .bar { height: 48.44%; } .d12 .tip { bottom: calc(48.44% + 8px); }
.d13 { --i: 13; } .d13 .bar { height: 10%; } .d13 .tip { bottom: calc(10% + 8px); }
.d14 { --i: 14; } .d14 .bar { height: 29.33%; } .d14 .tip { bottom: calc(29.33% + 8px); }
.d15 { --i: 15; } .d15 .bar { height: 91.11%; } .d15 .tip { bottom: calc(91.11% + 8px); }
.d16 { --i: 16; } .d16 .bar { height: 19.78%; } .d16 .tip { bottom: calc(19.78% + 8px); }
.d17 { --i: 17; } .d17 .bar { height: 39.11%; } .d17 .tip { bottom: calc(39.11% + 8px); }
.d18 { --i: 18; } .d18 .bar { height: 60.04%; } .d18 .tip { bottom: calc(60.04% + 8px); }
.d19 { --i: 19; } .d19 .bar { height: 71.67%; } .d19 .tip { bottom: calc(71.67% + 8px); }
.d19 .val { bottom: calc(71.67% + 6px); }
.g4 { bottom: 88.89%; } .g2 { bottom: 44.44%; } .g0 { bottom: 0; } .pace { bottom: 32.26%; }
.x-today { left: 59.68%; }
.k1 { --i: 1; } .k1 .cat-bar { width: 82.44%; } .k1 .cat-usual { left: 98.89%; }
.k2 { --i: 2; } .k2 .cat-bar { width: 68.67%; } .k2 .cat-usual { left: 57.78%; }
.k3 { --i: 3; } .k3 .cat-bar { width: 65.33%; } .k3 .cat-usual { left: 62.22%; }
.k4 { --i: 4; } .k4 .cat-bar { width: 49.44%; } .k4 .cat-usual { left: 46.67%; }
.k5 { --i: 5; } .k5 .cat-bar { width: 26.56%; } .k5 .cat-usual { left: 34.44%; }
.k6 { --i: 6; } .k6 .cat-bar { width: 14.78%; } .k6 .cat-usual { left: 10.89%; }
.k7 { --i: 7; } .k7 .cat-bar { width: 46.52%; } .k7 .cat-usual { left: 44.44%; }

/* Privacy promise */
.promise { display: grid; gap: 40px; align-items: start; }
@media (min-width: 900px) { .promise { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 72px; } }
.promise .section-head { margin-bottom: 0; }
.facts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.facts li { display: grid; gap: 2px; padding-block: 16px; border-bottom: 1px solid var(--rule); }
.facts b { font-weight: 600; }
.facts span { color: var(--ink-muted); }
.links { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 24px; font-weight: 600; }

.why { margin-top: clamp(40px, 6vw, 72px); display: grid; gap: 10px; max-width: 46em; }
.why h3 { font-size: 21px; }
.why p { color: var(--ink-muted); }

/* Footer */
.site-foot { border-top: 1px solid var(--rule); padding-block: 40px 56px; font-size: 15px; color: var(--ink-muted); }
.foot-grid { display: grid; gap: 24px; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1fr auto; align-items: start; } }
.site-foot .brand { font-size: 17px; }
.site-foot .brand img { width: 28px; height: 28px; }
.foot-line { margin-top: 10px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 24px; list-style: none; margin: 0; padding: 0; }
.foot-links a { color: var(--ink); font-weight: 500; }
.fine { margin-top: 28px; font-size: 14px; max-width: 52em; }

/* Long-form pages: privacy and support */
.doc { max-width: 720px; padding-block: clamp(32px, 6vw, 72px) clamp(56px, 8vw, 96px); }
.doc h1 { font-size: clamp(36px, 3vw + 22px, 52px); letter-spacing: -0.025em; margin: 10px 0 14px; }
.doc .lede { margin-bottom: 8px; }
.doc .intro { margin-top: 24px; }
.doc .dated { color: var(--ink-muted); font-size: 15px; }
.doc h2 { font-size: 24px; margin: 48px 0 14px; padding-top: 28px; border-top: 1px solid var(--rule); scroll-margin-top: 16px; }
.doc h3 { font-size: 18px; margin: 26px 0 8px; letter-spacing: 0; }
.doc p, .doc li { max-width: 40em; }
.doc p + p { margin-top: 12px; }
.doc ul, .doc ol { margin: 12px 0 0; padding-left: 1.3em; }
.doc li + li { margin-top: 8px; }
.doc li::marker { color: var(--ink-muted); }
.doc ul + p, .doc ol + p { margin-top: 14px; }
.summary { list-style: none; padding: 0 !important; margin-top: 28px !important; border-top: 1px solid var(--rule); }
.summary li { padding-block: 12px; border-bottom: 1px solid var(--rule); margin: 0 !important; max-width: none; }
.toc { margin-top: 28px; }
.toc ol { columns: 2 200px; column-gap: 32px; padding-left: 1.3em; }
.toc li { break-inside: avoid; margin: 0 !important; padding-block: 3px; }
.quote { margin: 14px 0 0; padding: 14px 18px; background: var(--well); border-radius: 14px; }
.path { font-weight: 600; }
@media (min-width: 480px) { .path { white-space: nowrap; } }
.doc a { overflow-wrap: anywhere; }
.big-mail { font-size: clamp(22px, 2vw + 14px, 30px); font-weight: 700; letter-spacing: -0.01em; overflow-wrap: anywhere; }

/* Motion. Everything above is the finished, still state; this only animates into it. */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise .8s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: .06s; }
  .hero-copy > :nth-child(3) { animation-delay: .12s; }
  .hero-copy > :nth-child(4) { animation-delay: .18s; }
  .hero-copy > :nth-child(5) { animation-delay: .24s; }

  .alert { animation: alert-life 2.8s var(--ease) both; }
  .a1 { animation-delay: .4s; }
  .a2 { animation-delay: 3.2s; }
  .alert.a3 { animation: alert-in .7s var(--ease) 6s both; }
  .alert mark { animation: mark-in .5s ease-out both; }
  .a1 mark:nth-of-type(1) { animation-delay: 1.2s; }
  .a1 mark:nth-of-type(2) { animation-delay: 1.4s; }
  .a1 mark:nth-of-type(3) { animation-delay: 1.6s; }
  .a2 mark:nth-of-type(1) { animation-delay: 4s; }
  .a2 mark:nth-of-type(2) { animation-delay: 4.2s; }
  .a2 mark:nth-of-type(3) { animation-delay: 4.4s; }
  .a3 mark:nth-of-type(1) { animation-delay: 6.8s; }
  .a3 mark:nth-of-type(2) { animation-delay: 7s; }
  .a3 mark:nth-of-type(3) { animation-delay: 7.2s; }
  .grow { animation: grow .7s var(--ease) both; }
  .grow .row-in { animation: drop .7s var(--ease) both; animation-delay: inherit; }
  .r1 { animation-delay: 2.1s; }
  .r2 { animation-delay: 4.9s; }
  .r3 { animation-delay: 7.7s; }
  /* one nudge per row; no fill, so the three don't mask each other */
  .demo .arrow { animation: nudge .7s ease-in-out 1.75s, nudge .7s ease-in-out 4.55s, nudge .7s ease-in-out 7.35s; }
  .total .s1 { animation: total-life 2.8s ease 2.1s both; }
  .total .s2 { animation: total-life 2.8s ease 4.9s both; }
  .total .s3 { animation: fade .6s ease 7.7s both; }

  @supports (animation-timeline: view()) {
    .reveal, .steps li, .shots li, .facts li, .tiles li, .ticks li {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 70%;
    }
    .steps li:nth-child(2), .shots li:nth-child(2) { animation-range: entry 8% entry 78%; }
    .steps li:nth-child(3), .shots li:nth-child(3) { animation-range: entry 16% entry 86%; }
    .shots li:nth-child(4) { animation-range: entry 24% entry 94%; }
    .tiles li:nth-child(3n+2) { animation-range: entry 8% entry 78%; }
    .tiles li:nth-child(3n) { animation-range: entry 16% entry 86%; }
    /* the report's bars grow from their baselines as the chart scrolls in */
    .plot { view-timeline-name: --plot; }
    .cats { view-timeline-name: --cats; }
    .cols .bar { transform-origin: 50% 100%; animation: col-grow linear both; animation-timeline: --plot; animation-range: cover calc(4% + var(--i) * 0.9%) cover calc(30% + var(--i) * 0.9%); }
    .cat-bar { transform-origin: 0 50%; animation: bar-grow linear both; animation-timeline: --cats; animation-range: cover calc(6% + var(--i) * 2.5%) cover calc(30% + var(--i) * 2.5%); }
    .cat-usual, .today .val { animation: fade linear both; animation-timeline: --cats; animation-range: cover 30% cover 45%; }
    .today .val { animation-timeline: --plot; }
  }
}

@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes alert-life {
  0% { opacity: 0; transform: translateY(14px); visibility: visible; }
  18%, 82% { opacity: 1; transform: none; visibility: visible; }
  100% { opacity: 0; transform: translateY(-12px); visibility: hidden; }
}
@keyframes alert-in { from { opacity: 0; transform: translateY(14px); } }
@keyframes mark-in { from { background-color: transparent; } }
@keyframes grow { from { grid-template-rows: 0fr; } }
@keyframes drop { from { opacity: 0; transform: translateY(-16px); } }
@keyframes col-grow { from { transform: scaleY(0); } }
@keyframes bar-grow { from { transform: scaleX(0); } }
@keyframes nudge { 0%, 100% { transform: none; } 50% { transform: translateY(5px); } }
@keyframes total-life { 0% { opacity: 0; } 12%, 88% { opacity: 1; } 100% { opacity: 0; } }
