/* =========================================================
   Flarelight landing page — styles
   Sections built so far: header + hero

   Fonts:  Fraunces (serif) — headings, card titles, big numbers, "flarelight" wordmark
           Poppins (sans)   — body text, labels, buttons, captions, eyebrows
   ========================================================= */

/* =========================================================
   Design tokens
   Every colour, font family and the page width live here.
   Change a value once and it updates across the whole site.
   ========================================================= */
:root {
  /* ---- Navy ---- */
  --navy-deep:      #17253D;    /* your "midnight navy" */
  --navy-deep-rgb:  23, 37, 61; /* same colour, for see-through hairlines on light backgrounds */
  --navy-mid:       #1D2F4F;    /* middle stop of the hero gradient (not one of your named colours) */
  --navy-light:     #263A61;    /* end stop of the hero gradient (not one of your named colours) */

  /* ---- Neutrals & surfaces ---- */
  --off-white:      #FAFAF7;         /* your "offwhite" */
  --off-white-rgb:  250, 250, 247;   /* same colour, in a form that allows see-through overlays */
  --card-white:     #FFFFFF;         /* PROPOSED — white cards on tinted sections */
  --lavender-pale:  #EEF1F8;         /* your "mist" */
  --lavender-mid:   #D8D3F5;         /* your "soft lilac" */

  /* ---- Purples ---- */
  --periwinkle:         #AEBBFF;   /* your "periwinkle" */
  --periwinkle-bright:  #C0CAFF;   /* hover tint on periwinkle buttons (not one of your named colours) */
  --violet:             #6E63C6;   /* PROPOSED — deep accent purple */

  /* ---- Text ---- */
  --text-heading:  var(--navy-deep);  /* headings on light backgrounds — your midnight navy */
  --text-body:     #5B6472;           /* PROPOSED — paragraph text on light backgrounds */
  --text-light:    #97A0AE;           /* PROPOSED — captions & secondary labels */

  /* ---- Accents ---- */
  --accent-coral:   #F6B98B;   /* your "apricot" */
  --accent-purple:  #8B7FD4;   /* PROPOSED — icon / badge accent */
  --accent-blue:    #7FA8E8;   /* PROPOSED — secondary accent */

  /* ---- Status ---- */
  --error:    #B3261E;   /* PROPOSED — form validation messages only */
  --success:  #2E7D4F;   /* PROPOSED — waitlist confirmation message only */

  /* ---- Fonts ---- */
  --font-serif:  "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans:   "Poppins", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* ---- Layout ---- */
  --max-width: 1200px;
}

/* ---- Basic reset ---- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;          /* belt-and-braces: never scroll sideways */
}

body {
  font-family: var(--font-sans);
  color: var(--off-white);
  background: var(--navy-deep);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---- Centred content column, used by every section ---- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Headings use Fraunces, kept light (not bold) at large sizes ---- */
h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.2;
}

/* ---- Reusable small uppercase label ---- */
.eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 24px;
  border-radius: 999px;
  white-space: nowrap;
  transition: transform 0.15s ease, opacity 0.15s ease, background-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

/* Solid periwinkle pill with dark text — the main call to action */
.btn-primary {
  background: var(--periwinkle);
  color: var(--navy-deep);
}

.btn-primary:hover {
  background: var(--periwinkle-bright);
}

/* Lighter, outlined pill for the header */
.btn-secondary {
  background: rgba(var(--off-white-rgb), 0.08);
  color: var(--off-white);
  border: 1px solid rgba(var(--off-white-rgb), 0.28);
}

.btn-secondary:hover {
  background: rgba(var(--off-white-rgb), 0.16);
}

/* Plain text link with underline */
.btn-link {
  color: var(--off-white);
  padding: 13px 6px;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(var(--off-white-rgb), 0.4);
}

.btn-link:hover {
  text-decoration-color: var(--off-white);
}

/* =========================================================
   Header
   ========================================================= */
.site-header {
  background: var(--navy-deep);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 22px;
  padding-bottom: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 34px;
  height: 34px;
}

