/* nurturebot.app: the ONE stylesheet for every page in web/.
   Tokens are the app's Midnight theme, copied from src/constants/theme.ts (colors),
   src/constants/type.ts (the 5 text sizes + weights), src/constants/spacing.ts and
   src/constants/radius.ts, and the button kinds from src/components/primary-button.tsx.
   The only web-only additions: --display (a hero size the phone never needs) and a
   line-height, which the app leaves to the platform. Rules that carry over: ONE filled
   button per section, secondary = outlined, way back = link; brand green ONLY on the
   logo and success, never on a button; sentence-case labels; no em dashes; no emoji. */

:root {
  /* Midnight (the app's default; app.json userInterfaceStyle is "dark") */
  --bg: #0e0f13;
  --phone: #16181f;
  --card: #1f222c;
  --card2: #262a36;
  --bot: #3e424d;
  --user: #3b6cf0;
  --text: #eef0f5;
  --sub: #9aa1b2;
  --accent: #7da2ff;
  --accentbtn: #3b6cf0;
  --accentbtn2: #5d86f6;
  --green: #3fd084;
  --yellow: #f5b942;
  --gray: #8c94a8;
  --chip: #2e3342;
  --line: #262a36;
  --chipline: #3a4054;
  --destructive: #f06a5d;
  --brand-green: #0aa66e;

  /* type.ts: caption 12 · body 14 · name 16 · title 20 · heading 24 */
  --caption: 12px;
  --body: 15px;      /* 14 in the app; one notch up for a browser at arm's length */
  --name: 16px;
  --title: 20px;
  --heading: 24px;
  --display: 34px;   /* web-only: the hero headline */

  /* spacing.ts */
  --xs: 4px; --sm: 6px; --md: 8px; --lg: 10px; --xl: 12px; --xxl: 14px; --xxxl: 16px;
  --jumbo: 20px; --giant: 24px;

  /* radius.ts */
  --r-sm: 10px; --r-input: 12px; --r-item: 14px; --r-card: 16px; --r-bubble: 20px;
  --r-sheet: 28px; --r-pill: 99px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --measure: 640px;
  --wide: 1140px;
  color-scheme: dark;
}

@media (min-width: 720px) {
  :root { --display: 48px; --heading: 30px; --title: 22px; --body: 16px; }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: var(--body);
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
strong { font-weight: 700; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--wide); margin: 0 auto; padding: 0 var(--jumbo); }
.narrow { max-width: var(--measure); }
section { padding: 56px 0; }
@media (min-width: 720px) { section { padding: 88px 0; } }
.split { display: grid; gap: var(--giant); align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: 1.1fr 1fr; gap: 56px; } }

/* ---------- text ---------- */
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: var(--display); font-weight: 800; }
h2 { font-size: var(--heading); font-weight: 800; }
h3 { font-size: var(--name); font-weight: 700; }
.lede { font-size: var(--name); color: var(--sub); line-height: 1.55; margin-top: var(--xxxl); }
.sub { color: var(--sub); }
.caption { font-size: var(--caption); color: var(--sub); }
.sectionlabel {
  font-size: var(--caption); font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--sub); margin-bottom: var(--lg);
}
.section-head { margin-bottom: var(--giant); }
.section-head p { color: var(--sub); margin-top: var(--md); max-width: var(--measure); }
@media (min-width: 720px) { .section-head { margin-bottom: 36px; } }

