/* The home page. The other pages (privacy, terms, support, delete account,
   404) use page.css. The look comes from the Play listing panels: cream
   paper, black bold words, one orange line, one blue line, the blue Ellie. */
:root {
  --cream:      #FFF8F1;
  --peach:      #FFE6CC;
  --paper:      #FFFFFF;
  --ink:        #1F1F1F;
  --muted:      #5F5A55;
  --line:       #F0E6DA;
  --orange:     #F05828;
  --orange-ink: #C2410C; /* orange for small text: 5:1 on cream */
  --blue:       #2478EB;
  --blue-ink:   #1A5FCB; /* blue for small text: 5.6:1 on white */
  --blue-deep:  #134AA8;
  --radius:     28px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Outfit', system-ui, -apple-system, 'Noto Sans Devanagari', sans-serif;
  background: var(--cream); color: var(--ink);
  line-height: 1.55; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }

.skip { position: absolute; left: -9999px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 12px; top: 12px; z-index: 60; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

/* ── nav ─────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 248, 241, .88);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; text-decoration: none; letter-spacing: -.3px; }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.nav-links { display: flex; align-items: center; gap: 26px; font-weight: 600; font-size: 16px; }
.nav-links a { text-decoration: none; color: var(--muted); }
.nav-links a:hover { color: var(--ink); }
.nav-links .pill { color: #fff; }

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: #fff; text-decoration: none;
  font-weight: 700; padding: 12px 20px; border-radius: 999px; line-height: 1.2;
}
.pill svg { flex: none; }
.pill small { display: block; font-size: 11px; font-weight: 500; opacity: .75; letter-spacing: .4px; text-transform: uppercase; }
.pill.big { padding: 14px 26px 14px 22px; font-size: 19px; border-radius: 18px; }
.pill.soon { cursor: default; }

/* ── type ────────────────────────────────────────────────────────── */
h1, h2, h3 { font-weight: 800; letter-spacing: -.02em; line-height: 1.05; }
h2 { font-size: clamp(32px, 4.6vw, 52px); }
h2 span, h1 span { display: block; }
.orange { color: var(--orange); }
.blue { color: var(--blue); }
.kicker { font-weight: 700; font-size: 14px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--orange-ink); margin-bottom: 14px; }
.sub { margin-top: 16px; font-size: clamp(17px, 1.9vw, 20px); color: var(--muted); max-width: 34em; }
section { padding: clamp(64px, 9vw, 112px) 0; }
.head { margin-bottom: clamp(32px, 5vw, 56px); }