.brand-name {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.4rem;
  color: var(--off-white);
}

.nav {
  display: flex;
  gap: 30px;
  margin-left: auto;          /* pushes nav + button to the right */
  font-size: 0.95rem;
}

.nav a {
  color: rgba(var(--off-white-rgb), 0.78);
  transition: color 0.15s ease;
}

.nav a:hover {
  color: var(--off-white);
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  /* simple dark gradient — no glow */
  background: linear-gradient(165deg, var(--navy-deep) 0%, var(--navy-mid) 55%, var(--navy-light) 100%);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 146px;
  align-items: center;
  gap: 38px;
  padding-top: 90px;
  padding-bottom: 110px;
}

.hero h1 {
  font-size: clamp(1.9rem, 2.9vw, 2.5rem);
  color: var(--off-white);
  margin-bottom: 22px;
}

.hero-sub {
  font-size: 1.05rem;
  color: rgba(var(--off-white-rgb), 0.78);
  max-width: 42ch;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

/* ---- Phone mockup + butterfly ---- */
.hero-media {
  position: relative;
}

.hero-phones {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  filter: drop-shadow(0 30px 55px rgba(0, 0, 0, 0.4));
}

.hero-butterfly {
  position: absolute;
  right: -120px;
  top: -70px;
  width: 460px;
  opacity: 0.4;
  z-index: 0;
  pointer-events: none;
}

/* ---- Far-right note with a thin vertical rule ---- */
.hero-aside {
  align-self: center;
  border-left: 1px solid rgba(var(--off-white-rgb), 0.28);
  padding-left: 18px;
}

.hero-aside p {
  font-size: 0.78rem;
  line-height: 1.75;
  color: var(--text-light);
}

/* =========================================================
   How Flarelight works
   ========================================================= */
.how {
  background: var(--off-white);
  overflow: hidden;              /* clips panel 4's bleeding background */
  padding-top: 78px;
  padding-bottom: 86px;
}

.how-head {
  margin-bottom: 40px;
}

.how-head h2 {
  font-size: 34px;
  color: var(--text-heading);
}

.how-panels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  align-items: stretch;
}

/* ---- Cards 1–3 ---- */
.how-card {
  display: flex;
  flex-direction: column;
  background: var(--card-white);
  border-radius: 18px;
  box-shadow: 0 16px 36px -18px rgba(23, 37, 61, 0.18);
  overflow: hidden;             /* crops the bottom of the phone screenshot */
}

.how-card-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
  padding: 24px 22px 6px;
}

.how-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--lavender-mid);
  color: var(--violet);
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 16px;
}

.how-card h3 {
  font-size: 20px;
  color: var(--text-heading);
}

.how-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--lavender-pale);
  color: var(--violet);
}

.how-icon svg {
  width: 19px;
  height: 19px;
}

.how-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-body);
}

.how-shot {
  display: flex;
  justify-content: center;
  height: 250px;
  margin-top: auto;             /* pin the phone to the bottom of the card */
  padding-top: 12px;
  overflow: hidden;
}

.how-shot img {
  width: 82%;
  align-self: flex-start;
  border-radius: 8px;
}

/* ---- Panel 4: flower-mark background, bleeds off the right edge ---- */
.how-feature {
  position: relative;
  display: flex;
  align-items: center;
  padding: 30px 26px;
}

/* pale lavender base */
.how-feature::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: -60vw;                 /* bleed past the page edge; .how hides the overflow */
  background: var(--lavender-pale);
  border-radius: 18px 0 0 18px;
  z-index: 0;
}

/* soft flower mark, cropped by the right edge */
.how-feature::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: -60vw;
  background: url("Images/png/flarelight-mark-512.png") right -55px center / 440px no-repeat;
  opacity: 0.6;
  z-index: 0;
}

.how-feature-inner {
  position: relative;
  z-index: 1;
}

.how-feature h3 {
  font-size: 20px;
  color: var(--text-heading);
  margin-bottom: 10px;
}

.how-feature p {
  max-width: 21ch;
  margin-bottom: 18px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-body);
}

