/* Home page (index.html) and the small server pages (unsubscribe). Dark sky above, paper below.
   The one bold element is the horizon: the zodiac turning to the visitor's rising sign. */
:root {
  --night: #0f1d19;
  --night-2: #16291f;
  --forest: #203f34;
  --gold: #d4a862;
  --gold-deep: #b48647;
  --ivory: #f1ece2;
  --mist: #a9b8b1;
  --paper: #f5f7f5;
  --ink: #1c302a;
  --muted: #5f6f69;
  --line: #dce3df;
  --error: #9c2f22;
  --serif: 'NotoSerif', 'NotoSansDevanagari', 'NotoSansTelugu', Georgia, serif;
  --sans: 'NotoSans', 'NotoSansDevanagari', 'NotoSansTelugu', Arial, sans-serif;
  --radius-card: 14px;
  --radius-control: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; }
img { display: block; }
a { color: inherit; }
button, input, select { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; z-index: 10; background: white; padding: 8px 12px; border-radius: 6px; }

/* ---- Hero: night sky with the horizon ---------------------------------------------------------------- */
.hero {
  color: var(--ivory);
  background:
    radial-gradient(120% 70% at 72% 92%, rgba(212, 168, 98, 0.16), transparent 60%),
    linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%);
  padding: 0 clamp(20px, 5vw, 72px) clamp(40px, 6vw, 88px);
}
.topbar { display: flex; align-items: center; justify-content: space-between; height: 84px; max-width: 1240px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--serif); font-size: 26px; }
.brand-tld { color: var(--gold); }
.topnav { display: flex; align-items: center; gap: 26px; font-size: 15px; }
.topnav a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--mist); }
.topnav a:hover, .topnav a[aria-current='page'] { color: var(--ivory); }
.nav-icon { width: 18px; height: 18px; fill: none; stroke: var(--gold); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nav-short { display: none; }
.nav-account { border: 1px solid rgba(212, 168, 98, 0.45); border-radius: 999px; padding: 6px 14px; }
.nav-account:hover { border-color: var(--gold); }
.is-signed-in .lock-shackle { transform: translateX(4px) rotate(18deg); transform-origin: 16px 10.5px; }

.hero-grid {
  max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 540px) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center;
  padding-top: clamp(12px, 3vw, 40px);
}
.hero h1 { font-size: clamp(36px, 4.6vw, 60px); line-height: 1.08; letter-spacing: -0.015em; max-width: 14ch; }
.step > h1 { margin-bottom: 18px; }
.promise { font-family: var(--serif); font-size: clamp(21px, 2vw, 26px); line-height: 1.3; color: var(--gold); margin: 0 0 14px; max-width: 30ch; }
.lede { color: var(--mist); font-size: 18px; max-width: 46ch; margin: 0 0 28px; }
.lede strong { color: var(--ivory); font-weight: 400; }

/* Horizon */
.horizon { margin: 0; }
.horizon-art { width: 100%; max-width: 540px; margin: 0 auto; }
.horizon-svg { width: 100%; height: auto; overflow: visible; }
.wheel { transform-box: view-box; transform-origin: 320px 320px; transition: transform 1.8s cubic-bezier(0.2, 0.7, 0.15, 1); }
.wheel-tick { stroke: rgba(212, 168, 98, 0.35); stroke-width: 1; }
.planet-lead { stroke: rgba(241, 236, 226, 0.22); stroke-width: 1; }
.planet-degree { stroke: var(--gold); stroke-width: 2; }
.planet-face { transform-box: fill-box; transform-origin: center; transition: transform 1.8s cubic-bezier(0.2, 0.7, 0.15, 1); }
.planet-dot { fill: var(--night); stroke: rgba(241, 236, 226, 0.55); stroke-width: 1.2; }
.planet-label { fill: var(--ivory); font-family: var(--sans); font-size: 12px; font-weight: 700; text-anchor: middle; dominant-baseline: middle; }
.planet-light .planet-dot { fill: var(--gold); stroke: var(--gold); }
.planet-light .planet-label { fill: var(--night); }
.wheel-ring { fill: none; stroke: rgba(212, 168, 98, 0.35); stroke-width: 1.2; }
.wheel-spoke { stroke: rgba(212, 168, 98, 0.28); stroke-width: 1; }
.wheel-sign { fill: var(--mist); font-family: var(--serif); font-size: 17px; text-anchor: middle; dominant-baseline: middle; transition: fill 0.6s; }
.wheel-sign.is-rising { fill: var(--gold); font-size: 20px; }
.horizon-line { stroke: var(--gold); stroke-width: 1.5; }
.horizon-label { fill: var(--mist); font-family: var(--sans); font-size: 13px; }
.rising-glow { fill: rgba(212, 168, 98, 0.18); }
.rising-shape { fill: var(--gold); }
.horizon figcaption { color: var(--mist); font-size: 15px; margin: 18px auto 0; max-width: 540px; }

