/* Nanhe Taare landing page. Layout: sticky header, navy hero, subject cards, class cards, safety grid, screenshot strip, parents and schools, FAQ, footer. */
:root {
  --bg: #F2F7FF; --surface: #FFFFFF; --ink: #1B2559; --muted: #46507F; --line: #E1E9FB;
  --navy: #1B2559; --navy-2: #2C3A7E; --on-navy: #EEF2FF; --on-navy-muted: #C7D3FF;
  --blue: #1F4FD8; --blue-tint: #DCE8FF; --blue-ink: #33407A;
  --orange: #B8380A; --orange-tint: #FFE5D0; --orange-ink: #6B3414;
  --green: #0B7A45; --green-tint: #D5F5E3; --green-ink: #124F32;
  --gold: #FFC21A;
  --head: "Baloo 2", "Noto Sans Devanagari", system-ui, sans-serif;
  --body: "Inter", "Noto Sans Devanagari", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F1633; --surface: #18214A; --ink: #EEF2FF; --muted: #B3BFEA; --line: #2A3566;
    --blue: #8FB0FF; --blue-tint: #1E2D63; --blue-ink: #C6D6FF;
    --orange: #FFA77A; --orange-tint: #4A2A1B; --orange-ink: #FFD3BC;
    --green: #62D79F; --green-tint: #17402F; --green-ink: #BDF0D6;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--body); -webkit-text-size-adjust: 100%; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 { font-family: var(--head); line-height: 1.08; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(38px, 6.4vw, 64px); font-weight: 800; }
h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; }
h3 { font-size: 24px; font-weight: 800; }
p { margin: 0; }
.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
section { padding-block: 64px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 50; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: var(--navy); color: var(--on-navy); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font: 800 24px/1 var(--head); }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.top nav { display: flex; gap: 20px; align-items: center; }
.top nav a { color: var(--on-navy-muted); text-decoration: none; font-weight: 500; font-size: 15px; }
.top nav a:not(.btn):hover { color: #fff; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border-radius: 999px; font: 600 17px/1 var(--body); text-decoration: none; border: 2px solid transparent; }
.btn.primary { background: var(--gold); color: #3B2A00; }
.btn.ghost { border-color: var(--on-navy-muted); color: var(--on-navy); }
.btn.soon { background: var(--navy-2); color: var(--on-navy); border-color: var(--on-navy-muted); cursor: default; }

/* Hero */
.hero { background: var(--navy); color: var(--on-navy); padding-block: 56px 0; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 32px; align-items: end; }
.hero-text { display: flex; flex-direction: column; gap: 20px; padding-bottom: 64px; align-self: center; }
.hero .hi { font: 700 28px/1.2 var(--head); color: #FFB48A; }
.hero p.lead { font-size: 20px; color: var(--on-navy-muted); max-width: 34ch; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips span { font: 600 14px/1.2 var(--body); padding: 10px 18px; border-radius: 999px; background: var(--navy-2); color: var(--on-navy); }
.hero-shots { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: 0; }
.hero-shots img { width: 46%; border-radius: 24px 24px 0 0; box-shadow: 0 10px 40px rgba(0,0,0,.35); }
.hero-shots img:first-child { transform: translateY(18px) rotate(-3deg); margin-right: -6%; position: relative; z-index: 1; }
.hero-shots img:last-child { transform: translateY(48px) rotate(3deg); }

/* Subjects */
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.sub { border-radius: 28px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.sub .glyph { font: 800 56px/1 var(--head); }
.sub.en { background: var(--blue-tint); color: var(--blue-ink); } .sub.en .glyph, .sub.en h3 { color: var(--blue); }
.sub.hi { background: var(--orange-tint); color: var(--orange-ink); } .sub.hi .glyph, .sub.hi h3 { color: var(--orange); }
.sub.num { background: var(--green-tint); color: var(--green-ink); } .sub.num .glyph, .sub.num h3 { color: var(--green); }
.lede { color: var(--muted); max-width: 60ch; margin-top: 10px; }

/* Classes */
.classes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.cls { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.cls small { color: var(--muted); font-weight: 500; }
.cls ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 16px; }
.cls li { padding-left: 18px; position: relative; }
.cls li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.cls b { font-weight: 600; }

/* Safe */
.safe { background: var(--surface); border-block: 1px solid var(--line); }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.pt { display: flex; flex-direction: column; gap: 8px; padding-top: 14px; border-top: 3px solid var(--gold); }
.pt h3 { font-size: 21px; }
.pt p { color: var(--muted); font-size: 16px; }

/* Screenshots */
.strip { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 16px 20px; margin-top: 24px; -webkit-overflow-scrolling: touch; }
.strip figure { margin: 0; flex: 0 0 min(260px, 62vw); scroll-snap-align: center; }
.strip img { border-radius: 22px; border: 1px solid var(--line); }

/* Two columns */
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.box ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.box li { padding-left: 22px; position: relative; }
.box li::before { content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; border-radius: 50%; background: var(--green); }
.box.navy { background: var(--navy); color: var(--on-navy); border-color: var(--navy); }
.box.navy p, .box.navy li { color: var(--on-navy-muted); }
.box.navy li::before { background: var(--gold); }
.box.navy a { color: var(--gold); }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; max-width: 760px; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 6px 24px; }
summary { cursor: pointer; font: 600 18px/1.4 var(--body); padding: 14px 0; }
details p { color: var(--muted); padding-bottom: 16px; }

/* Footer */
footer { background: var(--navy); color: var(--on-navy-muted); padding-block: 40px; font-size: 15px; }
footer .wrap { display: flex; flex-direction: column; gap: 14px; }
footer .links { display: flex; gap: 20px; flex-wrap: wrap; }
footer a { color: var(--on-navy); }

/* Privacy page */
.doc { max-width: 760px; padding-block: 48px 72px; display: flex; flex-direction: column; gap: 18px; }
.doc h2 { font-size: 28px; margin-top: 18px; }
.doc ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.doc .meta { color: var(--muted); }
.doc .note { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px 24px; }
.doc code { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 2px 8px; font-size: .92em; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero-text { padding-bottom: 8px; }
  .hero-shots { max-width: 420px; margin-inline: auto; }
  .three, .classes, .two { grid-template-columns: minmax(0, 1fr); }
  .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .top nav a:not(.btn) { display: none; }
  section { padding-block: 48px; }
}
@media (max-width: 480px) { .grid4 { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
