/* ==========================================================================
   Lavora — pre-launch site styles
   One stylesheet shared by every page. Design tokens live in :root.
   ========================================================================== */

:root {
  /* Color */
  --ink: #0b1d22;            /* headings, dark bands */
  --text: #24363b;           /* body copy */
  --muted: #5a6b70;          /* secondary copy */
  --bg: #ffffff;
  --surface: #f4f8f8;        /* alternating section background */
  --border: #dde7e8;
  --brand: #0e7c7b;          /* primary teal — 5:1 on white */
  --brand-strong: #0a5e5d;
  --brand-soft: #e3f3f2;
  --success: #1c8a4c;
  --success-soft: #e4f5ea;
  --warn: #9a6512;
  --warn-soft: #fbf1df;
  --danger: #b42318;
  /* The two sides of hiring. Matched in lightness and contrast so neither
     reads as the "main" audience; neither uses the brand teal. */
  --side-applicant: #2f5fb3;
  --side-applicant-soft: #e8eefa;
  --side-employer: #8a3d86;
  --side-employer-soft: #f5e9f4;

  /* Type */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-xl: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --fs-2xl: clamp(1.875rem, 1.4rem + 2vw, 2.75rem);
  --fs-3xl: clamp(2.25rem, 1.5rem + 3.4vw, 3.75rem);

  /* Space & shape */
  --gutter: 1rem;
  --container: 1120px;
  --prose: 44rem;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(11, 29, 34, 0.06);
  --shadow: 0 1px 2px rgba(11, 29, 34, 0.05), 0 8px 24px rgba(11, 29, 34, 0.07);
  --shadow-lg: 0 2px 4px rgba(11, 29, 34, 0.04), 0 24px 48px rgba(11, 29, 34, 0.1);
}

@media (min-width: 640px) {
  :root { --gutter: 1.5rem; }
}

/* --- Base ---------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  font-weight: 700;
  text-wrap: balance;
}
h1 { font-size: var(--fs-3xl); letter-spacing: -0.035em; }
h2 { font-size: var(--fs-2xl); letter-spacing: -0.03em; }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-base); }

p { margin: 0 0 1em; text-wrap: pretty; }

a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-strong); }

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
}
.skip-link:focus { top: 1rem; color: #fff; }

/* --- Layout -------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: clamp(3.5rem, 2rem + 6vw, 6.5rem) 0; }
.section--tint { background: var(--surface); }
.section--tight { padding: clamp(2.5rem, 1.5rem + 4vw, 4rem) 0; }
.section--flush-top { padding-top: 0; }

.section-head { max-width: 42rem; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3rem); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: var(--fs-lg); line-height: 1.55; }

.eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.75rem;
}

.grid { display: grid; gap: 1.25rem; }
@media (min-width: 720px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
/* Between 720 and 999px a 3-item grid wraps as 2 + 1; let the last item fill the row. */
@media (min-width: 720px) and (max-width: 999px) {
  .grid--3 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 1000px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--border); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand img { width: 28px; height: 28px; }

.site-nav { display: flex; align-items: center; gap: 0.25rem; }
.site-nav a:not(.btn) {
  color: var(--text);
  text-decoration: none;
  font-size: var(--fs-sm);
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
}
.site-nav a:not(.btn):hover { background: var(--surface); color: var(--ink); }
.site-nav a:not(.btn)[aria-current="page"] { color: var(--brand); }
.site-nav .btn { margin-left: 0.5rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  cursor: pointer;
  color: var(--ink);
}
.nav-toggle svg { margin: auto; }

@media (max-width: 859px) {
  .nav-toggle { display: grid; place-items: center; }
  .site-nav {
    position: absolute;
    top: 4rem;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 0.75rem var(--gutter) 1.25rem;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) { padding: 0.75rem; font-size: var(--fs-base); }
  .site-nav .btn { margin: 0.5rem 0 0; }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1;
  padding: 0.85rem 1.25rem;
  min-height: 2.75rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-strong); color: #fff; }
