/* ============================================================
   Lull — site.css
   Shared dark system for the marketing site + guides.
   Canvas #06080C · Amber #F2B45A · Amber-bright #FBD79B
   Muted #AEB3C0 · Sora · crescent-moon motif
   NOTE: legal pages (/privacy /terms /support) use style.css.
   ============================================================ */

:root {
  --canvas: #06080C;
  --surface: #0B101A;
  --surface-2: #0E1420;
  --ink: #EDEFF4;
  --muted: #AEB3C0;
  --amber: #F2B45A;
  --amber-bright: #FBD79B;
  --amber-ink: #2A1A05;            /* text on amber */
  --line: rgba(174, 179, 192, 0.16);
  --line-soft: rgba(174, 179, 192, 0.09);
  --amber-line: rgba(242, 180, 90, 0.4);
  --glow: rgba(242, 180, 90, 0.14);
  --radius: 16px;
  --font: "Sora", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ---------- Reset & base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 112.5%;               /* 1rem = 18px */
  color-scheme: dark;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, figure, ul, ol, dl { margin: 0; }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--amber-bright); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--amber); }

::selection { background: rgba(242, 180, 90, 0.32); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Layout primitives ---------- */

.container {
  width: min(1140px, 100% - 2.5rem);
  margin-inline: auto;
}

.section { padding-block: clamp(3.5rem, 9vw, 6.5rem); }
.section--rule { border-top: 1px solid var(--line-soft); }

.section-head {
  text-align: center;
  max-width: 46rem;
  margin: 0 auto clamp(2.25rem, 5vw, 3.5rem);
}
.section-head p:not(.eyebrow) {
  color: var(--muted);
  margin-top: 0.9rem;
  font-size: 1.05rem;
}

.eyebrow {
  display: block;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

h2 {
  font-size: clamp(1.65rem, 3.5vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h3 {
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.accent { font-style: normal; color: var(--amber-bright); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font);
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: var(--amber);
  color: var(--amber-ink);
  padding: 0.9rem 1.7rem;
  font-size: 1rem;
  box-shadow: 0 0 32px rgba(242, 180, 90, 0.18);
}
.btn-primary:hover {
  background: var(--amber-bright);
  color: var(--amber-ink);
  box-shadow: 0 0 44px rgba(242, 180, 90, 0.3);
}

.btn-pill {
  background: var(--amber);
  color: var(--amber-ink);
  padding: 0.45rem 1.1rem;
  font-size: 0.85rem;
}
.btn-pill:hover { background: var(--amber-bright); color: var(--amber-ink); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 8, 12, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.wordmark:hover { color: var(--ink); }
.wordmark svg { color: var(--amber-bright); flex: none; }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2.5vw, 1.6rem);
}
.site-nav > a:not(.btn) {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}
.site-nav > a:not(.btn):hover { color: var(--ink); }

/* ---------- Hero (moonrise) ---------- */

.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding-block: clamp(4rem, 10vw, 6.5rem) clamp(4.5rem, 10vw, 7rem);
  background:
    radial-gradient(circle 340px at 50% 200px, var(--glow), transparent 70%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 210px;
  translate: -50% -50%;
  border-radius: 50%;
  pointer-events: none;
}
.hero::before {
  width: 34rem;
  height: 34rem;
  border: 1px solid rgba(242, 180, 90, 0.14);
  animation: breathe 12s ease-in-out infinite;
}
.hero::after {
  width: 56rem;
  height: 56rem;
  border: 1px solid rgba(242, 180, 90, 0.07);
}

@keyframes breathe {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.hero > .container { position: relative; }

.hero-icon {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  margin: 0 auto 2rem;
  border: 1px solid var(--line);
  box-shadow: 0 0 60px rgba(242, 180, 90, 0.28);
}

.hero h1 { max-width: 22ch; margin-inline: auto; }

.hero-sub {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 46ch;
  margin: 1.4rem auto 0;
}

.hero-cta { margin-top: 2.25rem; }

.hero-note {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 1.1rem;
}

/* ---------- Screenshots shelf ---------- */

.shots-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(15rem, 70vw);
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 0.25rem 0.25rem 1.25rem;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.shot { scroll-snap-align: center; }

.shot-frame {
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 8px;
  background: var(--surface);
}
.shot-frame img { border-radius: 19px; width: 100%; }

.shot figcaption {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 0.7rem;
}

@media (min-width: 1024px) {
  .shots-track {
    grid-auto-flow: row;
    grid-auto-columns: unset;
    grid-template-columns: repeat(5, 1fr);
    overflow-x: visible;
  }
}

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
@media (max-width: 840px) {
  .steps { grid-template-columns: 1fr; }
}

.step {
  border-top: 1px solid var(--line);
  padding-top: 1.4rem;
}
.step-num {
  display: block;
  color: var(--amber);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  margin-bottom: 0.8rem;
}
.step h3 { margin-bottom: 0.6rem; }
.step p { color: var(--muted); font-size: 0.97rem; }

/* ---------- Guide cards ---------- */

.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
@media (max-width: 800px) {
  .guide-grid { grid-template-columns: 1fr; }
}

.guide-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.5rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}
.guide-card:hover {
  border-color: var(--amber-line);
  background: var(--surface-2);
}
.guide-card h3 { color: var(--ink); transition: color 0.25s ease; }
.guide-card:hover h3 { color: var(--amber-bright); }
.guide-card p { color: var(--muted); font-size: 0.95rem; flex-grow: 1; }
.guide-more { color: var(--amber); font-size: 0.88rem; font-weight: 600; }

.guide-group { margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.guide-group:last-child { margin-bottom: 0; }
.guide-group > h2 { margin-bottom: 0.5rem; }
.guide-group-sub { color: var(--muted); margin-bottom: 1.75rem; max-width: 60ch; }

/* ---------- FAQ ---------- */

.faq {
  max-width: 46rem;
  margin-inline: auto;
  border-bottom: 1px solid var(--line);
}

.faq details { border-top: 1px solid var(--line); }

.faq summary {
  cursor: pointer;
  list-style: none;
  position: relative;
  padding: 1.2rem 2.75rem 1.2rem 0;
  font-weight: 600;
  font-size: 1.04rem;
  line-height: 1.45;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0.35rem;
  top: 50%;
  translate: 0 -50%;
  color: var(--amber);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  transition: rotate 0.2s ease;
}
.faq details[open] summary::after { rotate: 45deg; }
.faq summary:hover { color: var(--amber-bright); }

.faq-a { padding: 0.1rem 0 1.5rem; max-width: 66ch; }
.faq-a p { color: var(--muted); }
.faq-a .faq-more {
  display: inline-block;
  margin-top: 0.75rem;
  color: var(--amber);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}
.faq-a .faq-more:hover { color: var(--amber-bright); text-decoration: underline; }

/* ---------- Final CTA band ---------- */

.cta-band {
  position: relative;
  overflow: hidden;
  text-align: center;
  border-top: 1px solid var(--line-soft);
  padding-block: clamp(4rem, 10vw, 6.5rem);
  background: radial-gradient(circle 400px at 50% 115%, var(--glow), transparent 75%);
}
.cta-band .moon-large { color: var(--amber-bright); margin: 0 auto 1.5rem; display: block; width: 44px; height: 44px; }
.cta-band h2 { max-width: 24ch; margin-inline: auto; }
.cta-band p { color: var(--muted); max-width: 46ch; margin: 1.1rem auto 0; }
.cta-band .btn-primary { margin-top: 2rem; }
.cta-band .cta-fine { font-size: 0.88rem; margin-top: 1.1rem; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line-soft);
  padding-block: 3rem 2.5rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.footer-brand { max-width: 30ch; }
.footer-brand p { color: var(--muted); font-size: 0.9rem; margin-top: 0.9rem; }

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  align-items: flex-start;
}
.footer-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
}
.footer-nav a:hover { color: var(--amber-bright); }

.footer-fine {
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-soft);
  opacity: 0.85;
}

/* ---------- Article / guide pages ---------- */

.article-header {
  padding-block: clamp(3.5rem, 8vw, 5.5rem) clamp(2rem, 5vw, 3rem);
  max-width: 46rem;
  margin-inline: auto;
}
.article-header h1 { max-width: 24ch; }
.article-header .dek {
  color: var(--muted);
  font-size: 1.12rem;
  margin-top: 1.25rem;
  max-width: 60ch;
}

.prose {
  max-width: 68ch;
  margin-inline: auto;
  padding-bottom: clamp(3rem, 7vw, 5rem);
}
.prose h2 { margin: 2.75rem 0 1rem; }
.prose h3 { margin: 2rem 0 0.75rem; }
.prose p { margin: 0 0 1.25rem; color: var(--ink); }
.prose p.muted, .prose .muted { color: var(--muted); }
.prose ul, .prose ol { margin: 0 0 1.25rem; padding-left: 1.4rem; }
.prose li { margin-bottom: 0.5rem; }
.prose li::marker { color: var(--amber); }
.prose strong { color: var(--amber-bright); font-weight: 600; }
.prose a { color: var(--amber-bright); }

.callout {
  border: 1px solid var(--amber-line);
  background: rgba(242, 180, 90, 0.06);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  margin: 2rem 0;
}
.callout h3 { color: var(--amber-bright); margin-bottom: 0.6rem; }
.callout p { margin-bottom: 0.75rem; }
.callout p:last-child { margin-bottom: 0; }

.refs {
  border-top: 1px solid var(--line);
  margin-top: 3rem;
  padding-top: 1.5rem;
}
.refs h2 { font-size: 1.05rem; margin: 0 0 0.75rem; }
.refs ol { font-size: 0.88rem; color: var(--muted); }
.refs li { margin-bottom: 0.4rem; }

/* ---------- Motion & accessibility ---------- */

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