/* Homepage layout, using the shared game tokens and controls from country.css.
   Design contract: docs/design-principles.md. */
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
.wrap { width: min(1180px, calc(100% - 64px)); }
a, button, summary { -webkit-tap-highlight-color: transparent; }
.nav { gap: 32px; min-height: 104px; padding: 20px 0; }
.nav nav { gap: 28px; margin-left: auto; }
.nav nav a, .nav-actions a { font-size: 14px; font-weight: 800; text-decoration: none; }
.nav-actions { display: flex; align-items: center; gap: 20px; }
.language { color: var(--muted); }
.login { border: 2px solid var(--line); padding: 8px 17px; border-radius: var(--radius-control); background: var(--panel); box-shadow: 2px 2px 0 var(--soft); }
.country-entry { padding: 0 0 15px; }
.country-picker { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.country-picker label { font-weight: 800; font-size: 14px; }
.country-picker select { font: inherit; color: var(--text); background: var(--panel); border: 2px solid var(--line); border-radius: var(--radius-control); padding: 9px 12px; min-width: 190px; max-width: 100%; }
.country-picker .button { font-size: 13px; padding: 9px 14px; }
.country-recommendation { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding: 16px 20px; margin-top: 22px; background: var(--sun-soft); border: 2px solid var(--line); border-radius: var(--radius-card); }
.country-recommendation p { margin: 0; }
.country-recommendation .button { padding: 9px 14px; font-size: 14px; }
.hero { grid-template-columns: 1.15fr 1fr; gap: 66px; padding-top: 45px; padding-bottom: 88px; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 18px; }
.hero .eyebrow::before { display: none; }
.tiny-dot { width: 12px; height: 12px; background: var(--accent2); border: 2px solid var(--line); border-radius: 50%; flex-shrink: 0; }
h1 { font-size: clamp(42px, 4.8vw, 65px); }
.lead { font-size: 18px; line-height: 1.8; max-width: 490px; margin: 24px 0 29px; }
.actions { gap: 24px; margin: 0; }
.text-link { font-size: 14px; font-weight: 900; text-decoration: underline; }
.small-note { font-size: 12px; color: var(--muted); margin: 13px 0 20px; }
.comparison-teaser { font-size: 14px; margin: 18px 0 24px; font-weight: 800; }
.hero-proof { display: flex; gap: 17px; flex-wrap: wrap; font-size: 12px; font-weight: 800; }
.hero-proof i { font-style: normal; color: var(--text); }
.quiz-card { background: var(--panel); border: 2px solid var(--line); border-radius: var(--radius-card); box-shadow: 5px 5px 0 #ffe3ad; scroll-margin-top: 25px; position: relative; min-width: 0; }
.quiz-top { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px 0; }
.quiz-top .eyebrow { margin: 0; font-size: 10px; letter-spacing: 1px; }
.quiz-count { font-size: 12px; font-weight: 900; background: var(--sun); border: 2px solid var(--line); border-radius: 999px; padding: 3px 11px; }
.quiz-card h2 { font-size: 30px; padding: 12px 24px 0; margin: 0; }
.quiz-instruction { font-size: 12px; color: var(--muted); padding: 0 24px; margin: 8px 0 12px; }
.quiz-map { position: relative; width: min(100%, 330px); aspect-ratio: 500/550; margin: auto; background: var(--map-bg); }
.quiz-map svg { width: 100%; height: 100%; display: block; }
.province-paths { fill: var(--map-land); stroke: var(--bg); stroke-width: 1.4; stroke-linejoin: round; }
.map-caption { position: absolute; bottom: 9%; right: 9%; font-size: 11px; letter-spacing: 2px; color: var(--muted); text-transform: uppercase; font-weight: 900; }
.map-dot { position: absolute; transform: translate(-50%, -50%); width: 44px; height: 44px; border: 0; border-radius: 50%; padding: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
.map-dot span { display: grid; place-items: center; width: 40px; height: 40px; border: 2px solid var(--line); background: var(--sun); color: var(--text); border-radius: 50%; font-size: 18px; font-weight: 900; box-shadow: 2px 2px 0 var(--line); }
.map-dot:hover:not(:disabled) span { background: var(--accent2); }
.map-dot.correct span { background: var(--good); }
.map-dot.wrong span { background: var(--bad); }
.map-dot:disabled { cursor: default; }
.quiz-bottom { border-top: 2px solid var(--line); border-radius: 0 0 14px 5px; background: var(--bg); padding: 17px 24px; min-height: 79px; }
.quiz-bottom p { font-size: 13px; line-height: 1.55; margin: 0; color: var(--muted); }
.quiz-bottom .button { margin-top: 14px; padding: 9px 16px; font-size: 13px; }
.quiz-bottom p.correct, .quiz-bottom p.wrong { color: var(--text); font-weight: 800; }
.section { padding-top: 88px; padding-bottom: 88px; }
.how-section { background: var(--sun-soft); border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; margin-top: 42px; }
.step-number { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 44px; font-size: 18px; font-weight: 900; color: var(--text); background: var(--sun); border: 2px solid var(--line); border-radius: var(--radius-control); box-shadow: 2px 2px 0 var(--line); margin-bottom: 18px; }
.steps h3 { font-size: 25px; }
.steps p { font-size: 15px; color: var(--muted); margin-bottom: 0; }
.comparison-section { background: var(--teal-soft); border-bottom: 2px solid var(--line); }
.comparison-section .fine { max-width: 800px; margin-top: 22px; }
.section-heading { display: grid; grid-template-columns: 1.1fr 1fr; gap: 80px; align-items: end; margin-bottom: 35px; }
.section-heading > p { margin: 0; color: var(--muted); font-size: 15px; }
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.category { min-width: 0; border: 2px solid var(--line); border-radius: var(--radius-card); padding: 24px; display: flex; flex-direction: column; text-decoration: none; background: var(--panel); box-shadow: 4px 4px 0 #ffe3ad; }
.category:hover { background: var(--sun-soft); text-decoration: none; }
.category-icon { width: 46px; height: 46px; border: 2px solid var(--line); border-radius: var(--radius-control); display: grid; place-items: center; font-size: 28px; color: var(--text); background: var(--accent2); margin-bottom: 25px; }
.category-1 .category-icon { background: var(--sun); }
.category-2 .category-icon { background: var(--accent); }
.category-3 .category-icon { background: var(--sun-soft); }
.category h3 { font-size: 24px; }
.category p { font-size: 14px; color: var(--muted); margin: 12px 0 24px; }
.category-link { font-size: 12px; font-weight: 900; margin-top: auto; display: flex; gap: 12px; justify-content: space-between; }
.all-guides { display: inline-block; margin-top: 26px; }
.learning-section { background: var(--accent-soft); border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); }
.learning-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: center; }
.learning-grid > div > p:not(.eyebrow) { color: var(--muted); }
.learning-tips { padding-left: 20px; font-size: 14px; }
.learning-tips li { margin-top: 10px; padding-left: 5px; }
.mode-panel { background: var(--panel); border: 2px solid var(--line); padding: 32px; border-radius: var(--radius-card); box-shadow: 5px 5px 0 #ffe3ad; }
.mode-panel > h3 { font-size: 29px; margin-bottom: 26px; }
.mode { display: flex; gap: 18px; margin: 24px 0; }
.mode > span { font-size: 26px; color: var(--text); width: 30px; text-align: center; flex-shrink: 0; }
.mode h4 { font: 800 22px/1.14 'Baloo 2', cursive; margin: 0; }
.mode p { font-size: 14px; color: var(--muted); margin: 6px 0 0; }
.school-banner { display: flex; justify-content: space-between; gap: 50px; align-items: center; margin-top: 70px; border: 2px solid var(--line); border-radius: var(--radius-card); padding: 38px 42px; background: var(--sun-soft); box-shadow: 5px 5px 0 #ffe3ad; }
.school-banner h2 { font-size: 32px; }
.school-banner p:not(.eyebrow) { font-size: 14px; max-width: 600px; margin-bottom: 0; }
.school-banner .button { flex-shrink: 0; font-size: 13px; }
.school-banner .eyebrow { margin-bottom: 12px; }
.faq-section { max-width: 850px; }
.faq-section > h2 { margin-bottom: 30px; }
.faq-list { border-top: 2px solid var(--soft); margin-bottom: 25px; }
.faq-list details { border-top: 0; border-bottom: 2px solid var(--soft); padding: 19px 0; }
.faq-list summary { display: flex; justify-content: space-between; gap: 20px; cursor: pointer; font-weight: 900; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { font-size: 21px; line-height: 1.1; }
.faq-list details[open] summary span { transform: rotate(45deg); }
.faq-list details p { margin: 14px 0 0; color: var(--muted); font-size: 15px; max-width: 710px; }
.final-cta { background: var(--sun-soft); border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); text-align: center; padding: 55px 0 65px; }
.final-cta img { margin-bottom: 14px; }
.final-cta p { color: var(--muted); margin: 13px 0 24px; }
.footer { display: flex; align-items: center; gap: 30px; padding-top: 28px; padding-bottom: 28px; border-top: 0; }
.footer .brand { font-size: 21px; }
.footer > div { display: flex; gap: 22px; margin-left: auto; }
.footer > div a { font-size: 12px; font-weight: 800; text-decoration: none; }
.footer p { font-size: 11px; color: var(--muted); margin: 0; }
@media (max-width: 1000px) {
  .nav nav { gap: 16px; }
  .hero { gap: 32px; }
  .hero-proof { gap: 10px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .school-banner { flex-direction: column; align-items: flex-start; gap: 25px; }
  .learning-grid { gap: 40px; }
  .footer { flex-wrap: wrap; }
  .footer p { width: 100%; }
}
@media (max-width: 700px) {
  .wrap { width: calc(100% - 36px); }
  .nav { min-height: 80px; gap: 15px; }
  .nav nav { display: none; }
  .nav-actions { margin-left: auto; gap: 14px; }
  .brand { font-size: 20px; gap: 5px; }
  .brand img { width: 28px; height: 28px; }
  .login { padding: 6px 10px; }
  .country-picker { gap: 12px; }
  .country-picker label { width: 100%; }
  .country-picker select { flex: 1; min-width: 0; width: 100%; }
  .country-picker .button { font-size: 12px; padding: 9px 10px; }
  .hero { grid-template-columns: 1fr; padding-top: 28px; padding-bottom: 50px; gap: 34px; }
  .hero h1 { font-size: 46px; }
  .lead { font-size: 16px; margin-top: 20px; }
  .hero .eyebrow { font-size: 10px; }
  .hero-proof { font-size: 11px; gap: 14px; }
  .actions { gap: 18px; }
  .button { font-size: 14px; padding: 12px 18px; }
  .quiz-card { max-width: 470px; width: 100%; margin: auto; }
  .quiz-map { max-width: 295px; }
  .section { padding-top: 55px; padding-bottom: 55px; }
  .steps { grid-template-columns: 1fr; gap: 26px; margin-top: 28px; }
  .steps p { margin-top: 8px; }
  .section-heading { grid-template-columns: 1fr; gap: 18px; }
  .category-grid { gap: 16px; }
  .category { padding: 19px 16px; }
  .category h3 { font-size: 22px; }
  .category-icon { margin-bottom: 18px; }
  .category-link { font-size: 11px; }
  .learning-grid { grid-template-columns: 1fr; gap: 28px; }
  .mode-panel { padding: 25px; }
  .school-banner { padding: 26px; margin-top: 45px; }
  .school-banner .button { font-size: 12px; max-width: 100%; gap: 12px; }
  .footer { gap: 18px; }
  .footer > div { margin-left: 0; gap: 18px; }
  .faq-section summary { font-size: 15px; }
  .final-cta { padding: 45px 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.quiz-top { flex-wrap: wrap; gap: 10px; }
.quiz-bottom .demo-result p { margin: 12px 0; }
.quiz-bottom .demo-result h3 { padding: 0; font-size: 25px; }

.nav-actions { margin-left:auto; flex-wrap:wrap; justify-content:flex-end; gap:12px; }
