/* BuckBack on iocodo.com: one sheet for the landing and the three policy pages.
   Palette, faces and motifs come from the app (BuckBack docs/DECISIONS.md D4, D9):
   banknote green, paper, gold, the ticket with its stub, the rubber stamp.
   Every ink below was measured against the surface it sits on (WCAG AA):
   light  ink 15.8 paper / 12.5 wash, ink-2 7.0 / 5.5, green-text 6.35 / 5.0,
          red 5.85 / 4.6, amber 6.1 / 4.8, cream on the banknote >= 7.4, gold-text >= 5.2
   dark   ink 9.9 paper / 14.1 wash, ink-2 6.6 / 9.4, green-text 5.9 / 8.4,
          red 5.0 / 7.1, amber 7.2 / 10.3, cream on the banknote >= 8.3, gold-text >= 7.1 */

:root {
  --wash: #E9E2D2;
  --paper: #FFFDF7;
  --paper-2: #F6F0E2;
  --ink: #16241D;
  --ink-2: #4F5B53;
  --line: rgba(22, 36, 29, 0.13);
  --line-strong: rgba(22, 36, 29, 0.3);
  --green-text: #1E6B47;
  --red: #B23A26;
  --amber: #855700;
  --gold: #D4AA4A;
  --gold-line: rgba(212, 170, 74, 0.6);
  --chip: rgba(30, 107, 71, 0.07);
  /* the banknote: every stop keeps cream >= 7.4:1 and gold-text >= 5.2:1 */
  --note-1: #0F3A27;
  --note-2: #145035;
  --note-3: #1A6040;
  --cream: #FFFDF7;
  --cream-2: #E8E1CF;
  --gold-text: #F0D58C;
  --note-line: rgba(240, 213, 140, 0.07);
  --badge-bg: #0B0F0D;
  --badge-edge: rgba(255, 255, 255, 0.22);
  --bezel-1: #34463C;
  --bezel-2: #101913;
  --shadow-card: 0 1px 0 rgba(22, 36, 29, 0.05), 0 18px 34px -24px rgba(22, 36, 29, 0.5);
  --shadow-lift: 0 2px 0 rgba(22, 36, 29, 0.05), 0 30px 54px -30px rgba(22, 36, 29, 0.6);
  --shadow-phone: 0 34px 60px -30px rgba(6, 20, 13, 0.7), 0 10px 20px -12px rgba(6, 20, 13, 0.45);
  --shadow-note: 0 40px 80px -48px rgba(10, 38, 25, 0.85), 0 14px 30px -22px rgba(10, 38, 25, 0.6);
  --radius-lg: 1.75rem;
  --radius-md: 1.125rem;
  --radius-sm: 0.75rem;
  /* motion tokens: enter decelerates, exit accelerates and is quicker, fades ride their own curve */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.32, 0, 0.67, 0);
  --ease-fade: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --max: 71rem;
  color-scheme: light;
  interpolate-size: allow-keywords;
}

/* "Caveau di notte": the app's own dark palette */
@media (prefers-color-scheme: dark) {
  :root {
    --wash: #111D17;
    --paper: #263A2F;
    --paper-2: #213429;
    --ink: #EDE7D8;
    --ink-2: #B7C2B9;
    --line: rgba(237, 231, 216, 0.13);
    --line-strong: rgba(237, 231, 216, 0.3);
    --green-text: #5CC98E;
    --red: #F4896F;
    --amber: #F2C14E;
    --gold: #D9B45A;
    --gold-line: rgba(217, 180, 90, 0.55);
    --chip: rgba(92, 201, 142, 0.08);
    --note-1: #0A2519;
    --note-2: #0E3122;
    --note-3: #134A31;
    --cream: #EDE7D8;
    --cream-2: #D9D2C1;
    --note-line: rgba(240, 213, 140, 0.06);
    --badge-bg: #000000;
    --badge-edge: rgba(166, 166, 166, 0.9);
    --bezel-1: #3B4F44;
    --bezel-2: #070D0A;
    --shadow-card: 0 1px 0 rgba(0, 0, 0, 0.25), 0 18px 34px -22px rgba(0, 0, 0, 0.7);
    --shadow-lift: 0 2px 0 rgba(0, 0, 0, 0.25), 0 30px 54px -28px rgba(0, 0, 0, 0.8);
    --shadow-phone: 0 34px 60px -28px rgba(0, 0, 0, 0.85), 0 10px 20px -12px rgba(0, 0, 0, 0.6);
    --shadow-note: 0 40px 80px -44px rgba(0, 0, 0, 0.9), 0 14px 30px -20px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--wash);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* at very large text sizes on the narrowest phones a long word wraps instead of running off the edge */
  overflow-wrap: break-word;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--green-text); text-decoration-thickness: 0.08em; text-underline-offset: 0.2em; }
