/* ============================================================================
   Kaironos landing bundle — shared styles
   Brand: editorial astrology. Antique gold (#C9A24A) on deep cosmic indigo.
   Type: system serif display (Georgia stack) + system sans UI. No web fonts,
   no external requests — CSP-safe.
   ============================================================================ */

:root {
  /* Palette — from the app's design system (mobile/src/theme/editorial.tsx) */
  --ink: #0B0E1F;
  --midnight: #11142A;
  --surface: #171A36;
  --surface2: #1E2244;
  --hairline: rgba(232, 224, 200, 0.10);
  --hairline-hi: rgba(232, 224, 200, 0.22);
  --gold: #C9A24A;
  --gold-soft: #E4C77E;
  --gold-deep: #8E6E22;
  --gold-glow: rgba(201, 162, 74, 0.28);
  --ivory: #F3ECD8;
  --ivory-mute: #C9C2AE;
  --ivory-dim: #8A8470;
  --twilight: #9CA8D8;
  --yes: #7FB78A;
  --no: #C97A6A;

  --serif: Georgia, 'Cormorant Garamond', 'Times New Roman', 'Songti SC', serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --maxw: 1080px;
  --readw: 760px;
  --radius: 16px;
  --radius-sm: 10px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(28, 33, 68, 0.9), transparent 60%),
    var(--ink);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Skip link for keyboard users */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  font-weight: 600;
  z-index: 100;
}
.skip-link:focus { left: 0; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: var(--readw); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ivory);
  letter-spacing: 0.2px;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 0 0 0.4em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); margin: 1.8em 0 0.5em; }
h3 { font-size: 1.25rem; margin: 1.6em 0 0.4em; }
p { margin: 0 0 1em; color: var(--ivory-mute); }
a { color: var(--gold-soft); text-decoration: none; }
a:hover { color: var(--gold); text-decoration: underline; }
strong { color: var(--ivory); }
ul, ol { color: var(--ivory-mute); padding-left: 1.3em; }
li { margin: 0.35em 0; }
code, kbd {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  padding: 1px 6px;
  color: var(--gold-soft);
}
hr { border: none; border-top: 1px solid var(--hairline); margin: 2.5em 0; }

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold);
  margin: 0 0 1em;
}
.lede { font-size: 1.2rem; color: var(--ivory); }
.muted { color: var(--ivory-dim); }

/* ---------- Focus visibility ---------- */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible,
details:focus-within > summary {
  outline: 2px solid var(--gold-soft);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11, 14, 31, 0.82);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 66px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ivory); font-family: var(--serif); font-size: 1.35rem; font-weight: 600; letter-spacing: 3px; }
.brand:hover { text-decoration: none; color: var(--ivory); }
.brand svg, .brand img { width: 34px; height: 34px; display: block; }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { color: var(--ivory-mute); font-size: 0.95rem; }
.nav a:hover { color: var(--gold-soft); text-decoration: none; }
.nav-toggle { display: none; }

@media (max-width: 720px) {
  .nav { display: none; }
  .nav.open { display: flex; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--midnight); border-bottom: 1px solid var(--hairline); padding: 8px 24px 16px; }
  .nav.open a { padding: 12px 0; border-bottom: 1px solid var(--hairline); }
  .nav-toggle { display: inline-flex; background: none; border: 1px solid var(--hairline-hi); color: var(--ivory); border-radius: 8px; padding: 8px 12px; font-size: 1rem; cursor: pointer; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: linear-gradient(180deg, var(--gold-soft), var(--gold)); color: #1a1406; box-shadow: 0 6px 24px var(--gold-glow); }
.btn-primary:hover { color: #1a1406; }
.btn-ghost { background: transparent; color: var(--ivory); border-color: var(--hairline-hi); }
.btn-ghost:hover { color: var(--gold-soft); border-color: var(--gold-deep); }
.btn[aria-disabled="true"], .btn.is-disabled { opacity: 0.55; cursor: not-allowed; pointer-events: none; }

/* Store badges */
.store-badges { display: flex; flex-wrap: wrap; gap: 14px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 18px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--hairline-hi);
  color: var(--ivory); min-width: 190px;
}
.store-badge:hover { border-color: var(--gold-deep); text-decoration: none; color: var(--ivory); }
.store-badge .sb-k { font-size: 0.7rem; color: var(--ivory-dim); text-transform: uppercase; letter-spacing: 0.12em; }
.store-badge .sb-v { font-family: var(--serif); font-size: 1.1rem; }
.store-badge svg { width: 26px; height: 26px; flex: none; fill: var(--gold-soft); }
.store-badge.is-soon { opacity: 0.75; }
.store-badge.is-soon .sb-v::after { content: " — coming soon"; font-family: var(--sans); font-size: 0.7rem; color: var(--gold); letter-spacing: normal; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 40px; text-align: center; overflow: hidden; }
.hero-glow {
  position: absolute; top: -140px; left: 50%; transform: translateX(-50%);
  width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, var(--gold-glow), transparent 62%);
  pointer-events: none; z-index: 0;
}
.hero > .wrap { position: relative; z-index: 1; }
.hero-mark { width: 128px; height: 128px; margin: 0 auto 22px; display: block; }
.hero-mark img { width: 100%; height: 100%; border-radius: 28px; box-shadow: 0 18px 60px rgba(0,0,0,0.55), 0 0 0 1px var(--hairline-hi); }
.hero h1 { margin-bottom: 0.3em; }
.hero .lede { max-width: 620px; margin: 0 auto 1.6em; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 10px; }

