/* ============================================================
   Skealed — Main Stylesheet
============================================================ */

/* ============================================================
   VARIABLES
============================================================ */
:root {
  --bg: #FCF8EC;
  --bg2: #F0E8D5;
  --surface: #FFFFFF;
  --surface2: #EDE8D8;
  --deep: #264653;
  --deep2: #1A3040;
  --blue: #2A9D8F;
  --blue-dim: rgba(42,157,143,0.10);
  --blue-glow: rgba(42,157,143,0.25);
  --teal: #2A9D8F;
  --teal-dim: rgba(42,157,143,0.10);
  --green: #16A364;
  --green-dim: rgba(22,163,100,0.10);
  --orange: #E76F51;
  --orange-dim: rgba(231,111,81,0.10);
  --text: #1D2E35;
  --muted: #5F7A82;
  --border: #DDD5C4;
  --gold: #D4A853;
  --zoe8-bg: #FDF0EC; --zoe8: #E76F51;
  --zoe11-bg: #E6F5F3; --zoe11: #2A9D8F;
  --zoe14-bg: #EDE9FF; --zoe14: #8B5CF6;
  --zoe16-bg: #E8EEF0; --zoe16: #264653;
  --zoe-skin: #FDBCB4;
  --font-h: 'Bricolage Grotesque', sans-serif;
  --font-b: 'Inter', sans-serif;
  --font-a: 'Syne', sans-serif;
  --shadow: 0 4px 24px rgba(30,58,95,0.08);
  --shadow-hover: 0 8px 32px rgba(30,58,95,0.14);
  --r-card: 20px;
  --r-btn: 100px;
}

/* ============================================================
   RESET
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-b); background: var(--bg); color: var(--text); line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: var(--font-b); }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ============================================================
   NAVIGATION
============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  padding: 20px 0;
  transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
}
.nav.scrolled {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--border);
  padding: 14px 0;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
}
.logo {
  font-family: var(--font-h); font-size: 22px; font-weight: 800;
  color: var(--text); transition: color 0.3s;
}
.logo-kids { color: var(--teal); }

.nav-links {
  display: flex; align-items: center; gap: 32px;
}
.nav-links a {
  font-size: 15px; font-weight: 500; color: var(--muted);
  transition: color 0.2s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -3px; left: 0;
  width: 0; height: 2px; background: var(--blue);
  transition: width 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-links .btn-blue,
.nav-links .btn-orange { color: white; }
.nav-links .btn-blue:hover,
.nav-links .btn-orange:hover { color: white; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 24px; border-radius: var(--r-btn);
  font-weight: 600; font-size: 15px;
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.18); }
.btn-orange { background: var(--orange); color: white; }
.btn-blue { background: var(--blue); color: white; }
.btn-blue:hover { background: var(--deep2); }
.btn-outline-white { background: transparent; border: 1.5px solid rgba(255,255,255,0.5); color: white; }
.btn-outline-white:hover { border-color: white; }
.btn-outline-deep { background: transparent; border: 1.5px solid var(--deep); color: var(--deep); }
.btn-outline-deep:hover { background: var(--blue-dim); border-color: var(--blue); color: var(--blue); }
.btn-teal { background: var(--teal); color: white; }
.btn-dark { background: var(--text); color: white; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px; z-index: 300;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--deep); border-radius: 2px; transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile overlay */
.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 250;
  background: var(--deep);
  flex-direction: column; align-items: center; justify-content: center;
  gap: 36px;
}
.mobile-menu.open { display: flex; }
.mobile-menu-close {
  position: absolute; top: 24px; right: 24px;
  background: none; border: none; color: white;
  font-size: 28px; cursor: pointer; line-height: 1;
  padding: 4px 8px; opacity: 0.7; transition: opacity 0.2s;
}
.mobile-menu-close:hover { opacity: 1; }
.mobile-menu a {
  font-family: var(--font-h); font-size: 28px; font-weight: 700;
  color: white; transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--orange); }
.mobile-menu .btn { font-size: 18px; padding: 14px 36px; }

/* ============================================================
   NOISE TEXTURE (dark sections)
============================================================ */
.noise::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  opacity: 0.5;
}

