/* =============================================================================
   Karma landing page — design tokens mirror the app (src/index.css + brand.ts).
   Warm, calm, light theme. Saffron is the only loud color.
   ========================================================================== */
:root {
  --bg: #faf8f5;          /* warm white */
  --surface: #f0ebe3;     /* parchment */
  --surface-2: #e8e0d5;
  --hover: #e9e2d6;
  --border: #dcd3c6;      /* soft stone hairline */
  --border-strong: #c9bfb0;

  --text: #1a1a1a;        /* ink */
  --muted: #7c7468;       /* stone */
  --faint: #a1988a;

  --accent: #e8a838;      /* saffron */
  --accent-hover: #dd9d2a;
  --accent-press: #c78c21;
  --accent-fg: #1a1a1a;   /* ink on saffron */
  --ember: #c2632e;       /* accent text / icons */
  --success: #5a7a5a;

  --badge-bg: #fdf3e0;
  --badge-fg: #b26824;

  --radius: 14px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(60, 48, 30, 0.06), 0 1px 1px rgba(60, 48, 30, 0.04);
  --shadow-md: 0 6px 24px -8px rgba(60, 48, 30, 0.18), 0 2px 6px rgba(60, 48, 30, 0.06);
  --shadow-lg: 0 30px 60px -20px rgba(50, 38, 20, 0.28), 0 12px 24px -12px rgba(50, 38, 20, 0.14);

  --font-sans: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-display: "Outfit", "DM Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
code { font-family: var(--font-mono); font-size: 0.88em; background: var(--surface-2); padding: 0.12em 0.4em; border-radius: 6px; color: var(--ember); }
::selection { background: rgba(232, 168, 56, 0.3); }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---- Icons ------------------------------------------------------------- */
.ic {
  width: 1.15em; height: 1.15em;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
  flex: none; vertical-align: -0.15em;
}

/* ---- Buttons ----------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--font-sans); font-weight: 600; font-size: 14px;
  border-radius: 10px; border: 1px solid transparent; cursor: pointer;
  padding: 0.6em 1.05em; transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease, color 0.16s ease;
  white-space: nowrap;
}
.btn .ic { width: 1.05em; height: 1.05em; stroke-width: 2; }
.btn-accent { background: var(--accent); color: var(--accent-fg); }
.btn-accent:hover { background: var(--accent-hover); }
.btn-accent:active { background: var(--accent-press); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--hover); border-color: var(--faint); }
.btn-sm { font-size: 13px; padding: 0.5em 0.85em; }
.btn-lg { font-size: 15.5px; padding: 0.75em 1.4em; }

/* ---- Brand wordmark ---------------------------------------------------- */
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--text); }
.brand-mark { width: 24px; height: 29px; color: var(--text); }
.brand-text { font-family: var(--font-display); font-weight: 300; font-size: 25px; letter-spacing: -0.03em; }

/* ---- Top bar ----------------------------------------------------------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 245, 0.82);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner { display: flex; align-items: center; gap: 24px; height: 62px; }
.topnav { display: flex; gap: 26px; margin-left: auto; }
.topnav a { font-size: 14px; color: var(--muted); transition: color 0.15s ease; }
.topnav a:hover { color: var(--text); }
.topbar .btn { margin-left: 4px; }

/* ---- Hero -------------------------------------------------------------- */
.hero { padding: 76px 0 40px; text-align: center; overflow: hidden; }
.hero-inner { display: flex; flex-direction: column; align-items: center; }
.eyebrow {
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--ember); background: var(--badge-bg); border: 1px solid var(--border);
  padding: 5px 12px; border-radius: 999px;
}
.hero-title { font-size: clamp(38px, 6.5vw, 68px); font-weight: 500; margin: 22px 0 0; letter-spacing: -0.03em; }
.hero-sub { max-width: 640px; margin: 20px auto 0; font-size: clamp(16px, 2.2vw, 19px); color: var(--muted); line-height: 1.55; }
.hero-sub strong { color: var(--text); font-weight: 600; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 30px; }
.hero-note { display: inline-flex; align-items: center; gap: 9px; margin: 22px auto 0; padding: 7px 14px 7px 8px; font-size: 13px; color: var(--muted); background: var(--surface); border: 1px solid var(--border); border-radius: 999px; box-shadow: var(--shadow-sm); transition: border-color 0.15s ease, color 0.15s ease; }
.hero-note:hover { border-color: var(--border-strong); color: var(--text); }
.hero-note .ic { width: 15px; height: 15px; color: var(--ember); flex: none; }
.hero-note-tag { font-size: 10.5px; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; color: var(--accent-fg); background: var(--accent); border-radius: 999px; padding: 3px 9px; }
.hero-note-arrow { color: var(--faint) !important; }

