/* Liftr site. Tokens mirror src/components/theme.ts so the site and the app
   read as one product: same ground, same red, same surface steps. */

:root {
  color-scheme: dark;
  --bg: #0E0E10;
  --bg-raised: #131316;
  --surface: #1A1A1E;
  --surface-2: #232329;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: #3A3A44;
  --text: #F5F5F5;
  --muted: #A1A1AA;
  --dim: #71717A;
  --primary: #EF4444;
  --primary-btn: #EF4444;
  --on-primary: #0E0E10;
  --link: #F87171;
  --primary-soft: rgba(239, 68, 68, 0.10);
  --primary-soft-2: rgba(239, 68, 68, 0.18);
  --primary-outline: rgba(239, 68, 68, 0.30);
  --highlight: rgba(255, 255, 255, 0.07);
  --header-bg: rgba(14, 14, 16, 0.72);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5);
  --glow: rgba(239, 68, 68, 0.22);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --wrap: 1120px;
  --gutter: 20px;

  --font-display: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #F1F1F3;
    --bg-raised: #F7F7F9;
    --surface: #FCFCFD;
    --surface-2: #F3F3F5;
    --border: #E4E4E9;
    --border-strong: #D6D6DD;
    --text: #0E0E10;
    --muted: #4F4F58;
    --dim: #6E6E78;
    --primary: #EF4444;
    --primary-btn: #DC2626;
    --on-primary: #FFFFFF;
    --link: #C81E1E;
    --primary-soft: rgba(239, 68, 68, 0.08);
    --primary-soft-2: rgba(239, 68, 68, 0.14);
    --primary-outline: rgba(239, 68, 68, 0.24);
    --highlight: rgba(255, 255, 255, 0.9);
    --header-bg: rgba(241, 241, 243, 0.78);
    --shadow-md: 0 6px 20px rgba(14, 14, 16, 0.07);
    --shadow-lg: 0 18px 44px rgba(14, 14, 16, 0.10);
    --glow: rgba(239, 68, 68, 0.14);
  }
}

/* ── base ─────────────────────────────────────────────────────────────── */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 6px; }

::selection { background: var(--primary-soft-2); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--primary-btn); color: var(--on-primary);
  padding: 10px 14px; border-radius: var(--radius-md); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.eyebrow {
  display: inline-block;
  font: 800 12px/1 var(--font-display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 14px;
}

h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.02em; margin: 0; }

.section { padding: 96px 0; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(30px, 4.6vw, 46px); line-height: 1.08; font-weight: 800; }
.section-head p { color: var(--muted); font-size: 18px; margin: 16px 0 0; }
.section-head .eyebrow { color: var(--primary); font-size: 12px; margin: 0 0 14px; }

/* ── buttons ──────────────────────────────────────────────────────────── */

.btn {
  --h: 50px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 22px;
  border-radius: 999px; border: 0;
  font: 700 16px/1 var(--font-display); letter-spacing: -0.01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* The app's "liquid glass" red: a convex-lens gradient over flat red, plus
   the specular hairline on top. Same stops as primaryGloss in theme.ts. */
.btn-primary {
  color: var(--on-primary);
  background-color: var(--primary-btn);
  background-image: linear-gradient(180deg,
    rgba(255,255,255,0.170) 0%, rgba(255,255,255,0.105) 12%, rgba(255,255,255,0.052) 22%,
    rgba(255,255,255,0.018) 30%, rgba(255,255,255,0) 38%, rgba(0,0,0,0.014) 50%,
    rgba(0,0,0,0.034) 64%, rgba(0,0,0,0.030) 76%, rgba(0,0,0,0.010) 86%,
    rgba(255,255,255,0.030) 94%, rgba(255,255,255,0.085) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.42), 0 10px 28px var(--glow);
}
.btn-primary:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,0.42), 0 14px 36px var(--glow); }

.btn-ghost {
  color: var(--text);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border), inset 0 1px 0 var(--highlight);
}
.btn-ghost:hover { background: var(--surface-2); }

.btn-sm { --h: 38px; padding: 0 16px; font-size: 14px; }

/* ── header ───────────────────────────────────────────────────────────── */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none;
  font: 800 22px/1 var(--font-display); letter-spacing: -0.03em;
}
.brand:hover { text-decoration: none; }
.brand svg { width: 30px; height: 30px; color: var(--primary); }

