/* HeartWise — shared stylesheet
   Layout concept: two overlapping circles (you + them). Asymmetric hero,
   generous whitespace, the "overlap" plum used only where two things meet. */

:root {
  --bg: #a6dcfc; /* bright sky blue */
  --bg-pink: #fbd3e3;
  --bg-yellow: #fff1a8;
  --sun: #ffd84d;
  --surface: #ffffff;
  --ink: #1d2433;
  --muted: #475468;
  --line: #7fc3ec;
  --accent: #a3253e;
  --accent-ink: #ffffff;
  --accent-soft: #fbe3e7;
  --teal: #22625e;
  --on-teal: #ffffff;
  --teal-soft: #dcefec;
  --plum: #5c2654;
  --plum-ink: #fff0f3;
  --warn: #865309;
  --warn-soft: #fbefd9;
  --header-bg: #5e1a45;
  --header-ink: #b9f5c4;
  --header-hover: #73245a;

  /* Type: Fraunces (warm old-style serif) for headings, Atkinson Hyperlegible Next for everything you read.
     Scale: a major third (1.25) from a 17px base, with fluid display sizes. */
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-data: var(--font-body);

  --step--1: 0.9rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: 1.65rem;
  --step-3: clamp(2rem, 1.45rem + 2.1vw, 2.75rem);
  --step-4: clamp(2.5rem, 1.65rem + 3.7vw, 4.3rem);

  --radius: 14px;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1d2c;
    --bg-pink: #2a1424;
    --bg-yellow: #2a2410;
    --sun: #e8c440;
    --surface: #172a3c;
    --ink: #f2edf5;
    --muted: #a3b4c6;
    --line: #26425c;
    --accent: #ff6b81;
    --accent-ink: #1a0f14;
    --accent-soft: #3b1f2a;
    --teal: #5cc2b9;
    --on-teal: #0d1b26;
    --teal-soft: #173431;
    --plum: #c47ab8;
    --plum-ink: #1a0f18;
    --warn: #e6b062;
    --warn-soft: #362a17;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1d2c;
  --bg-pink: #2a1424;
  --bg-yellow: #2a2410;
  --sun: #e8c440;
  --surface: #172a3c;
  --ink: #f2edf5;
  --muted: #a3b4c6;
  --line: #26425c;
  --accent: #ff6b81;
  --accent-ink: #1a0f14;
  --accent-soft: #3b1f2a;
  --teal: #5cc2b9;
  --on-teal: #0d1b26;
  --teal-soft: #173431;
  --plum: #c47ab8;
  --plum-ink: #1a0f18;
  --warn: #e6b062;
  --warn-soft: #362a17;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 560;
  font-optical-sizing: auto;
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: var(--step-4); font-weight: 600; letter-spacing: -0.025em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); line-height: 1.25; font-weight: 600; letter-spacing: -0.005em; }
h4 { font-family: var(--font-body); font-weight: 700; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 50;
}
.skip:focus { left: 16px; }

/* Section labels: a quiet italic line in the heading face, not shouted capitals. */
.eyebrow {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--accent);
}
.lede { font-size: var(--step-1); color: var(--muted); max-width: 34em; line-height: 1.55; text-wrap: pretty; }
p, li { text-wrap: pretty; }
.muted { color: var(--muted); }
.prose { max-width: 65ch; display: grid; gap: 1em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: var(--header-bg);
  color: var(--header-ink);
  border-bottom: 1px solid var(--header-hover);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.4rem;
}
.site-header .brand { color: var(--header-ink); font-weight: 700; }
.brand img { width: 38px; height: 38px; }
.nav-links {
  display: flex; align-items: center; gap: 4px;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  display: block;
  padding: 8px 12px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--header-ink);
}
.nav-links a:hover { background: var(--header-hover); }
.nav-links a[aria-current="page"] { background: var(--header-hover); box-shadow: inset 0 0 0 1.5px var(--header-ink); }
.nav-links .btn {
  margin-left: 8px;
  background: transparent;
  color: var(--header-ink);
  border: 2px solid var(--header-ink);
}
.nav-links .btn:hover { background: var(--header-ink); color: var(--header-bg); }
.site-header :focus-visible { outline-color: var(--header-ink); }
.menu-toggle {
  display: none;
  background: none; border: 2px solid var(--header-ink); color: var(--header-ink);
  border-radius: 10px; padding: 8px 12px; font: inherit; font-weight: 700; cursor: pointer;
}

@media (max-width: 1180px) {
  .menu-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch;
    background: var(--header-bg);
    border-bottom: 1px solid var(--header-hover);
    padding: 8px var(--gutter) 16px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; }
  .nav-links .btn { margin: 8px 0 0; text-align: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit; font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Sections ---------- */
main { display: block; }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(32px, 5vw, 56px); max-width: 44rem; }

.page-hero { padding-block: clamp(48px, 7vw, 88px) clamp(32px, 4vw, 48px); }
.page-hero .wrap { display: grid; gap: 18px; }

/* ---------- Home hero ---------- */
.hero { padding-block: clamp(40px, 6vw, 80px); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
}
.hero-copy { display: grid; gap: 24px; min-width: 0; }
.hero h1 em { font-style: italic; color: var(--plum); }
.hero-art { position: relative; }
.hero-art img { width: 100%; aspect-ratio: 6 / 5; object-fit: contain; }
.hero-legend {
  display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center;
  font-family: var(--font-data); font-size: 0.78rem; color: var(--muted);
}
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.dot.you { background: var(--accent); }
.dot.them { background: var(--teal); }
.dot.both { background: var(--plum); }
.hero-note { font-size: var(--step--1); color: var(--muted); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 420px; margin-inline: auto; }
}

/* ---------- Dimensions ---------- */
.dimensions {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.dimension { padding: 24px 20px; display: grid; gap: 10px; align-content: start; }
.dimension + .dimension { border-left: 1px solid var(--line); }
.dimension img { width: 36px; height: 36px; }
.dimension .weight { font-family: var(--font-data); font-size: 0.75rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.dimension p { font-size: 0.95rem; color: var(--muted); }

@media (max-width: 960px) {
  .dimensions { grid-template-columns: 1fr; }
  .dimension { grid-template-columns: 36px 1fr; column-gap: 16px; }
  .dimension img { grid-row: span 3; }
  .dimension + .dimension { border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { display: grid; gap: 10px; align-content: start; padding-top: 20px; border-top: 2px solid var(--ink); }
.steps li::before {
  counter-increment: step;
  content: "Step " counter(step);
  font-family: var(--font-data); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent);
}
.steps p { color: var(--muted); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Split / band ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.split > * { min-width: 0; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.band {
  background: var(--plum);
  color: var(--plum-ink);
  border-radius: calc(var(--radius) * 1.5);
  padding: clamp(32px, 5vw, 56px);
  display: grid; gap: 20px; justify-items: start;
}
.band p { max-width: 40em; opacity: 0.85; }
.band .btn { background: var(--plum-ink); color: var(--plum); }

/* Mini score preview on home */
.score-preview {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; display: grid; gap: 14px;
}
.score-preview .big { font-family: var(--font-display); font-size: 3.4rem; line-height: 1; }
.score-preview .big small { font-size: 1.4rem; color: var(--muted); }

/* ---------- Bars (shared by preview + tool) ---------- */
.bars { display: grid; gap: 12px; }
.bar { display: grid; grid-template-columns: 8.5rem 1fr 3rem; align-items: center; gap: 12px; font-size: 0.92rem; }
.bar-track { height: 10px; border-radius: 999px; background: var(--line); overflow: hidden; }
.bar-fill { height: 100%; border-radius: inherit; background: var(--plum); width: 0; transition: width .5s ease; }
.bar-fill.lo { background: var(--accent); }
.bar-fill.mid { background: var(--warn); }
.bar-fill.hi { background: var(--teal); }
.bar-val { font-family: var(--font-data); text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 420px) { .bar { grid-template-columns: 6.5rem 1fr 2.6rem; gap: 8px; } }

/* ---------- Compatibility tool ---------- */
.tool { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 960px) { .tool { grid-template-columns: 1fr; } }

.names { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 8px; }
.field { display: grid; gap: 6px; }
.field label, .field .label { font-weight: 600; font-size: 0.9rem; }
input[type="text"], input[type="email"], input[type="search"], input[type="password"], input[type="tel"], input[type="number"], input[type="datetime-local"], select, textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 11px 14px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea { min-height: 140px; resize: vertical; }

.notice {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--warn-soft); color: var(--ink);
  border-radius: 10px; padding: 12px 14px; font-size: 0.92rem;
}
.notice strong { color: var(--warn); }

.qgroup { border-top: 1px solid var(--line); padding-block: 22px; display: grid; gap: 14px; }
.qgroup-head { display: flex; align-items: center; gap: 10px; }
.qgroup-head img { width: 26px; height: 26px; }
.qgroup-head .weight { margin-left: auto; font-family: var(--font-data); font-size: 0.75rem; color: var(--muted); }
.question { display: grid; gap: 10px; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.question > p { font-weight: 600; }
.scale-ends { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--muted); padding-left: 5.5rem; }
.answer-row { display: grid; grid-template-columns: 5rem 1fr; align-items: center; gap: 8px; }
.answer-row .who { font-size: 0.85rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.answer-row .who.you { color: var(--accent); }
.answer-row .who.them { color: var(--teal); }
.seg { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; border: 0; margin: 0; padding: 0; min-width: 0; }
.seg legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label {
  display: grid; place-items: center;
  height: 38px; border-radius: 8px;
  border: 1.5px solid var(--line);
  font-family: var(--font-data); font-size: 0.9rem;
  cursor: pointer; user-select: none;
  transition: background-color .12s ease, border-color .12s ease;
}
.seg label:hover { border-color: var(--muted); }
.seg input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 2px; }
.seg.you input:checked + label { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.seg.them input:checked + label { background: var(--teal); border-color: var(--teal); color: var(--surface); }
@media (max-width: 420px) {
  .answer-row { grid-template-columns: 3.8rem 1fr; }
  .scale-ends { padding-left: 4.3rem; }
  .names { grid-template-columns: 1fr; }
}

.results {
  position: sticky; top: calc(env(safe-area-inset-top, 0px) + 88px);
  background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) * 1.3);
  padding: clamp(20px, 3vw, 28px); display: grid; gap: 20px;
}
@media (max-width: 960px) { .results { position: static; } }
.ring { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; }
.ring svg { width: 112px; height: 112px; }
.ring .track { stroke: var(--line); }
.ring .meter { stroke: var(--plum); transition: stroke-dashoffset .6s ease; }
.ring text { fill: var(--ink); font-family: var(--font-display); }
.verdict { font-family: var(--font-display); font-size: var(--step-2); line-height: 1.15; }
.insights { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.insights li { display: grid; gap: 4px; padding: 12px 14px; border-radius: 10px; background: var(--bg); font-size: 0.92rem; }
.pill {
  justify-self: start;
  font-family: var(--font-data); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px;
}
.pill.hi { background: var(--teal-soft); color: var(--teal); }
.pill.mid { background: var(--warn-soft); color: var(--warn); }
.pill.lo { background: var(--accent-soft); color: var(--accent); }

/* ---------- Pricing ---------- */
.billing { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); gap: 4px; }
.billing button {
  font: inherit; font-weight: 600; font-size: 0.92rem; border: 0; background: transparent; color: var(--muted);
  padding: 8px 16px; border-radius: 999px; cursor: pointer;
}
.billing button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.billing .save { font-family: var(--font-data); font-size: 0.72rem; color: var(--teal); margin-left: 4px; }
.billing button[aria-pressed="true"] .save { color: var(--bg); opacity: .8; }

.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 32px; align-items: stretch; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 520px; } }
.plan {
  background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) * 1.3);
  padding: 28px; display: grid; gap: 18px; grid-template-rows: auto auto auto 1fr auto; position: relative;
}
.plan.featured { border: 2px solid var(--plum); }
.plan .tag {
  position: absolute; top: -12px; left: 28px;
  background: var(--plum); color: var(--plum-ink);
  font-family: var(--font-data); font-size: 0.72rem; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
}
.price { display: flex; align-items: baseline; gap: 6px; }
.price .amount { font-family: var(--font-display); font-size: 2.8rem; line-height: 1; font-variant-numeric: tabular-nums; }
.price .per { color: var(--muted); font-size: 0.9rem; }
.billed { font-size: 0.85rem; color: var(--muted); min-height: 1.4em; }
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; align-content: start; font-size: 0.95rem; }
.features li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; }
.features li::before { content: ""; width: 14px; height: 14px; margin-top: 5px; border-radius: 50%; background: var(--teal-soft); box-shadow: inset 0 0 0 4px var(--teal); }
.features li.no { color: var(--muted); }
.features li.no::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 0.95rem; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); }
thead th { font-family: var(--font-data); font-size: 0.75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
tbody tr:last-child td { border-bottom: 0; }
td.c, th.c { text-align: center; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); padding-block: 18px; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-data); color: var(--accent); font-size: 1.2rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: 10px; color: var(--muted); max-width: 65ch; }