/* ---- App-window mockup ------------------------------------------------- */
.app-frame {
  width: 100%; max-width: 940px; margin: 56px auto 0;
  background: var(--bg); border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  overflow: hidden; text-align: left;
}
.app-titlebar {
  display: flex; align-items: center; gap: 10px;
  height: 38px; padding: 0 14px; background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.tl-dots { display: inline-flex; gap: 7px; }
.tl-dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--border-strong); }
.tl-dots i:nth-child(1) { background: #e0795f; }
.tl-dots i:nth-child(2) { background: #e3b34e; }
.tl-dots i:nth-child(3) { background: #79a879; }
.tl-title { font-size: 12.5px; color: var(--faint); font-weight: 500; }
.app-body { display: flex; min-height: 420px; }

/* sidebar */
.ap-sidebar { width: 212px; flex: none; background: var(--surface); border-right: 1px solid var(--border); padding: 12px 10px; display: flex; flex-direction: column; }
.ap-org { display: flex; align-items: center; gap: 7px; padding: 2px 6px 10px; color: var(--text); font-size: 12.5px; font-weight: 600; }
.ap-org .ic { color: var(--faint); width: 15px; height: 15px; }
.ap-new {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  background: var(--accent); color: var(--accent-fg); border: none; cursor: default;
  font-family: var(--font-sans); font-weight: 600; font-size: 13px;
  padding: 9px; border-radius: 9px; width: 100%;
}
.ap-new .ic { width: 15px; height: 15px; stroke-width: 2.2; }
.ap-nav { display: flex; flex-direction: column; gap: 2px; margin-top: 12px; }
.ap-nav-item { display: flex; align-items: center; gap: 9px; padding: 7px 9px; border-radius: 8px; font-size: 13px; color: var(--muted); }
.ap-nav-item .ic { width: 15px; height: 15px; color: var(--faint); }
.ap-nav-item.is-active { background: rgba(232, 168, 56, 0.13); color: var(--text); font-weight: 600; }
.ap-nav-item.is-active .ic { color: var(--ember); }
.ap-nav-item > span:nth-of-type(1) { flex: 1; }
.ap-count { font-size: 11px; font-weight: 600; color: var(--faint); font-style: normal; }
.ap-count-accent { background: var(--accent); color: var(--accent-fg); border-radius: 999px; padding: 1px 7px; }
.ap-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--border-strong); margin: 0 4px; }
.ap-taggroup { margin-top: 18px; }
.ap-tag-label { font-size: 10.5px; font-weight: 600; letter-spacing: 0.03em; color: var(--faint); padding: 0 9px 5px; }
.ap-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); }
.ap-sync { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--muted); padding: 4px 6px; }
.ap-sync-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); }
.ap-account { display: flex; align-items: center; gap: 8px; padding: 6px; margin-top: 4px; }
.ap-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--ember); color: #fff; font-size: 11px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.ap-acct-meta { display: flex; flex-direction: column; line-height: 1.25; }
.ap-acct-meta b { font-size: 12px; font-weight: 600; color: var(--text); }
.ap-acct-meta i { font-size: 10.5px; font-style: normal; color: var(--faint); }

