/* K-Trip Passport landing — tokens from lib/core/theme/app_colors.dart */
:root {
  --navy: #12203A;
  --navy-2: #1A2B4C;
  --navy-soft: #243A5C;
  --label-blue: #2C4A7A;
  --foil: #C9CEDB;
  --foil-hi: #EFF2F8;
  --foil-shadow: #8A93A6;
  --paper: #FBF9F5;
  --paper-warm: #F4EFE4;
  --paper-edge: #E6DCC8;
  --surface: #FFFDF8;
  --field: #F7F4EC;
  --ink: #243447;
  --muted: #5D6B78;
  --ink-label: #7A8794;
  --stamp-red: #C0392B;
  --stamp-red-deep: #9B2E23;
  --stamp-red-soft: #F8E8E5;
  --stamp-blue: #1A56DB;
  --stamp-green: #0E7051;
  --guilloche-blue: #CBDCEB;
  --guilloche-rose: #F3D6D2;
  --guilloche-peach: #F7E2CE;
  --guilloche-sage: #DDE4CE;
  --guilloche-lilac: #DED7EA;
  --on-accent: #FFFFFF;
  --line: #E6DCC8;
  --ghost: #D8D0C0;
  --radius-card: 16px;
  --radius-btn: 14px;
  --radius-chip: 12px;
  --radius-pill: 999px;
  --shadow: 0 8px 24px rgba(18, 32, 58, 0.08);
  --shadow-book: 0 18px 48px rgba(18, 32, 58, 0.28);
  --font: Pretendard, "Pretendard JP", "Segoe UI", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --nav-h: 64px;
  --max: 1120px;
  --space-s: 8px;
  --space-m: 16px;
  --space-l: 24px;
  --space-xl: 40px;
  --space-xxl: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}

body {
  background-color: var(--paper);
  background-image:
    repeating-linear-gradient(
      115deg,
      transparent 0 11px,
      rgba(203, 220, 235, 0.28) 11px 12px
    ),
    repeating-linear-gradient(
      -25deg,
      transparent 0 17px,
      rgba(243, 214, 210, 0.18) 17px 18px
    );
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--stamp-red);
  outline-offset: 3px;
}

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--stamp-red);
  color: var(--on-accent);
  border-radius: var(--radius-btn);
  font-size: 14px;
  font-weight: 600;
}

.skip-link:focus { top: 12px; }

.caption {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-family: var(--font-mono);
}

.section-title {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 12px;
}

.section-lead {
  color: var(--muted);
  max-width: 52ch;
  margin-bottom: 32px;
  font-size: 1.05rem;
}

section { padding: var(--space-xxl) 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 600;
  box-shadow: var(--shadow);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
  user-select: none;
}

.btn:hover:not([aria-disabled="true"]) {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--stamp-red);
  color: var(--on-accent);
}

.btn-primary:hover:not([aria-disabled="true"]) { background: var(--stamp-red-deep); }

.btn-ghost {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover:not([aria-disabled="true"]) {
  border-color: var(--navy-2);
  color: var(--navy);
}

.btn-ghost.on-navy {
  background: transparent;
  border-color: rgba(201, 206, 219, 0.4);
  color: var(--foil-hi);
  box-shadow: none;
}

.btn-ghost.on-navy:hover:not([aria-disabled="true"]) {
  border-color: var(--foil);
  color: #fff;
}

.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-sm {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 14px;
}

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--navy);
  color: var(--foil-hi);
  border-bottom: 1px solid transparent;
  transition: box-shadow 160ms ease, border-color 160ms ease;
}

.site-header.is-scrolled {
  box-shadow: 0 8px 24px rgba(18, 32, 58, 0.28);
  border-bottom-color: rgba(201, 206, 219, 0.18);
}

.nav {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--foil-hi);
}

.brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 1px solid rgba(201, 206, 219, 0.35);
}

.brand-name { font-size: 15px; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links {
  display: flex;
  gap: 18px;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--foil);
  letter-spacing: 0.02em;
}

