/* ===================== 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%; }

/* Cream pill button for the hero (dark text on light bg, pops on the colorful background) */
.btn-light {
  background: var(--cream);
  color: var(--ink);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .35);
}
.btn-light:hover { transform: translateY(-2px); background: #fff; }


/* ===================== Page: HERO LANDING ===================== */
.page-hero { background: var(--ink); color: var(--cream); 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(60px) saturate(1.05);
  animation: hum-spin 38s linear infinite;
  will-change: transform;
}
@keyframes hum-spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}
/* Subtle vignette to keep text legible on any wedge */
.hero-bg-veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 38%, rgba(36, 50, 31, 0) 0%, rgba(36, 50, 31, .38) 70%, rgba(36, 50, 31, .55) 100%),
    linear-gradient(180deg, rgba(36, 50, 31, .15) 0%, rgba(36, 50, 31, .35) 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-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(--cream);
}

.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(--cream);
  margin: 0 0 1.2rem;
  text-shadow: 0 6px 28px rgba(0, 0, 0, .25);
}

.lede {
  font-size: clamp(1.05rem, 1.45vw, 1.2rem);
  color: rgba(249, 244, 241, .92);
  max-width: 52ch;
  margin: 0 auto 2.4rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .25);
}

/* ===================== 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, .14);
  padding: 6px; border-radius: 999px;
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, .28);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .35);
}
.email-row input[type="email"] {
  flex: 1; min-width: 0;
  background: transparent; border: 0; outline: none;
  padding: .6rem 1rem;
  border-radius: 999px;
  color: var(--cream); font: inherit;
}
.email-row input[type="email"]::placeholder { color: rgba(249, 244, 241, .65); }
/* Override Chrome autofill white background */
.email-row input[type="email"]:-webkit-autofill,
.email-row input[type="email"]:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px rgba(36, 50, 31, .35) inset;
  box-shadow: 0 0 0 1000px rgba(36, 50, 31, .35) inset;
  -webkit-text-fill-color: var(--cream);
  transition: background-color 5000s ease-in-out 0s;
}
.email-row .btn { flex: 0 0 auto; padding: .75rem 1.4rem; }

.form-fineprint {
  margin: .9rem 0 0; font-size: .82rem;
  color: rgba(249, 244, 241, .72);
  text-align: center;
}

/* --- Step 2: card with the rest of the fields --- */
.step-2 {
  background: rgba(36, 50, 31, .42);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 22px;
  padding: clamp(20px, 3vw, 28px);
  text-align: left;
  box-shadow: 0 24px 60px -22px rgba(0, 0, 0, .45);
}
.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(--cream); text-decoration: underline; cursor: pointer;
  text-underline-offset: 3px;
}
.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: .76rem; color: rgba(249, 244, 241, .7); line-height: 1.4; }
.consent-optional { opacity: .75; }

.form-error {
  color: #ffd9d2; font-size: .88rem; font-weight: 600;
  margin: .7rem 0 0; text-align: center;
}
.step-2 .form-error { text-align: left; }

/* --- 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(--cream); color: var(--muted-green);
  box-shadow: 0 14px 36px -16px rgba(0, 0, 0, .4);
}
.thanks-title { font-size: clamp(2rem, 4vw, 2.6rem); color: var(--cream); margin-bottom: .5rem; }
.thanks-body { color: rgba(249, 244, 241, .92); max-width: 40ch; margin: 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(249, 244, 241, .8);
  padding: 22px 0 28px;
}
.hero-footer .footer-inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px;
}
/* Five legal links: wrap as whole phrases, never mid-phrase, and stay centred */
.hero-footer .footer-legal {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 4px 18px; font-size: .88rem; max-width: 100%;
}
.hero-footer .footer-legal a { color: rgba(249, 244, 241, .85); text-decoration: none; white-space: nowrap; }
.hero-footer .footer-legal a:hover { color: var(--cream); text-decoration: underline; }
.hero-footer .footer-copy { margin: 0; font-size: .8rem; color: rgba(249, 244, 241, .65); }

/* ===================== 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; }

/* ===================== 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[type="email"] { padding: .85rem 1rem; }
  .email-row .btn { width: 100%; }
  .field-row { grid-template-columns: 1fr; }
  .hero-footer .footer-inner { flex-direction: column; 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; }
}
