/* Learn Hindi website. Colours follow the app (WordlyTheme); marigold marks the
   shirorekha, the bar that Devanagari letters hang from. */
:root {
  --ink: #1d2f44;
  --ink-soft: #4a5b70;
  --paper: #f6f8fc;
  --surface: #ffffff;
  --line: #dde4ee;
  --royal: #365bd6;
  --hero: #365bd6;
  --hero-text: #ffffff;
  --hero-soft: #e3eaff;
  --marigold: #f2b33d;
  --teal: #137b6d;
  --display: "Tiro Devanagari Hindi", "Kohinoor Devanagari", Georgia, serif;
  --body: "Mukta", "Kohinoor Devanagari", -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #edf2ff;
    --ink-soft: #b0bdd0;
    --paper: #0f1828;
    --surface: #152030;
    --line: #2b3a50;
    --royal: #8ca9ff;
    --hero: #1f2f75;
    --hero-soft: #cdd8ff;
    --teal: #73d4bb;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: 18px; line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--royal); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--marigold); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip { position: absolute; left: 16px; top: -60px; background: var(--surface); color: var(--ink); padding: 8px 14px; z-index: 10; }
.skip:focus { top: 12px; }

/* Header and hero share the royal band */
.site-header { background: var(--hero); color: var(--hero-text); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 8px 24px; min-height: 76px; flex-wrap: wrap; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 700; font-size: 21px; letter-spacing: -0.01em; }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.site-nav { display: flex; flex-wrap: wrap; gap: 2px 22px; }
.site-nav a { color: var(--hero-soft); text-decoration: none; font-weight: 500; font-size: 17px; padding-block: 6px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--hero-text); text-decoration: underline 3px var(--marigold); text-underline-offset: 8px; }