/* ── hero: one centred column, then three phones ─────────────────── */
.hero {
  padding: clamp(40px, 6vw, 80px) 0 clamp(24px, 4vw, 48px); text-align: center; overflow: hidden;
  background:
    radial-gradient(50% 40% at 50% 0%, #FFE2C0 0%, rgba(255, 226, 192, 0) 100%),
    var(--cream);
}
.badge {
  display: inline-block; font-weight: 700; font-size: 15px; color: var(--blue-ink);
  background: #E6F0FE; border-radius: 999px; padding: 7px 16px; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(60px, 11vw, 136px); letter-spacing: -.045em; line-height: .88; }
.hero h1 .orange { font-size: .66em; letter-spacing: -.03em; line-height: 1.1; }
.hero .sub { font-size: clamp(19px, 2.2vw, 24px); margin-inline: auto; margin-top: 20px; }
.cta { margin-top: 28px; display: flex; justify-content: center; }
.facts { list-style: none; margin-top: 22px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 0; font-weight: 600; color: var(--muted); }
.facts li + li::before { content: "·"; margin: 0 12px; color: var(--orange); font-weight: 800; }

.trio { position: relative; height: 640px; max-width: 980px; margin: clamp(36px, 5vw, 56px) auto 0; }
.trio::before {
  content: ""; position: absolute; left: 50%; bottom: 0; width: min(900px, 120vw); height: 78%;
  transform: translateX(-50%); border-radius: 50% 50% 44px 44px / 60% 60% 44px 44px;
  background: linear-gradient(180deg, #FFE0BD, #FFD0A0);
}
.trio img { position: absolute; max-width: none; }
.trio .mid { height: 640px; width: auto; left: 50%; bottom: -14px; transform: translateX(-50%); z-index: 2; }
.trio .side { height: 540px; width: auto; left: 50%; bottom: 0; z-index: 1; }
.trio .left { transform: translateX(calc(-50% - 255px)) rotate(-7deg); }
.trio .right { transform: translateX(calc(-50% + 255px)) rotate(7deg); }
.trio .ellie { width: 210px; height: auto; left: 50%; margin-left: -490px; bottom: 6px; z-index: 3; animation: bob 5s ease-in-out infinite; }
.trio .hi {
  position: absolute; left: 50%; margin-left: -520px; bottom: 232px; z-index: 4;
  background: var(--orange); color: #fff; font-weight: 800; font-size: 34px; line-height: 1;
  padding: 14px 20px 16px; border-radius: 20px; transform: rotate(-6deg); white-space: nowrap;
  animation: bob 5s ease-in-out infinite;
}
.trio .hi::after { content: ""; position: absolute; right: 22px; bottom: -14px; border: 10px solid transparent; border-top-color: var(--orange); border-right-color: var(--orange); }
@keyframes bob { 50% { translate: 0 -8px; } }
@media (max-width: 1040px) {
  .trio .ellie { margin-left: 0; left: 0; width: 170px; }
  .trio .hi { margin-left: 0; left: 6px; bottom: 190px; font-size: 28px; padding: 11px 16px 13px; }
}
@media (max-width: 700px) {
  .trio { height: 470px; }
  .trio .mid { height: 470px; }
  .trio .side { height: 400px; }
  .trio .left { transform: translateX(calc(-50% - 165px)) rotate(-7deg); }
  .trio .right { transform: translateX(calc(-50% + 165px)) rotate(7deg); }
  .trio .ellie { width: 120px; left: -6px; }
  .trio .hi { left: 0; bottom: 132px; font-size: 22px; padding: 9px 13px 10px; border-radius: 15px; }
}

/* ── how it works: four panels ───────────────────────────────────── */
.panels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.panel {
  position: relative; overflow: hidden; border-radius: var(--radius);
  padding: 26px 22px 0; height: 520px; display: flex; flex-direction: column;
  background: linear-gradient(170deg, var(--a), var(--b));
}
.panel .n { font-weight: 800; font-size: 14px; letter-spacing: 1.4px; color: var(--c); }
.panel h3 { font-size: 27px; margin-top: 6px; }
.panel h3 span { color: var(--c); display: block; }
.panel p { margin-top: 10px; color: #4A4641; font-size: 16px; line-height: 1.45; }
.panel img { width: 86%; margin: auto auto -62% ; padding-top: 22px; filter: drop-shadow(0 16px 24px rgba(0, 0, 0, .16)); }
.p1 { --a: #FFF7EA; --b: #FFDDB4; --c: #C2410C; }
.p2 { --a: #EEF6FF; --b: #C9DFFA; --c: #1A5FCB; }
.p3 { --a: #F3EFFF; --b: #D9CFFA; --c: #6234C9; }
.p4 { --a: #ECF9EF; --b: #C5EBCF; --c: #14773A; }

/* ── your script ─────────────────────────────────────────────────── */
.script { background: #fff; border-block: 1px solid var(--line); }
.script .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.demo {
  background: linear-gradient(165deg, #FFF8F0, #FFE3C8); border-radius: var(--radius);
  padding: 22px 26px 28px; box-shadow: 0 24px 60px rgba(194, 65, 12, .14); border: 1px solid #FBDDBE;
}
.toggle { display: inline-flex; background: #fff; border-radius: 999px; padding: 4px; border: 1px solid var(--line); }
.toggle button {
  font: inherit; font-weight: 700; font-size: 16px; border: 0; background: none; color: var(--muted);
  padding: 8px 18px; border-radius: 999px; cursor: pointer;
}
.toggle button[aria-pressed="true"] { background: var(--blue); color: #fff; }
.demo .tag { margin-top: 26px; font-size: 13px; font-weight: 700; letter-spacing: 1.4px; color: var(--muted); text-transform: uppercase; }
.demo .word { font-size: clamp(52px, 7vw, 72px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.demo .say { display: flex; align-items: center; gap: 12px; margin-top: 4px; font-weight: 700; font-size: 19px; color: #4A4641; }
.demo .suno {
  font: inherit; font-size: 16px; font-weight: 700; display: inline-flex; align-items: center; gap: 8px;
  border: 0; background: #EBD9C6; color: var(--ink); padding: 7px 16px; border-radius: 999px; cursor: pointer;
}
.demo .suno:hover { background: #E2CBB2; }
.demo .mean { margin-top: 18px; font-size: 26px; }
.demo .use { margin-top: 12px; color: #4A4641; font-size: 18px; }
.demo .inside { margin-top: 18px; padding-left: 14px; border-left: 3px solid #D8C3AC; }
.demo .inside b { display: block; font-size: 12px; letter-spacing: 1.4px; color: var(--muted); }
.demo [lang="hi"] { line-height: 1.7; }

/* ── chapters ────────────────────────────────────────────────────── */
.chapters { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; counter-reset: ch; }
.chapters li {
  counter-increment: ch; position: relative;
  background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 18px 18px 18px 74px; min-height: 96px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.chapters li:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(194, 65, 12, .10); }
.chapters .e { position: absolute; left: 16px; top: 18px; width: 44px; height: 44px; border-radius: 14px; background: var(--peach); display: grid; place-items: center; font-size: 24px; }
.chapters b { display: block; font-size: 18px; font-weight: 700; line-height: 1.25; }
.chapters b::before { content: counter(ch) ". "; color: var(--orange-ink); }
.chapters span { color: var(--muted); font-size: 15px; line-height: 1.4; display: block; margin-top: 3px; }
.also { margin-top: 22px; color: var(--muted); font-size: 17px; }
.also b { color: var(--ink); }

/* ── sounds ──────────────────────────────────────────────────────── */
.sounds { background: var(--blue-deep); color: #fff; position: relative; overflow: hidden; }
.sounds .kicker { color: #FFC59E; }
.sounds .sub { color: #D5E3FA; }
.pairs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.pair { background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .16); border-radius: 22px; padding: 22px; }
.pair .big { font-size: 46px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.pair .big i { font-style: normal; color: #FFB483; }
.pair p { margin-top: 12px; color: #D5E3FA; font-size: 16px; }
.pair p b { color: #fff; font-weight: 600; }

/* ── more ────────────────────────────────────────────────────────── */
.more { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 26px; }
.card .e { font-size: 34px; line-height: 1; }
.card h3 { font-size: 22px; margin-top: 14px; line-height: 1.2; }
.card p { margin-top: 8px; color: var(--muted); }

/* ── questions ───────────────────────────────────────────────────── */
.faq { max-width: 800px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 0 22px; margin-top: 12px; }
.faq summary { cursor: pointer; list-style: none; font-weight: 700; font-size: 19px; padding: 18px 34px 18px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 12px; font-size: 28px; font-weight: 500; color: var(--orange-ink); }
.faq details[open] summary::after { content: "–"; }
.faq p { padding: 0 0 20px; color: var(--muted); font-size: 17px; }
.faq p a { color: var(--orange-ink); }

/* ── last call ───────────────────────────────────────────────────── */
.last { padding: 0 0 clamp(64px, 9vw, 112px); }
.last .box {
  position: relative; overflow: hidden; border-radius: 36px; color: #fff;
  background: radial-gradient(circle at 85% 20%, #4C97F7, var(--blue) 55%);
  padding: clamp(36px, 6vw, 72px); padding-right: min(340px, 34%);
}
.last h2 { font-size: clamp(34px, 5vw, 60px); }
.last p { margin-top: 14px; font-size: 19px; color: #E4EEFD; max-width: 26em; }
.last .pill { margin-top: 26px; }
.last img { position: absolute; right: 3%; bottom: -30px; width: min(300px, 30%); }

/* ── footer ──────────────────────────────────────────────────────── */
footer { border-top: 1px solid var(--line); padding: 34px 0 44px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
footer .links { display: flex; flex-wrap: wrap; gap: 20px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--orange-ink); text-decoration: underline; }
footer .fine { font-size: 14px; }

/* ── small screens ───────────────────────────────────────────────── */
@media (max-width: 960px) {
  .panels {
    grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: min(74vw, 300px);
    overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 20px 14px; margin-inline: -20px; scrollbar-width: none;
  }
  .panels::-webkit-scrollbar { display: none; }
  .panel { scroll-snap-align: center; }
  .pairs { grid-template-columns: repeat(2, 1fr); }
  .more { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .nav-links a:not(.pill) { display: none; }
  .script .wrap { grid-template-columns: 1fr; }
  .last .box { padding-right: clamp(36px, 6vw, 72px); padding-bottom: 220px; }
  .last img { width: 190px; right: 50%; translate: 50% 0; }
}
@media (max-width: 420px) {
  .nav .pill small { display: none; }
  .nav .pill { padding: 10px 14px; font-size: 14px; }
  .pairs { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .chapters li { transition: none; }
}
