/* Vedic Bhavishya website — the app's own look: white, near-black text, one saffron accent.
   Tokens mirror the app (src/theme/tokens.ts). Fonts are self-hosted (no third-party requests). */

@font-face { font-family: "Bricolage Grotesque"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/bricolage-grotesque-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/bricolage-grotesque-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Mukta"; font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC; src: url("../fonts/mukta-devanagari-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Mukta"; font-weight: 600; font-style: normal; font-display: swap; unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC; src: url("../fonts/mukta-devanagari-600-normal.woff2") format("woff2"); }

:root {
  --bg: #ffffff;
  --surface: #faf8f5;
  --tint: #fff3e6;
  --line: #e9e4dc;
  --card-line: #bfcbd4;
  --accent-line: #f19e4b;

  --ink: #111111;
  --muted: #555a63;
  --faint: #737780;

  --accent: #ff9933;
  --accent-text: #b45309;
  --accent-ink: #1a1206;
  --good: #2f9e64;
  --warn: #d2691e;
  --danger: #e5484d;

  --display: "Bricolage Grotesque", "IBM Plex Sans", system-ui, sans-serif;
  --body: "IBM Plex Sans", "Mukta", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --shadow: 0 8px 24px rgba(17, 17, 17, 0.07);
  --wrap: 1120px;
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-text); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
h4 { font-size: 1rem; letter-spacing: 0; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin-bottom: 0.4em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: var(--r-sm); z-index: 100; }
.skip:focus { left: 8px; }

/* small uppercase mono label, as used across the app */
.label { font-family: var(--mono); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin: 0 0 0.75em; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 600; font-size: 1.15rem; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.brand svg { width: 22px; height: 22px; fill: var(--accent); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: var(--r-sm); font-weight: 500; font-size: 0.95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--surface); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px 12px; font: inherit; font-weight: 500; color: var(--ink); cursor: pointer; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 0.95rem/1 var(--body); padding: 14px 20px; border-radius: var(--r-md); border: 1px solid transparent; background: var(--accent); color: var(--accent-ink); text-decoration: none; cursor: pointer; }
.btn:hover { background: #f58a1a; color: var(--accent-ink); }
.btn.ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn.ghost:hover { background: var(--surface); }
.btn[aria-disabled="true"], .btn:disabled { background: var(--surface); color: var(--faint); border-color: var(--line); cursor: default; }
.btn.danger { background: var(--danger); color: #fff; }
.btn.danger:hover { background: #cf3a3f; color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- hero ---------- */
.hero { padding: 56px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: 0.4em; }
.hero .star { color: var(--accent); }
.hero-note { margin-top: 14px; font-size: 0.875rem; color: var(--faint); }
.phones { position: relative; display: flex; justify-content: center; gap: 18px; align-items: flex-start; }
.phones .phone:nth-child(2) { margin-top: 56px; }

.phone { margin: 0; background: #fff; border: 1px solid var(--card-line); border-radius: 30px; padding: 8px; box-shadow: var(--shadow); width: 100%; max-width: 250px; }
.phone img { border-radius: 22px; width: 100%; }
.phone.sm { max-width: 220px; }

/* ---------- sections ---------- */
.section { padding: 72px 0; }
.section.tint { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { max-width: 40em; margin-bottom: 40px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: #fff; border: 1px solid var(--card-line); border-radius: var(--r-lg); padding: 22px; }
.card.accent { background: var(--tint); border-color: var(--accent-line); }
.card h3 { margin-bottom: 0.35em; }
.card p:last-child { margin-bottom: 0; }
.card .label { margin-bottom: 0.5em; color: var(--accent-text); }

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 40px 0; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature.flip .feature-media { order: -1; }
.feature-media { display: flex; justify-content: center; gap: 16px; align-items: flex-start; }
.feature-media .phone:nth-child(2) { margin-top: 40px; }
.ticks { list-style: none; padding: 0; margin: 16px 0 0; }
.ticks li { position: relative; padding-left: 26px; margin-bottom: 10px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.6em; width: 10px; height: 10px; background: var(--accent); transform: rotate(45deg); border-radius: 2px; }
.tag { display: inline-block; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; border: 1px solid var(--good); color: var(--good); border-radius: 999px; padding: 2px 10px; vertical-align: middle; margin-left: 8px; }

.banners { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.banners img { border-radius: var(--r-lg); border: 1px solid var(--line); }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.steps .card { position: relative; }

/* pricing */
.price-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--card-line); border-radius: var(--r-lg); overflow: hidden; }
.price-table th, .price-table td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
.price-table tr:last-child td { border-bottom: 0; }
.price-table th { font-family: var(--mono); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); background: var(--surface); }
.price-table td.price { font-family: var(--display); font-weight: 600; font-size: 1.15rem; white-space: nowrap; }
.price-table td strong { display: block; font-family: var(--display); font-size: 1.05rem; font-weight: 600; }
.price-table td span { color: var(--muted); font-size: 0.925rem; }
.price-wrap { overflow-x: auto; }

/* faq */
.faq details { border: 1px solid var(--card-line); border-radius: var(--r-md); background: #fff; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--accent-text); font-size: 1.2rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details[open] { border-color: var(--accent-line); }
.faq .answer { padding: 0 20px 16px; color: var(--muted); }
.faq .answer p:last-child { margin-bottom: 0; }

/* cta band */
.cta { background: var(--tint); border: 1px solid var(--accent-line); border-radius: var(--r-xl); padding: 40px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta h2 { margin-bottom: 0.2em; font-size: clamp(1.5rem, 3vw, 2rem); }
.cta p { margin: 0; color: var(--muted); }

/* ---------- documents (privacy / terms) ---------- */
.doc-head { padding: 48px 0 24px; border-bottom: 1px solid var(--line); }
.doc-head .meta { color: var(--faint); font-size: 0.9rem; }
.doc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; padding: 40px 0 80px; align-items: start; }
.toc { position: sticky; top: 88px; font-size: 0.9rem; }
.toc ol { list-style: none; padding: 0; margin: 0; }
.toc li { margin: 0; }
.toc a { display: block; padding: 6px 10px; color: var(--muted); text-decoration: none; border-left: 2px solid var(--line); }
.toc a:hover { color: var(--ink); border-left-color: var(--accent); }
.prose { max-width: 46em; }
.prose h2 { font-size: 1.55rem; margin-top: 2.2em; padding-top: 0.4em; scroll-margin-top: 88px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.1rem; margin-top: 1.6em; letter-spacing: 0; }
.prose ul li, .prose ol li { margin-bottom: 0.5em; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: 0.925rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border: 1px solid var(--line); }
.prose th { background: var(--surface); font-weight: 600; }
.callout { background: var(--tint); border: 1px solid var(--accent-line); border-radius: var(--r-md); padding: 16px 20px; margin: 0 0 1.4em; }
.callout p:last-child { margin-bottom: 0; }
.callout.plain { background: var(--surface); border-color: var(--line); }

/* ---------- forms ---------- */
.form-card { background: #fff; border: 1px solid var(--card-line); border-radius: var(--r-lg); padding: 26px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--mono); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin-bottom: 8px; }
.field input, .field select, .field textarea { width: 100%; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); background: #fff; }
.field .hint { font-size: 0.85rem; color: var(--faint); margin: 6px 0 0; }
.field.check { display: flex; gap: 10px; align-items: flex-start; }
.field.check input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--accent); }
.field.check label { font-family: var(--body); font-size: 0.925rem; letter-spacing: 0; text-transform: none; color: var(--muted); margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { border-radius: var(--r-md); padding: 14px 16px; margin: 0 0 18px; font-size: 0.95rem; }
.notice.ok { background: #eaf6ef; border: 1px solid #b6dfc8; color: #1c5d3b; }
.notice.err { background: #fdeeee; border: 1px solid #f3c1c3; color: #8f2226; }
[hidden] { display: none !important; }

.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 40px; padding: 40px 0 80px; align-items: start; }
.info-list { list-style: none; padding: 0; margin: 0 0 24px; }
.info-list li { padding: 14px 0; border-bottom: 1px solid var(--line); margin: 0; }
.info-list li:first-child { border-top: 1px solid var(--line); }
.info-list .label { margin-bottom: 4px; }
.info-list a { font-weight: 500; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 48px 0 32px; margin-top: 0; font-size: 0.925rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.site-footer h4 { font-family: var(--mono); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.footer-note { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--faint); font-size: 0.85rem; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-note p { margin: 0; max-width: 60em; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero .wrap, .feature, .contact-grid, .doc { grid-template-columns: 1fr; }
  .feature.flip .feature-media { order: 0; }
  .cards, .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .toc { position: static; }
  .toc ol { display: flex; flex-wrap: wrap; gap: 6px; }
  .toc a { border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; }
  .hero { padding-top: 32px; }
  .section { padding: 56px 0; }
  .phones .phone:nth-child(2) { margin-top: 32px; }
}
@media (max-width: 720px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: #fff; border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
  .banners { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .phone, .phone.sm { max-width: 46%; }
  .phones, .feature-media { gap: 12px; }
  .cta { padding: 28px 22px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  .site-header, .site-footer, .toc, .nav-toggle { display: none !important; }
  .doc { display: block; }
  a { color: inherit; }
}

/* small utilities (no inline styles anywhere, so the CSP can forbid them) */
.mt-s { margin-top: 12px; }
.mt-m { margin-top: 14px; }
.pt-0 { padding-top: 0; }
