/* Talk Oda marketing site. Hand-written, mobile first, no build step. */

/* ---------- Tokens (same palette as the app: platform/web/tailwind.config.js) ---------- */
:root {
  --ink: #1F1B4D;
  --ground: #F2F4FF;
  --paper: #FFFFFF;
  --cream: #FFF8E7;
  --brand: #4338CA;
  --brand-dark: #2E2A8F;
  --brand-soft: #DAD8FF;
  --sun: #FFC531;
  --sun-dark: #D99A00;
  --sun-soft: #FFE9A8;
  --sun-ink: #3A2A00;
  --mint: #2BC4A0;
  --mint-dark: #0B7F67;
  --mint-soft: #D8F5EC;
  --mint-ink: #0A3D32;
  --lav: #BFA2DC;          /* background colour of the character pictures */
  --lav-soft: #EDE3F8;
  --muted: #4A4870;
  --line: #DCE0F5;
  --danger: #A3123A;
  --display: 'Baloo 2', 'Nunito', system-ui, sans-serif;
  --body: 'Nunito', 'Segoe UI', system-ui, sans-serif;
  --wrap: 1120px;
  --gutter: 20px;
  --r-card: 24px;
  --shadow-card: 0 5px 0 #D5DAF5;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.12; margin: 0; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }
:focus-visible { outline: 3px solid var(--sun-dark); outline-offset: 3px; border-radius: 6px; }
[id] { scroll-margin-top: 84px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--sun); color: var(--sun-ink); font-weight: 800;
  padding: 10px 16px; border-radius: 12px; text-decoration: none;
}
.skip:focus { top: 12px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Buttons: chunky, "pressable", like the app ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--body); font-weight: 800; font-size: 1.05rem; line-height: 1.2;
  padding: 14px 24px; border-radius: 16px; text-decoration: none; text-align: center;
  border: 0; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:active { transform: translateY(3px); }