a:focus-visible, summary:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--green-text);
  outline-offset: 3px;
  border-radius: 0.4rem;
}

strong { font-weight: 700; color: var(--ink); }

h1, h2, h3 {
  font-family: var(--display);
  font-variation-settings: "SOFT" 60;
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p { text-wrap: pretty; }

/* A quoted UI label or verdict name gets its own channel: family plus a tinted chip. */
.ui {
  font-family: var(--mono);
  font-size: 0.9em;
  font-weight: 600;
  color: var(--ink);
  background: var(--chip);
  border: 1px solid var(--line);
  border-radius: 0.35em;
  padding: 0.05em 0.35em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  background: var(--ink);
  color: var(--wash);
  padding: 0.75rem 1rem;
  border-radius: 0.6rem;
  font-weight: 700;
  transition: top 0.2s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.wrap { width: min(100% - 2rem, var(--max)); margin-inline: auto; }

/* ---------- top bar ---------- */
.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  padding: 1rem 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  min-height: 44px;
  text-decoration: none;
  color: var(--ink);
}
.brand img {
  width: min(2.75rem, 14vw);
  height: auto;
  border-radius: 22%;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset, 0 6px 14px -6px rgba(10, 38, 25, 0.6);
}
.wordmark {
  font-family: var(--display);
  font-variation-settings: "SOFT" 80;
  font-weight: 700;
  font-size: min(1.5rem, 8vw);
  letter-spacing: -0.01em;
}
.wordmark b { font-weight: 700; color: var(--green-text); }
.topbar-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.25rem;
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  text-decoration: none;
}

/* ---------- the banknote panel (hero and closing) ---------- */
.note {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--radius-lg);
  color: var(--cream);
  background:
    radial-gradient(closest-side at 80% 60%, rgba(240, 213, 140, 0.14), rgba(240, 213, 140, 0)),
    linear-gradient(160deg, var(--note-1) 0%, var(--note-2) 52%, var(--note-3) 100%);
  border: 1px solid rgba(240, 213, 140, 0.5);
  box-shadow: var(--shadow-note);
}
/* engraving: fine lathe lines, and a rosette of rings behind the art */
.note::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    repeating-radial-gradient(circle at 80% 58%, rgba(240, 213, 140, 0.11) 0 1px, transparent 1px 11px),
    repeating-linear-gradient(172deg, var(--note-line) 0 1px, transparent 1px 7px);
  -webkit-mask-image: radial-gradient(75% 85% at 80% 58%, #000 20%, rgba(0, 0, 0, 0.35) 62%, transparent 100%);
  mask-image: radial-gradient(75% 85% at 80% 58%, #000 20%, rgba(0, 0, 0, 0.35) 62%, transparent 100%);
}
/* the second, inner rule of the double gold frame */
.note::after {
  content: "";
  position: absolute;
  inset: 0.625rem;
  z-index: -1;
  pointer-events: none;
  border: 1px solid rgba(240, 213, 140, 0.32);
  border-radius: calc(var(--radius-lg) - 0.625rem);
}
.note h1, .note h2, .note h3 { color: var(--cream); }
.note p { color: var(--cream-2); }
.note strong { color: var(--cream); }
.note a:not(.btn) { color: var(--gold-text); }

.hero { padding: 0.5rem 0 1rem; }
.hero .note { padding: clamp(1.5rem, 4.5vw, 3.75rem); }
.hero-copy { container-type: inline-size; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  flex: none;
  width: min(1.75rem, 8vw);
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), rgba(212, 170, 74, 0));
}
.note .eyebrow { color: var(--gold-text); }
.hero h1 {
  /* the longest word ("settlement.") must fit the column at any text size: never slice a word */
  font-size: min(clamp(2.35rem, 5.4vw, 4.1rem), 14.5cqi);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  max-width: 15ch;
}
.hero h1 em {
  font-style: italic;
  font-variation-settings: "SOFT" 100;
  color: var(--gold-text);
}
.lead { font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: 1.55; max-width: 36em; margin-bottom: 1.75rem; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; }
.fineprint { margin-top: 1.25rem; font-size: 0.9375rem; }

