/* Florence landing — night to dawn.
   The hero is 3am: deep indigo, stars, a nightlight-amber accent.
   The page brightens as you scroll, ending on a dawn-warm waitlist card. */

:root {
  --night-deep: #0b0c22;
  --night: #191b45;
  --night-soft: #272a5e;
  --night-text: #f0eeff;
  --night-muted: #b9b7dd;
  --amber: #f4b96a;
  --amber-soft: #ffd9a0;
  --amber-deep: #3d2c0e;
  --day-bg: #f4f3fa;
  --day-card: #ffffff;
  --dawn: #fbe8d2;
  --ink: #232447;
  --ink-muted: #575976;
  --line: rgba(35, 36, 71, 0.14);
  --error: #b3261e;
  --max: 1120px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Nunito Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-md: 16px;
  --r-lg: 28px;
  --r-pill: 999px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--day-bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

h1 {
  max-width: 13ch;
  font-size: clamp(40px, 5.4vw, 62px);
  font-weight: 500;
}

h1 em {
  font-style: italic;
  color: var(--amber-soft);
}

h2 {
  font-size: clamp(28px, 3.4vw, 40px);
}

h3 {
  font-size: 21px;
}

p {
  overflow-wrap: anywhere;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 30;
  transform: translateY(-160%);
  background: var(--amber);
  color: var(--amber-deep);
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

/* ---------- Header ---------- */

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
}

.nav {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--night-text);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(244, 185, 106, 0.16);
  color: var(--amber);
  border: 1px solid rgba(244, 185, 106, 0.35);
}

/* ---------- Buttons ---------- */

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  border: 0;
  border-radius: var(--r-pill);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button-primary {
  background: var(--amber);
  color: var(--amber-deep);
  box-shadow: 0 6px 24px rgba(244, 185, 106, 0.35);
}

.button-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(244, 185, 106, 0.5);
}

.button-secondary {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid rgba(35, 36, 71, 0.35);
}

.button-secondary:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
}

.button-ghost {
  min-height: 44px;
  padding: 8px 20px;
  background: rgba(240, 238, 255, 0.08);
  color: var(--night-text);
  border: 1px solid rgba(240, 238, 255, 0.35);
  font-weight: 700;
}

.button-ghost:hover {
  background: rgba(240, 238, 255, 0.16);
}

/* ---------- Hero (night) ---------- */

.hero {
  position: relative;
  overflow: hidden;
  color: var(--night-text);
  background:
    linear-gradient(
      180deg,
      var(--night-deep) 0%,
      var(--night) 52%,
      #2e2f68 76%,
      #5c4a7e 90%,
      #a5789a 97%,
      var(--day-bg) 100%
    );
  padding: 128px 0 150px;
}

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

.stars {
  position: absolute;
  inset: 0 0 18%;
  background-repeat: repeat;
}

.stars-far {
  background-image:
    radial-gradient(1px 1px at 25px 35px, rgba(233, 231, 255, 0.7) 50%, transparent 51%),
    radial-gradient(1px 1px at 115px 90px, rgba(233, 231, 255, 0.5) 50%, transparent 51%),
    radial-gradient(1px 1px at 190px 20px, rgba(233, 231, 255, 0.6) 50%, transparent 51%),
    radial-gradient(1px 1px at 70px 150px, rgba(233, 231, 255, 0.4) 50%, transparent 51%),
    radial-gradient(1px 1px at 160px 170px, rgba(233, 231, 255, 0.55) 50%, transparent 51%);
  background-size: 220px 200px;
}