.site-nav { display: flex; gap: 4px; margin-left: auto; }
.site-nav a {
  color: var(--muted); text-decoration: none;
  font: 600 15px/1 var(--font-display);
  padding: 10px 12px; border-radius: 999px;
}
.site-nav a:hover { color: var(--text); background: var(--surface); }
.site-nav a[aria-current="page"] { color: var(--text); }

@media (max-width: 760px) {
  .site-nav { display: none; }
  .site-header .btn { margin-left: auto; }
}

/* ── hero ─────────────────────────────────────────────────────────────── */

.hero { position: relative; padding: 72px 0 56px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 900px; height: 900px;
  background: radial-gradient(closest-side, var(--glow), transparent 70%);
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 56px; align-items: center;
}

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 10px; border-radius: 999px;
  background: var(--primary-soft); border: 1px solid var(--primary-outline);
  color: var(--text); font: 700 13px/1 var(--font-display); text-decoration: none;
}
.pill:hover { text-decoration: none; background: var(--primary-soft-2); }
.pill .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--primary);
  box-shadow: 0 0 0 0 rgba(239,68,68,0.6); animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(239,68,68,0.55); }
  70% { box-shadow: 0 0 0 9px rgba(239,68,68,0); }
  100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); }
}

.hero h1 {
  font-size: clamp(42px, 6vw, 70px);
  line-height: 0.98; font-weight: 800; letter-spacing: -0.045em;
  margin: 22px 0 22px;
}
.hero h1 em { font-style: normal; color: var(--primary); }
.hero .lead { font-size: 19px; color: var(--muted); max-width: 520px; margin: 0 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 26px 0 0; padding: 0; list-style: none;
  color: var(--dim); font: 600 14px/1.4 var(--font-display);
}
.hero-meta li { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta svg { width: 16px; height: 16px; color: var(--primary); }

/* ── phone mock (decorative, always the app's dark palette) ───────────── */

.phone {
  --p-bg: #0E0E10; --p-surface: #1A1A1E; --p-surface-2: #232329;
  --p-text: #F5F5F5; --p-muted: #A1A1AA; --p-dim: #71717A;
  position: relative; justify-self: center;
  width: min(100%, 340px); aspect-ratio: 340 / 690;
  padding: 12px; border-radius: 52px;
  background: linear-gradient(160deg, #2A2A31, #111114 40%, #1C1C21);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08), inset 0 0 0 2px #050506, var(--shadow-lg),
              0 40px 120px rgba(239,68,68,0.18);
  color: var(--p-text); font-family: var(--font-body);
  transform: rotate(2.5deg);
}
.phone-screen {
  position: relative; height: 100%; border-radius: 41px; overflow: hidden;
  background: var(--p-bg); padding: 54px 14px 14px;
  display: flex; flex-direction: column; gap: 10px;
}
.phone-island {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 28px; border-radius: 20px; background: #000;
}
.phone-bar {
  display: flex; align-items: center; justify-content: space-between;
  font: 800 20px/1 var(--font-display); letter-spacing: -0.03em; padding: 0 4px 2px;
}
.phone-bar span { font: 600 11px/1 var(--font-display); color: var(--p-muted); letter-spacing: 0; }

.card-m {
  background: var(--p-surface); border-radius: 18px; padding: 12px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.07), 0 0 0 1px rgba(255,255,255,0.04);
}
.card-m .who { display: flex; align-items: center; gap: 9px; }
.avatar {
  width: 32px; height: 32px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font: 800 12px/1 var(--font-display);
  background: linear-gradient(135deg, #3B3B45, #26262D); color: #F5F5F5;
}
.avatar.b { background: linear-gradient(135deg, #818CF8, #5B5FD6); }
.avatar.c { background: linear-gradient(135deg, #4ADE80, #16A34A); color: #0E0E10; }
.card-m .name { font: 700 13px/1.2 var(--font-display); }
.card-m .sub { font-size: 11px; color: var(--p-muted); line-height: 1.3; }
.split-tag {
  margin-left: auto; font: 700 10px/1 var(--font-display); color: #EF4444;
  background: rgba(239,68,68,0.12); padding: 5px 8px; border-radius: 999px;
}
.pr-banner {
  display: flex; align-items: center; gap: 6px; margin: 10px 0 8px;
  font: 800 10px/1 var(--font-display); letter-spacing: 0.08em; color: #E6B85B;
}
.pr-banner svg { width: 13px; height: 13px; }

.top-set {
  position: relative; overflow: hidden;
  background: rgba(239,68,68,0.10); border: 1px solid rgba(239,68,68,0.30);
  border-radius: 16px; padding: 12px 12px 10px;
  box-shadow: 0 8px 24px rgba(239,68,68,0.18);
}
.top-set::before {
  content: ""; position: absolute; left: -20%; right: -20%; top: -70px; height: 120px;
  background: radial-gradient(closest-side, rgba(239,68,68,0.28), transparent);
}
.top-set .badge {
  position: relative; display: inline-block;
  font: 800 9px/1 var(--font-display); letter-spacing: 0.1em; color: #FCA5A5;
  padding: 5px 8px; border-radius: 999px;
  background: rgba(239,68,68,0.20); border: 1px solid rgba(239,68,68,0.30);
}
.top-set .big {
  position: relative; margin: 8px 0 4px;
  font: 900 34px/1 var(--font-display); letter-spacing: -0.04em;
}
.top-set .big small { font-size: 15px; color: var(--p-muted); font-weight: 700; letter-spacing: 0; }
.top-set .ex { position: relative; display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--p-muted); }
.top-set .ex i { width: 7px; height: 7px; border-radius: 50%; background: #F87171; }
.top-set .flame { position: absolute; right: -6px; top: -4px; width: 70px; height: 70px; color: #EF4444; opacity: 0.08; }

.stats-m {
  display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 10px;
  background: var(--p-surface-2); border-radius: 12px; overflow: hidden;
}
.stats-m div { padding: 8px 4px; text-align: center; }
.stats-m div + div { box-shadow: -1px 0 0 rgba(255,255,255,0.06); }
.stats-m b { display: block; font: 800 13px/1.1 var(--font-display); letter-spacing: -0.02em; }
.stats-m span { font: 700 7.5px/1.4 var(--font-display); letter-spacing: 0.08em; color: var(--p-dim); text-transform: uppercase; }

.bands { display: flex; height: 5px; gap: 3px; margin-top: 10px; }
.bands i { display: block; border-radius: 3px; }

.social-row { display: flex; gap: 14px; margin-top: 10px; font: 700 11px/1 var(--font-display); color: var(--p-muted); }
.social-row span { display: inline-flex; align-items: center; gap: 5px; }
.social-row svg { width: 14px; height: 14px; }
.social-row .on { color: #EF4444; }

.comment-m {
  display: flex; gap: 8px; margin-top: 10px; padding: 9px 10px;
  background: var(--p-surface-2); border-radius: 12px; font-size: 11px; line-height: 1.35;
}
.comment-m b { font-family: var(--font-display); }
.comment-m .avatar { width: 22px; height: 22px; font-size: 9px; }

.card-m.small .row { display: flex; align-items: center; gap: 9px; }
.card-m.small .meta-r { margin-left: auto; font: 800 13px/1 var(--font-display); }
.card-m.small .meta-r small { display: block; font: 600 9px/1.4 var(--font-display); color: var(--p-dim); text-align: right; }

.tabbar-m {
  margin: auto -14px -14px; padding: 9px 10px 16px;
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: rgba(20,20,23,0.96); box-shadow: 0 -1px 0 rgba(255,255,255,0.06);
}
.tabbar-m span { display: grid; justify-items: center; gap: 3px; font: 700 8px/1 var(--font-display); color: var(--p-dim); }
.tabbar-m svg { width: 18px; height: 18px; }
.tabbar-m .on { color: #EF4444; }

/* ── stat strip ───────────────────────────────────────────────────────── */

.strip { padding: 8px 0 24px; }
.strip ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--surface); border-radius: var(--radius-xl);
  box-shadow: inset 0 0 0 1px var(--border), inset 0 1px 0 var(--highlight), var(--shadow-md);
  overflow: hidden;
}
.strip li { padding: 26px 22px; }
.strip li + li { box-shadow: -1px 0 0 var(--border); }
.strip b { display: block; font: 800 34px/1 var(--font-display); letter-spacing: -0.04em; }
.strip b em { font-style: normal; color: var(--primary); }
.strip span { display: block; margin-top: 8px; color: var(--muted); font-size: 15px; line-height: 1.4; }

/* ── features ─────────────────────────────────────────────────────────── */

.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.feature {
  position: relative; overflow: hidden;
  background: var(--surface); border-radius: var(--radius-xl); padding: 30px;
  box-shadow: inset 0 0 0 1px var(--border), inset 0 1px 0 var(--highlight), var(--shadow-md);
}
.feature::after {
  content: ""; position: absolute; top: 0; left: 30px; right: 30px; height: 3px;
  border-radius: 0 0 3px 3px; background: var(--accent, var(--primary)); opacity: 0.9;
}
.feature .icon {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent, var(--primary)) 14%, transparent);
  color: var(--accent, var(--primary)); margin-bottom: 18px;
}
.feature .icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 23px; font-weight: 800; }
.feature > p { color: var(--muted); margin: 6px 0 16px; }
.feature ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.feature li { position: relative; padding-left: 26px; line-height: 1.45; }
.feature li::before {
  content: ""; position: absolute; left: 2px; top: 5px; width: 14px; height: 14px; border-radius: 50%;
  background: color-mix(in srgb, var(--accent, var(--primary)) 18%, transparent);
  box-shadow: inset 0 0 0 4px color-mix(in srgb, var(--accent, var(--primary)) 60%, transparent);
}

/* ── invite ───────────────────────────────────────────────────────────── */

.invite {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 48px;
  padding: 48px; border-radius: 32px;
  background:
    radial-gradient(600px 300px at 0% 0%, var(--primary-soft-2), transparent 70%),
    var(--surface);
  box-shadow: inset 0 0 0 1px var(--primary-outline), inset 0 1px 0 var(--highlight), var(--shadow-lg);
}
.invite h2 { font-size: clamp(32px, 4.6vw, 48px); line-height: 1.05; font-weight: 800; }
.invite .intro { color: var(--muted); font-size: 18px; margin: 16px 0 28px; max-width: 480px; }

.field-label { display: block; font: 700 13px/1 var(--font-display); color: var(--muted); margin: 0 0 10px; }

.copy-field {
  display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 16px;
  background: var(--bg); border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--border-strong);
}
.copy-field input {
  flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text);
  font: 600 15px/1 var(--font-display); padding: 12px 0; outline: none;
  text-overflow: ellipsis;
}
.copy-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.btn[data-copied="true"] .label-default, .btn:not([data-copied="true"]) .label-done { display: none; }

.bubble-wrap { margin-top: 30px; }
.bubble {
  position: relative; max-width: 360px; padding: 12px 16px; margin: 0 0 12px;
  border-radius: 20px 20px 20px 6px;
  background: #2F80ED; color: #fff; font-size: 15px; line-height: 1.45; white-space: pre-line;
  overflow-wrap: anywhere;
}
.bubble a { color: #fff; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; align-content: start; counter-reset: step; }
.steps li {
  counter-increment: step; position: relative;
  padding: 18px 18px 18px 66px; border-radius: var(--radius-lg);
  background: var(--bg-raised); box-shadow: inset 0 0 0 1px var(--border);
}
.steps li::before {
  content: counter(step); position: absolute; left: 18px; top: 18px;
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  font: 800 15px/1 var(--font-display); color: var(--on-primary); background: var(--primary-btn);
}
.steps b { display: block; font: 700 17px/1.3 var(--font-display); }
.steps span { color: var(--muted); font-size: 15px; }
.steps-title { font: 800 18px/1 var(--font-display); margin: 0 0 16px; letter-spacing: -0.02em; }

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 80;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: 999px;
  font: 700 14px/1 var(--font-display); box-shadow: var(--shadow-lg);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ── privacy band ─────────────────────────────────────────────────────── */

.promise { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.promise div {
  padding: 26px; border-radius: var(--radius-xl); background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border), inset 0 1px 0 var(--highlight);
}
.promise svg { width: 26px; height: 26px; color: var(--primary); margin-bottom: 14px; }
.promise b { display: block; font: 800 19px/1.3 var(--font-display); letter-spacing: -0.02em; }
.promise p { margin: 6px 0 0; color: var(--muted); font-size: 16px; }
.more-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 26px; font: 700 16px/1 var(--font-display); }
.more-link svg { width: 16px; height: 16px; }

/* ── faq ──────────────────────────────────────────────────────────────── */

.faq { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 48px; }
.faq-list { display: grid; gap: 10px; }
.faq details {
  background: var(--surface); border-radius: var(--radius-lg);
  box-shadow: inset 0 0 0 1px var(--border);
}
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; position: relative;
  font: 700 17px/1.35 var(--font-display); letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq details > div { padding: 0 22px 20px; color: var(--muted); }
.faq details > div p { margin: 0; }

/* ── cta band ─────────────────────────────────────────────────────────── */

.cta-band { text-align: center; padding: 40px 0 104px; }
.cta-band .mark { width: 76px; height: 76px; margin: 0 auto 22px; border-radius: 18px; box-shadow: var(--shadow-lg), 0 20px 60px rgba(239,68,68,0.25); }
.cta-band h2 { font-size: clamp(32px, 5vw, 52px); font-weight: 800; line-height: 1.05; }
.cta-band p { color: var(--muted); font-size: 18px; margin: 14px auto 28px; max-width: 460px; }
.cta-band .hero-actions { justify-content: center; }

/* ── footer ───────────────────────────────────────────────────────────── */

.site-footer { border-top: 1px solid var(--border); padding: 48px 0 40px; background: var(--bg-raised); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer-grid p { color: var(--muted); font-size: 15px; margin: 12px 0 0; max-width: 280px; }
.footer-grid h4 { margin: 4px 0 12px; font: 800 12px/1 var(--font-display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--text); text-decoration: none; font-size: 15px; }
.footer-grid a:hover { color: var(--primary); }
.fine {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--border);
  color: var(--dim); font-size: 13px;
}

/* ── legal documents ──────────────────────────────────────────────────── */

.doc-hero { position: relative; padding: 64px 0 40px; overflow: hidden; border-bottom: 1px solid var(--border); }
.doc-hero::before {
  content: ""; position: absolute; left: 50%; top: -420px; width: 1000px; height: 700px; transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--glow), transparent 70%); pointer-events: none;
}
.doc-hero .wrap { position: relative; }
.doc-hero h1 { font-size: clamp(38px, 6vw, 60px); font-weight: 800; line-height: 1.02; letter-spacing: -0.04em; }
.doc-hero .meta { color: var(--muted); margin: 14px 0 0; font: 600 15px/1.4 var(--font-display); }