/* the App Store badge, in its "Coming soon" state: not a link until the store serves the app */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 3.5rem;
  padding: 0.55rem 1.2rem 0.6rem 1rem;
  border-radius: 0.9rem;
  background: var(--badge-bg);
  color: #FFFFFF;
  border: 1px solid var(--badge-edge);
  box-shadow: 0 12px 26px -14px rgba(0, 0, 0, 0.8);
}
.badge svg { width: min(1.6rem, 7vw); height: auto; flex: none; }
.badge-text { display: flex; flex-direction: column; line-height: 1.15; }
.badge-top { font-size: min(0.75rem, 4vw); font-weight: 600; letter-spacing: 0.02em; color: #FFFFFF; }
.badge-bot { font-size: min(1.1875rem, 6vw); font-weight: 700; letter-spacing: -0.01em; color: #FFFFFF; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.7rem 1.25rem;
  border-radius: 0.9rem;
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  overflow-wrap: anywhere;
  text-decoration: none;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), background-color 0.3s var(--ease-fade);
}
.btn-ghost-note {
  color: var(--cream);
  border: 1px solid rgba(240, 213, 140, 0.55);
  background: rgba(240, 213, 140, 0.06);
}
.btn-ghost {
  color: var(--ink);
  border: 1px solid var(--line-strong);
  background: var(--paper);
  box-shadow: var(--shadow-card);
}

