/* Bay Permit Desk — site.css
   One motif runs the page: the inspection tag, a rectangle with one clipped corner.
   It is the hero record card, the status chips, the buttons, the figure tiles, the filed FAQ cards
   and the tear-off job ticket. Nothing else has a shape of its own. */

/* ---------- tokens ---------- */
:root {
--bg: #050505; --surface: #161616; --surface-2: #232323; --ink: #f5f5f5; --muted: #b5b5b5;
  --primary: #ea6a3e; --primary-deep: #c4471a; --primary-ink: #050505;
  --stamp: #ea6a3e; --stamp-ink: #050505; --issued: #ea6a3e; --applied: #b5b5b5; --scheduled: #5b9be8; --finaled: #f5f5f5;
  --field: #0e0e0e; --field-edge: #3a3a3a;
  --footer-bg: #000000; --footer-ink: #f5f5f5; --footer-soft: #b5b5b5; --block-1: #f5f5f5; --block-2: #b5b5b5; --block-3: #dddddd;
  color-scheme: dark;

  --font-display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-text: "Source Sans 3", "Source Sans Pro", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --step-small: 0.9375rem;                                  /* 15px */
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem); /* 17–19px */
  --step-lead: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);     /* 20–24px */
  --step-head: clamp(2.125rem, 1.4rem + 3vw, 3.75rem);     /* 34–60px */
  --step-display: clamp(2.75rem, 1.2rem + 6vw, 5.5rem);    /* 44–88px */
  --step-figure: clamp(3rem, 1.5rem + 5.4vw, 5.75rem);     /* 48–92px */

  --margin: clamp(1rem, 4vw, 2.5rem);
  --max: 1100px;
  --measure: 760px;
  --section: clamp(5rem, 10vw, 11rem);
  --notch: 14px;            /* the clipped corner of the tag */
  --notch-lg: 28px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
  --t-reveal: 700ms;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #050505; --surface: #161616; --surface-2: #232323; --ink: #f5f5f5; --muted: #b5b5b5;
    --primary: #ea6a3e; --primary-deep: #c4471a; --primary-ink: #050505;
    --stamp: #ea6a3e; --stamp-ink: #050505; --issued: #ea6a3e; --applied: #b5b5b5; --scheduled: #5b9be8; --finaled: #f5f5f5;
    --field: #0e0e0e; --field-edge: #3a3a3a;
    --footer-bg: #000000; --footer-ink: #f5f5f5; --footer-soft: #b5b5b5; --block-1: #f5f5f5; --block-2: #b5b5b5; --block-3: #dddddd;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #050505; --surface: #161616; --surface-2: #232323; --ink: #f5f5f5; --muted: #b5b5b5;
    --primary: #ea6a3e; --primary-deep: #c4471a; --primary-ink: #050505;
    --stamp: #ea6a3e; --stamp-ink: #050505; --issued: #ea6a3e; --applied: #b5b5b5; --scheduled: #5b9be8; --finaled: #f5f5f5;
    --field: #0e0e0e; --field-edge: #3a3a3a;
    --footer-bg: #000000; --footer-ink: #f5f5f5; --footer-soft: #b5b5b5; --block-1: #f5f5f5; --block-2: #b5b5b5; --block-3: #dddddd;
  color-scheme: dark;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-text); font-size: var(--step-body); line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul[class], ol[class] { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
:target { scroll-margin-top: 5.5rem; }
::selection { background: var(--primary); color: var(--primary-ink); }
:focus-visible { outline: 3px solid var(--stamp); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 0.98; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: var(--step-display); }
h2 { font-size: var(--step-head); }
h3 { font-size: var(--step-lead); line-height: 1.15; }
p { max-width: 62ch; text-wrap: pretty; }
p + p { margin-top: 0.9em; }
.lead { font-size: var(--step-lead); line-height: 1.35; max-width: 34ch; }
.small { font-size: var(--step-small); line-height: 1.45; }
.muted { color: var(--muted); }
.nums, .figure, .chip, td, .ticket input, .ticket textarea { font-variant-numeric: tabular-nums; }
strong { font-weight: 600; }

/* ---------- layout ---------- */
.wrap { width: min(100% - 2 * var(--margin), var(--max)); margin-inline: auto; }
.measure { max-width: var(--measure); }
.section { padding-block: calc(var(--section) / 2); }
.section > .wrap > h2 { margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.band { background: var(--surface); }
.band-deep { background: var(--primary-deep); color: #ffffff; }
:root[data-theme="dark"] .band-deep { background: #161616; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .band-deep { background: #161616; } }

/* ---------- the motif ---------- */
.tag { clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, 0 100%); }
.tag-lg { clip-path: polygon(0 0, calc(100% - var(--notch-lg)) 0, 100% var(--notch-lg), 100% 100%, 0 100%); }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 3rem; padding: 0.7rem 1.4rem; background: var(--primary); color: var(--primary-ink); font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; letter-spacing: 0.01em; text-decoration: none; clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%); transition: transform var(--t-press) var(--ease-out), background var(--t-hover); }
.btn:hover { background: var(--primary-deep); }
:root[data-theme="dark"] .btn:hover, .btn-stamp:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-stamp { background: var(--stamp); color: var(--stamp-ink); }
.btn-stamp:hover { background: var(--stamp); }
.btn-quiet { background: var(--surface-2); color: var(--ink); }
.btn-quiet:hover { background: var(--surface); }
.textlink { font-weight: 600; text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 2px; transition: color var(--t-hover); }
.textlink:hover { color: var(--primary); }

/* status chip */
.chip { display: inline-block; padding: 0.15em 0.6em 0.2em; font-family: var(--font-display); font-weight: 600; font-size: 1rem; line-height: 1.2; letter-spacing: 0.02em; color: #ffffff; background: var(--applied); clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 0 100%); white-space: nowrap; }
.chip-issued { background: var(--issued); color: var(--stamp-ink); }
.chip-scheduled { background: var(--scheduled); color: var(--primary-ink); }
.chip-finaled { background: var(--finaled); color: var(--bg); }
.chip-applied { background: var(--applied); color: var(--bg); }

/* public record stamp */
.stamp { display: inline-block; padding: 0.35rem 0.7rem; border: 3px solid var(--stamp); color: var(--stamp); font-family: var(--font-display); font-weight: 700; font-size: 1rem; line-height: 1.1; letter-spacing: 0.04em; transform: rotate(-2deg); max-width: 24ch; }

/* ---------- nav ---------- */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--bg); }
.nav .wrap { display: flex; align-items: center; gap: 1rem; min-height: 4rem; }
.wordmark { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; line-height: 1; text-decoration: none; letter-spacing: -0.01em; }
.wordmark svg { width: 1.6rem; height: 1.6rem; }
.nav-phone { margin-left: auto; font-weight: 600; font-size: 1.125rem; text-decoration: none; white-space: nowrap; }
.nav-phone:hover { color: var(--primary); }
.nav .btn { min-height: 2.6rem; padding: 0.4rem 1rem; font-size: 1.125rem; white-space: nowrap; }
.wordmark { white-space: nowrap; }
@media (max-width: 40em) { .nav .wrap { gap: 0.6rem; } .wordmark { font-size: 1.2rem; gap: 0.4rem; } .nav-phone { font-size: 0.95rem; } .nav .btn { font-size: 1rem; padding-inline: 0.7rem; min-height: 2.4rem; } }

