/* ══════════════════════════════════════════════════════════════════════════
   STACKMATE — shared web design system
   Loaded by every page. Tokens mirror mobile/lib/core/theme/app_theme.dart.

   Three families live here, deliberately in one file:
     · marketing   — nav, hero, sections, bento, footer   (index, pricing)
     · document    — .page / .prose / .toc                (support, privacy,
                                                           terms, delete-account)
     · card        — .card / .action / .field             (account, onboarding,
                                                           mcp-auth)
   One file means one HTTP request, one cache entry, and one place to change a
   colour. The families share tokens, buttons, and the nav; splitting them
   would duplicate all three.

   NAMING NOTE — the marketing layer avoids `.step`, `.badge` and `.progress`
   because delete-account and onboarding already own those names. It uses
   `.flow-step`, `.pill` and `.scroll-progress` instead.
   ══════════════════════════════════════════════════════════════════════════ */

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

:root {
  --bg:            #F7F7F8;
  --surface:       #FFFFFF;
  --surface-alt:   #F2F2F4;
  --border:        #E8E8E8;
  --border-strong: #D4D4D8;
  --accent:        #4F46E5;
  --accent-h:      #4338CA;
  --accent-s:      rgba(79,70,229,0.08);
  --accent-sb:     rgba(79,70,229,0.16);
  --success:       #059669;
  --ok:            #059669;
  --warning:       #F59E0B;
  --error:         #DC2626;
  --text:          #111111;
  --text-2:        #6B7280;
  --text-3:        #9CA3AF;
  --ink:           #0B0B0C;
  --sans:          'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:          'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

  --ease:          cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out:      cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h:         68px;
}

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-h); }
::selection { background: rgba(79,70,229,0.18); color: var(--text); }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ─────────────────────────────── Type primitives ───────────────────────── */

.mono { font-family: var(--mono); }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--text-3);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
/* The rule the marketing pages add; document and card pages want the label
   without it, which is why the line is opt-in rather than baked into
   .eyebrow itself. */
.eyebrow.lined::before {
  content: '';
  width: 18px; height: 1px;
  background: var(--border-strong);
  flex-shrink: 0;
}
.eyebrow.accent { color: var(--accent); }
.eyebrow.accent.lined::before { background: currentColor; opacity: 0.5; }
.eyebrow.on-ink { color: rgba(255,255,255,0.42); }
.eyebrow.on-ink.lined::before { background: rgba(255,255,255,0.22); }

.container       { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.container-tight { max-width: 1080px; margin: 0 auto; padding: 0 28px; }

/* Grid backdrop — echoes the three-block logo construction grid. */
.gridfield {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(17,17,17,0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(17,17,17,0.045) 1px, transparent 1px);
  background-size: 68px 68px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 20%, #000 20%, transparent 78%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 20%, #000 20%, transparent 78%);
  pointer-events: none;
}
.gridfield.on-ink {
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.055) 1px, transparent 1px);
}

/* ══════════════════════════════════ NAV ═══════════════════════════════════ */

.nav-wrap {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  padding: 14px 0 0;
  transition: padding 0.4s var(--ease);
}
.nav-shell {
  max-width: 1200px; margin: 0 auto;
  height: var(--nav-h);
  padding: 0 10px 0 14px;
  display: flex; align-items: center; gap: 22px;
  border: 1px solid transparent;
  border-radius: 18px;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease),
              box-shadow 0.4s var(--ease), height 0.4s var(--ease), max-width 0.4s var(--ease);
}
body.scrolled .nav-wrap { padding-top: 10px; }
body.scrolled .nav-shell {
  max-width: 1080px;
  height: 58px;
  background: rgba(247,247,248,0.72);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  backdrop-filter: blur(20px) saturate(1.6);
  border-color: rgba(17,17,17,0.07);
  box-shadow: 0 10px 30px -14px rgba(17,17,17,0.18);
}

.nav-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; color: inherit; }
.nav-logo:hover { color: inherit; }
.nav-logo svg { display: block; }
.nav-logo:hover .sm-block-top { transform: translate(2px, -2px); }
.sm-block-top { transition: transform 0.45s var(--ease); transform-origin: center; }
.nav-wordmark {
  font-weight: 800; font-size: 17.5px; letter-spacing: -0.05em;
  color: var(--text); line-height: 1;
}

.nav-links { list-style: none; display: flex; gap: 4px; flex: 1; }
.nav-links a {
  position: relative;
  display: inline-block;
  font-size: 14px; font-weight: 500; color: var(--text-2);
  padding: 8px 12px; border-radius: 9px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav-links a::after {
  content: '';
  position: absolute; left: 12px; right: 12px; bottom: 4px;
  height: 1.5px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after,
.nav-links a.is-active::after { transform: scaleX(1); }
.nav-links a.is-active { color: var(--text); }

.nav-cta { display: flex; gap: 8px; align-items: center; }
.nav-signin {
  font-size: 14px; font-weight: 500; color: var(--text-2);
  white-space: nowrap; padding: 8px 12px; border-radius: 9px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav-signin:hover { color: var(--text); background: var(--surface-alt); }

.nav-toggle {
  display: none;
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border);
  align-items: center; justify-content: center; cursor: pointer;
  flex-direction: column; gap: 4px;
}
.nav-toggle span {
  display: block; width: 15px; height: 1.5px; background: var(--text);
  border-radius: 2px; transition: transform 0.35s var(--ease), opacity 0.2s;
}
body.menu-open .nav-toggle span:nth-child(1) { transform: translateY(2.75px) rotate(45deg); }
body.menu-open .nav-toggle span:nth-child(2) { transform: translateY(-2.75px) rotate(-45deg); }

.nav-drawer {
  position: fixed; inset: 0; z-index: 190;
  background: var(--bg);
  padding: 96px 28px 40px;
  display: flex; flex-direction: column; gap: 6px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
  overflow-y: auto;
}
body.menu-open .nav-drawer { opacity: 1; visibility: visible; transform: none; }
.nav-drawer a.drawer-link {
  font-size: 26px; font-weight: 700; letter-spacing: -0.04em; color: var(--text);
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.nav-drawer .drawer-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 26px; }

.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; z-index: 210;
  background: var(--accent); width: 0;
  transition: width 0.1s linear;
}

/* ─── Sub-page nav (document + card pages) ───────────────────────────────── */

.subnav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247,247,248,0.90);
  -webkit-backdrop-filter: blur(14px) saturate(1.5);
  backdrop-filter: blur(14px) saturate(1.5);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 880px; margin: 0 auto; padding: 0 20px;
  height: 60px; display: flex; align-items: center; gap: 12px;
}
.nav-inner .nav-wordmark { font-size: 16.5px; }

/* Icon-only "go back" control, always the first thing in the sub-page nav so
   it lands in the top-left corner the way a native back affordance does.
   ui.js wires it to history when the previous page was ours, and falls back to
   the href (home) when the tab was opened cold on this URL. */
.nav-back {
  flex-shrink: 0;
  width: 36px; height: 36px; border-radius: 11px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-2); cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.3s var(--ease);
}
.nav-back:hover {
  color: var(--text); border-color: var(--border-strong);
  transform: translateX(-2px);
}
.nav-back svg { display: block; }
.nav-inner .lang-toggle { margin-left: auto; }

