:root {
  color-scheme: dark;
  --bg: #060512;
  --bg-elevated: #0D0A24;
  --surface: rgba(255, 255, 255, 0.055);
  --surface-strong: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --violet: #7C5CFF;
  --violet-muted: rgba(124, 92, 255, 0.28);
  --teal: #2DD4BF;
  --gold: #E8B95B;
  --text: #F5F1FF;
  --text-dim: #A79FC7;
  --danger: #FF6B8A;
  --on-violet: #060512;
  --aurora: linear-gradient(90deg, #7C5CFF 0%, #2DD4BF 50%, #E8B95B 100%);
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Manrope', -apple-system, 'Segoe UI', Roboto, sans-serif;
  --r-card: 24px;
  --r-control: 16px;
  --r-chip: 12px;
  --r-pill: 999px;
  --s-xs: 4px; --s-sm: 8px; --s-sm2: 12px; --s-md: 16px; --s-md2: 20px;
  --s-lg: 24px; --s-xl: 32px; --s-xxl: 48px;
  --t-micro: 150ms; --t-base: 220ms; --t-sheet: 280ms;
  --ease: cubic-bezier(0.33, 1, 0.68, 1);
}
/* InnerSky site — authored stylesheet body. Colors/spacing come only from the
   generated :root tokens prepended by css.mjs. Brand rules: no drop shadows
   anywhere (depth = glass + hairline borders); gold is for numbers, premium and
   the mark; violet is for actions. */

/* ── Fonts (self-hosted) ─────────────────────────────────────────────────── */
@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/Fraunces-600.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/Manrope-400.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/Manrope-600.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}

/* ── Reset & base ────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--text); text-decoration: none; }
p a, li a, .prose a { color: var(--gold); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--violet-muted); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 var(--s-md);
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 6vw, 3.4rem); letter-spacing: -0.5px; }
h2 { font-size: 1.75rem; letter-spacing: -0.5px; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 var(--s-md); }
p:last-child { margin-bottom: 0; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--bg-elevated); color: var(--text);
  padding: var(--s-sm2) var(--s-md); border-radius: var(--r-chip);
}
.skip-link:focus { left: var(--s-md); top: var(--s-md); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

/* ── Starfield (site-wide sky) ───────────────────────────────────────────── */
.starfield {
  position: fixed; inset: 0; z-index: -1;
  width: 100%; height: 100%;
  pointer-events: none;
}
.sf-far  { animation: sf-drift-a 200s var(--ease) infinite alternate; }
.sf-mid  { animation: sf-drift-b 140s var(--ease) infinite alternate; }
.sf-near { animation: sf-drift-a 90s  var(--ease) infinite alternate; }
.sf-twinkle { animation: sf-twinkle 7s ease-in-out infinite alternate; }
@keyframes sf-drift-a { from { transform: translate(-0.4%, -0.25%); } to { transform: translate(0.4%, 0.25%); } }
@keyframes sf-drift-b { from { transform: translate(0.35%, -0.2%); } to { transform: translate(-0.35%, 0.2%); } }
@keyframes sf-twinkle { from { opacity: 0.55; } to { opacity: 1; } }

/* ── Layout ──────────────────────────────────────────────────────────────── */
.container { max-width: 1120px; margin: 0 auto; padding: 0 var(--s-md2); }
.section { padding: var(--s-xxl) 0; }
.section-head { max-width: 640px; margin-bottom: var(--s-xl); }
.section-lead { color: var(--text-dim); }

.eyebrow {
  display: block;
  font-size: 12px; font-weight: 600; line-height: 16px;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--s-sm2);
}