/* ---------- hero ---------- */
.hero { padding-block: clamp(2rem, 5vw, 4.5rem) clamp(3rem, 7vw, 6rem); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem) clamp(2rem, 5vw, 4rem); align-items: start; }
@media (min-width: 56em) { .hero .wrap { grid-template-columns: minmax(0, 7fr) minmax(0, 6fr); } .hero h1 { grid-column: 1 / -1; } }
.hero h1 { text-wrap: initial; }
@media (max-width: 26em) { .hero h1 { font-size: 2.1rem; } }
.hero .lead { margin-top: 0; }
.hero .lead strong { color: var(--stamp); font-weight: 700; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 1.5rem; margin-top: 2rem; }
.hero-note { margin-top: 1.5rem; }

/* the record card: a real-looking interface fragment, shaped as the tag */
.record { --pad: clamp(1rem, 2.5vw, 1.6rem); position: relative; background: var(--surface); color: var(--ink); padding: var(--pad); width: 100%; max-width: 520px; justify-self: end; font-size: 1rem; }
.record::before { content: ""; position: absolute; top: calc(var(--notch-lg) + 6px); right: 14px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); }
.record-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding-right: 2.5rem; }
.record-no { font-family: var(--font-display); font-weight: 700; font-size: var(--step-lead); line-height: 1; }
.record-type { margin-top: 0.3rem; color: var(--muted); }
.record dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.5rem 1rem; margin-top: 1.25rem; }
.record dt { color: var(--muted); }
.record dd { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.record-foot { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: center; margin-top: 1.25rem; padding-top: 1rem; }
.record-foot .small { color: var(--muted); }
.record .timeline { display: flex; gap: 0.4rem; margin-top: 1.2rem; }
.record .timeline span { flex: 1; height: 8px; background: var(--surface-2); }
.record .timeline span.done { background: var(--primary); }
.record .timeline span.now { background: var(--stamp); }
@media (max-width: 24em) { .record dl { grid-template-columns: 1fr; gap: 0.2rem 0; } .record dt { margin-top: 0.5rem; } }

/* ---------- the math: stepped figure tiles ---------- */
.math .tiles { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: auto; gap: 8px; }
.tile { padding: clamp(1rem, 2.5vw, 1.75rem); display: flex; flex-direction: column; justify-content: space-between; min-height: 14rem; }
.tile .figure { font-family: var(--font-display); font-weight: 700; font-size: var(--step-figure); line-height: 0.9; letter-spacing: -0.02em; }
.tile .figure small { display: block; font-size: 0.4em; font-weight: 600; letter-spacing: 0; margin-top: 0.35em; line-height: 1.1; }
.tile .caption { margin-top: 2rem; max-width: 28ch; font-size: var(--step-body); }
.tile-a { grid-column: 1 / 7; background: var(--primary); color: var(--primary-ink); min-height: 24rem; }
.tile-b { grid-column: 7 / 10; background: var(--ink); color: var(--bg); margin-top: 3rem; }
.tile-c { grid-column: 10 / 13; background: var(--surface-2); color: var(--ink); margin-top: 6rem; }
.tile-d { grid-column: 7 / 13; background: var(--surface); color: var(--ink); }
.tile-d .figure .one { color: var(--stamp); }
.math .note { margin-top: 1.5rem; }
@media (max-width: 56em) {
  .math .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .tile-a { grid-column: 1 / -1; min-height: 16rem; }
  .tile-b { grid-column: 1 / 2; margin-top: 0; }
  .tile-c { grid-column: 2 / 3; margin-top: 2rem; }
  .tile-d { grid-column: 1 / -1; }
  .tile { min-height: 11rem; }
}

/* ---------- how it works: four stages, dark to light ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 1rem; }
.step { padding: clamp(1.25rem, 2.5vw, 2rem); min-height: 22rem; display: flex; flex-direction: column; color: #ffffff; }
.step:nth-child(1) { background: #072a57; }
.step:nth-child(2) { background: #0b3c7a; }
.step:nth-child(3) { background: #1a4f93; }
.step:nth-child(4) { background: #2b64ac; }
.step h3 { font-size: var(--step-lead); }
.step p { margin-top: 0.9rem; max-width: 30ch; }
.step .detail { margin-top: auto; padding-top: 1.5rem; font-size: var(--step-small); color: #ffffff; max-width: 30ch; }
.step .detail strong { color: #ffffff; }
.howto .intro { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 2rem 4rem; align-items: end; margin-bottom: 2rem; }
@media (max-width: 56em) { .howto .intro { grid-template-columns: 1fr; gap: 1rem; } .steps { grid-template-columns: 1fr; } .step { min-height: 0; } .step .detail { margin-top: 1.25rem; padding-top: 0; } }

/* ---------- setup by county ---------- */
.counties table { width: 100%; border-collapse: collapse; margin-top: 0.5rem; }
.counties th, .counties td { text-align: left; vertical-align: top; padding: 1rem 1rem 1rem 0; border-bottom: 2px solid var(--surface-2); }
.counties th { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--muted); }
.counties td:first-child { font-family: var(--font-display); font-weight: 700; font-size: var(--step-lead); line-height: 1.05; white-space: nowrap; }
.counties td .portal { display: block; font-weight: 600; font-size: 1rem; color: var(--muted); margin-top: 0.3rem; white-space: normal; letter-spacing: 0; }
.counties td .time { font-weight: 600; white-space: nowrap; }
.counties .after { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1.5rem 3rem; align-items: center; margin-top: 2.5rem; }
.counties .where { display: grid; gap: 0.75rem; justify-items: start; color: var(--primary); }
.counties .fl-map { width: min(100%, 300px); height: auto; }
.counties .where figcaption { color: var(--ink); font-weight: 600; }
.counties .after-text { display: grid; gap: 1.25rem; justify-items: start; }
@media (max-width: 48em) {
  .counties table, .counties thead, .counties tbody, .counties tr, .counties th, .counties td { display: block; }
  .counties thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .counties tr { padding: 1.1rem 0; border-bottom: 2px solid var(--surface-2); }
  .counties td { padding: 0.25rem 0; border: 0; }
  .counties td:first-child { white-space: normal; }
  .counties td[data-label]::before { content: attr(data-label) " "; color: var(--muted); font-weight: 400; }
  .counties .after { grid-template-columns: 1fr; }
  .counties .fl-map { width: min(100%, 220px); }
}