/* ---- Cards and forms ----------------------------------------------------------------------------------- */
.card { background: #fff; color: var(--ink); border-radius: var(--radius-card); padding: clamp(20px, 3vw, 30px); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28); }
.field { margin-bottom: 16px; position: relative; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: block; font-size: 15px; font-weight: 700; margin-bottom: 6px; }
input[type='text'], input[type='email'], input[type='date'], input[type='time'], input:not([type]), select {
  width: 100%; min-height: 50px; padding: 10px 14px; border: 1px solid #c9d3cf; border-radius: var(--radius-control);
  background: #fff; color: var(--ink); font-size: 17px;
}
input:focus, select:focus { border-color: var(--forest); outline: 2px solid rgba(32, 63, 52, 0.25); outline-offset: 0; }
.hint { color: var(--muted); font-size: 14px; margin: 6px 0 0; }
.fine { color: var(--muted); font-size: 13px; margin: 14px 0 0; }
.fine a { color: var(--forest); }
.error { color: var(--error); font-size: 15px; margin: 8px 0 0; }
.notice { color: var(--mist); margin: 12px 0 0; }

.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 22px;
  border: 0; border-radius: var(--radius-control); background: var(--forest); color: #fff; font-weight: 700; font-size: 16px;
  cursor: pointer; text-decoration: none; white-space: nowrap;
}
.button:hover { background: #2a5242; }
.button:disabled { opacity: 0.6; cursor: wait; }
.button-gold { background: var(--gold-deep); }
.button-gold:hover { background: #a3763a; }
.button-quiet { background: transparent; color: var(--ivory); border: 1px solid rgba(241, 236, 226, 0.4); }
.button-quiet:hover { background: rgba(241, 236, 226, 0.08); }
.form-card .button { width: 100%; margin-top: 4px; font-size: 17px; }
.link-button { background: none; border: 0; padding: 6px 0; color: var(--mist); text-decoration: underline; cursor: pointer; font-size: 15px; }

.place-results {
  position: absolute; z-index: 5; left: 0; right: 0; top: 82px; background: #fff; border: 1px solid #c9d3cf;
  border-radius: var(--radius-control); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18); max-height: 300px; overflow: auto;
}
.place-option { display: block; width: 100%; text-align: left; padding: 10px 14px; border: 0; background: none; cursor: pointer; color: var(--ink); }
.place-option small { display: block; color: var(--muted); font-size: 13px; }
.place-option:hover, .place-option[aria-selected='true'] { background: var(--paper); }

/* ---- Step 2: chart ready, where to send ---------------------------------------------------------------- */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 18px; }
.facts div { border: 1px solid rgba(212, 168, 98, 0.35); border-radius: 10px; padding: 12px 14px; }
.facts dt { font-size: 13px; color: var(--mist); }
.facts dd { margin: 2px 0 0; font-family: var(--serif); font-size: 22px; color: var(--ivory); }
.facts small { display: block; font-family: var(--sans); font-size: 13px; color: var(--mist); }
.shift { border-left: 3px solid var(--gold); padding: 4px 0 4px 14px; margin: 0 0 16px; color: var(--ivory); }
.turning { margin: 0 0 22px; }
.turning-summary { margin: 0 0 8px; color: var(--ivory); }
.turning-list { list-style: none; padding: 0; margin: 0; }
.turning-list li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 14px; align-items: baseline;
  padding: 10px 0; border-bottom: 1px solid rgba(212, 168, 98, 0.22);
}
.turning-list strong { font-family: var(--serif); font-weight: 400; font-size: 19px; color: var(--gold); }
.locked { font-size: 13px; color: var(--mist); display: inline-flex; align-items: center; gap: 6px; }
.locked::before {
  content: ''; width: 11px; height: 13px; background: currentColor; opacity: 0.85;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 13'%3E%3Cpath d='M2 6V4a3.5 3.5 0 0 1 7 0v2h1a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1zm1.5 0h4V4a2 2 0 0 0-4 0z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 13'%3E%3Cpath d='M2 6V4a3.5 3.5 0 0 1 7 0v2h1a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1zm1.5 0h4V4a2 2 0 0 0-4 0z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.deliver-card h2 { font-size: 26px; margin-bottom: 18px; }
.deliver-option h3 { font-family: var(--sans); font-size: 17px; font-weight: 700; }
.deliver-option .hint { margin: 2px 0 12px; }
.inline-field { display: flex; gap: 10px; }
.inline-field input { flex: 1; min-width: 0; }
#code-form { margin-top: 12px; }
.or { display: flex; align-items: center; gap: 14px; color: var(--muted); margin: 22px 0; font-size: 14px; }
.or::before, .or::after { content: ''; flex: 1; border-top: 1px solid var(--line); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; margin: 20px 0 0; color: var(--ink); }
.consent input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--forest); }
#step-deliver .link-button { margin-top: 14px; }

