/* Nostra: the app's palette and type on the web. Dark ground, gold and
   violet accents, Cormorant Garamond headings, Plus Jakarta Sans text. */

@font-face { font-family: 'Cormorant Garamond'; font-weight: 500; font-style: normal; font-display: swap; src: url('/fonts/CormorantGaramond_500Medium.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-weight: 600; font-style: normal; font-display: swap; src: url('/fonts/CormorantGaramond_600SemiBold.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-weight: 500; font-style: italic; font-display: swap; src: url('/fonts/CormorantGaramond_500Medium_Italic.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 400; font-style: normal; font-display: swap; src: url('/fonts/PlusJakartaSans_400Regular.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 500; font-style: normal; font-display: swap; src: url('/fonts/PlusJakartaSans_500Medium.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 600; font-style: normal; font-display: swap; src: url('/fonts/PlusJakartaSans_600SemiBold.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 700; font-style: normal; font-display: swap; src: url('/fonts/PlusJakartaSans_700Bold.woff2') format('woff2'); }

:root {
  --bg: #06060f;
  --bg-mid: #0b0b1a;
  --surface: #0f0f22;
  --card: #131328;
  --border: #1f1f3e;
  --border-soft: rgba(42, 42, 80, 0.6);
  --gold: #e0c870;
  --gold-deep: #c8a84a;
  --gold-glow: rgba(224, 200, 112, 0.10);
  --violet: #a882e8;
  --violet-deep: #7c5cbf;
  --violet-glow: rgba(124, 92, 191, 0.14);
  --ivory: #ede8f0;
  --text: #c9bcd6;
  --muted: #9a8cab;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 18px;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* A faint field of stars behind everything. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1px 1px at 12% 18%, rgba(237, 232, 240, 0.55), transparent 60%),
    radial-gradient(1px 1px at 78% 12%, rgba(237, 232, 240, 0.45), transparent 60%),
    radial-gradient(1.5px 1.5px at 64% 42%, rgba(224, 200, 112, 0.5), transparent 60%),
    radial-gradient(1px 1px at 32% 66%, rgba(237, 232, 240, 0.35), transparent 60%),
    radial-gradient(1px 1px at 88% 74%, rgba(168, 130, 232, 0.45), transparent 60%),
    radial-gradient(1px 1px at 46% 88%, rgba(237, 232, 240, 0.3), transparent 60%),
    radial-gradient(1px 1px at 6% 82%, rgba(237, 232, 240, 0.4), transparent 60%),
    radial-gradient(900px 600px at 85% -10%, rgba(124, 92, 191, 0.16), transparent 70%),
    radial-gradient(700px 500px at -10% 30%, rgba(224, 200, 112, 0.06), transparent 70%);
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #f0dc8c; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--ivory); line-height: 1.15; margin: 0 0 0.5em; letter-spacing: 0.2px; }
h1 { font-size: clamp(44px, 6.4vw, 76px); }
h2 { font-size: clamp(34px, 4.2vw, 50px); }
h3 { font-size: 26px; }
p { margin: 0 0 1em; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 10; padding: 8px 14px; background: var(--gold); color: var(--bg); border-radius: 8px; }
.skip:focus { left: 12px; }

.eyebrow { font-size: 15px; font-weight: 600; color: var(--gold); letter-spacing: 0.2px; margin-bottom: 10px; }
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--text); max-width: 34em; }
.muted { color: var(--muted); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(6, 6, 15, 0.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border-soft); }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ivory); font-family: var(--serif); font-size: 28px; font-weight: 600; }
.brand:hover { color: var(--ivory); }
.site-nav { display: flex; gap: 6px; }
.site-nav a { color: var(--text); text-decoration: none; font-size: 15px; font-weight: 500; padding: 8px 12px; border-radius: 10px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ivory); background: var(--surface); }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); color: var(--ivory); border-radius: 10px; padding: 7px; cursor: pointer; }

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; padding: 10px 20px 18px; background: rgba(6, 6, 15, 0.97); border-bottom: 1px solid var(--border); }
  .site-nav.open { display: flex; }
  .site-nav a { font-size: 17px; padding: 12px 10px; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 12px; font-size: 16px; font-weight: 600; text-decoration: none; border: 1px solid var(--gold-deep); background: var(--gold-glow); color: var(--gold); }