/* ── Header / footer ─────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(6, 5, 18, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex; align-items: center; gap: var(--s-md2);
  min-height: 64px;
}
.brand {
  display: inline-flex; align-items: center; gap: var(--s-sm);
  font-family: var(--font-display); font-size: 20px; color: var(--text);
}
.brand svg { width: 22px; height: 22px; flex: none; }
.site-nav { display: flex; align-items: center; gap: var(--s-md2); margin-left: auto; }
.site-nav a { color: var(--text-dim); font-weight: 600; font-size: 14px; transition: color var(--t-micro) var(--ease); }
.site-nav a:hover { color: var(--text); }
.site-nav .lang { color: var(--text-dim); font-weight: 600; font-size: 13px; border: 1px solid var(--border); border-radius: var(--r-pill); padding: 6px 12px; }
.site-nav .lang:hover { color: var(--text); border-color: var(--text-dim); }

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: var(--s-xxl);
  padding: var(--s-xxl) 0 var(--s-xl);
  background: rgba(6, 5, 18, 0.6);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--s-xl); }
.footer-brand p { color: var(--text-dim); font-size: 14px; margin-top: var(--s-sm); }
.footer-col h3 { font-family: var(--font-body); font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--gold); margin-bottom: var(--s-sm2); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-sm); }
.footer-col a { color: var(--text-dim); font-size: 14px; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  margin-top: var(--s-xl); padding-top: var(--s-md2);
  border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: var(--s-sm2) var(--s-lg);
  color: var(--text-dim); font-size: 12.5px;
}

/* ── Buttons, chips, badges ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-sm);
  border-radius: var(--r-pill);
  padding: 15px 28px; min-height: 52px;
  font-family: var(--font-body); font-size: 16px; font-weight: 600; line-height: 22px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform var(--t-micro) var(--ease), opacity var(--t-micro) var(--ease);
}
.btn:active { transform: scale(0.97); opacity: 0.88; }
.btn-violet { background: var(--violet); color: var(--on-violet); }
.btn-outline { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--text-dim); }
.btn-sm { padding: 9px 18px; min-height: 40px; font-size: 14px; }

.chip {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-sm);
  min-height: 44px; padding: 10px 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-pill);
  font-size: 14px; font-weight: 600; color: var(--text);
  transition: border-color var(--t-micro) var(--ease);
}
.chip:hover { border-color: var(--gold); }
.chip .n { font-family: var(--font-display); color: var(--gold); }

.tag {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: var(--r-pill);
  border: 1px solid var(--gold); color: var(--gold);
  font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
}

.store-badges { display: flex; flex-wrap: wrap; gap: var(--s-sm2); }
.store-badge {
  display: inline-flex; flex-direction: column;
  padding: 10px 20px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-control);
}
.store-badge b { font-size: 14px; }
.store-badge span { font-size: 11.5px; color: var(--text-dim); letter-spacing: 0.5px; text-transform: uppercase; }

/* ── Glass card ──────────────────────────────────────────────────────────── */
.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: var(--s-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero { padding: clamp(56px, 10vw, 112px) 0 var(--s-xxl); }
.hero .container { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: var(--s-xxl); align-items: center; }
.wordmark {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(3rem, 9vw, 6rem); line-height: 1.05; letter-spacing: -2px;
  background: var(--aurora);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  margin: 0 0 var(--s-sm2);
}
.hero-tagline {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.3rem, 3vw, 1.75rem); line-height: 1.3; letter-spacing: -0.5px;
  margin: 0 0 var(--s-md);
}
.hero-sub { color: var(--text-dim); font-size: 17px; max-width: 46ch; margin-bottom: var(--s-lg); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-md); margin-bottom: var(--s-lg); }
.hero-hint { color: var(--text-dim); font-size: 13.5px; }
.hero-figure { position: relative; }
.hero-figure svg { display: block; width: 100%; height: auto; }

/* ── Constellation figure (SVG) ──────────────────────────────────────────── */
.ck-figure text { font-family: var(--font-display); fill: var(--gold); }
.ck-figure .ck-label { font-family: var(--font-body); fill: var(--text-dim); }
.ck-figure .ck-badge { fill: var(--surface-strong); stroke: var(--gold); stroke-width: 0.22; }

/* ── Card grids ──────────────────────────────────────────────────────────── */
.grid { display: grid; gap: var(--s-md); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card-step .step-n {
  font-family: var(--font-display); font-size: 28px; color: var(--gold);
  display: block; margin-bottom: var(--s-sm);
}
.card-num { display: flex; flex-direction: column; gap: var(--s-sm); }
.card-num .num-badge {
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--gold); background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 23px; color: var(--gold);
}
.card-num h3 { margin: 0; }
.card-num p { color: var(--text-dim); font-size: 14.5px; }
.card h3 + p, .glass h3 + p { color: var(--text-dim); font-size: 14.5px; }

