/* Trust pages (contact, help, about, privacy, terms, 404). The footer styles live in
   brand/components.css. Link order: tokens.css, components.css, then this file. Every colour, font
   and radius comes from brand tokens; the short aliases below exist only so
   this file stays readable. Dark mode is handled by tokens.css. */

:root {
  --paper: var(--color-bg);
  --card: var(--color-surface);
  --ink: var(--color-ink);
  --muted: var(--color-ink-muted);
  --line: var(--color-line);
  --edge: var(--color-line-strong);
  --link: var(--color-link);
  --accent: var(--color-accent);
  --accent-ink: var(--color-accent-ink);
  --accent-soft: var(--color-accent-soft);
  --radius: var(--radius-md);
  --font: var(--font-body);
  --measure: var(--container-narrow);
}

body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
h1 { font-size: var(--text-3xl); margin-bottom: var(--space-4); }
h2 { font-size: var(--text-xl); margin: var(--space-7) 0 var(--space-3); }
h3 { font-size: var(--text-lg); margin: var(--space-5) 0 var(--space-2); }
ul, ol { margin: 0 0 var(--space-4); }


/* --- placeholder header (Home owns the real navigation) --- */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 60px; flex-wrap: wrap; }
.wordmark {
  display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; color: var(--ink);
  font: 700 1.35rem/1 var(--font-display); letter-spacing: -.02em;
}
.wordmark img { width: 30px; height: 30px; }
.site-header nav { display: flex; gap: .25rem 1.1rem; flex-wrap: wrap; }
.site-header nav a { color: var(--ink); text-decoration: none; font-weight: 600; padding: .4rem 0; }
.site-header nav a:hover, .site-header nav a[aria-current] { text-decoration: underline; text-decoration-color: var(--link); text-decoration-thickness: .15em; }

/* --- page hero --- */
.page-hero { padding: clamp(2rem, 7vw, 4.5rem) 0 1.5rem; }
.page-hero .cast { display: flex; gap: 6px; margin-bottom: 1.1rem; }
.page-hero .cast img { width: 34px; height: 34px; }

/* --- cards: components.css .card (hairline, radius lg); the one hero card on a page is .card--pop --- */
.card { padding: clamp(1.1rem, 4vw, 1.75rem); }


/* --- draft markers (remove before launch) --- */
.draft-banner {
  background: var(--accent-soft); color: var(--color-warning); font-size: var(--text-sm); font-weight: 600;
  border-bottom: 2px dashed currentColor;
}
.draft-banner .wrap { padding-block: .6rem; }
.confirm {
  background: var(--accent-soft); color: var(--color-warning); border: 1px dashed currentColor; border-radius: 4px;
  padding: .05em .4em; font-size: .875rem; font-weight: 700; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.confirm::before { content: "\2691\00a0"; }

/* ===================== CONTACT ===================== */
.contact-grid { display: grid; gap: var(--space-5); }
.mail-card { position: relative; overflow: hidden; display: flex; flex-direction: column; border: var(--border-width) solid var(--edge); box-shadow: var(--shadow-pop); } /* the one hero card on /contact/ */
.mail-card .addr {
  display: block; font: 700 clamp(1.25rem, 5.6vw, 2rem)/1.2 var(--font-display);
  color: var(--ink); text-decoration: none; word-break: break-all; margin: .2rem 0 1rem;
}
.mail-card .addr:hover { color: var(--link); }
.mail-card .reply {
  display: flex; gap: var(--space-3); align-items: flex-start; margin: auto 0 0; padding-top: var(--space-4);
  border-top: 1px dashed var(--line); color: var(--muted); font-size: var(--text-sm);
}
.mail-card .btn-row { margin-bottom: var(--space-5); }
.mail-card .reply { margin-top: 0; }
.mail-card .reply img { width: 40px; height: 40px; flex: none; }
.mail-card .reply strong { color: var(--ink); }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.checklist li { display: grid; grid-template-columns: 44px 1fr; gap: .8rem; align-items: start; }
.checklist img { width: 44px; height: 44px; }
.checklist strong { display: block; font-family: var(--font-display); font-size: var(--text-lg); }
.checklist span { color: var(--muted); font-size: var(--text-sm); }

.quick-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.quick-links a {
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
  min-height: 52px; padding: var(--space-3) var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-md);
  background: var(--card); color: var(--ink); text-decoration: none; font-weight: 600;
}
.quick-links a::after { content: "\2192"; color: var(--link); font-weight: 700; }
.quick-links a:hover { border-color: var(--edge); box-shadow: var(--shadow-md); }