.doc-switch {
  display: inline-flex; gap: 4px; padding: 4px; margin-top: 28px; border-radius: 999px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--border);
}
.doc-switch a {
  padding: 9px 16px; border-radius: 999px; text-decoration: none;
  font: 700 14px/1 var(--font-display); color: var(--muted);
}
.doc-switch a:hover { color: var(--text); }
.doc-switch a[aria-current="page"] { background: var(--primary-btn); color: var(--on-primary); box-shadow: inset 0 1px 0 rgba(255,255,255,0.35); }

.doc-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 64px; padding-top: 48px; padding-bottom: 96px; }

.toc { position: sticky; top: 88px; align-self: start; max-height: calc(100vh - 110px); overflow: auto; }
.toc h2 { font: 800 12px/1 var(--font-display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); margin: 6px 0 14px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--border); }
.toc a {
  display: block; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 2px solid transparent;
  color: var(--muted); text-decoration: none; font-size: 14.5px; line-height: 1.35;
}
.toc a:hover { color: var(--text); }
.toc a.active { color: var(--text); border-left-color: var(--primary); font-weight: 600; }
.toc-mobile { display: none; }

.prose { max-width: 720px; }
.prose > p:first-child { font-size: 19px; line-height: 1.6; }
.prose h2 {
  scroll-margin-top: 88px;
  font-size: 25px; font-weight: 800; line-height: 1.2;
  margin: 52px 0 14px; padding-top: 28px; border-top: 1px solid var(--border);
  position: relative;
}
.prose h3 { font-size: 18px; font-weight: 700; margin: 28px 0 8px; letter-spacing: -0.01em; }
.prose p { margin: 0 0 16px; }
.prose ul { padding-left: 0; list-style: none; margin: 0 0 16px; }
.prose li { position: relative; padding-left: 22px; margin: 8px 0; }
.prose li::before { content: ""; position: absolute; left: 4px; top: 0.72em; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }
.prose strong { font-weight: 700; }
.prose .anchor {
  position: absolute; left: -26px; top: 28px; padding-right: 8px;
  color: var(--dim); text-decoration: none; opacity: 0; font-weight: 600;
}
.prose h2:hover .anchor, .prose .anchor:focus { opacity: 1; }

