:root {
  --navy-950: #03101f;
  --navy-900: #06182e;
  --navy-800: #0b2747;
  --navy-700: #143d63;
  --cream: #fff4dc;
  --cream-soft: #f6dfb7;
  --gold: #d99d38;
  --gold-bright: #f0bd58;
  --gold-dark: #9a641e;
  --blue-soft: #9ec4df;
  --line: rgba(240, 189, 88, .34);
  --text: #fff8e9;
  --muted: #d8e2ed;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(180deg, rgba(3,16,31,.76), rgba(6,24,46,.72)),
    url("assets/starry-bg.jpg") center / cover no-repeat fixed;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 78% 10%, rgba(59, 130, 196, .28), transparent 25%),
    radial-gradient(circle at 10% 34%, rgba(22, 91, 144, .22), transparent 23%),
    radial-gradient(circle at 50% 0%, rgba(255, 244, 220, .07), transparent 32%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.serif { font-family: Georgia, "Times New Roman", serif; letter-spacing: .01em; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 15px 28px;
  border-radius: 15px;
  background: linear-gradient(180deg, #f6c970, #d99735 62%, #ad681f);
  color: #06182e;
  font-weight: 800;
  font-size: 1rem;
  border: 1px solid rgba(255, 244, 220, .5);
  box-shadow: 0 13px 30px rgba(0,0,0,.32), inset 0 2px 0 rgba(255,255,255,.42), inset 0 -2px 0 rgba(89,47,12,.23);
  transition: transform .18s ease, filter .18s ease;
  text-align: center;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn.small { min-height: 44px; padding: 10px 18px; border-radius: 12px; font-size: .94rem; }

/* ── Navigation ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(3,16,31,.74);
  border-bottom: 1px solid rgba(240, 189, 88, .16);
}
.nav {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  white-space: nowrap;
}
.brand img { width: 46px; height: 46px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3.2vw, 42px);
  font-family: Georgia, "Times New Roman", serif;
}
.nav-links a:not(.btn):hover { color: var(--gold-bright); }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 720px;
  padding: 82px 0 58px;
  border-bottom: 1px solid rgba(240, 189, 88, .2);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, .9fr);
  align-items: center;
  gap: 44px;
}
.hero-copy { position: relative; z-index: 2; overflow: hidden; }
.hero-logo {
  width: 132px;
  margin: 0 0 18px 122px;
  filter: drop-shadow(0 12px 22px rgba(0,0,0,.3));
}
h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.5rem, 7vw, 5.9rem);
  line-height: .92;
  font-weight: 500;
  text-shadow: 0 8px 28px rgba(0,0,0,.45);
}
.title-rule {
  width: min(430px, 70%);
  height: 20px;
  margin: 18px 0 20px;
  background: linear-gradient(90deg, transparent, var(--gold-bright), transparent);
  mask: linear-gradient(#000 0 0) center / 100% 2px no-repeat;
  position: relative;
}
.title-rule::after {
  content: "★";
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -52%);
  color: var(--gold-bright);
  font-size: 1.5rem;
  background: var(--navy-900);
  padding: 0 18px;
}
.tagline {
  color: var(--gold-bright);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.18;
  margin: 0 0 18px;
}
.subhead {
  max-width: 560px;
  color: rgba(255,248,233,.92);
  font-size: 1.2rem;
  line-height: 1.55;
  margin: 0 0 28px;
}
.micro-trust {
  margin-top: 16px;
  color: var(--cream-soft);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-art-wrap {
  position: relative;
  z-index: 3;
  min-height: 610px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.hero-art-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, var(--navy-950) 0%, rgba(3,16,31,.5) 12%, transparent 24%);
}
.hero-art {
  width: min(620px, 100%);
  border-radius: 36px;
  object-fit: cover;
  object-position: center;
  box-shadow: 0 38px 90px rgba(0,0,0,.42);
  border: 1px solid rgba(240,189,88,.18);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 82%, transparent 100%), linear-gradient(180deg, #000 0 82%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0%, #000 82%, transparent 100%), linear-gradient(180deg, #000 0 82%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
.moon-glow {
  position: absolute;
  z-index: 2;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  top: 68px;
  left: 10px;
  background: radial-gradient(circle, rgba(240,189,88,.88), rgba(240,189,88,.12) 58%, transparent 66%);
  opacity: .75;
  filter: blur(.2px);
}

/* ── Sections ── */
section { padding: 62px 0; }
.section-title {
  text-align: center;
  margin: 0 0 38px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  color: var(--cream);
}
.section-title::after {
  content: "";
  display: block;
  width: 110px;
  height: 2px;
  margin: 14px auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ── Steps ── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
}
.step, .benefit-card {
  background: linear-gradient(180deg, rgba(18,57,95,.54), rgba(7,27,51,.7));
  border: 1px solid rgba(240, 189, 88, .25);
  border-radius: 24px;
  padding: 30px 26px;
  box-shadow: 0 20px 44px rgba(0,0,0,.22);
}
.step { text-align: center; position: relative; }
.icon-circle {
  width: 108px;
  height: 108px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(158,196,223,.16);
  border: 1px solid rgba(240,189,88,.3);
  color: var(--gold-bright);
}
.icon-circle svg,
.benefit-card svg,
.privacy-icon svg { width: 58px; height: 58px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.step-number {
  position: absolute;
  top: 105px;
  left: calc(50% - 56px);
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: var(--gold-bright);
  color: var(--navy-950);
  border-radius: 50%;
  font-weight: 900;
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
}
.step h3, .benefit-card h3 {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 500;
}
.step p, .benefit-card p { color: var(--muted); line-height: 1.55; margin: 0; }

/* ── Benefits grid ── */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.benefit-card { min-height: 260px; }
.benefit-card svg { color: var(--gold-bright); width: 64px; height: 64px; margin-bottom: 18px; }

/* ── Privacy panel ── */
.privacy-panel {
  display: grid;
  grid-template-columns: auto 1fr 220px;
  gap: 28px;
  align-items: center;
  padding: 30px;
  border-radius: 24px;
  border: 1px solid rgba(240,189,88,.32);
  background: linear-gradient(90deg, rgba(9,31,58,.9), rgba(16,55,88,.6));
  box-shadow: 0 18px 48px rgba(0,0,0,.22);
  overflow: hidden;
}
.privacy-icon {
  color: var(--gold-bright);
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: rgba(240,189,88,.08);
  border: 1px solid rgba(240,189,88,.2);
}
.privacy-copy h2 {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 3vw, 2.55rem);
  font-weight: 500;
}
.privacy-copy p { color: var(--muted); line-height: 1.55; margin: 0; }
.privacy-copy p + p { margin-top: 6px; }
.privacy-art {
  width: 220px;
  height: 130px;
  object-fit: cover;
  border-radius: 18px;
  opacity: .86;
  mask-image: linear-gradient(90deg, transparent, #000 22%, #000 100%);
}

/* ── Final CTA ── */
.final-cta {
  text-align: center;
  max-width: 1120px;
  margin: 8px auto 0;
  padding: 50px 28px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 10% 90%, rgba(158,196,223,.16), transparent 22%),
    radial-gradient(circle at 88% 18%, rgba(240,189,88,.1), transparent 22%),
    rgba(7,27,51,.66);
  border: 1px solid rgba(240,189,88,.3);
  box-shadow: 0 22px 55px rgba(0,0,0,.23);
}
.final-cta h2 {
  margin: 0 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 500;
}
.final-cta > p { color: var(--muted); line-height: 1.55; margin: 0; }
.trial-points {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 24px;
  color: var(--cream-soft);
  font-size: .98rem;
  margin-top: 22px;
}
.trial-points span::before { content: "✦"; color: var(--gold-bright); margin-right: 8px; }

/* ── Email capture form (landing CTA) ── */
.email-capture-form {
  display: flex;
  gap: 12px;
  margin: 28px 0 0;
  justify-content: center;
  flex-wrap: wrap;
}
.email-capture-form input[type="email"] {
  flex: 1;
  min-width: 260px;
  max-width: 380px;
  min-height: 54px;
  padding: 14px 20px;
  border-radius: 15px;
  border: 1px solid rgba(240, 189, 88, .35);
  background: rgba(7, 27, 51, .82);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.email-capture-form input[type="email"]:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(240,189,88,.12);
}
.email-capture-form input[type="email"]::placeholder { color: rgba(216,226,237,.42); }
.email-capture-form .btn { margin: 0; white-space: nowrap; }

/* ── Notices ── */
.notice {
  padding: 16px 20px;
  border-radius: 16px;
  margin: 20px auto 0;
  max-width: 580px;
  font-size: .97rem;
  line-height: 1.5;
  text-align: left;
}
.notice p { margin: 0; color: inherit; }
.notice p + p { margin-top: 6px; }
.notice a { color: var(--gold-bright); text-decoration: underline; word-break: break-all; }
.notice-error {
  background: rgba(180, 40, 40, .18);
  border: 1px solid rgba(220, 80, 80, .38);
  color: #ffb3b3;
}
.notice-success {
  background: rgba(40, 140, 80, .18);
  border: 1px solid rgba(80, 200, 120, .38);
  color: #c8ffd8;
}

/* ── Footer ── */
.footer {
  padding: 54px 0 24px;
  border-top: 1px solid rgba(240,189,88,.18);
  background: rgba(3,16,31,.38);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 34px;
  align-items: start;
}
.footer-brand { display: flex; align-items: center; gap: 12px; font-size: 1.4rem; font-weight: 800; }
.footer-brand img { width: 58px; height: 58px; }
.footer-tag { color: var(--gold-bright); font-family: Georgia, "Times New Roman", serif; margin-top: 10px; line-height: 1.35; }
.footer h4 { margin: 0 0 12px; color: var(--cream); font-family: Georgia, "Times New Roman", serif; font-weight: 500; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; color: var(--muted); font-size: .95rem; }
.footer a:hover { color: var(--gold-bright); }
.social { display: flex; gap: 10px; }
.social a { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); color: var(--gold-bright); font-size: 1rem; }
.copyright { margin-top: 38px; text-align: center; color: rgba(216,226,237,.76); font-size: .9rem; }

/* ── Signup page ── */
.signup-section {
  padding: 58px 0 80px;
  min-height: calc(100vh - 74px);
}
.signup-header {
  max-width: 680px;
  margin: 0 auto 44px;
  text-align: center;
}
.signup-header .eyebrow {
  color: var(--gold-bright);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
  margin: 0 0 12px;
}
.signup-header h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  line-height: 1.12;
  margin: 0 0 14px;
  text-shadow: none;
}
.signup-header p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
  margin: 0;
}
.signup-card {
  max-width: 820px;
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(14,48,80,.58), rgba(7,27,51,.72));
  border: 1px solid rgba(240,189,88,.22);
  border-radius: 28px;
  padding: 40px 44px;
  box-shadow: 0 24px 60px rgba(0,0,0,.28);
}
.trial-banner {
  background: rgba(240,189,88,.06);
  border: 1px solid rgba(240,189,88,.2);
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 32px;
}
.trial-banner strong { color: var(--cream); font-size: .97rem; display: block; margin-bottom: 8px; }
.trial-banner ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  color: var(--muted);
  font-size: .93rem;
}
.trial-banner ul li::before { content: "✦ "; color: var(--gold-bright); }
.form-section { margin-bottom: 28px; }
.form-section-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  color: var(--gold-bright);
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(240,189,88,.16);
}
.field-grid { display: grid; gap: 18px; }
.field-grid-two { grid-template-columns: 1fr 1fr; }
label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: var(--cream-soft);
  font-size: .96rem;
  font-weight: 500;
}
input[type="text"],
input[type="email"],
select {
  min-height: 46px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(240,189,88,.25);
  background: rgba(7,27,51,.78);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
input[type="text"]:focus,
input[type="email"]:focus,
select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(240,189,88,.1);
}
input[readonly] { opacity: .5; cursor: not-allowed; }
input::placeholder { color: rgba(216,226,237,.38); }
select { cursor: pointer; }
option { background: var(--navy-900); }
.child-card {
  background: rgba(5,19,40,.52);
  border: 1px solid rgba(240,189,88,.18);
  border-radius: 20px;
  padding: 24px 28px;
  margin-bottom: 16px;
}
.child-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.child-card-header .form-section-title { margin: 0; padding: 0; border: none; }
.remove-child-button {
  background: rgba(200,40,40,.12);
  border: 1px solid rgba(220,80,80,.28);
  color: #ffb3b3;
  border-radius: 10px;
  padding: 6px 14px;
  cursor: pointer;
  font-size: .88rem;
  font-family: inherit;
  transition: background .15s ease;
}
.remove-child-button:hover { background: rgba(200,40,40,.26); }
.form-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(240,189,88,.12);
}
.secondary-action {
  min-height: 46px;
  padding: 10px 20px;
  border-radius: 12px;
  border: 1px solid rgba(240,189,88,.32);
  background: rgba(240,189,88,.05);
  color: var(--gold-bright);
  font-size: .96rem;
  font-family: inherit;
  cursor: pointer;
  transition: background .15s ease;
}
.secondary-action:hover { background: rgba(240,189,88,.12); }
.form-actions > span { color: var(--muted); font-size: .88rem; }
.signup-complete {
  text-align: center;
  padding: 24px 0;
}
.signup-complete h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 500;
  color: var(--cream);
  margin: 0 0 16px;
}
.signup-complete p { color: var(--muted); margin: 0 0 8px; line-height: 1.55; }
.signup-complete .btn { margin-top: 24px; }
.signup-invalid {
  text-align: center;
  padding: 32px 0;
  color: var(--muted);
}
.signup-invalid .btn { margin-top: 20px; }
/* signup-page notice adjustments */
.signup-card .notice { max-width: 100%; margin: 0 0 20px; }

/* ── Responsive ── */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 56px; min-height: auto; }
  .hero-logo { margin-left: 0; }
  .hero-art-wrap { min-height: 420px; }
  .hero-art { width: min(520px, 100%); }
  .steps, .benefits-grid { grid-template-columns: 1fr 1fr; }
  .privacy-panel { grid-template-columns: auto 1fr; }
  .privacy-art { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .signup-card { padding: 32px 28px; }
  .field-grid-two { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .container { width: min(100% - 28px, var(--max)); }
  .nav { min-height: auto; padding: 14px 0; }
  .nav-links a:not(.btn) { display: none; }
  h1 { font-size: clamp(3.25rem, 18vw, 4.6rem); }
  .tagline { font-size: 1.45rem; }
  .subhead { font-size: 1.04rem; }
  .steps, .benefits-grid { grid-template-columns: 1fr; }
  .privacy-panel { grid-template-columns: 1fr; }
  .privacy-icon { width: 76px; height: 76px; }
  .footer-grid { grid-template-columns: 1fr; }
  .signup-card { padding: 24px 18px; }
  .child-card { padding: 18px 16px; }
  .email-capture-form { flex-direction: column; align-items: stretch; }
  .email-capture-form input[type="email"] { max-width: 100%; }
}