/* main */
.ap-main { flex: 1; padding: 18px 20px; min-width: 0; }
.ap-main-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 16px; }
.ap-main-head h2 { font-size: 20px; font-weight: 600; }
.ap-main-head p { font-size: 12.5px; color: var(--faint); margin-top: 2px; }
.ap-tools { display: flex; align-items: center; gap: 8px; }
.ap-searchbox { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--faint); background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 6px 10px; }
.ap-searchbox .ic { width: 14px; height: 14px; }
.ap-toggle { display: inline-flex; padding: 7px; border: 1px solid var(--border); border-radius: 8px; color: var(--muted); background: var(--bg); }
.ap-toggle .ic { width: 14px; height: 14px; }
.ap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }

/* skill card */
.sk { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 13px; min-height: 124px; transition: transform 0.12s ease, border-color 0.12s ease; }
.sk:hover { transform: translateY(-1px); border-color: var(--border-strong); }
.sk-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.sk-top h3 { font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.sk-ic { width: 15px; height: 15px; color: var(--faint); margin-top: 1px; }
.sk-badges { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.sk-desc { font-size: 12px; color: var(--muted); line-height: 1.45; margin-top: 7px; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sk-foot { display: flex; align-items: center; gap: 8px; margin-top: 11px; }
.sk-meta { margin-left: auto; font-size: 10.5px; color: var(--faint); white-space: nowrap; }
.chip { font-size: 10.5px; color: var(--muted); background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 2px 7px; }

/* badges */
.badge { font-size: 10px; font-weight: 600; letter-spacing: 0.02em; padding: 2px 7px; border-radius: 6px; text-transform: lowercase; }
.badge-std { background: var(--badge-bg); color: var(--badge-fg); border: 1px solid rgba(178, 104, 36, 0.25); }
.badge-shared { background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }
.badge-upd { background: rgba(90, 122, 90, 0.14); color: var(--success); border: 1px solid rgba(90, 122, 90, 0.25); }

/* ---- Generic section --------------------------------------------------- */
.section { padding: 80px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head.left { text-align: left; margin-left: 0; }
.kicker { font-size: 12.5px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ember); margin-bottom: 12px; }
.section-title { font-size: clamp(26px, 4vw, 38px); font-weight: 500; }
.section-intro { margin-top: 14px; font-size: 17px; color: var(--muted); }

/* ---- What is a skill --------------------------------------------------- */
.what-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.what-copy .lead { font-size: 18px; margin-top: 16px; line-height: 1.55; }
.what-copy .lead strong { font-weight: 600; }
.muted-p { margin-top: 16px; color: var(--muted); font-size: 15.5px; }
.code-card { margin: 0; background: #1d1b18; border: 1px solid #322f2a; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.code-head { display: flex; align-items: center; gap: 8px; padding: 11px 15px; font-family: var(--font-mono); font-size: 12px; color: #b6ab98; border-bottom: 1px solid #322f2a; }
.code-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.code-body { margin: 0; padding: 16px 18px; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.7; color: #e6ddcd; white-space: pre-wrap; overflow-x: auto; }
.c-fence { color: #6f685c; }
.c-key { color: var(--accent); }
.c-h { color: #f0d79a; font-weight: 500; }

/* ---- Features ---------------------------------------------------------- */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease; }
.section-alt .feat { background: var(--bg); }
.feat:hover { transform: translateY(-2px); border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.feat-ic { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 11px; background: var(--badge-bg); color: var(--ember); border: 1px solid rgba(178, 104, 36, 0.18); font-size: 20px; margin-bottom: 16px; }
.feat h3 { font-size: 17px; font-weight: 600; }
.feat p { margin-top: 8px; font-size: 14.5px; color: var(--muted); line-height: 1.55; }

/* ---- How to use / steps ------------------------------------------------ */
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 44px; }
.step { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; }
.step-reverse .step-text { order: 2; }
.step-reverse .shot { order: 1; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--accent-fg); font-family: var(--font-display); font-weight: 600; font-size: 16px; margin-bottom: 14px; }
.step-text h3 { font-size: 22px; font-weight: 600; }
.step-text p { margin-top: 10px; font-size: 16px; color: var(--muted); line-height: 1.6; }
.step-text strong { color: var(--text); font-weight: 600; }

/* screenshot frame + placeholder */
.shot { margin: 0; }
.shot-frame {
  position: relative; background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: var(--radius); box-shadow: var(--shadow-md); overflow: hidden;
  min-height: 270px; padding-top: 32px;
}
.shot-frame .tl-dots.small { position: absolute; top: 11px; left: 13px; }
.shot-frame .tl-dots.small i { width: 9px; height: 9px; }
.shot-frame::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 32px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
/* ---- View mockups (live in the screenshot slots) ---------------------- */
.mock { position: relative; }
.mock mark { color: inherit; }

/* org / list shared bits layered on the hero's .sk + .row */
.sk-author { font-size: 11px; color: var(--faint); }
.sk-copy { display: inline-flex; align-items: center; gap: 4px; font-family: var(--font-sans); font-size: 10.5px; font-weight: 600; color: var(--muted); background: transparent; border: 1px solid var(--border); border-radius: 7px; padding: 3px 8px; cursor: default; }
.sk-copy .ic { width: 12px; height: 12px; }

/* onboarding (org-choose step) */
.mock-onb { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 26px 18px; }
.onb-logo { display: inline-flex; align-items: center; justify-content: center; width: 50px; height: 50px; border-radius: 15px; border: 1px solid var(--border); background: var(--surface); color: var(--text); margin-bottom: 14px; }
.onb-logo .ic { width: 26px; height: 30px; }
.onb-h { font-size: 19px; font-weight: 500; }
.onb-sub { font-size: 13px; color: var(--muted); margin: 4px 0 16px; }
.onb-choices { width: 100%; max-width: 340px; display: flex; flex-direction: column; gap: 9px; }
.choice { display: flex; align-items: center; gap: 12px; text-align: left; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 11px 13px; }
.choice.is-pick { border-color: var(--accent); background: rgba(232, 168, 56, 0.08); }
.choice-ic { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 9px; background: var(--bg); color: var(--ember); flex: none; }
.choice-ic .ic { width: 18px; height: 18px; }
.choice-t b { display: block; font-size: 13px; font-weight: 600; color: var(--text); }
.choice-t i { display: block; font-style: normal; font-size: 11.5px; color: var(--muted); margin-top: 1px; }

/* connect an agent (MCP) */
.mock-mcp { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.mcp-head { display: flex; align-items: center; gap: 11px; }
.mcp-ic { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 11px; border: 1px solid var(--border); background: var(--surface); color: var(--ember); flex: none; }
.mcp-ic .ic { width: 19px; height: 19px; }
.mcp-head h4 { font-size: 15px; font-weight: 600; }
.mcp-head p { font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.mcp-clients { display: flex; flex-direction: column; gap: 8px; }
.mock-mcp .choice { padding: 9px 12px; }
.mock-mcp .choice-ic { width: 30px; height: 30px; }
.mock-mcp .choice-ic .ic { width: 16px; height: 16px; }
.mcp-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-left: auto; flex: none; }
.mcp-add { display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-family: var(--font-sans); font-size: 12.5px; font-weight: 600; color: var(--accent-fg); background: var(--accent); border: none; border-radius: 9px; padding: 9px 14px; cursor: default; }
.mcp-add .ic { width: 14px; height: 14px; }
.mcp-tools { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 11px; border-top: 1px solid var(--border); }
.mcp-tools span { font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 2px 7px; }

/* editor */
.ed-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.ed-titles { min-width: 0; }
.ed-name { display: block; font-family: var(--font-display); font-size: 15px; font-weight: 600; color: var(--text); }
.ed-desc { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.ed-tools { display: flex; align-items: center; gap: 8px; flex: none; }
.ed-files { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--faint); }
.ed-files .ic { width: 13px; height: 13px; }
.ed-pill { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; padding: 4px 9px; border-radius: 7px; border: 1px solid var(--border); color: var(--muted); }
.ed-pill .ic { width: 12px; height: 12px; }
.ed-pill.is-on { background: rgba(232, 168, 56, 0.14); border-color: transparent; color: var(--ember); }
.ed-saved { font-size: 10.5px; color: var(--success); }
.ed-panes { display: grid; grid-template-columns: 1fr 1fr; min-height: 244px; }
.ed-src { border-right: 1px solid var(--border); padding: 12px 8px; background: var(--bg); overflow: hidden; }
.ed-src .ln { display: flex; gap: 10px; font-family: var(--font-mono); font-size: 11.5px; line-height: 1.7; }
.ed-src .ln b { width: 18px; text-align: right; color: var(--faint); font-weight: 400; flex: none; user-select: none; }
.ed-src .ln code { background: none; padding: 0; color: var(--text); white-space: pre; }
.mock-ed .c-fence { color: var(--faint); }
.mock-ed .c-key { color: var(--badge-fg); }
.mock-ed .c-h { color: var(--text); font-weight: 600; }
.ed-prev { padding: 14px 16px; }
.ed-prev h5 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.ed-prev p { font-size: 12.5px; color: var(--muted); }
.ed-check { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.ed-check li { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text); }
.cb { width: 13px; height: 13px; border: 1.5px solid var(--border-strong); border-radius: 3px; flex: none; }

/* library (grid + rows) */
.mock-lib { padding: 16px; }
.lib-head { display: flex; align-items: center; gap: 10px; margin-bottom: 13px; }
.lib-head h4 { font-size: 16px; font-weight: 600; }
.lib-meta { font-size: 11.5px; color: var(--faint); }
.lib-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.tagpill { font-size: 11px; color: var(--muted); background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 3px 10px; }
.tagpill.is-on { background: var(--accent); border-color: transparent; color: var(--accent-fg); font-weight: 600; }
.ap-toggle.is-on { background: rgba(232, 168, 56, 0.14); color: var(--ember); border-color: transparent; margin-left: auto; }
.lib-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lib-rows { display: flex; flex-direction: column; gap: 7px; }
.row { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 11px; padding: 9px 13px; }
.row-ic { display: inline-flex; width: 30px; height: 30px; border-radius: 8px; background: var(--surface-2); color: var(--faint); align-items: center; justify-content: center; flex: none; }
.row-ic .ic { width: 16px; height: 16px; }
.row-main { min-width: 0; flex: 1; }
.row-main b { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--text); }
.row-main i { display: block; font-style: normal; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-meta { font-size: 11px; color: var(--faint); flex: none; }
.row .chip { flex: none; }

/* approvals + diff */
.mock-appr { display: grid; grid-template-columns: 158px 1fr; }
.appr-list { border-right: 1px solid var(--border); padding: 10px 8px; background: var(--surface); }
.pr { display: flex; gap: 8px; padding: 8px; border-radius: 9px; }
.pr.is-active { background: rgba(232, 168, 56, 0.12); }
.pr-main { min-width: 0; }
.pr-main b { display: block; font-size: 12px; font-weight: 600; color: var(--text); }
.pr-main i { display: block; font-style: normal; font-size: 10.5px; color: var(--muted); margin-top: 1px; }
.ap-avatar.sm { width: 24px; height: 24px; font-size: 10px; }
.prtag { display: inline-block; margin-top: 4px; font-size: 9px; font-weight: 600; padding: 1px 6px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.03em; }
.prtag.update { background: rgba(212, 160, 60, 0.18); color: #9a6a1a; }
.prtag.new { background: rgba(90, 122, 90, 0.18); color: var(--success); }
.appr-detail { padding: 14px; min-width: 0; }
.appr-note { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: #8a6a1f; background: rgba(212, 160, 60, 0.12); border-radius: 8px; padding: 7px 10px; margin-bottom: 12px; }
.appr-note .ic { width: 14px; height: 14px; flex: none; }
.diff-labels { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; align-items: center; font-size: 11px; color: var(--muted); margin-bottom: 6px; }
.diff-stats { display: flex; gap: 7px; font-family: var(--font-mono); font-size: 10.5px; }
.d-add { color: var(--success); }
.d-del { color: var(--ember); }
.d-chg { color: #9a6a1a; }
.diff-body { border: 1px solid var(--border); border-radius: 9px; overflow: hidden; }
.drow { display: grid; grid-template-columns: 1fr 1fr; }
.drow + .drow { border-top: 1px solid rgba(220, 211, 198, 0.5); }
.dc { display: flex; gap: 8px; padding: 3px 8px; min-height: 22px; font-family: var(--font-mono); font-size: 11px; line-height: 1.5; }
.dc:first-child { border-right: 1px solid rgba(220, 211, 198, 0.5); }
.dc b { width: 16px; text-align: right; color: var(--faint); font-weight: 400; flex: none; user-select: none; }
.dc code { background: none; padding: 0; color: var(--text); white-space: pre-wrap; word-break: break-word; }
.dc-add { background: rgba(90, 122, 90, 0.12); box-shadow: inset 2px 0 0 rgba(90, 122, 90, 0.5); }
.dc-del { background: rgba(194, 99, 46, 0.1); box-shadow: inset 2px 0 0 rgba(194, 99, 46, 0.5); }
.dc-chg { background: rgba(232, 180, 70, 0.12); box-shadow: inset 2px 0 0 rgba(232, 180, 70, 0.55); }
.dc-blank { background: rgba(240, 235, 227, 0.5); }
.w-add { background: rgba(90, 122, 90, 0.28); border-radius: 2px; padding: 0 1px; }
.appr-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.ab { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; padding: 6px 12px; border-radius: 8px; }
.ab .ic { width: 13px; height: 13px; }
.ab-reject { color: var(--muted); }
.ab-ghost { color: var(--text); border: 1px solid var(--border-strong); }
.ab-approve { background: var(--accent); color: var(--accent-fg); }

/* shortcuts */
.shortcuts { margin-top: 60px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 30px; max-width: 620px; margin-left: auto; margin-right: auto; }
.shortcuts h3 { font-size: 18px; font-weight: 600; margin-bottom: 14px; text-align: center; }
.kbd-table { width: 100%; border-collapse: collapse; }
.kbd-table td { padding: 9px 4px; border-bottom: 1px solid var(--border); font-size: 14.5px; color: var(--muted); }
.kbd-table tr:last-child td { border-bottom: none; }
.kbd-table td:first-child { white-space: nowrap; width: 1%; padding-right: 22px; }
kbd { font-family: var(--font-mono); font-size: 11.5px; background: var(--bg); border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: 6px; padding: 2px 7px; color: var(--text); }
.dnd-note { display: flex; align-items: center; gap: 9px; justify-content: center; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 14px; color: var(--muted); }
.dnd-note .ic { color: var(--ember); }

/* ---- Download ---------------------------------------------------------- */
.dl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 860px; margin: 0 auto; }
.dl-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-sm); text-align: center; }
.dl-ic { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 14px; background: var(--surface-2); color: var(--text); font-size: 24px; margin-bottom: 14px; }
.dl-card h3 { font-size: 21px; font-weight: 600; }
.dl-card > p { color: var(--faint); font-size: 13.5px; margin-top: 3px; }
.dl-card .btn { margin-top: 18px; }
.dl-alt { display: block; margin-top: 11px; font-size: 12.5px; color: var(--faint); text-decoration: none; }
.dl-alt:hover { color: var(--ember); text-decoration: underline; }
.dl-note { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border); text-align: left; }
.dl-note p { font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.snippet { font-family: var(--font-mono); font-size: 12px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; margin: 10px 0 0; overflow-x: auto; color: var(--text); }
.dl-foot { text-align: center; margin-top: 28px; font-size: 14px; color: var(--faint); }

/* ---- FAQ --------------------------------------------------------------- */
.faq-wrap { max-width: 760px; }
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 4px 20px; transition: border-color 0.15s ease; }
.faq details[open] { border-color: var(--border-strong); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-family: var(--font-display); font-weight: 500; font-size: 17px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); font-size: 20px; color: var(--ember); flex: none; transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 18px; color: var(--muted); font-size: 15px; line-height: 1.6; }

/* ---- Footer ------------------------------------------------------------ */
.footer { background: var(--surface); border-top: 1px solid var(--border); padding: 48px 0; }
.footer-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.footer-tag { color: var(--muted); font-size: 15px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-links a { font-size: 14px; color: var(--muted); transition: color 0.15s ease; }
.footer-links a:hover { color: var(--text); }
.footer-meta { font-size: 12.5px; color: var(--faint); font-family: var(--font-mono); }

/* ---- Responsive -------------------------------------------------------- */
@media (max-width: 860px) {
  .topnav { display: none; }
  .what-grid { grid-template-columns: 1fr; gap: 32px; }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .step, .step-reverse { grid-template-columns: 1fr; gap: 22px; }
  .step-reverse .step-text { order: 0; }
  .step-reverse .shot { order: 0; }
  .dl-grid { grid-template-columns: 1fr; }
  /* App mockup: drop the sidebar, keep the card grid */
  .ap-sidebar { display: none; }
  .ap-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  /* Stack the two-pane mockups when the step image goes full-width on phones */
  .ed-panes { grid-template-columns: 1fr; }
  .ed-src { border-right: none; border-bottom: 1px solid var(--border); }
  .mock-appr { grid-template-columns: 1fr; }
  .appr-list { display: none; }
  .lib-grid { grid-template-columns: 1fr; }
  .lib-tags { display: none; }
}
@media (max-width: 560px) {
  .hero { padding: 52px 0 30px; }
  .section { padding: 60px 0; }
  .feat-grid { grid-template-columns: 1fr; }
  .ap-grid { grid-template-columns: 1fr; }
  .app-body { min-height: 0; }
  .hero-cta .btn { flex: 1; justify-content: center; }
}

/* =============================================================================
   Motion — entrance, scroll-reveal, ambient. All gated on no-preference so
   reduced-motion users get a calm, static page. The .reveal-on class is set by
   an inline <head> script only when motion is allowed + IntersectionObserver
   exists, so the hidden initial state never flashes for anyone else.
   ========================================================================== */

/* ---- Scroll-reveal ----------------------------------------------------- */
html.reveal-on .section-head,
html.reveal-on .what-grid > *,
html.reveal-on .feat,
html.reveal-on .step,
html.reveal-on .dl-card,
html.reveal-on .faq details {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s cubic-bezier(0.2, 0.7, 0.2, 1),
              transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: opacity, transform;
}
html.reveal-on .is-in {
  opacity: 1 !important;
  transform: none !important;
}

@media (prefers-reduced-motion: no-preference) {
  /* ---- Hero entrance stagger ------------------------------------------- */
  .hero-inner > .eyebrow,
  .hero-title,
  .hero-sub,
  .hero-cta,
  .hero-note {
    opacity: 0;
    animation: heroRise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  }
  .hero-title { animation-delay: 0.08s; }
  .hero-sub   { animation-delay: 0.16s; }
  .hero-cta   { animation-delay: 0.24s; }
  .hero-note  { animation-delay: 0.32s; }

  /* App mockup: fade up on load, then a slow continuous float */
  .app-frame {
    opacity: 0;
    animation: heroFade 0.9s ease 0.4s forwards,
               floatY 7s ease-in-out 1.3s infinite;
  }

  /* ---- Hero ambient aurora -------------------------------------------- */
  .hero::before { animation: aurora 14s ease-in-out infinite; }

  /* ---- MCP pill plug pulse -------------------------------------------- */
  .hero-note .ic:not(.hero-note-arrow) {
    animation: plugPulse 2.4s ease-in-out infinite;
    transform-origin: center;
  }

  /* ---- Accent button sheen on hover ----------------------------------- */
  .btn-accent:hover::after { animation: sheen 0.7s ease; }
}

/* Aurora glow sits behind the hero content */
.hero { position: relative; }
.hero::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: -22%;
  left: 50%;
  width: 760px;
  max-width: 120%;
  height: 520px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(232, 168, 56, 0.22), rgba(232, 168, 56, 0) 70%);
  filter: blur(18px);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }

/* Accent button sheen sweep */
.btn-accent { position: relative; overflow: hidden; }
.btn-accent::after {
  content: "";
  position: absolute;
  top: 0;
  left: -130%;
  width: 55%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-18deg);
  pointer-events: none;
}

@keyframes heroRise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroFade {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
@keyframes aurora {
  0%, 100% { transform: translate(-50%, 0) scale(1); opacity: 0.85; }
  50%      { transform: translate(-46%, 14px) scale(1.08); opacity: 1; }
}
@keyframes plugPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.18); opacity: 0.72; }
}
@keyframes sheen {
  to { left: 130%; }
}

