/* ============================================================
   Hisaabi — landing
   Design tokens → primitives → layout → sections
   ============================================================ */

/* ---------- 1. Tokens ---------- */

:root {
  /* dark is the default canvas */
  --bg:            #0A0B0D;
  --bg-2:          #101115;
  --surface:       #14161B;
  --surface-2:     #191C22;
  --line:          rgba(242, 239, 233, 0.10);
  --line-strong:   rgba(242, 239, 233, 0.20);
  --ink:           #F2EFE9;
  --ink-2:         #B4B0A6;
  --ink-3:         #7C7970;
  --accent:        #D6FF3D;
  --accent-ink:    #12140A;
  --good:          #6EE7A8;
  --warn:          #FFB86B;
  --shadow-sm:     0 1px 2px rgba(0,0,0,.5);
  --shadow-md:     0 18px 40px -20px rgba(0,0,0,.85);
  --shadow-lg:     0 60px 120px -50px rgba(0,0,0,.9);
  --grain-opacity: .035;

  /* accent se hi derive hote hain — accent badla, ye khud badal jate hain */
  --accent-soft:   color-mix(in srgb, var(--accent) 13%, transparent);
  --glow:          radial-gradient(60% 60% at 50% 0%,
                     color-mix(in srgb, var(--accent) 17%, transparent), transparent 70%);

  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 34px;
  --r-pill: 999px;

  --pad: clamp(20px, 5vw, 40px);
  --maxw: 1200px;
  --section-y: clamp(72px, 11vw, 148px);

  --font-display: "Bricolage Grotesque", "Inter Tight", system-ui, sans-serif;
  --font-body: "Inter Tight", system-ui, -apple-system, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;

  --ease: cubic-bezier(.22, .9, .3, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

:root[data-theme="light"] {
  --bg:            #FAF8F3;
  --bg-2:          #F3F0E8;
  --surface:       #FFFFFF;
  --surface-2:     #F6F3EC;
  --line:          rgba(20, 21, 15, 0.10);
  --line-strong:   rgba(20, 21, 15, 0.22);
  --ink:           #14150F;
  --ink-2:         #55564C;
  --ink-3:         #83847A;
  --accent:        #C8F225;
  --accent-ink:    #14170A;
  --good:          #17915A;
  --warn:          #B4661A;
  --shadow-sm:     0 1px 2px rgba(20,21,15,.06);
  --shadow-md:     0 18px 40px -24px rgba(20,21,15,.28);
  --shadow-lg:     0 60px 110px -55px rgba(20,21,15,.35);
  --grain-opacity: .05;
  --accent-soft:   color-mix(in srgb, var(--accent) 15%, transparent);
}

/* ---------- 1b. Accent variants (user apna rang chun sakta hai) ----------
   default = nimbu (lime). Baaki sirf --accent aur --accent-ink override karte hain,
   soft/glow apne aap derive ho jate hain.                                   */

:root[data-accent="kesari"]   { --accent: #FF8A3D; --accent-ink: #1A0B03; }
:root[data-accent="pudina"]   { --accent: #2FE3B0; --accent-ink: #04120D; }
:root[data-accent="genda"]    { --accent: #FFC233; --accent-ink: #171003; }
:root[data-accent="jamun"]    { --accent: #B69CFF; --accent-ink: #120B24; }

:root[data-theme="light"][data-accent="kesari"] { --accent: #DD5F13; --accent-ink: #FFF6F0; }
:root[data-theme="light"][data-accent="pudina"] { --accent: #0E8F6E; --accent-ink: #F0FBF7; }
:root[data-theme="light"][data-accent="genda"]  { --accent: #B07908; --accent-ink: #FFF9EC; }
:root[data-theme="light"][data-accent="jamun"]  { --accent: #6741D9; --accent-ink: #F6F2FF; }

/* ---------- 2. Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  font-feature-settings: "ss01" 1, "cv01" 1;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}

/* film grain so the flat colours don't read as a template */
body::before {
  content: "";
  position: fixed;
  inset: -50%;
  z-index: 0;
  pointer-events: none;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }

em.serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  padding-right: .04em;
}

.num { font-variant-numeric: tabular-nums; }

::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 3. Layout primitives ---------- */

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
  position: relative;
  z-index: 1;
}

.section { padding-block: var(--section-y); position: relative; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.section-head { max-width: 660px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head h2 {
  font-size: clamp(32px, 5vw, 54px);
  margin-top: 18px;
}
.section-head p {
  color: var(--ink-2);
  font-size: clamp(16px, 1.7vw, 18.5px);
  margin-top: 18px;
  max-width: 54ch;
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 26px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 15.5px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform .25s var(--ease), background-color .25s var(--ease),
              border-color .25s var(--ease), box-shadow .25s var(--ease), color .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 10px 30px -12px var(--accent);
}
.btn-primary:hover { box-shadow: 0 16px 40px -12px var(--accent); }

.btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--ink-3); background: var(--surface); }

.btn-sm { height: 42px; padding: 0 18px; font-size: 14px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}

/* ---------- 4. Nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  padding-block: 14px;
  transition: background-color .35s var(--ease), border-color .35s var(--ease), backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.nav.stuck {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom-color: var(--line);
}
.nav .wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.04em;
  margin-right: auto;
}
.brand-mark {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: var(--accent);
  color: var(--accent-ink);
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 6px 18px -8px var(--accent);
}

.nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
}
.nav-links a {
  padding: 9px 14px;
  border-radius: var(--r-pill);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-2);
  transition: color .2s, background-color .2s;
}
.nav-links a:hover { color: var(--ink); background: var(--surface); }

.icon-btn {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color .2s, transform .2s;
}
.icon-btn:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-sun { display: none; }
:root[data-theme="light"] .icon-sun { display: block; }
:root[data-theme="light"] .icon-moon { display: none; }

.nav-toggle { display: none; }

/* colour picker */
.picker { position: relative; }
.picker-dot {
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  transition: background-color .3s var(--ease);
}
.picker-pop {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 80;
  width: 208px;
  padding: 14px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(.97);
  transform-origin: top right;
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
}
.picker-pop.open { opacity: 1; visibility: visible; transform: none; }
.picker-pop h4 {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 12px;
}
.sw-row { display: flex; gap: 9px; }
.sw {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 2px solid transparent;
  transition: transform .2s var(--ease), border-color .2s var(--ease);
}
.sw:hover { transform: scale(1.12); }
.sw i {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: block;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.14);
}
.sw[aria-checked="true"] { border-color: var(--ink); }
.picker-name {
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-3);
}
.picker-name b { color: var(--ink); font-weight: 600; }

/* ---------- 5. Hero ---------- */

.hero {
  position: relative;
  padding-top: clamp(120px, 16vw, 168px);
  padding-bottom: clamp(60px, 8vw, 96px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 620px;
  background: var(--glow);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero h1 {
  font-size: clamp(44px, 7.4vw, 88px);
  margin-top: 22px;
  letter-spacing: -0.045em;
}
.hero-sub {
  margin-top: 24px;
  font-size: clamp(16.5px, 1.9vw, 19.5px);
  color: var(--ink-2);
  max-width: 48ch;
}
.hero-cta {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-note {
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--ink-3);
}

.hero-facts {
  margin-top: 42px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 28px 40px;
}
.fact strong {
  display: block;
  font-family: var(--font-display);
  font-size: 21px;
  letter-spacing: -0.03em;
}
.fact span { font-size: 13px; color: var(--ink-3); }

/* ---------- 6. Phone mock ---------- */

.phone-stage {
  position: relative;
  display: grid;
  place-items: center;
  padding-block: 10px;
}
.phone-stage::after {
  content: "";
  position: absolute;
  width: 78%; height: 60%;
  bottom: -6%;
  border-radius: 50%;
  background: var(--accent);
  filter: blur(90px);
  opacity: .18;
  z-index: 0;
}

.phone {
  position: relative;
  z-index: 1;
  width: min(330px, 84vw);
  aspect-ratio: 9 / 19;
  border-radius: 44px;
  padding: 10px;
  background: linear-gradient(160deg, var(--surface-2), var(--bg-2));
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,.06);
}
.phone-screen {
  position: relative;
  height: 100%;
  border-radius: 35px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.phone-notch {
  position: absolute;
  top: 10px; left: 50%;
  transform: translateX(-50%);
  width: 86px; height: 22px;
  border-radius: var(--r-pill);
  background: var(--bg);
  z-index: 4;
}

.p-top {
  padding: 40px 18px 12px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.p-top .p-date { font-size: 11.5px; color: var(--ink-3); }
.p-top .p-total {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: -0.04em;
}

.p-body {
  position: relative;
  flex: 1;
  padding: 6px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}

/* pehla khaali screen — greeting, jab tak entries nahi aatin */
.p-empty {
  position: absolute;
  inset: 0;
  padding: 0 22px 26px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 9px;
  text-align: center;
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.p-empty.out { opacity: 0; transform: scale(.94); }
.p-empty .e-ico {
  width: 46px; height: 46px;
  border-radius: 16px;
  display: grid; place-items: center;
  font-size: 21px;
  background: var(--accent-soft);
  border: 1px solid var(--line);
  animation: waveHand 2.6s var(--ease) infinite;
  transform-origin: 70% 75%;
}
@keyframes waveHand {
  0%, 62%, 100% { transform: rotate(0deg); }
  68%  { transform: rotate(13deg); }
  74%  { transform: rotate(-9deg); }
  80%  { transform: rotate(11deg); }
  86%  { transform: rotate(-6deg); }
}
.p-empty .e-t {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.p-empty .e-s {
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--ink-3);
  max-width: 24ch;
}
.p-empty .e-chip {
  margin-top: 3px;
  font-size: 11px;
  color: var(--ink-2);
  padding: 6px 11px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px dashed var(--line-strong);
}

.p-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  opacity: 0;
  transform: translateY(14px) scale(.97);
}
.p-row.show {
  animation: rowIn .5s var(--ease-out) forwards;
}
@keyframes rowIn {
  to { opacity: 1; transform: none; }
}
.p-row .p-emoji {
  width: 32px; height: 32px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: var(--accent-soft);
  font-size: 15px;
  flex: none;
}
.p-row > span:nth-child(2) { min-width: 0; }
.p-row .p-name { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.25; }
.p-row .p-cat { display: block; font-size: 11px; color: var(--ink-3); line-height: 1.3; }
.p-row .p-amt {
  margin-left: auto;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.p-row.auto .p-emoji { background: color-mix(in srgb, var(--good) 18%, transparent); }
.p-row .p-tag {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--good);
  border: 1px solid color-mix(in srgb, var(--good) 40%, transparent);
  border-radius: var(--r-pill);
  padding: 2px 6px;
  margin-left: auto;
}
.p-row.auto .p-amt { margin-left: 10px; }

.p-safe {
  margin: 0 12px 10px;
  padding: 11px 13px;
  border-radius: 16px;
  background: linear-gradient(120deg, var(--accent-soft), transparent 70%), var(--surface);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.p-safe .s-k {
  display: block;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.p-safe .s-v {
  display: block;
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: -0.03em;
  line-height: 1.25;
}
.p-safe .s-v small { font-family: var(--font-body); font-size: 11px; color: var(--ink-3); letter-spacing: 0; }
.p-safe .s-right {
  font-size: 11.5px;
  color: var(--ink-2);
  text-align: right;
}

.p-mic {
  margin: 0 12px 14px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 13px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 66px;
}
.p-mic-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  display: grid; place-items: center;
  flex: none;
  transition: box-shadow .3s var(--ease);
}
.p-mic.rec .p-mic-btn {
  animation: micPulse 1.4s ease-in-out infinite;
}
@keyframes micPulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-soft); }
  50%      { box-shadow: 0 0 0 10px transparent; }
}
.p-mic-btn svg { width: 18px; height: 18px; }

.p-mic-body { min-width: 0; flex: 1; }
.p-hint { font-size: 12.5px; color: var(--ink-3); }
.p-transcript {
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--ink);
  min-height: 34px;
}
.p-transcript .caret {
  display: inline-block;
  width: 2px; height: 1em;
  background: var(--accent);
  vertical-align: -2px;
  animation: blink .9s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 20px;
  margin-top: 4px;
}
.wave i {
  width: 3px;
  border-radius: 2px;
  background: var(--accent);
  height: 20%;
  opacity: .55;
}
.p-mic.rec .wave i { animation: waveJump .9s ease-in-out infinite; }
@keyframes waveJump {
  0%, 100% { height: 18%; opacity: .45; }
  50%      { height: 100%; opacity: 1; }
}

.p-toast {
  position: absolute;
  left: 12px; right: 12px; top: 42px;
  z-index: 5;
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-md);
  padding: 10px 12px;
  display: flex;
  gap: 10px;
  align-items: center;
  opacity: 0;
  transform: translateY(-14px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.p-toast.show { opacity: 1; transform: none; }
.p-toast .t-icon {
  width: 26px; height: 26px;
  border-radius: 8px;
  display: grid; place-items: center;
  font-size: 13px;
  background: var(--accent-soft);
  flex: none;
}
.p-toast .t-title { font-size: 11.5px; font-weight: 600; }
.p-toast .t-sub { font-size: 10.5px; color: var(--ink-3); }

.p-status {
  font-size: 11px;
  color: var(--ink-3);
  padding: 0 16px 8px;
  height: 18px;
}

/* ---------- 7. Ticker ---------- */

.ticker {
  border-block: 1px solid var(--line);
  background: var(--bg-2);
  padding-block: 16px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.ticker::before, .ticker::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 14vw;
  z-index: 2;
  pointer-events: none;
}
.ticker::before { left: 0;  background: linear-gradient(90deg, var(--bg-2), transparent); }
.ticker::after  { right: 0; background: linear-gradient(270deg, var(--bg-2), transparent); }

.ticker-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: slide 42s linear infinite;
}
@keyframes slide { to { transform: translateX(-50%); } }
.ticker:hover .ticker-track { animation-play-state: paused; }

.tick {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 15px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 13.5px;
  color: var(--ink-2);
  white-space: nowrap;
}
.tick b { color: var(--ink); font-weight: 600; }
.tick .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); flex: none; }

/* ---------- 8. Three ways ---------- */

.ways {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.way {
  padding: 26px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.way:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.way-badge {
  width: 44px; height: 44px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: var(--accent-soft);
  border: 1px solid var(--line);
  font-size: 20px;
}
.way h3 { font-size: 22px; }
.way p { color: var(--ink-2); font-size: 15.5px; }
.way-demo {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
  font-size: 13px;
  color: var(--ink-3);
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  padding: 6px 11px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-2);
}
.chip b { color: var(--ink); font-weight: 600; }

/* ---------- 9. Bento ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.tile {
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 200px;
  position: relative;
  overflow: hidden;
  transition: border-color .3s var(--ease);
}
.tile:hover { border-color: var(--line-strong); }
.tile h3 { font-size: 19px; letter-spacing: -0.03em; }
.tile p { font-size: 14.5px; color: var(--ink-2); }
.tile .tile-k {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.t-wide  { grid-column: span 3; }
.t-half  { grid-column: span 3; }
.t-third { grid-column: span 2; }

.tile.accent {
  background: linear-gradient(150deg, color-mix(in srgb, var(--accent) 16%, var(--surface)), var(--surface) 65%);
}

.safe-num {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 60px);
  letter-spacing: -0.05em;
  line-height: 1;
}
.safe-bar {
  height: 8px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  overflow: hidden;
  border: 1px solid var(--line);
}
.safe-bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: var(--r-pill);
  background: var(--accent);
  transition: width 1.4s var(--ease-out);
}
.in .safe-bar i { width: 62%; }
.safe-legend { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-3); }

.qa {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 4px;
}
.bub {
  padding: 10px 13px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.45;
  max-width: 88%;
}
.bub.you {
  align-self: flex-end;
  background: var(--accent);
  color: var(--accent-ink);
  border-bottom-right-radius: 5px;
  font-weight: 500;
}
.bub.ai {
  align-self: flex-start;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-bottom-left-radius: 5px;
}
.bub.ai b { font-weight: 600; }

.notif-mock {
  margin-top: auto;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.notif-mock .n-ico {
  width: 26px; height: 26px; flex: none;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  display: grid; place-items: center;
  font-size: 12px; font-weight: 800;
}
.notif-mock .n-t { font-size: 12.5px; font-weight: 600; }
.notif-mock .n-s { font-size: 12px; color: var(--ink-2); line-height: 1.4; }

/* ---------- 10. Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.step {
  padding: 30px 26px 30px 0;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}
.step:last-child { border-right: 0; }
.step:not(:first-child) { padding-left: 26px; }
.step .s-num {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--accent);
}
.step h3 { font-size: 20px; }
.step p { font-size: 14.5px; color: var(--ink-2); }
.step::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width .9s var(--ease-out);
}
.in .step::before { width: 100%; }
.in .step:nth-child(2)::before { transition-delay: .12s; }
.in .step:nth-child(3)::before { transition-delay: .24s; }
.in .step:nth-child(4)::before { transition-delay: .36s; }

/* ---------- 11. Privacy panel ---------- */

.panel {
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 100% at 100% 0%, var(--accent-soft), transparent 55%),
    var(--surface);
  padding: clamp(30px, 5vw, 60px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  box-shadow: var(--shadow-md);
}
.panel h2 { font-size: clamp(28px, 4vw, 44px); }
.panel > div > p { color: var(--ink-2); margin-top: 16px; }
.priv-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.priv-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15.5px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--bg-2);
  border: 1px solid var(--line);
}
.priv-list .tick-i {
  width: 20px; height: 20px; flex: none;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  display: grid; place-items: center;
  font-size: 11px; font-weight: 800;
  margin-top: 1px;
}

/* ---------- 12. Pricing ---------- */

.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: stretch;
}
.plan {
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.plan.pro {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  background: linear-gradient(170deg, color-mix(in srgb, var(--accent) 10%, var(--surface)), var(--surface) 60%);
  position: relative;
}
.plan-name { display: flex; align-items: center; gap: 10px; }
.plan-name h3 { font-size: 22px; }
.badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--accent-ink);
}
.badge.soft {
  background: var(--accent-soft);
  color: var(--ink);
  border: 1px solid var(--line);
}
.price {
  font-family: var(--font-display);
  font-size: 44px;
  letter-spacing: -0.05em;
  line-height: 1;
}
.price small { font-family: var(--font-body); font-size: 15px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.plan li { display: flex; gap: 10px; font-size: 15px; color: var(--ink-2); }
.plan li::before { content: "→"; color: var(--accent); flex: none; }
.plan .btn { margin-top: auto; }
.plan-note { font-size: 12.5px; color: var(--ink-3); }

/* ---------- 13. FAQ ---------- */

.faq-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.faq-aside { position: sticky; top: 112px; }
.faq-aside h2 { font-size: clamp(30px, 4vw, 44px); margin-top: 18px; }
.faq-aside > p { color: var(--ink-2); margin-top: 16px; font-size: 16px; }
.ask-card {
  margin-top: 28px;
  padding: 20px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: linear-gradient(150deg, var(--accent-soft), transparent 70%), var(--surface);
  display: grid;
  gap: 12px;
}
.ask-card p { font-size: 14.5px; color: var(--ink-2); }
.ask-card strong { display: block; font-size: 16px; color: var(--ink); letter-spacing: -0.02em; }

.faq { display: grid; gap: 10px; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  overflow: hidden;
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.faq details:hover { border-color: var(--line-strong); }
.faq details[open] {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  background: linear-gradient(180deg, var(--accent-soft), transparent 34%), var(--surface);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 19px 22px;
  font-weight: 600;
  font-size: 16.5px;
  display: flex;
  align-items: center;
  gap: 14px;
  letter-spacing: -0.02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq .q-n {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  flex: none;
  min-width: 22px;
}
.faq details[open] .q-n { color: var(--accent); }
.faq summary::after {
  content: "";
  margin-left: auto;
  flex: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(var(--ink), var(--ink)) center/9px 1.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center/1.5px 9px no-repeat;
  transition: transform .35s var(--ease), border-color .25s, background-size .25s;
}
.faq details[open] summary::after {
  transform: rotate(135deg);
  border-color: var(--accent);
}
.faq .a {
  padding: 0 22px 22px 58px;
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.6;
  max-width: 68ch;
  display: grid;
  gap: 12px;
}
.faq .a strong { color: var(--ink); font-weight: 600; }
.faq .a code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .88em;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.faq .a .note {
  padding: 12px 14px;
  border-radius: var(--r-sm);
  background: var(--bg-2);
  border-left: 2px solid var(--accent);
  font-size: 14.5px;
  color: var(--ink-2);
}

/* ---------- 14. Download CTA ---------- */

.download-panel {
  border-radius: var(--r-xl);
  padding: clamp(34px, 5vw, 64px);
  background:
    radial-gradient(90% 130% at 50% 0%, var(--accent-soft), transparent 60%),
    var(--bg-2);
  border: 1px solid var(--line);
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 20px;
}
.download-panel h2 { font-size: clamp(32px, 5.4vw, 60px); }
.download-panel p { color: var(--ink-2); max-width: 52ch; }
.dl-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
}
.dl-meta span {
  font-size: 12.5px;
  color: var(--ink-3);
  padding: 6px 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--surface);
}

/* ---------- 15. Footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  padding-block: 44px 30px;
  position: relative;
  z-index: 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1.3fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.footer-about p {
  margin-top: 18px;
  color: var(--ink-2);
  font-size: 15px;
  max-width: 40ch;
}
.footer-about .made {
  margin-top: 16px;
  font-size: 13.5px;
  color: var(--ink-3);
}
.f-col h4 {
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 14px;
}
.f-col a {
  display: block;
  padding: 5px 0;
  font-size: 14.5px;
  color: var(--ink-2);
  transition: color .2s;
}
.f-col a:hover { color: var(--ink); }
.f-col a .soon {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-left: 6px;
}
.f-cta {
  padding: 20px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface);
  display: grid;
  gap: 12px;
}
.f-cta p { font-size: 14px; color: var(--ink-2); }
.wordmark {
  margin-top: 40px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(56px, 17vw, 200px);
  letter-spacing: -0.06em;
  line-height: .82;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-strong);
  user-select: none;
}
.footer-legal {
  margin-top: 22px;
  font-size: 13px;
  color: var(--ink-3);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: space-between;
}

/* ---------- 16. Reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .07s; }
.reveal.d2 { transition-delay: .14s; }
.reveal.d3 { transition-delay: .21s; }

/* ---------- 17. Responsive ---------- */

@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy, .phone-stage { min-width: 0; }
  .phone-stage { margin-top: 8px; }
  .hero-sub { max-width: none; }
  .ways { grid-template-columns: 1fr; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .t-wide, .t-half, .t-third { grid-column: span 2; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step { border-bottom: 1px solid var(--line); }
  .step:nth-child(2) { border-right: 0; }
  .panel { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .faq-layout { grid-template-columns: 1fr; }
  .faq-aside { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    left: var(--pad); right: var(--pad);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px;
    border-radius: var(--r-lg);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; font-size: 15.5px; }
  .nav-toggle { display: grid; }
  .nav .btn-dl { display: none; }
  .bento { grid-template-columns: 1fr; }
  .t-wide, .t-half, .t-third { grid-column: span 1; }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0; padding-left: 0 !important; }
  .hero-cta .btn { flex: 1 1 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .faq .a { padding-left: 22px; }
  .picker-pop { right: -46px; }
}

/* ---------- Download card ----------
   File seedha girane se pehle ek card — kya download ho raha hai, kitna bada hai,
   install kaise hoga. Sideload me bharosa isi se banta hai.                    */

.dl-modal[hidden] { display: none; }
.dl-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 20px;
}

.dl-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: dlFade .25s var(--ease) both;
}
@keyframes dlFade { from { opacity: 0; } }

.dl-card {
  position: relative;
  width: min(440px, 100%);
  max-height: 88svh;
  display: flex;
  flex-direction: column;
  padding: 26px;
  border-radius: var(--r-xl);
  background:
    radial-gradient(120% 90% at 50% 0%, var(--accent-soft), transparent 60%),
    var(--surface);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-lg);
  animation: dlIn .4s var(--ease-out) both;
}
@keyframes dlIn { from { opacity: 0; transform: translateY(18px) scale(.97); } }

.dl-x {
  position: absolute;
  top: 14px; right: 14px;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--ink-3);
  transition: color .2s, border-color .2s, transform .3s var(--ease);
}
.dl-x:hover { color: var(--ink); border-color: var(--line-strong); transform: rotate(90deg); }
.dl-x svg { width: 15px; height: 15px; }