/* ---------- Stories ---------- */
.stories { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 760px) { .stories { grid-template-columns: 1fr; } }
.story { background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) * 1.3); padding: 28px; display: grid; gap: 16px; align-content: start; }
.story-head { display: flex; align-items: center; gap: 14px; }
.avatars { display: flex; }
.avatars span {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; font-size: 0.9rem; border: 2px solid var(--surface);
}
.avatars span:first-child { background: var(--accent); color: var(--accent-ink); }
.avatars span:last-child { background: var(--teal); color: var(--surface); margin-left: -12px; }
.story-meta { font-family: var(--font-data); font-size: 0.78rem; color: var(--muted); }
.story blockquote { margin: 0; font-family: var(--font-display); font-size: var(--step-1); line-height: 1.35; }
.story .overlap { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 0.8rem; padding: 4px 10px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); }
.story.wide { grid-column: 1 / -1; }
.sample-flag { font-family: var(--font-data); font-size: 0.7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--warn); }

/* ---------- About ---------- */
.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.principles > div { padding: 28px 28px 28px 0; display: grid; gap: 8px; border-bottom: 1px solid var(--line); }
.principles > div:nth-child(odd) { border-right: 1px solid var(--line); }
.principles > div:nth-child(even) { padding-left: 28px; }
.principles p { color: var(--muted); }
@media (max-width: 760px) {
  .principles { grid-template-columns: 1fr; }
  .principles > div, .principles > div:nth-child(even) { padding: 24px 0; border-right: 0; }
}
.facts { display: grid; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.facts dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; margin: 0; }
.facts dt { font-family: var(--font-data); font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding-top: 3px; }
.facts dd { margin: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(24px, 5vw, 56px); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.form { display: grid; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) * 1.3); padding: clamp(20px, 3vw, 32px); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.error { color: var(--accent); font-size: 0.85rem; min-height: 1.2em; }
.form-done { display: grid; gap: 10px; padding: 18px; border-radius: 10px; background: var(--teal-soft); }
.form-done strong { color: var(--teal); }
.contact-info { display: grid; gap: 20px; }
.contact-info .item { display: grid; gap: 4px; }
.copy-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.copy-row code { font-family: var(--font-data); font-size: 0.95rem; user-select: all; }
.btn-small { padding: 6px 12px; font-size: 0.82rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 48px 40px; margin-top: 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { margin: 0 0 10px; font-family: var(--font-data); font-size: 0.75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 500; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-grid a { text-decoration: none; color: var(--ink); }
.footer-grid a:hover { color: var(--accent); }
.footer-bottom { margin-top: 32px; font-size: 0.85rem; color: var(--muted); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }

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

/* ---------- Relationship types ---------- */
.types { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1080px) { .types { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .types { grid-template-columns: 1fr; } }
.type {
  background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) * 1.3);
  padding: 28px; display: grid; gap: 12px; align-content: start;
}
.type .type-mark { width: 56px; height: 36px; }
.type h3 { font-size: var(--step-2); }
.type p { color: var(--muted); }
.type ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.types-note { margin-top: 20px; color: var(--muted); }

/* ---------- Verification ---------- */
.verify { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .verify { grid-template-columns: 1fr; } }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: chk; }
.checks li {
  display: grid; grid-template-columns: 40px 1fr; gap: 4px 16px; align-items: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px;
}
.checks li::before {
  counter-increment: chk; content: counter(chk);
  grid-row: span 2; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--teal-soft); color: var(--teal);
  font-family: var(--font-data); font-weight: 500;
}
.checks p { color: var(--muted); font-size: 0.95rem; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.85rem; font-weight: 600; color: var(--teal);
}
.badge::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: var(--teal); box-shadow: inset 0 0 0 4px var(--teal-soft); }

/* Relationship type picker in the check */
.type-pick { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0 0 16px; }
.type-pick legend { font-weight: 600; font-size: 0.9rem; margin-bottom: 8px; padding: 0; }
.type-pick input { position: absolute; opacity: 0; pointer-events: none; }
.type-pick label {
  padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface);
  font-weight: 600; font-size: 0.92rem; cursor: pointer;
}
.type-pick input:checked + label { background: var(--plum); border-color: var(--plum); color: var(--plum-ink); }
.type-pick input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------- Pink · sky blue · yellow backgrounds ---------- */
.hero, .page-hero {
  background:
    radial-gradient(60% 80% at 100% 100%, var(--bg-yellow) 0%, transparent 70%),
    linear-gradient(120deg, var(--bg-pink) 0%, var(--bg) 60%);
}
.section + .section { border-top: 0; }
main > .section:nth-of-type(3n+1) { background: var(--bg-pink); }
main > .section:nth-of-type(3n+2) { background: var(--bg); }
main > .section:nth-of-type(3n+3) { background: var(--bg-yellow); }
.site-footer {
  margin-top: 0;
  border-top: 4px solid var(--sun);
  background: linear-gradient(120deg, var(--bg) 0%, var(--bg-pink) 100%);
}
.hero h1 em { text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 0.12em; text-underline-offset: 0.14em; }

/* ---------- "I'm looking for" picker ---------- */
.looking { display: grid; gap: 10px; }
.looking-label { font-weight: 700; font-size: 1.05rem; }
.looking-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 560px) { .looking-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.looking-grid a {
  display: grid; justify-items: start; gap: 8px;
  padding: 14px; border-radius: var(--radius);
  background: var(--surface); border: 2px solid var(--line);
  text-decoration: none; font-weight: 700;
  transition: transform .15s ease, border-color .15s ease;
}
.looking-grid a:hover { transform: translateY(-2px); border-color: var(--plum); }
.looking-grid a span { font-weight: 400; font-size: 0.82rem; color: var(--muted); line-height: 1.3; }
.looking-grid svg { width: 40px; height: 26px; }
.type a.more { font-weight: 700; color: var(--plum); text-decoration: none; }
.type a.more:hover { text-decoration: underline; }

/* ---------- Relationship type switcher on type pages ---------- */
.type-switch { display: flex; flex-wrap: wrap; gap: 8px; }
.type-switch a {
  padding: 8px 16px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 0.92rem;
  background: var(--surface); border: 1.5px solid var(--line);
}
.type-switch a[aria-current="page"] { background: var(--plum); border-color: var(--plum); color: var(--plum-ink); }
.focus-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.focus-list li {
  display: grid; grid-template-columns: 36px 1fr; gap: 4px 14px; align-items: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px;
}
.focus-list img { width: 32px; height: 32px; grid-row: span 2; }
.focus-list p { color: var(--muted); font-size: 0.95rem; }
.tips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; }
@media (max-width: 860px) { .tips { grid-template-columns: 1fr; } }
.tips li { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--sun); border-radius: var(--radius); padding: 20px; display: grid; gap: 8px; align-content: start; }
.tips p { color: var(--muted); font-size: 0.95rem; }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chip-list .chip { background: var(--surface); font-size: 0.9rem; padding: 6px 12px; }
.type-switch { margin-bottom: 8px; }

/* ---------- Photos ---------- */
.page-photo { margin: 12px 0 0; display: grid; gap: 6px; }
.page-photo img { width: 100%; aspect-ratio: 7 / 3; object-fit: cover; border-radius: calc(var(--radius) * 1.5); background: var(--surface); }
.page-photo figcaption, .type-photo figcaption { font-size: 0.78rem; color: var(--muted); }
.page-photo figcaption a, .type-photo figcaption a { color: inherit; }
.type-photo { margin: -28px -28px 4px; display: grid; gap: 4px; }
.type-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: calc(var(--radius) * 1.3) calc(var(--radius) * 1.3) 0 0; }
.type-photo figcaption { padding: 0 28px; }
@media (max-width: 560px) { .page-photo img { aspect-ratio: 4 / 3; } }

/* ---------- Sign-up ---------- */
.join-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 900px) { .join-grid { grid-template-columns: 1fr; } }
.join-step { border: 0; margin: 0; padding: 0 0 20px; border-bottom: 1px solid var(--line); display: grid; gap: 12px; min-width: 0; }
.join-step legend { font-family: var(--font-display); font-size: var(--step-1); padding: 0; margin-bottom: 4px; display: flex; align-items: center; gap: 10px; }
.step-no { width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--plum); color: var(--plum-ink); font-family: var(--font-data); font-size: 0.9rem; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.choice-grid input { position: absolute; opacity: 0; pointer-events: none; }
.choice-grid label {
  display: grid; gap: 2px; padding: 14px; border-radius: 12px; cursor: pointer; height: 100%;
  border: 2px solid var(--line); background: var(--bg);
}
.choice-grid label span { font-size: 0.85rem; color: var(--muted); }
.choice-grid label .plan-price { font-family: var(--font-data); color: var(--ink); }
.choice-grid input:checked + label { border-color: var(--plum); background: var(--surface); box-shadow: inset 0 0 0 1px var(--plum); }
.choice-grid input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--plum); flex: none; }
.join-done { gap: 16px; padding: clamp(20px, 3vw, 32px); }
.join-aside { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 88px); }
@media (max-width: 900px) { .join-aside { position: static; } }