.stars-near {
  background-image:
    radial-gradient(1.5px 1.5px at 60px 60px, #e9e7ff 50%, transparent 51%),
    radial-gradient(2px 2px at 250px 140px, rgba(255, 217, 160, 0.9) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 180px 240px, #e9e7ff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 320px 40px, rgba(233, 231, 255, 0.9) 50%, transparent 51%);
  background-size: 380px 300px;
  animation: twinkle 5s ease-in-out infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

.moon {
  position: absolute;
  top: 9%;
  right: 12%;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 35%, #fff6e6, var(--amber-soft) 62%, #e9a95f);
  box-shadow:
    0 0 40px 12px rgba(255, 217, 160, 0.35),
    0 0 140px 60px rgba(255, 217, 160, 0.12);
}

.horizon {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 90px;
  background: linear-gradient(180deg, transparent, var(--day-bg) 92%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--amber);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-copy {
  max-width: 540px;
  margin: 22px 0 0;
  color: var(--night-muted);
  font-size: 19px;
}

.hero-subnote {
  margin: 14px 0 0;
  color: var(--night-muted);
  font-size: 14.5px;
}

/* ---------- Waitlist form (shared hero + footer) ---------- */

.waitlist-form {
  margin-top: 30px;
}

.waitlist-input-row {
  display: flex;
  gap: 10px;
  max-width: 520px;
}

.input-email {
  flex: 1;
  min-width: 0;
  padding: 14px 22px;
  border-radius: var(--r-pill);
  border: 1.5px solid rgba(240, 238, 255, 0.3);
  background: rgba(11, 12, 34, 0.5);
  color: var(--night-text);
  font-family: inherit;
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-email::placeholder {
  color: rgba(185, 183, 221, 0.75);
}

.input-email:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 4px rgba(244, 185, 106, 0.2);
}

.honeypot-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.waitlist-status {
  margin: 10px 0 0;
  min-height: 22px;
  font-size: 14px;
  font-weight: 700;
}

.waitlist-status.is-error {
  color: #ffb4ab;
}

/* Footer waitlist section restyles the same form for a light background. */
.waitlist .input-email {
  border-color: rgba(35, 36, 71, 0.25);
  background: #fff;
  color: var(--ink);
}

.waitlist .input-email::placeholder {
  color: rgba(87, 89, 118, 0.7);
}

.waitlist .waitlist-status.is-error {
  color: var(--error);
}

/* ---------- Phone mock ---------- */

.phone {
  justify-self: center;
  width: min(320px, 86vw);
  padding: 12px;
  border-radius: 44px;
  background: linear-gradient(160deg, rgba(240, 238, 255, 0.22), rgba(240, 238, 255, 0.06));
  border: 1px solid rgba(240, 238, 255, 0.28);
  box-shadow: 0 40px 90px rgba(5, 6, 20, 0.55);
  animation: float 7s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.phone-screen {
  border-radius: 34px;
  padding: 22px 22px 26px;
  background: linear-gradient(180deg, #121330, #191b45);
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

.shot-topbar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
  color: var(--night-muted);
  font-size: 13px;
  font-weight: 800;
}

.shot-label {
  color: var(--night-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.arc {
  position: relative;
  width: 190px;
  height: 190px;
  display: grid;
  place-items: center;
}

.arc svg {
  position: absolute;
  inset: 0;
  transform: rotate(-90deg);
}

.arc circle {
  fill: none;
  stroke-width: 9;
  stroke-linecap: round;
}

.arc .bg {
  stroke: rgba(240, 238, 255, 0.12);
}

.arc .fg {
  stroke: var(--amber);
  stroke-dasharray: 528;
  stroke-dashoffset: 168;
  filter: drop-shadow(0 0 10px rgba(244, 185, 106, 0.5));
}

.shot-time {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 600;
  color: var(--night-text);
}

.shot-note {
  margin: 2px 0 8px;
  color: var(--night-muted);
  font-size: 15px;
}

.shot-note strong {
  color: var(--amber-soft);
}

.shot-actions {
  width: 100%;
  display: grid;
  gap: 10px;
}

.pill {
  min-height: 48px;
  display: grid;
  place-items: center;
  border-radius: var(--r-pill);
  border: 1px solid rgba(240, 238, 255, 0.25);
  color: var(--night-text);
  font-weight: 800;
  font-size: 15px;
}

.pill-solid {
  border: 0;
  background: var(--amber);
  color: var(--amber-deep);
}

/* ---------- Light sections ---------- */

.how,
.features,
.analytics-band,
.trust-band,
.waitlist,
.footer {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
}

.section-heading {
  max-width: 640px;
  margin-bottom: 38px;
}

.section-heading .eyebrow,
.trust-band .eyebrow {
  color: #a8631f;
}

.how {
  padding: 84px 0 30px;
}

.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}

.step {
  counter-increment: step;
  position: relative;
  padding-top: 74px;
}

.step::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 500;
  font-style: italic;
  line-height: 1;
  color: rgba(35, 36, 71, 0.22);
}

.step::after {
  content: "";
  position: absolute;
  top: 62px;
  left: 2px;
  width: 44px;
  height: 3px;
  border-radius: 3px;
  background: var(--amber);
}

.step p,
.benefit p {
  margin: 10px 0 0;
  color: var(--ink-muted);
  font-size: 16px;
}

.features {
  padding: 64px 0 88px;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.benefit {
  background: var(--day-card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 26px 22px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.benefit:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(25, 27, 69, 0.12);
}

.benefit-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 50%;
  background: rgba(244, 185, 106, 0.18);
  color: #9c5c1a;
}

/* ---------- Analytics band ---------- */

.analytics-band {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: 40px clamp(24px, 4vw, 48px);
  border-radius: var(--r-lg);
  background: var(--day-card);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(25, 27, 69, 0.08);
}

.analytics-copy p:last-child {
  margin: 16px 0 0;
  color: var(--ink-muted);
}

.analytics-shot {
  border-radius: 22px;
  padding: 22px;
  background: linear-gradient(180deg, #121330, #191b45);
  color: var(--night-text);
  border: 1px solid rgba(25, 27, 69, 0.5);
}

.analytics-shot .shot-topbar {
  margin-bottom: 16px;
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.metric-card,
.chart-card {
  border: 1px solid rgba(240, 238, 255, 0.14);
  border-radius: 14px;
  background: rgba(240, 238, 255, 0.05);
  padding: 16px 18px;
}

.metric-card {
  display: grid;
  gap: 2px;
}

.metric-card span:last-child {
  color: var(--night-muted);
  font-size: 13px;
}

.metric-card strong {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.1;
}

.chart-card {
  grid-column: 1 / -1;
}

.chart-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-weight: 800;
}

.chart-heading strong {
  color: var(--amber-soft);
}

.trend-chart {
  height: 130px;
  display: flex;
  align-items: end;
  gap: 10px;
  margin-top: 16px;
}

.trend-chart span {
  flex: 1;
  height: var(--bar);
  min-height: 26px;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, var(--amber-soft), var(--amber));
  opacity: 0.9;
}

.chart-note {
  margin: 14px 0 0;
  color: var(--night-muted);
  font-size: 14px;
}

/* ---------- Trust band ---------- */

.trust-band {
  max-width: 680px;
  padding: 92px 0 40px;
  text-align: center;
}

.trust-band p:last-child {
  margin: 16px auto 0;
  color: var(--ink-muted);
}

/* ---------- Waitlist (dawn) ---------- */

.waitlist {
  padding: 40px 0 96px;
}

.waitlist-inner {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  padding: clamp(32px, 5vw, 64px);
  background:
    radial-gradient(600px 300px at 80% -20%, rgba(255, 217, 160, 0.55), transparent 70%),
    linear-gradient(160deg, #fdf3e3, var(--dawn));
  border: 1px solid rgba(164, 111, 42, 0.18);
}

.waitlist .eyebrow {
  color: #a8631f;
}

.waitlist-copy,
.confirm-subtitle {
  max-width: 520px;
  margin: 16px 0 0;
  color: var(--ink-muted);
}

.privacy-note {
  max-width: 520px;
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--ink-muted);
}

/* ---------- Pricing smoke test ---------- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--day-card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 26px 22px;
}

.pricing-featured {
  border: 2px solid var(--amber);
  box-shadow: 0 18px 48px rgba(244, 185, 106, 0.28);
}

.pricing-badge {
  position: absolute;
  top: -13px;
  right: 18px;
  background: var(--amber);
  color: var(--amber-deep);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: var(--r-pill);
}

.pricing-card h3 {
  font-size: 19px;
}

.pricing-price {
  margin: 6px 0 10px;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
}

.pricing-price span {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-muted);
}

.pricing-desc {
  flex: 1;
  margin: 0 0 20px;
  font-size: 14px;
  color: var(--ink-muted);
}

.tier-btn {
  width: 100%;
  min-height: 48px;
  font-size: 15px;
}

.tier-btn.is-selected {
  background: var(--night);
  color: var(--night-text);
  border-color: var(--night);
  box-shadow: none;
}

.pricing-disclaimer {
  margin: 16px 0 0;
  font-size: 12.5px;
  color: var(--ink-muted);
}

.tier-thankyou {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--night);
  color: var(--night-text);
  font-weight: 700;
  font-size: 15px;
}

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  padding: 26px 0 36px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--ink-muted);
  font-size: 15px;
}

.footer p {
  margin: 0;
}

.footer nav {
  display: flex;
  gap: 20px;
}

.footer a {
  color: var(--ink-muted);
  font-weight: 700;
  text-decoration: none;
}

.footer a:hover {
  color: var(--ink);
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .hero {
    padding: 112px 0 130px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 56px;
  }

  .hero-content {
    display: grid;
    justify-items: center;
  }

  .hero-copy {
    margin-inline: auto;
  }

  .waitlist-input-row {
    width: 100%;
  }

  /* Half off the edge so the headline never sits on the bright disc. */
  .moon {
    top: 120px;
    right: -34px;
    width: 64px;
    height: 64px;
    opacity: 0.75;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .step {
    padding-top: 0;
    padding-left: 84px;
  }

  .step::after {
    top: 54px;
    left: 4px;
  }

  .benefit-grid,
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .analytics-band {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav {
    width: min(100% - 28px, var(--max));
    padding: 16px 0;
  }

  .hero-inner,
  .how,
  .features,
  .analytics-band,
  .trust-band,
  .waitlist,
  .footer {
    width: min(100% - 28px, var(--max));
  }

  .hero {
    padding: 96px 0 110px;
  }

  .waitlist-input-row {
    flex-direction: column;
  }

  .waitlist-input-row .button {
    width: 100%;
  }

  .benefit-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .how {
    padding: 64px 0 20px;
  }

  .features {
    padding: 48px 0 64px;
  }

  .trust-band {
    padding: 72px 0 28px;
  }

  .analytics-band {
    padding: 24px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .phone,
  .stars-near {
    animation: none;
  }

  .button,
  .benefit {
    transition: none;
  }
}