.how-feature-mark {
  width: 30px;
  height: 30px;
}

/* =========================================================
   See your health over time
   ========================================================= */
.flare {
  background: var(--lavender-pale);
  padding-top: 72px;
  padding-bottom: 72px;
}

.flare-inner {
  display: grid;
  grid-template-columns: 3fr 5fr;   /* copy · chart */
  align-items: center;
  gap: 44px;
}

.flare-title {
  font-size: 32px;
  color: var(--text-heading);
}

.flare-subhead {
  margin-top: 18px;
  font-size: 26px;
  color: var(--text-heading);
}

.flare-copy p {
  max-width: 32ch;
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-body);
}

.flare-card {
  padding: 12px;
  background: var(--card-white);
  border-radius: 20px;
  box-shadow: 0 22px 48px -22px rgba(var(--navy-deep-rgb), 0.22);
}

.flare-card img {
  display: block;
  width: 100%;
  border-radius: 12px;
}

/* =========================================================
   Built from lived experience
   ========================================================= */
.founder {
  background: var(--off-white);
  padding-top: 80px;
  padding-bottom: 88px;
}

.founder-inner {
  max-width: 680px;
  margin: 0 auto;
}

.founder-title {
  margin-bottom: 20px;
  font-size: 28px;
  color: var(--text-heading);
}

.founder-body p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-body);
}

.founder-body p + p {
  margin-top: 15px;
}

.founder-body .founder-sign-name {
  margin-top: 28px;
  font-size: 14px;
  color: var(--text-body);
}

/* =========================================================
   Waitlist CTA
   ========================================================= */
.cta {
  position: relative;
  background: var(--lavender-mid);
  padding-top: 74px;
  padding-bottom: 80px;
}

/* butterfly artwork, bleeding off both edges */
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("Images/cta-butterflies.png") center / cover no-repeat;
  z-index: 0;
}

.cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.cta h2 {
  margin-bottom: 12px;
  font-size: 28px;
  color: var(--text-heading);
}

.cta p {
  margin-bottom: 26px;
  font-size: 15px;
  color: var(--text-body);
}

.cta-form {
  display: flex;
  gap: 10px;
  max-width: 520px;
  margin: 0 auto;
}

.cta-form input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 14px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--card-white);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-heading);
}

.cta-form input[type="email"]::placeholder {
  color: var(--text-light);
}

/* the button that opens the consent dialog — a direct child of the
   form, as distinct from the buttons living inside <dialog> below */
.cta-form > button {
  flex-shrink: 0;
  padding: 14px 26px;
  border: 0;
  border-radius: 999px;
  background: var(--violet);
  color: var(--card-white);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.cta-form > button:hover {
  filter: brightness(0.93);
  transform: translateY(-1px);
}

/* =========================================================
   Consent dialog — opens on "Join the waitlist", not submitted
   until both boxes are ticked and confirmed inside it
   ========================================================= */
.consent-dialog {
  max-width: 480px;
  width: calc(100% - 48px);
  margin: auto;
  padding: 30px 26px 26px;
  border: 0;
  border-radius: 20px;
  background: var(--card-white);
  box-shadow: 0 30px 70px -20px rgba(var(--navy-deep-rgb), 0.45);
  text-align: left;
}

.consent-dialog::backdrop {
  background: rgba(var(--navy-deep-rgb), 0.55);
}

.consent-dialog-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: var(--lavender-pale);
  color: var(--text-heading);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.consent-dialog-close:hover {
  background: var(--lavender-mid);
}

#consent-dialog-title {
  font-size: 22px;
  color: var(--text-heading);
  padding-right: 28px;   /* clears the close button */
}

.consent-dialog-intro {
  margin-top: 8px;
  margin-bottom: 18px;
  font-size: 14px;
  color: var(--text-body);
}

/* ---- Consent checkboxes — unticked by default, both required ---- */
.cta-consent {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cta-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.cta-checkbox input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--violet);
  cursor: pointer;
}

.cta-checkbox span {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-body);
}

.cta-consent-error {
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--error);
}