/* ---------- phones: the approved screens on tilted cards ---------- */
.phone {
  position: absolute;
  width: 50%;
  padding: 2.2%;
  border-radius: 15% / 7%;
  background: linear-gradient(150deg, var(--bezel-1), var(--bezel-2) 70%);
  box-shadow: var(--shadow-phone), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.phone img { width: 100%; height: auto; border-radius: 13% / 6%; }
.phone picture { display: block; }

.hero-art {
  position: relative;
  width: min(100%, 27rem);
  aspect-ratio: 10 / 12.6;
  margin-inline: auto;
}
.hero-art .back { left: 1%; top: 1%; transform: rotate(-6deg); }
.hero-art .front { right: 1%; top: 10%; transform: rotate(4.5deg); }

/* ---------- sections ---------- */
section { padding: clamp(3rem, 7vw, 5.5rem) 0 0; }
section[id] { scroll-margin-top: 1rem; }
.section-head { max-width: 44rem; margin-bottom: 2rem; }
.section-head h2, .fine h2, .faq h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.sub { color: var(--ink-2); font-size: 1.125rem; max-width: 40em; }
.sub + .sub { margin-top: 0.75rem; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split.flip { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }

/* ---------- how it works: four tickets ---------- */
.steps { list-style: none; display: grid; gap: 1.1rem; counter-reset: step; }
.ticket {
  --stub: min(4.5rem, 22%);
  position: relative;
  display: grid;
  grid-template-columns: var(--stub) minmax(0, 1fr);
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}
/* the two notches where the stub tears off */
.ticket::before, .ticket::after {
  content: "";
  position: absolute;
  left: calc(var(--stub) - 0.6rem);
  width: 1.2rem;
  height: 0.6rem;
  background: var(--wash);
  border: 1px solid var(--line);
}
.ticket::before { top: -1px; border-top: 0; border-radius: 0 0 0.6rem 0.6rem; }
.ticket::after { bottom: -1px; border-bottom: 0; border-radius: 0.6rem 0.6rem 0 0; }
.stub {
  display: grid;
  place-items: center;
  border-right: 2px dashed var(--line-strong);
  padding: 1rem 0.25rem;
  container-type: inline-size;
}
/* the coin never outgrows its stub, whatever the reader's text size */
.coin {
  display: grid;
  place-items: center;
  width: min(2.6rem, 88cqi);
  aspect-ratio: 1;
  border-radius: 50%;
  font-family: var(--mono);
  font-size: min(1.25rem, 44cqi);
  font-weight: 600;
  color: #3A2A05;
  background: radial-gradient(circle at 38% 32%, #FCEBB6 0%, #E7C366 48%, #C6982F 100%);
  box-shadow: inset 0 0 0 2px rgba(255, 246, 214, 0.55), inset 0 -3px 4px rgba(90, 60, 0, 0.35), 0 3px 6px -2px rgba(70, 45, 0, 0.45);
}
.ticket-body { padding: 1.1rem 1.25rem 1.2rem; container-type: inline-size; }
.ticket-body h3 { font-size: min(1.3rem, 12cqi); font-weight: 650; margin-bottom: 0.3rem; }
.ticket-body p { color: var(--ink-2); font-size: 1rem; }

.duo {
  position: relative;
  width: min(100% - 2.5rem, 26rem);
  aspect-ratio: 10 / 12.2;
  margin-inline: auto;
}
.duo .back { left: 0; top: 0; width: 56%; padding: 2%; border-radius: 9% / 7.4%; transform: rotate(-4deg); }
.duo .back img { border-radius: 7.5% / 6.2%; }
.duo .front { right: 0; top: 12%; width: 48%; transform: rotate(5deg); }

/* ---------- the verdict: three stamps ---------- */
.verdicts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
  margin: 2.75rem 0 0;
}
.verdict-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.25rem 1.3rem;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}
.verdict-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--stamp), transparent);
  opacity: 0.8;
}
.stamp {
  display: inline-block;
  margin-bottom: 0.85rem;
  padding: 0.4rem 0.7rem;
  font-family: var(--mono);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stamp);
  border: 2px solid currentColor;
  border-radius: 0.45rem;
  box-shadow: inset 0 0 0 3px var(--paper), inset 0 0 0 4px currentColor;
  transform: rotate(-4deg);
}
.verdict-card > p:last-child { color: var(--ink-2); font-size: 1rem; }
.v-ok { --stamp: var(--green-text); }
.v-maybe { --stamp: var(--amber); }
.v-no { --stamp: var(--red); }
.v-maybe .stamp { transform: rotate(3deg); }
.v-no .stamp { transform: rotate(-2deg); }
.aside-note {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-sm);
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  color: var(--ink-2);
  max-width: 40rem;
}

.solo {
  position: relative;
  width: min(100%, 17.5rem);
  margin-inline: auto;
}
.solo .phone { position: relative; width: 100%; transform: rotate(3deg); }
.flip .solo .phone { transform: rotate(-3deg); }

/* ---------- reminders: two slips ---------- */
.slips { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1.75rem 0 1.5rem; }
.slip {
  position: relative;
  flex: 1 1 12rem;
  max-width: 16rem;
  padding: 1rem 1.25rem 1.1rem 1.6rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  box-shadow: var(--shadow-card);
}
.slip:first-child { transform: rotate(-2deg); }
.slip:last-child { transform: rotate(1.5deg); }
/* perforated left edge */
.slip::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 0.5rem;
  background: radial-gradient(circle at 0 50%, var(--wash) 0.22rem, transparent 0.24rem) 0 0 / 100% 0.85rem repeat-y;
}
.slip-eyebrow {
  display: block;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.2rem;
}
.slip-when { font-family: var(--display); font-variation-settings: "SOFT" 70; font-size: 1.5rem; font-weight: 700; color: var(--ink); line-height: 1.2; }
.body-copy p { color: var(--ink-2); max-width: 36em; }
.body-copy p + p { margin-top: 0.85rem; }