/* ---- OS-aware download + trust badge ----------------------------------- */
.dl-card { position: relative; }
.dl-card.is-primary {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}
.dl-reco {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--accent-fg);
  background: var(--accent);
  border-radius: 999px;
  padding: 4px 12px;
  box-shadow: var(--shadow-sm);
}
.dl-reco .ic { width: 12px; height: 12px; stroke-width: 2.6; }

.dl-trust {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--success);
  background: rgba(90, 122, 90, 0.1);
  border: 1px solid rgba(90, 122, 90, 0.22);
  border-radius: 999px;
  padding: 4px 11px;
}
.dl-trust .ic { width: 13px; height: 13px; color: var(--success); stroke-width: 2; }

/* ---- Rippling drop logo ------------------------------------------------ */
.brand-drop { position: relative; display: inline-flex; }
.brand-mark { transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1); }
.brand:hover .brand-mark { transform: scale(1.08); }
.brand-drop::before,
.brand-drop::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 55%;
  width: 9px;
  height: 9px;
  margin: -4.5px 0 0 -4.5px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  opacity: 0;
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .brand-drop::before { animation: ripple 3.4s ease-out infinite; }
  .brand-drop::after  { animation: ripple 3.4s ease-out infinite 1.7s; }
}
@keyframes ripple {
  0%   { opacity: 0.55; transform: scale(0.3); }
  70%  { opacity: 0;    transform: scale(2.8); }
  100% { opacity: 0;    transform: scale(2.8); }
}

/* ---- Hero parallax layer ---------------------------------------------- */
.app-parallax { will-change: transform; }

/* ---- Works-with logo strip -------------------------------------------- */
.logos { padding: 6px 0 40px; }
.logos-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.logos-label {
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--faint);
}
.logos-row {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 14px 40px;
}
.logos-row li {
  font-family: var(--font-display); font-weight: 500; font-size: 20px; letter-spacing: -0.02em;
  color: var(--muted); opacity: 0.72;
  transition: color 0.18s ease, opacity 0.18s ease;
}
.logos-row li:hover { color: var(--text); opacity: 1; }
@media (max-width: 560px) {
  .logos-row { gap: 12px 26px; }
  .logos-row li { font-size: 17px; }
}