/* ---- Step 3: sent ---------------------------------------------------------------------------------------- */
.sent-actions { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.sent-offer { margin-top: 36px; }
.sent-offer h2 { font-size: 28px; }
.sent-offer .hint { color: var(--mist); }
.plans { display: grid; gap: 12px; margin-top: 16px; }
.plan { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(212, 168, 98, 0.3); border-radius: 12px; padding: 16px 18px; }
.plan-picked { border-color: var(--gold); background: rgba(212, 168, 98, 0.1); }
.plan h3 { font-size: 20px; }
.plan p { margin: 4px 0 12px; color: var(--mist); font-size: 15px; }
.plan .plan-price { font-family: var(--serif); font-size: 22px; color: var(--gold); margin: 2px 0 6px; }

/* ---- Below the fold ----------------------------------------------------------------------------------- */
.below { max-width: 1240px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 72px); }
.below > section { padding: clamp(56px, 8vw, 104px) 0; border-bottom: 1px solid var(--line); }
.below h2 { font-size: clamp(30px, 3.4vw, 42px); line-height: 1.15; letter-spacing: -0.01em; margin-bottom: 18px; }
.sample { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 6vw, 88px); align-items: start; }
.sample-copy p { color: var(--muted); max-width: 44ch; }
.letter { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card); padding: clamp(22px, 3vw, 34px); }
.letter-for { color: var(--muted); font-size: 14px; margin: 0 0 16px; }
.letter h3 { font-size: 20px; color: var(--forest); margin: 22px 0 6px; }
.letter p { margin: 0; }
.facts-light div { border-color: var(--line); }
.facts-light dt, .facts-light small { color: var(--muted); }
.facts-light dd { color: var(--forest); }
.letter .turning-list li { border-color: var(--line); }
.letter .turning-list strong { color: var(--forest); }
.letter .locked { color: var(--muted); }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: block; font-family: var(--serif); font-size: 40px; color: var(--gold-deep); line-height: 1; margin-bottom: 12px; }
.steps h3, .trust h3 { font-size: 21px; margin-bottom: 6px; }
.steps p, .trust p { color: var(--muted); margin: 0; }
.trust-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.trust a { color: var(--forest); }
.faq details { border-top: 1px solid var(--line); padding: 16px 0; max-width: 760px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 18px; }
.faq details p { color: var(--muted); margin: 10px 0 0; }
.closing { text-align: center; border-bottom: 0 !important; }
.closing h2 { margin-bottom: 22px; }

.footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 28px clamp(20px, 5vw, 72px);
  background: var(--night); color: var(--mist); font-size: 14px;
}
.footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--ivory); }

/* ---- Small server pages (unsubscribe) ------------------------------------------------------------------ */
.plain-page { background: var(--paper); }
.plain-main { max-width: 560px; margin: 12vh auto; padding: 0 24px; font-size: 18px; }
.plain-brand { font-family: var(--serif); font-size: 30px; text-decoration: none; color: var(--forest); }
.plain-brand span { color: var(--gold-deep); }

/* ---- First step on wide screens: headline across the page, form beside the wheel, the promise under the form */
@media (min-width: 901px) {
  body[data-step='details'] .hero-grid { align-items: start; row-gap: 0; }
  body[data-step='details'] .hero-panel,
  body[data-step='details'] #step-details { display: contents; }
  body[data-step='details'] #step-details > h1 { grid-column: 1 / -1; grid-row: 1; max-width: none; font-size: clamp(40px, 4.4vw, 62px); margin-bottom: clamp(24px, 3vw, 44px); }
  body[data-step='details'] #birth-form { grid-column: 1; grid-row: 2; }
  body[data-step='details'] .promise { grid-column: 1; grid-row: 3; margin-top: 30px; }
  body[data-step='details'] .lede { grid-column: 1; grid-row: 4; }
  body[data-step='details'] #horizon-figure { grid-column: 2; grid-row: 2 / span 3; }
}

/* ---- Phones ---------------------------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 8px; }
  .horizon { order: -1; max-width: 520px; width: 100%; margin: 0 auto; }
  .step .horizon { order: 0; max-width: 270px; margin: 4px auto 18px; }
  .step .horizon figcaption { font-size: 13px; text-align: center; }
  body[data-step='details'] .lede { display: none; }
  .horizon figcaption { font-size: 14px; margin-top: 10px; }
  .hero h1 { max-width: none; }
  .sample, .steps, .trust-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .topbar { height: 68px; }
  .topnav { gap: 14px; font-size: 13px; }
  .topnav a { flex-direction: column; gap: 2px; }
  .nav-long { display: none; }
  .nav-short { display: inline; }
  .nav-account { flex-direction: row !important; padding: 5px 10px; gap: 5px !important; }
  .brand { font-size: 22px; }
  .brand img { width: 30px; height: 30px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .inline-field { flex-direction: column; }
  .facts { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
  .facts div { padding: 10px; }
  .facts dd { font-size: 18px; }
  .turning-list li { grid-template-columns: minmax(0, 1fr) auto; }
  .turning-list .locked { grid-column: 1 / -1; }
  /* Once a step is past the form, keep the horizon small so the next action is on screen. */
  body:not([data-step='details']) .horizon { max-width: 240px; }
  body:not([data-step='details']) .horizon figcaption { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wheel, .wheel-sign, .planet-face { transition: none; }
}
