/* =====================================================
   BAAGEECHA — LAUNCH WAITLIST
   Minimal, Apple-inspired. Standalone (no css/style.css).
   ===================================================== */

:root {
  --ink:    #1d1d1f;
  --ink-2:  #424245;
  --gray:   #6e6e73;
  --gray-2: #86868b;
  --line:   #d2d2d7;
  --line-2: #e8e8ed;
  --bg-l:   #f5f5f7;

  --accent:      #248a3d;
  --accent-h:    #1e7533;
  --accent-soft: rgba(36,138,61,.06);
  --accent-ring: rgba(36,138,61,.2);
  --error:       #e30000;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.25, 1, 0.5, 1);
  --spring: cubic-bezier(0.34, 1.5, 0.64, 1);
  --gutter: clamp(20px, 5vw, 44px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #000;
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px; line-height: 1.47; letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
canvas { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: rgba(255,170,60,.35); }
:focus-visible { outline: 3px solid rgba(0,113,227,.6); outline-offset: 2px; border-radius: 8px; }

.container { max-width: 560px; margin: 0 auto; padding: 0 var(--gutter); }

.grad {
  background: linear-gradient(95deg, #b8e07a 0%, #ffd06a 45%, #ff8a2a 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}

/* ── Nav ─────────────────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: 48px; padding-top: env(safe-area-inset-top); box-sizing: content-box;
  color: #f5f5f7;
  transition: background .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(0,0,0,.6); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom-color: rgba(255,255,255,.08); }
.nav[data-theme="light"].is-scrolled { background: rgba(251,251,253,.8); color: var(--ink); border-bottom-color: rgba(0,0,0,.08); }
.nav__inner { height: 100%; max-width: 1024px; margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; justify-content: space-between; }
.nav__brand { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.nav__cta {
  font-size: 12px; font-weight: 500; padding: 4px 12px; border-radius: 980px;
  background: currentColor;
  opacity: 0; pointer-events: none; transition: opacity .4s var(--ease);
}
.nav__cta { color: #f5f5f7; background: rgba(255,255,255,.14); }
.nav[data-theme="light"] .nav__cta { color: #fff; background: var(--ink); }
.nav.show-cta .nav__cta { opacity: 1; pointer-events: auto; }

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 28px;
  border: 0; border-radius: 980px; cursor: pointer;
  font-size: 17px; font-weight: 500; letter-spacing: -0.022em;
  transition: background .2s, transform .2s var(--ease), opacity .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.98); }
.btn--light { background: #f5f5f7; color: var(--ink); }
.btn--light:hover { background: #fff; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn--block { width: 100%; }
.spinner {
  position: absolute; width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.3); border-top-color: #fff;
  opacity: 0; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.is-submitting .btn__label { opacity: 0; }
.is-submitting .spinner { opacity: 1; }

/* ── Hero ────────────────────────────────────────────── */
.hero {
  position: relative; height: 100svh; min-height: 600px;
  background: #000; color: #f5f5f7;
  overflow: hidden; isolation: isolate;
}
.hero__canvas, .hero__glow { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero__glow { z-index: -1; filter: blur(22px) saturate(1.2); opacity: .85; mix-blend-mode: screen; pointer-events: none; }
.hero::after { /* film grain */
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero__copy {
  position: relative; z-index: 1;
  padding: calc(48px + env(safe-area-inset-top) + clamp(56px, 13vh, 140px)) var(--gutter) 0;
  text-align: center;
  will-change: transform, opacity;
}
.hero__title {
  margin: 0;
  font-size: clamp(44px, 10vw, 88px);
  font-weight: 600; line-height: 1.05; letter-spacing: -0.045em;
}
.hero__sub {
  margin: 16px auto 32px;
  font-size: clamp(17px, 2vw, 21px); font-weight: 400; color: var(--gray-2); letter-spacing: -0.015em;
  text-wrap: balance;
}
.hero__proof { margin: 18px 0 0; font-size: 13px; color: var(--gray-2); font-variant-numeric: tabular-nums; }

/* entrance: fade up out of a soft blur */
.fx {
  opacity: 0; transform: translateY(20px); filter: blur(8px);
  transition: opacity 1.2s var(--ease), transform 1.2s var(--ease), filter 1.2s var(--ease);
  transition-delay: calc(var(--i) * 120ms + 250ms);
}
.is-ready .fx { opacity: 1; transform: none; filter: none; }

/* ── Statement ───────────────────────────────────────── */
.story { background: #000; padding: clamp(120px, 24vh, 240px) var(--gutter); }
.story__text {
  max-width: 820px; margin: 0 auto; text-align: center;
  font-size: clamp(34px, 6vw, 64px); font-weight: 600; line-height: 1.1; letter-spacing: -0.04em;
}
.story__text .w { color: #2c2c2e; transition: color .4s linear; }
.story__text .w.on { color: #f5f5f7; }
.story__text .w.on.hl { color: #ffb84a; }

/* ── Join: "Get Early Access" form ───────────────────── */
.join { background: var(--bg-l); padding: clamp(64px, 12vh, 128px) 0; scroll-margin-top: 48px; }
.join .container { max-width: 680px; }

.card {
  background: #fff; border-radius: 28px;
  padding: 32px 22px 28px;
  box-shadow: 0 1px 2px rgba(0,0,0,.03), 0 24px 60px -36px rgba(0,0,0,.2);
}
@media (min-width: 640px) { .card { padding: 52px 56px 44px; } }

.form__head { margin-bottom: 36px; }
.form__title {
  margin: 0;
  font-size: clamp(30px, 6vw, 44px); font-weight: 700; line-height: 1.08; letter-spacing: -0.035em; color: var(--ink);
}
.form__intro { margin: 14px 0 0; font-size: clamp(17px, 2vw, 19px); line-height: 1.5; color: var(--gray); letter-spacing: -0.015em; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.q { border: 0; margin: 0 0 30px; padding: 0; min-width: 0; }
.q__label {
  display: block; padding: 0; margin: 0 0 10px;
  font-size: 17px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink);
}
.req { color: var(--gray-2); font-weight: 400; }
.q__hint { margin: -4px 0 12px; font-size: 14px; color: var(--gray); }
.q__count { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.q__count:not(:empty)::before { content: "· "; color: var(--gray-2); }

.input {
  display: block; width: 100%; height: 54px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 14px; background: #fff;
  font-family: var(--font); font-size: 17px; letter-spacing: -0.022em; color: var(--ink);
  outline: 0; -webkit-appearance: none; appearance: none;
  transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: var(--gray-2); }
.input:hover { border-color: #b8b8bd; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-ring); }

/* WhatsApp number with a fixed +91 prefix */
.phone { position: relative; }
.phone__cc {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  font-size: 17px; line-height: 1; color: var(--ink-2); pointer-events: none;
  padding-right: 12px; border-right: 1px solid var(--line-2);
}
.input--phone { padding-left: 68px; font-variant-numeric: tabular-nums; }

/* selection cards */
.options { display: grid; gap: 10px; }
@media (min-width: 560px) { .options--grid { grid-template-columns: 1fr 1fr; } }
.opt {
  position: relative; cursor: pointer;
  display: flex; align-items: center; gap: 14px;
  min-height: 56px; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: 14px; background: #fff;
  font-size: 16px; line-height: 1.35; color: var(--ink);
  transition: border-color .15s, background-color .15s, box-shadow .15s, opacity .15s;
  -webkit-tap-highlight-color: transparent;
}
.opt:hover { border-color: #b8b8bd; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.opt__text { display: flex; flex-direction: column; gap: 2px; }
.opt__sub { font-size: 14px; color: var(--gray); }
.opt__mark {
  flex: none; position: relative; width: 22px; height: 22px;
  border: 1.5px solid #b8b8bd; border-radius: 50%; background: #fff;
  transition: background-color .15s, border-color .15s;
}
.opt--check .opt__mark { border-radius: 7px; }
.opt__mark::after {
  content: ""; position: absolute; opacity: 0; transition: opacity .15s;
}
.opt:not(.opt--check) .opt__mark::after { inset: 5px; border-radius: 50%; background: #fff; }
.opt--check .opt__mark::after { left: 6.5px; top: 2.5px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.opt:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--accent-soft); }
.opt:has(input:checked) .opt__mark { background: var(--accent); border-color: var(--accent); }
.opt:has(input:checked) .opt__mark::after { opacity: 1; }
.opt:has(input:focus-visible) { outline: 3px solid rgba(0,113,227,.55); outline-offset: 2px; }
.opt.is-disabled { opacity: .45; cursor: not-allowed; }
.opt.is-disabled:hover { border-color: var(--line); }

/* validation */
.err { margin: 8px 2px 0; font-size: 14px; color: var(--error); display: flex; gap: 6px; align-items: flex-start; }
.err:empty { display: none; }
.err::before { content: "!"; flex: none; display: grid; place-items: center; width: 16px; height: 16px; margin-top: 1px; border-radius: 50%; background: var(--error); color: #fff; font-size: 11px; font-weight: 700; }
.q.has-error .input { border-color: var(--error); box-shadow: 0 0 0 4px rgba(227,0,0,.08); }
.q.has-error .opt { border-color: #f0b3b3; }

.form__foot { margin-top: 8px; }
.form-err {
  margin: 0 0 16px; padding: 12px 14px; border-radius: 12px;
  background: #fff1f0; color: #b3261e; font-size: 14px; line-height: 1.45;
}
.form-err:empty { display: none; }
.form-err a { color: inherit; font-weight: 600; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-h); }
.btn--lg { min-height: 56px; font-size: 18px; font-weight: 600; }
.btn .spinner { position: static; margin-right: 10px; display: none; opacity: 1; }
.is-submitting .btn .spinner { display: inline-block; }
.is-submitting .btn__label { opacity: 1; }
.fine { margin: 14px 0 0; text-align: center; font-size: 13px; color: var(--gray-2); }
.fine a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; }

/* ── Success ─────────────────────────────────────────── */
.card.is-done .form { display: none; }
.success { text-align: center; padding: 24px 0 16px; outline: 0; }
.success__icon { width: 56px; height: 56px; margin: 0 auto 22px; }
.success__icon circle { fill: var(--accent); }
.success__icon path { fill: none; stroke: #fff; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.success__title { margin: 0; font-size: clamp(32px, 6vw, 44px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.1; color: var(--ink); }
.success__text { max-width: 30em; margin: 16px auto 0; font-size: 18px; line-height: 1.5; color: var(--ink-2); }
.success__sub { margin: 18px 0 0; font-size: 15px; color: var(--gray); }
.success__text, .success__sub, .form__intro, .success__title { text-wrap: balance; }

/* ── Footer ──────────────────────────────────────────── */
.foot { background: var(--bg-l); border-top: 1px solid var(--line-2); padding: 18px 0 max(22px, env(safe-area-inset-bottom)); font-size: 12px; color: var(--gray-2); }
.foot__inner { max-width: 1024px; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
.foot nav { display: flex; gap: 18px; }
.foot nav a { color: var(--ink-2); }
.foot nav a:hover { text-decoration: underline; }

/* ── Reduced motion ──────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .15s !important; transition-delay: 0s !important; }
  .fx { opacity: 1; transform: none; filter: none; }
  .story__text .w { color: #f5f5f7; }
}
