:root {
  --brand: #14a37f;
  --brand-dark: #0d6e56;
  --brand-soft: #e3f5ef;
  --saffron: #f2b134;
  --coral: #ff7a59;
  --sky: #4aa3df;
  --ink: #10201b;
  --text: #17201d;
  --muted: #5a6763;
  --bg: #fbfaf6;
  --card: #ffffff;
  --border: #e4e7e1;
  --warn-bg: #fff6e0;
  --warn-text: #6b4a00;
  --radius: 16px;
  --max: 1120px;
  --display: "Fraunces", Georgia, "Noto Serif", serif;
  --sans: "Manrope", "Noto Sans", "Noto Sans Malayalam", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --brand: #4fd1a8;
    --brand-dark: #8ee6c8;
    --brand-soft: #16302a;
    --ink: #e8efec;
    --text: #e8efec;
    --muted: #a8b6b1;
    --bg: #0e1412;
    --card: #17201d;
    --border: #26332f;
    --warn-bg: #3a2f12;
    --warn-text: #f3d68c;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
}
[lang="hi"] { font-family: "Noto Sans Devanagari", var(--sans); }
[lang="ml"] { font-family: "Noto Sans Malayalam", var(--sans); }
a { color: var(--brand-dark); }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* Header */
header.site {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 800; font-size: 20px; font-family: var(--display); }
.logo img { width: 36px; height: 36px; border-radius: 10px; }
nav.top { display: flex; gap: 18px; align-items: center; }
nav.top a { text-decoration: none; color: var(--muted); font-weight: 700; font-size: 15px; }
nav.top a:hover { color: var(--brand-dark); }
nav.top a.nav-cta { background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 999px; }
nav.top a.nav-cta:hover { color: var(--bg); opacity: .9; }
@media (max-width: 720px) { nav.top .hide-sm { display: none; } nav.top { gap: 12px; } }
nav.top a.nav-cta { white-space: nowrap; }
@media (max-width: 420px) { nav.top .hide-xs { display: none; } }