.chip-strip { display: flex; flex-wrap: wrap; gap: var(--s-sm2); }

/* ── FAQ ─────────────────────────────────────────────────────────────────── */
.faq { max-width: 720px; }
.faq details {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-control);
  padding: 0; margin-bottom: var(--s-sm2);
}
.faq summary {
  cursor: pointer; list-style: none;
  padding: var(--s-md) var(--s-md2);
  font-weight: 600; font-size: 15.5px;
  display: flex; justify-content: space-between; align-items: center; gap: var(--s-md);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--gold); font-family: var(--font-display); font-size: 20px; flex: none; }
.faq details[open] summary::after { content: '−'; }
.faq details > div { padding: 0 var(--s-md2) var(--s-md); color: var(--text-dim); font-size: 14.5px; }

/* ── Forms (calculator) ──────────────────────────────────────────────────── */
.field { margin-bottom: var(--s-md2); }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: var(--s-sm); }
.field .help { color: var(--text-dim); font-size: 12.5px; margin-top: var(--s-xs); }
.field input {
  width: 100%;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-control);
  color: var(--text); font-family: var(--font-body); font-size: 16px;
  padding: 15px var(--s-md);
  transition: border-color var(--t-micro) var(--ease);
}
.field input::placeholder { color: var(--text-dim); }
.field input:focus { outline: none; border-color: var(--violet); }
.field input[aria-invalid='true'] { border-color: var(--danger); }
.field .error { color: var(--danger); font-size: 13px; margin-top: var(--s-sm); min-height: 0; }
.field input[type='date'] { color-scheme: dark; }
.calc-form { max-width: 480px; }
.calc-trust { display: inline-flex; align-items: center; gap: var(--s-sm); color: var(--teal); font-size: 13.5px; margin-bottom: var(--s-lg); }

/* ── Calculator results ──────────────────────────────────────────────────── */
#results[hidden] { display: none; }
.results-cols { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: var(--s-xl); align-items: start; }
.reveal-item { opacity: 1; transform: none; transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease); }
.reveal-pending .reveal-item { opacity: 0; transform: translateY(10px); }
.num-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-sm2); }
.num-card { padding: var(--s-md2); border-radius: var(--r-control); }
.num-card .eyebrow { margin-bottom: var(--s-xs); font-size: 11px; letter-spacing: 1px; }
.num-card .value { font-family: var(--font-display); font-size: 44px; line-height: 1; color: var(--gold); }
.num-card .value sup { font-size: 0.45em; }
.num-card p { color: var(--text-dim); font-size: 13px; margin: var(--s-sm) 0 0; }
.num-card .tag { margin-top: var(--s-sm); }
.num-card a { font-size: 13px; color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }
.cycles-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-sm2); margin-top: var(--s-md); }
.cycle { text-align: center; padding: var(--s-md); }
.cycle .value { font-family: var(--font-display); font-size: 30px; color: var(--gold); }
.cycle .eyebrow { font-size: 10.5px; letter-spacing: 1px; margin-bottom: var(--s-xs); color: var(--teal); }
.deeper { margin-top: var(--s-md); }
.deeper summary { cursor: pointer; font-weight: 600; padding: var(--s-sm2) 0; }
.deeper .rows { display: grid; gap: var(--s-sm2); padding-top: var(--s-sm); }
.deeper .rows .k { font-weight: 600; font-size: 14px; }
.deeper .rows .v { font-family: var(--font-display); color: var(--gold); }
.deeper .rows p { color: var(--text-dim); font-size: 13px; margin: 2px 0 0; }
.results-actions { display: flex; flex-wrap: wrap; gap: var(--s-sm2); margin-top: var(--s-lg); }
.upsell { color: var(--text-dim); font-size: 13.5px; margin-top: var(--s-md); }