.btn-sun { background: var(--sun); color: var(--sun-ink); box-shadow: 0 5px 0 var(--sun-dark); }
.btn-sun:hover { color: var(--sun-ink); background: #FFD054; }
.btn-sun:active { box-shadow: 0 2px 0 var(--sun-dark); }
.btn-brand { background: var(--brand); color: #fff; box-shadow: 0 5px 0 var(--brand-dark); }
.btn-brand:hover { color: #fff; background: #4F44D6; }
.btn-brand:active { box-shadow: 0 2px 0 var(--brand-dark); }
.btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px #9A94F2; }
.btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.btn-line { background: var(--paper); color: var(--brand); box-shadow: inset 0 0 0 2px var(--line), 0 4px 0 var(--line); }
.btn-small { padding: 10px 16px; font-size: .95rem; border-radius: 13px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 800; font-size: 1.55rem; line-height: 1;
  color: var(--brand); text-decoration: none;
}
.logo img { width: 40px; height: 40px; border-radius: 12px; }
.logo:hover { color: var(--brand-dark); }
.site-nav { display: none; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 700; padding: 8px 2px; }
.site-nav a:hover { color: var(--brand); }
@media (min-width: 940px) {
  .site-nav { display: flex; align-items: center; gap: 22px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--brand-dark);
  color: #fff;
  overflow: hidden;
}
.hero::before, .hero::after {
  content: ''; position: absolute; border-radius: 50%; pointer-events: none;
}
.hero::before { width: 420px; height: 420px; left: -180px; top: -200px; background: #3A35A8; }
.hero::after { width: 300px; height: 300px; right: -140px; bottom: -60px; background: #3A35A8; }
.hero .wrap {
  position: relative; z-index: 1;
  display: grid; gap: 36px;
  padding-top: 40px; padding-bottom: 76px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase;
}
.hero .eyebrow {
  align-self: flex-start;
  background: rgba(255, 255, 255, .12); color: var(--sun-soft);
  padding: 7px 14px; border-radius: 999px;
}
.hero .eyebrow::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--sun); }
.hero-copy { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.hero h1 { font-weight: 800; font-size: clamp(2.3rem, 9.5vw, 3.9rem); letter-spacing: -.01em; }
.hero h1 em { font-style: normal; color: var(--sun); }
.hero .lead { font-size: 1.15rem; color: #E4E2FF; max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.hero-note { font-size: .95rem; color: #D2CFFF; max-width: 32rem; }
.hero-note strong { color: #fff; }

.hero-art { margin: 0; justify-self: center; width: min(100%, 380px); padding-top: 6px; }
.hero-stage { position: relative; }
.hero-art .sun-disc {
  position: absolute; width: 74%; aspect-ratio: 1; border-radius: 50%;
  background: var(--sun); right: -9%; top: -4%;
}
.arch {
  position: relative;
  border-radius: 999px 999px 36px 36px;
  overflow: hidden;
  background: var(--lav);
  border: 6px solid #fff;
  box-shadow: 0 12px 0 rgba(17, 14, 68, .55);
  width: 78%; margin-left: 4%;
}
.arch img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; }
.bubble {
  position: absolute; max-width: 62%;
  font-weight: 800; font-size: .98rem; line-height: 1.3;
  padding: 11px 15px; box-shadow: 0 5px 0 rgba(17, 14, 68, .35);
}
.bubble-defi { background: #fff; color: var(--ink); border-radius: 20px 20px 20px 6px; right: 0; top: 30%; }
.bubble-child { background: var(--sun); color: var(--sun-ink); border-radius: 20px 20px 6px 20px; right: 2%; top: 56%; }
.bubble-defi2 { background: #fff; color: var(--ink); border-radius: 20px 20px 20px 6px; right: 0; bottom: 3%; }
.hero-art figcaption { margin-top: 26px; font-size: .82rem; color: #C9C5FF; text-align: center; }
.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 44px; z-index: 1; display: block; }

@media (prefers-reduced-motion: no-preference) {
  .arch { animation: bob 5s ease-in-out infinite; }
  .bubble { animation: pop .5s ease-out both; }
  .bubble-child { animation-delay: .5s; }
  .bubble-defi2 { animation-delay: 1s; }
}
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes pop { from { transform: scale(.85) translateY(8px); } to { transform: none; } }

@media (min-width: 860px) {
  .hero .wrap { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 48px; padding-top: 64px; padding-bottom: 104px; }
  .hero-art { width: min(100%, 440px); }
  .hero-wave { height: 70px; }
}

/* ---------- Sections ---------- */
.section { padding: 64px 0; position: relative; }
.section-tight { padding: 44px 0; }
.section-paper { background: var(--paper); }
.section-cream { background: var(--cream); }
.section-indigo { background: var(--brand-dark); color: #fff; }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 44rem; margin-bottom: 32px; }
.section-head .eyebrow { color: var(--brand); }
.section-indigo .section-head .eyebrow { color: var(--sun); }
.section-head h2 { font-weight: 800; font-size: clamp(1.9rem, 6.4vw, 2.75rem); }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.section-indigo .section-head p { color: #DEDCFF; }
.mark {
  background: linear-gradient(transparent 58%, var(--sun) 58%, var(--sun) 92%, transparent 92%);
  padding: 0 .08em;
}
.fine { font-size: .9rem; color: var(--muted); }
.section-indigo .fine { color: #CFCBFF; }

.card {
  background: var(--paper); border-radius: var(--r-card); padding: 22px;
  box-shadow: var(--shadow-card);
}
.card h3 { font-size: 1.35rem; font-weight: 700; margin-bottom: 6px; }
.card p { color: var(--muted); }
.tag {
  display: inline-block; font-weight: 800; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark);
}
.tag-sun { background: var(--sun-soft); color: var(--sun-ink); }
.tag-mint { background: var(--mint-soft); color: var(--mint-ink); }

/* ---------- Talk section ---------- */
.talk-grid { display: grid; gap: 28px; }
.talk-steps { list-style: none; display: flex; flex-direction: column; gap: 14px; counter-reset: step; }
.talk-steps li {
  counter-increment: step; position: relative;
  background: var(--paper); border-radius: 20px; padding: 16px 18px 16px 66px;
  box-shadow: var(--shadow-card);
}
.talk-steps li::before {
  content: counter(step);
  position: absolute; left: 16px; top: 16px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--brand); color: #fff;
  font-family: var(--display); font-weight: 800; font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
}
.talk-steps strong { display: block; font-family: var(--display); font-size: 1.2rem; font-weight: 700; line-height: 1.2; }
.talk-steps span { color: var(--muted); font-size: 1rem; }

.screen {
  background: var(--paper); border-radius: 30px; padding: 14px;
  box-shadow: 0 0 0 2px var(--line), 0 10px 0 #CDD3F4;
}
.screen-scene { border-radius: 20px; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.screen-row { display: flex; align-items: center; gap: 12px; padding: 14px 6px 4px; }
.face { width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0; background: var(--lav); object-fit: cover; }
.face-ring { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--mint); }
.screen-row p { font-weight: 800; line-height: 1.3; }
.screen-row small { display: block; font-weight: 600; color: var(--muted); font-size: .88rem; }
.wave { display: inline-flex; align-items: center; gap: 3px; height: 22px; margin-left: auto; flex-shrink: 0; }
.wave i { width: 4px; border-radius: 4px; background: var(--mint); height: 40%; }
.wave i:nth-child(2) { height: 90%; } .wave i:nth-child(3) { height: 60%; }
.wave i:nth-child(4) { height: 100%; } .wave i:nth-child(5) { height: 50%; }
@media (prefers-reduced-motion: no-preference) {
  .wave i { animation: wave 1.1s ease-in-out infinite; transform-origin: center; }
  .wave i:nth-child(2) { animation-delay: .15s; } .wave i:nth-child(3) { animation-delay: .3s; }
  .wave i:nth-child(4) { animation-delay: .45s; } .wave i:nth-child(5) { animation-delay: .6s; }
}
@keyframes wave { 0%, 100% { transform: scaleY(.5); } 50% { transform: scaleY(1); } }
.chips { display: flex; flex-wrap: wrap; gap: 7px; list-style: none; }
.chips li, .chip {
  font-weight: 800; font-size: .9rem; padding: 5px 12px; border-radius: 999px;
  background: var(--ground); color: var(--ink); box-shadow: inset 0 0 0 2px var(--line);
}
.chips .used { background: var(--mint-soft); color: var(--mint-ink); box-shadow: inset 0 0 0 2px #9FE3D0; }
.chips .used::before { content: '✓ '; }
.screen-foot { padding: 10px 6px 4px; }
.screen-foot .fine { margin-bottom: 8px; font-weight: 700; }

.feedback {
  background: var(--paper); border-radius: 30px; padding: 22px;
  box-shadow: 0 0 0 2px var(--line), 0 10px 0 #CDD3F4;
  display: flex; flex-direction: column; gap: 16px;
}
.feedback h3 { font-size: 1.45rem; font-weight: 800; }
.fb-block h4 { font-family: var(--body); font-size: .82rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.fb-good { background: var(--mint-soft); color: var(--mint-ink); border-radius: 16px; padding: 12px 14px; font-weight: 700; }
.fb-fix { border-radius: 16px; background: var(--ground); padding: 12px 14px; display: grid; gap: 4px; }
.fb-fix + .fb-fix { margin-top: 8px; }
.fb-fix .said { color: var(--danger); font-weight: 700; text-decoration: line-through; text-decoration-thickness: 2px; }
.fb-fix .better { color: var(--mint-dark); font-weight: 800; }
.fb-fix .why { color: var(--muted); font-size: .92rem; }
.fb-next { background: var(--sun-soft); color: var(--sun-ink); border-radius: 16px; padding: 12px 14px; font-weight: 700; }
.fb-level { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.level-pill {
  font-family: var(--display); font-weight: 800; font-size: 1.5rem; line-height: 1;
  background: var(--brand); color: #fff; padding: 9px 16px; border-radius: 14px;
}
.fb-level p { font-size: .92rem; color: var(--muted); flex: 1 1 200px; }
.sample-label { font-size: .82rem; color: var(--muted); text-align: center; margin-top: 12px; }

.two-talks { display: grid; gap: 16px; margin-top: 36px; }
.scene-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.scene-strip img { border-radius: 12px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

@media (min-width: 900px) {
  .talk-grid { grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
  .two-talks { grid-template-columns: 1fr 1fr; }
}

/* ---------- Lessons: ladder + exercise samples ---------- */
.ladder { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.ladder li {
  display: flex; align-items: center; gap: 14px;
  border-radius: 18px; padding: 12px 16px; color: #fff;
  box-shadow: 0 5px 0 rgba(17, 14, 68, .28);
}
.ladder b {
  font-family: var(--display); font-weight: 800; font-size: 1.5rem; line-height: 1;
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  background: rgba(255, 255, 255, .22); display: flex; align-items: center; justify-content: center;
}
.ladder strong { display: block; font-family: var(--display); font-size: 1.2rem; font-weight: 700; line-height: 1.2; }
.ladder span { font-size: .95rem; opacity: .95; }
.ladder li:nth-child(1) { width: 76%; background: #0B7F67; }
.ladder li:nth-child(2) { width: 82%; background: #0F7480; }
.ladder li:nth-child(3) { width: 88%; background: #1F6399; }
.ladder li:nth-child(4) { width: 94%; background: #3350B4; }
.ladder li:nth-child(5) { width: 100%; background: var(--brand); }
.ladder li:nth-child(6) { width: 100%; background: var(--brand-dark); }
@media (max-width: 520px) {
  .ladder li:nth-child(n) { width: 100%; }
  .ladder li:nth-child(1) { margin-right: 15%; width: 85%; }
  .ladder li:nth-child(2) { margin-right: 12%; width: 88%; }
  .ladder li:nth-child(3) { margin-right: 9%; width: 91%; }
  .ladder li:nth-child(4) { margin-right: 6%; width: 94%; }
  .ladder li:nth-child(5) { margin-right: 3%; width: 97%; }
}
.lesson-grid { display: grid; gap: 28px; }
.lesson-facts { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.lesson-facts li { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; }
.lesson-facts .num {
  font-family: var(--display); font-weight: 800; font-size: 1.5rem; line-height: 1;
  min-width: 56px; padding: 10px 8px; text-align: center; border-radius: 14px;
  background: var(--sun-soft); color: var(--sun-ink);
}
.lesson-facts strong { display: block; font-family: var(--display); font-size: 1.2rem; font-weight: 700; line-height: 1.2; }
.lesson-facts span { color: var(--muted); }
@media (min-width: 900px) { .lesson-grid { grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: start; } }

.ex-title { font-weight: 800; font-size: 1.5rem; margin: 48px 0 6px; }
.ex-grid { display: grid; gap: 16px; margin-top: 18px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .ex-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .ex-grid { grid-template-columns: 1fr 1fr 1fr; } }
.ex {
  background: var(--paper); border-radius: var(--r-card); padding: 18px;
  box-shadow: 0 0 0 2px var(--line), 0 6px 0 #D5DAF5;
  display: flex; flex-direction: column; gap: 12px; min-width: 0;
}
.ex-head { display: flex; align-items: center; gap: 10px; }
.ex-head .face { width: 44px; height: 44px; }
.ex-head h4 { font-size: 1.2rem; font-weight: 700; }
.ex-head small { display: block; font-family: var(--body); font-weight: 700; font-size: .8rem; color: var(--muted); }
.player {
  display: flex; align-items: center; gap: 10px;
  background: var(--ground); border-radius: 14px; padding: 9px 12px; font-weight: 700; min-width: 0;
}
.player .play {
  width: 32px; height: 32px; border-radius: 50%; background: var(--brand); flex-shrink: 0; position: relative;
}
.player .play::after {
  content: ''; position: absolute; left: 12px; top: 9px;
  border-left: 11px solid #fff; border-top: 7px solid transparent; border-bottom: 7px solid transparent;
}
.player span { overflow-wrap: anywhere; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tiles img { border-radius: 12px; aspect-ratio: 1; object-fit: cover; width: 100%; box-shadow: 0 0 0 2px var(--line); }
.tiles img.pick { box-shadow: 0 0 0 4px var(--mint); }
.opts { display: grid; gap: 8px; list-style: none; }
.opts li {
  font-weight: 800; padding: 9px 14px; border-radius: 13px; background: var(--paper);
  box-shadow: inset 0 0 0 2px var(--line);
}
.opts .pick { background: var(--mint-soft); color: var(--mint-ink); box-shadow: inset 0 0 0 2px var(--mint); }
.build { min-height: 46px; border-bottom: 3px dashed var(--line); padding-bottom: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.build .chip { background: var(--brand-soft); color: var(--brand-dark); box-shadow: none; }
.typed {
  font-weight: 800; font-size: 1.25rem; letter-spacing: .12em; padding: 10px 14px; border-radius: 13px;
  background: var(--paper); box-shadow: inset 0 0 0 2px var(--brand);
}
.typed::after { content: ''; display: inline-block; width: 2px; height: 1.1em; background: var(--brand); vertical-align: -3px; margin-left: 3px; }
.mic {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; padding: 9px 16px; border-radius: 999px;
  background: var(--sun); color: var(--sun-ink); box-shadow: 0 4px 0 var(--sun-dark);
}
.mic::before { content: ''; width: 10px; height: 16px; border-radius: 6px; background: var(--sun-ink); }
.ex .scene { border-radius: 14px; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.ex .ex-note { font-size: .92rem; color: var(--muted); margin-top: auto; }

.trio { display: grid; gap: 16px; margin-top: 40px; }
@media (min-width: 820px) { .trio { grid-template-columns: repeat(3, 1fr); } }
.trio .card { border-top: 8px solid var(--sun); }
.trio .card:nth-child(2) { border-top-color: var(--mint); }
.trio .card:nth-child(3) { border-top-color: var(--brand); }
.mini-cross { display: grid; grid-template-columns: repeat(5, 26px); gap: 3px; margin-top: 12px; }
.mini-cross i {
  width: 26px; height: 26px; border-radius: 6px; background: var(--ground); box-shadow: inset 0 0 0 2px var(--line);
  font-style: normal; font-weight: 800; font-size: .85rem; text-transform: uppercase;
  display: flex; align-items: center; justify-content: center;
}
.mini-cross i.off { visibility: hidden; }

/* ---------- School ---------- */
.school-grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .school-grid { grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; } }
.grades { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.grades li {
  font-family: var(--display); font-weight: 800; font-size: 1.3rem; line-height: 1;
  width: 54px; height: 54px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: var(--paper); color: var(--muted); box-shadow: inset 0 0 0 2px var(--line);
}
.grades li.pilot { background: var(--sun); color: var(--sun-ink); box-shadow: 0 5px 0 var(--sun-dark); }
.pilot-card { background: var(--paper); border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow-card); }
.pilot-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.pilot-card div { padding: 18px 20px 20px; display: grid; gap: 8px; }
.pilot-card h3 { font-size: 1.4rem; font-weight: 800; }
.pilot-card p { color: var(--muted); }

/* ---------- Characters ---------- */
.cast { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .cast { grid-template-columns: repeat(3, 1fr); } }
.cast-card {
  background: var(--paper); border-radius: var(--r-card); overflow: hidden;
  box-shadow: 0 6px 0 rgba(17, 14, 68, .4); color: var(--ink);
  display: flex; flex-direction: column; min-width: 0;
}
.cast-card img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--lav); }
.cast-card div { padding: 12px 14px 16px; }
.cast-card h3 { font-size: 1.4rem; font-weight: 800; }
.cast-card .kind { font-weight: 800; font-size: .78rem; letter-spacing: .05em; text-transform: uppercase; color: var(--brand); }
.cast-card p { font-size: .95rem; color: var(--muted); margin-top: 4px; }
.cast-lead { grid-column: 1 / -1; }
.cast-lead img { aspect-ratio: 4 / 3; object-position: 50% 22%; }
/* 3 columns: Defi as a wide card on top, six helpers in two rows below */
@media (min-width: 700px) and (max-width: 999.98px) {
  .cast-lead { display: grid; grid-template-columns: 300px 1fr; align-items: center; }
  .cast-lead img { aspect-ratio: 1; }
  .cast-lead div { padding: 20px 24px; }
}
/* 5 columns: Defi takes 2 x 2, six helpers fill the remaining six cells */
@media (min-width: 1000px) {
  .cast { grid-template-columns: repeat(5, 1fr); }
  .cast-lead { grid-column: span 2; grid-row: span 2; }
  .cast-lead img { flex: 1 1 0; height: 0; min-height: 0; aspect-ratio: auto; object-position: 50% 18%; }
}
@media (min-width: 700px) {
  .cast-lead h3 { font-size: 2rem; }
  .cast-lead p { font-size: 1.05rem; }
}

/* ---------- Journey ---------- */
.journey-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .journey-grid { grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; } }
.journey-pic { position: relative; max-width: 380px; margin: 0 auto; width: 100%; }
.journey-pic .map { border-radius: 32px; border: 6px solid #fff; box-shadow: 0 10px 0 #CDD3F4; width: 100%; }
.journey-pic .car { position: absolute; width: 30%; left: -6%; bottom: 7%; filter: drop-shadow(0 6px 0 rgba(31, 27, 77, .25)); }
.road { list-style: none; display: flex; flex-direction: column; gap: 0; margin-top: 22px; }
.road li { position: relative; padding: 0 0 18px 46px; }
.road li::before {
  content: ''; position: absolute; left: 15px; top: 4px; bottom: -4px; width: 6px; border-radius: 3px;
  background: repeating-linear-gradient(var(--line) 0 10px, transparent 10px 16px);
}
.road li:last-child::before { display: none; }
.road li::after {
  content: ''; position: absolute; left: 6px; top: 2px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--paper); box-shadow: inset 0 0 0 5px var(--line);
}
.road li.stop::after { background: var(--sun); box-shadow: inset 0 0 0 5px var(--sun-dark); }
.road strong { font-family: var(--display); font-size: 1.2rem; font-weight: 700; line-height: 1.2; display: block; }
.road span { color: var(--muted); font-size: .98rem; }

/* ---------- Parents ---------- */
.trust { display: grid; gap: 16px; }
@media (min-width: 700px) { .trust { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .trust { grid-template-columns: 1fr 1fr 1fr; } }
.trust .card { border-left: 8px solid var(--mint); border-radius: 18px var(--r-card) var(--r-card) 18px; }
.trust .card h3 { font-size: 1.25rem; }
.dataflow { margin-top: 28px; background: var(--paper); border-radius: var(--r-card); padding: 22px; box-shadow: var(--shadow-card); }
.dataflow h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: 14px; }
.dataflow ol { list-style: none; display: grid; gap: 12px; }
@media (min-width: 860px) { .dataflow ol { grid-template-columns: repeat(3, 1fr); } }
.dataflow li { background: var(--ground); border-radius: 16px; padding: 14px 16px; }
.dataflow strong { display: block; font-weight: 800; }
.dataflow span { color: var(--muted); font-size: .97rem; }

.soon { margin-top: 28px; border: 3px dashed #B9B5F5; border-radius: var(--r-card); padding: 20px 22px; }
.soon h3 { font-size: 1.3rem; font-weight: 800; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.soon ul { margin: 10px 0 0 1.2em; color: var(--muted); }
.soon li { margin-top: 4px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 800px; }
.faq details { background: var(--paper); border-radius: 18px; box-shadow: var(--shadow-card); }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 52px 16px 20px; position: relative;
  font-family: var(--display); font-weight: 700; font-size: 1.2rem; line-height: 1.25;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-dark);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.3rem; line-height: 1;
}
.faq details[open] summary::after { content: '–'; background: var(--sun); color: var(--sun-ink); }
.faq .answer { padding: 0 20px 18px; color: var(--muted); display: grid; gap: 8px; }

/* ---------- Final call ---------- */
.cta { text-align: center; }
.cta .wrap { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.cta img { width: 120px; height: 120px; border-radius: 50%; border: 5px solid #fff; box-shadow: 0 8px 0 rgba(17, 14, 68, .5); }
.cta h2 { font-weight: 800; font-size: clamp(1.9rem, 6.4vw, 2.6rem); max-width: 22ch; }
.cta p { color: #DEDCFF; max-width: 36rem; }
.cta .hero-actions { justify-content: center; }
.early {
  font-weight: 800; color: var(--sun-soft);
  background: rgba(255, 255, 255, .1); padding: 10px 18px; border-radius: 14px;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #D2CFFF; padding: 36px 0 44px; font-size: .97rem; }
.site-footer .wrap { display: grid; gap: 20px; }
@media (min-width: 760px) { .site-footer .wrap { grid-template-columns: 1.2fr 1fr; align-items: start; } }
.site-footer .logo { color: #fff; }
.site-footer .family { margin-top: 6px; font-weight: 700; color: #fff; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: #fff; font-weight: 700; }
.site-footer .legal { margin-top: 10px; font-size: .88rem; color: #B9B5E8; }

/* ---------- Booklet (kitapcik.html) ---------- */
.book-hero { background: var(--brand-dark); color: #fff; position: relative; overflow: hidden; }
.book-hero .wrap { display: grid; gap: 22px; padding-top: 40px; padding-bottom: 48px; align-items: center; }
.book-hero h1 { font-weight: 800; font-size: clamp(2.1rem, 8vw, 3.2rem); }
.book-hero p { color: #E4E2FF; font-size: 1.12rem; max-width: 38rem; margin-top: 12px; }
.book-hero .eyebrow { color: var(--sun); margin-bottom: 10px; }
.book-hero img { width: 150px; height: 150px; border-radius: 50%; border: 5px solid #fff; box-shadow: 0 8px 0 rgba(17, 14, 68, .5); }
.book-hero .hero-actions { margin-top: 18px; }
@media (min-width: 760px) { .book-hero .wrap { grid-template-columns: 1fr auto; } .book-hero img { width: 200px; height: 200px; } }

.book { display: grid; gap: 28px; padding-top: 36px; padding-bottom: 64px; }
.toc { background: var(--paper); border-radius: var(--r-card); padding: 18px 22px; box-shadow: var(--shadow-card); align-self: start; }
.toc h2 { font-size: 1.15rem; font-weight: 800; margin-bottom: 8px; }
.toc ol { margin-left: 1.3em; display: grid; gap: 4px; font-weight: 700; }
.toc a { text-decoration: none; color: var(--ink); }
.toc a:hover { color: var(--brand); text-decoration: underline; }
@media (min-width: 1000px) {
  .book { grid-template-columns: 250px minmax(0, 1fr); gap: 56px; }
  .toc { position: sticky; top: 88px; }
}
.prose { max-width: 44rem; min-width: 0; font-size: 1.1rem; line-height: 1.7; }
.prose section + section { margin-top: 52px; padding-top: 8px; }
.prose h2 { font-weight: 800; font-size: clamp(1.7rem, 5.6vw, 2.2rem); margin-bottom: 14px; display: flex; gap: 12px; align-items: baseline; }
.prose h2 .n { color: var(--sun-dark); flex-shrink: 0; }
.prose h3 { font-weight: 700; font-size: 1.35rem; margin: 28px 0 8px; }
.prose p + p, .prose ul + p, .prose ol + p, .prose p + ul, .prose p + ol { margin-top: 12px; }
.prose ul, .prose ol { margin-left: 1.3em; }
.prose li + li { margin-top: 6px; }
.prose .note {
  margin-top: 18px; background: var(--sun-soft); color: var(--sun-ink);
  border-radius: 16px; padding: 14px 18px; font-size: 1rem;
}
.prose .note-mint { background: var(--mint-soft); color: var(--mint-ink); }
.prose figure { margin: 20px 0 0; }
.prose figure img { border-radius: 20px; width: 100%; }
.prose figcaption { font-size: .9rem; color: var(--muted); margin-top: 8px; }
.steps4 { list-style: none; margin: 18px 0 0 !important; display: grid; gap: 12px; }
@media (min-width: 620px) { .steps4 { grid-template-columns: 1fr 1fr; } }
.steps4 li { background: var(--paper); border-radius: 18px; padding: 14px 16px; box-shadow: var(--shadow-card); margin: 0 !important; font-size: 1rem; line-height: 1.5; color: var(--muted); }
.steps4 strong { display: block; font-family: var(--display); font-size: 1.25rem; color: var(--ink); }
.table-scroll { overflow-x: auto; margin-top: 16px; border-radius: 16px; box-shadow: 0 0 0 2px var(--line); background: var(--paper); }
table { border-collapse: collapse; width: 100%; font-size: .98rem; line-height: 1.45; }
@media (max-width: 600px) { .table-scroll table { min-width: 520px; } }
th, td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 2px solid var(--line); }
tr:last-child td { border-bottom: 0; }
thead th { background: var(--brand-soft); color: var(--brand-dark); font-weight: 800; }
td:first-child { font-weight: 800; }
.units { list-style: none; margin: 18px 0 0 !important; display: grid; gap: 12px; }
.units li { display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: center; background: var(--paper); border-radius: 18px; padding: 10px; box-shadow: var(--shadow-card); margin: 0 !important; font-size: 1rem; line-height: 1.45; }
.units img { width: 76px; height: 76px; border-radius: 12px; object-fit: cover; }
.units strong { font-family: var(--display); font-size: 1.15rem; display: block; line-height: 1.2; }
.units span { color: var(--muted); }
.units .pilot { box-shadow: 0 0 0 3px var(--sun), 0 5px 0 var(--sun-dark); }
.cast-list { list-style: none; margin: 16px 0 0 !important; display: grid; gap: 10px; }
.cast-list li { display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: center; margin: 0 !important; font-size: 1rem; line-height: 1.45; }
.yesno { display: grid; gap: 16px; margin-top: 16px; }
@media (min-width: 700px) { .yesno { grid-template-columns: 1fr 1fr; } }
.yesno > div { background: var(--paper); border-radius: 18px; padding: 16px 18px; box-shadow: var(--shadow-card); font-size: 1rem; line-height: 1.5; }
.yesno h3 { margin: 0 0 8px; font-size: 1.2rem; }
.yesno ul { margin-left: 1.2em; }

/* ---------- 404 ---------- */
.lost { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; background: var(--brand-dark); color: #fff; padding: 32px 20px; }
.lost div { display: flex; flex-direction: column; align-items: center; gap: 16px; max-width: 30rem; }
.lost img { width: 170px; height: 170px; border-radius: 50%; border: 6px solid #fff; box-shadow: 0 10px 0 rgba(17, 14, 68, .5); }
.lost h1 { font-weight: 800; font-size: clamp(2rem, 8vw, 2.8rem); }
.lost p { color: #E4E2FF; }

/* ---------- Motion and print ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media print {
  @page { margin: 18mm 16mm; }
  body { background: #fff; color: #000; font-size: 11pt; overflow: visible; }
  .site-header, .site-footer nav, .skip, .toc, .no-print, .book-hero .hero-actions { display: none !important; }
  .book-hero { background: #fff; color: #000; border-bottom: 2pt solid #000; }
  .book-hero .wrap { padding: 0 0 12pt; }
  .book-hero p, .book-hero .eyebrow { color: #000; }
  .book-hero img { box-shadow: none; border: 0; width: 90px; height: 90px; }
  .book { display: block; padding: 12pt 0 0; }
  .wrap { max-width: none; padding: 0; }
  .prose { max-width: none; font-size: 11pt; line-height: 1.5; }
  .prose section + section { margin-top: 22pt; }
  .prose h2, .prose h3 { break-after: avoid; }
  .prose h2 .n { color: #000; }
  .steps4 li, .units li, .yesno > div, .table-scroll, .prose .note, .cast-list li, tr, figure { break-inside: avoid; }
  .steps4 li, .units li, .yesno > div { box-shadow: none; border: 1pt solid #999; }
  .units .pilot { border: 2pt solid #000; box-shadow: none; }
  .table-scroll { overflow: visible; box-shadow: none; border: 1pt solid #999; }
  .table-scroll table { min-width: 0; }
  thead th { background: #eee; color: #000; }
  .prose .note { background: #fff; color: #000; border: 1pt solid #999; }
  a { color: #000; text-decoration: none; }
  .site-footer { background: #fff; color: #000; padding: 14pt 0 0; border-top: 1pt solid #999; margin-top: 18pt; }
  .site-footer .logo, .site-footer .family, .site-footer .legal { color: #000; }
}

/* Hero highlights for parents */
.hero-chips { margin: 14px 0 18px; }
.hero-chips li { display: inline-flex; align-items: center; gap: 6px; }

/* What happens at a level stop: three numbers, then the rules */
.gate { margin-top: 36px; }
.gate-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 16px 0 6px; }
.gate-grid > div { background: #fff; border-radius: 20px; padding: 16px 18px; box-shadow: 0 3px 0 #D9DDF7; }
.gate-num { font-family: var(--display, 'Baloo 2', sans-serif); font-size: 2.6rem; font-weight: 800; line-height: 1; color: var(--brand, #4338CA); font-variant-numeric: tabular-nums; }
.gate-label { font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: .8rem; color: var(--muted, #4A4870); margin-bottom: 6px; }
.gate-grid p:last-child { color: var(--muted, #4A4870); font-size: .95rem; }
@media (max-width: 720px) { .gate-grid { grid-template-columns: 1fr; } }

/* Which outside exam a stop corresponds to */
.road .equiv { display: inline-block; margin-top: 4px; padding: 2px 10px; border-radius: 999px; background: var(--sun-soft, #FFE9A8); color: var(--sun-ink, #3A2A00); font-size: .82rem; font-weight: 800; }
.road li > span { display: block; }
.road li > span.equiv { display: inline-block; }