/* ---------- who it's for ---------- */
.fit .cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 4rem; }
.fit ul { margin-top: 1rem; display: grid; gap: 0.6rem; }
.fit li { position: relative; padding-left: 1.6rem; max-width: 52ch; font-size: var(--step-lead); line-height: 1.3; }
.fit ul { gap: 0.9rem; }
.fit li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 0.9em; height: 0.9em; background: var(--primary); clip-path: polygon(0 0, 70% 0, 100% 30%, 100% 100%, 0 100%); }
.fit .no li::before { background: var(--muted); }
@media (max-width: 40em) { .fit .cols { grid-template-columns: 1fr; } }

/* ---------- FAQ: filed cards ---------- */
.faq .wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 2rem 4rem; align-items: start; }
.faq .faq-intro { display: grid; gap: 1.25rem; justify-items: start; }
.faq .faq-intro h2 { margin-bottom: 0; }
@media (max-width: 56em) { .faq .wrap { grid-template-columns: 1fr; gap: 1.5rem; } }
.faq .cards { display: grid; gap: 6px; }
.faq details { background: var(--surface); }
.faq details:nth-of-type(odd) { background: var(--surface-2); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; gap: 1rem; padding: 1.1rem clamp(1rem, 2.5vw, 1.5rem); font-family: var(--font-display); font-weight: 600; font-size: var(--step-lead); line-height: 1.15; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-left: auto; font-weight: 700; font-size: 1.6rem; line-height: 1; color: var(--stamp); transition: transform var(--t-ui) var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--primary); }
.faq .answer { padding: 0 clamp(1rem, 2.5vw, 1.5rem) 1.4rem; max-width: 60ch; }
.faq .answer p { max-width: 58ch; }