/* Buttons */
.cta { display: inline-flex; align-items: center; gap: 10px; background: var(--brand); color: #fff; text-decoration: none; font-weight: 800; padding: 14px 22px; border-radius: 14px; box-shadow: 0 10px 24px color-mix(in srgb, var(--brand) 35%, transparent); transition: transform .2s, box-shadow .2s; }
.cta:hover { transform: translateY(-2px); box-shadow: 0 14px 30px color-mix(in srgb, var(--brand) 45%, transparent); }
.cta.ghost { background: transparent; color: var(--text); border: 2px solid var(--border); box-shadow: none; }
.cta.light { background: #fff; color: #0d6e56; box-shadow: 0 10px 24px rgba(0,0,0,.18); }
.cta .play { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.22); font-size: 12px; }
.cta[aria-disabled="true"] { opacity: .75; cursor: default; }

/* Hero */
.hero-band { position: relative; overflow: hidden; padding: 56px 0 40px; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; pointer-events: none; }
.b1 { width: 460px; height: 460px; background: #9be8cf; top: -140px; left: -120px; animation: drift 16s ease-in-out infinite; }
.b2 { width: 380px; height: 380px; background: #ffd58a; top: 40px; right: -100px; animation: drift 19s ease-in-out infinite reverse; }
.b3 { width: 320px; height: 320px; background: #ffb4a0; bottom: -160px; left: 40%; animation: drift 22s ease-in-out infinite; }
@media (prefers-color-scheme: dark) { .blob { opacity: .18; } }
@keyframes drift { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(30px, 20px) scale(1.08); } }

.hero { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; }
.hello { margin: 0 0 14px; font-weight: 700; color: var(--brand-dark); letter-spacing: .3px; }
.hero h1 { font-family: var(--display); font-weight: 800; font-size: clamp(38px, 6.4vw, 70px); line-height: 1.04; margin: 0 0 18px; letter-spacing: -1px; color: var(--ink); }
.hero h1 em, h2 em { font-style: italic; color: var(--brand); position: relative; white-space: nowrap; }
.hero h1 em::after { content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .18em; background: var(--saffron); opacity: .55; z-index: -1; border-radius: 4px; }
.hero p.lead { font-size: 19px; color: var(--muted); margin: 0 0 26px; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.ticks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-weight: 700; font-size: 15px; }
.ticks li::before { content: "✓"; color: var(--brand); margin-right: 6px; font-weight: 800; }

/* Phone mock-up */
.stage { position: relative; display: grid; place-items: center; min-height: 560px; }
.phone {
  width: 270px; aspect-ratio: 9 / 19; border-radius: 42px; position: relative;
  background: #121816; padding: 10px; box-shadow: 0 40px 80px rgba(16, 32, 27, .28), inset 0 0 0 2px #2a3531;
  animation: bob 6s ease-in-out infinite;
}
.notch { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 80px; height: 20px; background: #121816; border-radius: 12px; z-index: 2; }
.screen { height: 100%; border-radius: 33px; background: #f4f7f5; color: #17201d; padding: 44px 14px 14px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.greet small { display: block; color: #5a6763; font-size: 12px; }
.greet b { font-size: 17px; font-family: var(--display); }
.ring-card { background: #fff; border-radius: 18px; padding: 12px; display: flex; gap: 12px; align-items: center; box-shadow: 0 4px 12px rgba(0,0,0,.05); }
.ring { --p: 60; width: 96px; height: 96px; flex: none; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(#14a37f calc(var(--p) * 1%), #e3f5ef 0); }
.ring > div { width: 74px; height: 74px; border-radius: 50%; background: #fff; display: grid; place-content: center; text-align: center; line-height: 1.1; }
.ring b { font-size: 18px; }
.ring small { font-size: 10px; color: #5a6763; }
.macros { flex: 1; display: grid; gap: 8px; }
.macros small { font-size: 11px; color: #5a6763; font-weight: 700; }
.macros i { display: block; height: 6px; border-radius: 6px; background: #eef1ef; position: relative; overflow: hidden; }
.macros i::after { content: ""; position: absolute; inset: 0; width: var(--w); background: var(--c, #14a37f); border-radius: 6px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mini { background: #fff; border-radius: 16px; padding: 10px 12px; box-shadow: 0 4px 12px rgba(0,0,0,.05); line-height: 1.2; }
.mini span { font-size: 16px; }
.mini b { display: block; font-size: 16px; margin-top: 4px; }
.mini small { color: #5a6763; font-size: 11px; }
.meal { background: #fff; border-radius: 16px; padding: 10px 12px; display: flex; gap: 10px; align-items: center; font-size: 12px; line-height: 1.3; box-shadow: 0 4px 12px rgba(0,0,0,.05); }
.meal > span { font-size: 22px; }
.meal b { display: block; font-size: 13px; }
.meal div { flex: 1; }
.meal em { font-style: normal; width: 24px; height: 24px; border-radius: 50%; background: #e3f5ef; color: #0d6e56; display: grid; place-items: center; font-weight: 800; }

.float {
  position: absolute; z-index: 3; display: flex; gap: 10px; align-items: center;
  background: color-mix(in srgb, var(--card) 88%, transparent); backdrop-filter: blur(8px);
  border: 1px solid var(--border); border-radius: 16px; padding: 10px 14px; font-size: 13px; line-height: 1.3;
  box-shadow: 0 18px 40px rgba(16, 32, 27, .16); color: var(--muted);
}
.float > span { font-size: 22px; }
.float b { display: block; color: var(--text); font-size: 14px; }
.f1 { top: 2px; left: 0; animation: bob 7s ease-in-out infinite .4s; }
.f2 { top: 40%; right: -34px; animation: bob 8s ease-in-out infinite 1s; }
.f3 { bottom: 0; left: 6px; animation: bob 6.5s ease-in-out infinite 1.6s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .stage { min-height: 520px; }
}
@media (max-width: 480px) {
  .float { font-size: 12px; padding: 8px 10px; }
  .f1 { left: -4px; top: 0; }
  .f2 { display: none; }
  .f3 { left: -4px; bottom: -8px; }
  .phone { width: 240px; }
}

/* Stats strip */
.stats { padding: 8px 0 24px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stats-grid > div { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 18px; }
.stats-grid b { display: block; font-family: var(--display); font-size: 34px; color: var(--brand); line-height: 1.1; }
.stats-grid span { color: var(--muted); font-size: 15px; font-weight: 600; }
@media (max-width: 760px) { .stats-grid { grid-template-columns: 1fr 1fr; } }

/* Sections */
section { padding: 48px 0; }
section h2 { font-family: var(--display); font-weight: 800; font-size: clamp(28px, 4.2vw, 44px); line-height: 1.12; margin: 0 0 12px; letter-spacing: -.5px; color: var(--ink); max-width: 22em; }
section p.sub { color: var(--muted); margin: 0 0 28px; max-width: 40em; }
.center { text-align: center; margin-left: auto !important; margin-right: auto !important; }
.kicker { text-transform: uppercase; letter-spacing: 1.6px; font-size: 13px; font-weight: 800; color: var(--brand); margin: 0 0 10px; }

/* Bento features */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 28px; }
.tile { border-radius: 22px; padding: 24px; position: relative; overflow: hidden; border: 1px solid var(--border); background: var(--card); transition: transform .25s, box-shadow .25s; }
.tile:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(16, 32, 27, .10); }
.tile.big { grid-column: span 2; }
.tile.wide { grid-column: 1 / -1; }
.tile.wide .bars { max-width: 520px; }
.tile .ic { font-size: 34px; width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; background: rgba(255,255,255,.6); margin-bottom: 10px; }
.tile h3 { margin: 0 0 6px; font-size: 21px; font-family: var(--display); }
.tile p { margin: 0; color: var(--muted); font-size: 16px; max-width: 30em; }
.tile.green { background: linear-gradient(135deg, #e3f5ef, #c9eee0); }
.tile.saffron { background: linear-gradient(135deg, #fff3d6, #ffe3a3); }
.tile.coral { background: linear-gradient(135deg, #ffe7df, #ffcdbd); }
.tile.sky { background: linear-gradient(135deg, #e3f1fb, #c8e3f6); }
.tile.leaf { background: linear-gradient(135deg, #eef6dc, #d9ecb3); }
.tile.green, .tile.saffron, .tile.coral, .tile.sky, .tile.leaf { color: #17201d; border-color: transparent; }
.tile.green p, .tile.saffron p, .tile.coral p, .tile.sky p, .tile.leaf p { color: #3e4a46; }
.tile.dark { background: linear-gradient(135deg, #10201b, #17352c); color: #e8efec; border-color: transparent; }
.tile.dark p { color: #b9c7c2; }
.tile.dark .ic { background: rgba(255,255,255,.08); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chips span { background: #fff; border-radius: 999px; padding: 4px 12px; font-weight: 700; font-size: 14px; color: #0d6e56; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 70px; margin-top: 16px; }
.bars i { flex: 1; height: var(--h); border-radius: 8px 8px 3px 3px; background: linear-gradient(#4fd1a8, #14a37f); }
@media (max-width: 860px) { .bento { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .bento { grid-template-columns: 1fr; } .tile.big { grid-column: auto; } }

/* Experts */
.experts-band { background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--brand-soft) 70%, transparent)); }
.experts { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.list { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 12px; }
.list li { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 14px 16px; color: var(--muted); }
.list b { display: block; color: var(--text); font-size: 17px; }
.small { font-size: 15px; color: var(--muted); }
.consent { background: var(--card); border: 1px solid var(--border); border-radius: 24px; padding: 22px; box-shadow: 0 30px 60px rgba(16, 32, 27, .12); }
.cc-head { font-weight: 800; font-size: 18px; margin-bottom: 12px; font-family: var(--display); }
.cc-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); font-weight: 600; }
.cc-row i { width: 44px; height: 26px; border-radius: 999px; background: var(--border); position: relative; flex: none; }
.cc-row i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: left .3s; }
.cc-row i.on { background: var(--brand); }
.cc-row i.on::after { left: 21px; }
.cc-foot { margin-top: 14px; font-size: 14px; color: var(--muted); }
@media (max-width: 860px) { .experts { grid-template-columns: 1fr; } }

/* How it works */
.how { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: h; }
.how li { counter-increment: h; background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 22px; color: var(--muted); position: relative; }
.how li::before { content: counter(h); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--ink); color: var(--bg); font-weight: 800; font-family: var(--display); font-size: 20px; margin-bottom: 12px; }
.how b { display: block; color: var(--text); font-size: 19px; margin-bottom: 4px; }
@media (max-width: 760px) { .how { grid-template-columns: 1fr; } }

/* Languages */
.lang-band { text-align: center; }
.lang-band .kicker { text-align: center; }
.langs { display: grid; gap: 6px; margin: 10px 0 18px; }
.langs p { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(24px, 4vw, 40px); line-height: 1.3; }
.langs p[lang="hi"] { font-family: "Noto Sans Devanagari", var(--sans); font-weight: 600; }
.langs p[lang="ml"] { font-family: "Noto Sans Malayalam", var(--sans); font-weight: 600; font-size: clamp(21px, 3.4vw, 34px); }
.langs p:nth-child(1) { color: var(--brand); }
.langs p:nth-child(2) { color: #e08a00; }
.langs p:nth-child(3) { color: var(--coral); }
@media (prefers-color-scheme: dark) { .langs p:nth-child(2) { color: var(--saffron); } }

/* Final call to action */
.final { text-align: center; border-radius: 32px; padding: 48px 24px; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(circle at 20% 0%, #4fd1a8, transparent 50%), radial-gradient(circle at 90% 100%, #f2b134, transparent 45%), linear-gradient(135deg, #0d6e56, #14a37f); }
.final img { margin: 0 auto 16px; border-radius: 18px; box-shadow: 0 12px 30px rgba(0,0,0,.25); }
.final h2 { color: #fff; margin: 0 auto 8px; }
.final p { margin: 0 auto 24px; opacity: .9; max-width: 32em; }

/* Contact */
.contact { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.contact > div { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 16px; }
.contact h3 { margin: 0 0 4px; font-size: 15px; color: var(--muted); }
.contact a { font-weight: 700; word-break: break-word; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .contact { grid-template-columns: 1fr; } }

.note { background: var(--warn-bg); color: var(--warn-text); border-radius: 12px; padding: 14px 16px; font-size: 15px; }

/* Scroll reveal (only when JavaScript runs) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Legal pages */
main.doc { max-width: 820px; margin: 0 auto; padding: 32px 16px 64px; }
main.doc h1 { font-size: clamp(28px, 4vw, 38px); margin: 0 0 4px; font-family: var(--display); }
main.doc .meta { color: var(--muted); margin: 0 0 24px; font-size: 15px; }
main.doc h2 { font-size: 22px; margin: 32px 0 8px; font-family: var(--sans); letter-spacing: 0; }
main.doc h3 { font-size: 18px; margin: 20px 0 6px; }
main.doc ul, main.doc ol { padding-left: 22px; }
main.doc li { margin: 4px 0; }
main.doc table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; display: block; overflow-x: auto; }
main.doc th, main.doc td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; vertical-align: top; }
main.doc th { background: var(--brand-soft); }
.toc { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; font-size: 15px; }
.toc ol { margin: 6px 0 0; }
.fill { background: #ffe58a; color: #3d2f00; padding: 0 4px; border-radius: 4px; font-weight: 700; }
.steps { counter-reset: s; list-style: none; padding: 0 !important; }
.steps li { counter-increment: s; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px 12px 52px; position: relative; margin: 10px 0; }
.steps li::before { content: counter(s); position: absolute; left: 14px; top: 12px; width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; }

/* Footer */
footer.site { border-top: 1px solid var(--border); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
footer.site .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 14px; }
footer.site a { color: var(--muted); }
