:root {
  --bg: #0a0e1a;
  --bg2: #0d1526;
  --copper: #b87333;
  --copper-l: #c9956b;
  --white: #f5f5f0;
  --muted: rgba(245, 245, 240, 0.68);
  --blue: #4f8bd6;
  --line: rgba(201, 149, 107, 0.28);
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: Inter, 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--white);
  font-family: var(--sans); font-weight: 300; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--copper-l); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { font-family: var(--serif); font-weight: 300; line-height: 1.08; margin: 0; letter-spacing: 0.005em; }
h1 { font-size: clamp(2.8rem, 9vw, 5.2rem); }
h2 { font-size: clamp(2.1rem, 6vw, 3.4rem); }
h1 em, h2 em { font-style: italic; color: var(--copper-l); }
.eyebrow { font-size: 0.72rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--copper-l); margin: 0 0 1.4rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem clamp(1.25rem, 5vw, 3.5rem);
  background: rgba(10, 14, 26, 0.82); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 149, 107, 0.12);
}
.wordmark { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; font-family: var(--serif); font-size: 1.15rem; letter-spacing: 0.34em; font-weight: 400; }
.moon-icon { width: 20px; height: 20px; color: var(--copper-l); }
.moon-icon.big { width: 34px; height: 34px; margin: 0 auto 1.5rem; }
.header-link { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none; color: var(--copper-l); border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.header-link .short { display: none; }
.header-link:hover { color: var(--white); }

/* Hero */
.hero {
  position: relative; display: grid; gap: 2.5rem;
  padding: 2.5rem clamp(1.25rem, 5vw, 3.5rem) 2.25rem;
  background: radial-gradient(ellipse at 70% 30%, rgba(79, 139, 214, 0.14), transparent 60%), var(--bg);
}
.hero-media { order: -1; }
.hero-media { position: relative; }
.hero-media::after { content: ''; position: absolute; left: 8%; right: 8%; bottom: -28px; height: 60px; z-index: 0; background: radial-gradient(ellipse at center, rgba(79, 139, 214, 0.35), rgba(201, 149, 107, 0.18) 55%, transparent 75%); filter: blur(22px); pointer-events: none; }
.hero-media img { position: relative; z-index: 1; display: block; width: 100%; height: auto; object-fit: contain; border-radius: 4px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }
.subhead { color: var(--muted); font-size: 1.05rem; max-width: 34em; margin: 1.5rem 0 2rem; }

/* Moon-phase line */
.phases { display: flex; align-items: center; justify-content: center; gap: clamp(1.2rem, 6vw, 3.5rem); position: relative; margin-top: 0.25rem; }
.phases::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); }
.phase { position: relative; width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--copper-l); background: var(--bg); box-shadow: 0 0 0 8px var(--bg); }
.phase::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--copper-l); clip-path: inset(0 0 0 100%); }
.phase.p2::after { clip-path: inset(0 0 0 55%); }
.phase.p3::after { clip-path: inset(0); }
.phase.p4::after { clip-path: inset(0 55% 0 0); }
.phase.p5::after { clip-path: inset(0 100% 0 0); }

