/* Wondervisor marketing site. Plain CSS, no build step. */

:root {
  --cream: #F4F1E8;
  --cream-deep: #EEE9DD;
  --line: #E8E2D4;
  --line-soft: #F1ECE1;
  --ink: #1E2B27;
  --ink-2: #3E4743;
  --ink-3: #4A4F4C;
  --muted: #626A65;
  --forest: #354B43;
  --blue: #3A5D78;
  --blue-dark: #2A465C;
  --blue-wash: #E3EAF0;
  --blue-ink: #24405A;
  --coral: #E8704F;
  --coral-text: #B8432A;
  --coral-hover: #A63B23;
  --coral-wash: #FBE3D9;
  --coral-ink: #8E3520;
  --golden: #E8B44C;
  --golden-deep: #C28A1E;
  --golden-wash: #FBEED3;
  --golden-ink: #6E4E0B;
  --sage-wash: #E1EAE5;
  --sage-ink: #2E4139;
  --on-dark: #C9D3CE;
  --on-dark-2: #D6E0DB;
  --white: #FFFFFF;
  --shadow-card: 0 24px 60px rgba(30, 43, 39, 0.10);
  --radius-card: 26px;
  --gutter: clamp(16px, 4vw, 40px);
  --sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

img, svg { max-width: 100%; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }

:focus-visible { outline: 3px solid var(--golden); outline-offset: 3px; }
.on-dark :focus-visible, .band :focus-visible { outline-color: var(--golden); }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--white); }

.wrap { max-width: 1240px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.em { font-family: var(--serif); font-style: italic; font-weight: 500; letter-spacing: -0.02em; color: var(--blue); }
.em-coral { color: var(--coral-text); }
.em-gold { color: var(--golden); }

.spark { display: block; flex: 0 0 auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: background-color .15s ease;
}
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 17px; font-weight: 800; }
.btn-coral { background: var(--coral-text); color: var(--white); }
.btn-coral:hover { background: var(--coral-hover); color: var(--white); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-ghost:hover { background: rgba(30, 43, 39, 0.06); color: var(--ink); }
.btn-plain { background: transparent; color: var(--ink); }
.btn-plain:hover { background: rgba(30, 43, 39, 0.06); color: var(--ink); }
.btn-blue { background: var(--blue); color: var(--white); border-radius: 12px; min-height: 48px; font-weight: 800; }
.btn-blue:hover { background: var(--blue-dark); color: var(--white); }
.btn-blue:disabled { background: #6B8296; }
.btn-square { border-radius: 12px; }

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}
.chip:hover { border-color: var(--blue); background: var(--white); }
.chip[aria-pressed="true"] { border-color: var(--blue); background: var(--white); box-shadow: inset 0 0 0 1px var(--blue); }

.tag {
  align-self: flex-start;
  display: inline-flex;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}
.tag-gold { background: var(--golden-wash); color: var(--golden-ink); }
.tag-blue { background: var(--blue-wash); color: var(--blue-ink); }
.tag-coral { background: var(--coral-wash); color: var(--coral-ink); }
.tag-sage { background: var(--sage-wash); color: var(--sage-ink); }

.kicker { font-size: 13px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--coral-text); }
.kicker-blue { color: var(--blue); }
.kicker-gold { color: var(--golden); }