.nav-links a:hover { color: #fff; }

.site-header .btn-primary {
  background: var(--stamp-red);
}

/* Hero */
.hero {
  padding: 48px 0 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 48px 40px;
  align-items: center;
}

.hero-copy {
  max-width: 40rem;
}

.hero-tag {
  color: var(--stamp-red);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  margin-bottom: 12px;
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.35rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin-bottom: 16px;
  color: var(--navy);
}

.hero-sub {
  color: var(--muted);
  font-size: 1.125rem;
  max-width: 44ch;
  margin-bottom: 0;
}

.hero-shot {
  justify-self: end;
  width: min(420px, 100%);
}

.hero-shot img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: var(--shadow-book);
  border: 1px solid var(--paper-edge);
}

.hero-book {
  position: relative;
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  width: 100%;
  max-width: 760px;
  margin-inline: 0;
  aspect-ratio: 16 / 10;
  border-radius: 6px 14px 14px 6px;
  overflow: hidden;
  box-shadow: var(--shadow-book);
  touch-action: manipulation;
}

.hero-cover {
  background:
    radial-gradient(circle at 50% 38%, rgba(201, 206, 219, 0.12), transparent 46%),
    linear-gradient(165deg, var(--navy-soft), var(--navy) 55%, #0d182c);
  color: var(--foil-hi);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 20px 12px;
  border-right: 2px solid rgba(18, 32, 58, 0.6);
}

.hero-emblem {
  width: clamp(56px, 28%, 92px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid var(--foil);
  box-shadow: 0 0 0 4px rgba(201, 206, 219, 0.15);
  background:
    conic-gradient(from 210deg, #c0392b 0 50%, #1a56db 50% 100%);
  position: relative;
}

.hero-emblem::after {
  content: "";
  position: absolute;
  inset: 28%;
  border-radius: 50%;
  background: var(--navy);
  border: 1.5px solid var(--foil);
}

.hero-cover-title {
  text-align: center;
  font-size: clamp(0.7rem, 1.6vw, 0.95rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--foil);
}

.hero-cover-sub {
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--foil-shadow);
  font-family: var(--font-mono);
}

.hero-visa {
  position: relative;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0 10px,
      rgba(203, 220, 235, 0.35) 10px 11px
    ),
    repeating-linear-gradient(
      0deg,
      transparent 0 10px,
      rgba(221, 228, 206, 0.28) 10px 11px
    ),
    var(--paper-warm);
  overflow: hidden;
}

.hero-visa-head {
  position: absolute;
  top: 10px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  z-index: 2;
  pointer-events: none;
}

.hero-visa-head span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--label-blue);
  font-weight: 700;
}

.hero-grid {
  position: absolute;
  inset: 34px 16px 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 8px;
  pointer-events: none;
}

.visa-slot {
  border-radius: 50%;
  border: 1.5px dashed rgba(122, 135, 148, 0.45);
  background: rgba(251, 249, 245, 0.45);
}

.visa-slot.is-filled {
  border-style: solid;
  border-color: transparent;
  background: transparent;
}

.hero-stamp-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  touch-action: manipulation;
}

.hero-stamp-canvas:focus-visible {
  outline: 2px solid var(--stamp-red);
  outline-offset: -6px;
}

.hero-book.is-complete .hero-stamp-canvas { cursor: default; }

.hero-hint {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  margin: 0;
  padding: 7px 14px;
  background: rgba(251, 249, 245, 0.94);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  pointer-events: none;
  box-shadow: var(--shadow);
  z-index: 3;
  transition: opacity 400ms ease;
  white-space: nowrap;
}

.hero-hint.is-fading { opacity: 0; }

.no-js .hero-stamp-canvas,
.no-js .hero-hint { display: none; }

