/* Helpar waitlist pages. Built from the Figma "Join Waiting List" frames (1440 desktop, 1030 tablet).
   No inline styles anywhere: the Content Security Policy forbids them. */

@font-face {
  font-family: 'Inter Tight';
  src: url('fonts/inter-tight-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('fonts/manrope-latin-wght-normal.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --bg: #f8fafa;
  --surface: #ffffff;
  --field: #f4f5f5;
  --ink: #121212;
  --ink-2: #172321;
  --muted: #5d6866;
  --line: #e4eaea;
  --orange: #fa6507;
  --orange-hover: #e55a02;
  --teal: #069495;
  --teal-ink: #023434;
  --error: #b42318;
  --ok: #05705f;
  --radius: 16px;
  --display: 'Inter Tight', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Layout: photo rail + content ---------- */
.layout { min-height: 100vh; }
.rail { display: none; }

@media (min-width: 1100px) {
  .layout { display: grid; grid-template-columns: 400px 1fr; }
  .rail {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: sticky;
    top: 0;
    height: 100vh;
    min-height: 640px;
    padding: 72px 24px 40px;
    color: #fff;
    background: #8b8a85 url('img/hero.webp') center / cover no-repeat;
    isolation: isolate;
  }
  .rail::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(0,0,0,.34) 0%, rgba(0,0,0,.12) 38%, rgba(0,0,0,.18) 70%, rgba(0,0,0,.5) 100%);
  }
}
.rail-lead {
  margin: 0;
  text-align: center;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 400;
  text-wrap: balance;
}
.rail-lead strong { font-weight: 700; }

/* Teal overlay card (BrandedOverlay.svg) */
.overlay {
  margin: auto 0 32px;
  padding: 24px 26px;
  border-radius: var(--radius);
  background: rgba(6, 148, 149, .86);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.overlay h2 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 24px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -.01em;
}
.overlay p { margin: 0; font-size: 15px; line-height: 1.5; opacity: .95; }

