/* ===================== Hum Brand tokens ===================== */
:root {
  --cream:       #f9f4f1;
  --ink:         #24321f;
  --gray:        #747474;
  --muted-green: #6a8473;
  --green-dark:  #56705e;
  --marigold:    #f2bc6b;
  --saffron:     #ed8d26;
  --terracotta:  #c13620;
  --rose:        #d76079;
  --blue:        #92c4cb;
  --sage:        #8bab8f;
  --white: #ffffff;
  --cream-2: #fdfbf9;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Noto Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --maxw: 1120px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px -20px rgba(36, 50, 31, 0.35);
  --shadow-sm: 0 6px 20px -10px rgba(36, 50, 31, 0.3);
}

/* ===================== Reset / base ===================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0 0 .4em; line-height: 1.12; }
p { margin: 0 0 1rem; }

.display { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ===================== Buttons ===================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  padding: .9rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn-primary { background: var(--muted-green); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { transform: translateY(-2px); background: var(--green-dark); }
.btn-sm { padding: .55rem 1.1rem; font-size: .95rem; }
.btn-block { width: 100%; }

/* Hero CTA: brand green so it carries the contrast on the light background */
.btn-light {
  background: var(--muted-green);
  color: var(--white);
  box-shadow: 0 10px 30px -14px rgba(86, 112, 94, .55);
}
.btn-light:hover { transform: translateY(-2px); background: var(--green-dark); }


/* ===================== Page: HERO LANDING ===================== */
.page-hero { background: var(--cream); color: var(--ink); overflow-x: hidden; }

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  isolation: isolate;
}

/* ---- Animated 'flight radar' background ---- */
.hero-bg {
  position: fixed; inset: 0; z-index: 0; overflow: hidden;
}
.hero-bg-rotor {
  position: absolute;
  left: 50%; top: 50%;
  width: 220vmax; height: 220vmax;
  transform: translate(-50%, -50%) rotate(0deg);
  background: conic-gradient(
    from 0deg,
    #ed8d26 0deg,    /* saffron */
    #f2bc6b 52deg,   /* marigold */
    #d76079 104deg,  /* rose */
    #c13620 156deg,  /* terracotta */
    #6a8473 208deg,  /* muted green */
    #8bab8f 256deg,  /* sage */
    #92c4cb 308deg,  /* blue */
    #ed8d26 360deg
  );
  filter: blur(70px) saturate(1.3);
  animation: hum-spin 38s linear infinite;
  will-change: transform;
}
@keyframes hum-spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}
/* Cream wash: lightest behind the headline so ink text stays legible, letting the
   brand colours read clearly through the rest of the canvas */
.hero-bg-veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(249, 244, 241, .78) 0%, rgba(249, 244, 241, .58) 45%, rgba(249, 244, 241, .26) 100%),
    linear-gradient(180deg, rgba(249, 244, 241, .10) 0%, rgba(249, 244, 241, .20) 100%);
}

/* ---- Header (sits on bg) ---- */
.site-header {
  position: relative; z-index: 2;
  padding: 22px 0 0;
  background: transparent; border-bottom: none;
}
.header-inner { display: flex; align-items: center; justify-content: flex-start; }
.logo-link { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { height: 32px; width: auto; }
.logo-lockup { height: 34px; width: auto; display: block; }
.logo-word {
  font-family: var(--font-display); font-weight: 600;
  color: var(--cream); font-size: 1.6rem; letter-spacing: -0.01em;
}

/* Shadow treatment: lifts the logo off any wedge of the radar */
.page-hero .logo-mark {
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .28)) drop-shadow(0 0 3px rgba(0, 0, 0, .18));
}
.page-hero .logo-word {
  text-shadow: 0 2px 10px rgba(0, 0, 0, .28), 0 0 3px rgba(0, 0, 0, .18);
}

/* ---- Centered hero content ---- */
.hero-content {
  position: relative; z-index: 2;
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding-top: clamp(40px, 6vw, 80px);
  padding-bottom: clamp(40px, 6vw, 80px);
  color: var(--ink);
}

