/* Edugero marketing site.
   Brand (approved packet v0.2): chalkboard green + marigold, Familjen Grotesk + Atkinson Hyperlegible, Ledger mark.
   Layout: mobile-up, one 1180px column; product "screens" carry the imagery; one orchestrated moment (the hero ledger).
   Standing rules: borderless (fills + shadows, no lines), neutral black/grey dark mode, nothing hidden without JS. */

:root {
  --paper: #FBFCFA;
  --surface: #FFFFFF;
  --soft: #EAF1EC;
  --soft-2: #DCE7E0;
  --ink: #12302A;
  --ink-2: #445C54;
  --board: #12302A;
  --board-2: #1B3F37;
  --board-fg: #F2F5F1;
  --board-muted: #B9CBC2;
  --marigold: #E8A317;
  --marigold-ink: #8A5A00;
  --on-marigold: #12302A;
  --focus: #12302A;
  --ok: #1F7A4D;
  --warn: #9A5B00;
  --bad: #B3261E;
  /* Product screens always render as the light app does. */
  --screen: #FFFFFF;
  --screen-ink: #12302A;
  --screen-muted: #5A6E66;
  --screen-soft: #EFF4F0;
  --shadow-1: 0 1px 2px rgba(18, 48, 42, .06), 0 4px 14px rgba(18, 48, 42, .06);
  --shadow-2: 0 2px 6px rgba(18, 48, 42, .08), 0 18px 48px rgba(18, 48, 42, .14);

  --f-display: "Familjen Grotesk", "Arial Narrow", Arial, sans-serif;
  --f-body: "Atkinson Hyperlegible", Verdana, "Segoe UI", sans-serif;

  /* Type scale: 1.25 ratio from 17px body. */
  --t-sm: .875rem; --t-body: 1.0625rem; --t-lg: 1.25rem; --t-h3: 1.5rem;
  --t-h2: clamp(1.9rem, 1.2rem + 2.6vw, 2.9rem);
  --t-h1: clamp(2.9rem, 1.4rem + 6.6vw, 6.4rem);
  /* Space scale (8pt). */
  --s1: .25rem; --s2: .5rem; --s3: .75rem; --s4: 1rem; --s5: 1.5rem; --s6: 2rem; --s7: 3rem; --s8: 4rem; --s9: 6rem;
  --section: clamp(4rem, 2.5rem + 6vw, 7.5rem);
  --r-sm: 10px; --r: 16px; --r-lg: 24px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0F0F11; --surface: #1A1A1E; --soft: #1C1C21; --soft-2: #26262C;
    --ink: #ECECEE; --ink-2: #A3A3AB;
    --board: #16161A; --board-2: #202026; --board-fg: #ECECEE; --board-muted: #A3A3AB;
    --marigold-ink: #F0B93A; --focus: #F0B93A;
    --ok: #5BC48C; --warn: #F0B93A; --bad: #FF8A80;
    --shadow-1: none; --shadow-2: 0 18px 48px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--t-body)/1.6 var(--f-body); }
img, svg { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 700; line-height: 1.08; margin: 0; text-wrap: balance; letter-spacing: -.02em; }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); line-height: 1.15; letter-spacing: -.01em; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--marigold); color: var(--on-marigold); padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
.selectable { user-select: all; font-weight: 700; }

