/* ═══════════════════════════════════════════════════════════════════
   Orion — landing.  "Daylight observatory": white paper sky, deep navy
   ink, star-gold accents, editorial serif display over a grotesk body.
   ═══════════════════════════════════════════════════════════════════ */

:root {
  --paper: #ffffff;
  --paper-2: #f7f8fb;
  --paper-3: #eef1f6;
  --line: rgba(23, 28, 43, 0.14);
  --line-soft: rgba(23, 28, 43, 0.08);
  --ink: #171c2b;
  --ink-dim: #5d6373;
  --gold: #5a4bda;
  --gold-bright: #7c6cf8;
  --gold-deep: #6d5cf5;
  --gold-soft: rgba(109, 92, 245, 0.12);
  --font-display: 'Fraunces', 'Georgia', serif;
  --font-body: 'Schibsted Grotesk', 'Segoe UI', sans-serif;
  --font-mono: 'Fragment Mono', 'Consolas', monospace;
  --radius: 14px;
  --maxw: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(109, 92, 245, 0.08), transparent 60%),
    radial-gradient(900px 600px at 10% 20%, rgba(120, 160, 235, 0.10), transparent 55%),
    #eef3fb;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.mono { font-family: var(--font-mono); font-size: 0.82em; letter-spacing: 0.08em; }
.gold { color: var(--gold); font-style: normal; }
.muted { color: var(--ink-dim); }
em.gold { font-style: italic; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 18px;
  border-radius: 0 0 10px 0; font-weight: 700; text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 700; font-size: 15.5px;
  padding: 11px 22px; border-radius: 999px; cursor: pointer;
  text-decoration: none; border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease,
    border-color 0.15s ease, color 0.15s ease;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; }

.btn-solid { background: var(--ink); color: #fff; }
.btn-solid:hover { background: #232a40; box-shadow: 0 6px 24px rgba(23, 28, 43, 0.22); }

.btn-gold {
  background: linear-gradient(160deg, var(--gold-bright), var(--gold-deep));
  color: #ffffff;
  box-shadow: 0 4px 22px rgba(109, 92, 245, 0.30);
}
.btn-gold:hover { box-shadow: 0 8px 34px rgba(109, 92, 245, 0.45); transform: translateY(-1px); }

.btn-ghost {
  background: transparent; color: var(--ink); border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink-dim); background: rgba(23, 28, 43, 0.04); }

.btn-lg { padding: 15px 30px; font-size: 17px; }
.btn-block { width: 100%; }

.btn-link {
  background: none; border: none; color: var(--ink-dim); cursor: pointer;
  font-size: 14px; margin-top: 10px; text-align: center; width: 100%;
}
.btn-link:hover { color: var(--gold); }

.btn-inline {
  background: none; border: none; color: var(--gold); cursor: pointer;
  font: inherit; text-decoration: underline; text-underline-offset: 3px;
}

/* ── Nav ─────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 14px; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px clamp(16px, 2.5vw, 26px);
  margin: 14px auto 0;
  max-width: calc(var(--maxw) + 40px);
  width: calc(100% - 28px);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  box-shadow: 0 8px 30px rgba(23, 28, 43, 0.07);
}
.nav-logo {
  font-family: var(--font-display); font-weight: 600; font-size: 24px;
  color: var(--ink); text-decoration: none; letter-spacing: 0.01em;
}
.logo-star { color: var(--gold-deep); }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  color: var(--ink-dim); text-decoration: none; font-size: 15px; font-weight: 500;
}
.nav-links a:hover { color: var(--gold); }
.nav-actions { display: flex; gap: 10px; align-items: center; }

.nav-pricing { display: flex; gap: 8px; align-items: center; }
.nav-plan {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--line-soft);
  color: var(--ink-dim); text-decoration: none;
  font-size: 13.5px; font-weight: 500; white-space: nowrap;
}
.nav-plan .mono { font-size: 12.5px; }
.nav-plan:hover { border-color: var(--ink-dim); color: var(--ink); }
.nav-plan.is-gold {
  border-color: rgba(109, 92, 245, 0.45);
  color: var(--gold);
}
.nav-plan.is-gold:hover { background: rgba(109, 92, 245, 0.08); }

@media (max-width: 1080px) {
  .nav-pricing .nav-plan:not(.is-gold) { display: none; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-pricing { display: none; }
  .nav-actions .js-activate { display: none; }
}

/* ── Hero ────────────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(70px, 12vh, 130px) 20px clamp(60px, 9vh, 110px);
  text-align: center;
}
#constellation {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; opacity: 0.9;
}
.hero-inner { position: relative; max-width: 880px; margin: 0 auto; }

.hero-kicker {
  color: var(--gold); margin-bottom: 26px;
  animation: rise 0.7s ease both;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(42px, 7vw, 84px);
  font-weight: 470;
  line-height: 1.04;
  letter-spacing: -0.015em;
  animation: rise 0.7s 0.08s ease both;
}
.hero-title em { font-weight: 600; }
.hero-sub {
  max-width: 620px; margin: 28px auto 0; color: var(--ink-dim);
  font-size: clamp(16px, 2vw, 19px);
  animation: rise 0.7s 0.16s ease both;
}
.hero-sub strong { color: var(--ink); }
.hero-cta {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  margin-top: 40px; animation: rise 0.7s 0.24s ease both;
}
.hero-note { margin-top: 20px; color: var(--ink-dim); animation: rise 0.7s 0.3s ease both; }

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* ── Trust strip ─────────────────────────────────────────────────── */
.strip {
  display: flex; flex-wrap: wrap; gap: 10px 38px; justify-content: center;
  padding: 18px 20px;
  border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
  background: var(--paper-2);
  color: var(--ink-dim); font-family: var(--font-mono); font-size: 12.5px;
  letter-spacing: 0.06em;
}

/* ── Sections ────────────────────────────────────────────────────── */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(70px, 10vh, 120px) 20px 0; }
.section-kicker { color: var(--gold); margin-bottom: 14px; }
.section-title {
  font-family: var(--font-display); font-weight: 470;
  font-size: clamp(30px, 4.4vw, 52px); line-height: 1.1; letter-spacing: -0.01em;
  max-width: 700px; margin-bottom: clamp(34px, 5vh, 56px);
}

