/* ============================================================
   One Leap Forward — Sunrise design system
   Palette:
     --ink     #241512  pre-dawn, near-black warm brown
     --plum    #5B3A52  twilight transition
     --ember   #E8592C  main orange accent
     --gold    #F2A93C  sunlight gold
     --coral   #FF8B63  warm highlight
     --cream   #FFF3E4  soft daylight background
     --paper   #FFFBF6  card / content surface
   Type:
     Display — 'Fraunces' (warm, humanist serif, used with restraint)
     Body    — 'Inter'
     Utility — 'Space Mono' (eyebrows, labels, timestamps)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

:root {
  --ink: #241512;
  --plum: #5B3A52;
  --ember: #E8592C;
  --gold: #F2A93C;
  --coral: #FF8B63;
  --cream: #FFF3E4;
  --paper: #FFFBF6;
  --line: rgba(36, 21, 18, 0.12);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Space Mono', 'Courier New', monospace;

  --radius: 18px;
  --max-width: 1120px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: inherit; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- focus & a11y ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--ember);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 18px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 251, 246, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink);
  opacity: 0.75;
  transition: opacity 0.15s ease;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  opacity: 1;
}

.nav-cta {
  background: var(--ember);
  color: var(--paper) !important;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 600;
  opacity: 1 !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(232, 89, 44, 0.35);
}

/* ---------- hero / sunrise banner ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--ink) 0%, var(--plum) 38%, var(--ember) 72%, var(--gold) 100%);
  color: var(--paper);
  padding-top: 96px;
}

.hero-sky {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-sun {
  position: absolute;
  left: 50%;
  bottom: -18%;
  width: 340px;
  height: 340px;
  margin-left: -170px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, #FFE3B0 0%, var(--gold) 45%, var(--ember) 100%);
  box-shadow: 0 0 120px 40px rgba(242, 169, 60, 0.35);
  animation: rise 2.4s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.2s;
}

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

.hero-horizon {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 26%;
  height: 1px;
  background: rgba(255, 251, 246, 0.35);
}

.hero-rays {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  mix-blend-mode: overlay;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 96px 0 160px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(36, 21, 18, 0.35);
  border: 1px solid rgba(255, 251, 246, 0.25);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 28px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 auto 24px;
  max-width: 820px;
}

.hero .lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  max-width: 560px;
  margin: 0 auto 40px;
  color: rgba(255, 251, 246, 0.88);
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  font-family: var(--font-body);
}

.btn-primary {
  background: var(--paper);
  color: var(--ink);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.btn-ghost {
  background: transparent;
  color: var(--paper);
  border-color: rgba(255, 251, 246, 0.45);
}
.btn-ghost:hover {
  background: rgba(255, 251, 246, 0.12);
}

.btn-ember {
  background: var(--ember);
  color: var(--paper);
}
.btn-ember:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(232, 89, 44, 0.4);
}

/* ---------- sections ---------- */
.section {
  padding: 96px 0;
}

.section-tight {
  padding: 72px 0;
}

.section-head {
  max-width: 640px;
  margin: 0 0 56px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ember);
  margin: 0 0 14px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  line-height: 1.15;
}

.section-head p {
  color: rgba(36, 21, 18, 0.72);
  font-size: 1.05rem;
  margin: 0;
}

/* pillars / cards */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pillar {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pillar:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(36, 21, 18, 0.08);
}

.pillar-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
}

.pillar h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 10px;
}

.pillar p {
  margin: 0;
  color: rgba(36, 21, 18, 0.7);
  font-size: 0.98rem;
}

/* horizon divider */
.horizon-divider {
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--ember), var(--coral));
  border: none;
  margin: 0;
}

/* ritual steps */
.ritual {
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}

.ritual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 120%, rgba(242, 169, 60, 0.28), transparent 60%);
  pointer-events: none;
}

.ritual .section-head p {
  color: rgba(255, 251, 246, 0.7);
}
.ritual .section-eyebrow {
  color: var(--gold);
}
.ritual .section-head h2 {
  color: var(--paper);
}

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  counter-reset: step;
}

.step {
  border-left: 1px solid rgba(255, 251, 246, 0.2);
  padding-left: 24px;
}

.step-number {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--gold);
  margin-bottom: 14px;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 10px;
}

.step p {
  margin: 0;
  color: rgba(255, 251, 246, 0.72);
  font-size: 0.96rem;
}

/* quote block */
.quote-block {
  background: linear-gradient(120deg, var(--coral), var(--ember) 55%, var(--plum));
  border-radius: var(--radius);
  padding: 56px;
  color: var(--paper);
  text-align: center;
}

.quote-block blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  font-weight: 500;
  line-height: 1.35;
  margin: 0 0 20px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.quote-block cite {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.85;
}

/* signup band */
.signup {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.signup-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.signup h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 600;
  margin: 0 0 10px;
  max-width: 420px;
}

.signup p {
  margin: 0;
  color: rgba(36, 21, 18, 0.7);
  max-width: 420px;
}

.signup-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.signup-form input[type="email"] {
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--cream);
  font-family: var(--font-body);
  font-size: 0.95rem;
  min-width: 260px;
}

.form-note {
  font-size: 0.82rem;
  color: rgba(36, 21, 18, 0.5);
  margin-top: 10px;
  width: 100%;
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255, 251, 246, 0.75);
  padding: 56px 0 32px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 251, 246, 0.14);
  margin-bottom: 24px;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--paper);
  margin: 0 0 10px;
}

.footer-tag {
  max-width: 320px;
  font-size: 0.92rem;
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin: 0 0 14px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  text-decoration: none;
  color: rgba(255, 251, 246, 0.75);
  font-size: 0.92rem;
  transition: color 0.15s ease;
}
.footer-col a:hover { color: var(--paper); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: rgba(255, 251, 246, 0.5);
}

/* ---------- legal pages ---------- */
.legal-hero {
  background: linear-gradient(180deg, var(--ink), var(--plum) 70%, var(--ember) 130%);
  color: var(--paper);
  padding: 88px 0 64px;
}

.legal-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600;
  margin: 0 0 14px;
}

.legal-hero .updated {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--gold);
}

.legal-body {
  padding: 64px 0 96px;
}

.legal-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: 96px;
  border-left: 2px solid var(--line);
  padding-left: 20px;
}

.legal-toc h2 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ember);
  margin: 0 0 16px;
}

.legal-toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.legal-toc a {
  text-decoration: none;
  color: rgba(36, 21, 18, 0.68);
  font-size: 0.92rem;
}
.legal-toc a:hover { color: var(--ember); }

.legal-content h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  margin: 44px 0 14px;
  scroll-margin-top: 100px;
}
.legal-content h2:first-child { margin-top: 0; }

.legal-content p,
.legal-content li {
  color: rgba(36, 21, 18, 0.78);
  font-size: 0.98rem;
}

.legal-content ul, .legal-content ol {
  padding-left: 22px;
}

.legal-content a {
  color: var(--ember);
  text-decoration: underline;
}

.legal-callout {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--ember);
  border-radius: 10px;
  padding: 20px 24px;
  font-size: 0.92rem;
  color: rgba(36, 21, 18, 0.75);
  margin-bottom: 40px;
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .pillars { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: static; border-left: none; padding-left: 0; border-top: 2px solid var(--line); padding-top: 16px; }
  .nav-links { gap: 16px; }
  .quote-block { padding: 36px 24px; }
}

@media (max-width: 620px) {
  .nav-links span.nav-label { display: none; }
  .signup-inner { flex-direction: column; align-items: flex-start; }
  .footer-top { flex-direction: column; }
}
