@font-face { font-family: "Sikho"; src: url("../fonts/NotoSansDevanagari-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Sikho"; src: url("../fonts/NotoSansDevanagari-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --cream: #FFF6E5;
  --paper: #FFFDF8;
  --sand: #F3E6CF;
  --line: #E6D6BC;
  --ink: #28211C;
  --soft: #6B5D52;
  --clay: #D63A1E;
  --clay-dark: #A82A13;
  --ochre: #F4B400;
  --ochre-dark: #C48F00;
  --forest: #1F8A70;
  --forest-dark: #166652;
  --sky: #2F6FB3;
  --night: #1E3A5F;
  --radius: 22px;
  --shadow: 0 2px 0 rgba(40, 33, 28, .06), 0 18px 40px -24px rgba(40, 33, 28, .35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 18px/1.6 "Sikho", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--forest-dark); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .4em; }
h1 { font-size: clamp(2.2rem, 6vw, 4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

/* One language at a time: Hindi first, English on request. */
html[data-lang="hi"] [lang="en"]:not(html), html[data-lang="en"] [lang="hi"]:not(html) { display: none !important; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.eyebrow { color: var(--clay); font-weight: 700; font-size: .95rem; letter-spacing: .04em; margin-bottom: .6em; }
.lead { font-size: 1.15rem; color: var(--soft); max-width: 36em; }
.muted { color: var(--soft); }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 246, 229, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 40px; height: 40px; }
.brand b { font-size: 1.25rem; color: var(--forest); display: block; line-height: 1.1; }
.brand small { color: var(--soft); font-size: .8rem; display: block; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: .95rem; }
.nav a:hover { color: var(--clay); }
.lang { border: 2px solid var(--line); background: var(--paper); border-radius: 999px; padding: 4px; display: flex; }
.lang button { border: 0; background: none; font: inherit; font-size: .85rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; cursor: pointer; color: var(--soft); }
.lang button[aria-pressed="true"] { background: var(--forest); color: #fff; }

/* Chunky buttons, as in the app */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-weight: 700; font-size: 1.05rem; text-decoration: none;
  padding: 14px 26px; border-radius: 16px; border: 0; cursor: pointer;
  background: var(--forest); color: #fff; box-shadow: 0 5px 0 var(--forest-dark);
  transition: transform .08s, box-shadow .08s;
}
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--forest-dark); }
.btn.ghost { background: var(--paper); color: var(--ink); box-shadow: 0 5px 0 var(--line); border: 2px solid var(--line); }
.btn.ghost:active { box-shadow: 0 1px 0 var(--line); }
.btn.clay { background: var(--clay); box-shadow: 0 5px 0 var(--clay-dark); }
.btn:focus-visible, .lang button:focus-visible, .choice:focus-visible, .play:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }

/* Hero */
.hero { padding: 64px 0 40px; position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 span.accent { color: var(--clay); }
.hero .cta { display: flex; flex-wrap: wrap; gap: 16px; margin: 28px 0 18px; }
.soon { display: inline-flex; gap: 8px; align-items: center; font-size: .9rem; color: var(--soft); }
.soon i { width: 8px; height: 8px; border-radius: 50%; background: var(--ochre); display: inline-block; }
.sun { position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 180, 0, .35), rgba(244, 180, 0, 0) 65%); pointer-events: none; }