/* ---------- Photo and ID upload ---------- */
.upload { display: grid; gap: 10px; }
.upload input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-box {
  display: grid; gap: 4px; justify-items: start; cursor: pointer;
  padding: 18px; border-radius: 12px; border: 2px dashed var(--line); background: var(--bg);
}
.upload-box:hover { border-color: var(--plum); }
.upload input:focus-visible + .thumbs, .upload input:focus-visible ~ .file-chosen { outline: 0; }
.upload:focus-within .upload-box { border-color: var(--plum); outline: 3px solid var(--accent); outline-offset: 2px; }
.upload-box span { font-size: 0.88rem; color: var(--muted); }
.upload-box .upload-cta {
  margin-top: 6px; padding: 6px 14px; border-radius: 999px; background: var(--plum); color: var(--plum-ink);
  font-weight: 700; font-size: 0.85rem;
}
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.thumbs:empty, .file-chosen:empty { display: none; }
.thumbs figure { margin: 0; position: relative; }
.thumbs img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; border: 2px solid var(--line); }
.thumbs button {
  position: absolute; top: -6px; right: -6px; width: 24px; height: 24px; border-radius: 50%;
  border: 0; background: var(--ink); color: var(--bg); font: inherit; font-size: 0.8rem; cursor: pointer; line-height: 1;
}
.file-chosen { display: flex; align-items: center; gap: 10px; font-size: 0.92rem; padding: 10px 14px; border-radius: 10px; background: var(--teal-soft); color: var(--ink); }
.file-chosen button { margin-left: auto; }
.status-pill { justify-self: start; padding: 6px 14px; border-radius: 999px; background: var(--warn-soft); font-size: 0.92rem; }
.status-pill strong { color: var(--warn); }

/* =====================================================================
   LAX — separate voice-companion service with its own identity.
   Night-call navy with warm lamp amber; Atkinson Hyperlegible for low-vision
   readability. Deliberately single-theme: same look in light and dark mode.
   Sizes are in em so the A / A+ / A++ control scales everything.
   ===================================================================== */
.lax-page {
  --lx-bg: #10213a;
  --lx-panel: #193052;
  --lx-panel-2: #142a47;
  --lx-ink: #fff8ea;
  --lx-muted: #cfd9e8;
  --lx-amber: #ffb84d;
  --lx-amber-ink: #1d1406;
  --lx-teal: #5ed6c6;
  --lx-red: #ff7a7a;
  --lx-line: #2d4a72;
  --lx-font: "Atkinson Hyperlegible Next", "Verdana", "Segoe UI", sans-serif;
  background: var(--lx-bg);
  color: var(--lx-ink);
  font-family: var(--lx-font);
  font-size: 1.12rem;
  line-height: 1.6;
}
.lax-page[data-size="2"] { font-size: 1.3rem; }
.lax-page[data-size="3"] { font-size: 1.5rem; }
.lax-page h1, .lax-page h2, .lax-page h3 { font-family: var(--lx-font); font-weight: 700; letter-spacing: 0; }
.lax-page a { color: var(--lx-amber); }
.lax-page :focus-visible { outline: 3px solid var(--lx-amber); outline-offset: 3px; }

.lx-hero { padding-block: 3em 3.5em; border-bottom: 1px solid var(--lx-line);
  background: radial-gradient(70% 90% at 90% 10%, rgba(255,184,77,.16) 0%, transparent 60%), var(--lx-bg); }
.lx-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 2.5em; align-items: center; }
@media (max-width: 900px) { .lx-hero-grid { grid-template-columns: 1fr; } }
.lx-hero-copy { display: grid; gap: 1.1em; min-width: 0; }
.lx-brand { display: flex; align-items: center; gap: 0.8em; }
.lx-wordmark {
  font-weight: 700; font-size: 3.2em; line-height: 1; letter-spacing: 0.04em;
  color: var(--lx-amber-ink); background: var(--lx-amber); padding: 0.12em 0.32em 0.06em; border-radius: 0.2em;
}
.lx-sub { font-size: 0.95em; color: var(--lx-muted); line-height: 1.3; font-weight: 700; }
.lax-page h1 { font-size: clamp(2.1em, 1.4em + 2.4vw, 3.1em); line-height: 1.1; }
.lx-lede { font-size: 1.15em; color: var(--lx-muted); max-width: 32em; }
.lx-size { display: flex; align-items: center; gap: 0.5em; flex-wrap: wrap; }
.lx-size span { font-weight: 700; margin-right: 0.3em; }
.lx-size button {
  min-width: 3em; min-height: 2.6em; padding: 0 0.8em; border-radius: 0.5em; cursor: pointer;
  font: inherit; font-weight: 700; background: var(--lx-panel); color: var(--lx-ink); border: 2px solid var(--lx-line);
}
.lx-size button[aria-pressed="true"] { background: var(--lx-ink); color: var(--lx-bg); border-color: var(--lx-ink); }

.lx-phone {
  background: var(--lx-panel); border: 2px solid var(--lx-line); border-radius: 1.2em;
  padding: 1.6em; display: grid; gap: 0.8em; justify-items: center; text-align: center;
}
.lx-phone-label { font-weight: 700; color: var(--lx-amber); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.85em; }
.lx-number-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.6em; }
.lx-number-row code { font-family: var(--lx-font); font-weight: 700; font-size: 2.1em; letter-spacing: 0.04em; user-select: all; }
.lx-copy {
  font: inherit; font-weight: 700; font-size: 0.9em; cursor: pointer;
  padding: 0.45em 1em; border-radius: 999px; background: transparent; color: var(--lx-ink); border: 2px solid var(--lx-ink);
}
.lx-copy:hover { background: var(--lx-ink); color: var(--lx-bg); }
.lx-small { font-size: 0.82em; color: var(--lx-muted); }
.lx-divider { width: 100%; display: flex; align-items: center; gap: 0.8em; color: var(--lx-muted); font-weight: 700; }
.lx-divider::before, .lx-divider::after { content: ""; flex: 1; height: 1px; background: var(--lx-line); }
.lax-button {
  width: min(100%, 15em); aspect-ratio: 1 / 1; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--lx-teal); color: var(--lx-bg);
  display: grid; place-content: center; justify-items: center; gap: 0.5em;
  font: inherit; font-size: 1.25em; font-weight: 700;
  box-shadow: 0 0 0 0.45em rgba(94,214,198,.22);
  transition: transform .15s ease, background-color .2s ease;
}
.lax-button svg { width: 3em; height: 3em; fill: currentColor; }
.lax-button:hover { transform: scale(1.02); }
.lax-button.live { background: var(--lx-red); box-shadow: 0 0 0 0.45em rgba(255,122,122,.25); animation: lax-pulse 1.6s ease-in-out infinite; }
@keyframes lax-pulse { 50% { box-shadow: 0 0 0 0.9em rgba(255,122,122,.18); } }
.lax-status { font-size: 1em; font-weight: 700; max-width: 22em; }

.lx-section { padding-block: 3.2em; background: var(--lx-bg); }
.lx-alt { background: var(--lx-panel-2); }
.lx-h2 { font-size: 1.9em; line-height: 1.15; margin-bottom: 0.9em; }
.lx-text { color: var(--lx-muted); max-width: 36em; }
.lx-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4em; }
@media (max-width: 900px) { .lx-steps { grid-template-columns: 1fr; } }
.lx-steps li { background: var(--lx-panel); border-radius: 1em; padding: 1.4em; display: grid; gap: 0.5em; align-content: start; }
.lx-num {
  width: 2.2em; height: 2.2em; border-radius: 50%; display: grid; place-items: center;
  background: var(--lx-amber); color: var(--lx-amber-ink); font-weight: 700; font-size: 1.2em;
}
.lx-steps h3, .lx-safety h3 { font-size: 1.2em; }
.lx-steps p, .lx-safety p { color: var(--lx-muted); }

.lx-split { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 2.5em; align-items: start; }
@media (max-width: 900px) { .lx-split { grid-template-columns: 1fr; } }
.lx-photo { margin: 0; display: grid; gap: 0.4em; }
.lx-photo img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 1.2em; border: 3px solid var(--lx-amber); }
.lx-photo figcaption { font-size: 0.75em; color: var(--lx-muted); }
.lx-photo figcaption a { color: inherit; }
.lx-form-wrap { min-width: 0; }
.lx-form { display: grid; gap: 1.1em; margin-top: 1.2em; }
.lx-field { display: grid; gap: 0.35em; }
.lx-field label, .lx-who legend { font-weight: 700; }
.lx-field input {
  font: inherit; font-size: 1.05em; padding: 0.7em 0.9em; border-radius: 0.6em;
  background: var(--lx-bg); color: var(--lx-ink); border: 2px solid var(--lx-line); width: 100%;
}
.lx-field input:focus { outline: none; border-color: var(--lx-amber); box-shadow: 0 0 0 3px rgba(255,184,77,.3); }
.lx-error { color: var(--lx-red); font-weight: 700; min-height: 1.2em; font-size: 0.9em; }
.lx-who { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5em; min-width: 0; }
.lx-who legend { padding: 0; margin-bottom: 0.5em; }
.lx-who input { position: absolute; opacity: 0; pointer-events: none; }
.lx-who label {
  padding: 0.55em 1.1em; border-radius: 999px; cursor: pointer; font-weight: 700;
  border: 2px solid var(--lx-line); background: var(--lx-bg);
}
.lx-who input:checked + label { background: var(--lx-amber); color: var(--lx-amber-ink); border-color: var(--lx-amber); }
.lx-who input:focus-visible + label { outline: 3px solid var(--lx-ink); outline-offset: 2px; }
.lx-submit, .lx-cta {
  justify-self: start; display: inline-flex; align-items: center; justify-content: center;
  min-height: 3em; padding: 0 1.6em; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--lx-amber); color: var(--lx-amber-ink); font: inherit; font-weight: 700; font-size: 1.1em; text-decoration: none;
}
.lax-page a.lx-cta { color: var(--lx-amber-ink); }
.lx-done { display: grid; gap: 0.8em; margin-top: 1.2em; padding: 1.4em; border-radius: 1em; background: var(--lx-panel); border: 2px solid var(--lx-teal); }
.lx-done h3 { font-size: 1.4em; color: var(--lx-teal); }
.lx-done .lx-copy { justify-self: start; }