/* Beech ka hissa scroll ho, par download button hamesha dikhe —
   chhoti screen pe wo neeche gayab ho jata tha. */
.dl-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  margin-right: -6px;
  padding-right: 6px;
}

.dl-head { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.dl-icon {
  width: 56px; height: 56px; flex: none;
  border-radius: 17px;
  display: grid; place-items: center;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 27px;
  box-shadow: 0 10px 26px -12px var(--accent);
}
.dl-head h3 { font-size: 25px; letter-spacing: -0.04em; }
.dl-ver { font-size: 13.5px; color: var(--ink-3); margin-top: 3px; font-variant-numeric: tabular-nums; }

.dl-facts { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 9px; }
.dl-facts li { display: flex; gap: 11px; align-items: center; font-size: 14.5px; color: var(--ink-2); }
.dl-facts li span { width: 20px; text-align: center; flex: none; }

.dl-steps {
  padding: 16px 18px;
  border-radius: var(--r-md);
  background: var(--bg-2);
  border: 1px solid var(--line);
  margin-bottom: 14px;
}
.dl-k {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 10px;
}
.dl-steps ol { margin: 0; padding-left: 18px; display: grid; gap: 7px; }
.dl-steps li { font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.dl-steps b { color: var(--ink); font-weight: 600; }

.dl-sum { margin-bottom: 20px; }
.dl-sum summary { cursor: pointer; font-size: 13px; color: var(--ink-3); list-style: none; }
.dl-sum summary::-webkit-details-marker { display: none; }
.dl-sum summary::before { content: "+ "; }
.dl-sum[open] summary::before { content: "\2212 "; }
.dl-sum code {
  display: block;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  line-height: 1.5;
  word-break: break-all;
  color: var(--ink-2);
}
.dl-sum p { font-size: 12.5px; color: var(--ink-3); margin-top: 8px; line-height: 1.55; }
.dl-sum p b { color: var(--ink); font-weight: 600; }
.dl-auto { margin-bottom: 12px; }
.dl-auto summary { color: var(--ink-2); font-weight: 500; }
.dl-auto .btn { margin-top: 12px; width: 100%; }

.dl-actions {
  flex: none;
  display: flex;
  gap: 10px;
  padding-top: 16px;
  margin-top: 4px;
  border-top: 1px solid var(--line);
}
/* flex-basis 0 se button column me sikud jata tha — height fix rakhni hai */
.dl-actions .btn { flex: 1 1 auto; height: 52px; min-height: 52px; }
.dl-note { margin-top: 14px; font-size: 12.5px; color: var(--ink-3); text-align: center; }
.dl-note a { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 560px) {
  .dl-modal { place-items: end center; padding: 0; }
  .dl-card {
    width: 100%;
    max-height: 92svh;
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    padding: 22px 18px calc(18px + env(safe-area-inset-bottom));
    animation-name: dlSheetIn;
  }
  @keyframes dlSheetIn { from { transform: translateY(100%); } }

  .dl-actions { flex-direction: column-reverse; gap: 8px; }
  .dl-actions .btn { width: 100%; }
  .dl-head { margin-bottom: 16px; }
  .dl-facts { margin-bottom: 14px; gap: 7px; }
  .dl-facts li { font-size: 14px; }
  .dl-steps { padding: 14px 15px; margin-bottom: 12px; }
  .dl-steps li { font-size: 13.5px; }
  .dl-sum { margin-bottom: 10px; }
  .dl-note { margin-top: 10px; }
}


/* ============================================================
   MOBILE APP SHELL (≤900px)
   Desktop ka chhota version nahi — alag UI. Tabs se screen badalti hai,
   har screen ek baar me poori dikhti hai. Na lamba scroll, na side drag.
   ============================================================ */

.mapp { display: none; }

@media (min-width: 901px) {
  .mapp { display: none !important; }
}

@media (max-width: 900px) {
  /* desktop wala poora page mobile pe band */
  .nav, main#top, .ticker, .footer { display: none !important; }

  /* Scroll kabhi band nahi karna. Screen me content aa jaye to scroll dikhega hi nahi;
     na aaye to user use pahunch sake — ye zaroori hai.                              */
  body { font-size: 16px; }

  .mapp {
    display: flex;
    flex-direction: column;
    min-height: 100svh;
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 560px;
    overflow-x: clip;          /* 393px screen pe page 471px chauda ho raha tha */
    margin-inline: auto;
    padding-bottom: calc(84px + env(safe-area-inset-bottom));
  }
  .mapp * { min-width: 0; }

  /* ---- top bar ---- */
  .mapp-top {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: calc(env(safe-area-inset-top) + 14px) 18px 10px;
  }
  .mapp-top .brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 19px;
    letter-spacing: -0.04em;
    margin-right: auto;
  }
  .mapp-top .icon-btn {
    width: 40px; height: 40px;
    display: grid; place-items: center;
    border-radius: var(--r-pill);
    border: 1px solid var(--line);
    background: var(--surface);
  }
  .mapp-top .icon-btn svg { width: 17px; height: 17px; }

  /* ---- screens ---- */
  .mscreens { flex: 1; position: relative; display: flex; max-width: 100%; overflow-x: clip; }
  .mscreen {
    display: none;
    flex: 1;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    max-width: 100%;
    padding: 8px 18px 14px;
    /* itni jagah ki screen bhari-bhari lage, par content zyada ho to page scroll ho jaye */
    min-height: calc(100svh - 150px);
  }
  .mscreen > * { max-width: 100%; }
  .mscreen.on { display: flex; }

  /* har screen ke bachche ek-ek karke aate hain — ye hi "premium" wala ehsaas deta hai */
  .mscreen.on > * { animation: mIn .55s var(--ease-out) both; }
  .mscreen.on > *:nth-child(1) { animation-delay: .02s; }
  .mscreen.on > *:nth-child(2) { animation-delay: .07s; }
  .mscreen.on > *:nth-child(3) { animation-delay: .12s; }
  .mscreen.on > *:nth-child(4) { animation-delay: .17s; }
  .mscreen.on > *:nth-child(5) { animation-delay: .22s; }
  @keyframes mIn {
    from { opacity: 0; transform: translateY(16px); filter: blur(6px); }
    to   { opacity: 1; transform: none; filter: blur(0); }
  }

  /* tab badalne ki disha ke hisaab se slide */
  .mscreen.on.from-right > * { animation-name: mInRight; }
  .mscreen.on.from-left  > * { animation-name: mInLeft; }
  @keyframes mInRight {
    from { opacity: 0; transform: translateX(26px); filter: blur(5px); }
    to   { opacity: 1; transform: none; filter: blur(0); }
  }
  @keyframes mInLeft {
    from { opacity: 0; transform: translateX(-26px); filter: blur(5px); }
    to   { opacity: 1; transform: none; filter: blur(0); }
  }

  /* Upar se halka sa glow.
     Pehle iska inset -20% tha (dono taraf), matlab ye screen se 40% chauda tha
     aur poore page ko 393 → 472px kha deta tha. Poori website mobile pe side me
     khisak jati thi. Ab apni hi chaudai me rehta hai. */
  .mscreens::before {
    content: "";
    position: absolute;
    inset: -40px 0 auto 0;
    height: 260px;
    background: var(--glow);
    pointer-events: none;
    z-index: 0;
  }
  .mscreen > * { position: relative; z-index: 1; }

  .mscreen h1 {
    font-size: clamp(28px, 8.6vw, 38px);
    letter-spacing: -0.045em;
    line-height: 1.05;
  }
  .mscreen h2 {
    font-size: clamp(24px, 7.4vw, 32px);
    letter-spacing: -0.04em;
    line-height: 1.08;
  }
  .msub { color: var(--ink-2); font-size: 15px; line-height: 1.5; }
  .mfoot { margin-top: auto; font-size: 12.5px; color: var(--ink-3); line-height: 1.5; }

  /* home ka phone */
  .mphone-slot {
    flex: 1 1 auto;
    min-height: 0;
    display: grid;
    place-items: center;
    padding-block: 4px;
    overflow: hidden;
  }
  .mphone-slot .phone-stage { padding: 0; min-height: 0; max-width: 100%; }
  /* Width fix, height aspect-ratio se. Andar ka text isi width ke hisaab se saja hai —
     isse chhota karoge to sab tootne lagta hai. Screen chhoti ho to page scroll ho jayega,
     aur wo theek hai; content ka toot-na theek nahi.                                    */
  /* Chaudai se bandhne pe height 2.1x ho jati thi aur home screen scroll karna
     padta tha. Ab jo bhi chhota ho — chaudai ya bachi hui height — wahi lete hain. */
  .mphone-slot .phone {
    width: min(190px, 52vw, 24svh);
    height: auto;
    margin-inline: auto;
  }
  .mphone-slot .phone-stage::after { opacity: .13; }


  /* phone ke andar sab kuch chhota — 200px chaudi screen me desktop ke size nahi samate */
  .mphone-slot .phone { border-radius: 30px; padding: 7px; }
  .mphone-slot .phone-screen { border-radius: 24px; }
  .mphone-slot .phone-notch { width: 62px; height: 15px; top: 7px; }
  .mphone-slot .p-top { padding: 28px 11px 4px; }
  .mphone-slot .p-top .p-date { font-size: 9px; }
  .mphone-slot .p-top .p-total { font-size: 19px; }
  .mphone-slot .p-top .chip { font-size: 9px; padding: 4px 8px; }
  .mphone-slot .p-status { font-size: 8.5px; padding: 0 11px 4px; height: 13px; }
  .mphone-slot .p-body { padding: 4px 9px 8px; gap: 5px; }
  .mphone-slot .p-row { padding: 6px 8px; border-radius: 10px; gap: 7px; }
  .mphone-slot .p-row .p-emoji { width: 21px; height: 21px; border-radius: 7px; font-size: 10px; }
  .mphone-slot .p-row .p-name { font-size: 9.5px; }
  .mphone-slot .p-row .p-cat { font-size: 7.5px; }
  .mphone-slot .p-row .p-amt { font-size: 10px; }
  .mphone-slot .p-row .p-tag { font-size: 6.5px; padding: 1px 4px; }
  .mphone-slot .p-safe { margin: 0 9px 6px; padding: 6px 9px; border-radius: 11px; }
  .mphone-slot .p-safe .s-k { font-size: 6.5px; letter-spacing: .08em; }
  .mphone-slot .p-safe .s-v { font-size: 12.5px; }
  .mphone-slot .p-safe .s-v small { font-size: 8px; }
  .mphone-slot .p-safe .s-right { font-size: 8px; }
  .mphone-slot .p-mic { margin: 0 9px 9px; padding: 7px 8px; min-height: 42px; border-radius: 13px; gap: 8px; }
  .mphone-slot .p-mic-btn { width: 26px; height: 26px; }
  .mphone-slot .p-mic-btn svg { width: 12px; height: 12px; }
  .mphone-slot .p-transcript, .mphone-slot .p-hint { font-size: 8.5px; line-height: 1.35; min-height: 22px; }
  .mphone-slot .wave { height: 12px; gap: 2px; }
  .mphone-slot .wave i { width: 2px; }
  .mphone-slot .p-empty { padding: 0 14px 16px; gap: 6px; }
  .mphone-slot .p-empty .e-ico { width: 30px; height: 30px; border-radius: 11px; font-size: 14px; }
  .mphone-slot .p-empty .e-t { font-size: 11px; }
  .mphone-slot .p-empty .e-s { font-size: 8px; line-height: 1.4; }
  .mphone-slot .p-empty .e-chip { font-size: 7.5px; padding: 4px 8px; }
  .mphone-slot .p-toast { left: 9px; right: 9px; top: 32px; padding: 7px 9px; border-radius: 12px; }
  .mphone-slot .p-toast .t-icon { width: 20px; height: 20px; font-size: 10px; border-radius: 6px; }
  .mphone-slot .p-toast .t-title { font-size: 9px; }
  .mphone-slot .p-toast .t-sub { font-size: 8px; }

  /* ---- list rows ---- */
  .mlist { display: grid; gap: 10px; }
  .mscreen.on .mlist .mrow { animation: mRow .5s var(--ease-out) both; }
  .mscreen.on .mlist .mrow:nth-child(1) { animation-delay: .10s; }
  .mscreen.on .mlist .mrow:nth-child(2) { animation-delay: .16s; }
  .mscreen.on .mlist .mrow:nth-child(3) { animation-delay: .22s; }
  .mscreen.on .mlist .mrow:nth-child(4) { animation-delay: .28s; }
  .mscreen.on .mlist .mrow:nth-child(5) { animation-delay: .34s; }
  @keyframes mRow {
    from { opacity: 0; transform: translateY(14px) scale(.98); }
    to   { opacity: 1; transform: none; }
  }
  .mrow {
    display: flex;
    gap: 13px;
    align-items: flex-start;
    padding: 14px 15px;
    border-radius: var(--r-md);
    border: 1px solid var(--line);
    background: var(--surface);
    transition: transform .2s var(--ease), border-color .25s var(--ease);
  }
  .mrow:active { transform: scale(.985); }
  .mrow-ico {
    width: 40px; height: 40px; flex: none;
    border-radius: 13px;
    display: grid; place-items: center;
    font-size: 19px;
    background: var(--surface-2);
  }
  .mrow.accent { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
  .mrow.accent .mrow-ico {
    background: var(--accent);
    color: var(--accent-ink);
    font-family: var(--font-display);
    font-weight: 800;
  }
  .mrow b { display: block; font-size: 15.5px; font-weight: 600; letter-spacing: -0.02em; }
  .mrow i {
    display: block;
    font-style: normal;
    font-size: 13px;
    color: var(--ink-3);
    line-height: 1.45;
    margin-top: 2px;
  }
  .mrow strong { color: var(--ink); font-weight: 600; }

  /* ---- plans ---- */
  .mplans { display: grid; gap: 10px; }
  .mplan {
    padding: 16px 17px;
    border-radius: var(--r-md);
    border: 1px solid var(--line);
    background: var(--surface);
  }
  .mplan.pro {
    border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
    background: linear-gradient(150deg, var(--accent-soft), transparent 65%), var(--surface);
  }
  .mplan-top { display: flex; align-items: center; gap: 9px; }
  .mplan-top b { font-family: var(--font-display); font-size: 19px; letter-spacing: -0.03em; }
  .mprice {
    font-family: var(--font-display);
    font-size: 30px;
    letter-spacing: -0.05em;
    margin: 6px 0 10px;
  }
  .mprice small { font-family: var(--font-body); font-size: 13px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
  .mplan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
  .mplan li { font-size: 13.5px; color: var(--ink-2); display: flex; gap: 8px; }
  .mplan li::before { content: "→"; color: var(--accent); }

  /* ---- app screen ---- */
  .mbig-ico {
    width: 62px; height: 62px;
    border-radius: 20px;
    display: grid; place-items: center;
    background: var(--accent);
    color: var(--accent-ink);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 30px;
    box-shadow: 0 14px 34px -14px var(--accent);
    margin-bottom: 4px;
  }
  .mchips { display: flex; flex-wrap: wrap; gap: 7px; }
  .mchips span {
    font-size: 12px;
    color: var(--ink-3);
    padding: 6px 11px;
    border-radius: var(--r-pill);
    border: 1px solid var(--line);
    background: var(--surface);
  }
  .mcenter { justify-content: center; gap: 16px; }
  .mcenter .mtrust { margin-top: 6px; }

  .mtrust {
    margin-top: auto;
    padding: 14px 15px;
    border-radius: var(--r-md);
    background: var(--bg-2);
    border: 1px solid var(--line);
    font-size: 12.5px;
    color: var(--ink-3);
    line-height: 1.55;
  }
  .mtrust b { display: block; color: var(--ink); font-size: 14px; margin-bottom: 4px; letter-spacing: -0.02em; }

  .mscreen .btn { height: 52px; width: 100%; }
  .mscreen .btn + .btn { margin-top: 8px; }


  /* ---- demo card (Likho tab) ---- */
  .mdemo {
    padding: 16px;
    border-radius: var(--r-md);
    background: linear-gradient(150deg, var(--accent-soft), transparent 65%), var(--surface);
    border: 1px solid var(--line);
    display: grid;
    gap: 10px;
  }
  .mdemo-k {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ink-3);
  }
  .mdemo-say { font-size: 14px; line-height: 1.5; font-style: italic; }
  .mdemo-out { display: flex; flex-wrap: wrap; gap: 6px; }
  .mdemo-out span {
    font-size: 12px;
    padding: 6px 10px;
    border-radius: var(--r-pill);
    background: var(--surface-2);
    border: 1px solid var(--line);
    color: var(--ink-2);
  }
  .mdemo-out b { color: var(--ink); font-weight: 600; }
  .mdemo-note { font-size: 11.5px; color: var(--ink-3); line-height: 1.5; }

  /* ---- FAQ tab ---- */
  .mfaq { display: grid; gap: 8px; }
  .mfaq details {
    border-radius: var(--r-md);
    border: 1px solid var(--line);
    background: var(--surface);
    overflow: hidden;
    transition: border-color .25s var(--ease);
  }
  .mfaq details[open] { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
  .mfaq summary {
    list-style: none;
    cursor: pointer;
    padding: 14px 15px;
    font-size: 14.5px;
    font-weight: 600;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .mfaq summary::-webkit-details-marker { display: none; }
  .mfaq summary::after {
    content: "+";
    margin-left: auto;
    font-size: 19px;
    font-weight: 400;
    color: var(--accent);
    line-height: 1;
    transition: transform .3s var(--ease);
  }
  .mfaq details[open] summary::after { transform: rotate(45deg); }
  .mfaq p {
    padding: 0 15px 14px;
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--ink-2);
  }
  .mfaq b { color: var(--ink); font-weight: 600; }
  .mfaq code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: .88em;
    padding: 1px 5px;
    border-radius: 5px;
    background: var(--surface-2);
    border: 1px solid var(--line);
  }

  .mgh {
    margin-top: auto;
    padding-top: 14px;
    font-size: 13px;
    color: var(--ink-3);
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  .mtabs button span { font-size: 15px; line-height: 1; }

  /* ---- bottom tabs ---- */
  /* 6 tabs 393px me: 393 − 20 margin − 10 padding = 363 ÷ 6 = 60px per tab.
     Pehle har button apne text jitni jagah maang raha tha ("Features" 60px me
     nahi aata), isliye poori bar chaudi ho jati thi aur page bahar nikal jata. */
  .mtabs {
    position: fixed;
    z-index: 40;
    left: 50%;
    transform: translateX(-50%);
    width: min(536px, calc(100% - 20px));
    max-width: calc(100vw - 20px);
    bottom: calc(env(safe-area-inset-bottom) + 10px);
    display: flex;
    gap: 1px;
    padding: 5px;
    border-radius: var(--r-pill);
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    backdrop-filter: blur(20px) saturate(1.6);
    -webkit-backdrop-filter: blur(20px) saturate(1.6);
    border: 1px solid var(--line);
    box-shadow: 0 18px 40px -20px rgba(0,0,0,.55);
  }
  .mtabs button {
    flex: 1 1 0;
    min-width: 0;                /* text chhota ho jaye, bar na phaile */
    display: grid;
    justify-items: center;
    gap: 2px;
    padding: 7px 1px;
    border-radius: var(--r-pill);
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--ink-3);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color .25s var(--ease), background-color .25s var(--ease), transform .2s var(--ease);
  }
  .mtabs button:active { transform: scale(.94); }
  .mtabs button span { font-size: 17px; line-height: 1; }
  .mtabs button.on { color: var(--ink); background: var(--surface-2); }
  .mtabs button.on span { animation: tabPop .45s var(--spring) both; }
  @keyframes tabPop {
    from { transform: scale(.7) translateY(3px); }
    to   { transform: none; }
  }
  .mtabs .mtab-cta {
    color: var(--accent-ink);
    background: var(--accent);
    box-shadow: 0 8px 20px -8px var(--accent);
  }
  .mtabs .mtab-cta.on { background: var(--accent); color: var(--accent-ink); }
}

/* chhoti height wale phone */
@media (max-width: 900px) and (max-height: 700px) {
  .mscreen h1 { font-size: 26px; }
  .mscreen h2 { font-size: 22px; }
  .mphone-slot .phone { width: min(160px, 46vw, 21svh); }
  .mrow { padding: 11px 13px; }
  .mrow-ico { width: 34px; height: 34px; font-size: 16px; }
}

@media print {
  :root { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .nav { position: static; }
  .reveal { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
