/* Qalam Rush landing page
   Palette from the game's Theme.cs, type and spacing from the landing-page-design skill. */

:root {
  /* Color */
  --bg: #FBF3E4;
  --surface: #FFF8E8;
  --tint: #F6E9CC;
  --border: #E6D2A8;
  --border-strong: #DCC394;
  --ink: #3B2614;
  --ink-soft: #6B5038;
  --ink-mute: #9A8266;
  --teal: #13756C;
  --teal-hover: #0E5E57;
  --teal-pale: #DDF3EF;
  --rust: #C45C38;
  --rust-pale: #F8E1DC;
  --gold: #E8B03A;
  --gold-pale: #FFF1C8;

  /* Spacing */
  --s-25: 2px; --s-50: 4px; --s-75: 8px; --s-100: 12px; --s-200: 16px;
  --s-300: 24px; --s-400: 32px; --s-500: 40px; --s-600: 48px;
  --s-700: 64px; --s-800: 80px; --s-900: 96px;

  /* Radius (Tailwind steps) */
  --r-md: 6px; --r-lg: 8px; --r-xl: 12px; --r-2xl: 16px; --r-3xl: 24px; --r-full: 9999px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font: "Baloo Bhaijaan 2", ui-rounded, system-ui, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--s-900); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
figure { margin: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, dl, dd, blockquote { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p, li, dd, blockquote { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: var(--r-lg); }

.ar { font-family: var(--font); direction: rtl; unicode-bidi: isolate; }

/* ---------- Text styles ---------- */
.heading-1 { font-size: 3.75rem; line-height: 1; font-weight: 600; letter-spacing: -0.01em; }
.heading-2 { font-size: 3rem; line-height: 1; font-weight: 600; letter-spacing: -0.01em; }
.heading-3 { font-size: 2.25rem; line-height: 2.5rem; font-weight: 600; }
.heading-4 { font-size: 1.875rem; line-height: 2.25rem; font-weight: 600; }
.heading-5 { font-size: 1.5rem; line-height: 2rem; font-weight: 600; }
.heading-6 { font-size: 1.25rem; line-height: 1.75rem; font-weight: 600; }
.title-1 { font-size: 1.25rem; line-height: 1.75rem; font-weight: 500; }
.title-2 { font-size: 1.125rem; line-height: 1.75rem; font-weight: 500; }
.title-3 { font-size: 1rem; line-height: 1.5rem; font-weight: 500; }
.title-4 { font-size: 0.875rem; line-height: 1.25rem; font-weight: 500; }
.title-5 { font-size: 0.75rem; line-height: 1rem; font-weight: 500; }
.body-1 { font-size: 1rem; line-height: 1.5rem; font-weight: 600; }
.body-2 { font-size: 1rem; line-height: 1.5rem; font-weight: 500; }
.body-3 { font-size: 1rem; line-height: 1.5rem; font-weight: 400; }
.body-4 { font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; }
.body-5 { font-size: 0.875rem; line-height: 1.25rem; font-weight: 500; }
.body-6 { font-size: 0.875rem; line-height: 1.25rem; font-weight: 400; }
.button-lg { font-size: 1.125rem; line-height: 1.75rem; font-weight: 600; }
.button-md { font-size: 1rem; line-height: 1.5rem; font-weight: 600; }
.button-sm { font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; }
.caption-1 { font-size: 0.875rem; line-height: 1.25rem; font-weight: 500; }
.caption-2 { font-size: 0.875rem; line-height: 1.25rem; font-weight: 400; }
.caption-3 { font-size: 0.75rem; line-height: 1rem; font-weight: 600; }
.caption-4 { font-size: 0.75rem; line-height: 1rem; font-weight: 500; }
.caption-5 { font-size: 0.75rem; line-height: 1rem; font-weight: 400; }

@media (max-width: 639px) {
  .heading-1 { font-size: 3rem; line-height: 1; }        /* Heading 2 on phones */
  .heading-2 { font-size: 2.25rem; line-height: 2.5rem; } /* Heading 3 on phones */
  .heading-3 { font-size: 1.875rem; line-height: 2.25rem; } /* Heading 4 on phones */
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: 1152px; margin: 0 auto; padding: 0 var(--s-200); }
@media (min-width: 640px) { .container { padding: 0 var(--s-300); } }
@media (min-width: 1024px) { .container { padding: 0 var(--s-400); } }

.section { padding: var(--s-800) 0; }
.section-tint { background: var(--tint); }
@media (min-width: 1024px) { .section { padding: var(--s-900) 0; } }

.section-head { max-width: 680px; display: grid; gap: var(--s-200); margin-bottom: var(--s-600); }
.section-head .body-3 { color: var(--ink-soft); }
.kicker { color: var(--rust); text-transform: uppercase; letter-spacing: 0.08em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-75);
  padding: var(--s-75) var(--s-100);
  border-radius: var(--r-xl);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 300ms var(--ease), transform 300ms var(--ease), box-shadow 300ms var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 4px 0 var(--teal-hover); }
.btn-primary:hover { background: var(--teal-hover); }
.btn-primary:active { transform: translateY(1px) scale(0.98); box-shadow: 0 2px 0 var(--teal-hover); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--border-strong); box-shadow: 0 4px 0 var(--border-strong); }
.btn-secondary:hover { background: #fff; }
.btn-secondary:active { transform: translateY(1px) scale(0.98); box-shadow: 0 2px 0 var(--border-strong); }

.store-row { display: flex; flex-wrap: wrap; gap: var(--s-100); }
.store-row-center { justify-content: center; }
.store-btn {
  display: inline-flex; align-items: center; gap: var(--s-100);
  padding: var(--s-75) var(--s-200);
  min-width: 176px;
  background: var(--ink); color: var(--surface);
  border-radius: var(--r-xl);
  box-shadow: 0 4px 0 #1F130A;
  transition: background-color 300ms var(--ease), transform 300ms var(--ease), box-shadow 300ms var(--ease);
}
.store-btn > span { display: grid; text-align: left; }
.store-btn .caption-5 { opacity: 0.8; }
.store-btn i { font-size: 1.875rem; }
.store-btn:hover { background: #4A321C; transform: translateY(-2px); box-shadow: 0 6px 0 #1F130A; }
.store-btn:active { transform: translateY(1px) scale(0.98); box-shadow: 0 2px 0 #1F130A; }
.store-note { color: var(--rust); min-height: 0; }
.store-note:empty { display: none; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: var(--s-200); top: var(--s-200); z-index: 100;
  padding: var(--s-75) var(--s-100); background: var(--ink); color: #fff; border-radius: var(--r-lg);
  transform: translateY(-200%); transition: transform 300ms var(--ease);
}
.skip-link:focus { transform: none; }

/* ---------- Navigation ---------- */
.nav-wrap { position: fixed; top: var(--s-200); left: 0; right: 0; z-index: 50; display: flex; justify-content: center; padding: 0 var(--s-200); pointer-events: none; }
.nav {
  pointer-events: auto;
  display: flex; align-items: center; gap: var(--s-300);
  padding: var(--s-75) var(--s-75) var(--s-75) var(--s-200);
  background: rgba(255, 248, 232, 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgba(220, 195, 148, 0.6);
  border-radius: var(--r-2xl);
  box-shadow: 0 8px 24px rgba(59, 38, 20, 0.08);
  transition: box-shadow 300ms var(--ease);
}
.nav-brand { display: inline-flex; align-items: center; gap: var(--s-75); white-space: nowrap; }
.nav-cta { white-space: nowrap; }
.nav-brand img { border-radius: var(--r-lg); }
.nav-links { display: flex; gap: var(--s-50); }
.nav-links a {
  display: block; padding: var(--s-50) var(--s-100); border-radius: var(--r-lg); color: var(--ink-soft);
  transition: background-color 300ms var(--ease), color 300ms var(--ease);
}
.nav-links a:hover { background: rgba(220, 195, 148, 0.3); color: var(--ink); }
.nav-links a[aria-current="true"] { color: var(--ink); background: var(--gold-pale); }
.nav-cta { box-shadow: none; }
.nav-cta:active { box-shadow: none; }

.menu-toggle {
  display: none; position: relative; width: 40px; height: 40px;
  border: 0; background: transparent; border-radius: var(--r-lg); cursor: pointer;
}
.menu-toggle:hover { background: rgba(220, 195, 148, 0.3); }
.menu-line {
  position: absolute; left: 11px; width: 18px; height: 2px; border-radius: var(--r-full); background: var(--ink);
  transition: transform 500ms var(--ease);
}
.menu-line:first-child { transform: translateY(-4px); top: 19px; }
.menu-line:last-child { transform: translateY(4px); top: 19px; }
.menu-toggle[aria-expanded="true"] .menu-line:first-child { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-line:last-child { transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(251, 243, 228, 0.94);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  padding: var(--s-900) var(--s-300) var(--s-600);
  opacity: 0; transition: opacity 300ms var(--ease);
}
.mobile-menu.is-open { opacity: 1; }
.mobile-menu ul { display: grid; gap: var(--s-300); margin-top: var(--s-400); }
.mobile-menu li { opacity: 0; transform: translateY(24px); transition: opacity 500ms var(--ease), transform 500ms var(--ease); }
.mobile-menu.is-open li { opacity: 1; transform: none; }
.mobile-menu .btn { width: 100%; margin-top: var(--s-200); }

@media (max-width: 1023px) {
  .nav { width: 100%; justify-content: space-between; gap: var(--s-100); }
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
  .menu-toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero { padding: var(--s-900) 0 var(--s-800); }
.hero-grid { display: grid; gap: var(--s-600); align-items: center; }
@media (min-width: 960px) {
  .hero { padding: var(--s-900) 0 var(--s-900); }
  .hero-grid { grid-template-columns: minmax(0, 1fr) 440px; gap: var(--s-700); }
}
.hero-copy { display: grid; gap: var(--s-300); justify-items: start; }
.eyebrow {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--s-75);
  padding: var(--s-50) var(--s-100);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-full);
  color: var(--ink-soft);
}
.eyebrow .ar { color: var(--teal); font-size: 0.875rem; line-height: 1.25rem; }
.hero-title {
  max-width: 680px;
  padding-bottom: var(--s-75); /* keeps descenders inside the gradient box */
  background: linear-gradient(90deg, #3B2614, #8C6A4A);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero-sub { max-width: 680px; color: var(--ink-soft); }
@media (min-width: 640px) { .hero-sub { font-size: 1.125rem; line-height: 1.75rem; } }
.hero-reassure { color: var(--ink-soft); margin-top: calc(var(--s-100) * -1); }
.hero-reassure i { color: var(--teal); font-size: 1.125rem; vertical-align: middle; margin-right: var(--s-50); }

.proof-strip { display: flex; flex-wrap: wrap; gap: var(--s-300); padding-top: var(--s-200); border-top: 1px dashed var(--border-strong); width: 100%; max-width: 480px; }
.proof-strip div { display: flex; flex-direction: column-reverse; }
.proof-strip dt { color: var(--ink-mute); text-transform: uppercase; letter-spacing: 0.06em; }
.proof-strip dd { color: var(--ink); }

.hero-visual { position: relative; height: 560px; max-width: 440px; width: 100%; margin: 0 auto; }
.phone {
  background: #2B1C10; padding: var(--s-75); border-radius: var(--r-3xl);
  box-shadow: 0 24px 48px rgba(59, 38, 20, 0.22), 0 2px 0 rgba(255,255,255,0.4) inset;
}
.phone img { border-radius: var(--r-2xl); width: 100%; height: auto; background: var(--tint); }
.phone-front { position: absolute; width: 248px; right: 24px; top: 0; z-index: 2; }
.phone-back { position: absolute; width: 216px; left: 16px; top: 48px; z-index: 1; transform: rotate(-6deg); opacity: 0.96; }
.hero-mascot { position: absolute; z-index: 3; width: 168px; left: -8px; bottom: -16px; filter: drop-shadow(0 12px 16px rgba(59, 38, 20, 0.2)); animation: float 4s var(--ease) infinite alternate; }
.hero-chip {
  position: absolute; z-index: 3; right: 0; top: 96px;
  display: inline-flex; align-items: center; gap: var(--s-50);
  padding: var(--s-75) var(--s-100); background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xl); box-shadow: 0 8px 24px rgba(59, 38, 20, 0.12);
}
.hero-chip i { color: var(--gold); font-size: 1rem; }
@keyframes float { from { transform: translateY(0); } to { transform: translateY(-8px); } }

@media (max-width: 479px) {
  .hero-visual { height: 480px; }
  .phone-front { width: 212px; right: 8px; }
  .phone-back { width: 184px; left: 0; top: 40px; }
  .hero-mascot { width: 136px; left: -4px; }
  .hero-chip { top: 72px; right: 0; }
}

/* ---------- Compare ---------- */
.compare { display: grid; gap: var(--s-200); }
@media (min-width: 768px) { .compare { grid-template-columns: 1fr 1fr; } }
.compare-card { padding: var(--s-300); border-radius: var(--r-3xl); border: 1px solid var(--border); display: grid; gap: var(--s-200); align-content: start; }
.compare-card .title-2 { display: inline-flex; align-items: center; gap: var(--s-75); }
.compare-card ul { display: grid; gap: var(--s-100); }
.compare-card li { display: flex; gap: var(--s-100); }
.compare-card li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: var(--s-75); border-radius: var(--r-full); }
.compare-paper { background: var(--surface); color: var(--ink-soft); }
.compare-paper li::before { background: var(--border-strong); }
.compare-app { background: var(--teal); color: #fff; border-color: var(--teal); }
.compare-app i { color: var(--gold); }
.compare-app li::before { background: var(--gold); }

/* ---------- Bento ---------- */
.bento { display: grid; gap: var(--s-200); }
@media (min-width: 768px) {
  .bento { grid-template-columns: repeat(6, 1fr); }
  .card-lessons { grid-column: span 3; }
  .card-shorts { grid-column: span 3; }
  .card-games { grid-column: span 2; }
  .card-mistakes { grid-column: span 2; }
  .card-caravan { grid-column: span 2; }
}
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-3xl);
  padding: var(--s-300); display: grid; gap: var(--s-100); align-content: start; overflow: hidden;
  transition: transform 500ms var(--ease), box-shadow 500ms var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(59, 38, 20, 0.08); }
.card .body-6 { color: var(--ink-soft); }
.icon-badge {
  width: 40px; height: 40px; display: grid; place-items: center; margin-bottom: var(--s-75);
  background: var(--gold-pale); color: var(--rust); border-radius: var(--r-xl); font-size: 1.25rem;
}
.card-lessons, .card-shorts { grid-template-rows: auto 1fr; padding-bottom: 0; }
.card-text { display: grid; gap: var(--s-100); max-width: 400px; }
.card-shot { margin-top: var(--s-300); display: flex; justify-content: center; height: 280px; overflow: hidden; }
.card-shot img {
  width: 232px; height: auto; align-self: flex-start;
  border: var(--s-75) solid #2B1C10; border-bottom: 0;
  border-radius: var(--r-3xl) var(--r-3xl) 0 0;
  background: var(--tint);
}
.game-list { display: grid; gap: var(--s-100); margin-top: var(--s-100); }
.game-list li { display: flex; gap: var(--s-100); align-items: center; }
.game-list li > span:last-child { display: grid; }
.game-list .caption-5 { color: var(--ink-mute); }
.game-ico { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: var(--r-lg); background: var(--teal-pale); color: var(--teal); }
.spacing-row { display: flex; flex-wrap: wrap; gap: var(--s-75); margin-top: var(--s-100); }
.spacing-row li { padding: var(--s-50) var(--s-100); border-radius: var(--r-full); background: var(--teal-pale); color: var(--teal-hover); }
.spacing-row li:not(:first-child)::before { content: "→ "; color: var(--ink-mute); }

/* ---------- Tagline reveal ---------- */
.tagline { padding: var(--s-900) 0; }

.tagline-text { max-width: 760px; margin: 0 auto; text-align: center; }
.tagline-text .w { color: rgba(59, 38, 20, 0.28); transition: color 500ms var(--ease); }
.tagline-text .w.on { color: var(--ink); }

/* ---------- Islands ---------- */
.island-scroller {
  display: flex; gap: var(--s-400); align-items: flex-start;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity;
  padding: var(--s-300) var(--s-200) var(--s-400);
  scrollbar-width: none;
}
.island-scroller::-webkit-scrollbar { display: none; }
.island-scroller img {
  flex: none; height: 440px; width: auto; scroll-snap-align: center;
  filter: drop-shadow(0 24px 24px rgba(59, 38, 20, 0.18));
}
.island-scroller img:nth-child(even) { margin-top: var(--s-600); }
.island-scroller img:nth-child(4) { height: 300px; margin-top: var(--s-800); }
@media (min-width: 1152px) { .island-scroller { justify-content: center; } }
@media (max-width: 639px) {
  .island-scroller img { height: 340px; }
  .island-scroller img:nth-child(4) { height: 240px; }
}
.island-names { display: flex; flex-wrap: wrap; gap: var(--s-75); margin-top: var(--s-300); }
.island-names li {
  display: inline-flex; align-items: center; gap: var(--s-75);
  padding: var(--s-50) var(--s-100) var(--s-50) var(--s-50);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-full);
}
.island-names span {
  width: 24px; height: 24px; display: grid; place-items: center; border-radius: var(--r-full);
  background: var(--gold-pale); color: var(--rust); font-size: 0.75rem; line-height: 1rem; font-weight: 600;
}

/* ---------- Steps ---------- */
.steps { display: grid; gap: var(--s-300); counter-reset: step; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-3xl); padding: var(--s-300); display: grid; gap: var(--s-75); align-content: start; }
.step .body-6 { color: var(--ink-soft); }
.step-art {
  height: 240px; overflow: hidden; margin-bottom: var(--s-200);
  background: var(--tint); border-radius: var(--r-2xl);
  display: flex; justify-content: center; padding-top: var(--s-300);
}
.step-art img { width: 176px; height: auto; align-self: flex-start; border-radius: var(--r-2xl) var(--r-2xl) 0 0; border: var(--s-50) solid #2B1C10; border-bottom: 0; }
.step-art-genie { background: var(--teal-pale); padding-top: var(--s-200); }
.step-art-genie img { width: 152px; border: 0; border-radius: 0; }
.step-num { color: var(--rust); text-transform: uppercase; letter-spacing: 0.08em; }

/* ---------- Souk ---------- */
.souk-grid { display: grid; gap: var(--s-600); align-items: center; }
@media (min-width: 900px) { .souk-grid { grid-template-columns: 1fr 280px; gap: var(--s-800); } }
.souk-grid .body-3 { color: var(--ink-soft); margin-top: var(--s-200); max-width: 560px; }
.souk-grid .heading-3 { margin-top: var(--s-200); max-width: 560px; }
.phone-solo { width: 264px; margin: 0 auto; transform: rotate(3deg); }
.mascot-row { display: flex; flex-wrap: wrap; gap: var(--s-100); margin-top: var(--s-400); }
.mascot-row li {
  width: 80px; height: 80px; display: grid; place-items: end center; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-2xl);
  transition: transform 500ms var(--ease);
}
.mascot-row li:hover { transform: translateY(-4px) rotate(-3deg); }
.mascot-row img { width: 64px; height: auto; }

/* ---------- Quotes ---------- */
.quotes { display: grid; gap: var(--s-200); }
@media (min-width: 768px) { .quotes { grid-template-columns: repeat(3, 1fr); } }
.quote { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-3xl); padding: var(--s-300); display: grid; gap: var(--s-200); align-content: space-between; }
.quote[data-placeholder] { border-style: dashed; border-color: var(--rust); background: var(--rust-pale); }
.quote figcaption .caption-2 { color: var(--ink-mute); }