/* ── Features ────────────────────────────────────────────────────── */
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
}
.feature {
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  background: linear-gradient(170deg, #ffffff, var(--paper-2));
  padding: 26px 22px;
  box-shadow: 0 1px 3px rgba(23, 28, 43, 0.04);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.feature:hover {
  border-color: var(--line); transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(23, 28, 43, 0.08);
}
.feature.is-premium { background: linear-gradient(170deg, #fbfaff, #f0edfe); }
.feature-glyph {
  font-size: 24px; color: var(--gold-deep); margin-bottom: 16px;
  width: 46px; height: 46px; display: grid; place-items: center;
  border: 1px solid rgba(109, 92, 245, 0.28); border-radius: 12px;
  background: var(--gold-soft);
}
.feature h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.feature p { color: var(--ink-dim); font-size: 14.5px; }
.tag-premium {
  color: var(--gold); border: 1px solid rgba(109, 92, 245, 0.40);
  border-radius: 999px; padding: 1px 8px; font-size: 11px; vertical-align: 2px;
}

/* ── Why €1 ──────────────────────────────────────────────────────── */
.why-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.why-item {
  border-left: 2px solid var(--gold-deep); padding: 8px 0 8px 24px;
}
.why-num {
  font-size: clamp(34px, 4vw, 48px); color: var(--ink); line-height: 1;
  margin-bottom: 12px; letter-spacing: -0.02em;
}
.why-item p:last-child { color: var(--ink-dim); font-size: 15px; }

/* ── Pricing ─────────────────────────────────────────────────────── */
.pricing-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px; align-items: start;
}
.price-card {
  border: 1px solid var(--line-soft); border-radius: 18px;
  background: linear-gradient(175deg, #ffffff, var(--paper-2));
  padding: 30px 26px;
  box-shadow: 0 1px 3px rgba(23, 28, 43, 0.04);
  display: flex; flex-direction: column;
}
.price-card.is-hero {
  border-color: rgba(109, 92, 245, 0.45);
  background:
    radial-gradient(400px 220px at 50% -60px, rgba(109, 92, 245, 0.14), transparent 70%),
    linear-gradient(175deg, #fbfaff, #ffffff);
  box-shadow: 0 20px 60px rgba(109, 92, 245, 0.14);
  transform: scale(1.03);
}
.price-flag { color: var(--gold); font-size: 11px; margin-bottom: 14px; }
.price-name { font-family: var(--font-display); font-weight: 550; font-size: 22px; }
.price-amount {
  font-family: var(--font-display); font-style: italic; font-weight: 560;
  font-size: 76px; line-height: 1; margin: 14px 0 4px; letter-spacing: -0.03em;
}
.price-cur { font-size: 0.45em; vertical-align: 26px; margin-right: 2px; opacity: 0.75; }
.price-period { color: var(--ink-dim); margin-bottom: 22px; }
.price-list { list-style: none; margin-bottom: 26px; flex: 1; }
.price-list li {
  padding: 7px 0 7px 26px; position: relative;
  color: var(--ink); font-size: 15px;
  border-bottom: 1px dashed var(--line-soft);
}
.price-list li:last-child { border-bottom: none; }
.price-list li::before {
  content: '✦'; position: absolute; left: 2px; color: var(--gold-deep); font-size: 11px; top: 10px;
}
.price-list li.muted { color: var(--ink-dim); }
.price-list strong { color: var(--gold); }

/* Comparison table */
.compare-wrap { overflow-x: auto; margin-top: clamp(40px, 6vh, 64px); }
.compare {
  width: 100%; border-collapse: collapse; min-width: 640px;
  font-size: 14.5px;
}
.compare th, .compare td {
  padding: 12px 16px; text-align: center; border-bottom: 1px solid var(--line-soft);
}
.compare th { font-weight: 700; font-size: 15px; padding-bottom: 16px; }
.compare td:first-child, .compare th:first-child { text-align: left; color: var(--ink); }
.compare td { color: var(--ink-dim); }
.compare td.gold-col, .compare th.gold-col { background: var(--gold-soft); color: var(--ink); }
.compare th.gold-col { border-radius: 10px 10px 0 0; }

/* ── FAQ ─────────────────────────────────────────────────────────── */
.faq-list { max-width: 780px; }
.faq-list details {
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  background: #ffffff; margin-bottom: 10px; overflow: hidden;
  box-shadow: 0 1px 3px rgba(23, 28, 43, 0.04);
}
.faq-list summary {
  cursor: pointer; padding: 18px 22px; font-weight: 700; font-size: 16px;
  list-style: none; position: relative; user-select: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: '+'; position: absolute; right: 22px; color: var(--gold-deep);
  font-family: var(--font-mono); font-size: 18px; transition: transform 0.2s ease;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 22px 20px; color: var(--ink-dim); font-size: 15px; }
.faq-list code {
  font-family: var(--font-mono); font-size: 0.85em; color: var(--gold);
  background: var(--gold-soft); padding: 1px 6px; border-radius: 6px;
}

/* ── Final CTA / footer ──────────────────────────────────────────── */
.final-cta {
  text-align: center; padding: clamp(80px, 12vh, 140px) 20px;
}
.final-title {
  font-family: var(--font-display); font-weight: 470;
  font-size: clamp(34px, 5.5vw, 64px); line-height: 1.08; margin-bottom: 36px;
}
.footer {
  border-top: 1px solid var(--line-soft);
  padding: 34px clamp(18px, 4vw, 44px) 44px;
  display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: center;
  justify-content: space-between; font-size: 14px;
}
.footer-brand { font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.footer-ver { margin-left: 10px; font-size: 11px; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: var(--ink-dim); text-decoration: none; }
.footer-links a:hover { color: var(--gold); }

/* ── Legal pages (privacy / terms) ──────────────────────────────── */
.legal-main { max-width: 760px; margin: 0 auto; padding: clamp(60px, 9vh, 100px) 20px clamp(80px, 10vh, 120px); }
.legal-kicker { color: var(--gold); margin-bottom: 14px; }
.legal-title {
  font-family: var(--font-display); font-weight: 470;
  font-size: clamp(30px, 4.4vw, 46px); line-height: 1.1; letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.legal-updated { margin-bottom: clamp(34px, 5vh, 48px); }
.legal-body h2 {
  font-family: var(--font-display); font-weight: 560; font-size: 22px;
  margin: 40px 0 12px;
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body p { margin-bottom: 14px; max-width: 66ch; }
.legal-body ul { margin: 0 0 14px 20px; max-width: 66ch; }
.legal-body li { margin-bottom: 6px; }
.legal-body a { color: var(--gold); }

/* ── Modals ──────────────────────────────────────────────────────── */
/* The hidden attribute must always win, even over author display rules. */
[hidden] { display: none !important; }

.modal-backdrop {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(20, 24, 38, 0.45); backdrop-filter: blur(6px);
  display: grid; place-items: center; padding: 20px;
}
.modal {
  position: relative; width: min(440px, 100%);
  background: #ffffff;
  border: 1px solid var(--line); border-radius: 18px;
  padding: 30px 28px; box-shadow: 0 30px 80px rgba(23, 28, 43, 0.25);
  animation: pop 0.22s ease both;
}
@keyframes pop {
  from { opacity: 0; transform: translateY(10px) scale(0.97); }
  to { opacity: 1; transform: none; }
}
.modal-x {
  position: absolute; top: 12px; right: 14px;
  background: none; border: none; color: var(--ink-dim);
  font-size: 26px; cursor: pointer; line-height: 1;
}
.modal-x:hover { color: var(--ink); }
.modal-title { font-family: var(--font-display); font-size: 26px; font-weight: 550; }
.modal-sub { color: var(--ink-dim); margin: 8px 0 18px; font-size: 15px; }
.modal p { font-size: 15px; margin-bottom: 14px; }
.modal code {
  font-family: var(--font-mono); font-size: 0.85em; color: var(--gold);
  background: var(--gold-soft); padding: 1px 6px; border-radius: 6px;
}
.modal-error { color: #c0392b; font-size: 14px; margin: -8px 0 12px; }
.modal-fine { font-size: 13.5px; margin-top: 14px; text-align: center; }

.input {
  width: 100%; padding: 13px 16px; margin-bottom: 14px;
  background: var(--paper-2); color: var(--ink);
  border: 1px solid var(--line); border-radius: 10px;
  font-size: 15px; letter-spacing: 0.1em;
}
.input:focus { outline: none; border-color: var(--gold-deep); }

/* ── Toasts ──────────────────────────────────────────────────────── */
.toast-region {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center;
}
.toast {
  background: var(--ink); color: #fff;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 14.5px;
  box-shadow: 0 12px 40px rgba(23, 28, 43, 0.30);
  animation: pop 0.25s ease both;
}
.toast.is-gold {
  background: linear-gradient(160deg, var(--gold-bright), var(--gold-deep));
  color: #ffffff;
}

/* ── Account / login page ────────────────────────────────────────── */
.auth-main {
  min-height: calc(100vh - 90px);
  display: grid; place-items: center; padding: 40px 20px 80px;
}
.auth-card {
  width: min(420px, 100%);
  background: #ffffff;
  border: 1px solid var(--line-soft); border-radius: 22px;
  padding: 38px 32px;
  box-shadow: 0 24px 70px rgba(23, 28, 43, 0.10);
  text-align: center;
}
.auth-title { font-family: var(--font-display); font-weight: 550; font-size: 30px; }
.auth-sub { color: var(--ink-dim); font-size: 15px; margin: 10px 0 26px; }
.auth-providers { display: flex; flex-direction: column; gap: 10px; }
.btn-provider {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 12px 18px; border-radius: 12px;
  border: 1px solid var(--line); background: #ffffff; color: var(--ink);
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  cursor: pointer; transition: border-color 0.15s ease, background 0.15s ease,
    transform 0.15s ease;
}
.btn-provider:hover { border-color: var(--gold-deep); background: var(--paper-2); }
.btn-provider:active { transform: translateY(1px); }
.btn-provider[disabled] { opacity: 0.55; cursor: not-allowed; }
.btn-provider .prov-icon { width: 20px; height: 20px; flex: none; }
.auth-divider {
  display: flex; align-items: center; gap: 12px; margin: 20px 0;
  color: var(--ink-dim); font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.1em;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--line-soft);
}
.auth-note {
  margin-top: 22px; color: var(--ink-dim); font-size: 13.5px;
}
.auth-note a, .auth-note .btn-inline { font-size: inherit; }
.auth-notice {
  background: var(--gold-soft); border: 1px solid rgba(109, 92, 245, 0.28);
  color: var(--ink); border-radius: 12px; padding: 12px 16px;
  font-size: 13.5px; margin-bottom: 20px; text-align: left;
}
.auth-phone-step { margin-top: 4px; }
.auth-phone-step .input { letter-spacing: normal; margin-bottom: 10px; }
.auth-user { text-align: center; }
.auth-avatar {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 14px;
  border: 2px solid var(--gold-soft); display: block; object-fit: cover;
}
.auth-error { color: #c0392b; font-size: 13.5px; margin: 10px 0 0; }
#recaptcha-container { display: flex; justify-content: center; margin: 12px 0; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