.btn--secondary { background: #fff; color: var(--ink); border-color: var(--border); }
.btn--secondary:hover { border-color: var(--brand); color: var(--brand-strong); }
.btn--ghost { background: transparent; color: var(--muted); }
.btn--ghost:hover { color: var(--ink); background: var(--surface); }
.btn--lg { font-size: var(--fs-base); padding: 1rem 1.5rem; min-height: 3.25rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* --- Hero ---------------------------------------------------------------- */

.hero {
  padding: clamp(3rem, 2rem + 5vw, 6rem) 0 clamp(3.5rem, 2rem + 5vw, 6rem);
  background:
    radial-gradient(60rem 30rem at 85% -10%, var(--brand-soft), transparent 70%),
    var(--bg);
  overflow: hidden;
}
.hero__grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 960px) {
  .hero__grid { grid-template-columns: 1.1fr 0.9fr; gap: 4rem; }
}
.hero h1 { margin-bottom: 1.25rem; }
.hero__lede {
  font-size: var(--fs-lg);
  color: var(--muted);
  max-width: 34rem;
  margin-bottom: 2rem;
  line-height: 1.55;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--brand-strong);
  background: var(--brand-soft);
  border: 1px solid rgba(14, 124, 123, 0.18);
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}
.pill::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 3px rgba(14, 124, 123, 0.2);
}

/* Page hero (inner pages) */
.page-hero { padding: clamp(3rem, 2rem + 4vw, 5rem) 0 clamp(2rem, 1.5rem + 3vw, 3.5rem); }
.page-hero .hero__lede { margin-bottom: 1.75rem; }

/* --- Product mock (illustrative UI in the hero) -------------------------- */

.mock {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.25rem;
  max-width: 30rem;
  margin: 0 auto;
  width: 100%;
}
.mock__label {
  position: absolute;
  top: -0.7rem;
  left: 1.25rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
}
.mock__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin: 0.5rem 0 1rem; }
.mock__title { font-weight: 700; color: var(--ink); font-size: 1.05rem; line-height: 1.3; margin: 0; }
.mock__sub { font-size: var(--fs-xs); color: var(--muted); margin: 0.15rem 0 0; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  white-space: nowrap;
}

.mock__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-top: 1px solid var(--border);
  font-size: var(--fs-sm);
}
.mock__row span:first-child { color: var(--muted); }
.mock__row strong { color: var(--ink); font-weight: 600; text-align: right; }

.mock__note {
  margin-top: 0.9rem;
  padding: 0.75rem 0.9rem;
  background: var(--brand-soft);
  border-radius: var(--radius-sm);
  font-size: var(--fs-xs);
  color: var(--brand-strong);
  line-height: 1.5;
}

/* --- Cards --------------------------------------------------------------- */

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: 0.4rem; }
.card p { color: var(--muted); margin: 0; }
.card p + p { margin-top: 0.75rem; }

