:root {
  color-scheme: light;
  --cream: #F5EFE3;
  --cream-deep: #EDE4D3;
  --white: #FFFFFF;
  --ink: #141210;
  --muted: #6B6459;
  --line: #E3D9C6;
  --danger: #B3261E;
  --radius: 18px;
  --display: "Tiro Devanagari Hindi", "Noto Serif Devanagari", Georgia, serif;
  --ui: "Poppins", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", sans-serif;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
*, *::before, *::after { box-sizing: inherit; }
html { background: var(--cream); scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 16px/1.6 var(--ui); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
a { color: inherit; }
img, svg { max-width: 100%; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 480px; margin: 0 auto; padding: 0 22px; }

/* ---------- Header ---------- */
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: rgba(245, 239, 227, 0.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 21; background: var(--cream); }
.top.scrolled { border-bottom-color: var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 600; font-size: 20px; letter-spacing: -0.02em; }
.logo-dot { width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #FFE2A8, #FF9A3C 40%, #E8457C 70%, #6C4BD6); box-shadow: 0 2px 8px rgba(232, 69, 124, 0.35); }
.logo b { font-weight: 600; }
.logo span { font-weight: 400; }
.top-actions { display: flex; align-items: center; gap: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 500 16px var(--ui); text-decoration: none; cursor: pointer;
  border: 1.5px solid var(--ink); border-radius: 999px; min-height: 48px; padding: 0 22px;
  background: var(--ink); color: var(--cream);
  transition: transform 0.12s ease, background 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.5; cursor: progress; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.small { min-height: 40px; padding: 0 16px; font-size: 14.5px; }
.btn.big { min-height: 58px; padding: 0 34px; font-size: 18px; }
.btn.full { width: 100%; }
.btn.end { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn:focus-visible, .chip:focus-visible, .plan:focus-visible, .sphere-btn:focus-visible, .link:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 44px; }
.pill { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--line); background: var(--white); border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 500; white-space: nowrap; }

/* ---------- The sphere ---------- */
.sphere-stage { position: relative; display: grid; place-items: center; }
.sphere {
  --level: 0;
  position: relative; width: min(68vw, 280px); aspect-ratio: 1; border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0) 28%),
    radial-gradient(circle at 70% 75%, #6C4BD6 0%, rgba(108, 75, 214, 0) 55%),
    radial-gradient(circle at 25% 70%, #E8457C 0%, rgba(232, 69, 124, 0) 55%),
    radial-gradient(circle at 60% 30%, #FFB547 0%, rgba(255, 181, 71, 0) 60%),
    #FF8A3D;
  box-shadow: 0 30px 60px -20px rgba(108, 75, 214, 0.45), 0 10px 30px -10px rgba(232, 69, 124, 0.4), inset 0 -18px 40px rgba(60, 20, 90, 0.25);
  transform: scale(calc(1 + var(--level) * 0.12));
  transition: transform 0.08s linear;
  overflow: hidden;
}
.sphere::before {
  content: ""; position: absolute; inset: -20%; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(255, 211, 110, 0.0), rgba(255, 211, 110, 0.55), rgba(232, 69, 124, 0.0), rgba(108, 75, 214, 0.5), rgba(255, 211, 110, 0.0));
  filter: blur(24px); mix-blend-mode: soft-light;
  animation: swirl 9s linear infinite;
}
.sphere::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, calc(var(--level) * 0.35)), transparent 60%);
}
.sphere-ring {
  position: absolute; width: min(68vw, 280px); aspect-ratio: 1; border-radius: 50%;
  border: 1.5px solid rgba(20, 18, 16, 0.12);
  transform: scale(calc(1.12 + var(--level, 0) * 0.25)); opacity: calc(0.4 + var(--level, 0));
  transition: transform 0.1s linear; pointer-events: none;
}
.sphere-btn { all: unset; cursor: pointer; border-radius: 50%; display: grid; place-items: center; position: relative; }
.sphere-label {
  position: absolute; z-index: 2; color: #fff; font-weight: 500; font-size: 15px;
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px;
  background: rgba(20, 18, 16, 0.28); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.idle .sphere { animation: breathe 5s ease-in-out infinite; }
@keyframes swirl { to { transform: rotate(360deg); } }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.03); } }
@media (prefers-reduced-motion: reduce) {
  .sphere::before, .idle .sphere { animation: none; }
  .sphere, .sphere-ring { transition: none; }
}

