/* Chhota Gyaan landing page. A Meanwhile Works product: outlines and hard shadows
   from the studio design language, with a palette of its own (slate takhti, marigold, peacock). */

@font-face { font-family: "Poppins"; src: url("fonts/poppins-regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("fonts/poppins-medium.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("fonts/poppins-bold.woff") format("woff"); font-weight: 700; font-display: swap; }

:root {
  --page: #fffdf8;
  --tint: #fdf1d6;
  --slate: #24413f;
  --slate-deep: #1b3230;
  --chalk: #f3f0e6;
  --wood: #b9783f;
  --marigold: #f4a100;
  --marigold-soft: #ffe2a3;
  --pink: #c8326a;
  --peacock: #0f6f6b;
  --ink: #1d1b18;
  --muted: #59544c;
  --line: 2.5px solid var(--ink);
  --pop: 4px 4px 0 var(--ink);
  --pop-lg: 7px 7px 0 var(--ink);
  --focus: #2f5bff;
  --r: 14px;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", "Noto Sans Devanagari", "Kohinoor Devanagari", "Nirmala UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
}
[lang="hi"] { line-height: 1.5; }

a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, canvas:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 3px;
}

h1, h2, h3 { font-weight: 700; letter-spacing: -0.015em; margin: 0; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.35rem); line-height: 1.1; max-width: 15ch; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.2; }
h3 { font-size: 1.12rem; line-height: 1.35; }
p { margin: 0; }

main > section { max-width: var(--wrap); margin: 0 auto; padding: clamp(56px, 8vw, 104px) 20px; }