.callout {
  position: relative; overflow: hidden; margin: 28px 0;
  padding: 20px 22px; border-radius: var(--radius-lg);
  background: var(--primary-soft); box-shadow: inset 0 0 0 1px var(--primary-outline);
}
.callout::before {
  content: ""; position: absolute; left: -10%; right: -10%; top: -90px; height: 140px;
  background: radial-gradient(closest-side, var(--primary-soft-2), transparent); pointer-events: none;
}
.callout > * { position: relative; }
.callout strong { color: var(--link); }

.table-wrap { overflow-x: auto; margin: 16px 0 20px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); }
.table-wrap table { border-collapse: collapse; width: 100%; font-size: 15.5px; line-height: 1.5; }
.table-wrap th, .table-wrap td { text-align: left; vertical-align: top; padding: 13px 16px; }
.table-wrap th { font: 800 12px/1.2 var(--font-display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); background: var(--surface-2); }
.table-wrap tr + tr td { border-top: 1px solid var(--border); }
.table-wrap td:first-child { font-weight: 600; width: 46%; }

.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; color: var(--text);
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--border), var(--shadow-md);
  opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { width: 18px; height: 18px; }

/* ── responsive ───────────────────────────────────────────────────────── */

@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 48px; }
  .phone { transform: none; width: min(100%, 320px); }
  .invite { grid-template-columns: 1fr; padding: 32px 24px; gap: 36px; }
  .faq { grid-template-columns: 1fr; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .doc-layout { grid-template-columns: 1fr; gap: 0; padding-top: 24px; }
  .toc { display: none; }
  .toc-mobile {
    display: block; margin: 0 0 32px; border-radius: var(--radius-lg);
    background: var(--surface); box-shadow: inset 0 0 0 1px var(--border);
  }
  .toc-mobile summary { cursor: pointer; padding: 16px 18px; font: 700 15px/1 var(--font-display); list-style: none; display: flex; justify-content: space-between; }
  .toc-mobile summary::-webkit-details-marker { display: none; }
  .toc-mobile summary::after { content: "+"; color: var(--muted); font-size: 20px; line-height: 0.7; }
  .toc-mobile[open] summary::after { content: "–"; }
  .toc-mobile ol { list-style: none; margin: 0; padding: 0 18px 14px; columns: 2; column-gap: 20px; }
  .toc-mobile a { display: block; padding: 6px 0; color: var(--muted); text-decoration: none; font-size: 15px; break-inside: avoid; }
}