/* Hero logogram: sits where the eyebrow was, same rhythm below it */
.hero-mark {
  display: block; height: clamp(70px, 8.4vw, 106px); width: auto;
  margin: 0 auto 1.5rem;
  filter: drop-shadow(0 4px 14px rgba(36, 50, 31, .14));
}

.eyebrow {
  display: inline-block; font-family: var(--font-body);
  font-size: .92rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--cream);
  margin: 0 0 1.4rem;
  opacity: .92;
}

.hero-headline {
  font-size: clamp(3rem, 8vw, 6.4rem);
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 1.2rem;
}

.lede {
  font-size: clamp(1.05rem, 1.45vw, 1.2rem);
  color: rgba(36, 50, 31, .82);
  max-width: 52ch;
  margin: 0 auto 2.4rem;
}

/* ===================== Waitlist form ===================== */
.waitlist-form { width: 100%; max-width: 520px; margin: 0 auto; }
.step { animation: hum-fade .4s ease both; }
@keyframes hum-fade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --- Step 1: email row --- */
.email-row {
  display: flex; gap: 10px; align-items: stretch;
  background: rgba(255, 255, 255, .8);
  padding: 6px; border-radius: 999px;
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border: 1px solid rgba(36, 50, 31, .12);
  box-shadow: 0 18px 40px -22px rgba(36, 50, 31, .3);
}
/* Applies to every input in a pill row, not just the email one */
.email-row input {
  flex: 1; min-width: 0;
  background: transparent; border: 0; outline: none;
  padding: .6rem 1rem;
  border-radius: 999px;
  color: var(--ink); font: inherit;
  -webkit-appearance: none; appearance: none;
}
.email-row input::placeholder { color: rgba(36, 50, 31, .5); }
/* Override Chrome autofill background */
.email-row input:-webkit-autofill,
.email-row input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #ffffff inset;
  box-shadow: 0 0 0 1000px #ffffff inset;
  -webkit-text-fill-color: var(--ink);
  transition: background-color 5000s ease-in-out 0s;
}
.email-row .btn { flex: 0 0 auto; padding: .75rem 1.4rem; }
.email-row + .email-row { margin-top: .6rem; }
.step-1 .btn-block { margin-top: .4rem; }

.form-fineprint {
  margin: .9rem 0 0; font-size: .82rem;
  color: rgba(36, 50, 31, .62);
  text-align: center;
}

/* --- Step 2: card with the rest of the fields --- */
/* Lighter smoked glass: translucent enough that the moving colour reads through,
   still dark enough to carry cream text at AA contrast */
