/* Guiding Light Studios — site styles
   Brand colours sampled from the GLS logo PNG (PIL pixel count):
     navy  #004768   steel outline  #90B6D0   accent  #000000   background #FFFFFF
   The site sits on a deep "night sky" so the logo is presented on a white disc —
   a little guiding light. */

@font-face {
  font-family: "Fraunces GLS";
  src: url("/assets/fonts/fraunces-latin.woff2") format("woff2");
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --brand-navy: #004768;
  --brand-steel: #90b6d0;
  --brand-ink: #000000;
  --brand-white: #ffffff;

  --bg: #060b17;
  --bg-2: #0a1428;
  --surface: rgba(144, 182, 208, 0.06);
  --surface-strong: rgba(144, 182, 208, 0.10);
  --line: rgba(144, 182, 208, 0.18);
  --text: #eef2f6;
  --muted: #a9bccb;
  --warm: #f3cf8e;          /* soft starlight — used sparingly for hope/CTA */
  --warm-strong: #f6c66f;
  --focus: 0 0 0 3px var(--bg), 0 0 0 5px var(--warm);

  --font-display: "Fraunces GLS", Georgia, "Times New Roman", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius: 16px;
  --max: 1120px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
}

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(0, 71, 104, 0.45), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(0, 71, 104, 0.25), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-steel); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--warm); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 5.5vw, 3.9rem); font-weight: 400; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 400; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; text-wrap: pretty; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 40em; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--warm);
  margin-bottom: 1rem;
}