/* ---------- Plans ---------- */
.plans { display: grid; gap: var(--s-200); max-width: 880px; }
@media (min-width: 768px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-3xl);
  padding: var(--s-400) var(--s-300) var(--s-300); display: flex; flex-direction: column; gap: var(--s-100);
}
.plan .caption-2 { color: var(--ink-mute); }
.plan-plus { border: 2px solid var(--teal); background: #fff; }
.plan-tag { position: absolute; top: var(--s-300); right: var(--s-300); padding: var(--s-50) var(--s-100); background: var(--gold-pale); color: var(--rust); border-radius: var(--r-full); }
.plan-price { display: flex; align-items: baseline; gap: var(--s-50); }
.plan-list { display: grid; gap: var(--s-100); margin: var(--s-200) 0 var(--s-300); color: var(--ink-soft); }
.plan-list li { display: flex; gap: var(--s-75); }
.plan-list i { color: var(--teal); font-size: 1rem; margin-top: var(--s-25); flex: none; }
.plan .btn { margin-top: auto; width: 100%; }
.risk { display: flex; gap: var(--s-75); align-items: flex-start; max-width: 680px; margin-top: var(--s-300); color: var(--ink-soft); }
.risk i { color: var(--teal); font-size: 1.125rem; flex: none; }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 800px; }
.faq { display: grid; gap: var(--s-100); }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-2xl); transition: background-color 300ms var(--ease); }
.faq details[open] { background: #fff; }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--s-200);
  padding: var(--s-200) var(--s-300); border-radius: var(--r-2xl);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--teal-hover); }