.check-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 16px; }
.check-list li { display: flex; gap: 10px; }
.check-list svg { flex: 0 0 22px; margin-top: 2px; }
.check-list.on-dark { gap: 12px; }
.check-list .soft { color: var(--on-dark-2); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(244, 241, 232, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(30, 43, 39, 0.08);
}
.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 12px var(--gutter);
  display: flex;
  align-items: center;
  gap: 12px 28px;
}
.brand { display: flex; align-items: center; min-height: 44px; flex: 0 0 auto; }
.brand img { display: block; height: 34px; width: auto; }
.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 0; padding: 0; list-style: none; font-size: 15px; }
.nav-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; font-weight: 600; }
.nav-link:hover { color: var(--blue); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.menu-toggle { display: none; }

@media (max-width: 980px) {
  .header-inner { flex-wrap: wrap; }
  .header-actions { margin-left: auto; }
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 14px;
    border: 1.5px solid var(--ink);
    border-radius: 999px;
    background: transparent;
    font-size: 15px;
    font-weight: 700;
  }
  .primary-nav { order: 3; flex: 1 0 100%; margin-left: 0; }
  .primary-nav[data-collapsed="true"] { display: none; }
  .primary-nav ul { flex-direction: column; gap: 0; padding: 4px 0 8px; }
  .nav-link { width: 100%; font-size: 17px; border-top: 1px solid rgba(30, 43, 39, 0.08); }
}
@media (max-width: 420px) {
  .brand img { height: 28px; }
  .header-actions .btn { padding: 0 14px; font-size: 14px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-swoosh { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-inner {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(40px, 7vw, 96px) var(--gutter) clamp(56px, 7vw, 104px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px;
}
.hero-copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.eyebrow {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid rgba(30, 43, 39, 0.08);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.eyebrow b { display: inline-flex; padding: 2px 9px; border-radius: 999px; background: var(--forest); color: var(--white); font-size: 11px; letter-spacing: 0.06em; }
.hero h1 { font-size: clamp(42px, 6.2vw, 80px); line-height: 1.02; font-weight: 800; letter-spacing: -0.035em; }
.lede { max-width: 560px; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--ink-2); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 6px 0 0; padding: 0; list-style: none; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.hero-points li { display: flex; align-items: center; gap: 8px; }

.hero-art { position: relative; flex: 1 1 520px; min-width: 0; min-height: 520px; }
.hero-art .twinkle-a { position: absolute; right: 6%; top: -18px; }
.mock-window { position: absolute; left: 0; right: 4%; top: 30px; border-radius: 22px; background: var(--white); box-shadow: 0 30px 70px rgba(30, 43, 39, 0.16); overflow: hidden; }
.mock-bar { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--cream-deep); font-size: 13px; font-weight: 800; }
.mock-bar .divider { width: 1px; height: 18px; background: #E2DBCB; }
.mock-dots { margin-left: auto; display: flex; gap: 5px; }
.mock-dots span { width: 9px; height: 9px; border-radius: 50%; background: #E2DBCB; }
.mock-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 12px; }
.mock-ask { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--cream); font-size: 14px; }
.mock-ask span:nth-child(2) { flex: 1 1 auto; }
.mock-ask .ask-pill { padding: 4px 10px; border-radius: 8px; background: var(--ink); color: var(--white); font-size: 12px; font-weight: 700; }
.mock-tokens { display: flex; flex-wrap: wrap; gap: 6px; }
.mock-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) 90px; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.mock-row .name { display: block; font-size: 14px; font-weight: 800; }
.mock-row .next { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: #5E420A; }
.mock-row .cr { display: block; font-size: 11px; font-weight: 700; color: var(--muted); text-align: right; }
.mini-track { display: block; position: relative; height: 6px; border-radius: 999px; background: var(--cream-deep); overflow: hidden; }
.mini-track span { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: var(--blue); }
.brief-float { position: absolute; left: -4%; bottom: 0; width: min(330px, 70%); padding: 18px; border-radius: 20px; background: var(--forest); color: var(--white); box-shadow: 0 24px 50px rgba(30, 43, 39, 0.25); }
.brief-float .label { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: 0.06em; color: var(--golden); }
.brief-float p { margin: 8px 0 12px; font-size: 14px; line-height: 1.5; }
.gold-track { position: relative; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.18); }
.gold-track span { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: var(--golden); }
.match-float { position: absolute; right: 0; bottom: 64px; display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 18px; background: var(--white); box-shadow: 0 20px 44px rgba(30, 43, 39, 0.16); font-size: 13px; line-height: 1.35; }
.match-float .count { width: 40px; height: 40px; border-radius: 12px; background: var(--coral-wash); color: #9C3820; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; }
.match-float .sub { color: var(--muted); }

@media (max-width: 600px) {
  .hero-art { min-height: 0; display: flex; flex-direction: column; gap: 14px; }
  .hero-art .twinkle-a { top: -22px; right: 2%; }
  .mock-window, .brief-float, .match-float { position: relative; inset: auto; width: auto; }
  .brief-float { margin: -34px 12px 0; }
  .match-float { align-self: flex-end; margin-right: 4px; }
}

.avatar { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; flex: 0 0 auto; }
.av-0 { background: var(--coral-wash); color: #9C3820; }
.av-1 { background: var(--blue-wash); color: var(--blue-ink); }
.av-2 { background: var(--golden-wash); color: var(--golden-ink); }
.av-3 { background: var(--sage-wash); color: var(--sage-ink); }

.token { padding: 3px 10px; border-radius: 999px; background: var(--blue-wash); color: var(--blue-ink); font-size: 12px; font-weight: 700; }

/* ---------- Motion ---------- */
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes twinkle { 0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; } 50% { transform: scale(.82) rotate(12deg); opacity: .85; } }
.float1 { animation: floaty 7s ease-in-out infinite; }
.float2 { animation: floaty 8s ease-in-out -3s infinite; }
.twinkle { animation: twinkle 4.5s ease-in-out infinite; transform-origin: center; }
.bar { transition: width .9s cubic-bezier(.2, .8, .2, 1), left .9s cubic-bezier(.2, .8, .2, 1); }
.lift { transition: transform .2s ease, box-shadow .2s ease; }
.lift:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(30, 43, 39, 0.12); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .float1, .float2, .twinkle { animation: none; }
  .bar, .lift, .switch-knob, .rule-item, .brand-preview, .swatch { transition: none !important; }
  .lift:hover { transform: none; }
}

/* ---------- Promise strip ---------- */
.promise { background: var(--forest); color: var(--white); }
.promise-grid { max-width: 1240px; margin: 0 auto; padding: 36px var(--gutter); display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px 36px; list-style: none; }
.promise-grid li { display: flex; gap: 14px; align-items: flex-start; }
.promise-grid svg { margin-top: 4px; }
.promise-grid b { display: block; font-size: 17px; }
.promise-grid span { font-size: 15px; color: var(--on-dark); }

/* ---------- Sections ---------- */
.section { max-width: 1240px; margin: 0 auto; padding: clamp(72px, 9vw, 120px) var(--gutter) 0; }
.section-intro { max-width: 760px; margin: 0 auto 56px; text-align: center; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.section-intro p { color: var(--ink-2); font-size: 19px; }
.h2 { font-size: clamp(32px, 4.4vw, 56px); line-height: 1.06; font-weight: 800; letter-spacing: -0.03em; }
.h2-sm { font-size: clamp(30px, 4vw, 48px); line-height: 1.08; font-weight: 800; letter-spacing: -0.03em; }
.h3 { font-size: clamp(28px, 3vw, 40px); line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; }

.feature { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.feature.reverse { flex-wrap: wrap-reverse; }
.feature-copy { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.feature-copy > p { color: var(--ink-2); }
.feature-demo { flex: 1 1 520px; min-width: 0; }

.card { padding: 22px; border-radius: var(--radius-card); background: var(--white); box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: 14px; }
.card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; }
.card-head b { font-size: 15px; }
.sample-note { font-size: 12px; font-weight: 700; color: var(--muted); }
.hint { font-size: 13px; color: var(--muted); }
.no-js-note { padding: 14px; border-radius: 12px; background: var(--cream); color: var(--ink-3); font-size: 14px; }
.js .no-js-note { display: none; }

/* Ask demo */
.ask-form { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border-radius: 14px; background: var(--cream); }
.ask-form input { flex: 1 1 auto; min-width: 0; height: 44px; border: 0; background: transparent; font-size: 16px; color: var(--ink); }
.ask-form input:focus { outline: none; }
.ask-form:focus-within { box-shadow: 0 0 0 3px var(--golden); }
.ask-form button { min-height: 44px; padding: 0 18px; border: 0; border-radius: 10px; background: var(--ink); color: var(--white); font-size: 15px; font-weight: 700; }
.examples { display: flex; flex-wrap: wrap; gap: 6px; }
.examples .chip { min-height: 44px; font-size: 13px; padding: 0 12px; }
.ask-status { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 30px; font-size: 13px; }
.ask-status .summary { font-weight: 700; color: var(--muted); }
.result-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.result-list li { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.result-list .avatar { width: 36px; height: 36px; }
.result-list b { font-size: 15px; }
.result-list .meta { display: block; font-size: 13px; color: var(--muted); }
.flags { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }
.flag { padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; white-space: nowrap; }
.flag-hold { background: var(--coral-wash); color: var(--coral-ink); }
.flag-auth { background: var(--golden-wash); color: var(--golden-ink); }
.flag-spring { background: var(--cream-deep); color: var(--ink-3); }
.flag-online { background: var(--blue-wash); color: var(--blue-ink); }
.empty { padding: 18px; border-radius: 12px; background: var(--cream); text-align: center; color: var(--muted); }
@media (max-width: 480px) {
  .result-list li { grid-template-columns: 36px minmax(0, 1fr); }
  .result-list .flags { grid-column: 2; justify-content: flex-start; }
}

/* Brief card */
.brief-card { position: relative; padding: 26px; border-radius: var(--radius-card); background: var(--blue); color: var(--white); overflow: hidden; }
.brief-card .swoosh { position: absolute; right: -40px; top: -30px; width: 420px; opacity: 0.5; }
.brief-head { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.brief-head .avatar { width: 56px; height: 56px; font-size: 18px; }
.brief-head b { font-size: 20px; }
.brief-head .sub { font-size: 14px; color: #D3DEE7; }
.gpa-pill { margin-left: auto; padding: 6px 12px; border-radius: 999px; background: var(--golden); color: var(--ink); font-weight: 800; font-size: 14px; }
.progress-box { position: relative; margin-top: 22px; padding: 16px; border-radius: 16px; background: rgba(255, 255, 255, 0.1); }
.progress-box .row { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; }
.progress-box .gold-track { height: 10px; margin-top: 10px; }
.years { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin-top: 6px; font-size: 12px; color: var(--white); }
.years .now { font-weight: 800; text-decoration: underline; text-decoration-color: var(--golden); text-decoration-thickness: 2px; text-underline-offset: 3px; }
@media (max-width: 480px) {
  .years { display: flex; justify-content: space-between; font-size: 11px; }
}
.term-chips { position: relative; margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; font-weight: 700; }
.term-chips span { padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); }
.term-chips .missing { background: transparent; border: 1.5px dashed #F2A58F; color: #FFD6CA; }
.talking { position: relative; margin-top: 14px; padding: 16px; border-radius: 16px; background: var(--white); color: var(--ink); }
.talking .label { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: 0.06em; color: var(--golden-ink); }
.talking ul { margin: 8px 0 0; padding: 0 0 0 18px; font-size: 14px; display: flex; flex-direction: column; gap: 4px; }

/* Match demo */
.match-card { padding: 26px; gap: 18px; }
.match-card .dept b { font-size: 18px; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-weight: 800; font-size: 14px; background: var(--coral-wash); color: var(--coral-ink); }
.status-pill.done { background: var(--sage-wash); color: var(--sage-ink); }
.match-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.match-list li { display: grid; grid-template-columns: 40px minmax(0, 1fr) 54px; gap: 12px; align-items: center; }
.match-list .avatar { width: 40px; height: 40px; font-size: 13px; }
.match-list .top { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.match-list .add { color: var(--coral-ink); font-weight: 800; white-space: nowrap; }
.load-track { display: block; position: relative; height: 10px; margin-top: 6px; border-radius: 999px; background: var(--cream-deep); overflow: hidden; }
.load-track .base { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: var(--blue); }
.load-track .extra { position: absolute; top: 0; bottom: 0; background: var(--golden); }
.match-list .load { text-align: right; font-size: 20px; font-weight: 800; }
.action-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* Booking demo */
.tool-switch { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 14px; }
.tool-switch .label { margin-right: 4px; font-size: 13px; font-weight: 800; color: var(--ink-2); }
.tool-switch .chip { background: var(--white); font-size: 13px; font-weight: 700; }
.tool-switch .chip[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); box-shadow: none; }
.booking-wrap { position: relative; }
.booking-wrap .twinkle-b { position: absolute; left: -14px; top: -22px; z-index: 1; }
.booking-card { border-radius: var(--radius-card); background: var(--white); box-shadow: var(--shadow-card); overflow: hidden; }
.url-bar { display: flex; align-items: center; gap: 8px; padding: 10px 16px; background: var(--ink); color: var(--on-dark); font-size: 13px; }
.url-bar .url { min-width: 0; overflow-wrap: anywhere; }
.url-bar .url b { color: var(--white); }
.url-bar .sample { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--golden); white-space: nowrap; }
.booking-body { padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.advisor-head { display: flex; align-items: center; gap: 12px; }
.advisor-head .avatar { width: 48px; height: 48px; background: var(--blue); color: var(--white); font-size: 14px; box-shadow: 0 0 0 3px var(--white), 0 0 0 5px var(--golden); }
.advisor-head .pre { display: block; font-size: 12px; font-weight: 700; color: var(--muted); }
.advisor-head b { font-size: 18px; }
.advisor-head .sub { display: block; font-size: 13px; color: var(--muted); }
.fieldset-reset { margin: 0; padding: 0; border: 0; min-width: 0; }
.fieldset-reset legend { padding: 0; margin-bottom: 8px; font-size: 13px; font-weight: 800; color: var(--ink-2); }
.type-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.type-chips .chip { background: var(--white); font-size: 13px; font-weight: 700; }
.type-chips .chip[aria-pressed="true"] { background: var(--blue); color: var(--white); border-color: var(--blue); box-shadow: none; }
.day-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.day-btn { min-height: 64px; border: 1.5px solid var(--blue-wash); border-radius: 14px; background: var(--blue-wash); color: var(--blue-ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 4px; }
.day-btn b { font-size: 15px; }
.day-btn span { font-size: 11px; font-weight: 700; }
.day-btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.slot-btn { min-height: 44px; border: 1.5px solid var(--on-dark); border-radius: 12px; background: var(--white); color: var(--ink); font-size: 14px; font-weight: 800; }
.slot-btn:hover { border-color: var(--blue); }
.slot-btn[aria-pressed="true"] { background: var(--golden); border-color: var(--golden-deep); }
.book-btn { min-height: 50px; border: 0; border-radius: 999px; background: var(--coral-text); color: var(--white); font-size: 15px; font-weight: 800; }
.book-btn:hover:not(:disabled) { background: var(--coral-hover); }
.book-btn:disabled { background: #8F877B; }
.booked { display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: 18px; background: var(--cream); }
.booked .title { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; }
.booked .check-list { font-size: 14px; color: var(--ink-2); gap: 6px; }
.handoff { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.handoff .big { font-size: 20px; line-height: 1.25; }
.handoff .text { font-size: 15px; color: var(--ink-2); }
.fake-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; background: var(--blue); color: var(--white); font-weight: 800; }
.sync-note { align-self: stretch; display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: #EEF5F0; font-size: 14px; color: var(--ink-2); }
.sync-note.link-only { background: var(--cream); }
.badge { flex: 0 0 auto; padding: 2px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; white-space: nowrap; }
.badge-sync { background: var(--sage-wash); color: var(--sage-ink); }
.badge-link { background: var(--cream-deep); color: var(--ink-3); }
.keep-tool { margin-top: 8px; padding: 20px; border-radius: 20px; background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.keep-tool b { font-size: 17px; }
.keep-tool > span { font-size: 15px; color: var(--ink-2); }
.tool-list { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.tool-list li { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 6px 0 12px; border-radius: 999px; background: var(--cream); font-size: 14px; font-weight: 700; }
@media (max-width: 420px) {
  .day-grid { gap: 5px; }
  .day-btn b { font-size: 14px; }
}

/* ---------- Dark bands ---------- */
.band { position: relative; overflow: hidden; margin-top: clamp(80px, 10vw, 140px); color: var(--white); }
.band-forest { background: var(--forest); }
.band-ink { background: var(--ink); }
.band-swoosh { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0.5; }
.band-inner { position: relative; max-width: 1240px; margin: 0 auto; padding: clamp(72px, 9vw, 120px) var(--gutter); }

/* Assignment demo */
.asg-top { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: flex-end; justify-content: space-between; margin-bottom: 40px; }
.asg-top .copy { flex: 1 1 520px; display: flex; flex-direction: column; gap: 16px; }
.asg-top .copy p { max-width: 620px; color: var(--on-dark-2); }
.asg-top .check-list { flex: 1 1 340px; }
.asg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 20px; align-items: start; }
.rules-card { padding: 22px; border-radius: 24px; background: var(--white); color: var(--ink); display: flex; flex-direction: column; gap: 10px; }
.rules-card .card-head { align-items: baseline; }
.rules-card .card-head b { font-size: 16px; }
.rule-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.rule-item { display: grid; grid-template-columns: 28px minmax(0, 1fr) 26px; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--line-soft); background: var(--white); transition: background .25s ease, opacity .25s ease; }
.rule-item .n { font-size: 13px; font-weight: 800; color: var(--muted); }
.rule-item .body { min-width: 0; font-size: 14px; }
.rule-item .to { display: block; color: var(--ink-3); }
.rule-item .reason { display: block; font-size: 12px; font-weight: 700; color: var(--coral-ink); }
.rule-item .mark { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; }
.rule-item.is-match { border-color: #2E7D4F; background: #EEF5F0; }
.rule-item.is-match .mark { background: #2E7D4F; color: var(--white); }
.rule-item.is-miss { border-color: var(--line); }
.rule-item.is-miss .mark { background: var(--cream-deep); color: var(--muted); }
.rule-item.is-skip { border-style: dashed; background: #FBFAF6; }
.rule-item.is-skip .body, .rule-item.is-skip .to, .rule-item.is-skip .n { color: var(--muted); }
.rule-item.is-skip .body b { font-weight: 600; }
.queue-note { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; border: 1.5px dashed #D6CCBF; font-size: 14px; color: var(--ink-3); }
.queue-note b { color: var(--ink); }
.queue-note.is-hit { border-color: var(--coral-text); background: #FCF1EC; }
.asg-side { display: flex; flex-direction: column; gap: 14px; }
.pick-panel { padding: 22px; border-radius: 24px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16); }
.pick-panel legend { float: left; width: 100%; padding: 0; margin-bottom: 12px; font-size: 16px; font-weight: 800; color: var(--white); }
.pick-panel legend + * { clear: both; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; }
.pick-option { position: relative; display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 2px solid rgba(255, 255, 255, 0.3); border-radius: 14px; color: var(--white); cursor: pointer; }
.pick-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pick-option .avatar { flex: 0 0 34px; }
.pick-option b { display: block; font-size: 14px; }
.pick-option .what { font-size: 12px; opacity: 0.9; }
.pick-option:has(input:checked) { background: var(--white); color: var(--ink); border-color: var(--golden); }
.pick-option:has(input:focus-visible) { outline: 3px solid var(--golden); outline-offset: 3px; }
.result-card { padding: 22px; border-radius: 24px; background: var(--white); color: var(--ink); display: flex; flex-direction: column; gap: 8px; }
.result-card.no-match { background: #FCF1EC; }
.result-card .kick { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; color: #2E7D4F; }
.result-card.no-match .kick { color: var(--coral-ink); }
.result-card .who { font-size: 24px; line-height: 1.2; letter-spacing: -0.01em; }
.result-card .why { font-size: 15px; color: var(--ink-2); }
.gap-flag { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; padding: 6px 12px; border-radius: 999px; background: var(--golden-wash); color: var(--golden-ink); font-size: 13px; font-weight: 800; }

/* ---------- Roles ---------- */
.roles-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 36px; }
.roles-head h2 { max-width: 680px; }
.roles-head p { max-width: 380px; color: var(--ink-2); }
.roles-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; list-style: none; margin: 0; padding: 0; }
.role-card { position: relative; overflow: hidden; padding: 28px; border-radius: 24px; display: flex; flex-direction: column; gap: 12px; min-height: 280px; height: 100%; }
.role-card .icon { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; }
.role-card h3 { margin-top: 6px; font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }
.role-card p { font-size: 15px; }
.role-card ul { margin: auto 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 600; }
.role-white { background: var(--white); color: var(--ink); }
.role-white .icon { background: var(--coral-wash); color: var(--coral-text); }
.role-blue { background: var(--blue); color: var(--white); }
.role-blue .icon, .role-forest .icon { background: rgba(255, 255, 255, 0.14); color: var(--white); }
.role-gold { background: var(--golden); color: var(--ink); }
.role-gold .icon { background: rgba(255, 255, 255, 0.45); color: var(--ink); }
.role-forest { background: var(--forest); color: var(--white); }

/* ---------- Campus colors ---------- */
.campus-panel { padding: clamp(24px, 4vw, 56px); border-radius: 32px; background: var(--white); display: flex; flex-wrap: wrap; gap: 44px; align-items: center; }
.campus-copy { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.campus-copy > p { color: var(--ink-2); }
.campus-copy legend { padding: 0; margin-bottom: 10px; font-size: 14px; font-weight: 800; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px 0 8px; border: 2px solid var(--line); border-radius: 999px; background: var(--white); font-size: 14px; font-weight: 700; color: var(--ink); transition: transform .15s ease; }
.swatch:hover { transform: translateY(-2px); }
.swatch[aria-pressed="true"] { border-color: var(--ink); }
.swatch .dots { display: inline-flex; }
.swatch .dots span { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--white); }
.swatch .dots span + span { margin-left: -8px; }

.brand-preview { flex: 1 1 520px; min-width: 0; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: var(--b-bg); transition: background .4s ease; }
.bp-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 12px 18px; background: var(--white); border-bottom: 1px solid #ECE6D9; }
.bp-bar .divider { width: 1px; height: 24px; background: #E2DBCB; }
.bp-school { font-family: Georgia, 'Times New Roman', serif; font-size: 17px; font-weight: 700; letter-spacing: 0.04em; color: var(--b-primary); }
.bp-tabs { margin-left: auto; display: flex; gap: 16px; font-size: 13px; font-weight: 600; color: var(--muted); }
.bp-tabs span { padding: 8px 0; }
.bp-tabs .on { border-bottom: 3px solid var(--b-accent); color: var(--ink); font-weight: 800; }
.bp-body { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.bp-hero { padding: 18px; border-radius: 16px; background: var(--b-dark); color: var(--white); }
.bp-hero .term { font-size: 12px; font-weight: 700; color: var(--b-accent); }
.bp-hero .big { margin-top: 4px; font-size: 22px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.25; }
.bp-search { margin-top: 12px; display: flex; gap: 8px; }
.bp-search span { padding: 8px 14px; border-radius: 10px; font-size: 13px; }
.bp-search .field { flex: 1 1 auto; background: var(--white); color: var(--ink); font-weight: 700; }
.bp-search .go { background: var(--b-accent); color: var(--ink); font-weight: 800; }
.bp-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.bp-student { padding: 14px; border-radius: 14px; background: var(--white); border: 1px solid var(--b-line); }
.bp-student b { font-size: 13px; }
.bp-student .sub { font-size: 12px; color: var(--muted); }
.bp-student .mini-track { margin-top: 10px; }
.bp-student .mini-track span { background: var(--b-primary); }
.bp-next { padding: 14px; border-radius: 14px; background: var(--b-wash); border: 1px solid var(--b-accent-line); font-size: 12px; color: var(--b-accent-ink); font-weight: 600; }
.bp-next .label { display: flex; align-items: center; gap: 6px; font-weight: 800; }
.bp-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.bp-actions .primary { padding: 9px 16px; border-radius: 10px; background: var(--b-primary); color: var(--white); font-size: 13px; font-weight: 700; }
.bp-actions .tint { padding: 5px 12px; border-radius: 999px; background: var(--b-tint); color: var(--b-primary); font-size: 12px; font-weight: 800; }
@media (max-width: 480px) {
  .bp-cards { grid-template-columns: 1fr; }
  .bp-tabs { margin-left: 0; }
}

/* ---------- AI ---------- */
.ai-grid { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.ai-copy { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.ai-copy > p { color: var(--on-dark); }
.ai-copy .soft { color: var(--on-dark); }
.ai-panel { flex: 1 1 480px; min-width: 0; padding: 24px; border-radius: var(--radius-card); background: var(--white); color: var(--ink); display: flex; flex-direction: column; gap: 12px; }
.ai-panel .intro b { display: block; }
.switch-row { display: flex; align-items: flex-start; gap: 12px; padding: 12px; border-radius: 14px; background: #F1F5F8; }
.switch-row.off { background: #F7F5EF; }
.switch-row .text { font-size: 14px; }
.switch-row .text b { display: block; }
.switch-row .text span { color: var(--muted); }
.switch { position: relative; flex: 0 0 52px; width: 52px; height: 44px; margin: -6px 0; padding: 0; border: 0; background: transparent; }
.switch::before { content: ''; position: absolute; left: 2px; top: 8px; width: 48px; height: 28px; border-radius: 999px; background: #8F877B; }
.switch[aria-checked="true"]::before { background: var(--blue); }
.switch-knob { position: absolute; top: 12px; left: 6px; width: 20px; height: 20px; border-radius: 50%; background: var(--white); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); transition: left .2s ease; }
.switch[aria-checked="true"] .switch-knob { left: 26px; }
@media (forced-colors: active) {
  .switch::before { border: 1px solid CanvasText; }
  .switch[aria-checked="true"]::before { background: Highlight; }
  .switch-knob { background: CanvasText; }
}
.advisor-view { margin-top: 4px; border-radius: 16px; border: 1px solid var(--line); overflow: hidden; }
.advisor-view .head { padding: 8px 14px; background: var(--cream); font-size: 12px; font-weight: 800; letter-spacing: 0.06em; color: var(--ink-3); }
.advisor-view .body { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.fake-search { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.who-row { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.who-row .sub { display: block; font-size: 12px; color: var(--muted); }
.suggestion { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; border-radius: 10px; background: var(--golden-wash); font-size: 13px; color: #5E420A; }
.suggestion svg { margin-top: 3px; }
.suggestion.none { background: var(--cream); color: var(--ink-3); }
.advisor-view .leaves { padding: 10px 14px; border-top: 1px solid var(--line); font-size: 13px; }
.advisor-view .leaves span { color: var(--ink-2); }

/* ---------- Trust ---------- */
.trust-head { max-width: 720px; margin-bottom: 40px; display: flex; flex-direction: column; gap: 14px; }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.trust-card { padding: 24px; border-radius: 20px; background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; height: 100%; }
.trust-card .icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.trust-card h3 { margin-top: 4px; font-size: 19px; font-weight: 800; }
.trust-card p { font-size: 15px; color: var(--ink-2); }
.ic-sage { background: var(--sage-wash); color: var(--sage-ink); }
.ic-coral { background: var(--coral-wash); color: var(--coral-ink); }
.ic-blue { background: var(--blue-wash); color: var(--blue-ink); }
.ic-gold { background: var(--golden-wash); color: var(--golden-ink); }

/* ---------- Steps ---------- */
.steps-title { margin-bottom: 36px; text-align: center; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.steps li { padding: 26px 24px; border-radius: 22px; display: flex; flex-direction: column; gap: 10px; }
.steps .num { font-family: var(--serif); font-style: italic; font-size: 44px; line-height: 1; font-weight: 500; }
.steps b { font-size: 19px; }
.steps .text { font-size: 15px; }
.step-1 { background: var(--white); }
.step-2 { background: var(--blue-wash); }
.step-3 { background: var(--golden-wash); }
.step-4 { background: var(--forest); color: var(--white); }

/* ---------- FAQ ---------- */
.faq { max-width: 920px; }
.faq h2 { margin-bottom: 28px; text-align: center; }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq details { border-radius: 18px; background: var(--white); border: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; padding: 20px 22px; font-weight: 800; font-size: 17px; list-style: none; cursor: pointer; border-radius: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-size: inherit; font-weight: inherit; }
.faq-plus { flex: 0 0 32px; height: 32px; border-radius: 50%; background: var(--cream); display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 400; transition: transform .2s ease; }
.faq details[open] .faq-plus { transform: rotate(45deg); }
.faq details p { padding: 0 22px 22px; color: var(--ink-2); font-size: 16px; }

/* ---------- Demo request ---------- */
.demo-section { padding-bottom: clamp(80px, 10vw, 120px); }
.demo-panel { position: relative; overflow: hidden; padding: clamp(24px, 5vw, 64px); border-radius: 36px; background: var(--forest); color: var(--white); display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.demo-panel .swoosh { position: absolute; right: -80px; top: -60px; width: 620px; opacity: 0.6; pointer-events: none; }
.demo-copy { position: relative; flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.demo-copy p { color: var(--on-dark); }
.demo-box { position: relative; flex: 1 1 400px; min-width: 0; padding: 26px; border-radius: 24px; background: var(--white); color: var(--ink); }
.demo-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 700; }
.field .opt { font-weight: 500; color: var(--muted); }
.field input, .field select { height: 48px; padding: 0 14px; border: 1.5px solid #8F877B; border-radius: 12px; background: var(--white); font-size: 16px; color: var(--ink); width: 100%; }
.field select { padding: 0 12px; }
.field input[aria-invalid="true"] { border-color: var(--coral-hover); box-shadow: 0 0 0 1px var(--coral-hover); }
.form-error { grid-column: 1 / -1; font-size: 14px; font-weight: 700; color: var(--coral-hover); }
.form-error:empty { display: none; }
.form-error a { color: var(--coral-hover); }
.demo-form .btn-coral { grid-column: 1 / -1; min-height: 54px; font-size: 17px; font-weight: 800; }
.form-fine { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.thanks { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; padding: 10px 4px; }
.thanks b { font-size: 24px; }
.thanks p { color: var(--ink-2); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-dark); font-size: 14px; }
.footer-top { max-width: 1240px; margin: 0 auto; padding: 56px var(--gutter) 36px; display: flex; flex-wrap: wrap; gap: 36px 56px; }
.footer-brand { flex: 1 1 280px; display: flex; flex-direction: column; gap: 14px; }
.footer-brand .lockup { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; align-self: flex-start; }
.footer-brand .lockup b { font-size: 22px; color: var(--white); letter-spacing: -0.01em; }
.footer-brand .tagline { font-size: 13px; font-weight: 700; letter-spacing: 0.18em; color: var(--golden); }
.footer-nav { flex: 2 1 480px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 24px; }
.footer-nav h2 { margin-bottom: 10px; font-size: 14px; color: var(--white); }
.footer-nav ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0; }
.footlink { display: inline-flex; align-items: center; min-height: 44px; color: var(--on-dark); text-decoration: none; }
.footlink:hover { color: var(--white); text-decoration: underline; }
button.footlink { padding: 0; border: 0; background: transparent; font-size: inherit; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); }
.footer-bottom-inner { max-width: 1240px; margin: 0 auto; padding: 18px var(--gutter) 26px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 24px; font-size: 13px; }
.footer-bottom ul { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; margin: 0; padding: 0; list-style: none; }
.redizoo { color: var(--white); font-weight: 800; text-decoration: none; }
.redizoo:hover { color: var(--white); text-decoration: underline; }
.redizoo span { color: #F08A6C; }

/* ---------- Cookie banner + preferences ---------- */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 40;
  width: min(960px, calc(100% - 32px));
  padding: 18px 20px;
  border-radius: 20px;
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 20px 50px rgba(30, 43, 39, 0.35);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner h2 { font-size: 16px; margin-bottom: 4px; }
.cookie-banner .copy { flex: 1 1 360px; }
.cookie-banner p { font-size: 15px; line-height: 1.5; color: #E4EAE7; }
.cookie-banner a { color: var(--white); font-weight: 700; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-cookie { min-height: 44px; padding: 0 18px; border-radius: 999px; font-size: 15px; font-weight: 700; }
.btn-cookie-primary { border: 0; background: var(--golden); color: var(--ink); font-weight: 800; }
.btn-cookie-primary:hover { background: #F0C46B; }
.btn-cookie-secondary { border: 1.5px solid rgba(255, 255, 255, 0.7); background: transparent; color: var(--white); }
.btn-cookie-secondary:hover { background: rgba(255, 255, 255, 0.08); }
.btn-cookie-link { border: 0; background: transparent; color: var(--white); text-decoration: underline; padding: 0 12px; }

.prefs-dialog { width: min(520px, calc(100% - 32px)); max-height: calc(100vh - 32px); overflow: auto; margin: auto; padding: 26px; border: 0; border-radius: 22px; background: var(--white); color: var(--ink); box-shadow: 0 30px 70px rgba(30, 43, 39, 0.3); }
.prefs-dialog[open] { display: flex; flex-direction: column; gap: 16px; }
.prefs-dialog::backdrop { background: rgba(30, 43, 39, 0.45); }
.prefs-dialog .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.prefs-dialog h2 { font-size: 22px; font-weight: 800; }
.icon-btn { flex: 0 0 44px; height: 44px; border: 0; border-radius: 10px; background: var(--cream); display: flex; align-items: center; justify-content: center; }
.pref-row { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--cream); }
.pref-row .text { flex: 1 1 auto; }
.pref-row .text b { display: block; }
.pref-row .text span { font-size: 14px; color: var(--ink-2); }
.always-on { flex: 0 0 auto; padding: 3px 10px; border-radius: 999px; background: var(--sage-wash); color: var(--sage-ink); font-size: 12px; font-weight: 800; }
.prefs-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }

/* ---------- Legal pages ---------- */
.legal-page { display: flex; flex-direction: column; min-height: 100vh; }
.legal-page main { flex: 1 1 auto; }
.legal-wrap { max-width: 820px; margin: 0 auto; padding: clamp(40px, 6vw, 72px) var(--gutter) 88px; line-height: 1.65; }
.legal-wrap .kicker { margin-bottom: 10px; }
.legal-wrap h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.05; font-weight: 800; letter-spacing: -0.03em; }
.legal-wrap .updated { margin: 12px 0 28px; font-size: 15px; color: #4F5753; }
.legal-summary { padding: 22px 24px; border-radius: 20px; background: var(--forest); color: var(--white); }
.legal .legal-summary h2 { margin: 0 0 8px; font-size: 18px; color: var(--golden); }
.legal-summary ul { margin: 0; padding-left: 22px; color: #E4EAE7; display: flex; flex-direction: column; gap: 8px; }
.legal-summary a { color: var(--white); font-weight: 700; }
.consent-now { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 16px 0 0; padding: 16px 18px; border-radius: 16px; background: var(--white); border: 1px solid var(--line); }
.consent-now span { flex: 1 1 auto; }
.legal h2 { margin: 44px 0 10px; font-size: 24px; line-height: 1.25; font-weight: 800; letter-spacing: -0.01em; }
.legal h3 { margin: 20px 0 4px; font-size: 17px; font-weight: 800; }
.legal p { margin: 0 0 12px; }
.legal ul { margin: 0 0 12px; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.legal code { padding: 1px 6px; border-radius: 6px; background: var(--cream-deep); font-size: 14px; overflow-wrap: anywhere; }
.legal table { width: 100%; table-layout: fixed; border-collapse: collapse; margin: 0 0 12px; font-size: 15px; }
.legal th:first-child { width: 44%; }
.legal td code { word-break: break-all; }
@media (max-width: 480px) {
  .legal th, .legal td { padding: 8px 6px; font-size: 14px; }
}
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.legal th { font-weight: 800; background: var(--white); }

@media print {
  .site-header, .cookie-banner, .prefs-dialog, .site-footer { display: none !important; }
  body { background: #FFFFFF; }
}