.hero-cta {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-avail {
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

/* Screenshot rail / phone mocks */
.shot-rail {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 8px max(16px, calc((100% - var(--max)) / 2 + 16px)) 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--ghost) transparent;
}

.shot-rail:focus-visible {
  outline: 2px solid var(--stamp-red);
  outline-offset: -2px;
}

.shot {
  flex: 0 0 auto;
  width: min(240px, 58vw);
  scroll-snap-align: start;
  margin: 0;
}

.shot-frame {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--paper-edge);
  box-shadow: var(--shadow-book);
  background: var(--paper);
}

.shot-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.phone {
  aspect-ratio: 9 / 16;
  border-radius: 28px;
  padding: 10px;
  background: var(--navy);
  border: 1px solid rgba(201, 206, 219, 0.35);
  box-shadow: var(--shadow-book);
  overflow: hidden;
}

.phone-screen {
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background: var(--paper);
}

.phone-cover {
  background: linear-gradient(165deg, var(--navy-soft), var(--navy));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--foil);
}

.phone-cover .mini-emblem {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--foil);
  background: conic-gradient(from 210deg, #c0392b 0 50%, #1a56db 50% 100%);
  position: relative;
}

.phone-cover .mini-emblem::after {
  content: "";
  position: absolute;
  inset: 28%;
  border-radius: 50%;
  background: var(--navy);
}

.phone-cover p {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
}