.step-2 {
  background: rgba(36, 50, 31, .68);
  backdrop-filter: blur(26px) saturate(150%);
  -webkit-backdrop-filter: blur(26px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 22px;
  padding: clamp(20px, 3vw, 28px);
  text-align: left;
  box-shadow:
    0 24px 60px -24px rgba(36, 50, 31, .45),
    inset 0 1px 0 rgba(255, 255, 255, .18);
}
.step-context {
  font-size: .92rem; color: rgba(249, 244, 241, .9);
  margin: 0 0 1.1rem; line-height: 1.4;
}
.step-context strong { color: var(--cream); }
.link-btn {
  background: none; border: 0; padding: 0; font: inherit;
  color: var(--ink); text-decoration: underline; cursor: pointer;
  text-underline-offset: 3px;
}
/* Inside the dark card the link needs to be cream, but the thank-you screen
   sits on the light page and keeps the ink version above */
.step-2 .link-btn { color: var(--cream); }
/* Cream CTA pops on the dark card; step 1's green CTA pops on the light page */
.step-2 .btn-light { background: var(--cream); color: var(--ink); }
.step-2 .btn-light:hover { background: var(--white); }
.link-btn:hover { opacity: .8; }

.field { margin-bottom: .9rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.field label {
  display: block; font-size: .8rem; font-weight: 600;
  margin-bottom: .3rem; color: rgba(249, 244, 241, .85);
  letter-spacing: .02em;
}
.field-optional { font-weight: 400; opacity: .7; }
.field input, .field select {
  width: 100%; padding: .75rem .9rem; font: inherit;
  background: var(--cream); color: var(--ink);
  border: 1.5px solid transparent; border-radius: 12px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus {
  outline: none; border-color: var(--cream);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .25);
}
.field input.invalid, .field select.invalid {
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(193, 54, 32, .25);
}

.consent {
  display: flex; gap: .6rem; align-items: flex-start;
  font-size: .88rem; color: rgba(249, 244, 241, .88);
  margin: .8rem 0 1.2rem; line-height: 1.45;
}
.consent input {
  margin-top: .2rem; width: 18px; height: 18px;
  accent-color: var(--terracotta); flex: 0 0 auto;
}
.consent a { color: var(--cream); font-weight: 600; }
.consent + .consent { margin-top: -.6rem; }
.consent-sms { font-size: .8rem; color: rgba(249, 244, 241, .8); line-height: 1.42; }

/* Step 1's consents sit on the light page, not the dark card, so they invert */
.consent-step1 {
  color: rgba(36, 50, 31, .82);
  max-width: 30rem;
  margin: .9rem auto 0;
  text-align: left;
}
.consent-step1 a { color: var(--ink); }
.consent-step1 input { accent-color: var(--muted-green); }
.consent-step1.consent-sms { color: rgba(36, 50, 31, .7); margin-top: .55rem; }

/* Skip link under the optional step-2 fields */
.skip-step2 {
  display: block; margin: .9rem auto 0;
  font-size: .88rem; opacity: .75;
}
.skip-step2:hover { opacity: 1; }

/* Step 1 sits on the light page; step 2 sits on the dark card */
.form-error {
  color: var(--terracotta); font-size: .88rem; font-weight: 600;
  margin: .7rem 0 0; text-align: center;
}
.step-2 .form-error { text-align: left; color: #ffd9d2; }

/* --- Step 3: thanks --- */
.step-thanks { text-align: center; padding: 1rem 0; }
.thanks-mark {
  width: 72px; height: 72px; margin: 0 auto 1.1rem;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--muted-green); color: var(--white);
  box-shadow: 0 14px 36px -18px rgba(86, 112, 94, .55);
}
.thanks-title { font-size: clamp(2rem, 4vw, 2.6rem); color: var(--ink); margin-bottom: .5rem; }
.thanks-body { color: rgba(36, 50, 31, .85); max-width: 40ch; margin: 0 auto; }
.share-friend { margin: 1.5rem auto 0; }
.share-friend svg { flex: 0 0 auto; }
.sign-another { display: block; margin: 1.2rem auto 0; opacity: .7; font-size: .88rem; }
.sign-another:hover { opacity: 1; }
.turnstile-wrap { display: flex; justify-content: center; margin: .8rem 0 1rem; }

/* ===================== Hero footer ===================== */
.hero-footer {
  position: relative; z-index: 2;
  background: transparent; color: rgba(36, 50, 31, .75);
  padding: 22px 0 28px;
}
/* Policies left, copyright right. Socials now live under the form, not here. */
.hero-footer .footer-inner {
  display: grid; grid-template-columns: 1fr auto;
  align-items: center; gap: 12px 18px;
}
.hero-footer .footer-copy { justify-self: end; text-align: right; }
/* Legal links wrap as whole phrases, never mid-phrase */
.hero-footer .footer-legal {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start;
  gap: 4px 16px; font-size: .88rem; max-width: 100%;
}
.hero-footer .footer-legal a { color: rgba(36, 50, 31, .75); text-decoration: none; white-space: nowrap; }
.hero-footer .footer-legal a:hover { color: var(--ink); text-decoration: underline; }
.hero-footer .footer-copy { margin: 0; font-size: .8rem; color: rgba(36, 50, 31, .55); }

/* ===================== Social links (shared by both footers) ===================== */
.footer-social { display: flex; align-items: center; gap: 12px; }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  color: rgba(249, 244, 241, .8);
  border: 1px solid rgba(249, 244, 241, .24);
  transition: color .18s ease, background-color .18s ease, border-color .18s ease, transform .18s ease;
}
.footer-social a:hover,
.footer-social a:focus-visible {
  color: var(--ink); background: var(--cream); border-color: var(--cream);
  transform: translateY(-1px);
}
.footer-social svg { display: block; }
/* Hero placement: sits under the form, just below the "No spam" line */
.hero-social { justify-content: center; margin-top: 1.15rem; }
/* Light-theme icons on the hero; base rules above stay for the dark legal footers */
.page-hero .footer-social a {
  color: rgba(36, 50, 31, .72);
  border-color: rgba(36, 50, 31, .22);
}
.page-hero .footer-social a:hover,
.page-hero .footer-social a:focus-visible {
  color: var(--cream); background: var(--ink); border-color: var(--ink);
}

/* ===================== Legal pages (privacy / terms) ===================== */
/* Legal pages keep the cream background and use the same header/footer markup */
body:not(.page-hero) .site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(249, 244, 241, .82);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(36, 50, 31, .07);
  padding: 14px 0;
}
body:not(.page-hero) .header-inner {
  justify-content: space-between;
}
body:not(.page-hero) .logo-img { height: 30px; width: auto; }

