/* AstroAgni — deep cosmic indigo with saffron fire ("Agni") and gold, like the app's night theme and gold buttons.
   Dark by default, plus black (OLED) and light themes, toggled from the nav. */
:root {
  --bg: #0d0820;
  --surface: #171030;
  --surface-high: #1e163d;
  --border: #2a2050;
  --border-strong: #3b2f6a;
  --text: #f6f2ff;
  --text-soft: #d3cbe8;
  --text-dim: #a197c0;
  --accent: #ff8a4c;   /* text, icons, focus rings */
  --fill: #f5b84a;     /* filled controls: gold, with ink text like the app's buttons */
  --fill-hover: #ffc865;
  --on-fill: #1a1036;
  --brand-1: #ff7a3d;
  --brand-2: #f5b84a;
  --ring-1: #3b2f6a;
  --ring-2: #ff7a3d;
  --ring-3: #f5b84a;
  --red: #f87171;
  --amber: #fbbf24;
  --nav-bg: rgba(13, 8, 32, .8);
  --glow: rgba(255, 122, 61, .14);
  --hero-glow: rgba(255, 122, 61, .2);
  --hero-wash: rgba(58, 31, 110, .85);
  --frame: #4a3f6e;
  --frame-edge: rgba(0, 0, 0, .65);
  --shadow-phone: 0 50px 100px -30px rgba(0, 0, 0, .85);
  --shadow-shot: 0 30px 60px -28px rgba(0, 0, 0, .8);
  --shadow-badge: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 10px 30px -18px rgba(0, 0, 0, .8);
  --shadow-badge-hover: 0 1px 0 rgba(255, 255, 255, .07) inset, 0 20px 40px -18px rgba(0, 0, 0, .95);
  --pill-a: 16%; --badge-a: 18%; --banner-a: 12%;
  --radius: 20px;
  --maxw: 1120px;
  color-scheme: dark;
}
:root[data-theme="black"] {
  --bg: #000000;
  --surface: #110d1c;
  --surface-high: #181325;
  --border: #241d36;
  --border-strong: #342b4c;
  --nav-bg: rgba(0, 0, 0, .8);
  --hero-wash: rgba(30, 18, 54, .8);
  --frame: #342b4c;
}
:root[data-theme="light"] {
  --bg: #faf6ef;
  --surface: #ffffff;
  --surface-high: #ffffff;
  --border: #ebe2d4;
  --border-strong: #d9ccb8;
  --text: #1a1036;
  --text-soft: #3a3055;
  --text-dim: #675d80;
  --accent: #c2410c;
  --fill: #e8660f;
  --fill-hover: #cf5a0b;
  --on-fill: #ffffff;
  --brand-1: #d9480f;
  --brand-2: #b7791f;
  --ring-1: #eadcc6;
  --ring-2: #ff7a3d;
  --ring-3: #f5b84a;
  --red: #dc2626;
  --amber: #b45309;
  --nav-bg: rgba(250, 246, 239, .85);
  --glow: rgba(232, 102, 15, .1);
  --hero-glow: rgba(255, 122, 61, .16);
  --hero-wash: rgba(236, 226, 250, .85);
  --frame: #c9bfd6;
  --frame-edge: rgba(26, 16, 54, .2);
  --shadow-phone: 0 40px 80px -30px rgba(40, 20, 70, .35);
  --shadow-shot: 0 26px 50px -26px rgba(40, 20, 70, .4);
  --shadow-badge: 0 1px 2px rgba(40, 20, 70, .05), 0 10px 30px -18px rgba(40, 20, 70, .25);
  --shadow-badge-hover: 0 1px 2px rgba(40, 20, 70, .07), 0 20px 40px -18px rgba(40, 20, 70, .35);
  --pill-a: 10%; --badge-a: 12%; --banner-a: 6%;
  color-scheme: light;
}
/* The phone mockups show the app's own night palette in every site theme (the app is dark-first). */
.screen {
  --bg: #120a2a; --surface: #1b1238; --surface-high: #241a48; --border: #33285e; --border-strong: #463a7a;
  --text: #f6f2ff; --text-dim: #a89fc8; --accent: #f5b84a; --on-accent: #1a1036;
  --gold: #f5b84a; --fire: #ff7a3d; --bubble-me: #6d4fd8;
}