#waitlist-confirm-btn {
  width: 100%;
  margin-top: 20px;
  padding: 14px 26px;
  border: 0;
  border-radius: 999px;
  background: var(--violet);
  color: var(--card-white);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.15s ease;
}

#waitlist-confirm-btn:hover {
  filter: brightness(0.93);
  transform: translateY(-1px);
}

.cta-fineprint {
  max-width: 460px;
  margin: 16px auto 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-body);
}

.cta-fineprint a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Shown after a real submission redirects back with ?waitlist=success
   or ?waitlist=error — see waitlist-form.js */
.cta-status {
  max-width: 460px;
  margin: 14px auto 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.cta-status-success {
  color: var(--success);
}

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

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--navy-deep);
  padding-top: 34px;
  padding-bottom: 34px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.footer-mark {
  width: 28px;
  height: 28px;
}

.footer-name {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.15rem;
  color: var(--off-white);
}

.footer-tagline {
  font-size: 13px;
  color: var(--text-light);
}

/* Four distinct legal links — always visible, never collapsed into a menu */
.footer-links {
  display: flex;
  flex-wrap: wrap;
  row-gap: 10px;
  column-gap: 28px;
  font-size: 14px;
}

.footer-links a {
  color: var(--text-light);
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--off-white);
}

/* Medical disclaimer — visible body copy, muted navy, not shouting */
.footer-disclaimer {
  max-width: 640px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-light);
}

.footer-copy {
  font-size: 13px;
  color: var(--text-light);
  opacity: 0.7;
}

/* =========================================================
   Legal pages (privacy, terms, app-privacy, health-data)
   Long documents people need to actually read — kept to a
   narrow, high-contrast column with generous line-height.
   ========================================================= */
.legal {
  background: var(--off-white);
  padding-top: 64px;
  padding-bottom: 100px;
}

.legal-container {
  max-width: 680px;
  margin: 0 auto;
}

.legal-title {
  font-size: 38px;
  color: var(--navy-deep);
}

.legal-title-rule {
  width: 56px;
  height: 3px;
  margin: 22px 0 0;
  border: 0;
  background: var(--accent-coral);   /* apricot — this rule only */
}

.legal-updated {
  margin-top: 18px;
  font-size: 14px;
  color: var(--text-light);
}

.legal-body {
  margin-top: 40px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--navy-deep);
}

.legal-body h2 {
  margin-top: 44px;
  margin-bottom: 14px;
  font-size: 24px;
  color: var(--navy-deep);
}

.legal-body h2:first-child {
  margin-top: 0;
}

/* markdown ### / #### become sans-serif sub-headings, not more serif display type */
.legal-body h3 {
  margin-top: 30px;
  margin-bottom: 10px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 18px;
  color: var(--navy-deep);
}

.legal-body h4 {
  margin-top: 22px;
  margin-bottom: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 16px;
  color: var(--navy-deep);
}

.legal-body p {
  margin-top: 16px;
}

.legal-body p:first-child {
  margin-top: 0;
}

.legal-body ul,
.legal-body ol {
  margin-top: 16px;
  padding-left: 22px;
}

.legal-body li + li {
  margin-top: 8px;
}