/* ---------- about: inset panel ---------- */
.about .panel { background: var(--primary-deep); color: #ffffff; padding: clamp(1.5rem, 4vw, 3.5rem); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem 4rem; }
:root[data-theme="dark"] .about .panel { background: #161616; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .about .panel { background: #161616; } }
.about h2 { color: #ffffff; margin-bottom: 1.25rem; }
.about .panel p { color: rgba(255,255,255,0.92); }
.about .portrait { width: min(100%, 320px); aspect-ratio: 1 / 1; background: #2a62a8; color: #ffffff; display: flex; align-items: flex-end; padding: 1rem; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; margin-top: 1.5rem; }
.about .portrait img { width: 100%; height: 100%; object-fit: cover; }
.about .facts { display: grid; gap: 1.25rem; align-content: start; }
.about .facts h3 { color: #ffffff; }
@media (max-width: 48em) { .about .panel { grid-template-columns: 1fr; } }

/* ---------- contact: tear-off job ticket ---------- */
.contact .ticket-wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2rem 3rem; align-items: start; }
.contact .reach { display: grid; gap: 1.5rem; align-content: start; }
.contact .checklist { margin-top: 0.6rem; display: grid; gap: 0.4rem; }
.contact .checklist li { position: relative; padding-left: 1.6rem; max-width: 36ch; }
.contact .checklist li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 0.9em; height: 0.9em; background: var(--stamp); clip-path: polygon(0 0, 70% 0, 100% 30%, 100% 100%, 0 100%); }
.contact .bigphone { font-family: var(--font-display); font-weight: 700; font-size: var(--step-head); line-height: 1; text-decoration: none; user-select: all; letter-spacing: -0.01em; }
.contact .bigphone:hover { color: var(--primary); }
.ticket { background: var(--surface); padding: clamp(1.25rem, 3vw, 2.25rem); position: relative; }
.ticket::after { content: ""; position: absolute; left: 0; right: 0; top: 4.5rem; border-top: 4px dotted var(--bg); }
.ticket h3 { margin-bottom: 2.25rem; }
.ticket .fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem 1rem; }
.ticket .field { display: grid; gap: 0.3rem; }
.ticket .field.wide { grid-column: 1 / -1; }
.ticket label { font-weight: 600; font-size: var(--step-small); }
.ticket label .opt { font-weight: 400; color: var(--muted); }
.ticket input, .ticket select, .ticket textarea { width: 100%; min-height: 3rem; padding: 0.6rem 0.8rem; background: var(--field); border: 2px solid var(--field-edge); color: var(--ink); }
.ticket textarea { min-height: 6rem; resize: vertical; }
.ticket input[type="file"] { padding: 0.5rem; }
.ticket input:focus-visible, .ticket select:focus-visible, .ticket textarea:focus-visible { outline-offset: 0; border-color: var(--primary); }
.ticket .submit { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 0.5rem; }
.ticket .status { grid-column: 1 / -1; font-weight: 600; }
.ticket .status[data-state="error"] { color: var(--stamp); }
.ticket .success { display: grid; gap: 1rem; padding: 1rem 0; }
.ticket .success .chip { justify-self: start; }
@media (max-width: 56em) { .contact .ticket-wrap { grid-template-columns: 1fr; } }
@media (max-width: 36em) { .ticket .fields { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.footer { padding-block: clamp(3rem, 7vw, 6rem) 2rem; background: var(--footer-bg); color: var(--footer-ink); }
.footer .mark { display: flex; align-items: flex-end; gap: 4px; height: clamp(5rem, 18vw, 12rem); margin-bottom: 2.5rem; }
.footer .mark span { flex: 1; display: flex; align-items: flex-end; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 6vw, 4.5rem); line-height: 1; padding-bottom: 0.15em; color: var(--footer-bg); background: var(--block-1); }
.footer .mark span:nth-child(2n) { height: 78%; background: var(--block-2); }
.footer .mark span:nth-child(3n) { height: 88%; background: var(--block-3); }
.footer .mark span:nth-child(1), .footer .mark span:nth-child(4) { height: 100%; }
.footer .mark span.gap { flex: 0 0 6px; background: none; }
.footer .cols { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1.5rem 3rem; }
.footer .cols p { max-width: 44ch; }
.footer nav { display: grid; gap: 0.5rem; justify-items: start; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; text-underline-offset: 0.18em; }
.footer .legal { margin-top: 2.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; color: var(--footer-soft); }
@media (max-width: 40em) { .footer .cols { grid-template-columns: 1fr; } .footer .mark { gap: 3px; } }

/* ---------- terms page ---------- */
.terms .wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 2.5rem 4rem; align-items: start; }
.terms .terms-side { display: grid; gap: 1.25rem; justify-items: start; position: sticky; top: 5.5rem; }
.terms .facts { display: grid; gap: 0.6rem; }
.terms .facts li { position: relative; padding-left: 1.6rem; max-width: 30ch; }
.terms .facts li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 0.9em; height: 0.9em; background: var(--stamp); clip-path: polygon(0 0, 70% 0, 100% 30%, 100% 100%, 0 100%); }
.terms .terms-body { max-width: var(--measure); }
.terms .terms-body h2:first-child { margin-top: 0; }
@media (max-width: 56em) { .terms .wrap { grid-template-columns: 1fr; } .terms .terms-side { position: static; } }
.terms h1 { margin-bottom: 0; }
.terms h2 { font-size: var(--step-lead); margin-top: 2.5rem; margin-bottom: 0.75rem; }
.terms p { max-width: 62ch; }
.terms ul { padding-left: 1.2rem; display: grid; gap: 0.4rem; margin-top: 0.5rem; }

/* ---------- motion ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); }
.js .is-ready .reveal { transition: opacity var(--t-reveal) var(--ease-expo), transform var(--t-reveal) var(--ease-expo); transition-delay: var(--d, 0ms); }
.is-ready .reveal.in { opacity: 1; transform: none; }
.record .chip-issued { transform-origin: 60% 60%; }
.is-ready .hero .record .chip-issued { animation: stamp 520ms var(--ease-out) 650ms both; }
@keyframes stamp { 0% { opacity: 0; transform: scale(1.8) rotate(-6deg); } 60% { opacity: 1; transform: scale(0.94) rotate(-2deg); } 100% { opacity: 1; transform: scale(1) rotate(-2deg); } }
.record .chip-issued { transform: rotate(-2deg); }
.faq .answer { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .is-ready .reveal { opacity: 1; transform: none; transition: none; }
  .is-ready .hero .record .chip-issued { animation: none; }
  .btn, .faq summary::after { transition: none; }
}
@media print { .nav, .hero-actions, .ticket .submit { display: none; } }

.wordmark .badge { width: 2rem; height: 2rem; border-radius: 0.45rem; object-fit: cover; }
.wordmark .badge--glove { width: 3rem; height: 3rem; margin: -0.55rem 0; border-radius: 0; object-fit: contain; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.6)); }
