/* ============================================================================
   Better Half — marketing site
   Tokens are the product's own (static/better-half-style.css in bh-mvp), so the
   site and the app share one palette and one typeface by construction.
   ========================================================================= */

:root {
  --ink: #0b0b0c;
  --paper: #f5f5f5;
  --indigo: #0f1756;
  --purple: #6d5fe9;
  --lav: #dba8e1;
  --gray: #9a9aa2;
  --muted: #5a5a62;
  --line: rgba(11, 11, 12, .10);
  --line-strong: rgba(11, 11, 12, .18);

  --sans: 'Satoshi', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --serif: 'Source Serif 4', Georgia, serif;

  --gut: clamp(20px, 5vw, 64px);
  --col: 1120px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
}

/* Nothing is pinned to a fixed canvas — the old site had a 980px floor that
   forced horizontal scrolling on any narrower viewport. */
.wrap { width: 100%; max-width: var(--col); margin: 0 auto; padding: 0 var(--gut); }

a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }

.skip {
  position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff;
  padding: 10px 16px; z-index: 100; font-weight: 700; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

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

/* ── Type scale ──────────────────────────────────────────────────────────── */

h1, h2, h3 { font-weight: 900; letter-spacing: -.025em; line-height: 1.08; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(38px, 6.2vw, 74px); }
h2 { font-size: clamp(29px, 4vw, 44px); letter-spacing: -.022em; line-height: 1.14; }
h3 { font-size: clamp(19px, 1.6vw, 22px); letter-spacing: -.015em; line-height: 1.25; }

.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }

.eyebrow {
  font-size: 12px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase;
  color: var(--purple); margin: 0 0 18px;
}
.lede { font-size: clamp(18px, 1.7vw, 21px); line-height: 1.55; color: var(--muted); max-width: 60ch; }
p { margin: 0 0 1.1em; max-width: 68ch; }
p:last-child { margin-bottom: 0; }

/* ── Header ──────────────────────────────────────────────────────────────── */

.masthead { border-bottom: 1px solid var(--line); background: rgba(245,245,245,.88); backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 20; }
.masthead .wrap { display: flex; align-items: center; gap: 24px; height: 74px; }
/* The wordmark ships at 3x and is trimmed of its transparent padding, so the
   rendered height is the only thing that sets its size. */