.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-right)); }
@media (min-width: 720px) { .wrap { padding-inline: 32px; } }
.section { padding-block: var(--section); }
.section-soft { background: var(--soft); }
.label { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--marigold-ink); }
.lede { font-size: var(--t-lg); color: var(--ink-2); max-width: 58ch; }
.muted { color: var(--ink-2); }
.stack-s { display: grid; gap: var(--s3); }
.stack-m { display: grid; gap: var(--s5); }
.stack-l { display: grid; gap: var(--s7); }
.head-block { display: grid; gap: var(--s4); max-width: 760px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: 0 22px; border-radius: 12px; font: 700 1rem/1 var(--f-body); text-decoration: none; cursor: pointer; border: 0; transition: transform .15s ease, background-color .15s ease; }
.btn-primary { background: var(--marigold); color: var(--on-marigold); }
.btn-primary:hover { background: #F2B330; }
.btn-quiet { background: var(--soft-2); color: var(--ink); }
.btn-quiet:hover { background: var(--soft); }
.btn:active { transform: translateY(1px); }
.link-arrow { font-weight: 700; text-decoration: none; display: inline-flex; gap: .35em; align-items: center; min-height: 44px; }
.link-arrow::after { content: "→"; transition: transform .15s ease; }
.link-arrow:hover::after { transform: translateX(3px); }

/* Header */
.site-head { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); padding-top: env(safe-area-inset-top, 0px); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); }
.wordmark { font-family: var(--f-display); font-weight: 700; font-size: 1.6rem; letter-spacing: -.03em; line-height: 1; }
.nav-toggle { display: inline-grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 12px; background: var(--soft); color: var(--ink); cursor: pointer; }
.site-nav { display: none; }
.site-nav a { text-decoration: none; font-weight: 700; font-size: .98rem; }
.site-nav a:not(.btn) { color: var(--ink-2); padding: 10px 4px; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current="page"]:not(.btn) { color: var(--ink); }
.site-nav a[aria-current="page"]:not(.btn) { text-decoration: underline; text-decoration-color: var(--marigold); text-decoration-thickness: 3px; text-underline-offset: 8px; }
/* Mobile menu: open by default when JS is off (no-JS users still get links). */
html:not(.js) .nav-toggle { display: none; }
html:not(.js) .site-nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
html:not(.js) .head-row { flex-wrap: wrap; padding-block: 8px; }
.site-nav.open { display: grid; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); padding: 8px 16px 20px; gap: 2px; box-shadow: var(--shadow-2); }
.site-nav.open a:not(.btn) { padding: 12px 4px; font-size: 1.1rem; }
.site-nav.open .btn { margin-top: 10px; }
@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .site-nav, .site-nav.open { display: flex; position: static; align-items: center; gap: 22px; padding: 0; background: none; box-shadow: none; }
  .nav-signin { margin-left: 10px; }
}

/* Hero: the ledger. */
.hero { padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem) var(--section); overflow: clip; }
.hero-grid { display: grid; gap: var(--s7); align-items: center; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: 1.08fr 1fr; gap: var(--s6); } }
.hero-copy { display: grid; gap: var(--s5); min-width: 0; }
.ledger { font-size: var(--t-h1); line-height: .98; letter-spacing: -.035em; display: grid; gap: .06em; isolation: isolate; }
.ledger .line { display: block; overflow: clip; padding-bottom: .12em; margin-bottom: -.12em; }
.ledger .line-in { display: inline-block; }
.ledger .word { position: relative; display: inline-block; }
.ledger .word::after { content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .16em; border-radius: .08em; background: var(--marigold); transform-origin: left; transform: scaleX(1); z-index: -1; opacity: .9; }
.hero-sub { font-size: var(--t-lg); color: var(--ink-2); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s5); align-items: center; }
.address-chip { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; background: var(--soft); border-radius: 999px; padding: 8px 16px; font-size: var(--t-sm); color: var(--ink-2); justify-self: start; }
.address-chip b { color: var(--ink); font-weight: 700; }