/* ============================================================
   HERO
============================================================ */
.hero {
  background: linear-gradient(160deg, #FCF8EC 0%, #EDE8D8 50%, #FCF8EC 100%);
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 100px 0 80px; position: relative; overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center; position: relative; z-index: 1;
}
.hero-headline {
  font-family: var(--font-h); font-size: clamp(42px, 5.5vw, 72px);
  font-weight: 800; color: var(--deep); line-height: 1.08; margin-bottom: 24px;
}
.w {
  display: inline-block; opacity: 0; transform: translateY(20px);
  animation: wIn 0.5s forwards;
}
.w-orange { color: var(--orange); }
@keyframes wIn { to { opacity: 1; transform: translateY(0); } }

.hero-sub {
  font-size: 18px; color: var(--muted);
  max-width: 520px; margin-bottom: 36px; line-height: 1.7;
}
.hero-ctas { display: flex; gap: 14px; margin-bottom: 40px; flex-wrap: wrap; }
.trust-row {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
}
.trust-item {
  font-size: 13px; color: var(--muted);
  display: flex; align-items: center; gap: 6px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; padding: 6px 14px; white-space: nowrap;
}
.trust-item-emoji { font-size: 18px; }

/* Card stack */
.card-stack-wrap { display: flex; justify-content: center; align-items: center; }
.card-stack {
  position: relative; width: 340px; height: 440px;
  animation: float 4s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.s-card {
  position: absolute; width: 320px; border-radius: 20px;
  padding: 28px; box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}
.s-card:nth-child(1) {
  bottom: 0; left: 20px; transform: rotate(-8deg);
  background: #E8F5F3; height: 380px; z-index: 1;
}
.s-card:nth-child(2) {
  bottom: 12px; left: 10px; transform: rotate(-4deg);
  background: #FCE9E4; height: 390px; z-index: 2;
}
.s-card:nth-child(3) {
  bottom: 24px; left: 0; transform: rotate(0deg);
  background: white; z-index: 3;
}
.card-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,107,53,0.1); color: var(--orange);
  font-size: 11px; font-weight: 700; padding: 4px 12px;
  border-radius: 100px; margin-bottom: 14px;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.card-scenario { font-size: 14px; color: var(--text); line-height: 1.6; margin-bottom: 20px; }
.card-opts { display: flex; flex-direction: column; gap: 9px; }
.card-opt {
  padding: 11px 14px; border-radius: 12px;
  border: 1.5px solid var(--border);
  font-size: 13px; font-weight: 500; text-align: center;
  cursor: default;
}
.card-opt.correct-hint {
  background: rgba(29,184,126,0.07); border-color: var(--green);
  color: var(--green); animation: pGreen 2.2s ease-in-out infinite;
}
@keyframes pGreen {
  0%, 100% { box-shadow: 0 0 0 0 rgba(29,184,126,0); }
  50% { box-shadow: 0 0 0 7px rgba(29,184,126,0.15); }
}

/* ============================================================
   SECTION COMMONS
============================================================ */
section { padding: 100px 0; }
.section-label {
  font-family: var(--font-a); font-size: 12px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 14px;
}
.section-label-light { color: rgba(255,255,255,0.4); }
.section-head { margin-bottom: 60px; }
h2 {
  font-family: var(--font-h); font-size: clamp(32px, 4vw, 54px);
  font-weight: 800; line-height: 1.12;
}
h2.white { color: white; }
.section-dec {
  font-family: var(--font-a); font-size: 140px; font-weight: 800;
  color: rgba(0,0,0,0.035); position: absolute;
  top: 20px; right: -10px; line-height: 1;
  user-select: none; pointer-events: none;
}
.section-dec-light {
  color: rgba(255,255,255,0.04);
}

/* Entrance animations */
.fu {
  opacity: 0; transform: translateY(36px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fu.vis { opacity: 1; transform: translateY(0); }
.fu-d1 { transition-delay: 0.1s; }
.fu-d2 { transition-delay: 0.2s; }
.fu-d3 { transition-delay: 0.3s; }
.fu-d4 { transition-delay: 0.4s; }

/* ============================================================
   PROBLEM SECTION
============================================================ */
.problem { background: var(--bg); position: relative; overflow: hidden; }
.stats-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; margin-bottom: 60px;
}
.stat-card {
  background: white; border-radius: var(--r-card);
  padding: 36px 28px; box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.stat-icon { font-size: 32px; margin-bottom: 14px; }
.stat-number {
  font-family: var(--font-h); font-size: 80px; font-weight: 800;
  color: var(--blue); line-height: 1; margin-bottom: 8px;
}
.stat-title { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.stat-desc { font-size: 14px; color: var(--muted); line-height: 1.5; }
.problem-quote {
  text-align: center; max-width: 820px; margin: 0 auto;
  font-size: clamp(20px, 2.8vw, 28px);
  font-style: italic; line-height: 1.6; color: var(--text);
  font-weight: 500; padding: 40px 0 0;
}

/* ============================================================
   HOW IT WORKS
============================================================ */
.how { background: var(--bg2); position: relative; overflow: hidden; }
.steps-flow {
  display: grid; grid-template-columns: 1fr 48px 1fr 48px 1fr;
  align-items: start; margin-bottom: 60px; gap: 0;
}
.step-arrow {
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 52px; color: var(--border); font-size: 22px;
}
.step { text-align: center; padding: 0 8px; }
.step-num {
  font-family: var(--font-a); font-size: 12px; font-weight: 800;
  color: var(--teal); letter-spacing: 0.12em;
  text-transform: uppercase; margin-bottom: 16px;
}
.step-icon-circle {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--blue-dim); display: flex; align-items: center;
  justify-content: center; font-size: 26px; margin: 0 auto 16px;
}
.step-icon { font-size: 46px; margin-bottom: 18px; }
.step-title { font-family: var(--font-h); font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.step-text { font-size: 15px; color: var(--muted); line-height: 1.65; }
.step { text-align: center; padding: 28px; background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow); }

/* Levels bar */
.levels-bar { background: var(--bg); border-radius: 20px; padding: 32px 40px; }
.levels-bar-label {
  font-family: var(--font-a); font-size: 11px; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 28px; text-align: center;
}
.levels-track {
  display: flex; align-items: center;
}
.level-node { flex: 0 0 auto; text-align: center; }
.level-dot {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--border); display: flex;
  align-items: center; justify-content: center;
  font-size: 22px; margin: 0 auto 12px;
  transition: all 0.3s;
}
.level-dot.done { background: var(--blue); }
.level-dot.active {
  background: var(--blue);
  box-shadow: 0 0 0 5px var(--blue-dim);
  animation: pulseBlue 2s ease-in-out infinite;
}
@keyframes pulseBlue {
  0%, 100% { box-shadow: 0 0 0 5px var(--blue-dim); }
  50% { box-shadow: 0 0 0 10px rgba(59,130,246,0.05); }
}
.level-name { font-size: 13px; font-weight: 700; margin-bottom: 3px; }
.level-age { font-size: 12px; color: var(--muted); }
.level-connector { flex: 1; height: 3px; background: var(--border); }
.level-connector.done { background: var(--blue); }

/* ============================================================
   CARDS SECTION
============================================================ */
.cards { background: var(--bg); position: relative; overflow: hidden; }
.cards-sub {
  font-size: 18px; color: var(--muted); max-width: 600px;
  margin-top: 16px; line-height: 1.6;
}
.tab-nav {
  display: flex; gap: 4px; border-bottom: 2px solid var(--border);
  flex-wrap: wrap; margin-top: 48px;
}
.tab-btn {
  padding: 12px 20px; border-radius: 12px 12px 0 0;
  font-size: 14px; font-weight: 600; color: var(--muted);
  background: transparent;
  border: 2px solid transparent; border-bottom: none;
  margin-bottom: -2px; transition: all 0.2s;
}
.tab-btn:hover { color: var(--text); background: white; }
.tab-btn.active {
  color: var(--blue); background: white;
  border-color: var(--border); border-bottom-color: white;
}
.tab-content {
  background: white; border: 2px solid var(--border);
  border-top: none; border-radius: 0 0 20px 20px;
  padding: 48px; min-height: 380px;
}
.tab-panel { display: none; animation: tabIn 0.3s ease; }
.tab-panel.active { display: block; }
@keyframes tabIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.mech-label {
  font-family: var(--font-a); font-size: 11px; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 6px;
}
.mech-title {
  font-family: var(--font-h); font-size: 24px; font-weight: 700;
  margin-bottom: 6px;
}
.mech-desc { color: var(--muted); font-size: 15px; margin-bottom: 28px; }

/* TAB 1 – Swipe */
.swipe-wrap { max-width: 480px; margin: 0 auto; }
.swipe-card {
  background: var(--bg); border-radius: 16px; padding: 28px;
  border: 1px solid var(--border); margin-bottom: 20px;
  user-select: none; transition: transform 0.15s, opacity 0.15s;
}
.swipe-card.swipe-l { transform: rotate(-6deg) translateX(-40px); opacity: 0.5; }
.swipe-card.swipe-r { transform: rotate(6deg) translateX(40px); opacity: 0.5; }
.swipe-scenario { font-size: 16px; line-height: 1.7; color: var(--text); }
.swipe-btns { display: flex; gap: 12px; }
.swipe-btn {
  flex: 1; padding: 14px; border-radius: 14px;
  font-size: 14px; font-weight: 600;
  border: 2px solid var(--border); transition: all 0.2s;
}
.swipe-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.swipe-btn-l { background: white; color: var(--text); }
.swipe-btn-r { background: var(--orange); color: white; border-color: var(--orange); }

/* TAB 2 – Tap the Danger */
.tap-instruction { font-size: 14px; color: var(--muted); font-style: italic; margin-bottom: 14px; }
.tap-para {
  background: var(--bg); border-radius: 16px; padding: 28px;
  border: 1px solid var(--border); font-size: 16px; line-height: 2.2;
  margin-bottom: 20px;
}
.ts {
  cursor: pointer; border-radius: 4px; padding: 2px 4px;
  transition: background 0.2s;
}
.ts:hover { background: rgba(255,107,53,0.08); }
.ts.correct { background: rgba(29,184,126,0.15); color: #0a7a4d; }
.ts.wrong { background: rgba(255,107,53,0.15); color: #c03010; }
.tap-feedback {
  display: none; padding: 14px 18px; border-radius: 12px;
  font-size: 15px; line-height: 1.5; margin-top: 12px;
}
.tap-feedback.ok { background: rgba(29,184,126,0.1); border-left: 4px solid var(--green); }
.tap-feedback.nope { background: rgba(255,107,53,0.1); border-left: 4px solid var(--orange); }

/* TAB 3 – Sort It */
.sort-pool-label {
  font-size: 12px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 10px;
}
.sort-pool {
  display: flex; gap: 10px; flex-wrap: wrap;
  min-height: 54px; padding: 12px;
  background: var(--bg); border-radius: 12px;
  border: 2px dashed var(--border); margin-bottom: 20px;
}
.sort-chip {
  padding: 10px 16px; background: white;
  border: 1.5px solid var(--border); border-radius: 100px;
  font-size: 14px; font-weight: 500; cursor: grab;
  user-select: none; touch-action: none;
  transition: box-shadow 0.15s, opacity 0.15s;
}
.sort-chip:active { cursor: grabbing; }
.sort-chip.is-dragging { opacity: 0.3; }
.sort-chip.correct-chip { background: rgba(29,184,126,0.1); border-color: var(--green); color: #0a7a4d; }
.sort-chip.wrong-chip { background: rgba(255,107,53,0.1); border-color: var(--orange); color: #c03010; }

.buckets-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.bucket {
  border-radius: 16px; padding: 18px; min-height: 90px; border: 2px dashed;
  transition: background 0.2s;
}
.bucket.bucket-green { border-color: var(--green); background: rgba(29,184,126,0.04); }
.bucket.bucket-red { border-color: #ef4444; background: rgba(239,68,68,0.04); }
.bucket.drag-over { border-style: solid; opacity: 0.85; }
.bucket-title { font-size: 13px; font-weight: 700; margin-bottom: 10px; }
.bucket-green .bucket-title { color: var(--green); }
.bucket-red .bucket-title { color: #ef4444; }
.bucket-items { display: flex; gap: 8px; flex-wrap: wrap; min-height: 36px; }

/* TAB 4 – Slider */
.slider-scenario {
  background: var(--bg); border-radius: 16px; padding: 24px;
  border: 1px solid var(--border); font-size: 16px; line-height: 1.7;
  margin-bottom: 28px;
}
.slider-labels { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.risk-input {
  width: 100%; -webkit-appearance: none; appearance: none;
  height: 8px; border-radius: 100px;
  background: linear-gradient(to right, var(--green), #F59E0B, #ef4444);
  outline: none; cursor: pointer; margin-bottom: 16px;
}
.risk-input::-webkit-slider-thumb {
  -webkit-appearance: none; width: 26px; height: 26px;
  border-radius: 50%; background: white;
  border: 3px solid var(--orange); cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.risk-input::-moz-range-thumb {
  width: 26px; height: 26px; border-radius: 50%; background: white;
  border: 3px solid var(--orange); cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.slider-val {
  text-align: center; font-family: var(--font-a);
  font-size: 52px; font-weight: 800; color: var(--orange); margin-bottom: 20px;
}
.slider-result {
  display: none; margin-top: 16px; padding: 16px 20px;
  border-radius: 12px; font-size: 15px; line-height: 1.5;
}
.slider-result.ok { background: rgba(29,184,126,0.1); border-left: 4px solid var(--green); }
.slider-result.nope { background: rgba(255,107,53,0.1); border-left: 4px solid var(--orange); }

/* TAB 5 – Rank It */
.rank-scenario {
  background: var(--bg); border-radius: 16px; padding: 24px;
  border: 1px solid var(--border); font-size: 16px; line-height: 1.7;
  margin-bottom: 24px;
}
.rank-instruction { font-size: 14px; color: var(--muted); font-style: italic; margin-bottom: 14px; }
.rank-list { margin-bottom: 20px; }
.rank-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; background: white;
  border: 1.5px solid var(--border); border-radius: 14px;
  margin-bottom: 8px; cursor: grab; user-select: none;
  touch-action: none; transition: box-shadow 0.2s, border-color 0.2s;
}
.rank-item:active { cursor: grabbing; box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.rank-item.rank-ghost { opacity: 0.35; }
.rank-item.drop-above { border-top: 3px solid var(--orange); }
.rank-item.drop-below { border-bottom: 3px solid var(--orange); }
.rank-item.correct-rank { border-color: var(--green); background: rgba(29,184,126,0.04); }
.rank-item.wrong-rank { border-color: #ef4444; background: rgba(239,68,68,0.04); }
.rank-handle { color: #ccc; font-size: 18px; flex-shrink: 0; }
.rank-num {
  font-family: var(--font-a); font-size: 22px; font-weight: 800;
  color: var(--orange); min-width: 28px;
}
.rank-item.correct-rank .rank-num { color: var(--green); }
.rank-item.wrong-rank .rank-num { color: #ef4444; }
.rank-text { font-size: 15px; flex: 1; }

/* Shared demo controls */
.demo-btn {
  padding: 12px 28px; border-radius: 12px; font-size: 15px;
  font-weight: 600; background: var(--orange); color: white;
  transition: all 0.2s; display: inline-block;
}
.demo-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(255,107,53,0.3); }
.demo-btn-ghost {
  background: transparent; border: 2px solid var(--border);
  color: var(--muted); margin-left: 10px;
}
.demo-btn-ghost:hover { border-color: var(--text); color: var(--text); box-shadow: none; }

/* Toast */
.toast {
  position: fixed; bottom: 40px; left: 50%;
  transform: translateX(-50%) translateY(120px);
  background: #1A1A2E; color: white; padding: 16px 24px;
  border-radius: 16px; font-size: 15px; max-width: 420px;
  text-align: center; z-index: 500;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none; line-height: 1.5;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.toast-ok { border-left: 4px solid var(--green); }
.toast.toast-warn { border-left: 4px solid var(--orange); }

/* ============================================================
   CERTIFICATION
============================================================ */
.cert-section {
  background: var(--deep); position: relative; overflow: hidden;
}
.cert-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center; position: relative; z-index: 1;
}
.cert-card {
  background: #FFFDF5;
  border: 2.5px solid var(--gold);
  border-radius: 6px;
  padding: 40px 44px 28px;
  position: relative;
  text-align: center;
  box-shadow: 0 24px 64px rgba(0,0,0,0.45);
}
.cert-card::before {
  content: '';
  position: absolute; inset: 10px;
  border: 1px solid rgba(212,168,83,0.35);
  border-radius: 2px;
  pointer-events: none;
}
.cert-org {
  font-family: var(--font-a); font-size: 10px; font-weight: 800;
  letter-spacing: 0.3em; color: var(--deep); text-transform: uppercase;
  margin-bottom: 8px;
}
.cert-ornament { color: var(--gold); font-size: 13px; letter-spacing: 0.2em; margin-bottom: 12px; display: block; }
.cert-title-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.22em; color: var(--muted); margin-bottom: 4px; }
.cert-title { font-family: var(--font-h); font-size: 30px; font-weight: 800; color: var(--deep); line-height: 1.1; margin-bottom: 4px; }
.cert-level-sub { font-size: 12px; color: var(--muted); letter-spacing: 0.08em; margin-bottom: 18px; }
.cert-seal {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--deep); border: 2.5px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
  box-shadow: 0 0 0 4px rgba(212,168,83,0.15), 0 4px 16px rgba(0,0,0,0.2);
  position: relative;
}
.cert-seal::before {
  content: ''; position: absolute; inset: 5px; border-radius: 50%;
  border: 1px dashed rgba(212,168,83,0.6);
}
.cert-seal-inner { font-family: var(--font-h); font-size: 19px; font-weight: 800; color: var(--gold); position: relative; z-index: 1; }
.cert-awarded-to { font-size: 13px; font-style: italic; color: var(--muted); margin-bottom: 4px; }
.cert-name {
  font-family: var(--font-h); font-size: 26px; font-weight: 700;
  color: var(--text); margin-bottom: 18px;
  display: inline-block; border-bottom: 2px solid var(--gold);
  padding-bottom: 5px; min-width: 200px;
}
.cert-comp-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); margin-bottom: 10px; }
.cert-skills { display: flex; gap: 7px; flex-wrap: wrap; justify-content: center; margin-bottom: 10px; }
.cert-skill { background: rgba(212,168,83,0.1); border: 1px solid rgba(212,168,83,0.4); color: var(--text); padding: 3px 11px; border-radius: 100px; font-size: 11px; }
.cert-score { font-size: 12px; color: var(--muted); font-style: italic; margin-bottom: 18px; }
.cert-sig-row {
  display: flex; justify-content: space-between; align-items: flex-end;
  border-top: 1px solid rgba(212,168,83,0.3); padding-top: 16px; margin-bottom: 14px; gap: 24px;
}
.cert-sig-block { flex: 1; text-align: center; }
.cert-sig-name { font-family: var(--font-h); font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.cert-sig-line { width: 100%; height: 1px; background: rgba(0,0,0,0.2); margin: 5px 0; }
.cert-sig-title { font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.cert-footer-row { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(212,168,83,0.2); padding-top: 10px; }
.cert-date { font-size: 10px; color: var(--muted); }
.cert-verify { font-size: 10px; color: var(--deep); }
.cert-point { display: flex; gap: 14px; margin-bottom: 28px; align-items: flex-start; }
.cert-point-icon { font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.cert-point h4 { font-family: var(--font-h); font-size: 17px; font-weight: 700; color: white; margin-bottom: 4px; }
.cert-point p { font-size: 14px; color: rgba(255,255,255,0.45); line-height: 1.55; }

/* ============================================================
   WHO IT'S FOR
============================================================ */
.who { background: var(--bg); position: relative; overflow: hidden; }
.audience-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.audience-card {
  background: white; border-radius: var(--r-card);
  padding: 48px 40px; box-shadow: var(--shadow);
  border: 1px solid var(--border);
  display: flex; flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.audience-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.1); }
.aud-icon { font-size: 46px; margin-bottom: 18px; }
.aud-tag {
  font-size: 11px; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 8px;
}
.aud-tag-teal { color: var(--teal); }
.audience-card-parents { border-top: 4px solid var(--blue); }
.audience-card-schools { border-top: 4px solid var(--teal); }
.aud-title { font-family: var(--font-h); font-size: 26px; font-weight: 800; margin-bottom: 14px; line-height: 1.2; }
.aud-body { font-size: 15px; color: var(--muted); line-height: 1.7; margin-bottom: 28px; }
.feat-list { margin-bottom: 32px; flex: 1; }
.feat-list li {
  display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 10px; font-size: 15px; color: var(--text);
}
.feat-list li::before {
  content: '✓'; color: var(--blue); font-weight: 700;
  flex-shrink: 0; margin-top: 1px;
}
.audience-card-schools .feat-list li::before { color: var(--teal); }

/* ============================================================
   EARLY ACCESS
============================================================ */
.early { background: var(--deep); position: relative; overflow: hidden; }
.early-inner { text-align: center; max-width: 640px; margin: 0 auto; position: relative; z-index: 1; }
.early-headline {
  font-family: var(--font-h); font-size: clamp(36px, 5vw, 58px);
  font-weight: 800; color: white; margin-bottom: 14px;
}
.early-sub {
  font-size: 18px; color: rgba(255,255,255,0.85);
  margin-bottom: 40px; line-height: 1.65;
}
.waitlist-form { display: flex; flex-direction: column; gap: 12px; max-width: 480px; margin: 0 auto 18px; }
.form-field {
  padding: 16px 20px; border-radius: 12px; border: none;
  background: white; font-size: 16px; font-family: var(--font-b);
  outline: none; color: var(--text); width: 100%;
}
.form-field:focus { box-shadow: 0 0 0 3px rgba(255,255,255,0.5); }
.form-select-wrap { position: relative; }
.form-select-wrap::after {
  content: '▾'; position: absolute; right: 18px; top: 50%;
  transform: translateY(-50%); color: var(--muted); pointer-events: none;
}
.form-field.select { -webkit-appearance: none; appearance: none; cursor: pointer; padding-right: 48px; }
.btn-waitlist {
  padding: 16px 32px; border-radius: 12px;
  background: var(--blue); color: white; font-size: 17px; font-weight: 700;
  font-family: var(--font-b); cursor: pointer;
  transition: all 0.2s; border: none; width: 100%;
}
.btn-waitlist:hover { background: var(--deep2); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
.form-note { font-size: 14px; color: rgba(255,255,255,0.7); line-height: 1.5; }
.success-msg {
  display: none; text-align: center; font-size: 20px;
  font-weight: 600; color: white; padding: 28px;
  background: rgba(255,255,255,0.15); border-radius: 16px;
}

/* ============================================================
   FOOTER
============================================================ */
.footer { background: var(--deep); padding: 64px 0 0; }
.footer-grid {
  display: grid; grid-template-columns: 1fr 2fr 1fr;
  gap: 48px; margin-bottom: 48px; align-items: start;
}
.footer-logo { font-family: var(--font-h); font-size: 22px; font-weight: 800; color: white; margin-bottom: 8px; }
.footer-tagline { font-size: 14px; color: rgba(255,255,255,0.38); line-height: 1.55; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.footer-links a { font-size: 14px; color: rgba(255,255,255,0.45); transition: color 0.2s; }
.footer-links a:hover { color: white; }
.footer-built { font-size: 14px; color: rgba(255,255,255,0.38); text-align: right; line-height: 1.7; }
.footer-bar {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 20px 0; text-align: center;
  font-size: 13px; color: rgba(255,255,255,0.25);
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-content { order: 0; }
  .card-stack-wrap { order: 1; }
  .cert-grid { grid-template-columns: 1fr; gap: 48px; }
  .steps-flow { grid-template-columns: 1fr; gap: 20px; }
  .step-arrow { display: none; }
  .step { padding: 20px; }
}
@media (max-width: 768px) {
  section { padding: 72px 0; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; }
  .trust-row { flex-direction: column; gap: 12px; align-items: flex-start; padding-bottom: 32px; }
  .trust-item { white-space: normal; }
  .stats-grid { grid-template-columns: 1fr; }
  .audience-grid { grid-template-columns: 1fr; }
  .audience-card { padding: 28px 20px; }
  .buckets-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-links { justify-content: flex-start; }
  .footer-built { text-align: left; }
  .tab-content { padding: 24px 18px; }
  .tab-btn { padding: 10px 14px; font-size: 13px; }
  .cert-grid { grid-template-columns: 1fr; }
  .levels-track { flex-direction: column; align-items: flex-start; gap: 0; }
  .level-connector { width: 3px; height: 24px; flex: 0 0 24px; margin-left: 24px; }
  .level-node { display: flex; align-items: center; gap: 14px; }
  .level-dot { margin: 0; }
  .card-stack { width: 280px; height: 360px; }
  .s-card { width: 260px; }
  .section-dec { font-size: 90px; }
}
@media (max-width: 480px) {
  .hero-headline { font-size: 36px; }
  .tab-btn { font-size: 12px; padding: 8px 10px; }
  .cert-card { padding: 28px 22px; }
}

/* ============================================================
   ZOÉ CHARACTER SYSTEM
============================================================ */
.zoe-character {
  display: inline-block;
  animation: zoeIdle 3s ease-in-out infinite;
}
@keyframes zoeIdle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Notification bubbles (age-14) */
.notif-bubble {
  position: absolute;
  font-size: 14px;
  background: white;
  border-radius: 50%;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  animation: notifPulse 2s ease-in-out infinite;
  pointer-events: none;
}
.notif-bubble:nth-child(2) { top: 8%;  right: -2px; }
.notif-bubble:nth-child(3) { top: 32%; right: -6px; animation-delay: 0.6s; }
.notif-bubble:nth-child(4) { top: 18%; left: -2px;  animation-delay: 1.2s; }
@keyframes notifPulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50%       { transform: scale(1.2); opacity: 1; }
}

/* ============================================================
   HERO — ZOÉ MINI-CARDS GRID
============================================================ */
.zoe-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.zoe-mini-card {
  background: white;
  border-radius: 18px;
  padding: 16px 12px 14px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
  gap: 7px; overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.zoe-mini-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.zoe-mini-card.age-8  { border-top: 4px solid var(--zoe8); }
.zoe-mini-card.age-11 { border-top: 4px solid var(--zoe11); }
.zoe-mini-card.age-14 { border-top: 4px solid var(--zoe14); }
.zoe-mini-card.age-16 { border-top: 4px solid var(--zoe16); }
.zoe-mini-card:nth-child(1) .zoe-character { animation-delay: 0s; }
.zoe-mini-card:nth-child(2) .zoe-character { animation-delay: 0.75s; }
.zoe-mini-card:nth-child(3) .zoe-character { animation-delay: 1.5s; }
.zoe-mini-card:nth-child(4) .zoe-character { animation-delay: 2.25s; }
.zoe-card-age {
  font-family: var(--font-a); font-size: 10px; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.zoe-card-label {
  font-family: var(--font-h); font-size: 13px; font-weight: 700; color: var(--deep);
}
.zoe-card-tags { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; }
.zoe-card-tag {
  font-size: 10px; padding: 2px 7px; border-radius: 100px;
  background: var(--bg); color: var(--muted); border: 1px solid var(--border);
}
.age-8  .zoe-card-tag { background: rgba(249,115,22,0.08);  color: var(--orange); border-color: rgba(249,115,22,0.25); }
.age-11 .zoe-card-tag { background: var(--teal-dim);        color: var(--teal);   border-color: rgba(14,165,160,0.25); }
.age-14 .zoe-card-tag { background: rgba(139,92,246,0.08);  color: var(--zoe14);  border-color: rgba(139,92,246,0.25); }
.age-16 .zoe-card-tag { background: var(--blue-dim);        color: var(--blue);   border-color: rgba(59,130,246,0.25); }

/* ============================================================
   ZOÉ'S FOUR CHAPTERS SECTION
============================================================ */
.chapters { background: var(--bg2); position: relative; overflow: hidden; }
.chap-scroll-outer {
  overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 8px;
}
.chap-scroll-outer::-webkit-scrollbar { height: 4px; }
.chap-scroll-outer::-webkit-scrollbar-track { background: var(--bg); border-radius: 2px; }
.chap-scroll-outer::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.chap-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(260px, 1fr));
  gap: 20px; min-width: 1060px;
}
.chap-card {
  background: white; border-radius: var(--r-card);
  padding: 28px 22px 22px; box-shadow: var(--shadow);
  border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 12px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.chap-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.chap-card:nth-child(1) { border-top: 4px solid var(--zoe8); }
.chap-card:nth-child(2) { border-top: 4px solid var(--zoe11); }
.chap-card:nth-child(3) { border-top: 4px solid var(--zoe14); }
.chap-card:nth-child(4) { border-top: 4px solid var(--zoe16); }
.chap-card .zoe-character { margin: 0 auto; animation-delay: 0s; }
.chap-card:nth-child(2) .zoe-character { animation-delay: 0.75s; }
.chap-card:nth-child(3) .zoe-character { animation-delay: 1.5s; }
.chap-card:nth-child(4) .zoe-character { animation-delay: 2.25s; }
.chap-age-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--font-a); font-size: 10px; font-weight: 800;
  letter-spacing: 0.13em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 100px; align-self: flex-start;
}
.chap-card:nth-child(1) .chap-age-badge { background: var(--orange-dim); color: var(--orange); }
.chap-card:nth-child(2) .chap-age-badge { background: var(--teal-dim); color: var(--teal); }
.chap-card:nth-child(3) .chap-age-badge { background: rgba(139,92,246,0.1); color: var(--zoe14); }
.chap-card:nth-child(4) .chap-age-badge { background: var(--blue-dim); color: var(--blue); }
.chap-title {
  font-family: var(--font-h); font-size: 19px; font-weight: 700;
  color: var(--deep); line-height: 1.2;
}
.chap-story { font-size: 14px; color: var(--muted); line-height: 1.65; flex: 1; }
.chap-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.chap-tag {
  font-size: 11px; padding: 3px 10px; border-radius: 100px;
  background: var(--bg); color: var(--muted); border: 1px solid var(--border);
}
.chap-cert-line {
  font-size: 12px; color: var(--muted); font-weight: 600;
  border-top: 1px solid var(--border); padding-top: 10px;
  margin-top: 2px;
}
/* Timeline */
.chap-timeline {
  display: flex; align-items: center;
  background: var(--bg); border-radius: 16px;
  padding: 24px 32px; margin-top: 32px;
}
.chap-tl-edge {
  font-family: var(--font-a); font-size: 13px; font-weight: 800;
  color: var(--muted); white-space: nowrap;
}
.chap-tl-track {
  flex: 1; display: flex; align-items: center; margin: 0 20px;
}
.chap-tl-line { flex: 1; height: 3px; background: var(--border); }
.chap-tl-node {
  position: relative; display: flex; flex-direction: column; align-items: center; flex-shrink: 0;
}
.chap-tl-dot {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; border: 2px solid;
}
.tl-explorer { background: rgba(249,115,22,0.1);  border-color: var(--zoe8); }
.tl-navigator { background: var(--teal-dim);       border-color: var(--zoe11); }
.tl-citizen   { background: rgba(139,92,246,0.1);  border-color: var(--zoe14); }
.tl-leader    { background: var(--blue-dim);        border-color: var(--zoe16); }
.chap-tl-label {
  position: absolute; top: calc(100% + 6px); left: 50%;
  transform: translateX(-50%); white-space: nowrap;
  font-size: 11px; font-weight: 700; color: var(--muted);
}

/* ============================================================
   GLIMPSE OF THE STORY SECTION
============================================================ */
/* ============================================================
   ROTATING QUOTE SECTION
============================================================ */
.glimpse { background: var(--deep2); position: relative; overflow: hidden; padding: 100px 0; }
.quote-stage {
  max-width: 860px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; position: relative; z-index: 1;
  min-height: 240px;
}
.quote-slide {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}
.quote-slide.active {
  opacity: 1; transform: translateY(0);
  pointer-events: auto; position: relative;
}
.quote-zoe-img {
  width: 72px; height: 72px; border-radius: 50%;
  object-fit: cover; border: 3px solid rgba(255,255,255,0.15);
  margin-bottom: 20px; flex-shrink: 0;
}
.quote-zoe-placeholder {
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 3px solid rgba(255,255,255,0.15);
  margin-bottom: 20px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px;
}
.quote-tag {
  font-family: var(--font-a); font-size: 11px; font-weight: 800;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.35); margin-bottom: 20px;
}
.quote-text {
  font-family: var(--font-h); font-size: clamp(22px, 3.2vw, 36px);
  font-weight: 700; color: white; line-height: 1.35;
  max-width: 720px;
}
.quote-text::before { content: '\201C'; color: var(--orange); }
.quote-text::after  { content: '\201D'; color: var(--orange); }
.quote-dots {
  display: flex; gap: 10px; margin-top: 40px; justify-content: center;
}
.quote-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.18); border: none; cursor: pointer;
  padding: 0; transition: background 0.3s, transform 0.3s;
}
.quote-dot.active { background: var(--orange); transform: scale(1.35); }

/* OLD glimpse grid — keep empty declarations to avoid parse errors */
.glimpse-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(240px, 1fr));
  gap: 20px; min-width: 1000px;
}
.story-card {
  background: white; border-radius: var(--r-card); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--border);
  display: flex; flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.story-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.story-card-top { height: 8px; }
.story-card:nth-child(1) .story-card-top { background: var(--zoe8); }
.story-card:nth-child(2) .story-card-top { background: var(--zoe11); }
.story-card:nth-child(3) .story-card-top { background: var(--zoe14); }
.story-card:nth-child(4) .story-card-top { background: var(--zoe16); }
.story-card-body { padding: 20px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.story-card-header { display: flex; align-items: center; gap: 12px; }
.story-zoe-wrap { flex-shrink: 0; position: relative; }
.story-card-meta { display: flex; flex-direction: column; gap: 2px; }
.story-card-age {
  font-family: var(--font-a); font-size: 10px; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.story-card-scene {
  font-family: var(--font-h); font-size: 15px; font-weight: 700; color: var(--deep);
}
.story-bubble {
  background: var(--bg); border-radius: 12px; padding: 14px 16px;
  font-size: 14px; color: var(--text); line-height: 1.6;
  border: 1px solid var(--border); flex: 1; position: relative;
  font-style: italic;
}
.story-bubble::before {
  content: '\201C'; font-size: 36px; line-height: 1;
  position: absolute; top: -2px; left: 10px;
  color: var(--border); font-family: Georgia, serif;
}

@media (max-width: 1024px) {
  .chap-grid { min-width: 900px; }
}
@media (max-width: 768px) {
  .zoe-mini-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .chap-timeline { padding: 16px 20px; }
  .chap-tl-label { display: none; }
}