/* ---------- Sections ---------- */
section { padding: 44px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 36px; }
.section-head h2 { margin-top: 0; }

/* Feature grid */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: linear-gradient(180deg, var(--surface), var(--midnight));
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 26px;
}
.card h3 { margin-top: 0.2em; }
.card .ico {
  width: 44px; height: 44px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(201, 162, 74, 0.12); border: 1px solid var(--gold-deep);
  margin-bottom: 14px;
}
.card .ico svg { width: 24px; height: 24px; stroke: var(--gold-soft); fill: none; }

/* Verdict chips (brand motif: yes/no/wait) */
.verdicts { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 8px 0 0; }
.chip { font-family: var(--serif); font-size: 1.05rem; padding: 8px 20px; border-radius: 999px; border: 1px solid var(--hairline-hi); }
.chip-yes { color: var(--yes); border-color: rgba(127,183,138,0.4); }
.chip-no { color: var(--no); border-color: rgba(201,122,106,0.4); }
.chip-wait { color: var(--gold-soft); border-color: var(--gold-deep); }

/* Screenshot / device */
.showcase { display: flex; gap: 40px; align-items: center; justify-content: center; flex-wrap: wrap; }
.device {
  width: 260px; flex: none; border-radius: 34px; padding: 10px;
  background: linear-gradient(160deg, #23274a, #0d1024);
  border: 1px solid var(--hairline-hi);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.device img { width: 100%; border-radius: 26px; display: block; }
.device.placeholder {
  aspect-ratio: 9 / 19.5;
  display: flex; align-items: center; justify-content: center;
  color: var(--ivory-dim); text-align: center; font-size: 0.85rem;
  background: repeating-linear-gradient(135deg, var(--surface), var(--surface) 12px, var(--midnight) 12px, var(--midnight) 24px);
}
.showcase .copy { max-width: 380px; }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 18px; }
.step { display: flex; gap: 16px; align-items: flex-start; }
.step .n { counter-increment: step; flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-size: 1.1rem; color: var(--gold-soft); background: rgba(201,162,74,0.1); border: 1px solid var(--gold-deep); }
.step .n::before { content: counter(step); }

/* Pricing */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .tiers { grid-template-columns: 1fr; } }
.tier { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 26px; }
.tier.featured { border-color: var(--gold-deep); box-shadow: 0 0 0 1px var(--gold-deep), 0 20px 50px rgba(0,0,0,0.4); }
.tier .price { font-family: var(--serif); font-size: 2rem; color: var(--gold-soft); }
.tier .price small { font-size: 0.9rem; color: var(--ivory-dim); font-family: var(--sans); }
.tier ul { list-style: none; padding: 0; margin: 14px 0 0; }
.tier li { padding-left: 26px; position: relative; }
.tier li::before { content: "✦"; color: var(--gold); position: absolute; left: 0; }

/* Disclaimer band */
.disclaimer {
  background: var(--surface); border: 1px solid var(--hairline);
  border-left: 3px solid var(--gold); border-radius: var(--radius-sm);
  padding: 18px 22px; font-size: 0.95rem; color: var(--ivory-mute);
}