.faq summary i { flex: none; color: var(--teal); transition: transform 500ms var(--ease); }
.faq details[open] summary i { transform: rotate(45deg); }
.faq details p { padding: 0 var(--s-300) var(--s-300); color: var(--ink-soft); max-width: 640px; }

/* ---------- Final CTA ---------- */
.final { padding: var(--s-900) 0; }
.final-card {
  position: relative; text-align: center; display: grid; justify-items: center; gap: var(--s-200);
  background: var(--gold-pale); border: 1px solid var(--border-strong); border-radius: var(--r-3xl);
  padding: var(--s-600) var(--s-300);
}
.final-card .body-3 { color: var(--ink-soft); max-width: 480px; }
.final-card .store-row { margin-top: var(--s-100); }
.final-mascot { width: 136px; margin-top: calc(var(--s-800) * -1); filter: drop-shadow(0 12px 16px rgba(59, 38, 20, 0.18)); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: var(--s-500) 0 var(--s-600); }
.footer-inner { display: flex; flex-wrap: wrap; gap: var(--s-300); align-items: center; justify-content: space-between; }
.footer-links { display: flex; flex-wrap: wrap; gap: var(--s-300); }
.footer-links a { color: var(--ink-soft); transition: color 300ms var(--ease); }
.footer-links a:hover { color: var(--teal); }
.footer .caption-5 { color: var(--ink-mute); width: 100%; }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-mascot { animation: none; }
  .js .reveal { transform: none; transition: opacity 400ms linear; }
  .mobile-menu li { transform: none; }
  .card:hover, .store-btn:hover, .mascot-row li:hover { transform: none; }
  .tagline-text .w { color: var(--ink); transition: none; }
}