@media (max-width: 720px) {
  :root { --gutter: 16px; }
  body { font-size: 16.5px; }
  .section { padding: 64px 0; }
  .hero { padding: 44px 0 32px; }
  .hero .lead { font-size: 17.5px; }
  .strip ul { grid-template-columns: 1fr 1fr; }
  .strip li { padding: 20px 18px; }
  .strip li:nth-child(3) { box-shadow: 0 -1px 0 var(--border); }
  .strip li:nth-child(4) { box-shadow: -1px 0 0 var(--border), 0 -1px 0 var(--border); }
  .strip b { font-size: 28px; }
  .features, .promise { grid-template-columns: 1fr; }
  .feature { padding: 24px; }
  .invite { border-radius: 24px; padding: 28px 16px; }
  .copy-field { flex-direction: column; align-items: stretch; gap: 4px; border-radius: var(--radius-lg); padding: 4px; }
  .copy-field input { font-size: 13px; padding: 12px 6px; text-align: center; }
  .bubble a { font-size: 13.5px; }
  .copy-actions .btn { flex: 1 1 auto; }
  .toc-mobile ol { columns: 1; }
  .prose h2 { font-size: 22px; margin-top: 40px; }
  .prose .anchor { display: none; }
  .table-wrap td:first-child { width: auto; }
  .fine { flex-direction: column; }
}

@media (max-width: 380px) {
  .hero-actions .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
}

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

@media print {
  :root { --bg: #fff; --surface: #fff; --text: #000; --muted: #333; --border: #ccc; }
  .site-header, .site-footer, .toc, .toc-mobile, .to-top, .doc-switch, .skip-link { display: none !important; }
  .doc-hero { padding: 0 0 12px; }
  .doc-hero::before, .callout::before { display: none; }
  .doc-layout { display: block; padding: 0; }
  .prose { max-width: none; }
  .prose a { color: #000; }
  .callout { box-shadow: none; border: 1px solid #999; background: none; }
}