/* Header */
.top {
  max-width: var(--wrap); margin: 0 auto; padding: 18px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.wordmark { display: inline-flex; align-items: baseline; gap: 10px; text-decoration: none; white-space: nowrap; }
@media (max-width: 420px) { .wordmark-en { display: none; } }
.wordmark-hi { font-size: 1.55rem; font-weight: 700; color: var(--slate); }
.wordmark-en { font-size: .95rem; font-weight: 500; color: var(--muted); }

/* Buttons */
.btn {
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2;
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 22px;
  border: var(--line); border-radius: 999px; background: var(--page); color: var(--ink);
  text-decoration: none; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease;
}
.btn-primary { background: var(--marigold); box-shadow: var(--pop); }
.btn-primary:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn-primary:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn-quiet { border-color: transparent; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; padding-inline: 0; }
.btn-small { min-height: 42px; padding: 8px 16px; font-size: .92rem; }
.btn-wide { width: 100%; }
.btn[disabled] { opacity: .55; cursor: progress; transform: none; box-shadow: none; }

/* Hero */
.hero { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; padding-top: clamp(24px, 4vw, 56px) !important; }
@media (min-width: 900px) { .hero { grid-template-columns: 1.05fr 1fr; gap: 64px; } }
.kicker { font-weight: 500; color: var(--peacock); margin-bottom: 14px; }
.lede { margin-top: 20px; font-size: 1.1rem; color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; margin-top: 28px; }
.fine { font-size: .9rem; color: var(--muted); margin-top: 16px; }

/* The takhti: the one loud thing on the page */
.takhti { margin: 0; padding-top: 28px; }
.takhti-board {
  position: relative;
  background: var(--slate);
  background-image: radial-gradient(ellipse at 30% 20%, rgba(255,255,255,.07), transparent 60%), radial-gradient(ellipse at 80% 90%, rgba(0,0,0,.18), transparent 55%);
  border: 14px solid var(--wood);
  outline: var(--line);
  border-radius: 22px;
  box-shadow: var(--pop-lg);
  aspect-ratio: 1 / 1;
  max-width: 480px;
  margin: 0 auto;
}
.takhti-board::before { /* the handle at the top of a wooden takhti */
  content: ""; position: absolute; left: 50%; top: -40px; width: 70px; height: 34px; translate: -50% 0;
  background: var(--wood); border: var(--line); border-bottom: 0; border-radius: 30px 30px 0 0;
}
#trace { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 8px; touch-action: none; cursor: crosshair; }
.takhti-cheer {
  position: absolute; right: -10px; top: 18px; transform: rotate(6deg);
  background: var(--marigold); border: var(--line); box-shadow: var(--pop); border-radius: 10px;
  padding: 4px 16px; font-size: 1.6rem; font-weight: 700;
  animation: pop .35s cubic-bezier(.2,1.6,.4,1);
}
@keyframes pop { from { transform: rotate(6deg) scale(.4); opacity: 0; } to { transform: rotate(6deg) scale(1); opacity: 1; } }
.takhti figcaption { max-width: 480px; margin: 22px auto 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.takhti-prompt { font-weight: 500; }
.takhti-prompt b { font-size: 1.4rem; color: var(--slate); }
.takhti-tools { display: flex; gap: 8px; }
.chip {
  font: inherit; font-size: .88rem; font-weight: 500; min-height: 40px; padding: 6px 14px;
  background: var(--page); border: 2px solid var(--ink); border-radius: 999px; cursor: pointer;
}
.chip-go { background: var(--marigold-soft); }

/* What your child does */
.section-lede { color: var(--muted); margin-top: 10px; max-width: 36em; }
.tiles { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .tiles { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tile { border: var(--line); border-radius: var(--r); padding: 22px 22px 24px; background: var(--page); }
.tile-glyph { display: block; font-size: 2.6rem; font-weight: 700; line-height: 1.3; margin-bottom: 10px; }
.tile-trace .tile-glyph { color: var(--slate); }
.tile-match .tile-glyph { color: var(--wood); }
.tile-story .tile-glyph { color: var(--peacock); }
.tile-diya .tile-glyph { color: var(--pink); }
.tile p { margin-top: 6px; color: var(--muted); font-size: .97rem; }

/* Weekly report */
.report { display: grid; gap: 40px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .report { grid-template-columns: 1.1fr 1fr; gap: 72px; } }
.report-copy > p { margin-top: 14px; color: var(--muted); max-width: 34em; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.ticks li { padding-left: 32px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 18px; height: 18px; border-radius: 50%; background: var(--peacock); box-shadow: inset 0 0 0 5px var(--page); border: 2px solid var(--peacock); }
.phone {
  width: min(340px, 100%); margin: 0 auto; background: var(--page); border: var(--line); border-radius: 30px;
  box-shadow: var(--pop); padding: 22px 20px 26px;
}
.phone-head { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; font-size: 1.15rem; border-bottom: 2px solid var(--ink); padding-bottom: 10px; }
.phone-mins { font-weight: 500; font-size: .95rem; color: var(--muted); }
.phone-label { font-size: .88rem; color: var(--muted); margin: 16px 0 8px; display: flex; justify-content: space-between; }
.phone-label b { color: var(--ink); font-weight: 700; }
.letter-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.letter-grid span {
  display: grid; place-items: center; aspect-ratio: 1; border-radius: 8px; font-weight: 700; font-size: 1.05rem;
  border: 1.5px dashed #b9b2a5; color: #9a9387;
}
.letter-grid span.on { border: 2px solid var(--ink); background: var(--marigold-soft); color: var(--ink); }
.words { display: flex; gap: 8px; flex-wrap: wrap; }
.word { padding: 2px 14px; border-radius: 999px; border: 1.5px dashed #b9b2a5; color: #9a9387; font-weight: 700; }
.word.on { border: 2px solid var(--ink); background: #d6efe9; color: var(--ink); }
.phone-story { font-weight: 500; }

/* Promises */
.trust h2 { max-width: 20ch; }
.promises { margin: 32px 0 0; display: grid; gap: 0; grid-template-columns: 1fr; border-top: var(--line); }
@media (min-width: 760px) { .promises { grid-template-columns: 1fr 1fr; column-gap: 48px; } }
.promises > div { padding: 22px 0; border-bottom: 1.5px solid #d9d2c3; }
.promises dt { font-weight: 700; font-size: 1.08rem; }
.promises dd { margin: 6px 0 0; color: var(--muted); max-width: 32em; }

/* Join */
.join { display: grid; gap: 40px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .join { grid-template-columns: 0.9fr 1.1fr; gap: 64px; } }
.join > .price { position: sticky; top: 24px; }
@media (max-width: 899px) { .join > .price { position: static; } }
.price-big { margin-top: 18px; font-size: 1.25rem; font-weight: 500; }
.price-big b { display: block; font-size: clamp(3rem, 7vw, 4.4rem); line-height: 1; letter-spacing: -0.03em; color: var(--slate); }
.price-small { margin-top: 14px; color: var(--muted); max-width: 30em; }

.form, .done { background: var(--tint); border: var(--line); border-radius: 20px; padding: clamp(20px, 4vw, 32px); box-shadow: var(--pop); }
.form { display: grid; gap: 18px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend, .field label { font-weight: 700; font-size: .95rem; margin-bottom: 6px; padding: 0; }
.field { display: grid; gap: 6px; }
.field label { margin: 0; }
.row2 { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 520px) { .row2 { grid-template-columns: 1fr 1fr; } }
input[type="text"], input[type="email"], select {
  font: inherit; font-size: 1rem; width: 100%; min-height: 50px; padding: 10px 14px;
  background: var(--page); color: var(--ink); border: 2px solid var(--ink); border-radius: 12px;
}
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.tier { display: grid; gap: 10px; }
.tier legend { margin-bottom: 10px; }
.tier-opt { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 2px solid var(--ink); border-radius: 14px; background: var(--page); cursor: pointer; }
.tier-opt span { display: grid; font-size: .93rem; color: var(--muted); line-height: 1.45; }
.tier-opt b { color: var(--ink); font-size: 1rem; }
.tier-opt:has(input:checked) { background: var(--marigold-soft); box-shadow: 3px 3px 0 var(--ink); }
input[type="radio"], input[type="checkbox"] { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--slate); flex: none; }
.lang-list { display: flex; flex-wrap: wrap; gap: 8px; }
.lang-list label { display: inline-flex; gap: 8px; align-items: center; padding: 6px 14px 6px 10px; border: 2px solid var(--ink); border-radius: 999px; background: var(--page); font-size: .93rem; cursor: pointer; }
.lang-list input { margin: 0; width: 18px; height: 18px; }
.lang-list label:has(input:checked) { background: #d6efe9; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .93rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.err { color: #b0182b; font-size: .9rem; font-weight: 500; }
.field-bad input, .field-bad select { border-color: #b0182b; }

.done { text-align: left; }
.done-hi { font-size: 2.6rem; font-weight: 700; color: var(--slate); line-height: 1.3; }
.done h3 { font-size: 1.5rem; margin-bottom: 8px; }
.done p { margin-top: 8px; }
.share { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; align-items: center; }

/* FAQ */
.faq h2 { margin-bottom: 20px; }
.faq details { border-top: 1.5px solid #d9d2c3; max-width: 760px; }
.faq details:last-of-type { border-bottom: 1.5px solid #d9d2c3; }
.faq summary { cursor: pointer; font-weight: 700; padding: 18px 36px 18px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 1.6rem; font-weight: 500; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 20px; color: var(--muted); max-width: 40em; }

/* Footer */
.foot { max-width: var(--wrap); margin: 0 auto; padding: 36px 20px 56px; border-top: var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: .93rem; color: var(--muted); }
.mw-tag { display: inline-block; background: #f7d84a; color: #111; border: 2px solid #111; box-shadow: 2px 2px 0 #111; padding: 0 6px; font-weight: 700; font-size: .78rem; letter-spacing: .02em; transform: rotate(-2deg) skewX(-8deg); margin: 0 2px; }
.foot-links { display: flex; gap: 20px; }

/* Privacy page */
.doc { max-width: 720px; margin: 0 auto; padding: 24px 20px 80px; }
.doc h1 { max-width: none; font-size: clamp(1.8rem, 4vw, 2.5rem); margin: 12px 0 8px; }
.doc h2 { font-size: 1.25rem; margin: 32px 0 8px; }
.doc p, .doc li { color: var(--muted); }
.doc p + p { margin-top: 10px; }
.doc ul { padding-left: 22px; }