/* ── Life-path pages ─────────────────────────────────────────────────────── */
.breadcrumbs { font-size: 13px; color: var(--text-dim); margin-bottom: var(--s-lg); }
.breadcrumbs a { color: var(--text-dim); }
.breadcrumbs a:hover { color: var(--text); }
.breadcrumbs .sep { margin: 0 var(--s-sm); color: var(--gold); }
.lp-hero { display: flex; align-items: flex-start; gap: var(--s-lg); margin-bottom: var(--s-xl); }
.lp-num {
  flex: none; width: 96px; height: 96px; border-radius: 50%;
  border: 1px solid var(--gold); background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 42px; color: var(--gold);
}
.lp-answer { font-size: 18px; line-height: 1.6; color: var(--text); max-width: 62ch; }
.prose { max-width: 68ch; }
.prose p { color: var(--text-dim); font-size: 16px; line-height: 1.65; }
.prose h2 { margin-top: var(--s-xl); }
.prose ul { color: var(--text-dim); padding-left: 1.2rem; }
.deriv { margin: var(--s-xl) 0; max-width: 560px; }
.deriv .rows { display: grid; gap: var(--s-sm2); margin-top: var(--s-md); font-variant-numeric: tabular-nums; }
.deriv .row { display: flex; justify-content: space-between; gap: var(--s-md); align-items: baseline; border-bottom: 1px solid var(--border); padding-bottom: var(--s-sm); }
.deriv .row:last-child { border-bottom: 0; }
.deriv .k { color: var(--text-dim); font-size: 14px; }
.deriv .v { font-family: var(--font-display); color: var(--gold); font-size: 18px; }
.deriv .row.total .v { font-size: 26px; }
.deriv .note { color: var(--text-dim); font-size: 13px; margin-top: var(--s-sm2); }
.pn-nav { display: flex; justify-content: space-between; gap: var(--s-md); margin-top: var(--s-xl); }
.pn-nav a { color: var(--text-dim); font-weight: 600; font-size: 14px; }
.pn-nav a:hover { color: var(--text); }
.pn-nav .n { color: var(--gold); font-family: var(--font-display); }

.cta-card { text-align: center; padding: var(--s-xl); }
.cta-card h2 { margin-bottom: var(--s-sm); }
.cta-card p { color: var(--text-dim); max-width: 46ch; margin: 0 auto var(--s-md2); }

/* ── Legal ───────────────────────────────────────────────────────────────── */
.legal-note { font-size: 14px; }
.prose .dim { color: var(--text-dim); }
.prose .card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-control); padding: var(--s-md) var(--s-md2); margin: var(--s-lg) 0;
}

/* ── 404 ─────────────────────────────────────────────────────────────────── */
.nf { text-align: center; padding: clamp(64px, 14vw, 140px) 0; }
.nf .big { font-family: var(--font-display); font-size: clamp(5rem, 18vw, 9rem); line-height: 1; color: var(--gold); }
.nf .links { display: flex; justify-content: center; flex-wrap: wrap; gap: var(--s-sm2); margin-top: var(--s-lg); }
.nf .lang-block { margin-top: var(--s-xl); }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-figure { max-width: 440px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .results-cols { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .grid-3, .grid-2, .num-grid { grid-template-columns: 1fr; }
  .cycles-row { grid-template-columns: 1fr 1fr 1fr; }
  .site-nav { gap: var(--s-sm2); }
  .site-nav .nav-link { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .lp-hero { flex-direction: column; }
  .section { padding: var(--s-xl) 0; }
}

/* ── Motion & print ──────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sf-far, .sf-mid, .sf-near, .sf-twinkle { animation: none; }
  .btn, .reveal-item, .chip { transition: none; }
  .reveal-pending .reveal-item { opacity: 1; transform: none; }
}
@media print {
  .page-legal body, body.page-legal { background: #fff; color: #111; }
  body.page-legal .starfield, body.page-legal .site-header, body.page-legal .site-footer { display: none; }
  body.page-legal .prose p, body.page-legal .prose ul, body.page-legal .prose .dim { color: #333; }
  body.page-legal h1, body.page-legal h2 { color: #111; }
  body.page-legal a { color: #333; }
}