/* ---------- Simple pages (404, legal) ---------- */
.simple-page { min-height: 100vh; min-height: 100dvh; display: grid; align-items: center; padding: var(--s-900) 0; }
.simple-inner { max-width: 680px; display: grid; gap: var(--s-200); justify-items: start; }
.simple-inner .body-3 { color: var(--ink-soft); }
.simple-mascot { width: 136px; height: auto; }
.back-link { color: var(--teal); }
.back-link:hover { color: var(--teal-hover); }
.placeholder-box { padding: var(--s-300); border: 1px dashed var(--rust); background: var(--rust-pale); border-radius: var(--r-2xl); }

/* ---------- Small phones ---------- */
@media (max-width: 479px) {
  .hero-title { font-size: 2.25rem; line-height: 2.5rem; } /* Heading 3 so the title breaks where the thought breaks */
  .store-row { width: 100%; flex-wrap: nowrap; gap: var(--s-75); }
  .store-btn { flex: 1 1 0; min-width: 0; padding: var(--s-75) var(--s-100); gap: var(--s-75); justify-content: center; }
  .store-btn i { font-size: 1.5rem; }
  .store-btn .title-2 { font-size: 1rem; line-height: 1.5rem; }
}

/* Two column hero on smaller laptops: Heading 2 so "one island at a time" stays on one line */
@media (min-width: 960px) and (max-width: 1199px) {
  .hero-title { font-size: 3rem; line-height: 1; }
}