::selection { background: color-mix(in srgb, var(--accent) 35%, transparent); }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.brand img { height: 28px; width: auto; border-radius: 7px; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 15px; color: var(--text-dim); }
.nav-links a:hover { color: var(--text); }
.nav-links a[aria-current="page"] { color: var(--text); }
.nav-links .nav-login { color: var(--text); font-weight: 600; }
/* ☰ menu: the site's pages. On narrow screens it replaces the header links; on /app/ it's always there. */
.nav .wrap { position: relative; }
.menu-btn { display: none; place-items: center; width: 38px; height: 38px; padding: 0; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; -webkit-appearance: none; appearance: none; -webkit-tap-highlight-color: transparent; transition: border-color .15s ease; }
.menu-btn:hover, .menu-btn[aria-expanded="true"] { border-color: var(--border-strong); background: var(--surface-high); }
.menu-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.menu-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.site-menu { position: absolute; top: calc(100% + 8px); right: 24px; z-index: 70; width: min(300px, calc(100vw - 32px)); max-height: calc(100vh - 88px); overflow: auto; display: grid; gap: 2px; padding: 10px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 18px; box-shadow: 0 24px 48px -20px rgba(0, 0, 0, .55); }
:root[data-theme="light"] .site-menu { box-shadow: 0 24px 48px -24px rgba(40, 20, 70, .35); }
.site-menu[hidden] { display: none; }
.nav-links .site-menu a { display: block; padding: 10px 12px; border-radius: 10px; color: var(--text); font-size: 15px; font-weight: 600; }
.nav-links .site-menu a:not(.btn):hover { background: var(--surface-high); }
.nav-links .site-menu a[aria-current="page"] { color: var(--accent); }
.site-menu-sub { display: grid; margin: 0 0 4px 14px; padding-left: 10px; border-left: 2px solid var(--border); }
.nav-links .site-menu .site-menu-sub a { padding: 7px 10px; color: var(--text-soft); font-size: 14px; font-weight: 500; }
.site-menu hr { border: 0; border-top: 1px solid var(--border); margin: 6px 0; }
.nav-links .site-menu .btn-block { display: flex; justify-content: center; margin-top: 6px; color: var(--on-fill); }
.nav-links .site-menu .btn-block:hover { background: var(--fill-hover); color: var(--on-fill); }
/* Features dropdown: a real link to /features/ that opens a panel of crawlable feature links on hover or focus. */
.nav-menu { position: relative; }
.nav-menu-btn::after { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 0 3px 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
.nav-menu-panel {
  position: absolute; top: 100%; left: -16px; min-width: 230px; margin-top: 10px; padding: 8px;
  display: grid; gap: 2px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 14px;
  box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .5);
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.nav-menu-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav-menu:hover .nav-menu-panel, .nav-menu:focus-within .nav-menu-panel { opacity: 1; visibility: visible; transform: none; }
.nav-menu-panel a { padding: 9px 12px; border-radius: 9px; font-size: 14.5px; }
.nav-menu-panel a:hover { background: var(--surface-high); color: var(--text); }
.nav-menu-panel a[aria-current="page"] { color: var(--accent); }
.nav-menu-panel .all { border-top: 1px solid var(--border); border-radius: 0 0 9px 9px; margin-top: 4px; color: var(--accent); }
.theme-toggle {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; padding: 0;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.theme-toggle svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* The icon shows the theme in use (moon: dark, half-filled circle: black, sun: light); a click moves to the next. */
.theme-toggle .sun, .theme-toggle .black { display: none; }
.theme-toggle .black path { fill: currentColor; stroke: none; }
:root[data-theme="black"] .theme-toggle .moon, :root[data-theme="light"] .theme-toggle .moon { display: none; }
:root[data-theme="black"] .theme-toggle .black { display: block; }
:root[data-theme="light"] .theme-toggle .sun { display: block; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  font-weight: 600; font-size: 15px; border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--fill); color: var(--on-fill); }
.btn-primary:hover { background: var(--fill-hover); }
.btn-ghost { border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--text-dim); }
.btn-sm { padding: 8px 16px; font-size: 14px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 88px 0 72px; }
/* a cool spotlight behind the phone, over a petrol wash from the top-left */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 38% 52% at 74% 54%, var(--hero-glow), transparent 70%),
    radial-gradient(ellipse 70% 80% at 0% 0%, var(--hero-wash), transparent 70%);
}
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text); padding: 6px 14px; border-radius: 999px; margin-bottom: 24px;
  border: 1px solid transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(90deg, var(--ring-1), var(--ring-2) 30%, var(--ring-3) 46%, var(--ring-2) 62%, var(--ring-1)) border-box;
}
h1 { font-size: clamp(38px, 5.6vw, 64px); line-height: 1.06; letter-spacing: -0.035em; font-weight: 800; }
h1 span { color: var(--accent); background: linear-gradient(100deg, var(--brand-1), var(--brand-2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.lede { margin-top: 24px; font-size: 20px; color: var(--text-dim); max-width: 520px; }
.hero-stores { margin-top: 36px; }

/* ---------- Store badges ---------- */
.stores { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; }
.stores-center { justify-content: center; margin-top: 0; }
.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  min-width: 184px; padding: 10px 22px 10px 16px;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 14px;
  color: var(--text); text-align: left; line-height: 1.15; white-space: nowrap;
  box-shadow: var(--shadow-badge);
  transition: transform .15s ease, border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.store-badge:hover {
  transform: translateY(-2px); background: var(--surface-high); border-color: var(--accent);
  box-shadow: var(--shadow-badge-hover);
}
.store-badge:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.store-badge svg { width: 28px; height: 28px; fill: currentColor; flex-shrink: 0; }
.store-badge small { display: block; font-size: 11px; font-weight: 500; letter-spacing: .02em; color: var(--text-dim); }
.store-badge b { display: block; font-size: 19px; font-weight: 600; letter-spacing: -0.015em; margin-top: 1px; }
.cta-link {
  display: inline-block; margin-top: 26px; font-size: 15px; color: var(--text-dim);
  text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--border-strong);
  transition: color .15s ease, text-decoration-color .15s ease;
}
.cta-link:hover { color: var(--accent); text-decoration-color: var(--accent); }

/* ---------- App tour (tabs + phone) ---------- */
.showcase { display: grid; justify-items: center; gap: 20px; }
.tabs {
  display: inline-flex; gap: 4px; padding: 4px; max-width: 100%;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
}
.tab {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 15px; border-radius: 999px;
  border: 0; background: transparent; color: var(--text-dim); font: inherit; font-size: 14px; font-weight: 600;
  line-height: 1.2; cursor: pointer; white-space: nowrap;
  transition: background .2s ease, color .2s ease;
}
.tab svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tab:hover { color: var(--text); }
.tab.is-active { background: var(--fill); color: var(--on-fill); }
.tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pane { animation: pane-in .4s ease both; }
.pane[hidden] { display: none; }
@keyframes pane-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- iPhone mockup ---------- */
.phone {
  position: relative; width: 316px; margin: 0 auto; padding: 11px; border-radius: 53px;
  background: #0b0b0d; /* black bezel; the metal frame is the ring outside it */
  box-shadow: 0 0 0 2.5px var(--frame), 0 0 0 3.5px var(--frame-edge), var(--shadow-phone);
}
.phone::before, .phone::after { content: ""; position: absolute; width: 3px; background: var(--frame); border-radius: 2px; }
.phone::before { left: -6.5px; top: 140px; height: 44px; box-shadow: 0 58px 0 0 var(--frame); }
.phone::after { right: -6.5px; top: 172px; height: 76px; }
.screen { position: relative; overflow: hidden; border-radius: 42px; background: var(--bg); }

/* ---------- Sections ---------- */
section { padding: 96px 0; }
.sec-head { max-width: 640px; margin-bottom: 56px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.12; letter-spacing: -0.03em; font-weight: 800; }
.sec-head p { margin-top: 16px; color: var(--text-dim); font-size: 19px; }
.divider { border-top: 1px solid var(--border); }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; transition: border-color .2s ease, transform .2s ease; }
.card:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); transform: translateY(-2px); }
.card .art { display: block; width: 168px; height: 126px; margin: -10px 0 14px -31px; }
.art-light { display: none !important; }
:root[data-theme="light"] .art-dark { display: none !important; }
:root[data-theme="light"] .art-light { display: block !important; }
.card h3 { font-size: 19px; letter-spacing: -0.01em; margin-bottom: 8px; }
.card p { color: var(--text-dim); font-size: 15.5px; }
.sec-head .sec-art { display: block; width: 168px; height: 126px; margin: -12px auto 8px; }

