/* ─────────────────────────────────────────────────────────────────────────
   Astroworldfinance marketing site — shared design system.

   Direction: a modern almanac. Indian panchang print is dense, tabular and
   gold-on-dark; this keeps that density and authority and drops the clip art.

   The PALETTE IS NOT DEFINED HERE. It is projected from src/index.css — the
   workbench's own tokens — by scripts/build-tokens.ts, so the marketing site and
   the product cannot drift apart again. They previously disagreed on every
   surface and carried three different golds between them, which is why moving
   from / to /app felt like changing products.

   This file owns LAYOUT AND COMPONENTS only. Everything below the generated
   block is the site's own: nav, hero, cards, tables, footer.
   ───────────────────────────────────────────────────────────────────────── */

/* ── TOKENS:START — generated by scripts/build-tokens.ts ──────────────── */
/* Do not edit by hand. Colour is projected from src/index.css, which is the
   single source of truth and the only palette audit-contrast.ts measures.
   Regenerate with `npm run build:tokens` (build:site does it for you). */

:root {
  --night: #07090d;
  --bg: #0a0d13;
  --panel: #11151d;
  --raised: #1c2230;
  --line: #2b3444;
  --line-soft: #1f2836;
  --ink: #e6eaf2;
  --ink-2: #9aa6ba;
  --ink-3: #7e899f;
  --gold: #f5a524;
  --gold-2: #fbbf24;
  --violet: #a78bfa;
  --bull: #26d07c;
  --bear: #f24d60;
  --gold-ink: #101521;

  /* Shared with the workbench — this is what makes the two halves feel like one
     product. Changing either means changing src/index.css. */
  --body: 'Inter', 'Nirmala UI', 'Noto Sans Devanagari', 'Noto Sans Gujarati', 'Shruti', 'Mangal', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SF Mono', 'Cascadia Mono', 'JetBrains Mono', Menlo, Consolas, 'Nirmala UI', 'Noto Sans Devanagari', 'Noto Sans Gujarati', 'Shruti', 'Mangal', monospace;
  --indic: 'Nirmala UI', 'Noto Sans Devanagari', 'Noto Sans Gujarati', 'Shruti', 'Mangal';

  /* Site-only. A display serif earns its place on a marketing headline and
     costs legibility in a dense table, so the workbench deliberately has none. */
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;

  --maxw: 1120px;
  --radius: 10px;

  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
  --night: #eef1f6;
  --bg: #f5f7fa;
  --panel: #ffffff;
  --raised: #e4e9f1;
  --line: #c3cddc;
  --line-soft: #e1e7f0;
  --ink: #101521;
  --ink-2: #414b5c;
  --ink-3: #55606f;
  --gold: #935700;
  --gold-2: #8a5a00;
  --violet: #6d28d9;
  --bull: #04724d;
  --bear: #c01230;
    --gold-ink: #e6eaf2;
    color-scheme: light;
  }
}

:root[data-theme="light"] {
  --night: #eef1f6;
  --bg: #f5f7fa;
  --panel: #ffffff;
  --raised: #e4e9f1;
  --line: #c3cddc;
  --line-soft: #e1e7f0;
  --ink: #101521;
  --ink-2: #414b5c;
  --ink-3: #55606f;
  --gold: #935700;
  --gold-2: #8a5a00;
  --violet: #6d28d9;
  --bull: #04724d;
  --bear: #c01230;
  --gold-ink: #e6eaf2;
  color-scheme: light;
}
/* ── TOKENS:END ───────────────────────────────────────────────────────── */

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }
.narrow { max-width: 760px; }

h1, h2, h3, h4 { margin: 0; text-wrap: balance; font-family: var(--display); font-weight: 600; }
h1 { font-size: clamp(2.3rem, 5.6vw, 3.9rem); line-height: 1.05; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); line-height: 1.15; letter-spacing: -0.015em; }
h3 { font-size: 1.12rem; line-height: 1.3; letter-spacing: -0.01em; }
h4 { font-size: 0.98rem; font-family: var(--body); font-weight: 600; }
p { margin: 0; }

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px;
}

.stack { display: flex; flex-direction: column; gap: 20px; }
.stack-sm { display: flex; flex-direction: column; gap: 10px; }

.eyebrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gold);
}
.lede { font-size: 1.12rem; color: var(--ink-2); max-width: 62ch; }
.muted { color: var(--ink-2); }
.dim { color: var(--ink-3); font-size: .875rem; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.dev { font-family: var(--indic); }

/* ── Buttons ───────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 7px; font-weight: 600; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer; line-height: 1.2;
  transition: transform .12s ease, background-color .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-2); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--raised); }
.btn-sm { padding: 7px 14px; font-size: .85rem; }

/* ── Nav ───────────────────────────────────────────────────────────────── */

.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-in { display: flex; align-items: center; gap: 22px; padding-block: 13px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; letter-spacing: -.02em; font-size: 1.06rem; }
.brand .mark {
  width: 10px; height: 10px; border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 20%, transparent); flex: none;
}
.nav-links { display: none; gap: 20px; margin-left: 8px; }
.nav-links a { color: var(--ink-2); font-size: .92rem; font-weight: 500; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }
@media (min-width: 880px) { .nav-links { display: flex; } }

/* ── Sections ──────────────────────────────────────────────────────────── */

section { border-top: 1px solid var(--line-soft); }
section > .wrap { padding-block: clamp(52px, 7vw, 92px); }
section.flush { border-top: 0; }

/* ── Hero ──────────────────────────────────────────────────────────────── */

.hero > .wrap { padding-block: clamp(48px, 7vw, 86px) clamp(44px, 6vw, 72px); }
.hero-grid { display: grid; gap: 40px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 940px) { .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 56px; } }
.hero h1 em { font-style: italic; color: var(--gold); }