@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1.15fr 1fr; align-items: start; } /* natural heights: stretching the hero card left a 230 px hole in it */
  .contact-grid .span { grid-column: 1 / -1; }
}

/* ===================== FAQ ===================== */
.faq-layout { display: grid; gap: 2rem; }
.faq-toc { display: flex; gap: .5rem; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; }
.faq-toc a {
  display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .85rem .45rem .45rem;
  border-radius: 999px; border: 1px solid var(--line); background: var(--card);
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: var(--text-sm); min-height: 44px;
}
.faq-toc a img { width: 26px; height: 26px; }
.faq-toc a:hover { border-color: var(--edge); }
.faq-group { scroll-margin-top: 1rem; }
.faq-group > h2 { display: flex; align-items: center; gap: .6rem; margin-top: 1.8em; }
.faq-group > h2 img { width: 36px; height: 36px; }
/* the questions: components.css (details.faq-item, the site's one accordion) */
.faq-group > h2 + details.faq-item, .faq-group > .orders-soon + details.faq-item { border-top: 1px solid var(--line); }
@media (min-width: 900px) {
  .faq-layout { grid-template-columns: 15rem 1fr; align-items: start; }
  .faq-toc { position: sticky; top: calc(var(--sticky-top, 84px) + var(--space-2)); flex-direction: column; }
  .faq-toc a { width: 100%; border-radius: var(--radius-md); }
}

/* ===================== ABOUT ===================== */
.about-grid { display: grid; gap: 2rem; }
.promises { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.promises li {
  display: grid; grid-template-columns: 2rem 1fr; gap: var(--space-3); align-items: start;
  padding: var(--space-3) var(--space-4); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-md);
}
.promises li::before {
  content: "\2713"; width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink); border: 2px solid var(--edge); font-weight: 700;
}
.cast-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; max-width: 22rem; }
.cast-grid figure { margin: 0; text-align: center; font-size: var(--text-sm); font-weight: 700; color: var(--muted); }
.cast-grid img { width: 100%; max-width: 76px; display: block; margin: 0 auto .3rem; }
.signoff { font-family: var(--font-display); font-size: var(--text-lg); }
.prose .btn-row { margin: var(--space-5) 0 var(--space-2); }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1.5fr 1fr; } }

/* ===================== LEGAL ===================== */
.legal-layout { display: grid; gap: 2rem; }
.legal-meta { color: var(--muted); font-size: var(--text-sm); }
.legal-toc { font-size: var(--text-sm); }
.legal-toc ol { padding-left: 1.2rem; margin: 0; }
.legal-toc li { margin: 0; break-inside: avoid; }
.legal-toc a { display: inline-block; padding: .2rem 0; } /* 24 px rows: a list of links, not running text */
.short-version { max-width: 52rem; margin-bottom: var(--space-7); }
.short-version > p { max-width: var(--measure); }
@media (max-width: 959px) {
  .legal-toc { padding-bottom: var(--space-4); border-bottom: 1px solid var(--line); }
}
@media (min-width: 600px) and (max-width: 959px) { .legal-toc ol { columns: 2; column-gap: var(--space-5); } } /* one column on phones: two made every entry wrap */
.legal-toc h2 { font: 700 var(--text-xs)/1 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 .75rem; } /* = the footer's column labels */
.legal section { scroll-margin-top: calc(var(--sticky-top, 84px) + var(--space-2)); }
.legal :is(p, ul, ol) { max-width: 36em; } /* ~75 characters a line in the policy text */
.legal h2 { padding-top: .2rem; }
.legal li { margin-bottom: .45em; }

.scoresheet { width: 100%; border-collapse: collapse; font-size: var(--text-base); }
.scoresheet caption { text-align: left; font: 700 1.2rem/1.2 var(--font-display); padding-bottom: .75rem; }
.scoresheet th, .scoresheet td { text-align: left; vertical-align: top; padding: .7rem .5rem; border-top: 1px solid var(--line); }
.scoresheet th { font-weight: 600; width: 62%; }
.scoresheet td { font-weight: 700; font-family: var(--font-display); }
.yes { color: var(--color-success); }
.no { color: var(--color-success); } /* every answer in the short version is the good one */
.scoresheet td small { display: block; font: 400 var(--text-sm)/1.4 var(--font); color: var(--muted); margin-top: .15rem; }
/* Phones: the answer under its question, full width (two columns left ~12 characters a line) */
@media (max-width: 599px) {
  .scoresheet tr { display: grid; border-top: 1px solid var(--line); padding: var(--space-3) 0; gap: var(--space-1); }
  .scoresheet th, .scoresheet td { display: block; width: auto; border-top: 0; padding: 0 .5rem; }
  .scoresheet thead { display: none; }
}