/* Countdown (shown only when data-launch is set) */
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; }
.countdown b {
  display: block;
  font-family: var(--display);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.countdown span { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }

/* ---------- Main column ---------- */
.main { padding: 40px 16px 48px; }
@media (min-width: 720px) { .main { padding: 72px 32px 56px; } }

.wrap { max-width: 744px; margin: 0 auto; }

.topbar { display: flex; align-items: center; justify-content: center; position: relative; }
.brand { display: inline-flex; align-items: center; gap: 2px; text-decoration: none; }
.brand svg { width: 40px; height: 40px; }
.brand img { width: 122px; height: auto; }
.switch {
  position: absolute;
  right: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--teal-ink);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
@media (max-width: 719px) {
  .topbar { flex-direction: column; gap: 14px; }
  .switch { position: static; }
}

.banner {
  margin: 24px auto 0;
  max-width: 540px;
  padding: 12px 16px;
  border-radius: 12px;
  background: #e8f6f5;
  color: var(--teal-ink);
  text-align: center;
  font-weight: 600;
}

.hero { text-align: center; margin-top: 64px; }
@media (max-width: 719px) { .hero { margin-top: 40px; } }
.hero h1 {
  margin: 0 auto;
  max-width: 560px;
  font-family: var(--display);
  font-size: clamp(40px, 7vw, 64px);
  line-height: 1.04;
  font-weight: 500;
  letter-spacing: -.035em;
  color: var(--ink-2);
  text-wrap: balance;
}
.hero .sub {
  margin: 28px auto 0;
  max-width: 400px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
  text-wrap: balance;
}

/* ---------- Form card ---------- */
.card {
  margin: 48px auto 0;
  max-width: 540px;
  padding: 18px 20px 20px;
  background: var(--surface);
  border-radius: 20px;
  box-shadow: 0 1px 2px rgba(18, 18, 18, .04);
  text-align: left;
}
.segmented {
  display: inline-flex;
  margin: 0 0 14px;
  padding: 3px;
  border: 0;
  border-radius: 999px;
  background: var(--field);
}
.segmented legend { padding: 0; }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.segmented span {
  display: block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.segmented input:checked + span { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.segmented input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 1px; }

.row { display: flex; gap: 10px; }
.row + .row, .chips + .row { margin-top: 10px; }
.chips + .row { margin-top: 14px; }
@media (max-width: 559px) { .row { flex-direction: column; } }

.field {
  flex: 1 1 auto;
  min-width: 0;
  height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--field);
  color: var(--ink);
  font: 500 14px/1 var(--body);
}
.field::placeholder { color: #7a8482; }
.field:focus { outline: none; border-color: var(--teal); background: #fff; }
.field.postal { flex: 0 0 132px; text-transform: uppercase; }
.field.postal::placeholder { text-transform: none; }
@media (max-width: 559px) { .field.postal { flex-basis: auto; } }

.btn {
  flex: 0 0 auto;
  height: 48px;
  padding: 0 32px;
  border: 0;
  border-radius: 10px;
  background: var(--orange);
  color: #fff;
  font: 600 16px/1 var(--body);
  cursor: pointer;
  transition: background .15s;
}
.btn:hover { background: var(--orange-hover); }
.btn:disabled { opacity: .6; cursor: progress; }

.chips { margin: 14px 0 0; padding: 0; border: 0; }
.chips legend { font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 8px; }
.chips div { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span {
  display: block;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
}
.chips input:checked + span { border-color: var(--teal); background: #e8f6f5; color: var(--teal-ink); }
.chips input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 1px; }

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 14px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted);
}
.consent input { margin: 2px 0 0; width: 16px; height: 16px; accent-color: var(--teal); flex: none; }
.consent a { color: var(--teal-ink); }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; }
.cf-turnstile { margin-top: 12px; }
.cf-turnstile:empty { margin: 0; }

.status { min-height: 0; margin: 10px 0 0; font-size: 14px; font-weight: 600; }
.status:empty { display: none; }
.status[data-state='error'] { color: var(--error); }
.status[data-state='ok'] { color: var(--ok); }

/* ---------- Feature cards ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 64px;
}
@media (max-width: 799px) { .features { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; } }
.feature {
  padding: 20px 18px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
}
.feature svg { width: 24px; height: 24px; margin: 0 auto 10px; display: block; color: var(--teal-ink); }
.feature h3 { margin: 0 0 6px; font-size: 15px; font-weight: 600; letter-spacing: .01em; color: var(--ink); }
.feature p { margin: 0; font-size: 13px; line-height: 1.45; letter-spacing: .01em; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { margin-top: 104px; }
@media (max-width: 719px) { .faq { margin-top: 72px; } }
.faq h2 {
  margin: 0 0 44px;
  text-align: center;
  font-family: var(--display);
  font-size: clamp(30px, 4.4vw, 36px);
  line-height: 1.32;
  font-weight: 500;
  letter-spacing: -.035em;
  color: var(--ink);
}
.faq details {
  margin-top: 12px;
  background: var(--surface);
  border-radius: 14px;
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 24px;
  list-style: none;
  cursor: pointer;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  flex: none;
  width: 20px;
  height: 20px;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 18px 1.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 1.5px 18px no-repeat;
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 24px 24px; color: var(--muted); font-size: 15.5px; line-height: 1.6; max-width: 640px; }
@media (max-width: 559px) { .faq summary { font-size: 16px; padding: 20px 18px; } .faq details p { padding: 0 18px 20px; } }

/* ---------- Footer ---------- */
.footer { margin-top: 120px; text-align: center; }
.footer h2 { margin: 0 0 24px; font-size: 16px; font-weight: 500; }
.social { display: flex; justify-content: center; gap: 72px; margin: 0; padding: 0; list-style: none; }
.social a { display: block; color: var(--ink); }
.social svg { width: 22px; height: 22px; display: block; }
.legal { margin: 56px auto 0; max-width: 560px; font-size: 12px; line-height: 1.6; color: var(--muted); }
.legal a { color: var(--muted); }

/* ---------- Privacy page ---------- */
.prose { max-width: 680px; margin: 56px auto 0; font-size: 16px; line-height: 1.65; }
.prose h1 { font-family: var(--display); font-size: 40px; line-height: 1.1; letter-spacing: -.03em; font-weight: 500; margin: 0 0 8px; }
.prose h2 { font-family: var(--display); font-size: 22px; letter-spacing: -.01em; font-weight: 600; margin: 36px 0 8px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.prose .updated { color: var(--muted); margin: 0 0 24px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