.skip-link {
  position: absolute; left: 1rem; top: -100px;
  background: var(--warm); color: #1a1205; padding: 0.6rem 1rem; border-radius: 8px; z-index: 100;
}
.skip-link:focus { top: 1rem; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.narrow { max-width: 760px; }
.section { padding: clamp(3rem, 6vw, 5rem) 0; }
.section + .section { border-top: 1px solid var(--line); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  /* 26 Oct 2026: near-opaque, so buttons scrolling underneath can't show through the brand name */
  /* 29 Oct 2026: a touch lighter than the night-sky page (#0E1A2E vs #060B17) with a fine starlight-gold
     divider (#8A7650: 4.48:1 vs page, 3.97:1 vs bar — WCAG 1.4.11 >= 3:1) so the logo bar reads as its own band */
  background: rgba(14, 26, 46, 0.97);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid #8a7650;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); }
.brand-mark {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--brand-white);
  display: grid; place-items: center;
  box-shadow: 0 0 18px rgba(243, 207, 142, 0.25);
  flex: none;
}
.brand-mark img { width: 32px; height: 32px; }
.brand-name { font-family: var(--font-display); font-size: 1.15rem; letter-spacing: 0.01em; white-space: nowrap; }

.nav-toggle {
  display: none;
  background: transparent; border: 1px solid var(--line); color: var(--text);
  border-radius: 10px; padding: 0.45rem 0.75rem; font: inherit; font-size: 0.95rem; cursor: pointer;
}
.site-nav ul { list-style: none; display: flex; gap: 0.25rem; margin: 0; padding: 0; }
.site-nav a {
  display: flex; align-items: center; min-height: 44px; padding: 0.5rem 0.85rem; border-radius: 999px;
  color: var(--muted); text-decoration: none; font-size: 0.97rem;
}
.site-nav a:hover { color: var(--text); background: var(--surface); }
.site-nav a[aria-current="page"] { color: var(--text); background: var(--surface-strong); }

@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: rgba(6, 11, 23, 0.97); border-bottom: 1px solid var(--line); }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; padding: 0.75rem var(--pad) 1.25rem; }
  .site-nav a { padding: 0.75rem 1rem; border-radius: 10px; }
  .no-js .site-nav { display: block; position: static; background: none; border: 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.3em;
  font: inherit; font-weight: 600; font-size: 1rem;
  padding: 0.8rem 1.35rem; border-radius: 999px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn-primary { background: var(--warm); color: #1d1405; }
.btn-primary:hover { background: var(--warm-strong); color: #1d1405; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { color: var(--text); background: var(--surface); border-color: rgba(144,182,208,.35); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(3rem, 9vw, 6.5rem) 0 clamp(1.25rem, 3vw, 2rem); }
.hero + .section { padding-top: clamp(2rem, 5vw, 3.5rem); }
.hero-grid { display: block; }
.hero-copy { max-width: 46rem; }

/* ---------- Cards / grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.25rem;
}
.card h3 { margin-bottom: 0.4em; }
.card p:last-child { margin-bottom: 0; }
.card .num {
  display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%;
  border: 1px solid var(--brand-steel); color: var(--brand-steel);
  font-family: var(--font-display); font-size: 1rem; margin-bottom: 0.9rem;
}

/* ---------- App teaser with canvas ---------- */
.teaser {
  position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: calc(var(--radius) + 8px);
  background: radial-gradient(ellipse at 70% 50%, rgba(0,71,104,0.55), rgba(6,11,23,0.9) 70%);
  min-height: 460px;
  display: grid; grid-template-columns: 1fr 1fr; align-items: center;
}
.teaser canvas, .sky-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.teaser-copy { position: relative; z-index: 1; padding: clamp(1.75rem, 5vw, 3.5rem); }
.teaser-copy::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(6,11,23,0.85) 0%, rgba(6,11,23,0.55) 75%, transparent 100%);
}
@media (max-width: 860px) {
  .teaser { grid-template-columns: 1fr; min-height: 0; padding-top: 220px; }
  .teaser-copy::before { background: linear-gradient(180deg, transparent 0%, rgba(6,11,23,0.85) 18%, rgba(6,11,23,0.92) 100%); }
}

.app-name { color: var(--warm); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; overflow: hidden; padding: clamp(3.5rem, 9vw, 6.5rem) 0 clamp(2.5rem, 6vw, 4rem); border-bottom: 1px solid var(--line); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero .sky-canvas { opacity: 0.85; }

/* ---------- Notify form ---------- */
.notify {
  background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}
.notify form { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; }
.notify label { width: 100%; font-weight: 600; font-size: 0.95rem; }
.notify input[type="email"] {
  flex: 1 1 260px; min-width: 0;
  background: rgba(6,11,23,0.6); color: var(--text);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 0.8rem 1.15rem; font: inherit;
}
.notify input[type="email"]::placeholder { color: #7f93a3; }
.notify input[type="email"]:focus { outline: none; box-shadow: var(--focus); }
.form-note { width: 100%; margin: 0.25rem 0 0; font-size: 0.88rem; color: var(--muted); }
.form-status { width: 100%; margin: 0; font-size: 0.95rem; color: var(--warm); min-height: 1.5em; }

/* ---------- Pricing ---------- */
.price-card { text-align: left; }
.price { font-family: var(--font-display); font-size: 2.6rem; line-height: 1; margin: 0.25rem 0 0.75rem; }
.price small { font-family: var(--font-body); font-size: 0.95rem; color: var(--muted); margin-left: 0.25rem; }
.price-card.featured { border-color: rgba(243,207,142,0.45); background: rgba(243,207,142,0.06); }
ul.ticks { list-style: none; padding: 0; margin: 0 0 1rem; }
ul.ticks li { position: relative; padding-left: 1.6rem; margin: 0.4rem 0; }
ul.ticks li::before { content: "✦"; position: absolute; left: 0; color: var(--brand-steel); font-size: 0.85rem; top: 0.15rem; }

/* ---------- FAQ ---------- */
.faq details {
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
  margin-bottom: 0.75rem; padding: 0 1.25rem;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 1rem 2rem 1rem 0; position: relative;
  font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 0.85rem; font-size: 1.3rem; color: var(--brand-steel); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 1rem; color: var(--muted); }

/* ---------- Prose (legal / about) ---------- */
.prose h2 { font-size: 1.6rem; margin-top: 2rem; }
.prose ul { padding-left: 1.25rem; }
.todo-banner {
  border: 1px dashed var(--warm); background: rgba(243,207,142,0.07); color: var(--text);
  border-radius: 12px; padding: 1rem 1.25rem; margin: 0 0 2rem;
}
.todo-banner strong { color: var(--warm); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 2.5rem 0; color: var(--muted); font-size: 0.93rem; margin-top: auto; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; }
.site-footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; margin: 0; padding: 0; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }

/* ---------- 404 ---------- */
.lost { min-height: 70vh; display: grid; place-items: center; text-align: center; position: relative; overflow: hidden; }
.lost .container { position: relative; z-index: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
.lost [data-center]{justify-content:center}
.app-hero-copy { max-width: 600px; }
.page-hero .app-hero-copy h1 { margin-bottom: 0.4em; }
@media (max-width: 860px) {
  .page-hero:has(canvas[data-mode="orbit"]) { padding-top: 240px; }
}
@media (min-width: 861px) {
  .page-hero:has(canvas[data-mode="orbit"]) { min-height: 480px; display: flex; align-items: center; }
}
.site-footer p { margin: 0; }

.legal-line { font-size: 11px; line-height: 1.4; color: var(--muted); }

/* Review 29 Oct 2026: touch targets, phone CTAs, legal line contrast, wide tables never widen the page */
.site-footer ul a, .site-footer p a { display: inline-flex; align-items: center; min-height: 44px; }
.btn { min-height: 44px; }
.brand { min-height: 44px; }
@media (max-width: 480px) { .btn-row .btn { flex: 1 1 100%; } }
.legal-line { color: #b9c9d6; }
.nav-toggle { min-height: 44px; min-width: 44px; }
main a { text-underline-offset: 3px; }
html, body { max-width: 100%; overflow-x: clip; }

/* ---------- LodeLux coming soon + preview portal (30 Oct 2026) ---------- */
.soon-badge { display: inline-block; border: 1px solid rgba(243,207,142,0.55); color: var(--warm); border-radius: 999px; padding: 0.2rem 0.75rem; }
.btn-email { overflow-wrap: anywhere; white-space: normal; text-align: center; max-width: 100%; }
.portal { border-bottom: 0; min-height: calc(100vh - 72px); min-height: calc(100dvh - 72px); display: flex; align-items: center; }
.portal-wrap { display: grid; place-items: center; width: 100%; }
.portal-card {
  width: 100%; max-width: 460px; text-align: center;
  background: rgba(6,11,23,0.82); border: 1px solid var(--line); border-radius: calc(var(--radius) + 8px);
  padding: clamp(1.5rem, 6vw, 2.5rem);
}
.portal-card h1 { margin: 0.2em 0 0.35em; }
.portal-card .lead { font-size: 1.05rem; }
.portal-logo {
  width: 88px; height: 88px; margin: 0 auto 1.25rem; border-radius: 50%;
  background: var(--brand-white); display: grid; place-items: center;
  box-shadow: 0 0 0 8px rgba(255,255,255,0.04), 0 0 40px 8px rgba(243, 207, 142, 0.24);
}
.portal-logo img { width: 74%; height: auto; }
.portal-form { display: grid; gap: 0.6rem; text-align: left; margin: 1.5rem 0 1rem; }
.portal-form label { font-weight: 600; font-size: 0.95rem; }
.portal-form input[type="password"] {
  width: 100%; min-height: 48px; background: rgba(6,11,23,0.6); color: var(--text);
  border: 1px solid var(--line); border-radius: 999px; padding: 0.75rem 1.15rem; font: inherit; font-size: 16px;
}
.portal-form input:focus { outline: none; box-shadow: var(--focus); }
.portal-form input[aria-invalid="true"] { border-color: #f0a58f; }
.portal-form .btn { width: 100%; justify-content: center; min-height: 48px; }
.portal-form .btn[disabled] { opacity: 0.7; cursor: progress; }
.portal-form .form-status { text-align: center; }

.social-title { font-size: 1.05rem; margin: 1.25rem 0 0.25rem; }
.social-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
.social-links a { display: inline-flex; align-items: center; min-height: 44px; }
.btn-email { white-space: nowrap; overflow-wrap: normal; font-size: clamp(0.82rem, 3.7vw, 1rem); padding-left: 1.1rem; padding-right: 1.1rem; }
.container.narrow > .card + .card { margin-top: 1.25rem; }

/* ---------- LodeLux waitlist (30 Oct 2026) ---------- */
.notify.waitlist { margin-top: clamp(1.5rem, 4vw, 2.5rem); }
.notify.waitlist h3 { margin-top: 0; }
.waitlist-form { display: grid; gap: 0.6rem; margin-top: 1rem; max-width: 34rem; }
.waitlist-form label { font-weight: 600; font-size: 0.95rem; }
.waitlist-form input[type="email"] {
  width: 100%; min-width: 0; min-height: 48px; background: rgba(6,11,23,0.6); color: var(--text);
  border: 1px solid var(--line); border-radius: 999px; padding: 0.75rem 1.15rem; font: inherit; font-size: 16px;
}
.waitlist-form input[type="email"]:focus { outline: none; box-shadow: var(--focus); }
.waitlist-form input[aria-invalid="true"] { border-color: #f0a58f; }
.waitlist-form .consent { display: flex; align-items: flex-start; gap: 0.6rem; }
.waitlist-form .consent input { width: 24px; height: 24px; margin: 0.1rem 0 0; flex: 0 0 auto; accent-color: var(--warm); }
.waitlist-form .consent input[aria-invalid="true"] { outline: 2px solid #f0a58f; outline-offset: 2px; }
.waitlist-form .consent label { font-weight: 400; }
.waitlist-form .form-note { margin: 0; }
.waitlist-form .btn { justify-self: start; min-height: 48px; }
.waitlist-form .btn[disabled] { opacity: 0.7; cursor: progress; }
.waitlist-form .form-status[data-kind="error"] { color: #f0a58f; }
.waitlist-form .form-status[data-kind="ok"] { color: var(--text); background: rgba(243,207,142,0.08); border: 1px solid rgba(243,207,142,0.35); border-radius: var(--radius); padding: 0.85rem 1rem; }
.waitlist-form.done label, .waitlist-form.done input, .waitlist-form.done .consent, .waitlist-form.done .btn, .waitlist-form.done .form-note { display: none; }
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hp input, .hp label { width: 1px; height: 1px; padding: 0; border: 0; }
.waitlist-form { position: relative; }
.portal-waitlist { border-top: 1px solid var(--line); margin-top: 1.25rem; padding-top: 1rem; text-align: left; }
.portal-waitlist .btn { width: 100%; justify-content: center; }
@media (max-width: 480px) { .waitlist-form .btn { width: 100%; justify-content: center; } }
.waitlist-form[hidden], [data-waitlist-closed][hidden] { display: none !important; }