/* Form */
.signup { max-width: 30rem; }
.cta .signup { margin: 2rem auto 0; }
.field { display: flex; flex-direction: column; gap: 0.7rem; }
input[type="email"], input[type="tel"], input[type="text"], textarea {
  width: 100%; padding: 1rem 1.1rem; font: inherit; font-size: 1rem; color: var(--white);
  background: rgba(245, 245, 240, 0.04); border: 1px solid rgba(245, 245, 240, 0.22); border-radius: 2px;
}
input::placeholder, textarea::placeholder { color: rgba(245, 245, 240, 0.4); }
input:focus-visible, textarea:focus-visible { border-color: var(--copper-l); outline-offset: 1px; }
input[aria-invalid="true"] { border-color: #e08a7a; }
button[type="submit"] {
  white-space: nowrap; flex-shrink: 0;
  padding: 1rem 1.6rem; font: inherit; font-size: 0.78rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; cursor: pointer;
  color: #0a0e1a; background: linear-gradient(135deg, var(--copper-l), var(--copper)); border: 0; border-radius: 2px; transition: filter 0.3s, transform 0.3s;
}
button[type="submit"]:hover:not(:disabled) { filter: brightness(1.12); }
button[type="submit"]:disabled { opacity: 0.6; cursor: progress; }
.perk { margin: 0.9rem 0 0; font-size: 0.85rem; color: var(--copper-l); }
.status { min-height: 1.4em; margin: 0.6rem 0 0; font-size: 0.92rem; }
.status.success { color: #9ec3f0; }
.status.error { color: #e8a090; }
.signup.done .status.success { font-family: var(--serif); font-size: 1.35rem; line-height: 1.3; margin-top: 0.4rem; }
.consent { margin: 0.3rem 0 0; font-size: 0.78rem; color: rgba(245, 245, 240, 0.78); }

[hidden] { display: none !important; }
.consent a { color: var(--copper-l); }

/* Why */
.why { display: grid; gap: 2.5rem; padding: 2.75rem clamp(1.25rem, 5vw, 3.5rem) 3.5rem; background: var(--bg2); align-items: center; }
.why-media img { width: 100%; max-width: 32rem; margin: 0 auto; border-radius: 4px; }
.why-copy p { color: var(--muted); max-width: 34em; }
.why-copy h2 { margin-bottom: 1.5rem; }
.why-emphasis { font-family: var(--serif); font-size: clamp(1.15rem, 2.4vw, 1.45rem); line-height: 1.35; color: var(--copper-l); margin: 0 0 1.25rem; max-width: 34em; }
.points { list-style: none; padding: 0; margin: 1.8rem 0; }
.points li { padding: 0.85rem 0 0.85rem 1.8rem; border-top: 1px solid var(--line); position: relative; font-family: var(--serif); font-size: 1.3rem; }
.points li:last-child { border-bottom: 1px solid var(--line); }
.points li::before { content: ''; position: absolute; left: 0; top: 1.35rem; width: 9px; height: 9px; border-radius: 50%; background: var(--copper-l); box-shadow: 0 0 10px rgba(201, 149, 107, 0.7); }
.small { font-size: 0.85rem; }

/* Ritual */
.ritual { padding: 3rem clamp(1.25rem, 5vw, 3.5rem) 5rem; text-align: center; background: linear-gradient(var(--bg2), var(--bg)); }
.steps { list-style: none; margin: 3.5rem auto 0; padding: 0; display: grid; gap: 3rem; max-width: 64rem; }
.steps li { padding: 0 1rem; }
.moon-step { width: 44px; height: 44px; color: var(--copper-l); margin: 0 auto 1rem; }
.num { display: block; font-size: 0.72rem; letter-spacing: 0.3em; color: var(--copper); margin-bottom: 0.6rem; }
.steps h3 { font-size: 2rem; margin-bottom: 0.7rem; }
.steps p { color: var(--muted); margin: 0 auto; max-width: 22em; }

/* CTA */
.cta { padding: 5.5rem clamp(1.25rem, 5vw, 3.5rem); text-align: center; background: radial-gradient(ellipse at 50% 0%, rgba(79, 139, 214, 0.16), transparent 65%), var(--bg2); border-top: 1px solid var(--line); }
.cta p { color: var(--muted); max-width: 30em; margin: 1.2rem auto 0; }
.cta .field, .cta .consent, .cta .status { text-align: left; }
.cta .status { text-align: center; }
.cta .consent { text-align: center; }

/* Footer */
.site-footer { padding: 2.5rem clamp(1.25rem, 5vw, 3.5rem); font-size: 0.8rem; color: rgba(245, 245, 240, 0.55); border-top: 1px solid rgba(201, 149, 107, 0.12); }
.foot-row { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; justify-content: space-between; }
.foot-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.75rem; }
.foot-row a { color: var(--copper-l); text-decoration: none; }
.foot-row a:hover { color: var(--white); }
.legal { margin: 1.2rem 0 0; font-size: 0.78rem; color: rgba(245, 245, 240, 0.7); max-width: 52em; }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.9s ease, transform 0.9s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 480px) {
  .header-link .full { display: none; }
  .header-link .short { display: inline; }
}

/* Tablet+ */
@media (min-width: 600px) {
  .field { flex-direction: row; }
  .field input { flex: 1; }
  .steps { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 960px) {
  .hero { grid-template-columns: 1fr 1.25fr; align-items: center; gap: 4rem; padding-top: 4rem; padding-bottom: 2.5rem; min-height: calc(100vh - 62px); }
  .hero-media { order: 0; }
  .phases { grid-column: 1 / -1; }
  .why { grid-template-columns: 1fr 1fr; gap: 6rem; padding-top: 3.5rem; padding-bottom: 4.5rem; }
  .ritual { padding-top: 3.5rem; padding-bottom: 6rem; }
  .cta { padding-top: 6rem; padding-bottom: 7rem; }
}

/* Inner pages */
.page { padding: 3.5rem clamp(1.25rem, 5vw, 3.5rem) 5rem; background: radial-gradient(ellipse at 70% 0%, rgba(79, 139, 214, 0.12), transparent 60%), var(--bg); }
.page-hero { max-width: 44rem; margin: 0 auto 2.5rem; }
.page-hero h1 { font-size: clamp(2.4rem, 7vw, 4rem); }
.page-hero .lead { color: var(--muted); font-size: 1.05rem; margin: 1.2rem 0 0; }
.prose { max-width: 44rem; margin: 0 auto; color: var(--muted); font-size: 1rem; line-height: 1.75; }
.prose h2 { font-size: clamp(1.7rem, 4vw, 2.2rem); color: var(--white); margin: 3rem 0 1rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.prose h3 { font-size: 1.4rem; color: var(--copper-l); margin: 2rem 0 0.6rem; }
.prose p { margin: 0 0 1.1rem; }
.prose ul { padding-left: 1.3rem; margin: 0 0 1.2rem; }
.prose li { margin-bottom: 0.45rem; }
.prose a, .contact-email a { color: var(--copper-l); }
.prose strong { color: var(--white); font-weight: 500; }
.updated { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--copper-l); margin: 0 0 1rem; }

/* Contact */
.contact-email { max-width: 44rem; margin: 0 auto 2.5rem; padding: 1.4rem 1.5rem; border: 1px solid var(--line); border-radius: 2px; background: rgba(245, 245, 240, 0.03); }
.contact-email .label { display: block; font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--copper-l); margin-bottom: 0.3rem; }
.contact-email a { font-family: var(--serif); font-size: clamp(1.5rem, 5vw, 2.1rem); text-decoration: none; word-break: break-all; }
.contact-form { max-width: 44rem; margin: 0 auto; display: grid; gap: 1.2rem; }
.contact-form label { display: block; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.4rem; }
.contact-form .opt { text-transform: none; letter-spacing: 0; opacity: 0.7; }
.contact-form textarea { min-height: 9rem; resize: vertical; font-family: inherit; }
.contact-form button[type="submit"] { justify-self: start; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.note { max-width: 44rem; margin: 2rem auto 0; font-size: 0.8rem; color: rgba(245, 245, 240, 0.45); }
.btn-link { display: inline-block; margin-top: 1.5rem; padding: 1rem 1.6rem; font-size: 0.78rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none; color: #0a0e1a !important; background: linear-gradient(135deg, var(--copper-l), var(--copper)); border-radius: 2px; }