.btn:hover { background: rgba(224, 200, 112, 0.18); color: #f0dc8c; }
.btn-quiet { border-color: var(--border); background: var(--surface); color: var(--ivory); }
.btn-quiet:hover { border-color: var(--violet-deep); color: var(--ivory); background: var(--surface); }
.badge { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--ivory); font-weight: 600; font-size: 15px; }
.badge svg { width: 20px; height: 20px; }

/* Hero */
.hero { padding: clamp(48px, 8vw, 104px) 0 clamp(40px, 6vw, 80px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 em { font-style: italic; font-weight: 500; color: var(--gold); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-art { position: relative; aspect-ratio: 1; }
.hero-art .wheel { width: 100%; animation: turn 600s linear infinite; }
@keyframes turn { to { transform: rotate(-360deg); } }
@media (prefers-reduced-motion: reduce) { .hero-art .wheel { animation: none; } }
.hero-art .wheel-caption { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; width: 38%; }
.wheel-caption img { width: 64px; margin: 0 auto 8px; }
.wheel-caption p { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.4; }
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 440px; margin: 10px auto 0; width: 100%; }
}

/* Sections */
section { padding: clamp(56px, 8vw, 104px) 0; }
.section-head { max-width: 760px; margin-bottom: 40px; }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--border), transparent); }

/* The phone mock: a daily reading card as the app draws it. */
.reading { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.phone { width: min(340px, 100%); margin-inline: auto; border-radius: 44px; padding: 12px; background: linear-gradient(160deg, #24243f, #0c0c1a); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.06); }
.screen { border-radius: 34px; background: var(--bg); padding: 26px 16px 22px; overflow: hidden; min-height: 560px; }
.screen-date { font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--muted); margin: 0 4px 10px; }
.screen-name { font-size: 13px; font-weight: 600; color: var(--gold); margin: 0 4px 2px; }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 12px; }
.week span { display: grid; place-items: center; height: 46px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface); font-size: 12px; color: var(--muted); line-height: 1.2; text-align: center; }
.week span b { display: block; color: var(--text); font-weight: 600; font-size: 13px; }
.week .on { border-color: var(--gold-deep); background: var(--gold-glow); }
.week .on b { color: var(--ivory); }
.card { border-radius: 16px; border: 1px solid var(--border); background: var(--card); padding: 16px; margin-bottom: 10px; }
.card-gold { background: var(--gold-glow); border-color: rgba(90, 74, 26, 0.9); }
.card small { display: block; font-size: 12px; font-weight: 600; color: var(--gold); margin-bottom: 6px; }
.card .headline { font-family: var(--serif); font-size: 23px; line-height: 1.2; color: var(--ivory); font-weight: 600; margin: 0 0 10px; }
.card .sky { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.card .sky img { width: 18px; }
.event { display: flex; gap: 12px; align-items: center; }
.event img { width: 56px; flex: none; }
.event h4 { font-family: var(--serif); font-size: 20px; color: var(--ivory); margin: 0; font-weight: 600; }
.event p { margin: 0; font-size: 12px; color: var(--muted); }
.transit { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--border-soft); }
.transit:first-of-type { border-top: 0; }
.transit img { width: 16px; }
.transit span { font-family: var(--serif); font-size: 16px; color: var(--ivory); flex: 1; }
.transit em { font-style: normal; font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 5px; border: 1px solid rgba(90, 74, 26, 0.9); color: var(--gold); }
.transit-toggle { font-size: 12px; font-weight: 600; color: var(--violet); }

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { border-radius: var(--radius); border: 1px solid var(--border); background: linear-gradient(180deg, var(--card), rgba(19, 19, 40, 0.55)); padding: 26px 24px 24px; }
.feature img { width: 38px; margin-bottom: 18px; }
.feature h3 { font-size: 25px; margin-bottom: 8px; }
.feature p { font-size: 16px; margin: 0; }
.feature .plus-tag { display: inline-block; margin-left: 6px; font-family: var(--sans); font-size: 12px; font-weight: 600; color: var(--gold); border: 1px solid rgba(90, 74, 26, 0.9); border-radius: 6px; padding: 1px 7px; vertical-align: middle; }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .features { grid-template-columns: 1fr; } .reading { grid-template-columns: 1fr; } }