/* Motion (progressive: only when JS is present and motion is welcome). */
@media (prefers-reduced-motion: no-preference) {
  .js .ledger .line-in { transform: translateY(105%); animation: rise .7s cubic-bezier(.2, .8, .2, 1) forwards; }
  .js .ledger .line:nth-child(2) .line-in { animation-delay: .12s; }
  .js .ledger .line:nth-child(3) .line-in { animation-delay: .24s; }
  .js .ledger.cycling .word::after { transform: scaleX(0); transition: transform .55s cubic-bezier(.2, .8, .2, 1); }
  .js .ledger.cycling .word.on::after { transform: scaleX(1); }
  .js .hero-screens { animation: settle .9s .2s cubic-bezier(.2, .8, .2, 1) both; }
}
@keyframes rise { to { transform: none; } }
@keyframes settle { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.js .ledger.cycling .word:not(.on)::after { opacity: .28; }

/* The fanned stack of three product screens. */
.hero-screens { position: relative; min-width: 0; display: grid; gap: var(--s4); padding-top: 10%; padding-right: 4%; }
.fan { position: relative; display: grid; }
.fan > * { grid-area: 1 / 1; transition: transform .6s cubic-bezier(.2, .8, .2, 1), opacity .4s ease; }
.fan > [data-pos="0"] { transform: none; z-index: 3; }
.fan > [data-pos="1"] { transform: translate(5%, -9%) scale(.93); z-index: 2; opacity: .92; }
.fan > [data-pos="2"] { transform: translate(10%, -18%) scale(.86); z-index: 1; opacity: .8; }
.fan-tabs { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.fan-tabs button { font: 700 .9rem var(--f-body); color: var(--ink-2); background: var(--soft); border: 0; border-radius: 999px; padding: 10px 16px; min-height: 44px; cursor: pointer; }
.fan-tabs button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
html:not(.js) .fan-tabs { display: none; }


/* Product screens (always rendered as the light app). */
.screen { background: var(--screen); color: var(--screen-ink); border-radius: var(--r); box-shadow: var(--shadow-2); overflow: hidden; font-size: .9rem; line-height: 1.45; min-width: 0; }
.screen-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; background: var(--screen-soft); font-size: .8rem; color: var(--screen-muted); }
.screen-top b { color: var(--screen-ink); font-family: var(--f-display); font-size: .95rem; }
.school-dot { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: #2F6F8F; color: #fff; font-size: .7rem; font-weight: 700; margin-right: 6px; vertical-align: -5px; }
.screen-body { padding: 16px; display: grid; gap: 12px; }
.screen-h { font-family: var(--f-display); font-weight: 700; font-size: 1.05rem; }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.kv div { background: var(--screen-soft); border-radius: 8px; padding: 8px 10px; }
.kv small { display: block; color: var(--screen-muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
.kv b { font-variant-numeric: tabular-nums; }
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tbl th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--screen-muted); font-weight: 700; padding: 6px 8px; }
.tbl td { padding: 7px 8px; }
.tbl tbody tr:nth-child(odd) td { background: var(--screen-soft); }
.tbl tbody tr td:first-child { border-radius: 6px 0 0 6px; }
.tbl tbody tr td:last-child { border-radius: 0 6px 6px 0; }
.tbl .num { text-align: right; }
.sym { display: inline-grid; place-items: center; min-width: 26px; height: 22px; border-radius: 6px; background: #12302A; color: #fff; font-weight: 700; font-size: .78rem; }
.sig { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: .8rem; color: var(--screen-muted); }
.sig .scribble { font-family: "Segoe Script", "Brush Script MT", cursive; font-size: 1.1rem; color: #1F3F8F; }
.pill { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: .75rem; font-weight: 700; }
.pill-ok { background: #DDF2E6; color: #145C38; }
.pill-due { background: #FCEBC8; color: #7A4A00; }
.pill-bad { background: #FBDAD7; color: #8C1D16; }
.amount-due { font-family: var(--f-display); font-size: 1.6rem; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Phone frame for the parent view. */
.phone { justify-self: center; width: min(100%, 300px); background: #111214; border-radius: 34px; padding: 10px; box-shadow: var(--shadow-2); }
.phone .screen { border-radius: 26px; box-shadow: none; }
.phone .screen-top { padding-top: 16px; }
.notice { background: #FFF6DF; border-radius: 10px; padding: 10px 12px; display: grid; gap: 2px; }
.notice small { color: #7A4A00; font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
.sample-note { font-size: .8rem; color: var(--ink-2); text-align: center; }

/* Three pillars */
.pillars { display: grid; gap: var(--s8); }
.pillar { display: grid; gap: var(--s6); align-items: center; }
@media (min-width: 900px) {
  .pillar { grid-template-columns: 1fr 1.1fr; gap: var(--s8); }
  .pillar:nth-child(even) .pillar-copy { order: 2; }
}
.pillar-copy { display: grid; gap: var(--s4); min-width: 0; }
.pillar-copy h3 { font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.4rem); }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.ticks li::before { content: ""; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--soft-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3 7.5l2.5 2.5L11 4.5' fill='none' stroke='%23E8A317' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }

/* Photo slots: hold a product screen until a consented photo is dropped in (see docs/PHOTOS.md). */
.photo-slot { margin: 0; min-width: 0; display: grid; gap: var(--s3); }
.photo-slot img { width: 100%; height: auto; border-radius: var(--r-lg); display: block; }

/* A principal's week (board) */
.board { background: var(--board); color: var(--board-fg); }
.board .label { color: var(--marigold); }
.board .lede { color: var(--board-muted); }
.week { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.week li { background: var(--board-2); border-radius: var(--r); padding: 20px; display: grid; gap: 10px; align-content: start; }
.week .day { font-family: var(--f-display); font-weight: 700; font-size: 1.35rem; color: var(--marigold); }
.week p { color: var(--board-fg); }
.week small { color: var(--board-muted); font-size: .85rem; }

/* Differentiators */
.diffs { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.diff { background: var(--surface); border-radius: var(--r-lg); padding: var(--s6); box-shadow: var(--shadow-1); display: grid; gap: var(--s3); align-content: start; }
.diff .big { font-family: var(--f-display); font-weight: 700; font-size: 1.35rem; line-height: 1.2; overflow-wrap: anywhere; }
.diff .big em { font-style: normal; color: var(--marigold-ink); }

/* Module grid */
.modules { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.module { background: var(--surface); border-radius: var(--r); padding: 20px; display: grid; gap: 6px; box-shadow: var(--shadow-1); align-content: start; }
.module h3 { font-size: 1.15rem; }
.module p { color: var(--ink-2); font-size: .95rem; }
.module .tag { justify-self: start; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--soft); color: var(--ink-2); padding: 3px 8px; border-radius: 6px; }

/* CTA band */
.cta-band { background: var(--marigold); color: var(--on-marigold); border-radius: var(--r-lg); padding: clamp(2rem, 1rem + 4vw, 4rem); display: grid; gap: var(--s5); }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1.4fr auto; align-items: center; } }
.cta-band h2 { color: var(--on-marigold); }
.cta-band p { max-width: 52ch; }
.cta-band .btn-primary { background: #12302A; color: #FBFCFA; }
.cta-band .btn-primary:hover { background: #1B3F37; }
.cta-band :focus-visible { outline-color: #12302A; }

/* Page intro */
.page-intro { padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem) var(--s7); }
.page-intro h1 { font-size: clamp(2.4rem, 1.4rem + 4.2vw, 4.4rem); letter-spacing: -.03em; }

/* Feature detail rows */
.feature { display: grid; gap: var(--s6); align-items: start; padding-block: var(--s7); }
@media (min-width: 900px) { .feature { grid-template-columns: .9fr 1.1fr; gap: var(--s8); } }
.feature + .feature { padding-top: var(--s4); }
.feature-copy { display: grid; gap: var(--s4); min-width: 0; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.jump a { display: inline-flex; min-height: 40px; align-items: center; padding: 0 14px; border-radius: 999px; background: var(--soft); text-decoration: none; font-weight: 700; font-size: .92rem; }
.jump a:hover { background: var(--soft-2); }

/* Steps (a real sequence) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: step; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.steps li { counter-increment: step; background: var(--surface); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow-1); display: grid; gap: 8px; align-content: start; }
.steps li::before { content: counter(step); font-family: var(--f-display); font-weight: 700; font-size: 1.1rem; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--marigold); color: var(--on-marigold); }
.steps h3 { font-size: 1.15rem; }
.steps p { color: var(--ink-2); font-size: .95rem; }

/* Plans */
.plans { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.plan { background: var(--surface); border-radius: var(--r-lg); padding: var(--s6); box-shadow: var(--shadow-1); display: grid; gap: var(--s4); align-content: start; }
.plan-core { background: var(--board); color: var(--board-fg); }
.plan-core .muted { color: var(--board-muted); }
.plan-core .ticks li::before { background-color: var(--board-2); }
.plan .price { font-family: var(--f-display); font-weight: 700; font-size: 1.8rem; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow-1); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 20px; font-weight: 700; font-family: var(--f-display); font-size: 1.15rem; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--marigold-ink); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 20px 20px; color: var(--ink-2); max-width: 68ch; display: grid; gap: 10px; }

/* Prose pages */
.prose { display: grid; gap: var(--s4); max-width: 68ch; }
.prose h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); margin-top: var(--s5); }
.prose ul { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; }
.split { display: grid; gap: var(--s7); }
@media (min-width: 960px) { .split { grid-template-columns: 1.1fr .9fr; gap: var(--s8); align-items: start; } }
.facts { display: grid; gap: 12px; }
.fact { background: var(--surface); border-radius: var(--r); padding: 18px 20px; box-shadow: var(--shadow-1); display: grid; gap: 4px; }
.fact b { font-family: var(--f-display); font-size: 1.1rem; }
.fact span { color: var(--ink-2); font-size: .95rem; }

/* Pilot form */
.form { background: var(--surface); border-radius: var(--r-lg); padding: clamp(1.25rem, 1rem + 2vw, 2.5rem); box-shadow: var(--shadow-2); display: grid; gap: var(--s5); }
.form-row { display: grid; gap: var(--s5); }
@media (min-width: 640px) { .form-row.two { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-weight: 700; }
.field .hint { font-size: .85rem; color: var(--ink-2); }
.field input, .field select, .field textarea { font: inherit; color: var(--ink); background: var(--soft); border: 0; border-radius: 12px; padding: 12px 14px; min-height: 48px; width: 100%; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.field [aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--bad); }
.field .err { color: var(--bad); font-size: .9rem; font-weight: 700; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { border-radius: 12px; padding: 14px 16px; font-weight: 700; }
.form-status.ok { background: #DDF2E6; color: #145C38; }
.form-status.bad { background: #FBDAD7; color: #8C1D16; }
.form-status.wait { background: var(--soft); color: var(--ink); }

/* Footer */
.site-foot { background: var(--soft); padding-block: var(--s8) var(--s5); margin-top: var(--section); }
.foot-grid { display: grid; gap: var(--s6); grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.foot-brand { display: grid; gap: var(--s3); align-content: start; }
.foot-tag { font-family: var(--f-display); font-weight: 700; font-size: 1.2rem; }
.foot-h { font-weight: 700; margin-bottom: 6px; }
.site-foot nav { display: grid; gap: 2px; align-content: start; }
.site-foot nav a { color: var(--ink-2); text-decoration: none; padding-block: 6px; }
.site-foot nav a:hover { color: var(--ink); text-decoration: underline; }
.foot-small { color: var(--ink-2); font-size: .92rem; overflow-wrap: anywhere; }
.foot-base { margin-top: var(--s7); color: var(--ink-2); font-size: .85rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Legal pages */
.legal { padding-bottom: var(--s6); }
.legal h2 { scroll-margin-top: 96px; }
.legal h3 { font-size: 1.15rem; margin-top: var(--s3); }
.legal .summary { background: var(--soft); border-radius: var(--r); padding: var(--s5); display: grid; gap: var(--s3); }
.legal .summary h2 { margin-top: 0; font-size: 1.3rem; }
.legal-tbl { width: 100%; border-collapse: collapse; font-size: .95rem; }
.legal-tbl th { text-align: left; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); padding: 8px 12px; }
.legal-tbl td { padding: 10px 12px; vertical-align: top; }
.legal-tbl tbody tr:nth-child(odd) td { background: var(--soft); }
.legal-tbl tbody tr td:first-child { border-radius: 8px 0 0 8px; font-weight: 700; }
.legal-tbl tbody tr td:last-child { border-radius: 0 8px 8px 0; }
.foot-legal { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot-legal a { color: var(--ink-2); }