/* small features: art beside the text, two to a row */
.grid.minis { grid-template-columns: repeat(2, 1fr); }
.minis .card { display: flex; align-items: center; gap: 20px; padding: 22px 26px 22px 6px; }
.minis .card .art { flex: 0 0 auto; width: 128px; height: 96px; margin: 0; }
.minis .card h3 { font-size: 18px; margin-bottom: 6px; }
.minis .card p { font-size: 15px; }

/* ---------- Two phones side by side ---------- */
.ai-split { grid-template-columns: 1fr 1fr; }
.ai-phones { display: flex; gap: 24px; justify-content: center; }
.ai-phones .shot { width: 248px; }
.ai-phones .shot:last-child { margin-top: 56px; }
.ai-more a { color: var(--accent); font-weight: 600; }
@media (max-width: 600px) {
  .ai-phones { gap: 14px; }
  .ai-phones .shot { width: 50%; }
  .ai-phones .shot:last-child { margin-top: 32px; }
}

/* ---------- Screen gallery ---------- */
.gallery-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 44px; }
.gallery-head .sec-head { margin-bottom: 0; }
.shot-tabs { position: relative; display: flex; flex-wrap: wrap; gap: 8px; margin: -16px 0 32px; }
.shot-tabs[hidden] { display: none; }
.shot-tab { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-dim); font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; transition: border-color .15s ease, color .15s ease, background .15s ease; }
.shot-tab:hover { color: var(--text); border-color: var(--border-strong); }
.shot-tab[aria-selected="true"] { background: var(--fill); border-color: var(--fill); color: var(--on-fill); }
.shot-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.shot[hidden] { display: none; }
.gallery-nav { display: flex; gap: 10px; flex-shrink: 0; }
.gallery-nav[hidden] { display: none; }
.gallery-nav button {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
  transition: border-color .15s ease, color .15s ease, opacity .15s ease;
}
.gallery-nav button:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.gallery-nav button:disabled { opacity: .35; cursor: default; }
.gallery-nav button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.gallery-nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* bleeds to the window edges; the first phone lines up with the page column */
.gallery {
  --gutter: max(24px, calc((100% - var(--maxw)) / 2 + 24px));
  display: flex; gap: 28px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  padding: 6px var(--gutter) 10px; scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 16px; }