/* Moon phases strip */
.phases { display: flex; justify-content: space-between; gap: 10px; max-width: 620px; margin: 30px 0 0; }
.phases figure { margin: 0; text-align: center; flex: 1; }
.phases img { width: min(92px, 100%); margin: 0 auto 8px; }
.phases figcaption { font-size: 13px; color: var(--muted); }

/* Plus */
.plus { border-radius: 26px; border: 1px solid rgba(90, 74, 26, 0.9); background: radial-gradient(800px 300px at 10% 0%, rgba(224, 200, 112, 0.10), transparent 70%), var(--card); padding: clamp(28px, 5vw, 56px); }
.plus-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 40px; margin-top: 26px; }
.plus-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border-soft); }
.plus-item svg { flex: none; width: 22px; height: 22px; margin-top: 3px; }
.plus-item h3 { font-family: var(--sans); font-size: 17px; font-weight: 600; margin: 0 0 2px; color: var(--ivory); }
.plus-item p { margin: 0; font-size: 15px; }
@media (max-width: 760px) { .plus-grid { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--border); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; font-family: var(--serif); font-size: 24px; color: var(--ivory); font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 10px; height: 10px; border-right: 1.6px solid var(--muted); border-bottom: 1.6px solid var(--muted); transform: rotate(45deg); transition: transform 0.2s; margin-right: 4px; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { color: var(--text); }

.cta { text-align: center; }
.cta .lede { margin-inline: auto; }
.cta .hero-actions { justify-content: center; }
.cta-logo { margin: 0 auto 18px; }
.plus-note { margin-top: 22px; font-size: 15px; }

/* Long-form documents: the privacy policy, the terms, support. */
.doc-hero { padding: clamp(44px, 6vw, 80px) 0 10px; }
.doc-hero h1 { font-size: clamp(42px, 5.4vw, 64px); }
.doc-meta { color: var(--muted); font-size: 15px; }
.doc { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 56px; padding: 30px 0 100px; align-items: start; }
.toc { position: sticky; top: 92px; font-size: 14px; border-left: 1px solid var(--border); padding-left: 16px; max-height: calc(100vh - 120px); overflow: auto; }
.toc p { font-weight: 600; color: var(--ivory); margin: 0 0 8px; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc li { margin: 0 0 6px; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--ivory); }
.prose { max-width: 760px; }
.prose h2 { font-size: 34px; margin-top: 2.2em; padding-top: 0.2em; scroll-margin-top: 90px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-family: var(--sans); font-size: 18px; font-weight: 600; color: var(--ivory); margin: 1.6em 0 0.5em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.45em; }
.prose strong { color: var(--ivory); font-weight: 600; }
.prose .summary { border: 1px solid var(--border); background: var(--card); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 36px; }
.prose .summary h2 { font-size: 26px; margin: 0 0 10px; }
.prose .summary ul { margin: 0; }
.prose .callout { border-left: 2px solid var(--gold-deep); padding: 4px 0 4px 18px; margin: 0 0 1.2em; color: var(--ivory); }
.table-scroll { overflow-x: auto; margin: 0 0 1.4em; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.prose th { color: var(--ivory); font-weight: 600; background: var(--surface); }
.caps { text-transform: none; }
@media (max-width: 900px) {
  /* minmax(0, …) so the wide provider table scrolls instead of widening the page. */
  .doc { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .toc { position: static; max-height: none; border-left: 0; padding: 18px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
}

/* Footer */
.site-footer { border-top: 1px solid var(--border-soft); padding: 40px 0 28px; margin-top: 20px; }
.footer-grid { display: flex; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.footer-grid nav { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
.footer-grid nav a { color: var(--text); text-decoration: none; font-size: 15px; }
.footer-grid nav a:hover { color: var(--ivory); }
.footer-note { color: var(--muted); font-size: 15px; margin: 10px 0 0; }
.footer-legal p { color: var(--muted); font-size: 13px; margin: 26px 0 0; max-width: 60em; }

@media print {
  body::before, .site-header, .site-footer, .toc { display: none; }
  body { background: #fff; color: #111; }
  .prose h2, .prose h3, .prose strong, h1 { color: #111; }
  .doc { display: block; }
}