.legal-body a {
  color: var(--violet);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-body strong {
  font-weight: 600;
}

.legal-body hr.legal-rule {
  margin: 36px 0;
  border: 0;
  border-top: 1px solid var(--lavender-mid);   /* soft lilac */
}

/* =========================================================
   Smaller screens
   Most visitors are on phones, so this is the view that matters.
   Every multi-column section collapses to one column here, body
   copy stays at 16px+, and buttons go full width with a big
   tap target.
   ========================================================= */
@media (max-width: 900px) {

  /* ---- Header: just the logo on mobile ---- */
  .nav {
    display: none;
  }

  .site-header .btn-secondary {
    display: none;              /* the hero CTA right below is the mobile call to action */
  }

  .brand-name {
    font-size: 1.15rem;
  }

  /* ---- Hero ---- */
  .hero-inner {
    grid-template-columns: 1fr;      /* single column */
    gap: 26px;
    padding-top: 34px;
    padding-bottom: 54px;
  }

  .hero h1 {
    font-size: clamp(1.35rem, 6vw, 1.9rem);
    margin-bottom: 18px;
  }

  .hero-sub {
    max-width: none;
    margin-bottom: 26px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
    padding: 16px 24px;          /* ~56px tall */
  }

  .hero-phones {
    max-width: 360px;
  }

  .hero-butterfly {
    display: none;               /* drop the decorative mark on phones */
  }

  .hero-aside {
    border-left: none;
    padding-left: 0;
    text-align: center;
  }

  .hero-aside p {
    font-size: 1rem;            /* 16px */
  }

  /* ---- How Flarelight works ---- */
  .how {
    padding-top: 56px;
    padding-bottom: 60px;
  }

  .how-head {
    margin-bottom: 24px;
  }

  .how-head h2 {
    font-size: 26px;
  }

  .how-panels {
    grid-template-columns: 1fr;   /* single column */
    gap: 16px;
  }

  .how-card p {
    font-size: 16px;
  }

  .how-shot {
    height: 240px;
  }

  .how-feature {
    min-height: 0;
    padding: 30px 24px 34px;
    border-radius: 18px;
    overflow: hidden;             /* contain the flower mark — no bleed on mobile */
  }

  .how-feature::before,
  .how-feature::after {
    right: 0;
    border-radius: 18px;
  }

  .how-feature::after {
    background-position: right -30px bottom -34px;
    background-size: 240px;
  }

  .how-feature h3 {
    font-size: 22px;
  }

  .how-feature p {
    max-width: none;
    font-size: 16px;
  }

  /* ---- See your health over time ---- */
  .flare {
    padding-top: 52px;
    padding-bottom: 52px;
  }

  .flare-inner {
    grid-template-columns: 1fr;   /* single column */
    gap: 22px;
  }

  .flare-title {
    font-size: 26px;
  }

  .flare-subhead {
    margin-top: 12px;
    font-size: 21px;
  }

  .flare-copy p {
    max-width: none;
    font-size: 16px;
  }

  /* ---- Built from lived experience ---- */
  .founder {
    padding-top: 56px;
    padding-bottom: 60px;
  }

  .founder-title {
    font-size: 24px;
  }

  .founder-body p {
    font-size: 16px;
  }

  .founder-body .founder-sign-name {
    font-size: 16px;
  }

  /* ---- Waitlist CTA ---- */
  .cta {
    padding-top: 56px;
    padding-bottom: 60px;
  }

  .cta h2 {
    font-size: 24px;
  }

  .cta p {
    font-size: 16px;
  }

  /* ---- Footer: stack and centre ---- */
  .footer-links {
    row-gap: 12px;
    column-gap: 22px;
    font-size: 15px;
  }

  .footer-links a {
    display: inline-block;
    padding: 4px 0;             /* a little extra vertical tap room */
  }

  .footer-tagline,
  .footer-copy {
    font-size: 14px;
  }

  /* ---- Legal pages ---- */
  .legal {
    padding-top: 44px;
    padding-bottom: 64px;
  }

  .legal-title {
    font-size: 28px;
  }

  .legal-body {
    margin-top: 30px;
    font-size: 17px;   /* stays >=16px on phones, per the site-wide rule */
  }

  .legal-body h2 {
    font-size: 21px;
  }
}

@media (max-width: 600px) {
  /* Waitlist form — stack the email field and the button, both full width */
  .cta-form {
    flex-direction: column;
    max-width: 400px;
  }

  .cta-form input[type="email"],
  .cta-form > button {
    width: 100%;
    padding: 16px 22px;
  }

  .consent-dialog {
    padding: 26px 20px 22px;
  }

  .cta-checkbox span {
    font-size: 16px;   /* consent text stays >=16px on phones, per the site-wide rule */
  }

  .cta-consent-error {
    font-size: 15px;
  }

  .cta-status {
    font-size: 15px;
  }

  #waitlist-confirm-btn {
    padding: 16px 22px;
  }
}