/* ---------- the fine print, up front: a certificate ---------- */
.fine {
  position: relative;
  padding: clamp(1.6rem, 4.5vw, 3.25rem);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(212, 170, 74, 0.08), transparent 60%),
    var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lift);
}
.fine::before, .fine::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border: 1px solid var(--gold-line);
}
.fine::before { inset: 0.6rem; border-radius: calc(var(--radius-lg) - 0.6rem); }
.fine::after { inset: 0.9rem; border-radius: calc(var(--radius-lg) - 0.9rem); opacity: 0.55; }
.fine > * { position: relative; }
.fine .sub { margin-bottom: 1.75rem; }
.fine-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(19rem, 100%), 1fr));
  gap: 1.25rem 2.25rem;
}
.fine-list li { position: relative; padding-left: 2.35rem; color: var(--ink-2); }
/* a small enamel seal with a check, drawn as a UI marker */
.fine-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #2F8A5E, #1E6B47 60%, #134A31);
  box-shadow: 0 0 0 2px var(--gold), 0 3px 6px -2px rgba(10, 38, 25, 0.6);
}
.fine-list li::after {
  content: "";
  position: absolute;
  left: 0.5rem;
  top: 0.45rem;
  width: 0.45rem;
  height: 0.75rem;
  border: solid #FFFDF7;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ---------- questions ---------- */
.faq-list { max-width: 50rem; }
.faq details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  margin-bottom: 0.75rem;
}
.faq summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  min-height: 44px;
  padding: 1.05rem 3.5rem 1.05rem 1.25rem;
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 1.2rem;
  top: 50%;
  width: 1.5rem;
  height: 1.5rem;
  margin-top: -0.75rem;
  border-radius: 50%;
  background:
    linear-gradient(var(--green-text), var(--green-text)) center / 0.7rem 2px no-repeat,
    linear-gradient(var(--green-text), var(--green-text)) center / 2px 0.7rem no-repeat,
    var(--chip);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform 0.22s var(--ease-in);
}
.faq details[open] summary::after { transform: rotate(135deg); transition: transform 0.42s var(--ease-out); }
.faq details::details-content {
  block-size: 0;
  overflow-y: clip;
  transition: block-size 0.22s var(--ease-in), content-visibility 0.22s allow-discrete;
}
.faq details[open]::details-content {
  block-size: auto;
  transition: block-size 0.42s var(--ease-out), content-visibility 0.42s allow-discrete;
}
.faq details p { margin: 0; padding: 0 1.25rem; color: var(--ink-2); max-width: 44em; }
.faq details p + p { margin-top: 0.75rem; }
.faq details p:last-child { padding-bottom: 1.15rem; }

/* ---------- closing ---------- */
.closing { padding-bottom: 1rem; }
.closing .note { padding: clamp(1.75rem, 5vw, 3.5rem); }
.closing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem 3rem;
  align-items: center;
}
.closing-art img {
  width: clamp(6rem, 12vw, 9rem);
  border-radius: 22%;
  transform: rotate(-8deg);
  box-shadow: 0 0 0 1px rgba(240, 213, 140, 0.45), 0 24px 40px -20px rgba(0, 0, 0, 0.75);
}
.closing h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); font-weight: 700; margin-bottom: 0.75rem; }
.closing p { max-width: 34em; margin-bottom: 1.5rem; }

/* ---------- footer ---------- */
.site-footer { padding: 2.5rem 0 3rem; color: var(--ink-2); font-size: 0.9375rem; }
.site-footer .rule {
  height: 3px;
  border-radius: 3px;
  margin-bottom: 1.5rem;
  background: linear-gradient(90deg, var(--green-text) 0 40%, var(--gold) 40% 60%, var(--green-text) 60% 100%);
  opacity: 0.7;
}
.site-footer p { max-width: 50em; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 1.25rem; margin: 0.75rem 0; }
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-weight: 600;
}