/* ═══════════════════════════════ BUTTONS ══════════════════════════════════ */

.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-weight: 600; line-height: 1;
  border: none; cursor: pointer; white-space: nowrap;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
              background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
  overflow: hidden;
}
.btn:active { transform: translateY(0) scale(0.985); }
.icon { flex-shrink: 0; }

.btn-sm { height: 38px; padding: 0 15px; font-size: 13px; border-radius: 11px; }
.btn-md { height: 46px; padding: 0 19px; font-size: 14px; border-radius: 13px; }
.btn-lg { height: 54px; padding: 0 24px; font-size: 15px; border-radius: 15px; }

.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 1px 2px rgba(17,17,17,0.12); }
.btn-primary::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0));
  opacity: 0; transition: opacity 0.3s var(--ease);
}
.btn-primary:hover {
  color: #fff; background: var(--accent-h);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -10px rgba(79,70,229,0.55);
}
.btn-primary:hover::before { opacity: 1; }

.btn-secondary {
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border); box-shadow: 0 1px 2px rgba(17,17,17,0.04);
}
.btn-secondary:hover {
  color: var(--text); border-color: var(--border-strong);
  transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(17,17,17,0.24);
}
.btn-dark { background: var(--text); color: #fff; }
.btn-dark:hover { color: #fff; background: #000; transform: translateY(-2px); box-shadow: 0 14px 28px -12px rgba(17,17,17,0.45); }
.btn-white { background: #fff; color: var(--text); }
.btn-white:hover { color: var(--text); background: #F0F0F1; transform: translateY(-2px); box-shadow: 0 14px 28px -12px rgba(0,0,0,0.5); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { color: var(--text); }
.btn-outline-w { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.24); }
.btn-outline-w:hover { color: #fff; border-color: rgba(255,255,255,0.55); transform: translateY(-2px); }

.btn-arrow { transition: transform 0.4s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(3px); }

.lang-toggle {
  height: 36px; padding: 0 12px;
  background: transparent; color: var(--text-2);
  border: 1px solid var(--border); border-radius: 11px;
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  letter-spacing: 0.4px; cursor: pointer;
  transition: all 0.25s var(--ease);
}
.lang-toggle:hover { border-color: var(--border-strong); color: var(--text); background: var(--surface); }

.store-chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 54px; padding: 0 22px; border-radius: 15px;
  font-family: var(--sans); font-weight: 500; font-size: 14px;
  background: transparent; color: var(--text-3);
  border: 1px dashed var(--border-strong);
  cursor: default; white-space: nowrap;
}
.store-chip-sm { height: 46px; padding: 0 18px; font-size: 13px; border-radius: 13px; }

/* ═══════════════════════════════ REVEAL ═══════════════════════════════════ */

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal="scale"] { transform: translateY(28px) scale(0.975); }
[data-reveal="left"]  { transform: translateX(-22px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .marquee-track { animation: none !important; }
  .pulse { animation: none !important; }
  .float-card { animation: none !important; }
}

/* ════════════════════════════════ HERO ════════════════════════════════════ */

.hero {
  position: relative;
  padding: calc(var(--nav-h) + 78px) 0 0;
  overflow: hidden;
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto; padding: 0 28px;
  display: grid; grid-template-columns: 1.06fr 0.94fr; gap: 40px;
  align-items: center;
}
.hero-text { padding-bottom: 40px; max-width: 620px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--surface); color: var(--accent);
  border: 1px solid var(--accent-sb);
  border-radius: 99px; padding: 6px 14px 6px 11px;
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.7px; text-transform: uppercase;
  margin-bottom: 28px;
  box-shadow: 0 6px 18px -10px rgba(79,70,229,0.5);
}
.pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0;
  animation: pulse 2.4s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(79,70,229,0.45);
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(79,70,229,0.45); opacity: 1; }
  70%  { box-shadow: 0 0 0 7px rgba(79,70,229,0); opacity: 0.75; }
  100% { box-shadow: 0 0 0 0 rgba(79,70,229,0); opacity: 1; }
}

.hero h1 {
  font-size: clamp(42px, 5.6vw, 78px);
  font-weight: 800; letter-spacing: -0.05em; line-height: 0.98;
  margin-bottom: 26px; text-wrap: balance;
}
.hero h1 em { font-style: italic; color: var(--accent); font-weight: 800; }

.hero-sub {
  font-size: 17.5px; color: var(--text-2); line-height: 1.6;
  margin-bottom: 34px; max-width: 490px; text-wrap: pretty;
}
.hero-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 30px; }
.hero-secondary-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 34px; }

.hero-trust {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font-size: 11.5px; font-family: var(--mono); color: var(--text-3);
  letter-spacing: 0.7px; text-transform: uppercase;
  padding-top: 26px; border-top: 1px solid var(--border);
}
.tdot { width: 3px; height: 3px; border-radius: 50%; background: var(--border-strong); flex-shrink: 0; }