/* ---------- Language switch ---------- */
.lang-switch {
  display: inline-flex; align-items: center; gap: var(--s-50);
  padding: var(--s-50) var(--s-100); border-radius: var(--r-lg);
  border: 1px solid var(--border-strong); color: var(--ink-soft);
  transition: background-color 300ms var(--ease), color 300ms var(--ease);
}
.lang-switch i { font-size: 1rem; }
.lang-switch:hover { background: rgba(220, 195, 148, 0.3); color: var(--ink); }
.lang-switch:active { transform: scale(0.98); }
.lang-switch-menu { display: inline-flex; align-items: center; gap: var(--s-75); color: var(--teal); }
.lang-switch-menu:hover { color: var(--teal-hover); }
@media (max-width: 1023px) { .lang-switch { display: none; } }
@media (min-width: 1024px) and (max-width: 1199px) { .nav { gap: var(--s-200); } .nav-links a { padding: var(--s-50) var(--s-75); } }

/* ---------- For teachers ---------- */
.teacher-card {
  display: grid; gap: var(--s-400); align-items: center; overflow: hidden;
  background: var(--teal-pale); border: 1px solid #BFE3DC; border-radius: var(--r-3xl);
  padding: var(--s-500) var(--s-300);
}
@media (min-width: 900px) { .teacher-card { grid-template-columns: 1fr 280px; padding: var(--s-600); } }
.teacher-copy { display: grid; gap: var(--s-200); justify-items: start; max-width: 600px; }
.teacher-copy .body-3 { color: var(--ink-soft); }
.teacher-chips { display: flex; flex-wrap: wrap; gap: var(--s-75); }
.teacher-chips li {
  display: inline-flex; align-items: center; gap: var(--s-50);
  padding: var(--s-50) var(--s-100); background: var(--surface); border-radius: var(--r-full); color: var(--teal-hover);
}
.teacher-chips i { font-size: 1rem; }
.teacher-art { width: 220px; margin: 0 auto; filter: drop-shadow(0 16px 24px rgba(14, 94, 87, 0.25)); }
@media (max-width: 899px) { .teacher-art { width: 180px; } }