/* ---------- buttons: the app's kinds ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--md);
  min-height: 52px; padding: 14px 22px; border-radius: var(--r-pill);
  font: inherit; font-size: var(--name); font-weight: 700; line-height: 1.25;
  cursor: pointer; border: 1px solid transparent; text-decoration: none;
  max-width: 100%; text-align: center; transition: opacity .12s;
}
.btn:hover { text-decoration: none; }
.btn:active { opacity: .7; }
.btn-filled { background: var(--accentbtn); color: #fff; }
.btn-filled:hover { background: var(--accentbtn2); }
.btn-outlined { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-outlined:active { opacity: .6; }
.btn-link {
  min-height: 44px; padding: 10px 14px; border-radius: 0; background: none;
  color: var(--accent); font-size: var(--body); font-weight: 600;
}
.btn-link:active { opacity: .6; }
.btn[disabled], .btn.is-disabled { background: var(--chipline); color: var(--sub); cursor: default; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--lg); align-items: center; }

/* ---------- surfaces ---------- */
.card {
  background: var(--card); border: 1px solid var(--chipline);
  border-radius: var(--r-card); padding: var(--xxxl);
}
.card2 { background: var(--card2); }
.pill {
  display: inline-flex; align-items: center; gap: var(--md);
  background: var(--chip); border: 1px solid var(--chipline); color: var(--text);
  font-size: 13px; font-weight: 600; padding: 7px 13px; border-radius: var(--r-pill);
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.tipbox {
  background: var(--card2); border: 1px solid var(--chipline); border-radius: var(--r-input);
  padding: var(--lg) 13px; font-size: 13px; color: var(--sub); line-height: 1.5;
}
.hr { height: 1px; background: var(--line); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(14, 15, 19, .85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: var(--xxl); min-height: 60px; }
.brand { display: flex; align-items: center; gap: var(--lg); color: var(--text); font-weight: 800; font-size: 18px; letter-spacing: .2px; }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.nav-links { display: none; gap: var(--xxl); margin-left: var(--md); }
.nav-links a { color: var(--sub); font-size: 14px; font-weight: 600; padding: 8px 4px; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-cta { margin-left: auto; min-height: 40px; padding: 8px 16px; font-size: 14px; }
@media (min-width: 860px) { .nav-links { display: flex; } }

/* ---------- forms (the app's input: card2 fill, chipline border, radius 12) ---------- */
.field {
  width: 100%; min-height: 48px; padding: 12px 14px;
  background: var(--card2); border: 1px solid var(--chipline); border-radius: var(--r-input);
  color: var(--text); font: inherit; font-size: var(--name);
}
.field::placeholder { color: var(--gray); }
.field:focus { outline: none; border-color: var(--accent); }
.form-row { display: grid; gap: var(--lg); }
@media (min-width: 560px) { .form-row { grid-template-columns: 1fr 1fr auto; } }

/* ---------- the phone: drawn screens, measured off the real components ----------
   screen-header.tsx (orb 36, wordmark 16/700, "● online" caption green, credit pill
   "⚡ 250" card/chipline pill, gear), bot-row.tsx (orb 26 top-aligned, gap 6), the bot
   bubble (bot fill, radius 20, bottom-left 8, 14/21), the user bubble (user fill, right,
   bottom-right 8, max 82%), nudge-rows.tsx (card row radius 14, avatar 36, name 16/700,
   caption sub, score chip), offer-buttons.tsx (ONE filled per row, left-aligned, gap 8),
   chat-draft-card.tsx (label caption bold spaced, text box bg/chipline r12, Copy filled
   then outlined pills), chat-composer.tsx ("Message NurtureBot…" card pill, mic card2
   circle, send accentBtn circle), _layout.tsx (Chat · Scan connection 60pt · People),
   scan.tsx (lockup, "Scan a connection", 230 frame 3px accent border, hint, two pills).
   Everything inside the frame is scaled ~0.9 so a 390-wide screen fits a 360 frame. */
.phone {
  width: 100%; max-width: 350px; margin: 0 auto;
  background: var(--phone); border: 6px solid #2a2d38; border-radius: 40px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45); overflow: hidden;
  font-size: 13px; line-height: 1.4; color: var(--text);
}
.phone.large { max-width: 350px; }
.phone .statusbar { height: 36px; display: flex; align-items: center; justify-content: space-between; padding: 0 22px; font-size: 12px; font-weight: 600; color: var(--sub); }
.phone .header { display: flex; align-items: center; gap: 9px; padding: 2px 13px 11px; border-bottom: 1px solid var(--line); }
.phone .header img { width: 32px; height: 32px; border-radius: 50%; }
.phone .header .t { font-weight: 700; font-size: 15px; line-height: 1.2; }
.phone .header .s { font-size: 11px; color: var(--green); }
.phone .creditpill { margin-left: auto; background: var(--card); border: 1px solid var(--chipline); border-radius: var(--r-pill); padding: 7px 11px; font-size: 13px; font-weight: 800; }
.phone .gear { width: 32px; height: 32px; border-radius: 50%; background: var(--card); border: 1px solid var(--chipline); display: grid; place-items: center; color: var(--text); }
.phone .divider { text-align: center; font-size: 11px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: var(--sub); }
.phone .body { background: var(--bg); padding: 12px 12px 10px; display: flex; flex-direction: column; gap: 10px; }
.phone .row { display: flex; gap: 6px; align-items: flex-start; }
.phone .orb { width: 24px; height: 24px; border-radius: 50%; flex: none; }
.phone .msg { padding: 9px 13px; border-radius: 20px; font-size: 13px; line-height: 19px; }
.phone .bot { background: var(--bot); border-bottom-left-radius: 8px; flex: 1; min-width: 0; }
.phone .user { background: var(--user); color: #fff; align-self: flex-end; border-bottom-right-radius: 8px; max-width: 82%; }
.phone .btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.phone .btns span { display: inline-flex; align-items: center; padding: 8px 13px; border-radius: var(--r-pill); font-size: 12.5px; font-weight: 700; line-height: 1.2; }
.phone .btns .f { background: var(--accentbtn); color: #fff; }
.phone .btns .o { border: 1px solid var(--accent); color: var(--accent); }
.phone .btns .c { background: var(--chip); border: 1px solid var(--chipline); color: var(--text); }
.phone .btns .c em { font-style: normal; color: var(--sub); font-weight: 600; }
.phone .nrow { background: var(--card); border: 1px solid var(--chipline); border-radius: var(--r-item); padding: 9px 11px; display: flex; align-items: center; gap: 8px; }
.phone .nrow + .nrow { margin-top: 6px; }
.phone .nrow img, .phone .nrow .ini { width: 34px; height: 34px; border-radius: 50%; flex: none; object-fit: cover; }
.phone .nrow .ini { display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #f0689b, #a44df0); }
.phone .nrow .n { font-weight: 700; font-size: 14px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phone .nrow .d { font-size: 11px; color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phone .nrow .grow { flex: 1; min-width: 0; }
.phone .score { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: var(--r-pill); background: rgba(63, 208, 132, .17); color: var(--green); flex: none; }
.phone .score.gray { background: rgba(140, 148, 168, .17); color: var(--gray); }
.phone .chev { color: var(--sub); flex: none; }
.phone .why { font-size: 11px; line-height: 16px; color: var(--sub); margin-top: 8px; }
.phone .ccard { background: var(--card); border: 1px solid var(--chipline); border-radius: var(--r-card); padding: 11px; width: 88%; }
.phone .ccard .label { font-size: 10.5px; font-weight: 700; letter-spacing: .5px; color: var(--sub); text-transform: uppercase; margin-bottom: 8px; }
.phone .ccard .draft { background: var(--bg); border: 1px solid var(--chipline); border-radius: var(--r-input); padding: 9px 11px; font-size: 13px; line-height: 19px; }
.phone .ccard .tweak { border-top: 1px solid var(--chipline); margin-top: 10px; padding-top: 8px; }
.phone .meta { font-size: 11px; color: var(--sub); margin-top: 8px; }
.phone .dock { display: flex; justify-content: space-between; padding: 6px 14px; font-size: 11px; font-weight: 600; color: var(--sub); background: var(--bg); }
.phone .dock b { color: var(--accent); }
.phone .composer { display: flex; gap: 8px; align-items: center; padding: 9px 12px 10px; border-top: 1px solid var(--line); background: var(--phone); }
.phone .composer .box { flex: 1; background: var(--card); border: 1px solid var(--chipline); border-radius: var(--r-pill); padding: 9px 14px; color: var(--sub); font-size: 13px; }
.phone .composer .mic { width: 36px; height: 36px; border-radius: 50%; background: var(--card2); border: 1.5px solid var(--chipline); display: grid; place-items: center; color: var(--accent); flex: none; }
.phone .composer .send { width: 36px; height: 36px; border-radius: 50%; background: var(--accentbtn); display: grid; place-items: center; color: #fff; flex: none; }
.phone .tabs { display: flex; align-items: flex-end; justify-content: space-around; padding: 8px 10px 14px; border-top: 1px solid var(--chipline); background: var(--phone); }
.phone .tab { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 600; color: var(--sub); padding: 6px 14px; border-radius: 16px; min-width: 76px; border: 1.5px solid transparent; }
.phone .tab.on { color: var(--accent); background: rgba(125, 162, 255, .2); border-color: var(--accent); }
.phone .scantab { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.phone .scanbig { width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, var(--accentbtn), var(--accentbtn2)); box-shadow: 0 6px 18px rgba(59, 108, 240, .5); display: grid; place-items: center; color: #fff; }
.phone .scanlabel { font-size: 10.5px; font-weight: 700; color: var(--accent); }
.phone .scanbig.on { border: 3px solid var(--accent); box-shadow: 0 6px 22px rgba(59, 108, 240, .7); }
/* a full page (layout L03: grabber, title + Done, body; settings groups of rows) */
.phone .page { background: var(--bg); padding: 0 14px 16px; }
.phone .grabber { width: 38px; height: 5px; border-radius: 3px; background: var(--chipline); margin: 6px auto 12px; }
.phone .pagehead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.phone .pagehead .pt { font-size: 18px; font-weight: 700; }
.phone .pagehead .link { color: var(--accent); font-size: 14px; font-weight: 600; }
.phone .explain { font-size: 12px; line-height: 17px; color: var(--sub); margin-bottom: 14px; }
.phone .sgroup { background: var(--card); border-radius: var(--r-card); overflow: hidden; }
.phone .srow { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border-bottom: 1px solid var(--line); }
.phone .srow:last-child { border-bottom: 0; }
.phone .srow .n { font-size: 13.5px; font-weight: 600; }
.phone .srow .d { font-size: 11px; color: var(--sub); margin-top: 2px; }
.phone .srow .grow { flex: 1; min-width: 0; }
.phone .state { font-size: 12px; font-weight: 700; color: var(--accent); flex: none; }
.phone .state.green { color: var(--green); }
/* the People tab (people.tsx segmented control, filter-bar.tsx, all-view.tsx rows),
   the Lists view (list-row.tsx), the Events view (events/list.tsx month card + rows) */
.phone .seg { display: flex; background: var(--card2); border-radius: var(--r-sm); padding: 3px; margin: 10px 12px 8px; }
.phone .seg span { flex: 1; text-align: center; font-size: 11.5px; font-weight: 600; color: var(--sub); padding: 6px 0; border-radius: 8px; }
.phone .seg span.on { background: var(--accentbtn); color: #fff; }
.phone .list { background: var(--bg); padding: 4px 12px 12px; display: flex; flex-direction: column; gap: 8px; }
.phone .search { display: flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--chipline); border-radius: var(--r-input); padding: 8px 11px; font-size: 12px; color: var(--sub); }
.phone .dashed { border: 1.5px dashed var(--accent); border-radius: var(--r-input); padding: 10px; text-align: center; color: var(--accent); font-weight: 700; font-size: 13px; }
.phone .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.phone .chips span { border: 1.5px solid var(--accent); border-radius: var(--r-pill); padding: 6px 11px; font-size: 12px; font-weight: 700; color: var(--accent); }
.phone .chips span.on { background: var(--accentbtn); border-color: var(--accentbtn); color: #fff; }
.phone .chips span.gray { border-color: var(--chipline); background: var(--chip); color: var(--text); font-weight: 600; }
.phone .tipline { display: flex; gap: 8px; align-items: flex-start; font-size: 11px; line-height: 15px; color: var(--sub); background: var(--card2); border: 1px solid var(--chipline); border-radius: var(--r-input); padding: 9px 11px; }
.phone .tipline b { margin-left: auto; font-weight: 600; color: var(--sub); }
.phone .countrow { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--sub); padding: 2px 2px; }
.phone .countrow b { color: var(--accent); font-weight: 600; }
.phone .item { background: var(--card); border-radius: var(--r-item); padding: 10px 12px; display: flex; align-items: center; gap: 10px; }
.phone .item.flat { background: none; padding: 6px 4px; }
.phone .item.flat .n { font-size: 15px; font-weight: 700; }
.phone .item img, .phone .item .ini { width: 40px; height: 40px; border-radius: 50%; flex: none; object-fit: cover; }
.phone .item .ini { display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #f0689b, #a44df0); }
.phone .item .emo { font-size: 20px; min-width: 28px; }
.phone .item .n { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phone .item .d { font-size: 11px; color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phone .item .d.acc { color: var(--accent); }
.phone .item .grow { flex: 1; min-width: 0; }
.phone .item.linked { background: var(--card2); }
.phone .score.yellow { background: rgba(245, 185, 66, .18); color: var(--yellow); }
.phone .cal { background: var(--card); border-radius: var(--r-card); padding: 10px 12px; }
.phone .cal .top { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 700; }
.phone .cal .top small { display: block; font-size: 10px; font-weight: 500; color: var(--sub); }
.phone .cal .top span { width: 30px; height: 30px; border-radius: 50%; background: var(--card2); border: 1px solid var(--chipline); display: inline-grid; place-items: center; color: var(--accent); font-size: 13px; font-weight: 700; }
.phone .cal .top .btns2 { display: flex; gap: 6px; }
.phone .cal .grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; margin-top: 8px; text-align: center; font-size: 10px; }
.phone .cal .grid i { font-style: normal; color: var(--sub); font-size: 9px; }
.phone .cal .grid span { padding: 3px 0; border-radius: 6px; }
.phone .cal .grid span.ev { font-weight: 800; background: var(--card2); }
.phone .cal .grid span.today { background: var(--accentbtn); color: #fff; font-weight: 700; }
.phone .hook { font-size: 11px; font-weight: 600; margin-top: 2px; }
.phone .hook.red { color: #ff8a7a; }
.phone .hook.yellow { color: var(--yellow); }
.phone .hook.green { color: var(--green); }
/* the thank-you card (event-invite-roster-card.tsx, mode thanks) */
.phone .tcard { border-left: 3px solid var(--accent); padding-left: 10px; }
.phone .tcard .tt { font-weight: 700; font-size: 13px; }
.phone .tcard .tm { font-size: 11px; color: var(--sub); margin-top: 2px; }
.phone .draftcard { background: var(--card); border: 1px solid var(--chipline); border-radius: var(--r-input); padding: 9px 10px; margin-top: 8px; }
.phone .draftcard .label { font-size: 10px; font-weight: 700; letter-spacing: .5px; color: var(--sub); text-transform: uppercase; display: flex; justify-content: space-between; margin-bottom: 6px; }
.phone .draftcard .draft { background: var(--bg); border: 1px solid var(--chipline); border-radius: 10px; padding: 8px 10px; font-size: 12px; line-height: 17px; white-space: pre-line; }
.phone .draftcard .cap { font-size: 10.5px; color: var(--sub); margin-top: 6px; }
.phone .prow { background: var(--card); border: 1px solid var(--chipline); border-radius: var(--r-item); padding: 8px 10px; display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.phone .prow .ini, .phone .prow img { width: 30px; height: 30px; border-radius: 50%; flex: none; object-fit: cover; }
.phone .prow .ini { display: grid; place-items: center; font-size: 10px; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--accentbtn), var(--accent)); }
.phone .prow .n { font-size: 13px; font-weight: 700; }
.phone .prow .d { font-size: 10.5px; color: var(--sub); }
.phone .prow .box { width: 18px; height: 18px; border-radius: 7px; border: 1.5px solid var(--chipline); margin-left: auto; flex: none; }
.phone .prow .box.on { background: var(--accentbtn); border-color: var(--accentbtn); }
.phone .exit { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.phone .exit .del { color: var(--destructive); font-size: 12px; font-weight: 600; }
/* the Scan tab */
.phone .scan { background: var(--bg); padding: 14px 18px 16px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.phone .scan .lockup { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 800; letter-spacing: .2px; }
.phone .scan .lockup img { width: 26px; height: 26px; border-radius: 50%; }
.phone .scan .title { font-size: 15px; font-weight: 700; }
.phone .scan .frame { width: 200px; height: 200px; border-radius: 24px; border: 3px solid var(--accent); background: linear-gradient(160deg, var(--card2), var(--card)); position: relative; overflow: hidden; display: grid; place-items: center; }
.phone .scan .frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phone .scan .frame .line { position: absolute; left: 10px; right: 10px; top: 42%; height: 2px; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.phone .scan .hrow { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; }
.phone .scan .hash { width: 24px; height: 24px; border-radius: 6px; border: 1.5px solid var(--accent); color: var(--accent); display: grid; place-items: center; font-size: 13px; }
.phone .scan .hint { font-size: 13px; line-height: 19px; color: var(--sub); max-width: 260px; }
.phone .scan .pills { display: flex; gap: 6px; width: 100%; margin-top: 4px; }
.phone .scan .pills span { flex: 1; background: var(--card2); border: 1.5px solid var(--gray); border-radius: var(--r-pill); padding: 10px 12px; font-size: 13px; font-weight: 600; }

/* ---------- long-form pages (privacy, terms, support) ---------- */
.doc { padding: 40px 0 72px; }
.doc h1 { font-size: var(--heading); margin-bottom: var(--md); }
.doc .meta { color: var(--sub); font-size: var(--caption); margin-bottom: 28px; }
.doc h2 { font-size: var(--title); margin: 36px 0 var(--lg); }
.doc h3 { font-size: var(--name); margin: var(--jumbo) 0 var(--sm); }
.doc p, .doc li { margin-bottom: var(--xl); color: var(--text); }
.doc ul, .doc ol { padding-left: 22px; }
.doc .short, .doc .callout { background: var(--card); border: 1px solid var(--chipline); border-radius: var(--r-card); padding: var(--xxxl) var(--jumbo); margin: var(--jumbo) 0 28px; }
.doc .short p:last-child, .doc .callout p:last-child { margin-bottom: 0; }
.doc table { width: 100%; border-collapse: collapse; margin: var(--xxl) 0 var(--giant); font-size: 14px; }
.doc th, .doc td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { color: var(--sub); font-size: var(--caption); text-transform: uppercase; letter-spacing: .06em; }
.doc .tablewrap { overflow-x: auto; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--sub); font-size: 14px; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: var(--xxl) 28px; align-items: center; }
.footer .links { display: flex; gap: var(--jumbo); flex-wrap: wrap; }
.footer .links a { color: var(--sub); font-weight: 600; }
.footer .links a:hover { color: var(--text); }
.footer .spacer { flex: 1; }