.lx-safety { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2em; }
@media (max-width: 900px) { .lx-safety { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .lx-safety { grid-template-columns: 1fr; } }
.lx-safety li { border-left: 4px solid var(--lx-amber); padding: 0.2em 0 0.2em 1em; display: grid; gap: 0.3em; align-content: start; }

.lx-volunteer { background: var(--lx-amber); color: var(--lx-amber-ink); }
.lx-volunteer .lx-text { color: var(--lx-amber-ink); opacity: .85; }
.lx-volunteer .lx-h2 { margin-bottom: 0.4em; }
.lx-volunteer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5em; }
.lax-page a.lx-volunteer-cta, .lx-volunteer .lx-cta, .lax-page .lx-volunteer a.lx-cta { background: var(--lx-bg); color: var(--lx-ink); }

/* LAX link in the main menu gets its own badge */
.nav-links a[href$="lax.html"] { color: #1d1406; background: #ffb84d; }
.nav-links a[href$="lax.html"]:hover { background: #ffc96f; }
.nav-links a[href$="lax.html"][aria-current="page"] { box-shadow: inset 0 0 0 2px var(--header-ink); }

/* LAX feature band on the homepage, in LAX's own colours */
.lx-band {
  background: #10213a; color: #fff8ea; border-radius: calc(var(--radius) * 1.5);
  padding: clamp(24px, 4vw, 48px); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(20px, 4vw, 48px); align-items: center;
  font-family: "Atkinson Hyperlegible Next", "Verdana", "Segoe UI", sans-serif;
}
@media (max-width: 860px) { .lx-band { grid-template-columns: 1fr; } }
.lx-band h2 { font-family: inherit; font-weight: 700; font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.4rem); }
.lx-band p { color: #cfd9e8; font-size: 1.1rem; }
.lx-band .lx-brand { margin-bottom: 4px; }
.lx-band .lx-wordmark { font-size: 2.6rem; }
.lx-band .lx-sub { color: #cfd9e8; }
.lx-band-copy { display: grid; gap: 16px; min-width: 0; }
.lx-band .lx-cta { background: #ffb84d; color: #1d1406; font-family: inherit; }
.lx-band .lx-link { color: #ffb84d; font-weight: 700; }
.lx-band img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 1rem; border: 3px solid #ffb84d; }
.lx-band figure { margin: 0; display: grid; gap: 6px; }
.lx-band figcaption { font-size: 0.78rem; color: #cfd9e8; }
.lx-band figcaption a { color: inherit; }

/* ---------- Brand slogan ---------- */
.brand-text { display: grid; line-height: 1.05; }
.brand-text small {
  font-family: var(--font-body); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.02em;
  opacity: 0.85; margin-top: 3px;
}
@media (max-width: 420px) { .brand-text small { font-size: 0.6rem; } }
.slogan {
  font-family: var(--font-display); font-style: italic; color: var(--plum);
  font-size: clamp(1.15rem, 1rem + 0.8vw, 1.5rem);
  padding-left: 14px; border-left: 4px solid var(--sun);
}

/* =====================================================================
   Homepage redesign — built around the HeartWise logo:
   deep indigo night, cyan + pink glow, lime accent. The hero keeps one look
   in both themes (it matches the logo artwork's own background).
   ===================================================================== */
.brand img { width: 44px; height: 44px; border-radius: 50%; }

.hw-hero {
  --hw-night: #14034a;
  --hw-ink: #f6f0ff;
  --hw-soft: #cdbfe8;
  --hw-cyan: #4fd8ff;
  --hw-pink: #ff5fc8;
  --hw-lime: #c8ff6a;
  background:
    radial-gradient(45% 60% at 78% 45%, rgba(255, 95, 200, 0.22) 0%, transparent 70%),
    radial-gradient(40% 55% at 60% 55%, rgba(79, 216, 255, 0.18) 0%, transparent 70%),
    linear-gradient(160deg, #2a0868 0%, var(--hw-night) 55%, #0e0238 100%);
  color: var(--hw-ink);
  padding-block: clamp(48px, 7vw, 96px) clamp(110px, 12vw, 150px);
  overflow: hidden;
}
.hw-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (max-width: 900px) { .hw-hero-grid { grid-template-columns: 1fr; } }
.hw-hero-copy { display: grid; gap: 22px; min-width: 0; }
.hw-slogan {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(1.1rem, 0.95rem + 0.7vw, 1.4rem);
  color: var(--hw-lime, #c8ff6a);
  display: flex; align-items: center; gap: 14px;
}
.hw-slogan::before { content: ""; width: 36px; height: 2px; background: currentColor; flex: none; }
.hw-hero h1 { color: var(--hw-ink); font-size: clamp(2.6rem, 1.7rem + 3.8vw, 4.6rem); line-height: 1.04; }
.hw-hero h1 em {
  font-style: italic;
  background: linear-gradient(90deg, var(--hw-cyan), var(--hw-pink));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hw-lede { color: var(--hw-soft); font-size: var(--step-1); line-height: 1.55; max-width: 32em; }
.hw-btn-primary { background: var(--hw-lime, #c8ff6a); color: #1a0640; }
.hw-btn-primary:hover { background: #d8ff8f; }
.hw-btn-ghost { background: transparent; color: var(--hw-ink, #f6f0ff); border-color: rgba(246, 240, 255, 0.45); }
.hw-btn-ghost:hover { border-color: var(--hw-ink, #f6f0ff); }
.hw-hero-art { margin: 0; }
.hw-hero-art img { width: 100%; max-width: 600px; margin-inline: auto; filter: drop-shadow(0 0 40px rgba(255, 95, 200, 0.25)); }
@media (max-width: 900px) { .hw-hero-art { order: -1; } .hw-hero-art img { max-width: 360px; } }

/* Floating "I'm looking for" panel */
.hw-picker-wrap { background: var(--bg); padding-bottom: 0; }
.hw-picker {
  position: relative; margin-top: clamp(-110px, -9vw, -80px);
  background: var(--surface); border-radius: calc(var(--radius) * 1.6);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px -24px rgba(20, 3, 74, 0.45);
  padding: clamp(20px, 3vw, 32px); display: grid; gap: 18px;
}
.hw-picker-title { font-family: var(--font-display); font-size: var(--step-2); }
.hw-picker-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1000px) { .hw-picker-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .hw-picker-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hw-picker-grid a:last-child { grid-column: 1 / -1; }
}
.hw-picker-grid a { background: var(--bg); border-color: transparent; }
.hw-picker-grid a:hover { border-color: var(--plum); background: var(--surface); }
.hw-trust { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 0.92rem; color: var(--muted); }
.hw-trust li { display: flex; align-items: center; gap: 8px; }
.hw-trust li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--teal); box-shadow: inset 0 0 0 4px var(--teal-soft); flex: none; }

/* Calmer homepage sections */
.home .hw-section { padding-block: clamp(64px, 9vw, 112px); }
.home > section:nth-of-type(3) { background: var(--bg); }
.home > section:nth-of-type(4) { background: var(--bg-pink); }
.home > section:nth-of-type(5) { background: var(--bg-yellow); }
.home > section:nth-of-type(6) { background: var(--bg); }
.hw-head { display: grid; gap: 14px; max-width: 46rem; margin-bottom: clamp(32px, 5vw, 56px); }
.home .type { padding: 28px; gap: 10px; }
.home .type h3 { font-size: var(--step-2); }

.hw-verify { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
@media (max-width: 900px) { .hw-verify { grid-template-columns: 1fr; } }
.hw-verify .more { font-weight: 700; color: var(--plum); text-decoration: none; }
.hw-verify-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; background: var(--surface); border-radius: calc(var(--radius) * 1.4); border: 1px solid var(--line); }
.hw-verify-steps li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 20px 24px; align-items: start; }
.hw-verify-steps li + li { border-top: 1px solid var(--line); }
.hw-verify-steps li > span {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, #4fd8ff, #ff5fc8); color: #1a0640; font-family: var(--font-data); font-weight: 500;
}
.hw-verify-steps p { color: var(--muted); font-size: 0.95rem; }
.hw-steps-row { margin-top: clamp(40px, 6vw, 64px); }

/* Closing band in the logo's night colours */
.hw-finale {
  background:
    radial-gradient(50% 80% at 50% 0%, rgba(255, 95, 200, 0.2) 0%, transparent 70%),
    linear-gradient(180deg, #14034a 0%, #0e0238 100%);
  color: #f6f0ff; padding-block: clamp(64px, 9vw, 112px); text-align: center;
}
.hw-finale-inner { display: grid; gap: 18px; justify-items: center; }
.hw-finale img { width: 88px; height: 88px; border-radius: 50%; box-shadow: 0 0 40px rgba(255, 95, 200, 0.45); }
.hw-finale .hw-slogan { --hw-lime: #c8ff6a; }
.hw-finale .hw-slogan::before { display: none; }
.hw-finale h2 { color: #f6f0ff; }
.hw-finale p:not(.hw-slogan) { color: #cdbfe8; max-width: 36em; }
.hw-finale .hw-btn-primary { --hw-lime: #c8ff6a; }
.hw-finale .hw-btn-ghost { --hw-ink: #f6f0ff; }
.home + .site-footer { border-top-color: #c8ff6a; }

/* ---------- Shared helpers ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--plum); text-decoration: underline; cursor: pointer; justify-self: start; }
.toast { justify-self: start; padding: 8px 14px; border-radius: 999px; background: var(--teal-soft); color: var(--teal); font-weight: 600; font-size: 0.92rem; }
.btn.danger { background: #c0392b; color: #fff; }
.demo-note { font-size: 0.85rem; }

/* ---------- Sign in ---------- */
.auth-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
@media (max-width: 860px) { .auth-grid { grid-template-columns: 1fr; } }
.auth-intro { display: grid; gap: 16px; }
.auth-logo { width: 72px; height: 72px; border-radius: 50%; box-shadow: 0 0 30px rgba(255, 95, 200, 0.35); }
.auth-card { background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) * 1.5); padding: clamp(22px, 4vw, 36px); box-shadow: 0 24px 60px -30px rgba(20, 3, 74, 0.45); }
.auth-form { display: grid; gap: 16px; }
.auth-h2 { font-size: var(--step-2); }
.pw-row { display: flex; gap: 8px; }
.pw-row input { flex: 1; min-width: 0; }

/* ---------- Member area ---------- */
.dash-top { background: linear-gradient(120deg, var(--bg-pink) 0%, var(--bg) 70%); padding-block: 36px 0; }
.dash-top-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; }
.dash-hello { display: flex; align-items: center; gap: 16px; }
.dash-hello img { width: 56px; height: 56px; border-radius: 50%; }
.dash-hello h1 { font-size: var(--step-3); }
.dash-status { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; color: var(--muted); font-size: 0.95rem; }
.demo-banner { margin-bottom: 18px; }
.dash-tabs { display: flex; gap: 4px; overflow-x: auto; }
.dash-tabs button {
  font: inherit; font-weight: 700; padding: 12px 18px; border: 0; cursor: pointer; white-space: nowrap;
  background: transparent; color: var(--muted); border-radius: 12px 12px 0 0;
}
.dash-tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); }
.count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 0.75rem; margin-left: 4px; }
.count:empty, .count[data-zero] { display: none; }
.dash-body { background: var(--surface); padding-block: 32px 72px; min-height: 60vh; }
.dash-head { display: grid; gap: 6px; margin-bottom: 24px; }
.dash-head h2 { font-size: var(--step-2); }

.match-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.match { border: 1px solid var(--line); border-radius: calc(var(--radius) * 1.3); padding: 22px; display: grid; gap: 12px; align-content: start; background: var(--bg); }
.match-top { display: flex; align-items: center; gap: 14px; }
.avatar { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; flex: none; }
.match h3 { font-size: var(--step-1); }
.match-meta { font-size: 0.88rem; color: var(--muted); }
.match-score { margin-left: auto; text-align: right; }
.match-score b { display: block; font-family: var(--font-display); font-size: 1.8rem; font-weight: 400; line-height: 1; }
.match-score small { font-size: 0.72rem; color: var(--muted); }
.match p.about { font-size: 0.95rem; }
.match .bars { padding: 12px; border-radius: 10px; background: var(--surface); }
.match .bar { grid-template-columns: 7.5rem 1fr 2.6rem; font-size: 0.85rem; }
.match-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.undo { display: flex; gap: 10px; align-items: center; margin-top: 16px; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--bg); width: fit-content; }
.undo .link-btn { color: var(--bg); }
.empty { padding: 32px 0; }

.chat { display: grid; grid-template-columns: 260px minmax(0, 1fr); border: 1px solid var(--line); border-radius: calc(var(--radius) * 1.3); overflow: hidden; min-height: 460px; }
@media (max-width: 760px) { .chat { grid-template-columns: 1fr; } .chat-list { border-right: 0; border-bottom: 1px solid var(--line); } }
.chat-list { border-right: 1px solid var(--line); background: var(--bg); }
.chat-list ul { list-style: none; margin: 0; padding: 0; }
.chat-list button {
  width: 100%; display: flex; gap: 12px; align-items: center; text-align: left; padding: 14px 16px;
  background: transparent; border: 0; border-bottom: 1px solid var(--line); cursor: pointer; font: inherit; color: var(--ink);
}
.chat-list button[aria-current="true"] { background: var(--surface); }
.chat-list .avatar { width: 40px; height: 40px; font-size: 0.85rem; }
.chat-list .preview { display: block; font-size: 0.82rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.chat-list .dot-new { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); margin-left: auto; flex: none; }
.chat-main { display: grid; grid-template-rows: auto auto 1fr auto auto; min-width: 0; }
.chat-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.chat-head span { display: block; font-size: 0.85rem; }
.report-box { padding: 14px 18px; background: var(--warn-soft); display: grid; gap: 10px; font-size: 0.92rem; }
.chat-log { list-style: none; margin: 0; padding: 18px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; max-height: 380px; }
.chat-log li { max-width: 75%; padding: 10px 14px; border-radius: 16px; background: var(--bg); font-size: 0.95rem; }
.chat-log li.me { align-self: flex-end; background: var(--plum); color: var(--plum-ink); border-bottom-right-radius: 4px; }
.chat-log li.them { border-bottom-left-radius: 4px; }
.chat-log li.system { align-self: center; background: var(--teal-soft); color: var(--teal); font-size: 0.85rem; }
.chat-safety { font-size: 0.8rem; color: var(--muted); padding: 0 18px 8px; }
.chat-form { display: flex; gap: 8px; padding: 12px 18px 18px; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; min-width: 0; }

.profile-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr); gap: 28px; align-items: start; }
@media (max-width: 900px) { .profile-grid { grid-template-columns: 1fr; } }
.profile-side { display: grid; gap: 16px; }
.char-count { font-size: 0.8rem; justify-self: end; }
.verify-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.verify-list li { display: flex; gap: 10px; align-items: center; }
.verify-list li.ok::before { content: "✓"; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--teal); color: #fff; font-size: 0.8rem; font-weight: 700; }
.danger-zone #delete-box { display: grid; gap: 10px; font-size: 0.92rem; }

/* ---------- Legal and 404 ---------- */
.legal { max-width: 760px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.legal-item { padding-block: 22px; border-bottom: 1px solid var(--line); display: grid; gap: 8px; }
.legal-item h2 { font-size: var(--step-1); }
.legal-item p { color: var(--muted); max-width: 65ch; }
.notfound { justify-items: start; }

/* Keep the menu on one line; collapse to the Menu button before it gets tight */
.nav-links a { white-space: nowrap; padding: 8px 10px; }
.nav-links .btn { margin-left: 4px; padding: 10px 18px; }
.brand-text, .brand-text small { white-space: nowrap; }
.match-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

/* ---------- Live (server running) vs preview ---------- */
.live-only { display: none !important; }
html.hw-live .live-only { display: revert !important; }
html.hw-live .preview-only { display: none !important; }
html.hw-live a.btn.live-only { display: inline-flex !important; }

.status-panel { display: grid; gap: 12px; justify-items: start; padding: clamp(20px, 3vw, 32px); border-radius: calc(var(--radius) * 1.3); background: var(--bg-yellow); border: 1px solid var(--line); margin-bottom: 24px; }
.status-panel h2 { font-size: var(--step-2); }
.status-panel p { max-width: 60ch; }
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.match .avatar { overflow: hidden; }

/* Questionnaire */
.quiz-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: q; }
.quiz-list li { display: grid; gap: 10px; padding: 18px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); }
.quiz-list li > p { font-weight: 600; }
.quiz-list li > p::before { counter-increment: q; content: counter(q) ". "; color: var(--plum); }
.quiz-list .dim { font-family: var(--font-data); font-size: 0.72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.quiz-list .seg { max-width: 420px; }
.quiz-list .seg input:checked + label { background: var(--plum); border-color: var(--plum); color: var(--plum-ink); }
.quiz-list .ends { display: flex; justify-content: space-between; max-width: 420px; font-size: 0.78rem; color: var(--muted); }

/* Team area */
.team-stats { display: flex; flex-wrap: wrap; gap: 12px; }
.team-stats div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 18px; display: grid; }
.team-stats b { font-family: var(--font-display); font-size: 1.8rem; font-weight: 400; line-height: 1; }
.team-stats span { font-size: 0.85rem; color: var(--muted); }
.team-h2 { margin-top: 48px; margin-bottom: 14px; }
.team-section h2 { font-size: var(--step-2); }
.verif-list { display: grid; gap: 16px; margin-top: 18px; }
.verif { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 12px; }
.verif-photos { display: flex; flex-wrap: wrap; gap: 8px; }
.verif-photos img { width: 120px; height: 120px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.verif dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin: 0; font-size: 0.95rem; }
.verif dt { color: var(--muted); }
.verif dd { margin: 0; }
.verif-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.verif-actions input { max-width: 320px; }
td .btn-small { white-space: nowrap; }

/* Homepage line under the slogan */
.hw-power {
  font-family: var(--font-body); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.14em; font-size: clamp(0.8rem, 0.72rem + 0.35vw, 0.98rem);
  background: linear-gradient(90deg, #4fd8ff, #ff5fc8); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Compliance UI */
.id-note { font-size: 0.9rem; padding: 12px 14px; border-radius: 10px; background: var(--warn-soft); }
.id-note strong { color: var(--warn); }
.retention-note { font-size: 0.88rem; }
.consent-box { display: grid; gap: 6px; padding: 14px 16px; border-radius: 12px; border: 1.5px dashed var(--line); background: var(--bg); }
.consent-box p { font-size: 0.86rem; }
.seg.seg-optional { grid-template-columns: repeat(5, 1fr) auto; }
.seg .skip-label { padding: 0 14px; font-family: var(--font-body); font-size: 0.85rem; }
.quiz-list li.is-disabled .seg label:not(.skip-label) { opacity: 0.4; cursor: not-allowed; }

/* ---------- Hobby chips (compatibility check and questionnaire) ---------- */
.hobby-row { display: grid; grid-template-columns: 5rem minmax(0, 1fr); gap: 8px; align-items: start; }
.hobby-row .who { font-size: 0.85rem; font-weight: 600; padding-top: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hobby-row .who.you { color: var(--accent); }
.hobby-row .who.them { color: var(--teal); }
.hobby-chips { display: flex; flex-wrap: wrap; gap: 6px; border: 0; margin: 0; padding: 0; min-width: 0; }
.hobby-chips legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hobby-chips input { position: absolute; opacity: 0; pointer-events: none; }
.hobby-chips label {
  padding: 6px 12px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface);
  font-size: 0.85rem; cursor: pointer; user-select: none;
}
.hobby-chips label:hover { border-color: var(--muted); }
.hobby-chips input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 2px; }
.hobby-chips.you input:checked + label { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.hobby-chips.them input:checked + label, .hobby-chips.mine input:checked + label { background: var(--teal); border-color: var(--teal); color: var(--surface); }
@media (max-width: 420px) { .hobby-row { grid-template-columns: 1fr; } }

/* Match card details */
.match-facts { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 0.85rem; color: var(--muted); }
.match-facts span + span::before { content: "·"; margin-right: 12px; }
.match .shared { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 0.85rem; }
.match .shared .chip { background: var(--teal-soft); border-color: transparent; color: var(--teal); font-weight: 600; }
.match .passion { font-size: 0.9rem; font-style: italic; }

/* About-you section on the questionnaire */
.about-you { display: grid; gap: 16px; padding: 20px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); }
.about-you h2 { font-size: var(--step-2); }
.quiz-h2 { font-size: var(--step-2); margin-top: 8px; }
.hobby-chips.mine legend { position: static; width: auto; height: auto; clip: auto; font-weight: 600; font-size: 0.9rem; margin-bottom: 8px; padding: 0; }

/* Eight areas: four per row on wide screens */
.home .dimensions { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.home .dimension:nth-child(4n+1) { border-left: 0; }
.home .dimension:nth-child(n+5) { border-top: 1px solid var(--line); }
@media (max-width: 960px) {
  .home .dimensions { grid-template-columns: 1fr; }
  .home .dimension:nth-child(n+2) { border-top: 1px solid var(--line); }
}

/* LAX-Chat wordmark stays on one line */
.lx-wordmark { white-space: nowrap; }
@media (max-width: 480px) { .lax-page .lx-wordmark { font-size: 2.3em; } .lx-band .lx-wordmark { font-size: 2rem; } }
.match-facts { display: block; }
.match-facts span + span::before { content: none; }

/* Relationship questionnaires */
.role-select { max-width: 320px; }
.answer-row .role-select { width: 100%; }
.quiz-modules { display: grid; gap: 20px; margin-top: 8px; }
.quiz-modules-intro { font-size: 0.95rem; }
.quiz-module { display: grid; gap: 12px; }
.quiz-module .quiz-list li > p::before { content: none; }
.bar.bar-module span:first-child { font-weight: 700; color: var(--plum); }

/* ---------- Match filters, favourites, conversation starters, profile strength ---------- */
.match-filters {
  display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)) auto; gap: 12px; align-items: end;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 10px;
}
.match-filters .field { margin: 0; }
.match-filters .mf-fav { margin: 0 0 10px; white-space: nowrap; }
.mf-summary { font-size: .9rem; margin: 0 0 12px; min-height: 1em; }
@media (max-width: 760px) {
  .match-filters { grid-template-columns: 1fr 1fr; }
  .match-filters .mf-search { grid-column: 1 / -1; }
  .match-filters .mf-fav { grid-column: 1 / -1; margin: 0; }
}
.match-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge.badge-fav { background: var(--bg-yellow); color: var(--ink); border-color: var(--sun); }
.fav-btn[aria-pressed="true"] { background: var(--bg-yellow); border-color: var(--sun); color: var(--ink); }

.starters { padding: 4px 18px 10px; }
.starters-label { display: block; font-size: .82rem; color: var(--muted); margin-bottom: 6px; }
.starters-list { display: flex; flex-wrap: wrap; gap: 6px; }
.starter {
  font: inherit; font-size: .88rem; text-align: left; cursor: pointer; color: var(--ink);
  background: var(--teal-soft); border: 1px solid var(--teal); border-radius: 999px; padding: 6px 12px; line-height: 1.35;
}
.starter:hover, .starter:focus-visible { background: var(--surface); }

.strength-meter { height: 10px; border-radius: 999px; background: var(--line); overflow: hidden; margin: 8px 0 6px; }
.strength-meter span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--plum); transition: width .5s ease; }
.strength-meter span.lo { background: var(--accent); }
.strength-meter span.mid { background: var(--warn); }
.strength-meter span.hi { background: var(--teal); }
.strength-tips { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 6px; font-size: .9rem; }
.strength-tips li { padding-left: 20px; position: relative; }
.strength-tips li::before { content: "+"; position: absolute; left: 2px; color: var(--accent); font-weight: 700; }
.strength-tips li.ok::before { content: "\2713"; color: var(--teal); }
.strength-tips a { color: inherit; }

/* Homepage: tools and "is it for you" */
.hw-tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hw-tool { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.hw-tool h3 { margin: 10px 0 6px; font-size: 1.1rem; }
.hw-tool p { margin: 0; color: var(--muted); font-size: .95rem; }
.hw-tool-mark {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--plum); color: var(--plum-ink); font-size: 1.2rem; font-weight: 700; line-height: 1;
}
.hw-tool:nth-child(3n+2) .hw-tool-mark { background: var(--teal); color: var(--surface); }
.hw-tool:nth-child(3n) .hw-tool-mark { background: var(--accent); color: var(--accent-ink); }
.hw-fit { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hw-fit-col { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; border-top: 5px solid var(--teal); }
.hw-fit-col.no { border-top-color: var(--warn); }
.hw-fit-col h3 { margin: 0 0 10px; }
.hw-fit-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hw-fit-col li { position: relative; padding-left: 26px; }
.hw-fit-col li::before { position: absolute; left: 0; top: 0; font-weight: 700; }
.hw-fit-col.yes li::before { content: "\2713"; color: var(--teal); }
.hw-fit-col.no li::before { content: "\2013"; color: var(--warn); }
@media (max-width: 860px) { .hw-tools { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .hw-tools, .hw-fit { grid-template-columns: 1fr; } }
.badge.badge-fav::before { content: none; }

/* ---------- Why we matched, weekly circle ---------- */
.week-note { color: var(--muted); max-width: 46em; }
.why { background: var(--teal-soft); border-left: 4px solid var(--teal); border-radius: 8px; padding: 10px 12px; display: grid; gap: 4px; }
.why p { margin: 0; font-size: .92rem; line-height: 1.45; }
.why-main { color: var(--ink); }
.why-talk { color: var(--muted); }

/* ---------- Safe meet-ups ---------- */
.chat-head-actions { gap: 6px; }
.btn-meet { background: var(--teal); border-color: var(--teal); color: var(--surface); }
.meet-box, .meet-share { margin: 0 18px 12px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); display: grid; gap: 10px; }
.meet-box h3 { margin: 0; font-size: 1.1rem; }
.meet-tips { margin: 0; padding-left: 18px; font-size: .9rem; color: var(--muted); display: grid; gap: 2px; }
.meet-box .form-row { margin: 0; }
.meet-contact { border: 1px dashed var(--line); border-radius: 10px; padding: 8px 12px 4px; margin: 0; }
.meet-contact legend { font-weight: 600; padding: 0 4px; font-size: .95rem; }
.meet-share { border-color: var(--teal); background: var(--teal-soft); }
.meet-share p { margin: 0; }
.share-text { background: var(--surface); border-radius: 8px; padding: 10px 12px; font-size: .92rem; }
.meetup-list, .helper-list { list-style: none; margin: 6px 0; padding: 0; display: grid; gap: 6px; font-size: .92rem; }
.checkin { border: 2px solid var(--teal); background: var(--teal-soft); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 20px; display: grid; gap: 8px; }
.checkin h2 { margin: 0; font-size: 1.3rem; }
.checkin p { margin: 0; }
.checkin-more { display: grid; gap: 8px; }
.checkin-more textarea { min-height: 70px; }
#checkin-area .toast { margin-bottom: 16px; }

/* ---------- Group outings ---------- */
.outing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.outing { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; gap: 8px; align-content: start; border-top: 5px solid var(--sun); }
.outing h3 { margin: 0; font-size: 1.15rem; }
.outing p { margin: 0; }
.outing-when { font-family: var(--font-data); font-size: .85rem; color: var(--plum); }
.outing-where { font-weight: 600; }
.outing-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .9rem; color: var(--muted); }
.outing-group { font-size: .9rem; background: var(--bg-yellow); border-radius: 8px; padding: 6px 10px; }
.outing .btn { justify-self: start; }

/* ---------- Trusted helper ---------- */
.helper-form { display: grid; gap: 8px; }
.helper-form .field { margin: 0; }
.helper-link { display: grid; gap: 8px; background: var(--bg-yellow); border-radius: 10px; padding: 12px; }
.helper-link p { margin: 0; font-size: .92rem; }
.helper-link input { font-size: .8rem; }
.helper-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.helper-tips { margin: 8px 0; padding-left: 18px; display: grid; gap: 6px; }
@media (max-width: 760px) { .helper-grid { grid-template-columns: 1fr; } }
.outing-form { max-width: 760px; margin-bottom: 14px; }
.verify-list li.todo::before { content: ""; width: 18px; height: 18px; margin: 0 2px; border-radius: 50%; border: 2px dashed var(--muted); flex: none; }
.todo-tag { font-size: .75rem; font-family: var(--font-data); color: var(--warn); background: var(--warn-soft); border-radius: 999px; padding: 1px 8px; }

/* LAX-Chat: weekly calls and family updates */
.lx-field select {
  font: inherit; font-size: 1.05em; padding: 0.7em 0.9em; border-radius: 0.6em;
  background: var(--lx-bg); color: var(--lx-ink); border: 2px solid var(--lx-line); width: 100%;
}
.lx-field select:focus { outline: none; border-color: var(--lx-amber); box-shadow: 0 0 0 3px rgba(255,184,77,.3); }
.lx-checks { display: flex; gap: 0.7em; align-items: flex-start; }
.lx-checks input { width: 1.5em; height: 1.5em; margin: 0.1em 0 0; flex: none; accent-color: var(--lx-amber); }
.lx-checks label { font-weight: 700; cursor: pointer; }
.lx-family { display: grid; gap: 0.9em; border: 2px dashed var(--lx-line); border-radius: 0.8em; padding: 1em; }
.lx-family .lx-small { margin: 0; }
.lx-steps { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.promise-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.promise-list li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px 16px 52px; position: relative; line-height: 1.5; }
.promise-list li::before { content: "\2713"; position: absolute; left: 16px; top: 15px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--teal); color: var(--surface); font-weight: 700; font-size: .85rem; }
@media (max-width: 700px) { .promise-list { grid-template-columns: 1fr; } }

/* ---------- Display & language panel ---------- */
.hw-display-btn {
  position: fixed; right: 16px; bottom: 16px; z-index: 60; font: inherit; font-weight: 700; font-size: .95rem; cursor: pointer;
  background: var(--header-bg); color: var(--header-ink); border: 2px solid var(--header-ink); border-radius: 999px; padding: 10px 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,.25); display: inline-flex; gap: 8px; align-items: center;
}
.hw-display-btn span { font-family: var(--font-display); font-size: 1.1em; }
.hw-display-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.hw-display-panel {
  position: fixed; right: 16px; bottom: 74px; z-index: 61; width: min(320px, calc(100vw - 32px)); display: grid; gap: 12px;
  background: var(--surface); color: var(--ink); border: 2px solid var(--header-bg); border-radius: var(--radius); padding: 16px;
  box-shadow: 0 12px 32px rgba(0,0,0,.25); font-family: var(--font-body); font-size: 1rem;
}
.hw-display-panel[hidden] { display: none; }
.hd-row { display: grid; gap: 6px; }
.hd-label { font-weight: 700; }
.hd-seg { display: flex; gap: 6px; }
.hd-seg button, .hd-read, .hd-close {
  font: inherit; cursor: pointer; border-radius: 10px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); padding: 6px 12px; font-weight: 700;
}
.hd-seg button { flex: 1; }
.hd-seg button[aria-pressed="true"] { background: var(--header-bg); color: var(--header-ink); border-color: var(--header-bg); }
.hd-read { background: var(--teal); color: var(--surface); border-color: var(--teal); }
.hd-read[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.hd-check { display: flex; gap: 10px; align-items: center; font-weight: 700; cursor: pointer; }
.hd-check input { width: 20px; height: 20px; accent-color: var(--header-bg); }
.hd-note { margin: 0; font-size: .85rem; color: var(--muted); }
.hd-close { justify-self: end; }
@media (max-width: 600px) {
  .hw-display-btn { right: 12px; bottom: 12px; padding: 9px 13px; font-size: .88rem; }
  .hw-display-panel { right: 12px; bottom: 66px; }
}
/* Keep the floating button from covering the end of the page. */
.site-footer { padding-bottom: 80px; }

/* Larger text: zoom scales px and rem alike. */
html.hw-text-1 body { zoom: 1.12; }
html.hw-text-2 body { zoom: 1.25; }

/* High contrast */
:root.hw-hc.hw-hc {
  --bg: #ffffff; --bg-pink: #ffffff; --bg-yellow: #fff6b0; --sun: #000000; --surface: #ffffff; --ink: #000000; --muted: #1a1a1a;
  --line: #000000; --accent: #b0002a; --accent-ink: #ffffff; --accent-soft: #ffe0e6; --teal: #00534c; --teal-soft: #e3f4f1;
  --plum: #4a0f42; --plum-ink: #ffffff; --warn: #6b4100; --warn-soft: #fff1d6; --header-bg: #000000; --header-ink: #ffffff; --header-hover: #333333;
}
.hw-hc .lax-page {
  --lx-bg: #000000; --lx-panel: #000000; --lx-panel-2: #000000; --lx-ink: #ffffff; --lx-muted: #ffffff;
  --lx-amber: #ffd200; --lx-line: #ffffff; --lx-teal: #7fffe9; --lx-red: #ff9b9b;
}
.hw-hc a:not(.btn) { text-decoration: underline; }
.hw-hc .btn, .hw-hc input, .hw-hc select, .hw-hc textarea { border-width: 2px; }
.hw-hc :focus-visible { outline: 3px solid #b0002a !important; outline-offset: 2px; }

/* Homepage: Only on HeartWise */
.hw-only { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.hw-only a {
  display: grid; gap: 6px; align-content: start; height: 100%; box-sizing: border-box; padding: 20px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: transform .15s ease, box-shadow .15s ease;
}
.hw-only a:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(30, 20, 60, .12); }
.hw-only a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.hw-only h3 { margin: 0; font-size: 1.08rem; line-height: 1.25; }
.hw-only p { margin: 0; color: var(--muted); font-size: .93rem; }
.hw-only-n { font-family: var(--font-data); font-size: .8rem; color: var(--accent); letter-spacing: .08em; }
.hw-only li:nth-child(4n+2) .hw-only-n { color: var(--teal); }
.hw-only li:nth-child(4n+3) .hw-only-n { color: var(--plum); }
.hw-only li:nth-child(4n) .hw-only-n { color: var(--warn); }
@media (max-width: 1000px) { .hw-only { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .hw-only { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .hw-only a { transition: none; } .hw-only a:hover { transform: none; } }
.tips:has(> li:nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 700px) { .tips:has(> li:nth-child(4):last-child) { grid-template-columns: 1fr; } }

/* Homepage: privacy policy in brief */
.hw-privacy { border-top: 1px solid var(--line); }
.hw-privacy-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.hw-privacy-item { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--teal); border-radius: var(--radius); padding: 18px 20px; }
.hw-privacy-item h3 { margin: 0 0 6px; font-size: 1.05rem; }
.hw-privacy-item p { margin: 0; color: var(--muted); font-size: .93rem; line-height: 1.55; }
.hw-privacy-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 20px 0 0; font-size: .92rem; }
@media (max-width: 900px) { .hw-privacy-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .hw-privacy-grid { grid-template-columns: 1fr; } }

/* Homepage footer: designer credit */
.designed-by { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .95rem; color: var(--muted); }
.designed-by img { width: 92px; height: auto; border-radius: 10px; background: #0e1a30; }
.designed-by strong { color: var(--ink); letter-spacing: .06em; }

/* My profile: photos */
.photo-grid { list-style: none; margin: 8px 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.photo-tile { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--teal-soft); border: 1px solid var(--line); }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-ph { display: grid; place-items: center; width: 100%; height: 100%; font-family: var(--font-display); font-size: 1.6rem; color: var(--surface); background: var(--accent); }
.photo-first { position: absolute; left: 6px; top: 6px; z-index: 1; font-size: .7rem; font-weight: 700; background: var(--surface); color: var(--ink); border-radius: 999px; padding: 1px 7px; }
.photo-rm { position: absolute; left: 6px; right: 6px; bottom: 6px; font: inherit; font-size: .75rem; font-weight: 700; cursor: pointer;
  background: rgba(0, 0, 0, .65); color: #fff; border: 0; border-radius: 999px; padding: 3px 6px; }
.photo-rm:hover, .photo-rm:focus-visible { background: var(--accent); color: var(--accent-ink); }

/* Plans and payments */
.upgrade-form { display: grid; gap: 8px; margin: 6px 0; }
.upgrade-form .field { margin: 0; }
.plan-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; margin-bottom: 18px;
  border-radius: var(--radius); background: var(--bg-yellow); border: 2px solid var(--sun); }
.plan-banner p { margin: 0; font-weight: 600; }
.plan-banner[hidden] { display: none; }
.lax-tools { display: grid; gap: 10px; max-width: 760px; margin-bottom: 12px; }
.lax-tools .field { margin: 0; }
.team td select { font: inherit; font-size: .85rem; padding: 4px 6px; margin-top: 4px; }

/* =====================================================================
   Human Compatibility Platform redesign
   ===================================================================== */
/* Hero */
.hw-global { display: inline-flex; align-items: center; gap: 10px; justify-self: start; margin: 0;
  font-family: var(--font-data); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--hw-ink);
  border: 1px solid rgba(246, 240, 255, .35); border-radius: 999px; padding: 6px 14px; background: rgba(255, 255, 255, .06); }
.hw-global-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--hw-lime); box-shadow: 0 0 0 4px rgba(200, 255, 106, .2); }
.hw-noai { margin: 0; color: var(--hw-lime); font-size: var(--step-1); }
.hw-realness { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--hw-soft); font-size: .95rem; }
.hw-realness li { display: flex; align-items: center; gap: 8px; }
.hw-realness li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: linear-gradient(90deg, var(--hw-cyan), var(--hw-pink)); }

/* Pathways */
.pathways { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pathway { display: grid; gap: 6px; align-content: start; padding: 18px; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--bg); color: var(--ink); text-decoration: none; transition: transform .15s ease, border-color .15s ease; }
.pathway:hover { transform: translateY(-2px); border-color: var(--plum); }
.pathway:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.pathway-icon { font-size: 1.6rem; line-height: 1; }
.pathway strong { font-size: 1.1rem; }
.pathway span:not(.pathway-icon) { font-size: .88rem; color: var(--muted); line-height: 1.4; }
.hw-picker-else { margin: 14px 0 0; font-size: .95rem; color: var(--muted); }
@media (max-width: 900px) { .pathways { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .pathways { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .pathway { transition: none; } .pathway:hover { transform: none; } }

.hw-score-extra { margin-top: 20px; display: grid; gap: 10px; justify-items: start; max-width: 52em; }
.hw-score-extra p { margin: 0; }
.home .dimensions { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Dublin groups, roadmap and waitlist */
.group-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.group-card { background: var(--surface); border: 1px solid var(--line); border-top: 5px solid var(--teal); border-radius: var(--radius); padding: 18px; display: grid; gap: 8px; align-content: start; }
.group-card h3 { margin: 0; font-size: 1.12rem; }
.group-card p { margin: 0; }
.group-card .chip { justify-self: start; }
.group-card .btn { justify-self: start; }
.group-meets { font-weight: 600; }
.group-count { font-family: var(--font-data); font-size: .85rem; color: var(--plum); }
.hw-roadmap { margin-top: 28px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 20px; align-items: start; }
.hw-roadmap ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hw-roadmap li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.hw-roadmap li span { color: var(--muted); font-size: .9rem; }
.hw-roadmap li.now { border: 2px solid var(--teal); }
.hw-roadmap li.now span { color: var(--teal); font-weight: 700; }
.hw-waitlist { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; gap: 10px; }
.hw-waitlist p { margin: 0; }
.hw-waitlist-row { display: grid; grid-template-columns: 1.3fr 1fr 1fr auto; gap: 8px; }
.hw-waitlist-row[hidden] { display: none; }
@media (max-width: 860px) { .hw-roadmap { grid-template-columns: 1fr; } .hw-waitlist-row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .hw-waitlist-row { grid-template-columns: 1fr; } }

/* AI-free zone */
.hw-aifree-inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: center;
  background: var(--header-bg); color: #fff; border-radius: calc(var(--radius) * 1.4); padding: clamp(24px, 4vw, 44px); }
.hw-aifree-inner h2 { color: var(--header-ink); }
.hw-aifree-inner .eyebrow { color: var(--header-ink); opacity: .85; }
.hw-aifree-inner p { color: #f3e9f0; }
.hw-aifree-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.no-list, .yes-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.no-list li, .yes-list li { display: flex; gap: 10px; align-items: center; font-weight: 700; }
.no-list li::before { content: "\2715"; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #ffd6de; color: #8a0f2b; font-size: .8rem; flex: none; }
.yes-list li::before { content: "\2713"; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--header-ink); color: #134a2a; font-size: .85rem; flex: none; }
@media (max-width: 760px) { .hw-aifree-inner { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .hw-aifree-lists { grid-template-columns: 1fr; } }

/* Install */
.hw-app-inner { display: flex; gap: 28px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) * 1.4); padding: clamp(22px, 4vw, 40px); }
.hw-app-inner > div { flex: 1 1 320px; display: grid; gap: 10px; }
.hw-app-inner p { margin: 0; }
.hw-app-icon { width: 140px; height: 140px; border-radius: 30px; box-shadow: 0 14px 30px rgba(30, 10, 60, .25); }
.install-help { font-size: .92rem; }

/* Join: pathways, selfie, waitlist */
.launch-note { display: inline-flex; gap: 8px; align-items: baseline; background: var(--teal-soft); border: 1px solid var(--teal); border-radius: 999px; padding: 8px 16px; margin: 0; font-size: .95rem; }
.pathway-picks { display: grid; gap: 14px; }
.pathway-pick { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; background: var(--surface); }
.pathway-pick-h { margin: 0 0 8px; font-weight: 700; }
.selfie-step { border: 2px dashed var(--teal); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 8px; background: var(--teal-soft); }
.selfie-h, .selfie-pose { margin: 0; }
.selfie-pose { font-size: 1.05rem; }
.waitlist-box { display: grid; gap: 12px; }
.about-h3 { margin: 22px 0 4px; font-size: 1.1rem; }
.two-ideas { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip-btn { font: inherit; font-size: .85rem; cursor: pointer; border-radius: 999px; padding: 5px 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.chip-btn:hover, .chip-btn:focus-visible { border-color: var(--plum); }

/* Member area: verification */
.hv-badge { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; font-size: .8rem; font-weight: 700; color: var(--on-teal); background: var(--teal); border-radius: 999px; padding: 2px 10px; }
.hv-badge[hidden] { display: none; }
.verify-panel { border: 2px solid var(--plum); border-radius: var(--radius); background: var(--surface); padding: 18px 20px; margin-bottom: 20px; display: grid; gap: 10px; }
.verify-panel h2 { margin: 0; font-size: 1.3rem; }
.verify-panel p { margin: 0; }
.verify-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.verify-steps li { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.verify-steps li::before { content: ""; width: 22px; height: 22px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: .8rem; font-weight: 700; }
.verify-steps li.ok::before { content: "\2713"; background: var(--teal); color: #fff; }
.verify-steps li.todo::before { border: 2px dashed var(--muted); }
.phone-check { background: var(--bg-yellow); border-radius: 10px; padding: 12px 14px; display: grid; gap: 8px; }
.phone-code { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.phone-code input { width: 9em; font-family: var(--font-data); letter-spacing: .2em; }

/* Member area: match cards */
.two-things { background: var(--bg-yellow); border-radius: 10px; padding: 10px 12px; }
.two-things .two-h { margin: 0 0 4px; font-weight: 700; font-size: .9rem; }
.two-things ul { margin: 0; padding-left: 18px; font-size: .92rem; }
.routine { font-size: .9rem; color: var(--muted); margin: 0; }
.locked-note { font-size: .88rem; margin: 6px 0 0; }

/* Member area: chat privacy and voice */
.contact-share { margin: 0 18px; padding: 10px 14px; border-radius: 10px; background: var(--teal-soft); border: 1px solid var(--teal); display: grid; gap: 8px; font-size: .92rem; }
.contact-share[hidden] { display: none; }
.cs-details p { margin: 0; font-family: var(--font-data); }
.cs-form { display: grid; gap: 6px; }
.cs-form p { margin: 0; }
.chat-tools { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 18px 8px; }
.chat-tools[hidden] { display: none; }
.tool-btn { font: inherit; font-size: .85rem; cursor: pointer; border-radius: 999px; padding: 5px 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.tool-btn:hover, .tool-btn:focus-visible { border-color: var(--plum); }
.chat-masked { margin: 0 18px 8px; font-size: .85rem; color: var(--warn); }
.voice-btn { padding-inline: 14px; font-size: 1.1rem; }
.voice-rec { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 18px 18px; border-top: 1px solid var(--line); }
.voice-rec[hidden] { display: none; }
.rec-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); animation: recpulse 1s infinite; }
@keyframes recpulse { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .rec-dot { animation: none; } }
.chat-log li.voice { display: grid; gap: 6px; }
.chat-log li.voice audio { max-width: 260px; height: 36px; }
.voice-label { font-size: .8rem; opacity: .85; }
#voice-error { margin: 0 18px 8px; }
.chip-premium { background: var(--bg-yellow); border-color: var(--sun); color: var(--ink); }

/* Report */
.report-wrap { display: grid; gap: 18px; max-width: 860px; }
.report { background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) * 1.3); padding: clamp(20px, 4vw, 40px); display: grid; gap: 18px; }
.report-head p { margin: 0; }
.report-section { border-top: 1px solid var(--line); padding-top: 16px; }
.report-section h2 { margin: 0 0 4px; font-size: 1.3rem; }
.report-section ul { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 6px; }
.report-section.locked { opacity: .75; }
.report-lock { font-style: italic; color: var(--muted); margin: 8px 0 0; }
.report-buy { background: var(--bg-yellow); border: 2px solid var(--sun); border-radius: var(--radius); padding: 20px; display: grid; gap: 10px; }
.report-buy h2, .report-buy p { margin: 0; }
.report-price strong { font-size: 1.4rem; }
.report-offer { margin-top: 28px; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; align-items: center;
  background: var(--surface); border: 2px solid var(--plum); border-radius: calc(var(--radius) * 1.3); padding: clamp(18px, 3vw, 32px); }
.report-offer h2 { margin: 4px 0 8px; font-size: 1.4rem; }
.report-offer p { margin: 0; }
.report-offer-price { display: grid; gap: 8px; justify-items: start; }
.report-offer-price strong { font-size: 2rem; font-family: var(--font-display); }
.report-offer-price span { color: var(--muted); }
@media (max-width: 700px) { .report-offer { grid-template-columns: 1fr; } }
@media print {
  .site-header, .site-footer, .hw-display-btn, .hw-display-panel, .report-actions, .report-buy, .page-hero .lede { display: none !important; }
  body { background: #fff; }
  .report { border: 0; padding: 0; }
}
.field-help { margin: 0 0 10px; color: var(--muted); font-size: .95rem; }
.pathway-picks-compact { gap: 10px; }
.pathway-picks-compact .pathway-pick { padding: 10px 12px; }
@keyframes hw-flash { from { box-shadow: 0 0 0 4px var(--teal); } to { box-shadow: 0 0 0 0 transparent; } }
.notice.flash { animation: hw-flash 1.2s ease-out; }
@media (prefers-reduced-motion: reduce) { .notice.flash { animation: none; } }
/* Launch offer banner and "take care" notes */
.launch-banner { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 18px; padding: 12px 16px; border-radius: var(--radius);
  background: var(--accent-soft); border: 1px solid var(--accent); color: var(--ink); font-size: .98rem; line-height: 1.45; }
.launch-banner[hidden] { display: none; }
.hw-hero .launch-banner { background: rgba(255, 255, 255, .08); border-color: rgba(214, 255, 106, .55); color: #f6f1ff; max-width: 34rem; }
.trust-note { display: flex; gap: 8px; align-items: flex-start; margin: 14px 0; padding: 10px 14px; border-radius: var(--radius);
  background: var(--warn-soft, #fff4dc); border: 1px solid var(--warn); color: var(--ink); font-size: .95rem; line-height: 1.45; }
.chat-trust { margin: 6px 0 8px; font-size: .88rem; color: var(--muted); }
/* Homepage one-minute video */
.hw-video-grid { display: grid; gap: clamp(24px, 4vw, 48px); align-items: center; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .hw-video-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.hw-video-frame { border-radius: calc(var(--radius) * 1.5); overflow: hidden; box-shadow: 0 24px 60px rgba(40, 8, 60, .35); background: #12051f; aspect-ratio: 16 / 9; }
.hw-video-frame video { display: block; width: 100%; height: 100%; object-fit: cover; }
.hw-video-note { font-size: .95rem; }
.home-groups .group-photo { display: block; width: calc(100% + 2 * var(--card-pad, 20px)); max-width: none; aspect-ratio: 16 / 10; object-fit: cover;
  margin: calc(-1 * var(--card-pad, 20px)) calc(-1 * var(--card-pad, 20px)) 14px; border-radius: var(--radius) var(--radius) 0 0; background: var(--teal-soft); }
.photo-credit { font-size: .85rem; color: var(--muted); margin: 0; }
.home-groups .group-card { --card-pad: 18px; overflow: hidden; }

/* ---------- Typography refresh (Fraunces + Atkinson Hyperlegible Next) ----------
   Small labels used to be spaced-out monospace capitals; they're now sentence case in the
   reading face, which is easier to read for everyone. */
body { font-weight: 400; font-feature-settings: "kern"; }
strong, b { font-weight: 700; }
.bar-val, .dimension .weight, .qgroup-head .weight, .price .amount, .score-preview .big, .ring text { font-variant-numeric: tabular-nums lining-nums; }
thead th, .footer-grid h4, .facts dt, .sample-flag, .billing .save { text-transform: none !important; letter-spacing: 0 !important; }
thead th { font-weight: 700; font-size: .9rem; }
.footer-grid h4 { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: 1.05rem; color: inherit; opacity: .85; }
.facts dt { font-size: .9rem; font-weight: 700; }
.sample-flag { font-weight: 700; font-size: .82rem; }
.story-meta { font-size: .9rem; }
.btn, button, input, select, textarea { font-family: var(--font-body); }
.btn { font-weight: 700; letter-spacing: 0; }
blockquote, .quote { font-family: var(--font-display); font-style: italic; }
.steps li::before, .pill, .plan .tag, .quiz-list .dim, .hw-global, .lx-phone-label { text-transform: none; letter-spacing: 0; }
.steps li::before { font-weight: 700; font-size: .9rem; }
.pill, .plan .tag { font-weight: 700; font-size: .8rem; }
.quiz-list .dim { font-size: .85rem; font-weight: 600; }
.hw-global { font-size: .92rem; font-weight: 600; letter-spacing: .01em; }
.hw-power { text-transform: none; letter-spacing: 0; font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: clamp(1.05rem, .95rem + .4vw, 1.25rem); }
.hw-hero h1 { font-weight: 640; letter-spacing: -0.03em; line-height: 1.02; }
.hw-hero h1 em { font-weight: 500; letter-spacing: -0.02em; }
.hw-slogan { font-weight: 500; }
/* Comfortable reading measure for running text */
.prose p, .prose li, .section-head p, .hw-head p { max-width: 68ch; }
.match-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.match h3 { font-size: 1.25rem; line-height: 1.2; }
.home-groups .group-card { border-top-width: 1px; }
/* Sky-blue pages: About, Compatibility, Contact, Stories, Friendship, Community & Wellness, Safety.
   Light mode only; dark mode and high contrast keep their own backgrounds. */
:root:not(.hw-hc):not([data-theme="dark"]) body.theme-sky { --bg: #cfe9fb; --line: #a9d2ee; }
@media (prefers-color-scheme: dark) {
  :root:not(.hw-hc):not([data-theme="light"]) body.theme-sky { --bg: unset; --line: unset; }
}
/* Multiple-choice questions: each answer is written out, so they wrap as readable pills */
.seg.seg-choices { display: flex; flex-wrap: wrap; gap: 8px; max-width: none; }
.seg.seg-choices label { width: auto; min-width: 0; height: auto; min-height: 44px; padding: 10px 16px; font-family: var(--font-body);
  font-size: .95rem; font-weight: 600; line-height: 1.25; text-align: center; white-space: normal; border-radius: 999px; }
.quiz-list .seg.seg-choices { max-width: 760px; margin-top: 6px; }
.answer-row-choices { align-items: start; }

/* ---------- Compatibility calculator: step-by-step ---------- */
.cc-steps { margin: 6px 0 14px; display: grid; gap: 12px; }
.cc-progress { height: 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.cc-progress-fill { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--plum), var(--accent)); transition: width .3s ease; }
.cc-step-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cc-step { display: grid; gap: 1px; text-align: left; padding: 8px 14px; border-radius: 12px; border: 1.5px solid var(--line);
  background: var(--surface); color: var(--ink); cursor: pointer; font: inherit; line-height: 1.2; }
.cc-step:hover { border-color: var(--muted); }
.cc-step-name { font-weight: 700; font-size: .92rem; }
.cc-step-count { font-size: .8rem; color: var(--muted); }
.cc-step.is-done .cc-step-count { color: var(--teal); font-weight: 700; }
.cc-step.is-done .cc-step-count::before { content: "✓ "; }
.cc-step.is-current { background: var(--plum); border-color: var(--plum); color: var(--plum-ink); }
.cc-step.is-current .cc-step-count { color: inherit; opacity: .85; }
.cc-all { margin: 0 0 12px; font-size: .95rem; }
.qgroup.cc-off { display: none; }
.cc-pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 6px 0 18px; padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.cc-pager[hidden] { display: none; }
.cc-where { font-weight: 700; color: var(--muted); font-size: .95rem; }
.cc-pager .btn[disabled] { opacity: .45; cursor: not-allowed; }
/* The result stays in view while you answer */
@media (min-width: 900px) { #compat-tool .results { position: sticky; top: 88px; align-self: start; max-height: calc(100vh - 104px); overflow: auto; } }
@media (max-width: 600px) { .cc-pager { flex-wrap: wrap; } .cc-where { order: -1; width: 100%; text-align: center; } .cc-pager .btn { flex: 1; } }
@media (max-width: 600px) { .cc-step-list { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; } .cc-step-list li { flex: none; scroll-snap-align: start; } }