.shot { flex: 0 0 auto; width: 248px; margin: 0; scroll-snap-align: start; container-type: inline-size; }
/* Bezel, corners and outline scale with the phone's width (designed at 248px: 7px bezel, 40px corners), so small phones keep the same shape. */
.shot-frame { padding: 2.82cqw; border-radius: 16.13cqw; background: #0b0b0d; box-shadow: 0 0 0 max(1px, .81cqw) var(--frame), 0 0 0 max(1.5px, 1.21cqw) var(--frame-edge), var(--shadow-shot); }
/* the renders are 393 x 852 pt screens; the status bar and home indicator are sized in the same points */
.shot-screen { position: relative; overflow: hidden; aspect-ratio: 393 / 852; border-radius: 13.31cqw; background: #120a2a; container-type: inline-size; }
.shot-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shot-chrome {
  position: absolute; inset: 0; display: flex; align-items: flex-start; justify-content: space-between;
  padding: 0 7.12cqw 0 12.21cqw; color: #f3f6f7; font-size: 4.33cqw; font-weight: 600; letter-spacing: -0.02em; pointer-events: none;
}
:root[data-theme="light"] .shot-chrome { color: #0a1a1c; }
.shot-chrome > span { height: 15.01cqw; display: inline-flex; align-items: center; }
.shot-chrome .sb-icons { gap: 1.53cqw; }
.shot-chrome svg { width: 4.58cqw; height: 4.58cqw; fill: currentColor; }
.shot-chrome .sb-batt { width: 6.87cqw; }
.shot-chrome::before { content: ""; position: absolute; top: 2.8cqw; left: 50%; transform: translateX(-50%); width: 32.06cqw; height: 9.41cqw; border-radius: 99px; background: #000; }
.shot-chrome::after { content: ""; position: absolute; bottom: 2.04cqw; left: 50%; transform: translateX(-50%); width: 34.1cqw; height: 1.27cqw; border-radius: 99px; background: currentColor; }
.shot figcaption { margin-top: 20px; padding: 0 6px; }
.shot figcaption b { display: block; font-size: 16.5px; letter-spacing: -0.01em; }
.shot figcaption span { display: block; margin-top: 4px; font-size: 14.5px; line-height: 1.45; color: var(--text-dim); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { padding: 28px; border-top: 2px solid color-mix(in srgb, var(--accent) 55%, var(--border)); }
.step::before { counter-increment: step; content: "0" counter(step); display: block; font-size: 14px; font-weight: 700; color: var(--accent); letter-spacing: .08em; margin-bottom: 16px; }
.step h3 { font-size: 21px; margin-bottom: 8px; letter-spacing: -0.01em; }
.step p { color: var(--text-dim); font-size: 16px; }

.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: center; }
.split .copy h2 { margin-bottom: 18px; }
.split .copy p { color: var(--text-dim); font-size: 19px; }
.ticks { list-style: none; margin-top: 28px; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 32px; font-size: 16.5px; }
.ticks li::before, .ticks li::after { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; }
.ticks li::before { border-radius: 50%; background: var(--fill); }
.ticks li::after { background: var(--on-fill); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat; }

.cta-box { text-align: center; background: var(--surface); border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--border)); border-radius: 32px; padding: 72px 24px; position: relative; overflow: hidden; }
.cta-box::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 50% 70% at 50% 0%, var(--glow), transparent 70%); pointer-events: none; }
.cta-box > * { position: relative; }
.cta-box h2 { margin-bottom: 14px; }
.cta-box p { color: var(--text-dim); font-size: 19px; margin: 0 auto 32px; max-width: 580px; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--border); padding: 64px 0 40px; color: var(--text-dim); font-size: 14.5px; }
.foot-grid { display: grid; grid-template-columns: 1.7fr repeat(4, 1fr); gap: 40px; }
.foot-brand .brand { color: var(--text); }
.foot-brand p { margin-top: 16px; max-width: 340px; font-size: 15px; }
.foot-stores { margin-top: 22px; gap: 10px; }
.foot-stores .store-badge { min-width: 0; gap: 9px; padding: 7px 14px 7px 12px; border-radius: 12px; }
.foot-stores .store-badge svg { width: 20px; height: 20px; }
.foot-stores .store-badge small { font-size: 9.5px; }
.foot-stores .store-badge b { font-size: 14.5px; }
.foot-col { display: grid; gap: 12px; align-content: start; }
.foot-col h4 { font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text); margin-bottom: 4px; }
.foot-col a:hover { color: var(--accent); }
.foot-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: 13px; }