.hero { background: var(--hero); color: var(--hero-text); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px 56px; padding-top: 48px; }
.hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(46px, 6.6vw, 84px); line-height: 1.04; letter-spacing: -0.012em; margin: 0 0 22px; }
.hero .lede { font-size: clamp(18px, 1.9vw, 21px); color: var(--hero-soft); max-width: 31em; margin: 0 0 28px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.store-soon { display: inline-block; background: #fff; color: #1d2f44; border-radius: 999px; padding: 11px 22px; font-weight: 600; margin: 0; }
.hero .actions a { color: var(--hero-text); font-weight: 500; }

/* The five vowel sounds hang from a marigold bar */
.sounds { margin: 44px 0 64px; }
.sounds p { margin: 0 0 14px; color: var(--hero-soft); font-size: 16px; }
.sound-row { display: flex; width: fit-content; max-width: 100%; border-top: 8px solid var(--marigold); }
.sound {
  flex: 1 1 0; min-width: 0; width: 82px; display: grid; justify-items: center; gap: 2px;
  padding: 0 4px 12px; border: 0; border-radius: 0 0 16px 16px; cursor: pointer;
  background: transparent; color: var(--hero-text); font: inherit;
  transition: background-color .15s ease;
}
.sound:hover { background: rgba(255, 255, 255, .1); }
.sound .glyph { font-family: var(--display); font-size: 56px; line-height: 1.15; margin-top: -.1em; } /* letter headline meets the bar */
.sound .roman { font-size: 16px; color: var(--hero-soft); }
.sound.is-playing { background: rgba(255, 255, 255, .18); }
.sound.is-playing .roman { color: var(--marigold); }

/* Phone frame around real app screens */
.phone { position: relative; background: #0c1220; padding: 3.2%; border-radius: 15% / 7%; box-shadow: 0 30px 70px rgba(6, 12, 36, .4), inset 0 0 0 2px #2c3548; }
.phone img { border-radius: 12% / 5.6%; width: 100%; height: auto; }
.phone::after { content: ""; position: absolute; top: 4.6%; left: 50%; translate: -50% 0; width: 28%; aspect-ratio: 126 / 37; border-radius: 999px; background: #000; }
figure.phone { margin: 0; }
.hero .phone { width: min(360px, 100%); justify-self: center; align-self: end; margin: 0 auto -26%; }
.hero-shot { display: grid; align-items: end; }

/* Sections */
main section { padding-block: 96px 24px; }
.hang { display: inline-block; border-top: 6px solid var(--marigold); padding-top: 14px; }
h2 { font-family: var(--display); font-weight: 400; font-size: clamp(36px, 4.4vw, 54px); line-height: 1.1; margin: 0 0 18px; }
h3 { font-size: 26px; line-height: 1.25; font-weight: 700; margin: 0 0 10px; letter-spacing: -0.01em; }
.section-lede { font-size: 20px; color: var(--ink-soft); max-width: 36em; margin: 0 0 24px; }

/* Five screens read left to right, from sounds to stories */
.features { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; margin-top: 48px; }
.feature { display: flex; flex-direction: column; gap: 22px; }
.feature .phone { width: 100%; max-width: 230px; }
.feature h3 { font-size: 21px; margin-bottom: 6px; }
.feature p { color: var(--ink-soft); font-size: 16px; line-height: 1.5; margin: 0; }

.units { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 40px; }
.units li { border-top: 2px solid var(--line); padding-top: 12px; display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 8px; }
.unit-num { font-family: var(--display); font-size: 34px; line-height: 1.1; color: var(--teal); grid-row: span 2; }
.unit-title { font-weight: 700; font-size: 19px; line-height: 1.35; }
.unit-text { color: var(--ink-soft); font-size: 16px; line-height: 1.45; }

.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 64px; margin-top: 44px; }
.pair ul { list-style: none; padding: 0; margin: 0; }
.pair li { position: relative; padding-left: 26px; margin-bottom: 12px; color: var(--ink-soft); }
.pair li::before { content: ""; position: absolute; left: 0; top: .78em; width: 14px; height: 4px; border-radius: 2px; background: var(--marigold); }

/* Policy and support pages */
.doc { padding-block: 64px 32px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-family: var(--display); font-weight: 400; font-size: clamp(40px, 5vw, 58px); line-height: 1.08; margin: 0 0 12px; }
.doc .updated { color: var(--ink-soft); margin: 0 0 36px; }
.doc h2 { font-family: var(--body); font-weight: 700; font-size: 24px; line-height: 1.3; margin: 44px 0 10px; }
.doc p, .doc li { color: var(--ink); }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.summary { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px 26px; margin: 0 0 12px; }
.summary p { margin: 0; }
.contact { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px 26px; margin-top: 16px; }
.contact p { margin: 0 0 14px; }
.email-reveal { font: inherit; font-weight: 600; color: #fff; background: var(--royal); border: 0; border-radius: 999px; padding: 10px 22px; cursor: pointer; }
@media (prefers-color-scheme: dark) { .email-reveal { color: #0f1828; } }
.contact a { font-weight: 600; font-size: 20px; }
pre.license { white-space: pre-wrap; font-size: 13px; line-height: 1.5; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; overflow-x: auto; }

.site-footer { border-top: 1px solid var(--line); margin-top: 72px; padding-block: 36px 48px; color: var(--ink-soft); font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.site-footer nav a { color: var(--ink); }
.site-footer p { margin: 0; max-width: 46em; }

@media (max-width: 900px) {
  .units { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .features { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(62%, 240px);
    overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 16px; }
  .feature { scroll-snap-align: start; }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); padding-top: 28px; }
  .sounds { margin: 36px 0 8px; }
  .sound-row { width: 100%; max-width: 440px; }
  .sound { width: auto; }
  .sound .glyph { font-size: 46px; }
  .hero .phone { width: min(300px, 82%); margin-bottom: -38%; }
  main section { padding-block: 72px 16px; }
  .pair { grid-template-columns: minmax(0, 1fr); }
  .units { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .sound { transition: none; }
}