.brand { display: flex; align-items: center; text-decoration: none; flex: 0 0 auto; }
.brand img { height: 26px; width: auto; }
@media (max-width: 420px) { .brand img { height: 22px; } }
.nav { margin-left: auto; display: flex; align-items: center; gap: clamp(14px, 2.2vw, 30px); }
.nav a { font-size: 15px; font-weight: 700; text-decoration: none; color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav .btn { color: #fff; }
@media (max-width: 720px) {
  .masthead .wrap { height: auto; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
  .nav { width: 100%; margin-left: 0; flex-wrap: wrap; gap: 16px; }
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  background: var(--indigo); color: #fff; text-decoration: none;
  font-weight: 800; font-size: 15px; padding: 14px 22px; border-radius: 12px;
  border: 0; cursor: pointer; font-family: inherit; transition: transform .12s ease, background .12s ease;
}
.btn:hover { background: #16205f; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line-strong); }
.btn-ghost:hover { background: #fff; border-color: var(--ink); }

/* ── Sections ────────────────────────────────────────────────────────────── */

section { padding: clamp(56px, 8vw, 108px) 0; }
.section-line { border-top: 1px solid var(--line); }

.hero { padding: clamp(56px, 9vw, 128px) 0 clamp(48px, 7vw, 96px); position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 8% 0%, rgba(109,95,233,.20) 0%, rgba(109,95,233,0) 58%),
              radial-gradient(90% 80% at 100% 20%, rgba(219,168,225,.20) 0%, rgba(219,168,225,0) 60%);
  pointer-events: none;
}
.hero .wrap { position: relative; }
.hero h1 { max-width: 17ch; }
.hero .lede { margin-top: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-note { margin-top: 16px; font-size: 13.5px; color: var(--gray); font-weight: 600; }

/* ── Grids ───────────────────────────────────────────────────────────────── */

.grid { display: grid; gap: clamp(20px, 3vw, 34px); }
.g2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: clamp(22px, 2.6vw, 32px); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 16px; }

.numbered { counter-reset: step; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start;
  padding: 26px 0; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step .n { font-family: var(--serif); font-style: italic; font-size: 30px; color: var(--purple); line-height: 1; }
.step p { color: var(--muted); margin-top: 8px; font-size: 16px; }

.belief { padding: 24px 0; border-top: 1px solid var(--line); display: grid;
  grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.belief .n { font-size: 13px; font-weight: 900; color: var(--purple); padding-top: 5px; }
.belief p { color: var(--muted); font-size: 16px; margin-top: 6px; }

/* ── People ──────────────────────────────────────────────────────────────── */

.person { padding: 28px 0; border-top: 1px solid var(--line); }
.person h3 { margin-bottom: 2px; }
.person .role { font-size: 13px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase;
  color: var(--purple); margin-bottom: 12px; }
.person p { color: var(--muted); font-size: 16px; }

/* ── Roles ───────────────────────────────────────────────────────────────── */

.role-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px;
  padding: 22px 0; border-top: 1px solid var(--line); }
.role-row:last-of-type { border-bottom: 1px solid var(--line); }
.role-row h3 { flex: 1 1 260px; }
.role-row .meta { font-size: 14px; color: var(--gray); font-weight: 700; }
.role-row a { font-weight: 800; text-decoration: none; color: var(--purple); }
.role-row a:hover { text-decoration: underline; }

/* ── Callout / CTA ───────────────────────────────────────────────────────── */

.callout { background: var(--indigo); color: #fff; border-radius: 22px;
  padding: clamp(30px, 5vw, 60px); }
.callout h2 { color: #fff; }
.callout p { color: rgba(255,255,255,.78); margin-top: 16px; }
.callout .btn { background: #fff; color: var(--indigo); margin-top: 26px; }
.callout .btn:hover { background: #eceaff; }

/* ── Waitlist form ───────────────────────────────────────────────────────── */

.signup { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.signup input {
  flex: 1 1 260px; font: inherit; font-size: 16px; padding: 14px 16px;
  border: 1.5px solid var(--line-strong); border-radius: 12px; background: #fff; color: var(--ink);
}
.signup input::placeholder { color: var(--gray); }
.signup input:focus { outline: none; border-color: var(--purple); }

/* ── Prose (privacy) ─────────────────────────────────────────────────────── */

.prose { max-width: 72ch; }
.prose h2 { margin: 44px 0 14px; }
.prose h3 { margin: 30px 0 10px; }
.prose p, .prose li { color: var(--muted); font-size: 16.5px; }
.prose ul { padding-left: 20px; margin: 0 0 1.1em; }
.prose li { margin-bottom: .5em; }
.notice { background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--purple);
  border-radius: 0 12px 12px 0; padding: 18px 20px; margin: 0 0 28px; }
.notice p { margin: 0; font-size: 15.5px; }

/* ── Pricing ─────────────────────────────────────────────────────────────── */

.price { font-size: clamp(38px, 4.4vw, 52px); font-weight: 900; letter-spacing: -.035em;
  line-height: 1; margin: 0 0 6px; }
.price span { font-size: 15px; font-weight: 700; letter-spacing: 0; color: var(--gray); margin-left: 4px; }
.strike { color: var(--gray); text-decoration: line-through; font-size: 15px; margin: 0 0 12px; }
.card-feature { background: var(--indigo); border-color: var(--indigo); color: #fff; }
.card-feature h3, .card-feature .price { color: #fff; }
.card-feature p { color: rgba(255,255,255,.78); }
.card-feature .strike { color: rgba(255,255,255,.55); }

/* ── FAQ ─────────────────────────────────────────────────────────────────── */

.faq { border-top: 1px solid var(--line); padding: 4px 0; }
.faq:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 34px 20px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { display: inline; }
.faq summary::after {
  content: ''; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px;
  border-right: 2.5px solid var(--purple); border-bottom: 2.5px solid var(--purple);
  transform: translateY(-70%) rotate(45deg); transition: transform .18s ease;
}
.faq[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq p { color: var(--muted); font-size: 16.5px; padding: 0 34px 22px 0; margin: 0; }
.faq summary:focus-visible { outline: 2.5px solid var(--purple); outline-offset: 2px; border-radius: 4px; }

/* ── Footer ──────────────────────────────────────────────────────────────── */

.foot { border-top: 1px solid var(--line); padding: 44px 0 56px; margin-top: clamp(40px, 6vw, 80px); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 22px 34px; align-items: center; }
.foot a { color: var(--muted); text-decoration: none; font-size: 14.5px; font-weight: 700; }
.foot a:hover { color: var(--ink); }
.foot .copy { margin-left: auto; font-size: 13.5px; color: var(--gray); font-weight: 600; }
@media (max-width: 720px) { .foot .copy { margin-left: 0; width: 100%; } }