/* ---------- Legal / long-form ---------- */
.doc { padding: 40px 0 80px; }
.doc .narrow { margin: 0 auto; }
.doc-meta { color: var(--ivory-dim); font-size: 0.9rem; margin-bottom: 2em; }
.doc-meta span { display: inline-block; margin-right: 18px; }
.toc {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--radius); padding: 22px 26px; margin: 0 0 2.4em;
}
.toc h2 { font-size: 1.1rem; margin: 0 0 12px; }
.toc ol { columns: 2; column-gap: 32px; margin: 0; padding-left: 1.2em; }
@media (max-width: 640px) { .toc ol { columns: 1; } }
.toc a { color: var(--ivory-mute); }
.doc section[id] { scroll-margin-top: 84px; padding: 0; }
.doc h2 { border-top: 1px solid var(--hairline); padding-top: 1.2em; }
.doc h2:first-of-type { border-top: none; }
.backtop { display: inline-block; margin-top: 0.5em; font-size: 0.82rem; color: var(--ivory-dim); }
.placeholder-note {
  background: rgba(201,162,74,0.08); border: 1px dashed var(--gold-deep);
  border-radius: 8px; padding: 3px 8px; color: var(--gold-soft);
  font-size: 0.85rem; font-family: var(--mono);
}

/* Tables */
table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: 0.95rem; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--hairline); vertical-align: top; }
th { color: var(--ivory); font-family: var(--serif); font-weight: 600; }
td { color: var(--ivory-mute); }
.table-scroll { overflow-x: auto; }
td code { word-break: break-all; }

/* ---------- FAQ / support ---------- */
.search-box { position: relative; margin: 0 0 24px; }
.search-box input {
  width: 100%; padding: 14px 16px 14px 44px; font-size: 1rem;
  background: var(--surface); border: 1px solid var(--hairline-hi);
  border-radius: 12px; color: var(--ivory);
}
.search-box svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; stroke: var(--ivory-dim); fill: none; }
details.faq {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--radius-sm); margin: 0 0 12px; padding: 0 20px;
}
details.faq summary {
  cursor: pointer; padding: 16px 0; font-weight: 600; color: var(--ivory);
  list-style: none; display: flex; justify-content: space-between; gap: 12px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--gold); font-size: 1.3rem; line-height: 1; }
details.faq[open] summary::after { content: "\2013"; }
details.faq .a { padding: 0 0 18px; color: var(--ivory-mute); }
.no-results { color: var(--ivory-dim); font-style: italic; padding: 20px 0; display: none; }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 18px; max-width: 640px; }
.field label { display: block; font-size: 0.9rem; color: var(--ivory); margin-bottom: 6px; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; font-size: 1rem; font-family: var(--sans);
  background: var(--surface); border: 1px solid var(--hairline-hi);
  border-radius: 10px; color: var(--ivory);
}
.field textarea { min-height: 140px; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 0.85rem; color: var(--ivory-dim); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--hairline);
  background: var(--midnight);
  padding: 46px 0 40px;
  margin-top: 40px;
}
.footer-grid { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.footer-brand { max-width: 300px; }
.footer-brand .brand { font-size: 1.15rem; margin-bottom: 10px; }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-cols h4 { font-family: var(--sans); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.72rem; color: var(--ivory-dim); margin: 0 0 12px; }
.footer-cols ul { list-style: none; padding: 0; margin: 0; }
.footer-cols li { margin: 8px 0; }
.footer-cols a { color: var(--ivory-mute); font-size: 0.92rem; }
.footer-cols a:hover { color: var(--gold-soft); text-decoration: none; }
.footer-legal { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--hairline); color: var(--ivory-dim); font-size: 0.85rem; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* ---------- Print (privacy/terms) ---------- */
@media print {
  body { background: #fff; color: #111; font-size: 12pt; }
  .site-header, .site-footer, .nav-toggle, .hero-glow, .backtop, .skip-link, .no-print { display: none !important; }
  a { color: #111; text-decoration: underline; }
  .toc { border: 1px solid #ccc; }
  .doc section[id] { break-inside: avoid; }
  h1, h2, h3 { color: #111; }
  p, li, td, th { color: #222; }
  .wrap { max-width: 100%; padding: 0; }
  .placeholder-note { border: 1px solid #999; color: #444; background: none; }
}