/* ---------- policy pages ---------- */
.doc { width: min(100% - 2rem, 50rem); margin-inline: auto; padding: 2.5rem 0 4rem; }
.doc .app-name {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.3rem;
  padding: 0.35rem 0;
  text-decoration: none;
}
.doc h1 { font-size: clamp(2.1rem, 5vw, 2.9rem); font-weight: 700; margin-bottom: 0.4rem; }
.last-updated { font-family: var(--mono); font-size: 0.875rem; color: var(--ink-2); margin-bottom: 2rem; overflow-wrap: anywhere; }
.doc h2 { font-size: 1.45rem; font-weight: 650; margin: 2.5rem 0 0.75rem; }
.doc h3 { font-size: 1.15rem; font-weight: 650; margin: 1.5rem 0 0.5rem; }
.doc p { margin-bottom: 1rem; color: var(--ink-2); }
.doc ul { margin: 0 0 1rem 1.4rem; color: var(--ink-2); }
.doc li { margin-bottom: 0.55rem; padding-left: 0.2rem; }
.doc li::marker { color: var(--green-text); }
.in-brief, .notice-box, .contact-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.35rem;
  margin: 1.5rem 0;
  box-shadow: var(--shadow-card);
}
.in-brief { border-left: 4px solid var(--gold); }
.notice-box { border-left: 4px solid var(--green-text); }
.in-brief p, .notice-box p { margin-bottom: 0; }
.in-brief p + p, .notice-box p + p { margin-top: 0.75rem; }
.contact-card { border-left: 4px solid var(--green-text); padding: 1.35rem 1.5rem; }
.contact-card h2 { margin-top: 0; }
.cta-row-doc { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; }
.btn-primary {
  color: #FFFDF7;
  background: linear-gradient(180deg, #1E6B47, #17573A);
  border: 1px solid #0F3A27;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 10px 22px -14px rgba(10, 38, 25, 0.9);
}
.doc .faq details p { color: var(--ink-2); }
.doc .faq ul { margin: 0 1.25rem 1.15rem 2.6rem; }

@media (prefers-color-scheme: dark) {
  .btn-primary { border-color: rgba(240, 213, 140, 0.45); }
}

/* ---------- pointer-only depth ---------- */
@media (hover: hover) and (pointer: fine) {
  .phone:hover { box-shadow: 0 44px 80px -34px rgba(6, 20, 13, 0.75), 0 14px 26px -12px rgba(6, 20, 13, 0.5); }
  .hero-art .back:hover { transform: rotate(-2deg) translateY(-6px); }
  .hero-art .front:hover { transform: rotate(1.5deg) translateY(-6px); }
  .duo .phone:hover, .solo .phone:hover { transform: rotate(0deg) translateY(-6px); }
  .btn:hover { transform: translateY(-2px); }
  .btn-ghost:hover { box-shadow: var(--shadow-lift); }
  .btn-ghost-note:hover { background: rgba(240, 213, 140, 0.14); }
  .faq summary:hover { color: var(--green-text); }
}

/* ---------- widths ---------- */
@media (max-width: 960px) {
  .hero-grid, .split, .split.flip { grid-template-columns: minmax(0, 1fr); }
  .split.flip .art { order: 1; }
  .hero h1 { max-width: 18ch; }
  .verdicts { grid-template-columns: minmax(0, 1fr); }
  .art { margin-top: 0.5rem; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .topbar-link { font-size: 0.75rem; }
  .wordmark { font-size: min(1.35rem, 8vw); }
  .brand img { width: min(2.5rem, 13vw); }
  .ticket { --stub: min(3.6rem, 22%); }
  .coin { width: min(2.3rem, 88cqi); font-size: min(1.2rem, 44cqi); }
  .ticket-body { padding: 1rem 1rem 1.05rem; }
  .hero .note, .closing .note { padding: max(1rem, min(1.5rem, 6.2vw)); }
  .hero-art { width: min(100% - 1.5rem, 27rem); }
  .hero-art .back { transform: rotate(-4deg); }
  .hero-art .front { transform: rotate(3deg); }
  .closing-grid { grid-template-columns: minmax(0, 1fr); }
  .closing-art { order: -1; }
  .slip { max-width: 17rem; }
}

/* ---------- reduced motion: the same final state, at once ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; }
  .faq details::details-content { transition: none; }
}