.phone-id {
  padding: 14px 12px;
  background: var(--paper-warm);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.phone-id .id-row {
  display: flex;
  gap: 8px;
}

.phone-id .photo {
  width: 42px;
  height: 54px;
  background: var(--guilloche-blue);
  border: 1px solid var(--paper-edge);
  flex-shrink: 0;
}

.phone-id .fields {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
}

.phone-id .lbl {
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.12em;
  color: var(--label-blue);
  text-transform: uppercase;
}

.phone-id .val {
  height: 7px;
  background: var(--ink);
  opacity: 0.55;
  border-radius: 1px;
  width: 78%;
}

.phone-id .val.short { width: 46%; }
.phone-id .mrz {
  margin-top: auto;
  height: 28px;
  background: var(--field);
  border-top: 1px solid var(--paper-edge);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.08em;
  color: var(--ink);
  padding: 6px 4px;
  line-height: 1.35;
}

.phone-missions {
  padding: 12px 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: var(--paper);
}

.mission-tile {
  border-radius: 8px;
  padding: 10px 8px 8px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  border: 1px solid var(--paper-edge);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mission-tile i {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: block;
}

.phone-camera {
  background: var(--navy);
  display: grid;
  place-items: center;
}

.viewfinder {
  width: 68%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 3px solid var(--foil);
  box-shadow: 0 0 0 8px rgba(201, 206, 219, 0.15);
  background:
    radial-gradient(circle at 40% 35%, rgba(255, 255, 255, 0.12), transparent 40%),
    linear-gradient(160deg, #3d5a7a, #1a2b4c);
  position: relative;
}

.viewfinder::after {
  content: "";
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  border: 1px dashed rgba(239, 242, 248, 0.45);
}

.shutter {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--foil);
}

.phone-deco {
  padding: 18px 12px 12px;
  background: var(--paper-warm);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.deco-slot {
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1.5px dashed var(--paper-edge);
  background: rgba(251, 249, 245, 0.7);
  position: relative;
}

.deco-slot.ink-red { background: radial-gradient(circle, rgba(192, 57, 43, 0.18), transparent 62%); border-style: solid; border-color: var(--stamp-red); }
.deco-slot.ink-blue { background: radial-gradient(circle, rgba(26, 86, 219, 0.18), transparent 62%); border-style: solid; border-color: var(--stamp-blue); }
.deco-slot.ink-green { background: radial-gradient(circle, rgba(14, 112, 81, 0.18), transparent 62%); border-style: solid; border-color: var(--stamp-green); }

.sticker {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--guilloche-lilac);
  transform: rotate(-18deg);
}

.sticker.s2 { background: var(--guilloche-peach); width: 12px; height: 8px; transform: rotate(22deg); }
.sticker.s3 { background: var(--guilloche-sage); border-radius: 50%; }

.phone-share {
  padding: 16px 12px;
  background: var(--field);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.share-card {
  flex: 1;
  background: var(--paper-warm);
  border: 1px solid var(--paper-edge);
  border-radius: 8px;
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.share-dot {
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--guilloche-blue);
  border: 1px solid var(--paper-edge);
}

.share-dot.filled { background: radial-gradient(circle, var(--stamp-red-soft), var(--guilloche-rose)); border-color: var(--stamp-red); }

.shot figcaption {
  margin-top: 10px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  color: var(--muted);
}

/* Theme grid */
.theme-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.theme-card {
  min-height: 128px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px 16px;
  border-radius: var(--radius-card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.theme-card .theme-code {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
}

.theme-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-top: 18px;
}

.theme-card p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

.theme-card[data-theme="seoul"] { background: linear-gradient(180deg, #eef3f8, var(--surface)); }
.theme-card[data-theme="kfood"] { background: linear-gradient(180deg, var(--stamp-red-soft), var(--surface)); }
.theme-card[data-theme="kpop"] { background: linear-gradient(180deg, var(--guilloche-lilac), var(--surface)); }
.theme-card[data-theme="nature"] { background: linear-gradient(180deg, var(--guilloche-sage), var(--surface)); }
.theme-card[data-theme="busan"] { background: linear-gradient(180deg, var(--guilloche-blue), var(--surface)); }
.theme-card[data-theme="jeju"] { background: linear-gradient(180deg, #dceee4, var(--surface)); }
.theme-card[data-theme="heritage"] { background: linear-gradient(180deg, var(--guilloche-peach), var(--surface)); }
.theme-card[data-theme="night"] { background: linear-gradient(180deg, var(--guilloche-lilac), var(--surface)); }
.theme-card[data-theme="night"] p { color: var(--muted); }

.theme-note {
  margin-top: 20px;
  color: var(--muted);
  font-size: 14px;
}

/* How it works */
.how-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.how-card {
  overflow: hidden;
}

.how-shot {
  width: calc(100% + 48px);
  max-width: none;
  height: 200px;
  object-fit: cover;
  object-position: top center;
  margin: -24px -24px 16px;
  border-bottom: 1px solid var(--line);
}

.how-card .step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-bottom: 16px;
  border-radius: var(--radius-pill);
  background: var(--stamp-red-soft);
  color: var(--stamp-red-deep);
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-mono);
}

.how-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.how-card p { color: var(--muted); font-size: 0.95rem; }

.how-card .mono {
  font-family: var(--font-mono);
  font-size: 0.85em;
  letter-spacing: 0.04em;
  color: var(--navy);
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-icon {
  width: 28px;
  height: 28px;
  color: var(--stamp-red);
  margin-bottom: 16px;
}

.feature-card:nth-child(2) .feature-icon { color: var(--stamp-blue); }
.feature-card:nth-child(3) .feature-icon { color: #8B6BB0; }
.feature-card:nth-child(4) .feature-icon { color: var(--stamp-green); }
.feature-card:nth-child(5) .feature-icon { color: var(--label-blue); }
.feature-card:nth-child(6) .feature-icon { color: #C06B4A; }

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.feature-card p { color: var(--muted); font-size: 0.95rem; }

/* Keepsake band */
.keepsake {
  background:
    linear-gradient(180deg, var(--guilloche-lilac) 0%, var(--guilloche-rose) 48%, var(--paper-warm) 100%);
  color: var(--ink);
}

.keepsake .caption { color: var(--stamp-red-deep); }

.keepsake .section-title {
  color: var(--navy);
  margin-bottom: 12px;
}

.keepsake .section-lead {
  max-width: 58ch;
  margin-bottom: 24px;
  color: var(--muted);
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  box-shadow: var(--shadow);
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 10px;
  max-width: 720px;
}

.faq-list details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 4px 20px;
  box-shadow: var(--shadow);
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 0;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: "+";
  float: right;
  color: var(--muted);
  font-weight: 500;
}

.faq-list details[open] summary::after { content: "–"; }

.faq-list details p {
  color: var(--muted);
  padding-bottom: 16px;
}

.faq-list a {
  color: var(--stamp-red-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Final CTA */
.final-cta {
  text-align: center;
  padding-block: 96px 80px;
}

.final-cta h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
  max-width: 22ch;
  margin: 0 auto 24px;
  color: var(--navy);
}

.final-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: var(--foil);
  padding: 32px 0 40px;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--foil);
  font-size: 14px;
}

.footer-brand img {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid rgba(201, 206, 219, 0.3);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--foil);
}

.footer-links a:hover { color: #fff; }

.footer-note {
  color: var(--foil-shadow);
  font-size: 13px;
  line-height: 1.5;
  max-width: 62ch;
}

/* Reveal — gated on .reveal-on so a missing site.js does not hide copy */
.reveal-on .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 420ms ease, transform 420ms ease;
}

.reveal-on .reveal.is-in {
  opacity: 1;
  transform: none;
}

.reveal-on .reveal-delay-1 { transition-delay: 60ms; }
.reveal-on .reveal-delay-2 { transition-delay: 120ms; }
.reveal-on .reveal-delay-3 { transition-delay: 180ms; }
.reveal-on .reveal-delay-4 { transition-delay: 240ms; }

/* Legal */
.page-legal .legal-wrap {
  width: min(100% - 32px, 720px);
  margin-inline: auto;
  padding: 40px 0 72px;
}

.page-legal .legal-header {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.page-legal .legal-header h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 12px 0 14px;
  line-height: 1.25;
  color: var(--navy);
}

.page-legal .legal-meta {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.page-legal .legal-disclaimer {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--field);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.page-legal .legal-toc {
  margin: 0 0 36px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
}

.page-legal .legal-toc h2 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.page-legal .legal-toc ol {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.page-legal .legal-toc a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.page-legal .legal-toc a:hover { color: var(--stamp-red-deep); }

.page-legal .legal-section {
  margin-bottom: 32px;
  scroll-margin-top: calc(var(--nav-h) + 16px);
}

.page-legal .legal-section h2 {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.4;
  margin-bottom: 12px;
  color: var(--navy);
}

.page-legal .legal-section h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 16px 0 8px;
}

.page-legal .legal-section p,
.page-legal .legal-section li {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.65;
}

.page-legal .legal-section p { margin-bottom: 10px; }

.page-legal .legal-section ul,
.page-legal .legal-section ol {
  margin: 0 0 12px;
  padding-left: 1.25rem;
}

.page-legal .legal-section li { margin-bottom: 6px; }

.page-legal .legal-section a {
  color: var(--stamp-red-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.page-legal .table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 12px 0 16px;
}

.page-legal .data-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.45;
}

.page-legal .data-table th,
.page-legal .data-table td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.page-legal .data-table th {
  background: var(--field);
  font-size: 13px;
  font-weight: 600;
}

.page-legal .data-table td { background: var(--surface); }

.page-error {
  text-align: center;
  padding: 96px 0 120px;
}

.page-error h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  margin: 12px 0 16px;
  color: var(--navy);
}

.page-error p {
  color: var(--muted);
  margin-bottom: 24px;
}

/* Responsive */
@media (max-width: 1023px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-shot { margin-inline: auto; justify-self: center; }

  .how-grid,
  .features-grid,
  .theme-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .nav-links { display: none; }

  .hero { padding-top: 24px; }

  .hero-shot { max-width: 320px; }

  .how-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }

  .theme-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .shot {
    width: min(200px, 62vw);
  }

  section { padding: 64px 0; }
  .final-cta { padding-block: 72px 64px; }
}

@media (max-width: 640px) {
  .hero-shot { max-width: 280px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .reveal-on .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn, .card, .theme-card { transition: none; }

  .hero-hint { display: none; }
}