.callout {
  border: 2px solid var(--edge); border-left-width: 6px; background: var(--accent-soft);
  padding: .9rem 1.1rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 0 0 1.2em;
}
.callout p:last-child { margin: 0; }
@media (min-width: 960px) {
  .legal-layout { grid-template-columns: 15rem 1fr; align-items: start; }
  .legal-toc { position: sticky; top: calc(var(--sticky-top, 84px) + var(--space-2)); }
}

/* ===================== 404 ===================== */
.lost { text-align: center; padding: clamp(2.5rem, 10vw, 6rem) 0 1rem; }
.lost .scene { position: relative; width: 168px; height: 200px; margin: 0 auto 1.5rem; }
.lost .scene .ufo { width: 112px; height: 112px; position: absolute; left: 28px; top: 0; animation: hover 3.6s ease-in-out infinite; }
.lost .scene .beam {
  position: absolute; left: 44px; top: 92px; width: 80px; height: 96px;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--char-ufo) 45%, transparent), transparent);
  clip-path: polygon(30% 0, 70% 0, 100% 100%, 0 100%);
}
.lost .scene .page {
  position: absolute; left: 66px; top: 128px; width: 36px; height: 46px; border-radius: 4px;
  background: var(--card); border: 2px solid var(--ink); rotate: -12deg;
  animation: lift 3.6s ease-in-out infinite;
}
.lost .scene .page::before {
  content: "404"; position: absolute; inset: 0; display: grid; place-items: center;
  font: 700 .7rem/1 var(--font-display); color: var(--ink);
}
@keyframes hover { 50% { translate: 0 -6px; } }
@keyframes lift { 50% { translate: 0 -10px; rotate: -4deg; } }
@media (prefers-reduced-motion: reduce) { .lost .scene * { animation: none !important; } }
.lost h1 { margin-bottom: .3em; }
.lost .lede { margin-inline: auto; }
.lost-links { display: grid; gap: .6rem; max-width: 26rem; margin: 2rem auto 0; padding: 0; list-style: none; text-align: left; }


/* --- privacy: storage table and the "Don't count my visits" switch --- */
.storage-table { margin: var(--space-5) 0; }
.storage-table thead th {
  font: 700 var(--text-xs)/1 var(--font); letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); border-top: 0; padding-top: 0;
}
.storage-table tbody th small { display: block; font-weight: 400; font-size: var(--text-sm); color: var(--muted); margin-top: .15rem; }
.storage-table tbody td { font-family: var(--font); font-weight: 700; }
.storage-table code { font: .85em var(--font-mono); background: var(--color-surface-2); padding: .05em .3em; border-radius: 4px; white-space: nowrap; }
.optout { margin: var(--space-5) 0; scroll-margin-top: 1rem; }
.switch { display: inline-flex; align-items: center; gap: var(--space-3); cursor: pointer; min-height: 48px; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-track {
  position: relative; flex: none; width: 56px; height: 32px; border-radius: 999px;
  background: var(--color-surface-2); border: var(--border-width) solid var(--muted);
  transition: background-color var(--dur-fast), border-color var(--dur-fast);
}
.switch-track::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--muted);
  transition: transform var(--dur) var(--ease-out), background-color var(--dur-fast);
}
.switch input:checked + .switch-track { background: var(--accent); border-color: var(--edge); }
.switch input:checked + .switch-track::after { transform: translateX(24px); background: var(--accent-ink); }
.switch input:focus-visible + .switch-track { outline: 3px solid var(--color-focus); outline-offset: 3px; }
.switch-label { font: 600 var(--text-lg)/1.2 var(--font-display); }
.optout-state { margin: var(--space-3) 0 var(--space-2); font-weight: 600; }
.optout-note { margin: 0; color: var(--muted); font-size: var(--text-sm); }

/* --- trust strip (Help hero, About): the signals we really have --- */
.trust-strip { margin-top: var(--space-6); }
.trust-strip h2 { margin-top: var(--space-7); }
.trust-strip ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-3); grid-template-columns: 1fr; }
@media (min-width: 900px) { .page-hero .trust-strip ul { grid-template-columns: repeat(3, 1fr); } } /* Help's, under the hero; About's sits in a narrow column */
.trust-strip li {
  display: grid; grid-template-columns: 40px 1fr; gap: var(--space-3); align-items: start;
  padding: var(--space-4); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-md);
}
.trust-strip img { width: 40px; height: 40px; }
.trust-strip strong { display: block; font-family: var(--font-display); font-size: var(--text-base); line-height: 1.25; }
.trust-strip span { display: block; color: var(--muted); font-size: var(--text-sm); margin-top: .15rem; }