/* ---------- Legal / text pages ---------- */
.doc { padding: 72px 0 96px; }
.doc .wrap { max-width: var(--maxw); }
/* Long-form pages: one text column lined up with the header, with 'On this page' beside it. */
.doc-grid { --toc-w: 220px; display: grid; grid-template-columns: minmax(0, 1fr) var(--toc-w); gap: 72px; align-items: start; }
.doc-main { min-width: 0; }
.doc-toc { position: sticky; top: 96px; }
/* Pages with no sections to list (FAQ, Support) use the full width. */
.doc-grid:has(> .doc-toc:empty) { grid-template-columns: minmax(0, 1fr); }
.doc-toc:empty { display: none; }
.doc-toc p { margin: 4px 0 12px; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); }
.doc .doc-toc a { display: block; padding: 7px 0 7px 14px; border-left: 2px solid var(--border); color: var(--text-dim); font-size: 14.5px; line-height: 1.4; text-decoration: none; }
.doc .doc-toc a:hover { color: var(--text); border-left-color: var(--accent); }
.doc h2[id] { scroll-margin-top: 88px; }
.doc h1 { font-size: clamp(34px, 5vw, 48px); margin-bottom: 8px; }
.doc .meta { color: var(--text-dim); font-size: 15px; margin-bottom: 40px; }
.doc h2 { font-size: 24px; margin: 44px 0 12px; letter-spacing: -0.015em; }
.doc p, .doc li { color: var(--text-soft); margin-bottom: 14px; }
.doc ul { padding-left: 22px; margin-bottom: 14px; }
.doc a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border-strong); }
.doc a:hover { text-decoration-color: var(--accent); }
.doc h3 { font-size: 19px; margin: 28px 0 8px; letter-spacing: -0.01em; }
.doc ol { padding-left: 22px; margin-bottom: 14px; }
.guide-meta { margin-top: 14px; font-size: 14.5px; color: var(--text-dim); }
.guide-cta { display: flex; gap: 20px; align-items: center; margin: 48px 0 28px; padding: 24px 24px 24px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.guide-cta .feat-art { flex-shrink: 0; margin: 0; }
.guide-cta h2 { margin: 0 0 6px; font-size: 20px; }
.guide-cta p { margin-bottom: 8px; }
.guide-card .eyebrow { margin-bottom: 14px; }
@media (max-width: 600px) { .guide-cta { flex-direction: column; align-items: flex-start; padding: 20px; } }
.doc .note { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px 20px; color: var(--text-dim); font-size: 15px; }

/* ---------- Feature pages ---------- */
.feat-hero { padding: 64px 0 8px; }
.feat-hero .wrap { max-width: var(--maxw); }
.feat-hero .lede { max-width: 68ch; }
/* The screens run the full width, from the logo to the end of the menu. */
.doc.feat-shots { padding: 56px 0 0; }
.doc.feat-shots h2 { margin-top: 0; }
.feat-hero h1 { font-size: clamp(32px, 5vw, 48px); letter-spacing: -0.025em; line-height: 1.1; }
.feat-hero .lede { margin-top: 18px; color: var(--text-soft); font-size: 19px; }
.feat-art { display: block; width: 168px; height: 126px; margin: 8px 0 12px -14px; }
.crumbs { font-size: 14px; color: var(--text-dim); margin-bottom: 20px; }
.crumbs a:hover { color: var(--text); }
.feat-body { padding-top: 24px; }
.feat-cta { padding-top: 0; }
.card.rel { display: block; }
.faq-item { border-bottom: 1px solid var(--border); padding: 16px 0; }
.faq-item summary { cursor: pointer; font-weight: 600; color: var(--text); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; background: var(--accent);
  -webkit-mask: var(--faq-icon) center / contain no-repeat; mask: var(--faq-icon) center / contain no-repeat;
  --faq-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}
.faq-item[open] summary::after { --faq-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m18 15-6-6-6 6'/%3E%3C/svg%3E"); }
.faq-item p { margin: 10px 0 0; }

/* App screens on feature pages and guides */
.page-shots { display: flex; gap: 24px; margin: 12px 0 8px; padding-bottom: 12px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
.page-shots .shot { flex: none; width: 220px; scroll-snap-align: start; }
.page-shots .shot figcaption b { font-size: 15.5px; }
.page-shots .shot figcaption span { font-size: 14px; }
.guide-cta .shot { flex-shrink: 0; width: 132px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { padding: 56px 0 48px; }
  .hero::before {
    background:
      radial-gradient(ellipse 80% 32% at 50% 76%, var(--hero-glow), transparent 70%),
      radial-gradient(ellipse 100% 45% at 0% 0%, var(--hero-wash), transparent 70%);
  }
  .hero .wrap, .split { grid-template-columns: 1fr; gap: 48px; }
  .grid, .steps { grid-template-columns: 1fr 1fr; }
  .grid.minis { grid-template-columns: 1fr; }
  section { padding: 72px 0; }
  .nav-links { gap: 12px; }
  .nav-links > a:not(.btn) { display: none; }
  .nav-links > .nav-menu, .nav-links > .nav-login { display: none; }
  .menu-btn { display: grid; }
  .nav-menu-panel { display: none; }
  .nav-menu-btn::after { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .grid, .steps { grid-template-columns: 1fr; }
  .minis .card { display: block; padding: 28px; }
  .minis .card .art { width: 136px; height: 102px; margin: -8px 0 10px -25px; }
  .gallery-nav { display: none; }
  .gallery-head { margin-bottom: 32px; }
  .gallery { gap: 20px; }
  .shot { width: min(232px, 68vw); }
  .lede, .sec-head p, .split .copy p, .cta-box p { font-size: 17px; }
  .cta-box { padding: 56px 20px; border-radius: 24px; }
  .tab { padding: 8px 12px; font-size: 13.5px; }
  .tab svg { display: none; }
  .store-badge { flex: 1 1 auto; min-width: 0; justify-content: center; gap: 10px; padding: 9px 12px; }
  .store-badge svg { width: 24px; height: 24px; }
  .store-badge b { font-size: 16.5px; }
  .foot-grid { grid-template-columns: 1fr; gap: 32px; }
  .foot-stores .store-badge { flex: 0 1 auto; }
  .foot-bottom { flex-direction: column; }
}
@media (max-width: 1000px) {
  .doc-grid { grid-template-columns: 1fr; }
  .doc-toc { display: none; }
}
@media (max-width: 600px) {
  /* One row of tabs that swipes sideways, running to the screen edges, instead of three rows of pills. */
  .shot-tabs { flex-wrap: nowrap; overflow-x: auto; margin: -8px -24px 24px; padding: 2px 24px; scroll-padding: 0 24px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .shot-tabs::-webkit-scrollbar { display: none; }
  .shot-tab { flex: 0 0 auto; padding: 7px 14px; font-size: 14px; white-space: nowrap; }
}
@media (max-width: 600px) {
  /* Screens swipe sideways, running to the screen edges. */
  .page-shots { overflow-x: auto; margin: 12px -24px 8px; padding: 0 24px 8px; gap: 16px; scroll-snap-type: x mandatory; scroll-padding: 0 24px; scrollbar-width: none; }
  .page-shots::-webkit-scrollbar { display: none; }
  .page-shots .shot { width: min(200px, 60vw); scroll-snap-align: start; }
  .guide-cta .shot { width: 120px; }
}
@media (max-width: 480px) {
  /* No room beside the logo, theme toggle and button; the footer lists the feature pages. */
  .nav .btn-sm { white-space: nowrap; }
  .nav-links > .btn-primary { display: none; } /* the ☰ menu has Get the app */
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* ---------- AstroAgni phone mockups (HTML/CSS copies of the app's chat and kundli screens) ---------- */
.screen { aspect-ratio: 9 / 19.5; font-size: 12.5px; line-height: 1.4; color: var(--text); background: radial-gradient(120% 60% at 50% 0%, #2a1a5c, var(--bg) 60%); }
.m-status { display: flex; justify-content: space-between; padding: 12px 22px 4px; font-size: 11px; font-weight: 600; color: var(--text-dim); }
.m-head { display: flex; align-items: center; gap: 10px; padding: 8px 14px 10px; border-bottom: 1px solid var(--border); }
.m-ava { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; font-weight: 700; color: var(--on-accent); background: linear-gradient(135deg, var(--fire), var(--gold)); }
.m-head b { display: block; font-size: 13px; white-space: nowrap; }
.m-head small { display: block; font-size: 10.5px; color: #4ade80; }
.m-ai { margin-left: 4px; padding: 1px 6px; border-radius: 6px; font-size: 9.5px; font-weight: 700; color: var(--gold); background: color-mix(in srgb, var(--gold) 16%, transparent); vertical-align: 1px; }
.m-coin { margin-left: auto; white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; background: var(--surface-high); font-size: 11px; font-weight: 600; }
.m-coin i { width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ffe08a, var(--gold) 60%, #c98a1c); }
.m-body { display: flex; flex-direction: column; gap: 8px; padding: 12px; }
.m-day { align-self: center; padding: 3px 10px; border-radius: 8px; font-size: 10px; color: var(--text-dim); background: var(--surface); }
.m-msg { max-width: 84%; padding: 8px 11px; border-radius: 14px; background: var(--surface-high); }
.m-msg.me { align-self: flex-end; background: var(--bubble-me); border-bottom-right-radius: 4px; }
.m-msg.ai { border-bottom-left-radius: 4px; }
.m-msg time { display: block; margin-top: 3px; text-align: right; font-size: 9.5px; color: var(--text-dim); }
.m-msg.me time { color: #d9d0ff; }
.m-input { position: absolute; left: 10px; right: 10px; bottom: 14px; display: flex; gap: 8px; align-items: center; }
.m-input span { flex: 1; padding: 9px 14px; border-radius: 999px; background: var(--surface); color: var(--text-dim); font-size: 11.5px; border: 1px solid var(--border); }
.m-input i { width: 34px; height: 34px; border-radius: 50%; background: var(--gold); }
.m-title { padding: 6px 16px 2px; font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.m-sub { padding: 0 16px 10px; font-size: 10.5px; color: var(--text-dim); }
.m-card { margin: 0 12px 10px; padding: 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.m-chart { display: grid; grid-template-columns: 112px 1fr; gap: 12px; align-items: center; }
.m-chart svg { width: 112px; height: 112px; stroke: #8f7ad6; stroke-width: 1; fill: none; }
.m-chart svg text { fill: var(--text); stroke: none; font-size: 8px; font-weight: 600; }
.m-kv small { display: block; font-size: 9.5px; color: var(--text-dim); }
.m-kv b { display: block; font-size: 12px; margin-bottom: 5px; }
.m-row { display: flex; align-items: center; gap: 10px; }
.m-row + .m-row { margin-top: 10px; }
.m-dot { width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; background: linear-gradient(135deg, var(--fire), var(--gold)); }
.m-row b { display: block; font-size: 12px; }
.m-row small { display: block; font-size: 10px; color: var(--text-dim); }
.m-pill { display: inline-block; margin-top: 5px; padding: 3px 9px; border-radius: 999px; font-size: 10px; font-weight: 600; color: var(--gold); border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); }
.hero-phones { display: flex; justify-content: center; gap: 22px; }
.hero-phones .phone { width: 270px; border-radius: 46px; padding: 10px; }
.hero-phones .phone .screen { border-radius: 37px; }
.hero-phones .phone:last-child { margin-top: 64px; }
@media (max-width: 1080px) { .hero-phones .phone:last-child { display: none; } }
@media (max-width: 370px) { .hero-phones .phone { width: 250px; } }
.trust-grid .card h3 { display: flex; align-items: center; gap: 10px; }
.ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px; color: var(--on-fill); background: linear-gradient(135deg, var(--brand-1), var(--brand-2)); }
.ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feat-ico { width: 64px; height: 64px; border-radius: 18px; margin: 8px 0 18px; }
.feat-ico svg { width: 32px; height: 32px; }
.langs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.langs span { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); font-size: 14.5px; }
.shot-screen img { object-position: top; }
/* Hero: real app screenshots in the same frame as the screens gallery. */
.hero-shots .shot { width: 270px; }
.hero-shots .shot:last-child { margin-top: 64px; }
@media (max-width: 1080px) { .hero-shots .shot:last-child { display: none; } }
@media (max-width: 370px) { .hero-shots .shot { width: 250px; } }