.phone { position: relative; width: min(300px, 76vw); margin-inline: auto; border-radius: 44px; padding: 12px;
  background: #1d1a17; box-shadow: 0 30px 60px -30px rgba(40, 33, 28, .6); }
.phone img { border-radius: 34px; width: 100%; height: auto; aspect-ratio: 10 / 16; object-fit: cover; object-position: top; }
.badge-float { position: absolute; background: var(--paper); border: 2px solid var(--line); border-radius: 16px;
  padding: 10px 14px; font-weight: 700; font-size: .9rem; box-shadow: var(--shadow); }
.badge-float.a { left: -40px; top: 18%; }
.badge-float.b { right: -36px; bottom: 16%; }
.badge-float em { font-style: normal; color: var(--clay); }

/* Sections */
section.band { padding: 80px 0; scroll-margin-top: 68px; }
section.band.alt { background: var(--paper); border-block: 1px solid var(--line); }
.head { max-width: 760px; margin-bottom: 36px; }

/* Try a lesson */
.trybox { background: var(--paper); border: 2px solid var(--line); border-radius: 28px; padding: 28px; box-shadow: var(--shadow); max-width: 720px; }
.progress { height: 14px; background: var(--sand); border-radius: 999px; overflow: hidden; margin-bottom: 24px; }
.progress div { height: 100%; width: 0; background: var(--ochre); border-radius: 999px; transition: width .3s; }
.ask { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.play { width: 72px; height: 72px; border-radius: 20px; border: 0; cursor: pointer; flex: none;
  background: var(--sky); color: #fff; box-shadow: 0 5px 0 #23568c; display: grid; place-items: center; }
.play:active { transform: translateY(4px); box-shadow: 0 1px 0 #23568c; }
.play svg { width: 32px; height: 32px; }
.play.small { width: 44px; height: 44px; border-radius: 14px; box-shadow: 0 4px 0 #23568c; }
.play.small svg { width: 20px; height: 20px; }
.play.slow { background: var(--ochre); box-shadow: 0 4px 0 var(--ochre-dark); color: var(--ink); }
.choices { display: grid; gap: 12px; }
.choice { text-align: left; font: inherit; font-size: 1.1rem; padding: 16px 18px; border-radius: 16px; cursor: pointer;
  background: #fff; border: 2px solid var(--line); box-shadow: 0 4px 0 var(--line); color: var(--ink); }
.choice[aria-pressed="true"] { border-color: var(--sky); box-shadow: 0 4px 0 var(--sky); background: #eef5fc; }
.choice.right { border-color: var(--forest); box-shadow: 0 4px 0 var(--forest); background: #e8f5f1; }
.choice.answer { border-color: var(--ochre-dark); box-shadow: 0 4px 0 var(--ochre-dark); background: #fff6d9; }
.choice:disabled { cursor: default; }
.feedback { margin-top: 20px; border-radius: 18px; padding: 16px 18px; display: none; }
.feedback.show { display: block; }
.feedback.good { background: #e8f5f1; color: var(--forest-dark); }
.feedback.calm { background: #fff6d9; color: #6a4d00; }
.feedback .g { font-size: 1.3rem; font-weight: 700; color: var(--ink); }
.tryfoot { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; gap: 12px; flex-wrap: wrap; }
.done { text-align: center; padding: 20px 0; }
.done .big { font-size: 3rem; }

/* Phrasebook */
.tools { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.tools input { flex: 1 1 260px; font: inherit; padding: 12px 16px; border-radius: 14px; border: 2px solid var(--line); background: #fff; }
.tools select { font: inherit; padding: 12px 14px; border-radius: 14px; border: 2px solid var(--line); background: #fff; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.card { background: #fff; border: 2px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.card .gd { font-size: 1.45rem; font-weight: 700; }
.card .gr { color: var(--soft); margin-top: -6px; }
.card .mn { border-top: 1px dashed var(--line); padding-top: 8px; }
.card .row { display: flex; gap: 8px; margin-top: auto; padding-top: 6px; }
.pill { display: inline-block; font-size: .75rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: #f1e9fb; color: #6b3fa0; }
.more { text-align: center; margin-top: 24px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: #fff; border: 2px solid var(--line); border-radius: var(--radius); padding: 24px; }
.step .num { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-weight: 700; color: #fff; margin-bottom: 14px; }
.n1 { background: var(--forest); } .n2 { background: var(--clay); } .n3 { background: var(--sky); }

/* Story */
.story { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: center; }
.story .mark { background: var(--paper); border-radius: 32px; padding: 32px; border: 2px solid var(--line); }
.honest { margin-top: 28px; background: #f6f0fd; border: 2px solid #d9c7f0; border-radius: var(--radius); padding: 20px 22px; }
.promise { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 8px; }
.promise div { background: #fff; border: 2px solid var(--line); border-radius: 18px; padding: 18px; font-weight: 700; }
.promise div span { display: block; font-weight: 400; color: var(--soft); font-size: .95rem; }

/* Final call */
.final { text-align: center; background: var(--forest); color: #fff; border-radius: 36px; padding: 56px 24px; }
.final .lead { color: #d8efe8; margin-inline: auto; }
.final .btn { background: var(--ochre); color: var(--ink); box-shadow: 0 5px 0 var(--ochre-dark); }

/* Footer */
footer { padding: 48px 0 64px; color: var(--soft); font-size: .95rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: flex-start; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* Plain pages (privacy, support) */
.doc { padding: 56px 0 24px; }
.doc .wrap { max-width: 780px; }
.doc h2 { font-size: 1.4rem; margin-top: 1.6em; }
.doc li { margin-bottom: .4em; }

@media (max-width: 860px) {
  .hero .wrap, .story { grid-template-columns: 1fr; }
  .hero { padding-top: 36px; }
  .steps, .promise { grid-template-columns: 1fr; }
  .nav { display: none; }
  .lang { margin-left: auto; }
  .badge-float.a { left: -8px; }
  .badge-float.b { right: -8px; }
  section.band { padding: 56px 0; }
  .trybox { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Shared footer with company details */
.site-foot { border-top: 1px solid var(--line); background: var(--paper); padding: 40px 0 56px; color: var(--soft); font-size: .92rem; }
.site-foot .wrap { display: grid; grid-template-columns: 1.1fr 1fr 1.4fr; gap: 28px; }
.foot-links { display: flex; flex-direction: column; gap: 8px; }
.foot-links a { color: var(--ink); text-decoration: none; font-weight: 700; }
.foot-links a:hover { color: var(--clay); }
.foot-company { line-height: 1.7; }
.foot-company b { color: var(--ink); }
.doc table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: .95rem; }
.doc td, .doc th { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.doc th { background: var(--sand); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-top: 20px; }
.cards a { display: block; background: #fff; border: 2px solid var(--line); border-radius: 18px; padding: 18px; color: var(--ink); text-decoration: none; font-weight: 700; }
.cards a span.muted { display: block; font-weight: 400; font-size: .92rem; margin-top: 4px; }
.cards a:hover { border-color: var(--forest); }
@media (max-width: 860px) { .site-foot .wrap { grid-template-columns: 1fr; } }
.doc table { table-layout: fixed; }
.doc th { width: 34%; }
.doc td, .doc th, .foot-company, .doc p { overflow-wrap: anywhere; }

/* Word list, FAQ, breadcrumbs */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.doc.wide .wrap { max-width: 1000px; }
.crumbs { font-size: .9rem; color: var(--soft); margin-bottom: 12px; }
.crumbs a { color: var(--soft); }
table.words { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 2px solid var(--line); border-radius: 18px; overflow: hidden; table-layout: auto; }
table.words th { background: var(--sand); font-size: .9rem; }
table.words td, table.words th { border: 0; border-bottom: 1px solid var(--line); padding: 10px 12px; width: auto; }
table.words tr:last-child td { border-bottom: 0; }
table.words td.gd { font-weight: 700; font-size: 1.15rem; }
table.words .pill { font-size: .7rem; vertical-align: middle; }
table.words .play.small { width: 40px; height: 40px; font-size: 1.1rem; }
.faq { background: #fff; border: 2px solid var(--line); border-radius: 16px; padding: 14px 18px; margin-bottom: 12px; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq p { margin: 10px 0 0; color: var(--soft); }
.honest a { color: #6b3fa0; }
@media (max-width: 640px) {
  table.words thead { display: none; }
  table.words tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
  table.words td { border: 0; padding: 0; }
  table.words td:nth-child(5) { grid-row: 1 / span 4; grid-column: 2; align-self: center; }
}