/* Stat cards */
.stat { display: flex; flex-direction: column; }
.stat__num {
  font-size: clamp(2.25rem, 1.8rem + 1.6vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 0.6rem;
  font-variant-numeric: tabular-nums;
}
.stat__label { color: var(--text) !important; font-size: var(--fs-sm); line-height: 1.5; flex: 1; }
.stat__src { margin-top: 1rem !important; font-size: var(--fs-xs); color: var(--muted); }
.stat__src a { color: inherit; }

/* Two-sided problem panels */
.side {
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  border: 1px solid var(--border);
  background: #fff;
}
.side__label {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.side__label--applicant { color: var(--side-applicant); }
.side__label--employer { color: var(--side-employer); }
.side h3 { font-size: var(--fs-xl); margin-bottom: 0.75rem; }
.side p { color: var(--muted); }
.side ul { margin: 1.25rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.7rem; }
.side li { position: relative; padding-left: 1.6rem; font-size: var(--fs-sm); color: var(--text); }
.side li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 0.7rem; height: 2px;
  background: var(--brand);
}

.root-cause {
  margin-top: 1.25rem;
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  background: var(--ink);
  color: #c9d6d8;
  display: grid;
  gap: 1rem;
}
@media (min-width: 860px) {
  .root-cause { grid-template-columns: 0.8fr 1.2fr; gap: 3rem; align-items: center; }
}
.root-cause h3 { color: #fff; font-size: var(--fs-xl); margin: 0; }
.root-cause p { margin: 0; }
.root-cause strong { color: #fff; }

/* Quote */
.quote {
  margin: 0;
  padding: 1.5rem 1.75rem;
  border-left: 3px solid var(--brand);
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.quote p { font-size: var(--fs-lg); color: var(--ink); font-weight: 500; line-height: 1.5; margin-bottom: 0.5rem; }
.quote blockquote { margin: 0; }
.quote blockquote p::before { content: "\201C"; }
.quote blockquote p::after { content: "\201D"; }
.quote footer { font-size: var(--fs-sm); color: var(--muted); }

/* Two-column layout */
.split { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 4rem; } }

/* --- FAQ ----------------------------------------------------------------- */

.faq { max-width: 48rem; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1.25rem 2.5rem 1.25rem 0;
  position: relative;
  font-weight: 600;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 0.5rem; top: 50%;
  width: 0.6rem; height: 0.6rem;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details > div { padding: 0 0 1.25rem; color: var(--muted); }
.faq details > div p:last-child { margin: 0; }

/* --- Waitlist ------------------------------------------------------------ */

.waitlist {
  background: var(--surface);
  scroll-margin-top: 4rem;
}
.waitlist__card {
  max-width: 40rem;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: clamp(1.5rem, 1rem + 3vw, 2.75rem);
  scroll-margin-top: 5.5rem;
}
.waitlist__card h2 { font-size: var(--fs-xl); }
.waitlist__intro { color: var(--muted); margin-bottom: 1.75rem; }

.field { display: grid; gap: 0.4rem; margin-bottom: 1.25rem; }
.field > label, .field > legend {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink);
  padding: 0;
}
.field .hint { font-size: var(--fs-xs); color: var(--muted); font-weight: 400; }
fieldset.field { border: 0; margin: 0 0 1.25rem; padding: 0; min-width: 0; }

.input, .select, .textarea {
  width: 100%;
  font: inherit;
  font-size: var(--fs-base);
  color: var(--ink);
  background: #fff;
  border: 1px solid #c8d5d7;
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  min-height: 2.9rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.textarea { min-height: 6rem; resize: vertical; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%235a6b70'%3E%3Cpath d='M5.3 7.3a1 1 0 0 1 1.4 0L10 10.6l3.3-3.3a1 1 0 1 1 1.4 1.4l-4 4a1 1 0 0 1-1.4 0l-4-4a1 1 0 0 1 0-1.4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1.1rem;
  padding-right: 2.5rem;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(14, 124, 123, 0.2);
}
.input[aria-invalid="true"] { border-color: var(--danger); }

/* Segmented role picker */
.choice-group { display: grid; gap: 0.6rem; }
@media (min-width: 560px) { .choice-group--3 { grid-template-columns: repeat(3, 1fr); } }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 2.9rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid #c8d5d7;
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text);
  transition: all 0.15s ease;
}
.choice input:hover + span { border-color: var(--brand); }
.choice input:checked + span {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px var(--brand);
}
.choice input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 2px; }
/* The role picker uses each side's own color; "Both" keeps the neutral brand teal. */
.choice input[name="role"][value="applicant"]:checked + span {
  border-color: var(--side-applicant);
  background: var(--side-applicant-soft);
  color: var(--side-applicant);
  box-shadow: inset 0 0 0 1px var(--side-applicant);
}
.choice input[name="role"][value="employer"]:checked + span {
  border-color: var(--side-employer);
  background: var(--side-employer-soft);
  color: var(--side-employer);
  box-shadow: inset 0 0 0 1px var(--side-employer);
}

.checkbox { display: flex; gap: 0.65rem; align-items: flex-start; font-size: var(--fs-sm); color: var(--text); }
.checkbox input { width: 1.1rem; height: 1.1rem; margin-top: 0.2rem; accent-color: var(--brand); flex: none; }

.form-fineprint { font-size: var(--fs-xs); color: var(--muted); margin: 1rem 0 0; text-align: center; }
.form-error {
  display: none;
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  background: #fdecea;
  color: var(--danger);
  font-size: var(--fs-sm);
}
.form-error.is-visible { display: block; }

.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.form-step[hidden] { display: none; }
.detail-group[hidden] { display: none; }
.detail-group:not([hidden]) ~ .detail-group:not([hidden]) { border-top: 1px solid var(--border); padding-top: 1.5rem; margin-top: 0.5rem; }
.detail-group__title { font-size: var(--fs-sm); font-weight: 700; color: var(--brand-strong); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 1rem; }

.success-badge {
  width: 3rem; height: 3rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--success-soft);
  color: var(--success);
  margin-bottom: 1rem;
}
.success-badge svg { width: 1.5rem; height: 1.5rem; }