/* ---------- Landing ---------- */
.hero { padding: 36px 0 56px; text-align: center; }
.free-tag { display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: var(--cream); border-radius: 999px; padding: 6px 16px; font-size: 14px; font-weight: 500; }
.hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(38px, 9vw, 66px); line-height: 1.12; margin: 18px auto 12px; max-width: 13em; letter-spacing: -0.01em; }
.hero .sub { color: var(--muted); font-size: clamp(16px, 2.4vw, 18px); max-width: 32em; margin: 0 auto; }
.hero .sphere-stage { margin: 40px 0 26px; min-height: min(80vw, 330px); }
.hero-cta { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hero-cta .note { font-size: 13.5px; color: var(--muted); margin: 0; }
.asks { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 30px auto 0; max-width: 620px; }
.asks-title { width: 100%; font-size: 13.5px; color: var(--muted); margin: 0 0 4px; }
.chip { border: 1.5px solid var(--line); background: var(--white); border-radius: 999px; padding: 8px 14px; font: 400 14.5px var(--ui); color: var(--ink); }

section.block { padding: 64px 0; border-top: 1px solid var(--line); }
.kicker { font-size: 14px; font-weight: 500; color: var(--muted); margin: 0 0 8px; }
h2 { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 5.4vw, 42px); line-height: 1.15; margin: 0 0 14px; letter-spacing: -0.01em; }
.lead { color: var(--muted); max-width: 36em; margin: 0; }

.steps { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); counter-reset: s; }
.steps li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; counter-increment: s; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--cream); font-weight: 600; margin-bottom: 14px; }
.steps h3 { margin: 0 0 6px; font-size: 18px; font-weight: 600; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }

.params { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 30px; }
.param { border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: var(--white); }
.param .hi { font-family: var(--display); font-size: 22px; display: block; line-height: 1.2; }
.param .en { font-size: 13.5px; color: var(--muted); }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 30px; }
.plan {
  position: relative; text-align: left; font-family: var(--ui); color: var(--ink); cursor: pointer;
  background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 24px 22px;
  display: flex; flex-direction: column; gap: 4px; text-decoration: none;
}
.plan:hover { border-color: var(--ink); }
.plan.best { border-color: var(--ink); }
.plan .badge { position: absolute; top: -12px; left: 20px; background: var(--ink); color: var(--cream); font-size: 12.5px; font-weight: 500; padding: 3px 12px; border-radius: 999px; }
.plan .mins { font-size: 40px; font-weight: 600; line-height: 1; letter-spacing: -0.02em; }
.plan .mins small { font-size: 16px; font-weight: 500; letter-spacing: 0; }
.plan .price { font-size: 22px; font-weight: 600; margin-top: 14px; }
.plan .per { font-size: 13.5px; color: var(--muted); }
.plans-note { margin: 16px 0 0; font-size: 14px; color: var(--muted); }

.faq { margin-top: 24px; display: grid; gap: 10px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 0 18px; }
.faq summary { cursor: pointer; font-weight: 500; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { margin: 0 0 16px; color: var(--muted); }

.final { text-align: center; }
.final h2 { margin-bottom: 20px; }

footer.foot { border-top: 1px solid var(--line); padding: 34px 0 40px; font-size: 14px; color: var(--muted); }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-bottom: 14px; }
.foot-links a { color: var(--ink); text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }
.foot p { margin: 4px 0; }