/* ─── Phone mock ─── */
.hero-visual {
  position: relative;
  display: flex; justify-content: center; align-items: center;
  min-height: 660px;
}
.phone-scene {
  position: relative;
  transform: perspective(1600px) rotateY(-13deg) rotateX(4deg) translateZ(0);
  transition: transform 0.9s var(--ease);
  filter: drop-shadow(0 50px 80px rgba(17,17,17,0.20)) drop-shadow(0 10px 20px rgba(17,17,17,0.07));
  will-change: transform;
}
.phone-shell {
  width: 296px; background: #0B0B0D; border-radius: 50px; padding: 12px;
  position: relative;
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.10);
}
.phone-screen {
  background: var(--bg); border-radius: 39px; overflow: hidden;
  min-height: 592px; display: flex; flex-direction: column;
}
.phone-notch {
  position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 27px; background: #0B0B0D; border-radius: 20px; z-index: 10;
}
.pstatus {
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: 12px 20px 6px; height: 50px; flex-shrink: 0;
}
.pstatus-time { font-size: 13px; font-weight: 600; color: var(--text); line-height: 1; }
.pstatus-icons { display: flex; gap: 4px; align-items: center; }
.pappbar { display: flex; align-items: center; padding: 6px 16px 10px; flex-shrink: 0; }
.pappbar-label {
  font-family: var(--mono); font-size: 9px; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--text-3);
}
.pappbar-icon {
  margin-left: auto; width: 28px; height: 28px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
}
.pcard {
  margin: 0 10px 10px; background: var(--surface); border-radius: 18px;
  border: 1px solid var(--border); overflow: hidden; flex: 1;
  display: flex; flex-direction: column;
  box-shadow: 0 6px 20px -10px rgba(17,17,17,0.14);
}
.pcard-header {
  padding: 10px 12px; background: var(--bg); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 6px; flex-shrink: 0;
}
.pchip {
  font-family: var(--mono); font-size: 9px; font-weight: 500; letter-spacing: 0.5px;
  text-transform: uppercase; padding: 4px 7px; border-radius: 6px; line-height: 1;
}
.pchip-accent { background: var(--accent-s); color: var(--accent); }
.pchip-ghost  { background: var(--surface); color: var(--text-2); border: 1px solid var(--border); }
.pchip-rep    { display: inline-flex; align-items: center; gap: 4px; background: rgba(245,158,11,0.12); color: #B45309; font-family: var(--mono); font-size: 9px; font-weight: 600; padding: 4px 7px; border-radius: 6px; line-height: 1; }
.pcard-body { padding: 12px; flex: 1; display: flex; flex-direction: column; gap: 11px; }
.pavatar {
  width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(135deg, #6E63F8 0%, #4F46E5 100%);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 12px; letter-spacing: -0.3px; flex-shrink: 0;
}
.pname { font-weight: 700; font-size: 14px; letter-spacing: -0.3px; line-height: 1.2; color: var(--text); }
.ploc { font-size: 10px; color: var(--text-2); margin-top: 1px; }
.pproject { background: var(--bg); border: 1px solid var(--border); border-radius: 11px; padding: 10px; }
.pproject-lbl {
  font-family: var(--mono); font-size: 8px; letter-spacing: 1px;
  text-transform: uppercase; color: var(--text-3); margin-bottom: 3px;
}
.pproject-name { font-weight: 700; font-size: 12px; letter-spacing: -0.2px; margin-bottom: 2px; }
.pproject-desc { font-size: 10px; color: var(--text-2); line-height: 1.45; }
.plabel {
  font-family: var(--mono); font-size: 8px; letter-spacing: 1px;
  text-transform: uppercase; color: var(--text-3); margin-bottom: 5px;
}
.pskills { display: flex; gap: 4px; flex-wrap: wrap; }
.pskill {
  font-family: var(--mono); font-size: 8px; letter-spacing: 0.4px; text-transform: uppercase;
  padding: 4px 6px; border-radius: 6px; font-weight: 500; line-height: 1;
}
.pskill-dark  { background: var(--text); color: #fff; }
.pskill-light { background: var(--surface); color: var(--text-2); border: 1px solid var(--border); }
.pcard-actions {
  padding: 10px 12px; border-top: 1px solid var(--border);
  display: flex; gap: 7px; flex-shrink: 0;
}
.paction {
  flex: 1; height: 34px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 8px; letter-spacing: 0.6px;
  text-transform: uppercase; font-weight: 600;
}
.paction-pass    { background: var(--bg); color: var(--text-2); border: 1px solid var(--border); }
.paction-connect { background: var(--accent); color: #fff; }
.phone-home { height: 26px; display: flex; align-items: center; justify-content: center; background: var(--bg); flex-shrink: 0; }
.home-bar { width: 100px; height: 4px; border-radius: 99px; background: rgba(0,0,0,0.20); }

.float-card {
  position: absolute;
  background: rgba(255,255,255,0.86);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgba(17,17,17,0.07);
  border-radius: 18px;
  box-shadow: 0 24px 50px -20px rgba(17,17,17,0.28), 0 2px 6px rgba(17,17,17,0.04);
}
.fc-score-card {
  right: -34px; top: 16%;
  padding: 16px 18px; min-width: 196px;
  animation: float 8s ease-in-out infinite;
}
.fc-verified {
  left: -48px; bottom: 15%;
  padding: 13px 16px;
  display: flex; align-items: center; gap: 11px;
  animation: float 9s ease-in-out 1.2s infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
.fc-label {
  font-family: var(--mono); font-size: 9px; letter-spacing: 1.1px;
  text-transform: uppercase; color: var(--text-3); margin-bottom: 10px;
}
.fc-score {
  font-size: 42px; font-weight: 800; letter-spacing: -0.05em;
  color: var(--text); line-height: 1; margin-bottom: 12px;
}
.fc-unit {
  font-family: var(--mono); font-size: 10px; letter-spacing: 1px;
  text-transform: uppercase; color: var(--text-3); font-weight: 500;
  margin-left: 7px; letter-spacing: 0.9px;
}
.fc-bars { display: flex; flex-direction: column; gap: 7px; }
.fc-bar-row { display: flex; align-items: center; gap: 8px; }
.fc-bar-key { font-size: 10px; color: var(--text-2); width: 68px; flex-shrink: 0; }
.fc-bar-track { flex: 1; height: 3px; background: var(--border); border-radius: 2px; overflow: hidden; }
.fc-bar-fill {
  height: 100%; background: var(--accent); border-radius: 2px;
  width: 0; transition: width 1.4s var(--ease-out); transition-delay: var(--d, 0ms);
}
.in .fc-bar-fill { width: var(--w); }
.fc-tick {
  width: 32px; height: 32px; border-radius: 10px; background: var(--accent);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.fc-verified-title { font-size: 13px; font-weight: 700; letter-spacing: -0.2px; }
.fc-verified-sub { font-family: var(--mono); font-size: 9px; letter-spacing: 0.8px; text-transform: uppercase; color: var(--text-3); margin-top: 2px; }

/* ══════════════════════════════ MARQUEE ═══════════════════════════════════ */

.marquee {
  margin-top: 64px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex; align-items: center; gap: 44px;
  padding: 16px 0; width: max-content;
  animation: marquee 34s linear infinite;
}
.marquee-item {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 1.3px;
  text-transform: uppercase; color: var(--text-3); white-space: nowrap;
}
.marquee-item svg { opacity: 0.65; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ══════════════════════════ SECTION SHELL ═════════════════════════════════ */

.section { padding: 128px 0; position: relative; }
.section-sm { padding: 88px 0; }
.section-head { max-width: 780px; margin-bottom: 64px; }
.section-head h2 {
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 800; letter-spacing: -0.045em; line-height: 1.02;
  margin: 8px 0 18px; text-wrap: balance;
}
.section-head p {
  font-size: 16.5px; color: var(--text-2); line-height: 1.65;
  max-width: 580px; text-wrap: pretty;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center p { margin-left: auto; margin-right: auto; }
.on-ink .section-head h2 { color: #fff; }
.on-ink .section-head p { color: rgba(255,255,255,0.52); }

/* ═════════════════════════ HOW IT WORKS ═══════════════════════════════════ */

.hiw { background: var(--bg); }
.hiw-layout { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 72px; align-items: start; }
.hiw-sticky { position: sticky; top: 132px; }
.hiw-note {
  margin-top: 36px; padding: 20px;
  border: 1px solid var(--border); border-radius: 18px; background: var(--surface);
}
.hiw-note-k { font-family: var(--mono); font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--text-3); margin-bottom: 8px; }
.hiw-note-v { font-size: 14px; color: var(--text-2); line-height: 1.6; text-wrap: pretty; }

.flow { display: flex; flex-direction: column; gap: 18px; }
.flow-step {
  position: relative;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 24px; padding: 32px 34px;
  display: grid; grid-template-columns: 56px 1fr; gap: 22px;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.4s var(--ease);
}
.flow-step:nth-child(2) { margin-left: 34px; }
.flow-step:nth-child(3) { margin-left: 68px; }
.flow-step:hover {
  transform: translateY(-4px);
  border-color: var(--accent-sb);
  box-shadow: 0 26px 46px -26px rgba(17,17,17,0.30);
}
.flow-index {
  font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 1px;
  color: var(--accent); padding-top: 6px;
}
.flow-icon {
  width: 46px; height: 46px; border-radius: 14px;
  background: var(--accent-s); display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  transition: background 0.4s var(--ease), transform 0.5s var(--ease);
}
.flow-step:hover .flow-icon { background: var(--accent); transform: rotate(-6deg) scale(1.04); }
.flow-step:hover .flow-icon svg { stroke: #fff; }
.flow-icon svg { transition: stroke 0.4s var(--ease); }
.flow-step h3 { font-size: 21px; font-weight: 700; letter-spacing: -0.035em; margin-bottom: 10px; line-height: 1.15; }
.flow-step p { font-size: 14.5px; color: var(--text-2); line-height: 1.65; text-wrap: pretty; }

/* ═══════════════════════════ FEATURES (bento) ═════════════════════════════ */

.features { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.feat {
  position: relative; overflow: hidden;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 26px; padding: 36px;
  display: flex; flex-direction: column;
  grid-column: span 3;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.4s var(--ease);
}
.feat:hover {
  transform: translateY(-5px);
  border-color: var(--accent-sb);
  box-shadow: 0 30px 56px -30px rgba(17,17,17,0.32);
}
.feat-icon {
  width: 46px; height: 46px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 22px;
  transition: transform 0.5s var(--ease);
}
.feat:hover .feat-icon { transform: translateY(-2px) rotate(-5deg); }
.fi-accent  { background: var(--accent-s); }
.fi-dark    { background: var(--text); }
.fi-green   { background: rgba(5,150,105,0.09); }
.fi-neutral { background: var(--surface); border: 1px solid var(--border); }
.feat h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.04em; margin-bottom: 10px; }
.feat p  { font-size: 14.5px; color: var(--text-2); line-height: 1.65; max-width: 420px; text-wrap: pretty; }
.feat-tag {
  align-self: flex-start; margin-top: auto; padding-top: 22px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.8px; text-transform: uppercase;
  color: var(--accent); font-weight: 500;
}
.feat-visual { margin-top: 26px; }

/* `.pill` and not `.badge`: delete-account.html already owns `.badge`. */
.pill-row { display: flex; gap: 8px; flex-wrap: wrap; }
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.7px; text-transform: uppercase;
  padding: 7px 11px; border-radius: 8px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-2);
  white-space: nowrap;
}
.pill.ok { color: var(--success); border-color: rgba(5,150,105,0.22); }

/* Key → value list, for showing profile fields as they appear on a card. */
.spec-rows { display: flex; flex-direction: column; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.spec-row { display: flex; align-items: baseline; gap: 12px; padding: 10px 14px; background: var(--surface); }
.spec-k {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 1px;
  text-transform: uppercase; color: var(--text-3);
  width: 104px; flex-shrink: 0;
}
.spec-v { font-size: 13px; font-weight: 600; letter-spacing: -0.01em; color: var(--text); }

.review-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.review-chip { border: 1px solid var(--border); border-radius: 14px; padding: 13px; background: var(--surface); }
.review-chip.locked { background: repeating-linear-gradient(135deg, var(--surface) 0 8px, var(--surface-alt) 8px 9px); }
.review-who { font-family: var(--mono); font-size: 9px; letter-spacing: 1px; text-transform: uppercase; color: var(--text-3); margin-bottom: 8px; }
.review-state { font-size: 13px; font-weight: 600; letter-spacing: -0.2px; display: flex; align-items: center; gap: 7px; }
.review-state.ok { color: var(--success); }
.review-state.wait { color: var(--text-3); }

.slot-row { display: flex; gap: 8px; }
.slot {
  flex: 1; border: 1px solid var(--border); border-radius: 12px; padding: 11px 8px;
  background: var(--surface); text-align: center;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), transform 0.3s var(--ease);
}
.slot:hover { border-color: var(--accent); transform: translateY(-2px); }
.slot.sel { background: var(--accent); border-color: var(--accent); }
.slot-d { font-family: var(--mono); font-size: 9px; letter-spacing: 0.8px; text-transform: uppercase; color: var(--text-3); }
.slot.sel .slot-d { color: rgba(255,255,255,0.65); }
.slot-t { font-size: 13px; font-weight: 700; letter-spacing: -0.2px; margin-top: 3px; }
.slot.sel .slot-t { color: #fff; }

/* ══════════════════════════════ COMPARE ═══════════════════════════════════ */

.compare { background: var(--bg); }
.compare-table { border: 1px solid var(--border); border-radius: 26px; overflow: hidden; background: var(--surface); }
.compare-row { display: grid; grid-template-columns: 1.25fr 1fr 1fr; border-bottom: 1px solid var(--border); }
.compare-row:last-child { border-bottom: none; }
.compare-row:not(:first-child) { transition: background 0.3s var(--ease); }
.compare-row:not(:first-child):hover { background: var(--bg); }
.compare-cell {
  padding: 20px 26px; font-size: 14.5px;
  display: flex; align-items: center; gap: 9px;
  border-right: 1px solid var(--border);
}
.compare-cell:last-child { border-right: none; }
.compare-head-cell {
  background: var(--bg);
  font-family: var(--mono); font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase;
  font-weight: 600; color: var(--text-3); padding: 16px 26px;
}
.compare-head-cell.stackmate {
  background: var(--accent); color: #fff; font-weight: 700;
  display: flex; align-items: center; gap: 9px;
}
.compare-col-mark { background: rgba(79,70,229,0.035); }
.ck { color: var(--success); flex-shrink: 0; display: flex; }
.cx { color: var(--text-3); flex-shrink: 0; display: flex; }
.compare-cell-sm { font-size: 13.5px; color: var(--text-2); }

/* ═══════════════════════════════ MCP ══════════════════════════════════════ */

.mcp { background: var(--surface); border-top: 1px solid var(--border); }
.mcp-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: start; }

.mcp-steps { list-style: none; display: flex; flex-direction: column; gap: 30px; }
.mcp-steps > li { display: flex; gap: 18px; }
.mcp-step-num {
  font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 1px;
  color: var(--accent); padding-top: 4px; flex-shrink: 0;
}
.mcp-steps h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.035em; margin-bottom: 7px; }
.mcp-steps p { font-size: 14.5px; color: var(--text-2); line-height: 1.7; text-wrap: pretty; }
.mcp-steps a { color: var(--accent); font-weight: 600; border-bottom: 1px solid var(--accent-sb); }
.mcp-steps a:hover { border-bottom-color: var(--accent); }

/* Client picker — the three ways to add the server, one tab each. */
.mcp-tabs { display: flex; gap: 6px; margin: 16px 0 12px; flex-wrap: wrap; }
.mcp-tab {
  font-family: var(--sans); font-size: 12.5px; font-weight: 600;
  padding: 7px 13px; border-radius: 9px; cursor: pointer;
  background: var(--bg); border: 1px solid var(--border); color: var(--text-2);
  transition: all 0.2s var(--ease);
}
.mcp-tab:hover { color: var(--text); border-color: var(--border-strong); }
.mcp-tab[aria-selected="true"] { background: var(--accent-s); border-color: var(--accent); color: var(--accent); }
.mcp-panel p { font-size: 13.5px; color: var(--text-2); line-height: 1.7; margin-bottom: 10px; }

.mcp-code {
  display: flex; align-items: center; gap: 12px;
  background: var(--ink); border: 1px solid rgba(255,255,255,0.10); border-radius: 14px;
  padding: 14px 14px 14px 16px; overflow-x: auto;
  box-shadow: 0 18px 34px -22px rgba(17,17,17,0.6);
}
.mcp-code code {
  font-family: var(--mono); font-size: 12.5px; color: rgba(255,255,255,0.88);
  white-space: nowrap; user-select: all;
}
.mcp-code .tok-cmd { color: #A5B4FC; }
.mcp-code .tok-url { color: #6EE7B7; }
.copy-btn {
  margin-left: auto; flex-shrink: 0; font-family: var(--mono); font-size: 10px;
  font-weight: 600; letter-spacing: 0.8px; text-transform: uppercase;
  padding: 7px 11px; border-radius: 8px; cursor: pointer;
  border: 1px solid rgba(255,255,255,0.16); background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.75); transition: all 0.25s var(--ease);
}
.copy-btn:hover { color: #fff; background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.3); }

/* Light variant, for the bare server URL rather than a shell command. */
.mcp-url {
  display: flex; align-items: center; gap: 12px; margin-top: 10px;
  background: var(--bg); border: 1px solid var(--border); border-radius: 12px;
  padding: 10px 10px 10px 14px; overflow-x: auto;
}
.mcp-url .k {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 1px;
  text-transform: uppercase; color: var(--text-3); flex-shrink: 0;
}
.mcp-url code { font-family: var(--mono); font-size: 12.5px; color: var(--text); user-select: all; white-space: nowrap; }
.copy-btn-light {
  margin-left: auto; flex-shrink: 0; font-family: var(--mono); font-size: 10px;
  font-weight: 600; letter-spacing: 0.8px; text-transform: uppercase;
  padding: 6px 10px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-2);
  transition: all 0.25s var(--ease);
}
.copy-btn-light:hover { color: var(--text); border-color: var(--border-strong); }

.mcp-side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 118px; }
.mcp-card { background: var(--bg); border: 1px solid var(--border); border-radius: 20px; padding: 24px; }
.mcp-card-quiet { background: var(--surface); }
.mcp-card-label {
  font-family: var(--mono); font-size: 10px; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--text-3); margin-bottom: 16px;
}
.mcp-card p { font-size: 13.5px; color: var(--text-2); line-height: 1.7; text-wrap: pretty; }

.mcp-tools { list-style: none; display: flex; flex-direction: column; gap: 13px; }
.mcp-tools li { display: flex; flex-direction: column; gap: 3px; }
.mcp-tools code { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.mcp-tools span { font-size: 12.5px; color: var(--text-2); line-height: 1.5; }

.mcp-nots { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.mcp-nots li {
  font-size: 13px; color: var(--text-2); line-height: 1.55;
  padding-left: 22px; position: relative;
}
.mcp-nots li::before {
  content: '✕'; position: absolute; left: 2px; top: 0;
  color: var(--text-3); font-size: 11px; font-weight: 700;
}

.mcp-note {
  font-size: 12.5px; color: var(--text-3); line-height: 1.7;
  padding-left: 16px; border-left: 2px solid var(--border); text-wrap: pretty;
}

/* Worked example — shows what a conversation actually looks like. */
.mcp-demo {
  border: 1px solid var(--border); border-radius: 20px; overflow: hidden;
  background: var(--bg); margin-top: 56px;
}
.mcp-demo-head {
  padding: 12px 18px; border-bottom: 1px solid var(--border); background: var(--surface);
  display: flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 1.1px;
  text-transform: uppercase; color: var(--text-3);
}
.mcp-demo-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--border-strong); }
.mcp-demo-body { padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.turn { display: flex; gap: 14px; align-items: flex-start; }
.turn-who {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 9px; font-weight: 700; letter-spacing: 0.4px;
}
.turn-you { background: var(--text); color: #fff; }
.turn-ai  { background: var(--accent-s); color: var(--accent); border: 1px solid var(--accent-sb); }
.turn-body { flex: 1; font-size: 14px; line-height: 1.65; color: var(--text-2); text-wrap: pretty; padding-top: 4px; }
.turn-body strong { color: var(--text); font-weight: 600; }
.turn-tool {
  display: inline-flex; align-items: center; gap: 7px; margin: 6px 0;
  font-family: var(--mono); font-size: 11px; color: var(--accent);
  background: var(--accent-s); border: 1px solid var(--accent-sb);
  border-radius: 7px; padding: 4px 9px;
}
.turn-note {
  margin-top: 8px; font-size: 12.5px; color: var(--text-3);
  padding-left: 12px; border-left: 2px solid var(--border);
}

/* ══════════════════════════════ PRICING ═══════════════════════════════════ */

.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
.plan {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 24px; padding: 30px 28px 28px;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.4s var(--ease);
}
.plan:hover { transform: translateY(-4px); box-shadow: 0 28px 50px -28px rgba(17,17,17,0.28); }
.plan-best { border-color: var(--accent); box-shadow: 0 20px 44px -26px rgba(79,70,229,0.5); }
.plan-flag {
  position: absolute; top: -11px; left: 28px;
  font-family: var(--mono); font-size: 9.5px; font-weight: 700; letter-spacing: 1.1px;
  text-transform: uppercase; color: #fff; background: var(--accent);
  padding: 5px 11px; border-radius: 7px;
}
.plan-name { font-size: 15px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 4px; }
.plan-tagline { font-size: 13px; color: var(--text-2); line-height: 1.55; margin-bottom: 22px; min-height: 40px; }
.plan-price { display: flex; align-items: baseline; gap: 6px; }
.plan-amount { font-size: 40px; font-weight: 800; letter-spacing: -0.05em; line-height: 1; }
.plan-unit { font-family: var(--mono); font-size: 12px; color: var(--text-3); }
.plan-was {
  font-family: var(--mono); font-size: 12px; color: var(--text-3);
  text-decoration: line-through; margin-left: 4px;
}
.plan-billed { font-size: 12px; color: var(--text-3); margin-top: 8px; min-height: 18px; }
.plan-cta { margin: 22px 0 24px; }
.plan-cta .btn { width: 100%; }
.plan-feats { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.plan-feats li {
  font-size: 13.5px; color: var(--text-2); line-height: 1.5;
  padding-left: 24px; position: relative;
}
.plan-feats li strong { color: var(--text); font-weight: 600; }
.plan-feats li::before {
  content: ''; position: absolute; left: 2px; top: 6px;
  width: 12px; height: 7px; border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}
.plan-feats li.off { color: var(--text-3); }
.plan-feats li.off::before {
  content: '—'; border: none; transform: none; width: auto; height: auto;
  top: 0; color: var(--text-3); font-family: var(--mono); font-size: 12px;
}

.billing-switch {
  display: inline-flex; flex-wrap: wrap; max-width: 100%; gap: 4px; padding: 4px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 13px;
  margin-bottom: 40px;
}
.billing-opt {
  font-family: var(--sans); font-size: 13px; font-weight: 600;
  padding: 8px 15px; border-radius: 10px; cursor: pointer;
  background: transparent; border: none; color: var(--text-2);
  display: inline-flex; align-items: center; gap: 7px;
  transition: all 0.25s var(--ease);
}
.billing-opt:hover { color: var(--text); }
.billing-opt[aria-checked="true"] { background: var(--text); color: #fff; }
.billing-save {
  font-family: var(--mono); font-size: 9px; font-weight: 700; letter-spacing: 0.6px;
  padding: 2px 6px; border-radius: 5px;
  background: rgba(5,150,105,0.12); color: var(--success);
}
.billing-opt[aria-checked="true"] .billing-save { background: rgba(255,255,255,0.16); color: #6EE7B7; }

.store-note {
  margin-top: 34px; font-size: 13px; color: var(--text-3); line-height: 1.7;
  text-wrap: pretty; max-width: 640px;
}

/* Plan comparison grid — same visual language as .compare, four columns. */
.plan-table { border: 1px solid var(--border); border-radius: 22px; overflow: hidden; background: var(--surface); }
.plan-trow { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; border-bottom: 1px solid var(--border); }
.plan-trow:last-child { border-bottom: none; }
.plan-tcell {
  padding: 15px 20px; font-size: 14px; color: var(--text-2);
  display: flex; align-items: center; gap: 8px; border-right: 1px solid var(--border);
}
.plan-tcell:first-child { color: var(--text); font-weight: 500; }
.plan-tcell:last-child { border-right: none; }
.plan-thead {
  background: var(--bg); font-family: var(--mono); font-size: 10px; letter-spacing: 1.2px;
  text-transform: uppercase; font-weight: 600; color: var(--text-3); padding: 13px 20px;
}
.plan-thead.hi { background: var(--accent); color: #fff; }

/* ═══════════════════════════════ FAQ ══════════════════════════════════════ */

.faq { display: flex; flex-direction: column; gap: 10px; max-width: 860px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.faq-item[open] { border-color: var(--accent-sb); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 20px 24px;
  font-size: 15.5px; font-weight: 600; letter-spacing: -0.02em;
  display: flex; align-items: center; gap: 14px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ''; margin-left: auto; flex-shrink: 0;
  width: 9px; height: 9px; border-right: 1.8px solid var(--text-3); border-bottom: 1.8px solid var(--text-3);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.3s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq-body { padding: 0 24px 22px; font-size: 14.5px; color: var(--text-2); line-height: 1.7; text-wrap: pretty; }
.faq-body p + p { margin-top: 12px; }
.faq-body a { color: var(--accent); }

/* ═══════════════════════════════ CTA ══════════════════════════════════════ */

.cta-section { position: relative; background: var(--ink); padding: 136px 0; overflow: hidden; }
.cta-section .container { position: relative; z-index: 1; }
.cta-section h2 {
  font-size: clamp(36px, 5vw, 72px); font-weight: 800; letter-spacing: -0.05em;
  line-height: 0.98; color: #fff; margin: 12px 0 20px; text-wrap: balance;
}
.cta-section h2 em { color: var(--accent); font-style: italic; }
.cta-section > .container > p {
  font-size: 17px; color: rgba(255,255,255,0.52); line-height: 1.65;
  max-width: 500px; margin-bottom: 40px; text-wrap: pretty;
}
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.cta-trust {
  font-size: 11.5px; font-family: var(--mono); color: rgba(255,255,255,0.30);
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  letter-spacing: 0.9px; text-transform: uppercase;
  padding-top: 28px; margin-top: 32px; border-top: 1px solid rgba(255,255,255,0.10);
}
.cta-trust-dot { width: 3px; height: 3px; border-radius: 50%; background: rgba(255,255,255,0.22); }
.cta-mark { position: absolute; right: -60px; bottom: -80px; width: 460px; height: 460px; opacity: 0.06; pointer-events: none; }

/* ═════════════════════════════ FOOTER ═════════════════════════════════════ */

.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 72px 0 36px; }
.footer-top { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 48px; margin-bottom: 56px; }
.footer-brand-desc { font-size: 14px; color: var(--text-2); line-height: 1.7; margin-top: 16px; max-width: 260px; text-wrap: pretty; }
.footer-col-head {
  font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--text-3); margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a {
  font-size: 14px; color: var(--text-2);
  transition: color 0.2s var(--ease), transform 0.3s var(--ease);
  display: inline-block;
}
.footer-col a:hover { color: var(--text); transform: translateX(3px); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 28px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
}
.footer-bottom-copy { font-size: 13px; color: var(--text-3); }
.footer-legal { display: flex; gap: 22px; }
.footer-legal a { font-size: 13px; color: var(--text-3); transition: color 0.2s var(--ease); }
.footer-legal a:hover { color: var(--text-2); }

/* Compact footer for document pages. */
.mini-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 32px 24px; text-align: center; }
.mini-footer p { font-size: 13px; color: var(--text-3); }
.mini-footer a { color: var(--text-2); }
.mini-footer a:hover { color: var(--text); }

/* ══════════════════════════ DOCUMENT PAGES ════════════════════════════════ */

.page { max-width: 880px; margin: 0 auto; padding: 56px 20px 96px; }
.page-eyebrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: 1.4px;
  text-transform: uppercase; color: var(--text-3); margin-bottom: 14px;
}
.page-title { font-size: clamp(30px, 5vw, 42px); font-weight: 800; letter-spacing: -0.045em; line-height: 1.06; margin-bottom: 14px; text-wrap: balance; }
.page-lead { font-size: 16.5px; color: var(--text-2); line-height: 1.7; margin-bottom: 36px; max-width: 640px; text-wrap: pretty; }
.page-meta { font-size: 13px; color: var(--text-3); font-family: var(--mono); margin-bottom: 48px; }

.toc { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 24px 28px; margin-bottom: 48px; }
.toc-title { font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--text-3); margin-bottom: 14px; }
.toc ol { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.toc a { font-size: 14px; color: var(--accent); }
.toc a:hover { text-decoration: underline; }
.toc-sub { list-style: none; padding-left: 0; margin-top: 8px; }
.toc-sub a { font-size: 13px; color: var(--text-2); }
.toc-sub a::before { content: "└ "; color: var(--text-3); }

.prose section { margin-bottom: 46px; }
.prose h2 {
  font-size: 22px; font-weight: 700; letter-spacing: -0.035em;
  margin-bottom: 16px; border-top: 1px solid var(--border); padding-top: 32px;
}
.prose section:first-child h2, .prose h2:first-child { border-top: none; padding-top: 0; }
.prose h3 { font-size: 16px; font-weight: 700; letter-spacing: -0.02em; margin: 20px 0 8px; }
.prose p { font-size: 15px; color: var(--text-2); line-height: 1.75; margin-bottom: 16px; }
.prose p:last-child { margin-bottom: 0; }
.prose ul, .prose ol { padding-left: 22px; margin-bottom: 16px; display: flex; flex-direction: column; gap: 8px; }
.prose li { font-size: 15px; color: var(--text-2); line-height: 1.65; }
.prose strong { color: var(--text); font-weight: 600; }
.prose code {
  font-family: var(--mono); font-size: 12.5px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 5px; padding: 1px 6px; color: var(--text);
}

.contact-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 18px; padding: 26px 28px; margin-bottom: 48px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px; justify-content: space-between;
}
.cc-label { font-family: var(--mono); font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--text-3); margin-bottom: 6px; }
.cc-email { font-size: 20px; font-weight: 700; letter-spacing: -0.03em; color: var(--text); }
.cc-note { font-size: 13px; color: var(--text-2); margin-top: 6px; }
.btn-email {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #fff;
  font-weight: 600; font-size: 14px; height: 46px; padding: 0 20px;
  border-radius: 13px; white-space: nowrap; transition: background .2s var(--ease);
}
.btn-email:hover { background: var(--accent-h); color: #fff; }

.data-table { width: 100%; border-collapse: collapse; }
.data-table-wrap { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; margin: 20px 0; }
.data-table th {
  background: var(--bg); font-family: var(--mono); font-size: 10px; font-weight: 600;
  letter-spacing: 1.1px; text-transform: uppercase; color: var(--text-3);
  padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border);
}
.data-table td { font-size: 14px; color: var(--text-2); padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
.data-table tr:last-child td { border-bottom: none; }
.data-table td strong { color: var(--text); }

/* delete-account widgets */
.steps { display: flex; flex-direction: column; gap: 16px; margin-bottom: 48px; }
.step {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 18px; padding: 22px 24px;
}
.step-num {
  flex-shrink: 0; width: 32px; height: 32px;
  background: var(--text); color: #fff;
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 13px; font-weight: 600;
}
.step-body { flex: 1; }
.step-title { font-size: 15px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 4px; }
.step-desc { font-size: 14px; color: var(--text-2); line-height: 1.65; }
.step-desc code { font-family: var(--mono); font-size: 12px; background: var(--bg); border: 1px solid var(--border); border-radius: 5px; padding: 1px 6px; color: var(--text); }

.warning-box {
  background: #FEF2F2; border: 1px solid #FECACA;
  border-radius: 16px; padding: 20px 24px; margin-bottom: 48px;
  display: flex; gap: 14px; align-items: flex-start;
}
.warning-icon { flex-shrink: 0; width: 36px; height: 36px; background: #FEE2E2; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.warning-icon svg { width: 18px; height: 18px; }
.warning-body { flex: 1; }
.warning-title { font-size: 14px; font-weight: 700; color: #991B1B; margin-bottom: 4px; }
.warning-desc { font-size: 13px; color: #B91C1C; line-height: 1.6; }

.data-box { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; margin-bottom: 48px; }
.data-box-header { padding: 16px 24px; border-bottom: 1px solid var(--border); font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--text-3); }
.data-row { display: flex; gap: 16px; padding: 14px 24px; border-bottom: 1px solid var(--border); font-size: 14px; align-items: baseline; }
.data-row:last-child { border-bottom: none; }
.data-label { font-weight: 600; color: var(--text); min-width: 200px; flex-shrink: 0; }
.data-value { color: var(--text-2); line-height: 1.55; }
.badge { display: inline-block; font-family: var(--mono); font-size: 10px; letter-spacing: 0.5px; padding: 2px 7px; border-radius: 5px; font-weight: 600; margin-left: 6px; vertical-align: middle; }
.badge-del  { background: #FEE2E2; color: #991B1B; }
.badge-keep { background: #F0FDF4; color: #166534; }

.contact-box { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 28px; display: flex; gap: 20px; align-items: flex-start; }
.contact-icon { flex-shrink: 0; width: 44px; height: 44px; background: #EEF2FF; border: 1px solid #C7D2FE; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.contact-icon svg { width: 20px; height: 20px; }
.contact-body { flex: 1; }
.contact-title { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.contact-desc { font-size: 14px; color: var(--text-2); line-height: 1.65; margin-bottom: 14px; }
.contact-link {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--text); color: #fff;
  font-size: 13px; font-weight: 600; padding: 9px 18px;
  border-radius: 11px; transition: opacity 0.2s var(--ease);
}
.contact-link:hover { opacity: 0.85; color: #fff; }

/* ══════════════════════════════ CARD PAGES ════════════════════════════════ */

/* account.html, onboarding.html and mcp-auth.html are single-column app
   screens rather than marketing pages: one centred card, a sticky sub-nav
   above it. */
body.card-page { min-height: 100vh; padding: 0 16px 64px; }
body.card-page .card { margin: 32px auto 0; }
/* The card sits inside the body's side padding; a sticky bar would not, so it
   is pulled back out to the viewport edges. */
body.card-page > .subnav { margin: 0 -16px; }

/* On these pages the back control lives in the card's own brand row rather
   than in a page-wide nav, so it runs a size down. */
.brand .nav-back { width: 32px; height: 32px; border-radius: 10px; margin-right: 3px; }

.card {
  width: 100%; max-width: 560px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 22px; padding: 30px;
  box-shadow: 0 20px 48px -32px rgba(17,17,17,0.22);
}
.card-wide { max-width: 640px; }
.brand { display: flex; align-items: center; gap: 9px; margin-bottom: 24px; }
.brand-mark { width: 22px; height: 22px; }
.brand-word { font-weight: 800; font-size: 17px; letter-spacing: -0.04em; }
.lang {
  margin-left: auto; font-family: var(--mono); font-size: 12px; font-weight: 600;
  color: var(--text-2); background: none;
  border: 1px solid var(--border); border-radius: 9px; padding: 5px 10px;
  cursor: pointer; transition: all 0.2s var(--ease);
}
.lang:hover { color: var(--text); border-color: var(--border-strong); }

.card h1 { font-size: 25px; font-weight: 800; letter-spacing: -0.04em; line-height: 1.18; margin-bottom: 10px; text-wrap: balance; }
.card h2 { font-size: 18px; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 6px; }
.sub { font-size: 14px; color: var(--text-2); line-height: 1.6; margin-bottom: 22px; text-wrap: pretty; }

.card .progress { margin-bottom: 22px; }
.progress-meta {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--mono); font-size: 11px; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--text-3); margin-bottom: 8px;
}
.progress-track { height: 4px; background: var(--border); border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--accent); border-radius: 999px; width: 0; transition: width 0.25s ease; }

.field { margin-bottom: 18px; }
label.lbl { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.hint { font-size: 12px; color: var(--text-3); margin-top: 5px; }
.hint.count { font-family: var(--mono); }
.optional { font-weight: 500; color: var(--text-3); }
input[type="email"], input[type="text"], input[type="url"], textarea, select {
  width: 100%; padding: 12px; border-radius: 11px;
  border: 1px solid var(--border); font-family: var(--sans); font-size: 14px;
  background: var(--surface); color: var(--text); line-height: 1.5;
  transition: border-color 0.2s var(--ease);
}
textarea { resize: vertical; min-height: 96px; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--error); }
input[type="file"] { font-size: 13px; font-family: var(--sans); color: var(--text-2); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--sans); font-size: 13px; font-weight: 500;
  padding: 7px 13px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-2);
  transition: all 0.15s var(--ease);
}
.chip:hover { border-color: var(--border-strong); color: var(--text); }
.chip[aria-pressed="true"] { background: var(--accent-s); border-color: var(--accent); color: var(--accent); font-weight: 600; }

.role-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.role-card {
  text-align: left; padding: 18px; border-radius: 16px; cursor: pointer;
  border: 1.5px solid var(--border); background: var(--surface);
  font-family: var(--sans); color: var(--text); transition: all 0.2s var(--ease);
}
.role-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.role-card[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-s); }
.role-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 5px; }
.role-card p { font-size: 13px; color: var(--text-2); line-height: 1.5; }

.skill-results { margin-top: 12px; border: 1px solid var(--border); border-radius: 12px; max-height: 260px; overflow-y: auto; }
.skill-row {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 10px 13px; border: none; border-bottom: 1px solid var(--border);
  background: none; cursor: pointer; font-family: var(--sans);
  font-size: 14px; color: var(--text); text-align: left;
}
.skill-row:last-child { border-bottom: none; }
.skill-row:hover { background: var(--bg); }
.skill-row .cat { margin-left: auto; font-family: var(--mono); font-size: 9px; letter-spacing: 0.8px; color: var(--text-3); }
.skill-row .tick { color: var(--accent); font-weight: 700; width: 14px; }
.skill-empty { padding: 22px; text-align: center; font-size: 13px; color: var(--text-3); }
.selected-wrap { margin-top: 14px; }

.row { display: flex; align-items: flex-start; gap: 14px; }
.row .text { flex: 1; }
.row p { font-size: 13px; color: var(--text-2); line-height: 1.6; }
.toggle { position: relative; flex-shrink: 0; width: 46px; height: 27px; }
.toggle input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 2; }
.toggle .track { position: absolute; inset: 0; background: #D4D4D8; border-radius: 999px; transition: background 0.15s; }
.toggle .track::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 21px; height: 21px;
  background: #fff; border-radius: 50%; transition: transform 0.15s;
}
.toggle input:checked + .track { background: var(--accent); }
.toggle input:checked + .track::after { transform: translateX(19px); }
.toggle input:focus-visible + .track { outline: 2px solid var(--accent); outline-offset: 2px; }

.photo-pick { display: flex; align-items: center; gap: 16px; }
.photo-preview {
  width: 84px; height: 84px; border-radius: 50%; flex-shrink: 0;
  background: var(--bg); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 10px; color: var(--text-3); overflow: hidden;
}
.photo-preview img { width: 100%; height: 100%; object-fit: cover; }

button.action, a.action {
  width: 100%; padding: 13px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font-family: var(--sans);
  font-size: 14px; font-weight: 600; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 9px;
  transition: all 0.2s var(--ease);
}
button.action:hover:not(:disabled), a.action:hover { border-color: var(--text-3); color: var(--text); }
button.action:disabled { opacity: 0.5; cursor: not-allowed; }
button.primary, a.action.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
button.primary:hover:not(:disabled), a.action.primary:hover { background: var(--accent-h); border-color: var(--accent-h); color: #fff; }
button.danger { background: var(--error); border-color: var(--error); color: #fff; }
button.link {
  background: none; border: none; color: var(--text-2); font-size: 13px;
  cursor: pointer; font-family: var(--sans); padding: 6px 8px;
}
button.link:hover { color: var(--text); }

.nav-row { display: flex; gap: 10px; align-items: center; margin-top: 24px; }
.nav-row .action { width: auto; flex: 1; }
.nav-row .back { flex: 0 0 auto; width: auto; padding: 13px 18px; }

.msg { font-size: 13px; padding: 11px 13px; border-radius: 10px; margin-bottom: 16px; display: none; line-height: 1.55; }
.msg.err { background: #FEF2F2; color: var(--error); border: 1px solid #FECACA; display: block; }
.msg.ok  { background: #ECFDF5; color: var(--ok);    border: 1px solid #A7F3D0; display: block; }

.divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--text-3); font-size: 12px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.who {
  font-family: var(--mono); font-size: 12px; color: var(--text-2);
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
  padding: 9px 12px; margin-bottom: 20px; display: flex; align-items: center;
  gap: 10px; word-break: break-all;
}
.who button { margin-left: auto; flex-shrink: 0; }

.client {
  font-family: var(--mono); font-size: 13px; color: var(--text);
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 12px; margin-bottom: 20px; word-break: break-all;
}
.scopes { list-style: none; margin-bottom: 24px; }
.scopes li {
  font-size: 14px; color: var(--text-2); padding: 8px 0 8px 24px;
  position: relative; border-bottom: 1px solid var(--border); line-height: 1.55;
}
.scopes li:last-child { border-bottom: none; }
.scopes li::before { content: "✓"; position: absolute; left: 4px; color: var(--ok); font-weight: 700; }
.scopes li.no::before { content: "✕"; color: var(--text-3); }

section.block { border-top: 1px solid var(--border); padding-top: 22px; margin-top: 22px; }
.danger-text { color: var(--error); }
.foot { font-size: 12px; color: var(--text-3); margin-top: 24px; text-align: center; }
.foot a { color: var(--text-2); }

/* ═════════════════════════════ RESPONSIVE ═════════════════════════════════ */

@media (max-width: 1160px) {
  .fc-score-card { right: -10px; }
  .fc-verified   { left: -14px; }
}
@media (max-width: 1020px) {
  .hero-inner { grid-template-columns: 1fr; gap: 8px; }
  .hero-text { max-width: 640px; padding-bottom: 8px; }
  .hero-visual { min-height: 0; padding: 26px 0 8px; transform: scale(0.92); transform-origin: top center; }
  .phone-scene { transform: perspective(1600px) rotateY(-6deg) rotateX(2deg); }
  .hiw-layout { grid-template-columns: 1fr; gap: 40px; }
  .hiw-sticky { position: static; }
  .mcp-grid { grid-template-columns: 1fr; gap: 44px; }
  .mcp-side { position: static; }
  .bento > .feat { grid-column: span 6; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-shell { justify-content: space-between; }
  .nav-cta .nav-signin, .nav-cta .btn-secondary { display: none; }
  .nav-toggle { display: flex; }
  .plan-grid { grid-template-columns: 1fr; max-width: 520px; }
}
@media (max-width: 760px) {
  .section { padding: 88px 0; }
  .section-sm { padding: 64px 0; }
  .container, .container-tight { padding: 0 20px; }
  .hero { padding-top: calc(var(--nav-h) + 44px); }
  .hero h1 { font-size: clamp(38px, 10vw, 54px); }
  .hero-sub { font-size: 16px; }
  .hero-actions .btn, .hero-actions .store-chip { width: 100%; }
  .flow-step { grid-template-columns: 1fr; gap: 12px; padding: 26px 24px; }
  .flow-step:nth-child(2), .flow-step:nth-child(3) { margin-left: 0; }
  .feat { padding: 28px 24px; }
  .compare-row { grid-template-columns: 1fr; }
  .compare-cell { border-right: none; border-bottom: 1px solid var(--border); padding: 14px 20px; }
  .compare-row:last-child .compare-cell:last-child { border-bottom: none; }
  .plan-trow { grid-template-columns: 1fr; }
  .plan-tcell { border-right: none; border-bottom: 1px solid var(--border); padding: 12px 18px; }
  .plan-trow:last-child .plan-tcell:last-child { border-bottom: none; }
  .plan-tcell:not(:first-child)::before {
    content: attr(data-plan); font-family: var(--mono); font-size: 9.5px;
    letter-spacing: 1px; text-transform: uppercase; color: var(--text-3);
    width: 46px; flex-shrink: 0;
  }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .cta-section { padding: 96px 0; }
  .cta-mark { width: 300px; height: 300px; right: -80px; }
  .fc-score-card { right: -6px; top: 8%; transform: scale(0.88); }
  .fc-verified   { left: -6px; bottom: 10%; transform: scale(0.88); }
  .review-pair { grid-template-columns: 1fr; }
  .role-grid { grid-template-columns: 1fr; }
  .data-row { flex-direction: column; gap: 4px; }
  .data-label { min-width: unset; }
  .step { padding: 18px; }
  .contact-box { flex-direction: column; }
  .card { padding: 24px 20px; }
}
@media (max-width: 420px) {
  .float-card { display: none; }
}