.step-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin-top: 0.5rem; }

/* --- Article (The state of hiring) --------------------------------------- */

.article { max-width: var(--prose); margin: 0 auto; }
.article-meta { font-size: var(--fs-sm); color: var(--muted); margin: 0; }
.article h2 { font-size: var(--fs-xl); margin-top: 3rem; scroll-margin-top: 5rem; }
.article h2:first-child { margin-top: 0; }
.article p, .article li { font-size: 1.0938rem; line-height: 1.75; }
.article sup a { text-decoration: none; font-weight: 600; font-size: 0.75em; padding: 0 0.1em; }

.summary-box {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.5rem 1.75rem;
  margin: 0 0 2.5rem;
}
.summary-box h2 { font-size: var(--fs-base) !important; text-transform: uppercase; letter-spacing: 0.06em; color: var(--brand-strong); margin: 0 0 0.75rem !important; }
.summary-box ul { margin: 0; padding-left: 1.2rem; }
.summary-box li { margin-bottom: 0.5rem; }
.summary-box li:last-child { margin-bottom: 0; }

.pull-stats { display: grid; gap: 1rem; margin: 2rem 0; }
@media (min-width: 600px) { .pull-stats { grid-template-columns: repeat(2, 1fr); } }
.pull-stats .card { padding: 1.25rem; }
.pull-stats .stat__num { font-size: 2.25rem; }

.toc {
  font-size: var(--fs-sm);
  border-left: 2px solid var(--border);
  padding-left: 1rem;
  margin: 0 0 2.5rem;
}
.toc p { font-weight: 600; color: var(--ink); margin-bottom: 0.4rem; }
.toc ol { margin: 0; padding-left: 1.1rem; color: var(--muted); }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--brand); text-decoration: underline; }

/* The cycle diagram */
.cycle {
  list-style: none;
  margin: 2rem 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  counter-reset: cycle;
}
@media (min-width: 640px) { .cycle { grid-template-columns: repeat(2, 1fr); } }
.cycle li {
  counter-increment: cycle;
  position: relative;
  padding: 1rem 1rem 1rem 3.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  font-size: var(--fs-sm) !important;
  line-height: 1.55 !important;
}
.cycle li::before {
  content: counter(cycle);
  position: absolute;
  left: 1rem; top: 1rem;
  width: 1.5rem; height: 1.5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}
.cycle li strong { display: block; color: var(--ink); }
.cycle-caption { font-size: var(--fs-sm) !important; color: var(--muted); text-align: center; margin-top: -0.75rem; }

/* Sources */
.sources { font-size: var(--fs-sm); color: var(--muted); }
.sources ol { padding-left: 1.25rem; }
.sources li { font-size: var(--fs-sm) !important; line-height: 1.6 !important; margin-bottom: 0.5rem; word-break: break-word; }

/* Legal/prose pages */
.prose { max-width: var(--prose); }
.prose h2 { font-size: var(--fs-lg); margin-top: 2.25rem; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: 0.4rem; }

/* --- CTA strip ----------------------------------------------------------- */

.cta-strip {
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: #c9d6d8;
  padding: clamp(2rem, 1.5rem + 3vw, 3.5rem);
  display: grid;
  gap: 1.5rem;
  align-items: center;
}
@media (min-width: 860px) { .cta-strip { grid-template-columns: 1fr auto; } }
.cta-strip h2 { color: #fff; font-size: var(--fs-xl); margin-bottom: 0.4rem; }
.cta-strip p { margin: 0; }

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

.site-footer {
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 2rem;
  font-size: var(--fs-sm);
  color: var(--muted);
}
.site-footer__grid { display: grid; gap: 2rem; }
@media (min-width: 760px) { .site-footer__grid { grid-template-columns: 1.6fr 1fr 1fr; } }
.site-footer p { max-width: 22rem; margin-top: 0.75rem; }
.site-footer .site-footer__title { font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink); margin: 0 0 0.9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--brand); text-decoration: underline; }
.site-footer__bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: var(--fs-xs);
}