/* ---------- App ---------- */
.screen { padding-top: 26px; padding-bottom: 40px; }
.screen h1 { font-family: var(--display); font-weight: 400; font-size: clamp(32px, 8vw, 40px); line-height: 1.15; margin: 8px 0 10px; }
.screen .lead { margin-bottom: 22px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
label, legend { font-size: 14.5px; font-weight: 500; }
.hint { font-size: 13px; color: var(--muted); margin: 0; }
input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="date"], input[type="time"] {
  width: 100%; min-height: 50px; padding: 12px 14px; font: 400 16.5px var(--ui); color: var(--ink);
  background: var(--cream); border: 1.5px solid var(--line); border-radius: 12px;
}
input:focus-visible { outline: none; border-color: var(--ink); background: var(--white); }
input[readonly] { color: var(--muted); }
#otp { letter-spacing: 0.45em; text-align: center; font-size: 22px; }
.phone { display: flex; }
.phone span { display: flex; align-items: center; padding: 0 14px; border: 1.5px solid var(--line); border-right: 0; border-radius: 12px 0 0 12px; background: var(--cream-deep); font-weight: 500; }
.phone input { border-radius: 0 12px 12px 0; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
fieldset { border: 0; padding: 0; margin: 0; }
.radios { display: flex; gap: 8px; margin-top: 6px; }
.radios label { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; border: 1.5px solid var(--line); border-radius: 12px; font-weight: 400; cursor: pointer; background: var(--cream); }
.radios input { position: absolute; opacity: 0; pointer-events: none; }
.radios label:has(input:checked) { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.radios label:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 2px; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 400; }
.check input { width: 20px; height: 20px; accent-color: var(--ink); }
.place { position: relative; }
.place ul { position: absolute; z-index: 5; top: calc(100% + 4px); left: 0; right: 0; list-style: none; margin: 0; padding: 6px; background: var(--white); border: 1.5px solid var(--line); border-radius: 12px; max-height: 260px; overflow-y: auto; box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.2); }
.place li { padding: 10px; border-radius: 8px; cursor: pointer; }
.place li small { display: block; color: var(--muted); font-size: 13px; }
.place li[aria-selected="true"], .place li:hover { background: var(--cream); }
.error { color: var(--danger); font-size: 14.5px; margin: 0; }
.error:empty { display: none; }
.privacy-note { font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; }

/* Talk screen */
.talk { min-height: calc(100dvh - 64px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; padding-top: 20px; padding-bottom: 30px; }
.chart-line { font-size: 14px; color: var(--muted); margin: 0 0 8px; }
.talk .sphere-stage { margin: 16px 0 18px; min-height: min(78vw, 320px); }
.timer { font-size: 48px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1; }
.timer.low { color: var(--danger); }
.timer-label { font-size: 14px; color: var(--muted); margin: 2px 0 14px; }
.status { min-height: 1.6em; font-weight: 500; margin: 0 0 6px; }
.topics { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; max-width: 420px; }
.menu { position: relative; }
.menu-list { position: absolute; right: 0; top: calc(100% + 6px); background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 6px; min-width: 190px; box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.25); z-index: 30; }
.menu-list button { all: unset; display: block; width: 100%; box-sizing: border-box; padding: 12px; border-radius: 10px; cursor: pointer; font-size: 15px; }
.menu-list button:hover, .menu-list button:focus-visible { background: var(--cream); }
.icon-btn { all: unset; cursor: pointer; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--line); background: var(--white); }
.icon-btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

/* Plans sheet */
.sheet-back { position: fixed; inset: 0; background: rgba(20, 18, 16, 0.4); z-index: 40; display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: var(--cream); width: 100%; max-width: 520px; border-radius: 26px 26px 0 0; padding: 24px 22px calc(26px + env(safe-area-inset-bottom, 0px)); animation: up 0.22s ease-out; }
@keyframes up { from { transform: translateY(30px); opacity: 0; } }
.sheet h2 { font-size: 30px; margin-bottom: 4px; }
.sheet .plans { grid-template-columns: 1fr; gap: 12px; margin-top: 20px; }
.sheet .plan { flex-direction: row; align-items: center; justify-content: space-between; padding: 18px 20px; }
.sheet .plan .price { margin: 0; }
.sheet .plan .badge { top: -10px; }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: var(--cream); padding: 12px 20px; border-radius: 14px; font-size: 15px; z-index: 50; max-width: calc(100% - 32px); box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.4); }

/* Legal pages */
.legal { padding: 30px 0 60px; }
.legal h1 { font-family: var(--display); font-weight: 400; font-size: clamp(34px, 7vw, 46px); margin: 10px 0 4px; }
.legal .updated { color: var(--muted); font-size: 14px; margin: 0 0 28px; }
.legal h2 { font-family: var(--ui); font-size: 19px; font-weight: 600; margin: 30px 0 8px; }
.legal p, .legal li { color: #3A352E; }
.legal ul { padding-left: 20px; }

@media (max-width: 760px) {
  .steps, .plans { grid-template-columns: 1fr; }
  .params { grid-template-columns: repeat(2, 1fr); }
  section.block { padding: 48px 0; }
}
@media (max-width: 380px) {
  .top-actions .btn.small { padding: 0 12px; }
  .wrap, .narrow { padding: 0 16px; }
}