body:not(.page-hero) .site-footer {
  background: #1b2618; color: rgba(249, 244, 241, .85); padding: 48px 0;
}
body:not(.page-hero) .footer-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px;
}
body:not(.page-hero) .footer-brand { display: flex; flex-direction: column; }
body:not(.page-hero) .footer-logo { height: 30px; width: auto; align-self: flex-start; }
body:not(.page-hero) .footer-tag { font-family: var(--font-display); margin: .6rem 0 0; color: rgba(249, 244, 241, .7); }
body:not(.page-hero) .footer-social { margin-top: 1rem; align-self: flex-start; }
body:not(.page-hero) .footer-legal { text-align: right; font-size: .9rem; }
body:not(.page-hero) .footer-legal a { color: rgba(249, 244, 241, .85); text-decoration: none; }
body:not(.page-hero) .footer-legal a:hover { color: var(--marigold); text-decoration: underline; }
body:not(.page-hero) .footer-copy { margin: .5rem 0 0; font-size: .8rem; color: rgba(249, 244, 241, .5); }

.legal { max-width: 760px; padding-top: 48px; padding-bottom: 80px; }
.legal h1.display { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: .2em; color: var(--ink); }
.legal h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; margin-top: 2rem; color: var(--ink); }
.legal p, .legal li { color: #3a4a33; }
.legal ul { padding-left: 1.2rem; margin: 0 0 1rem; }
.legal li { margin-bottom: .4rem; }
.legal-meta { color: var(--gray); font-size: .9rem; }
.legal a { color: var(--terracotta); font-weight: 600; }
.legal-back { margin-top: 2.5rem; }
.legal-draft-note {
  background: rgba(237, 141, 38, .12); border: 1px solid rgba(237, 141, 38, .4);
  border-radius: var(--radius-sm); padding: 14px 18px; font-size: .92rem; color: #5a4a2a;
}
.ph { background: rgba(193, 54, 32, .1); color: var(--terracotta); padding: 0 .3em; border-radius: 4px; font-weight: 600; }

/* ===================== Responsive ===================== */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .email-row { flex-direction: column; padding: 8px; border-radius: 22px; gap: 8px; }
  .email-row input { padding: .85rem 1rem; }
  .email-row .btn { width: 100%; }
  .field-row { grid-template-columns: 1fr; }
  /* Tighter tracking so the longer eyebrow does not strand a single word */
  .eyebrow { font-size: .8rem; letter-spacing: .16em; }
  /* Stack the three footer columns and centre them on small screens */
  .hero-footer .footer-inner { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .hero-footer .footer-legal { justify-content: center; }
  .hero-footer .footer-copy { justify-self: center; text-align: center; }
  /* Extra breathing room on mobile so step-2 submit button clears the footer */
  .hero-content { justify-content: flex-start; padding-top: 32px; padding-bottom: 100px; }
}

/* Reduced motion: pause the radar, keep the colors as a static gradient */
@media (prefers-reduced-motion: reduce) {
  .hero-bg-rotor { animation: none; }
  .step { animation: none; }
  * { scroll-behavior: auto !important; transition: none !important; }
}
