:root {
  --night: #17142d;
  --night-2: #211c3c;
  --cream: #fff9ec;
  --paper: #f6edda;
  --ink: #211f2b;
  --muted: #6e6876;
  --lavender: #b9a8ff;
  --sun: #ffc96b;
  --line: rgba(33,31,43,.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: "Manrope", sans-serif; line-height: 1.55; }
button, input, select { font: inherit; }
a { color: inherit; }
.shell { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.header { height: 92px; display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 5; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 18px; }
.brand img { width: 42px; height: 42px; filter: drop-shadow(0 6px 12px rgba(34,26,80,.16)); }
.header-link { font-size: 14px; font-weight: 700; text-underline-offset: 5px; }
.hero { min-height: 690px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 70px; align-items: center; margin-top: 18px; margin-bottom: 80px; padding: 72px 64px; border-radius: 42px; background: linear-gradient(90deg, rgba(12,25,68,.98) 0%, rgba(14,29,75,.87) 37%, rgba(14,28,71,.12) 72%), url('assets/hero-story-v2.png') center/cover no-repeat; color: white; overflow: hidden; position: relative; box-shadow: 0 38px 90px rgba(21,30,74,.28); }
.hero:after { content: ""; position: absolute; inset: auto -5% -24% 33%; height: 45%; background: radial-gradient(ellipse, rgba(255,186,87,.35), transparent 67%); pointer-events: none; }
.hero-copy { position: relative; z-index: 2; }
.hero-eyebrow { color: #ffd475; }
.eyebrow { margin: 0 0 16px; text-transform: uppercase; letter-spacing: .17em; font-size: 12px; font-weight: 700; color: #7765c7; }
h1, h2 { font-family: "Prata", serif; font-weight: 400; line-height: 1.12; margin: 0; }
h1 { max-width: 720px; font-size: clamp(46px, 6vw, 78px); letter-spacing: -.035em; }
h2 { font-size: clamp(34px, 4.5vw, 58px); letter-spacing: -.025em; }
.lead { max-width: 620px; margin: 26px 0 0; font-size: 19px; color: rgba(255,255,255,.8); }
.hero-actions { display: flex; align-items: center; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.button { min-height: 52px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; text-decoration: none; font-weight: 700; transition: transform .2s, box-shadow .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.primary { background: linear-gradient(135deg, #ff765b, #ef4f69); color: #fff; box-shadow: 0 12px 30px rgba(239,79,105,.28); }
.hero .ghost { background: rgba(255,255,255,.13); border-color: rgba(255,255,255,.28); color: white; backdrop-filter: blur(12px); }
.play-icon { color: #7f69e4; font-size: 13px; }
.microcopy { margin-top: 18px; color: rgba(255,255,255,.62); font-size: 12px; }
.night-card { align-self: end; min-height: 230px; padding: 20px; color: white; position: relative; z-index: 2; }
.night-card:before, .night-card:after { content: "✦"; position: absolute; color: rgba(255,255,255,.6); font-size: 13px; }
.night-card:before { left: 18%; top: 22%; }.night-card:after { right: 16%; top: 42%; }
.moon { display: none; width: 190px; height: 190px; border-radius: 50%; background: #ffe5a0; margin: 42px auto 40px; box-shadow: 0 0 70px rgba(255,216,120,.24); position: relative; }
.moon span { position: absolute; width: 190px; height: 190px; border-radius: 50%; background: #282248; left: 45px; top: -16px; }
.story-chip { position: absolute; top: 0; right: 20px; padding: 8px 12px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; font-size: 11px; color: rgba(255,255,255,.86); background: rgba(24,34,82,.36); backdrop-filter: blur(12px); }
.story-player { position: absolute; inset: auto 0 0; padding: 23px; border: 1px solid rgba(255,255,255,.22); border-radius: 24px; background: rgba(20,29,70,.62); backdrop-filter: blur(18px); box-shadow: 0 18px 50px rgba(0,0,0,.25); }
.story-player span, .story-player small { display: block; color: rgba(255,255,255,.6); font-size: 11px; }
.story-player strong { display: block; margin-top: 4px; font-size: 18px; }
.story-player small { margin-top: 13px; }
.wave { height: 28px; display: flex; align-items: center; gap: 5px; margin: 20px 0 4px; }
.wave i { width: 3px; height: 10px; border-radius: 5px; background: var(--lavender); animation: wave 1.2s ease-in-out infinite alternate; }
.wave i:nth-child(2n) { height: 24px; animation-delay: -.5s; }.wave i:nth-child(3n) { height: 17px; animation-delay: -.8s; }
@keyframes wave { to { transform: scaleY(.35); opacity: .45; } }
.ritual { padding-block: 105px 130px; }
.section-intro { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 55px; }
.section-intro h2 { max-width: 690px; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 0; margin: 0; }
.steps li { padding: 34px; border-radius: 24px; background: #ffddae; min-height: 250px; }
.steps li:nth-child(2) { background: #d9cdfd; }
.steps li:nth-child(3) { background: #bde6db; }
.steps span { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.55); color: #5b4d8e; font-size: 12px; font-weight: 700; }
.steps h3 { margin: 64px 0 10px; font-size: 18px; }
.steps p { margin: 0; color: var(--muted); font-size: 14px; }
.promise { padding: 120px 0; background: linear-gradient(135deg, #201b47, #3b2f77); color: white; position: relative; overflow: hidden; }
.promise:after { content: "✦"; position: absolute; right: 8%; top: 12%; color: #ffc96b; font-size: 110px; opacity: .14; }
.promise .eyebrow { color: #ffc96b; }
.promise-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 100px; align-items: start; }
.promise-list p { margin: 0; padding: 25px 0; border-bottom: 1px solid rgba(255,255,255,.16); color: rgba(255,255,255,.66); }
.promise-list p:first-child { padding-top: 0; }.promise-list b { color: white; }
.request { display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; padding-block: 130px; align-items: start; }
.request-copy > p:not(.eyebrow) { color: var(--muted); margin-top: 24px; }
.privacy-note { margin-top: 30px; padding: 18px; border-radius: 14px; background: #efe8ff; color: #5c5278; font-size: 13px; display: flex; gap: 10px; }
.privacy-note span { color: #7d68e5; font-weight: 700; }
.story-form { padding: 36px; border: 1px solid var(--line); background: white; border-radius: 24px; box-shadow: 0 22px 60px rgba(48,40,72,.08); }
.story-form label, .story-form legend { display: block; font-size: 13px; font-weight: 700; }
.story-form input, .story-form select { width: 100%; height: 52px; margin-top: 8px; padding: 0 15px; border: 1px solid #dcd7cf; border-radius: 12px; background: #fffcf6; outline: none; }
.story-form input:focus, .story-form select:focus { border-color: #8c77e8; box-shadow: 0 0 0 3px rgba(140,119,232,.12); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 18px 0; }
.story-form fieldset { border: 0; padding: 0; margin: 18px 0; }
.topics { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.topics label input { position: absolute; opacity: 0; pointer-events: none; }
.topics label span { display: inline-flex; padding: 10px 13px; border-radius: 999px; border: 1px solid #ddd7cc; font-weight: 600; cursor: pointer; }
.topics input:checked + span { color: #fff; background: linear-gradient(135deg, #7460cf, #9b70e8); border-color: #7460cf; box-shadow: 0 6px 14px rgba(116,96,207,.2); }
.story-form > label + label { margin-top: 18px; }
.story-form label small { color: var(--muted); font-weight: 500; }
.honey { position: absolute !important; left: -9999px !important; opacity: 0 !important; }
.consent { display: flex !important; gap: 10px; align-items: start; margin: 18px 0; color: var(--muted); font-weight: 500 !important; line-height: 1.45; }
.consent input { width: 17px; height: 17px; margin: 2px 0 0; flex: 0 0 auto; }
.prototype-note { margin: 18px 0; padding: 15px 16px; border-radius: 13px; background: #fff1cc; color: #6d5b2f; font-size: 12px; line-height: 1.5; }
.submit { width: 100%; border: 0; }
.form-status { min-height: 20px; margin: 14px 0 0; color: #4d7a5b; font-size: 13px; text-align: center; }
.form-status.error { color: #a83e4e; }
.footer { min-height: 120px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 25px; }
.footer p { color: var(--muted); font-size: 12px; }
.footer p a { text-underline-offset: 4px; }
.legal { max-width: 780px; padding-block: 70px 110px; }
.legal h1 { font-size: clamp(40px, 7vw, 72px); }
.legal h2 { margin-top: 44px; font-family: "Manrope", sans-serif; font-size: 21px; font-weight: 700; }
.legal p, .legal li { color: var(--muted); }
.sky { pointer-events: none; position: absolute; inset: 0 0 auto; height: 680px; overflow: hidden; }
.sky span { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: #baa8ff; opacity: .35; }
.sky span:nth-child(1) { left: 6%; top: 28%; }.sky span:nth-child(2) { left: 41%; top: 15%; }.sky span:nth-child(3) { left: 47%; top: 65%; }.sky span:nth-child(4) { right: 4%; top: 17%; }

@media (max-width: 820px) {
  .shell { width: min(100% - 28px, 620px); }
  .header { height: 74px; }.header-link { font-size: 12px; }
  .hero { grid-template-columns: 1fr; gap: 50px; padding: 54px 34px 34px; background-position: 61% center; }
  h1 { font-size: clamp(42px, 13vw, 62px); }
  .lead { font-size: 17px; }
  .night-card { min-height: 230px; }
  .moon { width: 150px; height: 150px; }.moon span { width: 150px; height: 150px; }
  .ritual, .request { padding-block: 85px; }
  .section-intro { display: block; }
  .steps { grid-template-columns: 1fr; }
  .steps h3 { margin-top: 28px; }
  .promise { padding-block: 85px; }
  .promise-grid, .request { grid-template-columns: 1fr; gap: 55px; }
  .story-form { padding: 24px; }
}

@media (max-width: 470px) {
  .hero-actions { align-items: stretch; flex-direction: column; }.button { width: 100%; }
  .hero { padding: 44px 22px 24px; border-radius: 28px; background-position: 64% center; }
  .night-card { padding: 0; }
  .story-chip { right: 0; top: 0; }
  .form-row { grid-template-columns: 1fr; }
  .footer { align-items: flex-start; flex-direction: column; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .wave i { animation: none; } .button { transition: none; } }
