/* Inter, latin subset, self hosted so the site loads no third party assets.
   Google serves Inter v20 as a variable font: one file covers 100 to 900, which
   is every weight the design uses. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/inter-latin.woff2') format('woff2');
}
/* Caveat, latin subset, self hosted so the site loads no third party assets.
   Caveat v23 is also one variable file for the whole range; the design uses 500
   to 700 of it for the annotation captions. The axis ranges are read back out of
   both binaries by fetch_fonts.py. */
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/caveat-latin.woff2') format('woff2');
}

/* ==========================================================================
   Engagement Assistant - site design system  (dark-skin, EA-01u)
   Re-skinned from the retired light theme to the founder's dark premium
   landing-page language (build/site/index.html): deep canvas, glass panels,
   Inter, pink/orange/violet gradient accents, same header/footer voice.
   Markup, ids, classes, hrefs, copy and scripts are untouched; this file is
   a pure colour/token restyle. Source of truth: index.html inline <style>.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Colour */
  --ink-900: #f6eff6;      /* primary text (body) */
  --ink-700: #d9d0dc;      /* strong secondary text */
  --ink-500: #c2b8c6;      /* muted text */
  --ink-400: #968c9b;      /* faint text (large/captions only) */

  --canvas: #09060d;       /* page background (deep) */
  --surface: linear-gradient(160deg, rgba(255,255,255,.075), rgba(255,255,255,.03));
  --surface-solid: #15101b;   /* solid dark (inputs) */
  --surface-2: rgba(255,255,255,.07);    /* subtle raised grey */
  --surface-3: rgba(156,98,255,.16);     /* violet tint */

  --brand-300: #cfc0e4;    /* light violet on dark */
  --brand-400: #b99cff;    /* focus ring */
  --brand-500: #9c62ff;    /* switch / interactive */
  --brand-600: #b06cff;    /* mid violet */
  --brand-700: #ff4f9a;    /* primary accent (pink) */
  --brand-800: #ff6fae;    /* primary hover */
  --brand-900: #f6eff6;    /* headings */

  --grad: linear-gradient(135deg, #9c62ff, #ff4f9a 54%, #ffbf69);  /* brand mark */
  --grad-deep: linear-gradient(150deg, #9c62ff, #ff4f9a);          /* session / overview */

  --accent: #ff8fba;       /* links */
  --accent-hover: #ffaacb;

  --border: rgba(255,255,255,.10);
  --border-strong: rgba(255,255,255,.16);

  --success: #75e8b8;
  --success-bg: rgba(117,232,184,.12);
  --success-line: rgba(117,232,184,.5);
  --error: #ff8f9a;
  --error-bg: rgba(255,120,140,.12);
  --warning: #ffbf69;
  --warning-bg: rgba(255,191,105,.12);

  --annotation: #ff4f9a;   /* hand-drawn annotation pink */
  --heart: #ff4f9a;        /* annotation heart */

  /* Typography */
  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas,
    'Liberation Mono', monospace;
  --font-hand: 'Caveat', 'Segoe Script', 'Bradley Hand', cursive;

  /* Spacing scale (closed set) */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 20px; --s-6: 24px; --s-7: 32px; --s-8: 40px;
  --s-9: 48px; --s-10: 64px; --s-11: 80px; --s-12: 112px;

  /* Radius */
  --r-sm: 8px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 18px;
  --r-full: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 2px 10px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.55);
  --shadow-pop: 0 9px 20px rgba(0, 0, 0, 0.5);

  /* Layout */
  --container: 1120px;
  --gutter: 24px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--canvas); }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-900);
  background:
    radial-gradient(circle at 82% 7%, rgba(156, 98, 255, 0.16), transparent 26rem),
    radial-gradient(circle at 14% 13%, rgba(255, 79, 154, 0.14), transparent 24rem),
    linear-gradient(180deg, #0b0710 0%, #08060b 46%, #0d0711 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* Film-grain noise overlay, matching index.html's .noise (CSS-only, no markup). */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.025;
  z-index: 100;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.86' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
}
h1, h2, h3, h4, p { margin: 0; }
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.55; }
::selection { background: rgba(255, 79, 154, 0.34); color: #fff; }
:focus-visible { outline: 3px solid var(--brand-400); outline-offset: 3px; border-radius: 2px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.section { padding: var(--s-11) 0; }
.section-tight { padding: var(--s-9) 0; }
.section-head { max-width: 680px; margin-bottom: var(--s-9); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-700);
}
.display {
  font-size: clamp(40px, 5.2vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 800;
  color: var(--brand-900);
}
.h2 {
  font-size: clamp(26px, 3.2vw, 36px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--brand-900);
}
.h3 { font-size: 18px; line-height: 1.3; letter-spacing: -0.015em; font-weight: 700; color: var(--brand-900); }
.lead { font-size: 18px; line-height: 1.55; color: var(--ink-700); }
.muted { color: var(--ink-500); }
.small { font-size: 14px; }
.caption { font-size: 13px; color: var(--ink-500); }
.dotsep { color: var(--ink-400); }

/* ---------- Brand mark ---------- */
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  color: var(--ink-900);
  text-decoration: none;
}
.brand:hover { color: #fff; }
.brand-mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: #fff;
  background: var(--grad);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: -0.01em;
  box-shadow: inset 0 1px rgba(255,255,255,.35), var(--shadow-sm);
}
.brand-name { font-weight: 800; font-size: 16px; letter-spacing: -0.02em; line-height: 1.15; overflow-wrap: anywhere; }
.brand-sub { display: block; font-size: 11px; font-weight: 500; color: var(--ink-500); letter-spacing: 0; overflow-wrap: anywhere; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.btn svg { width: 16px; height: 16px; }
.btn-lg { min-height: 52px; padding: 14px 26px; font-size: 15px; }
.btn-md { min-height: 42px; padding: 10px 18px; font-size: 14px; }
.btn-sm { min-height: 34px; padding: 7px 13px; font-size: 13px; }
.btn-primary { background: linear-gradient(135deg, #fff, #f8e9f2); border-color: #fff; color: #160a13; box-shadow: 0 10px 30px rgba(255,255,255,.1); }
.btn-primary:hover { background: linear-gradient(135deg, #fff, #ffe2ef); border-color: #fff; color: #160a13; box-shadow: 0 16px 35px rgba(255,255,255,.16); transform: translateY(-1px); }
.btn-secondary { background: rgba(255,255,255,.04); border-color: var(--border-strong); color: #eee6ef; }
.btn-secondary:hover { background: rgba(255,255,255,.09); color: #fff; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--accent); }
.btn-ghost:hover { color: var(--accent-hover); background: rgba(255, 79, 154, 0.08); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 10, 19, 0.66);
  backdrop-filter: saturate(140%) blur(18px);
  -webkit-backdrop-filter: saturate(140%) blur(18px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 68px;
}
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  display: inline-flex;
  align-items: center;
  padding: 8px 13px;
  border-radius: var(--r-sm);
  color: var(--ink-700);
  font-size: 14px;
  font-weight: 600;
}
.nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }
.header-cta { display: flex; align-items: center; gap: 12px; }
.nav-menu { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: var(--s-10) 0 var(--s-12); }
.hero-model {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(56vw, 800px);
  height: 100%;
  object-fit: cover;
  object-position: 46% 12%;
  z-index: 0;
  pointer-events: none;
  filter: saturate(0.8) brightness(1.06);
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, #000 18%),
    linear-gradient(to bottom, transparent 0%, #000 14%, #000 86%, transparent 100%);
  mask-image:
    linear-gradient(to right, transparent 0%, #000 18%),
    linear-gradient(to bottom, transparent 0%, #000 14%, #000 86%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: var(--s-9);
}
.hero-copy { max-width: 540px; }
.hero-copy .display { margin-top: var(--s-4); }
.hero-copy .lead { margin-top: var(--s-5); max-width: 30em; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: var(--s-7); }
.hero-note {
  display: flex; align-items: center; gap: 8px;
  margin-top: var(--s-4);
  font-size: 13px; color: var(--ink-500);
}
.hero-note svg { width: 15px; height: 15px; color: var(--success); flex: none; }

/* Hero visual: crisp photo behind, browser + layered photo + session card + annotation floating */
.hero-visual { position: relative; min-height: 620px; z-index: 1; }
.hero-visual .browser {
  position: absolute;
  left: 0;
  top: 4%;
  width: min(60%, 380px);
  z-index: 1;
  transform: rotate(-2deg);
}
.hero-visual .session-card {
  position: absolute;
  right: 0;
  top: 34%;
  width: 50%;
  z-index: 3;
  transform: rotate(1.5deg);
}
.hero-layered {
  position: absolute;
  right: 12%;
  bottom: 3%;
  width: 38%;
  z-index: 2;
  transform: rotate(-3deg);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-md);
  filter: saturate(0.9);
  object-fit: cover;
  aspect-ratio: 4 / 3;
  pointer-events: none;
}
.hero-annotation {
  position: absolute;
  right: 0;
  top: -3%;
  z-index: 4;
  max-width: 220px;
}

/* ---------- Browser window (feed-only mock) ---------- */
.browser {
  border: 1px solid var(--border-strong);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 13px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.dots { display: flex; gap: 6px; flex: none; }
.dots span { width: 10px; height: 10px; border-radius: 50%; }
.dots .r { background: #f87171; }
.dots .y { background: #fbbf24; }
.dots .g { background: #34d399; }
.address {
  flex: 1;
  max-width: 260px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 5px 11px;
  font-size: 12px;
  color: var(--ink-500);
}
.address svg { width: 12px; height: 12px; color: var(--success); flex: none; }
.browser-body {
  position: relative;
  display: block;
  padding: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.012));
  max-height: 470px;
  overflow: hidden;
}
.feed { display: grid; gap: 12px; }
.feed-post {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: rgba(255,255,255,.05);
  padding: 9px;
  box-shadow: var(--shadow-sm);
}
.feed-post .fp-head { display: flex; align-items: center; gap: 8px; }
.feed-post .fp-avatar {
  width: 22px; height: 22px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--surface-3);
  flex: none;
}
.feed-post .fp-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feed-post .fp-handle {
  flex: 1; min-width: 0;
  font-size: 12px; font-weight: 700;
  color: var(--ink-900); letter-spacing: -0.01em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.feed-post .fp-more { flex: none; display: grid; place-items: center; color: var(--ink-500); }
.feed-post .fp-more svg { width: 15px; height: 15px; }
.feed-post .fp-img {
  margin-top: 8px;
  height: 150px;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--surface-3);
}
.feed-post .fp-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feed-post .fp-actions { display: flex; align-items: center; gap: 13px; margin-top: 8px; color: var(--ink-900); }
.feed-post .fp-actions svg { width: 17px; height: 17px; }
.feed-post .fp-actions .fp-save { margin-left: auto; }
.feed-post .fp-likes { margin-top: 7px; font-size: 11px; font-weight: 700; color: var(--ink-900); }
.feed-post .fp-caption { margin-top: 3px; font-size: 11px; line-height: 1.4; color: var(--ink-700); }
.feed-post .fp-handle-inline { font-weight: 700; color: var(--ink-900); }
.feed-post .fp-time { margin-top: 4px; font-size: 8.5px; letter-spacing: 0.06em; color: var(--ink-400); }

/* ---------- Session card (EA card) ---------- */
.session-card {
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--r-xl);
  background: var(--grad-deep);
  color: #fff;
  box-shadow: var(--shadow-lg);
  padding: 16px;
  font-size: 13px;
}
.sc-topbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.sc-brand { display: flex; align-items: center; gap: 9px; }
.sc-mark {
  display: grid; place-items: center; flex: none;
  width: 32px; height: 32px; border-radius: 9px;
  background: #fff; color: var(--brand-700);
  font-weight: 800; font-size: 11px;
}
.sc-brand strong { display: block; font-size: 13px; letter-spacing: -0.02em; line-height: 1.2; color: #fff; }
.sc-brand small { display: block; margin-top: 2px; font-size: 10px; color: var(--brand-300); }
.sc-badge {
  display: inline-flex; align-items: center; gap: 5px;
  border: 1px solid rgba(117, 232, 184, 0.5);
  background: rgba(46, 157, 112, 0.24);
  color: #b6f2cf;
  border-radius: var(--r-full);
  padding: 3px 9px;
  font-size: 10px; font-weight: 800;
  flex: none;
}
.sc-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #57e08b; }
.sc-eyebrow { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand-300); font-weight: 800; }
.sc-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sc-overview { margin-bottom: 12px; }
.sc-overview h4 { margin-top: 4px; font-size: 19px; letter-spacing: -0.02em; color: #fff; }
.sc-overview p { margin-top: 4px; color: #efe6f7; font-size: 12px; line-height: 1.4; }
.sc-toggles {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--r-md);
  padding: 2px 12px;
}
.sc-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 34px; font-size: 12px; font-weight: 600; color: #fff; }
.sc-toggle + .sc-toggle { border-top: 1px solid rgba(255, 255, 255, 0.10); }
.sc-switch {
  position: relative; flex: none;
  width: 32px; height: 18px;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.38);
}
.sc-switch::before {
  content: ""; position: absolute; left: 3px; top: 3px;
  width: 12px; height: 12px; border-radius: 50%;
  background: #fff;
}
.sc-chips { display: flex; gap: 6px; margin-top: 10px; }
.sc-chip {
  flex: 1; text-align: center;
  min-height: 28px; display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--r-sm);
  color: #fff; background: rgba(255, 255, 255, 0.10);
  font-size: 11px; font-weight: 700;
}
.sc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.sc-stats > div { padding: 6px 8px; border-radius: var(--r-sm); background: rgba(255, 255, 255, 0.10); }
.sc-stats strong { display: block; font-size: 16px; line-height: 1.1; color: #fff; }
.sc-stats span { display: block; margin-top: 2px; font-size: 9px; color: var(--brand-300); }

/* ---------- Hand-drawn annotations ---------- */
.annotation { position: relative; }
.annot-arrow { display: block; width: 118px; height: 60px; color: var(--annotation); }
.annot-caption {
  display: inline-block;
  font-family: var(--font-hand);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.05;
  color: var(--annotation);
  transform: rotate(-3deg);
  letter-spacing: 0.01em;
  paint-order: stroke fill;
  -webkit-text-stroke: 5px #0b0710;
}
.annot-heart {
  display: inline-block;
  width: 17px; height: 17px;
  color: var(--heart); fill: var(--heart);
  vertical-align: -2px;
  margin-left: 3px;
}

/* ---------- Features ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-5);
}
.feature {
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: var(--surface);
  padding: var(--s-6);
  box-shadow: var(--shadow-sm);
}
.feature-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: var(--s-4); }
.feature-icon {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  color: var(--brand-700);
  background: var(--surface-3);
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-img {
  width: 48px; height: 48px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,.18);
  box-shadow: var(--shadow-sm);
  background: var(--surface-3);
  flex: none;
}
.feature-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feature h3 { color: var(--brand-900); margin-bottom: var(--s-2); }
.feature p { color: var(--ink-500); font-size: 14px; line-height: 1.5; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); }
.step {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: var(--surface);
  padding: var(--s-6);
  box-shadow: var(--shadow-sm);
}
.step-num {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: var(--r-full);
  background: var(--grad);
  color: #fff;
  font-weight: 800; font-size: 17px;
  margin-bottom: var(--s-4);
}
.step h3 { color: var(--brand-900); margin-bottom: var(--s-2); }
.step p { color: var(--ink-500); font-size: 14px; line-height: 1.5; }
.step code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: #f0d6ff;
  background: var(--surface-3);
  border-radius: 5px;
  padding: 1px 5px;
}

/* ---------- Pricing ---------- */
.pricing-moment { position: relative; overflow: hidden; padding: var(--s-11) 0 var(--s-12); }
.pricing-scene {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: min(52vw, 740px);
  object-fit: cover;
  object-position: 60% 44%;
  z-index: 0;
  pointer-events: none;
  filter: saturate(0.8) brightness(1.06);
  -webkit-mask-image:
    linear-gradient(to left, transparent 0%, #000 18%),
    linear-gradient(to bottom, transparent 0%, #000 14%, #000 86%, transparent 100%);
  mask-image:
    linear-gradient(to left, transparent 0%, #000 18%),
    linear-gradient(to bottom, transparent 0%, #000 14%, #000 86%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
.pricing-layered {
  position: absolute;
  left: 5%;
  bottom: 6%;
  width: min(24%, 240px);
  z-index: 1;
  transform: rotate(2.5deg);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-md);
  filter: saturate(0.9);
  object-fit: cover;
  aspect-ratio: 4 / 5;
  pointer-events: none;
}
.pricing-moment .container { position: relative; z-index: 1; }
.pricing-head { position: relative; max-width: 640px; margin-bottom: var(--s-9); }
.pricing-head::before {
  content: "";
  position: absolute;
  inset: -20px -28px;
  z-index: -1;
  background: radial-gradient(140% 140% at 0% 0%, rgba(9,6,13,0.94) 0%, rgba(9,6,13,0.55) 46%, rgba(9,6,13,0) 74%);
  border-radius: 16px;
  pointer-events: none;
}
.pricing-head .h2 { margin-top: 12px; }
.pricing-head .eyebrow { text-shadow: 0 1px 2px rgba(0,0,0,0.75); }
.pricing-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
  gap: var(--s-9);
  align-items: center;
}
.plan-wrap { position: relative; }
.plan {
  position: relative;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-xl);
  background: var(--surface);
  padding: var(--s-7);
  box-shadow: var(--shadow-lg);
}
.plan-flag {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: var(--r-full);
  padding: 5px 13px;
  background: var(--grad);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.plan-price { display: flex; align-items: baseline; gap: 8px; margin-top: var(--s-3); }
.plan-price .amount { font-size: 56px; line-height: 1; letter-spacing: -0.035em; font-weight: 800; color: var(--brand-900); }
.plan-price .per { font-size: 16px; color: var(--ink-500); font-weight: 600; }
.plan-period { margin-top: var(--s-2); font-size: 14px; color: var(--ink-500); }
.plan-includes { list-style: none; margin: var(--s-6) 0 0; padding: 0; }
.plan-includes li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 9px 0;
  border-top: 1px solid var(--border);
  font-size: 15px;
  color: var(--ink-700);
}
.plan-includes li:first-child { border-top: 0; }
.plan-includes li svg { width: 17px; height: 17px; color: var(--success); flex: none; margin-top: 2px; }
.plan-cta { margin-top: var(--s-6); }
.plan-note { margin-top: var(--s-4); text-align: center; font-size: 13px; color: var(--ink-500); }
.pricing-annotation {
  position: absolute;
  right: -2%;
  top: -12%;
  z-index: 3;
  max-width: 230px;
}

/* ---------- FAQ ---------- */
.faq { max-width: 720px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  margin-bottom: var(--s-3);
  overflow: hidden;
}
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  list-style: none;
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 700;
  font-size: 15px;
  color: var(--brand-900);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chev { flex: none; width: 18px; height: 18px; color: var(--ink-400); transition: transform 0.18s ease; }
.faq-item[open] summary .chev { transform: rotate(180deg); }
.faq-item .faq-a { padding: 0 20px 18px; color: var(--ink-500); font-size: 15px; line-height: 1.6; }
.faq-item .faq-a p + p { margin-top: 10px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: rgba(255,255,255,.02); padding: var(--s-10) 0 var(--s-8); }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: var(--s-7);
}
.footer-col h4 { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: #a99daf; margin-bottom: var(--s-4); }
.footer-col a, .footer-col span {
  display: block; padding: 5px 0;
  color: var(--ink-700); font-size: 14px; font-weight: 500;
  overflow-wrap: anywhere;
}
.footer-col a:hover { color: #fff; }
.footer-brand p { margin-top: var(--s-3); font-size: 14px; color: var(--ink-500); max-width: 30em; }
.footer-legal {
  margin-top: var(--s-8);
  padding-top: var(--s-5);
  border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px;
  font-size: 13px; color: var(--ink-500);
}
.footer-legal a { color: var(--ink-500); text-decoration: underline; text-underline-offset: 2px; }
.footer-legal a:hover { color: #fff; }

/* ---------- Forms ---------- */
.field { display: grid; gap: 7px; margin-bottom: var(--s-4); }
.field label { font-size: 14px; font-weight: 700; }
.field .help { font-size: 13px; color: var(--ink-500); }
.input {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  background: var(--surface-solid);
  color: var(--ink-900);
  font-size: 15px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.input::placeholder { color: var(--ink-400); }
.input:focus { outline: none; border-color: var(--brand-500); box-shadow: 0 0 0 3px rgba(156, 98, 255, 0.22); }
.input[aria-invalid="true"] { border-color: var(--error); box-shadow: 0 0 0 3px rgba(255, 143, 154, 0.16); }
.input[disabled] { background: rgba(255,255,255,.03); color: var(--ink-400); cursor: not-allowed; }
.field-error { font-size: 13px; color: var(--error); }

/* ---------- Utility cards (welcome / billing) ---------- */
.util-panel {
  max-width: 620px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: var(--surface);
  padding: var(--s-7);
  box-shadow: inset 0 1px rgba(255,255,255,.05), var(--shadow-md);
}
.util-panel.centered { text-align: center; }
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  border-radius: var(--r-full);
  padding: 5px 11px;
  background: var(--success-bg);
  color: var(--success);
  font-size: 12px; font-weight: 800;
}
.badge svg { width: 13px; height: 13px; }
.badge.warn { background: var(--warning-bg); color: var(--warning); }

.key-card {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-lg);
  background: rgba(255,255,255,.04);
  padding: 16px 18px;
  margin: var(--s-5) 0;
}
.key-card .key {
  font-family: var(--font-mono);
  font-size: clamp(15px, 3.5vw, 19px);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #f5ebd0;
  overflow-wrap: anywhere;
}

.setup-steps { list-style: none; margin: 0; padding: 0; text-align: left; }
.setup-steps li {
  display: flex; gap: 14px;
  padding: 13px 0;
  border-top: 1px solid var(--border);
  font-size: 15px;
}
.setup-steps li:first-child { border-top: 0; }
.setup-steps .num {
  flex: none;
  display: grid; place-items: center;
  width: 26px; height: 26px;
  border-radius: var(--r-full);
  background: var(--surface-3);
  color: var(--brand-300);
  font-weight: 800; font-size: 13px;
}
.setup-steps code {
  font-family: var(--font-mono);
  font-size: 13px;
  color: #f0d6ff;
  background: var(--surface-3);
  border-radius: 5px;
  padding: 1px 5px;
}

.inline-note {
  display: flex; align-items: flex-start; gap: 10px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: rgba(255,255,255,.05);
  padding: 13px 15px;
  font-size: 14px;
  color: var(--ink-500);
  text-align: left;
}
.inline-note svg { width: 16px; height: 16px; color: var(--warning); flex: none; margin-top: 2px; }

/* ---------- Popup state mocks ---------- */
.mock-stage {
  display: flex; flex-wrap: wrap; gap: var(--s-6);
  align-items: flex-start; justify-content: center;
}
.mock-cell { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; justify-items: center; min-width: 0; max-width: 100%; }
.mock-label { font-size: 13px; font-weight: 700; color: var(--ink-500); }
.mock-popup {
  width: 390px;
  max-width: 100%;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 0;
  background: var(--canvas);
  box-shadow: var(--shadow-lg);
  padding: 14px;
  font-size: 13px;
}
.mock-popup .pp-h { font-size: 16px; letter-spacing: -0.03em; line-height: 1.2; color: var(--brand-900); }
.mock-popup .pp-muted { color: var(--ink-500); font-size: 11px; margin-top: 3px; }
.mock-popup .pp-card { border-radius: var(--r-lg); }
.mock-popup .input { min-height: 38px; font-size: 13px; padding: 8px 10px; }
.mock-popup .btn { min-height: 36px; font-size: 12px; padding: 8px 11px; border-radius: var(--r-sm); }

/* ---------- Extension popup (real popup, dark) ---------- */
.popup {
  position: relative;
  width: 340px;
  max-width: 100%;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  padding: 14px;
  font-size: 13px;
}
.pp-topbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.pp-brand { display: flex; align-items: center; gap: 9px; }
.pp-mark {
  display: grid; place-items: center; flex: none;
  width: 34px; height: 34px; border-radius: 10px;
  color: #fff; background: var(--grad);
  font-weight: 800; font-size: 11px;
}
.pp-brand strong { display: block; font-size: 13px; letter-spacing: -0.02em; line-height: 1.2; color: var(--ink-900); }
.pp-brand small { display: block; margin-top: 2px; font-size: 10px; color: var(--ink-500); }
.pp-link { flex: none; padding: 5px 0; border: 0; background: none; color: var(--accent); font-size: 11px; font-weight: 700; }
.pp-overview {
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--r-lg);
  padding: 11px 13px;
  color: #fff;
  background: var(--grad-deep);
  box-shadow: var(--shadow-pop);
}
.pp-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pp-eyebrow { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: #f3e6ff; font-weight: 800; }
.pp-badge {
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: var(--r-full);
  padding: 4px 8px;
  font-size: 10px; font-weight: 800;
  color: #f2eaf5;
}
.pp-badge.on { border-color: var(--success-line); color: #c5ffe0; background: rgba(46, 157, 112, 0.19); }
.pp-overview h4 { margin-top: 5px; font-size: 19px; letter-spacing: -0.02em; color: #fff; }
.pp-overview p { margin-top: 5px; color: #f1e8f3; line-height: 1.4; }
.pp-card {
  margin-top: 9px;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: rgba(255,255,255,.05);
  box-shadow: var(--shadow-sm);
}
.pp-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; border-bottom: 1px solid var(--border); }
.pp-toggle:last-child { border-bottom: 0; }
.pp-toggle span { font-size: 12px; font-weight: 650; }
.switch {
  position: relative; appearance: none; flex: none;
  width: 36px; height: 21px; margin: 0;
  border: 0; border-radius: var(--r-full);
  background: rgba(255,255,255,.22); cursor: pointer;
}
.switch::before {
  content: ""; position: absolute; left: 3px; top: 3px;
  width: 15px; height: 15px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  transition: transform 0.2s ease;
}
.switch:checked { background: var(--brand-500); }
.switch:checked::before { transform: translateX(15px); }
.pp-chips { display: flex; gap: 7px; }
.pp-chip {
  flex: 1; text-align: center;
  min-height: 32px; display: grid; place-items: center;
  border: 1px solid var(--border-strong); border-radius: var(--r-sm);
  color: var(--ink-500); background: var(--surface-2);
  font-size: 11px; font-weight: 700;
}
.pp-chip.on { border-color: rgba(255,79,154,.55); color: #ffd0e4; background: rgba(255,79,154,.14); }
.pp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pp-stats > div { padding: 6px 8px; border-radius: var(--r-sm); background: var(--surface-2); }
.pp-stats strong { display: block; font-size: 17px; line-height: 1.1; color: var(--ink-900); }
.pp-stats span { display: block; margin-top: 3px; font-size: 10px; color: var(--ink-500); }

/* ---------- Legal / plain text pages ---------- */
.legal-panel {
  max-width: 720px;
  padding: var(--s-9);
}
.legal-body {
  margin-top: var(--s-6);
  color: var(--ink-700);
  font-size: 15px;
  line-height: 1.65;
}
.legal-body p { margin: 0 0 16px; }
.legal-body h2.h3 { margin: 28px 0 10px; color: var(--brand-900); }
.legal-body ul { margin: 0 0 16px; padding-left: 20px; }
.legal-body li { margin: 6px 0; }
.legal-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.legal-body a:hover { color: var(--accent-hover); }
.legal-body code {
  font-family: var(--font-mono);
  font-size: 13px;
  color: #f0d6ff;
  background: var(--surface-3);
  border-radius: 5px;
  padding: 1px 5px;
}

/* ---------- Additional state mock panels ---------- */
.state-panel {
  max-width: 440px;
  width: 100%;
}
.mock-cell-wide {
  max-width: 460px;
  min-width: 300px;
}
.state-form { text-align: left; }
.state-form .field { margin-bottom: var(--s-3); }
.state-form .btn { width: 100%; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--s-9); }
  .hero-copy { max-width: 640px; }
  .hero-model {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 58%;
    object-position: 50% 16%;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 16%, #000 84%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 16%, #000 84%, transparent 100%);
    -webkit-mask-composite: source-over;
    mask-composite: add;
  }
  .hero-visual { min-height: 560px; }
  .features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pricing-layout { grid-template-columns: 1fr; gap: var(--s-8); }
  .pricing-scene {
    top: auto;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-position: 50% 42%;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 16%, #000 84%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 16%, #000 84%, transparent 100%);
    -webkit-mask-composite: source-over;
    mask-composite: add;
  }
  .pricing-layered { display: none; }
  .pricing-head { max-width: 640px; }
  .plan-wrap { max-width: 460px; }
}
@media (max-width: 820px) {
  .nav { display: none; }
  .nav-menu { display: block; position: relative; }
  .nav-menu summary {
    display: inline-flex; align-items: center; gap: 8px;
    list-style: none; cursor: pointer;
    padding: 9px 14px;
    border: 1px solid var(--border-strong);
    border-radius: var(--r-md);
    background: rgba(255,255,255,.04);
    color: var(--ink-900);
    font-weight: 700; font-size: 14px;
  }
  .nav-menu summary::-webkit-details-marker { display: none; }
  .nav-menu summary svg { width: 16px; height: 16px; }
  .nav-menu .menu-panel {
    position: absolute; right: 0; top: calc(100% + 8px);
    min-width: 220px;
    background: rgba(15,10,19,.96);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg);
    padding: 8px;
  }
  .nav-menu .menu-panel a {
    display: block; padding: 11px 13px;
    border-radius: var(--r-sm);
    color: var(--ink-900);
    font-size: 15px; font-weight: 600;
  }
  .nav-menu .menu-panel a:hover { background: var(--surface-2); }
}
@media (max-width: 680px) {
  .section { padding: var(--s-9) 0; }
  .hero { padding: var(--s-8) 0 var(--s-10); }
  .features-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6); }
  .hero-visual { min-height: 600px; }
  .hero-visual .browser { width: 74%; top: 96px; }
  .hero-visual .session-card { width: 56%; top: 46%; }
  .hero-layered { width: 34%; right: 6%; bottom: 2%; }
  .hero-annotation { top: 0; right: auto; left: 0; max-width: 220px; }
  .browser-body { max-height: 340px; }
  .feed-post .fp-img { height: 132px; }
  .annot-caption { font-size: 23px; transform: rotate(-1.5deg); -webkit-text-stroke: 4px #0b0710; }
  .annot-arrow { width: 96px; height: 48px; }
  .util-panel { padding: var(--s-5); }
  .plan { padding: var(--s-5); }
  .plan-price .amount { font-size: 46px; }
  .hero-model { object-position: 50% 20%; }
  .pricing-scene { height: 100%; }
  .pricing-annotation { right: 0; top: -16%; max-width: 210px; }
  .legal-panel { padding: var(--s-6); }
}
@media (max-width: 430px) {
  :root { --gutter: 16px; }
  .hero-cta .btn { flex: 1 1 auto; }
  .header-cta .btn { display: none; }
  .hero-visual { min-height: 560px; }
  .hero-visual .browser { width: 76%; }
  .hero-visual .session-card { width: 60%; top: 45%; }
  .hero-layered { width: 36%; right: 4%; }
  .hero-annotation { max-width: 200px; }
  .pricing-annotation { right: 0; top: -15%; }
}

/* ==========================================================================
   How to install - illustrated Chrome UI steps (restyled to dark palette)
   ========================================================================== */
.install-steps { display: grid; gap: var(--s-8); }
.install-step {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: var(--s-5);
}
.install-rail { display: flex; flex-direction: column; align-items: center; }
.install-num {
  flex: none;
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: var(--r-full);
  background: var(--grad);
  color: #fff;
  font-weight: 800; font-size: 15px;
  box-shadow: 0 0 0 5px rgba(156, 98, 255, 0.16);
}
.install-rail::after {
  content: "";
  flex: 1;
  width: 2px;
  margin-top: 12px;
  background: var(--border-strong);
  min-height: 40px;
}
.install-step:last-child .install-rail::after { display: none; }
.install-body {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: var(--s-7);
  align-items: center;
  padding: var(--s-2) 0;
}
.install-copy h3 { color: var(--brand-900); margin-bottom: var(--s-2); }
.install-copy p { color: var(--ink-500); font-size: 15px; line-height: 1.5; }
.install-copy code {
  font-family: var(--font-mono);
  font-size: 13px;
  color: #f0d6ff;
  background: var(--surface-3);
  border-radius: 5px;
  padding: 1px 5px;
}
.install-visual { min-width: 0; }
.install-visual .btn { cursor: default; pointer-events: none; }

/* Chrome window illustration */
.chrome {
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  min-width: 0;
}
.chrome-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 11px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.chrome-bar .dots { gap: 5px; }
.chrome-bar .dots span { width: 9px; height: 9px; }
.chrome-addr {
  flex: 1;
  max-width: 240px;
  margin: 0 auto;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--ink-500);
  min-width: 0;
}
.chrome-addr svg { width: 11px; height: 11px; color: var(--success); flex: none; }
.chrome-body {
  padding: 18px 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.012));
  min-height: 168px;
  display: grid;
  align-content: center;
}

/* Step 1 - download */
.dl-block { display: grid; justify-items: center; gap: 10px; text-align: center; }
.dl-zip {
  display: grid; place-items: center;
  width: 52px; height: 60px;
  border-radius: var(--r-md);
  background: var(--surface-3);
  color: #f0d6ff;
}
.dl-zip svg { width: 26px; height: 26px; }
.dl-note { font-size: 11px; color: var(--ink-500); }
.chrome-shelf {
  display: flex; align-items: center; gap: 10px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  padding: 9px 12px;
}
.shelf-icon { display: grid; place-items: center; width: 22px; height: 22px; color: #f0d6ff; flex: none; }
.shelf-icon svg { width: 18px; height: 18px; }
.shelf-name { flex: 1; min-width: 0; font-size: 12px; color: var(--ink-700); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shelf-status { flex: none; font-size: 11px; font-weight: 700; color: var(--success); }

/* Step 2 - unzip */
.unzip { display: flex; align-items: center; justify-content: center; gap: var(--s-4); flex-wrap: wrap; }
.ufile { display: grid; justify-items: center; gap: 8px; text-align: center; }
.u-glyph { display: grid; place-items: center; width: 62px; height: 62px; border-radius: var(--r-md); }
.u-glyph.zip { background: var(--surface-3); color: #f0d6ff; }
.u-glyph.folder { background: rgba(255,255,255,.05); border: 1px solid var(--border-strong); color: #b06cff; }
.u-glyph svg { width: 28px; height: 28px; }
.u-name { font-size: 11px; color: var(--ink-500); max-width: 118px; overflow-wrap: anywhere; }
.u-step { display: grid; justify-items: center; gap: 7px; color: var(--brand-500); }
.u-step svg { width: 26px; height: 26px; }

/* Callout pill (arrow hints) */
.callout {
  position: relative;
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--brand-700);
  color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 4px 9px;
  border-radius: 6px;
  white-space: nowrap;
}
.callout::after {
  content: "";
  position: absolute;
  display: none;
  width: 8px; height: 8px;
  background: var(--brand-700);
  transform: rotate(45deg);
}
.callout.right::after { display: block; right: -4px; top: 50%; margin-top: -4px; }

/* Highlight spot (toggle / button emphasis) */
.spot {
  position: relative;
  border-radius: var(--r-sm);
  box-shadow: 0 0 0 3px rgba(156, 98, 255, 0.28), 0 2px 8px rgba(0, 0, 0, 0.4);
  background: var(--surface-3);
}

/* Steps 3 + 4 - extensions page */
.ext-page { display: grid; gap: 12px; align-content: center; }
.ext-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ext-title { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--ink-900); }
.ext-title svg { width: 17px; height: 17px; color: var(--brand-600); }
.dev-toggle { display: inline-flex; align-items: center; gap: 8px; padding: 4px 8px 4px 6px; }
.dev-toggle .lbl { font-size: 11px; font-weight: 600; color: var(--ink-700); }
.switch.is-on { background: var(--brand-500); }
.switch.is-on::before { transform: translateX(15px); }
.load-row { display: flex; align-items: center; }
.load-row .btn-sm { min-height: 30px; padding: 6px 12px; font-size: 12px; }
.ext-list { display: grid; gap: 8px; }
.ext-card {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: rgba(255,255,255,.05);
  padding: 9px 11px;
}
.ext-card .ec-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; background: var(--surface-3); color: #f0d6ff; flex: none; }
.ext-card .ec-icon svg { width: 15px; height: 15px; }
.ext-card .ec-icon.ea { color: #fff; background: var(--grad); font-size: 9px; font-weight: 800; }
.ext-card .ec-name { flex: 1; min-width: 0; font-size: 12px; font-weight: 600; color: var(--ink-700); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ext-card .ec-tag { flex: none; font-size: 10px; color: var(--ink-400); }
.ext-card.ghost { opacity: 0.5; }

/* Step 4 - file picker */
.picker {
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  background: rgba(255,255,255,.06);
  box-shadow: var(--shadow-lg);
  padding: 12px 13px;
  display: grid; gap: 10px;
}
.picker-head { font-size: 12px; font-weight: 700; color: var(--ink-900); }
.picker-row {
  display: flex; align-items: center; gap: 9px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface-2);
  padding: 8px 10px;
  font-size: 12px; color: var(--ink-700);
}
.picker-row svg { width: 16px; height: 16px; color: var(--brand-600); flex: none; }
.picker-actions { display: flex; justify-content: flex-end; gap: 8px; }
.picker-actions .btn-sm { min-height: 30px; padding: 6px 12px; font-size: 12px; }

/* Step 5 - pin + activate popup */
.pin-bar { position: relative; }
.pin-icons { display: flex; align-items: center; gap: 6px; flex: none; }
.pin-ic {
  display: grid; place-items: center;
  width: 24px; height: 24px;
  border-radius: 6px;
  color: var(--ink-500);
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border);
}
.pin-ic svg { width: 13px; height: 13px; }
.pin-ic.ea { color: #fff; background: var(--grad); border-color: transparent; font-size: 9px; font-weight: 800; }
.pin-callout { display: inline-flex; align-items: center; gap: 6px; }
.step5-body { display: grid; justify-items: center; }
.install-popup { width: 300px; max-width: 100%; }

/* Compact variant (welcome page) */
.install-steps.compact { gap: var(--s-4); }
.install-steps.compact .install-step { grid-template-columns: 1fr; gap: var(--s-4); }
.install-steps.compact .install-rail { flex-direction: row; gap: 10px; }
.install-steps.compact .install-rail::after { display: none; }
.install-steps.compact .install-body { grid-template-columns: 1fr; gap: var(--s-4); padding: 0; }
.install-steps.compact .install-num { width: 30px; height: 30px; font-size: 13px; box-shadow: 0 0 0 4px rgba(156, 98, 255, 0.16); }
.install-steps.compact .chrome-body { padding: 12px; min-height: 0; }
.install-steps.compact .chrome-bar { padding: 6px 9px; }
.install-steps.compact .chrome-addr { font-size: 10px; }
.install-steps.compact .install-popup { width: 260px; }

/* Install responsive */
@media (max-width: 820px) {
  .install-step { grid-template-columns: 1fr; gap: var(--s-4); }
  .install-rail { flex-direction: row; gap: 10px; align-items: center; }
  .install-rail::after { display: none; }
  .install-body { grid-template-columns: 1fr; gap: var(--s-4); }
}
@media (max-width: 680px) {
  .install-steps { gap: var(--s-7); }
  .chrome-body { padding: 14px 12px; }
  .unzip { gap: var(--s-3); }
  .u-glyph { width: 54px; height: 54px; }
}

/* ---------- Build additions (v2.5.0) ---------- */
/* Checkout and portal buttons while a request is in flight. */
[aria-busy="true"] { opacity: 0.6; pointer-events: none; }
#portalError { margin-top: 12px; }
#checkoutError { margin-top: 12px; }
#checkoutError a { color: inherit; }
/* Welcome state panels share the slot and the mockup spacing. */
.util-panel[hidden] { display: none !important; }