.ctarow { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .84rem; color: var(--ink-3); }
.trust span { display: inline-flex; align-items: center; gap: 6px; }
.tick { color: var(--bull); font-weight: 700; }

/* ── Panchang card (hero proof) ────────────────────────────────────────── */

.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; min-width: 0;
}
.card-head {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  padding: 11px 16px; background: var(--night); border-bottom: 1px solid var(--line-soft);
}
.card-body { padding: 16px; }

.chip {
  font-family: var(--mono); font-size: 10px; letter-spacing: .07em; text-transform: uppercase;
  padding: 3px 7px; border-radius: 4px; border: 1px solid var(--line); color: var(--ink-3);
  white-space: nowrap;
}
.chip-live { border-color: color-mix(in srgb, var(--bull) 50%, transparent); color: var(--bull); }
.chip-gold { border-color: color-mix(in srgb, var(--gold) 50%, transparent); color: var(--gold); }

.plist { display: grid; grid-template-columns: 1fr auto; gap: 7px 16px; font-size: .9rem; }
.plist dt { color: var(--ink-3); }
.plist dd { margin: 0; text-align: right; font-family: var(--mono); font-size: .86rem; }

/* ── Free-tool grid ────────────────────────────────────────────────────── */

.tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.tool {
  display: block; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px; min-width: 0;
  transition: border-color .14s ease, transform .14s ease;
}
.tool:hover { border-color: var(--gold); transform: translateY(-2px); }
.tool .k { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
/* Card titles are h2: they are sections under the page h1, and h3 skipped a
   level. Size is pinned here so promoting the level changed nothing visually. */
.tool h2 { margin-block: 7px 5px; font-size: 1.12rem; line-height: 1.3; letter-spacing: -0.01em; }
.tool p { font-size: .88rem; color: var(--ink-2); }
.tool .go { font-size: .84rem; color: var(--gold); font-weight: 600; margin-top: 9px; display: inline-block; }

/* ── Feature rows ──────────────────────────────────────────────────────── */

.feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1px;
  background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; }
.feat { background: var(--bg); padding: 22px; display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.feat .cond { font-family: var(--mono); font-size: .9rem; color: var(--violet); }
.feat p { font-size: .88rem; color: var(--ink-2); }

/* ── Stats ─────────────────────────────────────────────────────────────── */

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 24px; }
.stat .v { font-family: var(--display); font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 600; letter-spacing: -.02em; line-height: 1; }
.stat .l { font-size: .85rem; color: var(--ink-3); margin-top: 6px; }

/* ── Pricing ───────────────────────────────────────────────────────────── */

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px; align-items: start; }
.plan { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.plan.featured { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
/* Plan titles are h2 (they follow the page h1 directly); size pinned to the
   old h3 so the promotion is semantic only. */
.plan h2 { font-size: 1.12rem; line-height: 1.3; letter-spacing: -0.01em; }
.plan .price { font-family: var(--display); font-size: 2.3rem; font-weight: 600; line-height: 1; letter-spacing: -.02em; }
.plan .price small { font-family: var(--body); font-size: .9rem; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.plan ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; font-size: .9rem; color: var(--ink-2); }
.plan li { display: flex; gap: 9px; align-items: flex-start; }
.plan li::before { content: "✓"; color: var(--bull); font-weight: 700; flex: none; }
.plan li.no { color: var(--ink-3); }
.plan li.no::before { content: "—"; color: var(--ink-3); }

/* ── FAQ ───────────────────────────────────────────────────────────────── */

.faq { display: flex; flex-direction: column; }
.faq details { border-bottom: 1px solid var(--line-soft); padding-block: 16px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.02rem; list-style: none; display: flex; gap: 12px; align-items: baseline; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-left: auto; color: var(--gold); font-family: var(--mono); font-size: 1.2rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin-top: 10px; color: var(--ink-2); font-size: .94rem; max-width: 70ch; }

/* ── Notice ────────────────────────────────────────────────────────────── */

.notice {
  border: 1px solid color-mix(in srgb, var(--gold) 38%, transparent);
  background: color-mix(in srgb, var(--gold) 7%, transparent);
  border-radius: var(--radius); padding: 20px 22px;
}
.notice h2 { color: var(--gold); margin-bottom: 8px; font-family: var(--body); font-size: 1rem; }
.notice p { font-size: .88rem; color: var(--ink-2); }
.notice p + p { margin-top: 9px; }

/* ── Footer ────────────────────────────────────────────────────────────── */

footer { border-top: 1px solid var(--line-soft); background: var(--night); }
footer .wrap { padding-block: 44px 34px; }
.fgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 30px; }
/* Footer group labels are h2, not h4: they follow the page's h2 sections, and
   h4 there skipped a level on every page. Size pinned so nothing moved. */
.fcol h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); margin-bottom: 12px; font-family: var(--mono); font-weight: 500; }
.fcol ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.fcol a { color: var(--ink-2); font-size: .88rem; }
.fcol a:hover { color: var(--gold); }
.fbase { margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--line-soft); display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; }

.tablewrap { overflow-x: auto; }

/* ── City grid (tool hubs) ──────────────────────────────────────────────── */

.citygrid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1px;
  background: var(--line-soft); border: 1px solid var(--line-soft);
  border-radius: var(--radius); overflow: hidden;
}
.citygrid a {
  display: block; background: var(--bg); padding: 12px 15px;
  font-size: .92rem; font-weight: 500; min-width: 0;
  transition: background-color .12s ease, color .12s ease;
}
.citygrid a:hover { background: var(--raised); color: var(--gold); }
.citygrid .dim { font-weight: 400; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
