/* Sugar Saathi website. One stylesheet for every page; colours match the app (src/theme/tokens.ts). */
:root {
  --bg: #F2F7F3; --card: #FFFFFF; --ink: #16302A; --mute: #5A726C; --line: #D9E6DE; --track: #E3EDE7;
  --leaf: #1E8A5A; --leafd: #126B44; --haldi: #E89A0C; --chilli: #D63F2E; --sky: #2E78C7; --plum: #8A4BA8;
  --leafSoft: #DDF1E6; --haldiSoft: #FCEBC8; --chilliSoft: #FADBD6; --skySoft: #D9E8F8; --plumSoft: #EBDDF2;
  --onLeaf: #FFFFFF; --hero: #14794F;
  --r: 22px; --shadow: 0 1px 2px rgb(22 48 42 / 6%), 0 8px 24px rgb(22 48 42 / 8%);
  --font: "Baloo 2", system-ui, -apple-system, "Segoe UI", "Noto Sans Devanagari", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F1C18; --card: #17282A; --ink: #E6F2EC; --mute: #97ADA6; --line: #274238; --track: #233830;
    --leaf: #3FBF86; --leafd: #2FA06E; --haldi: #F5B73D; --chilli: #EF6A58; --sky: #5BA3E8; --plum: #BA8AD6;
    --leafSoft: #173528; --haldiSoft: #3A2D10; --chilliSoft: #3E1D19; --skySoft: #152B42; --plumSoft: #2D1D37;
    --onLeaf: #0F1C18; --hero: #0B3D29; --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 30%);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 18px/1.6 var(--font); }
img, svg { max-width: 100%; display: block; }
a { color: var(--leaf); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 6vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 14px; border-radius: 10px; z-index: 20; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--haldi); outline-offset: 3px; border-radius: 8px; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.25rem; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--mute); text-decoration: none; font-weight: 600; font-size: 1rem; }
.nav a:hover { color: var(--ink); }
.lang { border: 2px solid var(--line); border-radius: 999px; padding: 2px 14px; text-decoration: none; font-weight: 700; color: var(--ink); font-size: 1rem; }
@media (max-width: 760px) { .nav { display: none; } .lang { margin-left: auto; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 24px; border-radius: 999px; font: 700 1.05rem/1.2 var(--font); text-decoration: none; border: 0; }
.btn-primary { background: var(--haldi); color: #241500; box-shadow: 0 6px 18px rgb(232 154 12 / 35%); }
.btn-primary:hover { filter: brightness(1.05); }
.btn-ghost { background: transparent; color: inherit; border: 2px solid currentColor; }
.btn small { display: block; font-size: .72rem; font-weight: 600; opacity: .8; }
.play { width: 26px; height: 26px; flex: none; }

/* Hero */
.hero { background: var(--hero); color: #fff; overflow: hidden; position: relative; }
.hero::before { content: ""; position: absolute; inset: auto -10% -45% auto; width: 70vw; max-width: 760px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgb(255 255 255 / 10%), transparent 65%); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding-top: 64px; padding-bottom: 72px; position: relative; }
.eyebrow { display: inline-block; background: rgb(255 255 255 / 14%); border-radius: 999px; padding: 4px 14px; font-weight: 700; font-size: .95rem; margin-bottom: 18px; }
.hero h1 span { color: #FFD27A; }
.hero .lead { font-size: 1.2rem; color: rgb(255 255 255 / 88%); max-width: 34ch; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 18px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 0; margin: 0; list-style: none; font-size: .98rem; color: rgb(255 255 255 / 85%); }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; padding-top: 40px; } .phone { margin: 0 auto; } }

/* Phone mockup (pure CSS, mirrors the app's Today screen) */
.phone { width: min(320px, 86vw); aspect-ratio: 9 / 18.5; background: #0c1512; border-radius: 44px; padding: 12px; box-shadow: 0 30px 60px rgb(0 0 0 / 35%), inset 0 0 0 2px #2a3a35; justify-self: center; }
.screen { height: 100%; border-radius: 34px; background: #F2F7F3; color: #16302A; padding: 22px 16px 14px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.screen .hi { display: flex; justify-content: space-between; align-items: center; font-weight: 800; font-size: 1.15rem; }
.screen .sos { background: #D63F2E; color: #fff; border-radius: 999px; font-size: .75rem; padding: 2px 10px; }
.ring { position: relative; width: 62%; margin: 4px auto 0; }
.ring b { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; font-size: 2.6rem; line-height: 1; }
.ring b small { font-size: .7rem; color: #5A726C; font-weight: 600; margin-top: 4px; }
.streak { align-self: center; background: #FCEBC8; border-radius: 999px; padding: 2px 14px; font-weight: 700; font-size: .85rem; }
.tip { background: #DDF1E6; border-radius: 16px; padding: 8px 12px; font-size: .78rem; font-weight: 600; line-height: 1.35; }
.tip b { color: #126B44; }
.tasks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; }
.tasks div { background: #fff; border-radius: 16px; padding: 8px 10px; font-size: .78rem; font-weight: 700; line-height: 1.3; border: 2px solid #D9E6DE; }
.tasks div.done { border-color: #1E8A5A; background: #DDF1E6; }
.tasks i { font-style: normal; font-size: 1.2rem; display: block; }

/* Sections */
section { padding: 84px 0; }
.center { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.center p { color: var(--mute); font-size: 1.1rem; }
.kicker { color: var(--leaf); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; margin-bottom: 8px; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; box-shadow: var(--shadow); }
.card p { color: var(--mute); margin: 0; }
.icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 1.8rem; margin-bottom: 14px; }
.leaf { background: var(--leafSoft); } .haldi { background: var(--haldiSoft); } .chilli { background: var(--chilliSoft); } .sky { background: var(--skySoft); } .plum { background: var(--plumSoft); }

.steps { counter-reset: s; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; position: relative; padding: 26px 26px 26px 84px; background: var(--card); border-radius: var(--r); border: 1px solid var(--line); }
.steps li::before { content: counter(s); position: absolute; left: 24px; top: 24px; width: 44px; height: 44px; border-radius: 50%; background: var(--leaf); color: var(--onLeaf); display: grid; place-items: center; font-weight: 800; font-size: 1.3rem; }
.steps p { color: var(--mute); margin: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { padding-left: 34px; position: relative; margin-bottom: 10px; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%; background: var(--leafSoft); color: var(--leaf); display: grid; place-items: center; font-weight: 800; font-size: .85rem; }

.chat { background: var(--card); border-radius: var(--r); padding: 20px; border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 82%; padding: 10px 14px; border-radius: 18px; font-size: 1rem; line-height: 1.4; }
.msg.them { background: var(--leafSoft); border-bottom-left-radius: 4px; }
.msg.me { background: var(--haldiSoft); align-self: flex-end; border-bottom-right-radius: 4px; }
.msg small { display: block; color: var(--mute); font-size: .75rem; margin-top: 2px; }

.alt { background: var(--card); border-block: 1px solid var(--line); }

.prices { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); max-width: 980px; margin: 0 auto; }
.price { display: flex; flex-direction: column; }
.price.best { border: 3px solid var(--leaf); }
.price .amt { font-size: 2.6rem; font-weight: 800; line-height: 1; margin: 8px 0 4px; }
.price .amt small { font-size: 1rem; color: var(--mute); font-weight: 600; }
.price .ticks { margin-top: 14px; }
.tag { align-self: flex-start; background: var(--leafSoft); color: var(--leaf); border-radius: 999px; padding: 2px 12px; font-size: .85rem; font-weight: 800; }

.faq { max-width: 780px; margin: 0 auto; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 4px 22px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.1rem; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--leaf); font-size: 1.5rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--mute); }

.final { background: var(--hero); color: #fff; text-align: center; border-radius: 32px; padding: 56px 24px; }
.final p { color: rgb(255 255 255 / 85%); font-size: 1.15rem; }
.final .cta { justify-content: center; }

.note { font-size: .95rem; color: var(--mute); background: var(--haldiSoft); border-radius: 16px; padding: 14px 18px; max-width: 780px; margin: 40px auto 0; }

footer { padding: 40px 0 56px; color: var(--mute); font-size: .95rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a { color: var(--mute); }