/* --- Utilities ----------------------------------------------------------- */

.mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0 !important; }
.muted { color: var(--muted); }

/* --- Problem-focused components ----------------------------------------- */

.tag--muted { background: var(--warn-soft); color: var(--warn); }

/* A timeline of silence (hero illustration) */
.timeline { list-style: none; margin: 0 0 1rem; padding: 0; position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  left: 0.45rem; top: 0.6rem; bottom: 0.6rem;
  border-left: 2px dashed var(--border);
}
.timeline li { position: relative; padding: 0 0 1rem 2rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.3rem;
  width: 0.95rem; height: 0.95rem;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #c8d5d7;
}
.timeline li.is-done::before { background: var(--brand); border-color: var(--brand); }
.timeline strong { display: block; color: var(--ink); font-size: var(--fs-sm); line-height: 1.4; }
.timeline span { display: block; color: var(--muted); font-size: var(--fs-xs); }
.timeline li.is-quiet strong { color: var(--muted); font-weight: 500; font-style: italic; }

/* Home hero: the same role from both sides of the table. Two stacked cards;
   main.js picks which is in front at random, and hover, focus or tap swaps them. */
.duo { width: 100%; max-width: 30rem; margin: 0 auto; }
.duo__tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.75rem; }
.duo__tab {
  font: inherit;
  font-size: var(--fs-xs);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.duo__tab::before {
  content: "";
  width: 0.5rem; height: 0.5rem;
  border-radius: 50%;
  background: var(--side-color);
}
@media (max-width: 639px) {
  .duo__tab { min-height: 2.75rem; padding: 0.5rem 1rem; } /* 44px tap target on phones */
}
.duo__tab[aria-pressed="true"] { background: var(--side-soft); border-color: transparent; color: var(--side-color); }
.duo__tab--applicant, .duo__card--applicant { --side-color: var(--side-applicant); --side-soft: var(--side-applicant-soft); }
.duo__tab--employer, .duo__card--employer { --side-color: var(--side-employer); --side-soft: var(--side-employer-soft); }

.duo__stage { display: grid; padding-top: 3.5rem; }
.duo__card {
  grid-area: 1 / 1;
  align-self: start;
  justify-self: center;
  width: calc(100% - 2.5rem);
  max-width: none;
  margin: 0;
  z-index: 2;
  cursor: pointer;
  transform-origin: 50% 100%;
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.3s;
}
.duo__card .mock__label { color: var(--side-color); background: var(--side-soft); border-color: transparent; }
.duo__card--employer .mock__label { left: auto; right: 1.25rem; }
.duo__card > * { transition: opacity 0.3s; }

/* The card behind peeks out on its own side, mirrored, with equal area showing. */
.duo__card.is-back { z-index: 1; box-shadow: var(--shadow); }
.duo__card.is-back > :not(.mock__label) { opacity: 0.45; }
.duo__card--applicant.is-back { transform: translate(-0.75rem, -2.4rem) rotate(-2deg) scale(0.96); }
.duo__card--employer.is-back { transform: translate(0.75rem, -2.4rem) rotate(2deg) scale(0.96); }
@media (min-width: 640px) {
  .duo__card--applicant.is-back { transform: translate(-1.25rem, -2.4rem) rotate(-3deg) scale(0.96); }
  .duo__card--employer.is-back { transform: translate(1.25rem, -2.4rem) rotate(3deg) scale(0.96); }
}

.duo__caption { text-align: center; font-size: var(--fs-sm); color: var(--muted); margin: 1.25rem 0 0; }

/* Inbox rows (applicant hero illustration) */
.inbox-row { display: grid; gap: 0.15rem; padding: 0.8rem 0; border-top: 1px solid var(--border); }
.inbox-row:first-of-type { border-top: 0; padding-top: 0.2rem; }
.inbox-row strong { color: var(--ink); font-size: var(--fs-sm); font-weight: 600; }
.inbox-row span { color: var(--muted); font-size: var(--fs-xs); }

/* Quotes from real people */
.voices { display: grid; gap: 1.25rem; }
@media (min-width: 760px) { .voices { grid-template-columns: repeat(2, 1fr); } }
.voice {
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.voice blockquote { margin: 0; }
.voice blockquote p {
  margin: 0;
  font-size: var(--fs-lg);
  line-height: 1.5;
  color: var(--ink);
  font-weight: 500;
}
.voice blockquote p::before { content: "\201C"; color: var(--brand); font-weight: 700; margin-right: 0.1em; }
.voice blockquote p::after { content: "\201D"; color: var(--brand); font-weight: 700; margin-left: 0.05em; }
.voice figcaption { display: flex; align-items: center; gap: 0.6rem; font-size: var(--fs-sm); color: var(--muted); }
.voice__side {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
}
.voice__side--applicant { background: var(--side-applicant-soft); color: var(--side-applicant); }
.voice__side--employer { background: var(--side-employer-soft); color: var(--side-employer); }
.voices__note { margin-top: 1rem; font-size: var(--fs-xs); color: var(--muted); }

/* "There has to be a better way forward." */
.statement { background: var(--ink); color: #c9d6d8; text-align: center; }
.statement__inner { max-width: 46rem; margin: 0 auto; }
.statement__quote {
  margin: 0 0 1.5rem;
  font-size: clamp(2rem, 1.3rem + 3.2vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: #fff;
  text-wrap: balance;
}
.statement__quote em { font-style: normal; color: #6fd1cf; }
.statement p { font-size: var(--fs-lg); line-height: 1.6; }
.statement .btn-row { justify-content: center; margin-top: 2rem; }
.statement .btn--secondary { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.3); }
.statement .btn--secondary:hover { border-color: #fff; color: #fff; }
.statement .eyebrow { color: #6fd1cf; }

/* Role-specific extras inside the waitlist signup step */
.role-extra {
  margin: 0 0 1.5rem;
  padding: 1.25rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}
.role-extra[hidden] { display: none; }
.role-extra__title { font-weight: 700; color: var(--ink); font-size: var(--fs-sm); margin: 0 0 1rem; }
.role-extra__title .hint { font-weight: 400; }

/* --- Dedicated waitlist page -------------------------------------------- */

.waitlist-page {
  background:
    radial-gradient(60rem 30rem at 90% -10%, var(--brand-soft), transparent 70%),
    var(--surface);
  min-height: calc(100vh - 4rem);
}
.waitlist-layout { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 960px) {
  .waitlist-layout { grid-template-columns: 0.9fr 1.1fr; gap: 4rem; }
  .waitlist-aside { position: sticky; top: 6rem; }
}
.waitlist-aside h1 { font-size: var(--fs-2xl); margin-bottom: 1rem; }
.waitlist-aside .hero__lede { margin-bottom: 2rem; }
.waitlist-layout .waitlist__card { margin: 0; max-width: none; }

.next-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.next-list li {
  position: relative;
  padding-left: 2rem;
  font-size: var(--fs-sm);
  color: var(--muted);
}
.next-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.2rem;
  width: 1.2rem; height: 1.2rem;
  border-radius: 50%;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e7c7b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 0.7rem no-repeat;
}
.next-list strong { display: block; color: var(--ink); }

/* "Joining as a job seeker · Change" */
.role-lock {
  margin: 0 0 1.25rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: var(--fs-sm);
}
.role-lock[hidden] { display: none; }
.role-lock strong { color: var(--brand-strong); }
.link-button {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-weight: 600;
  color: var(--brand-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.link-button:hover { color: var(--ink); }
fieldset[hidden] { display: none; }

/* Home statement band: role-specific entry points */
.statement__sub { margin: 1rem 0 0; font-size: var(--fs-sm) !important; }
.statement__sub a { color: #9fdedc; }
.statement__sub a:hover { color: #fff; }
