/* ───────────────────────────────────────────────────────────────────────────
   v2 additions — extension mockup, hero split, pair section, install,
   browser variants. Loads AFTER styles.css.
   ─────────────────────────────────────────────────────────────────────────── */

/* ─── Section eyebrow (small label above section titles) ────────────────── */
.section-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-tint);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}

.title-line { display: block; }

/* ─── Hero v2 ───────────────────────────────────────────────────────────── */
.hero-v2 {
  padding: 24px 0 64px;
}
.hero-v2-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: center;
}
.hero-v2-copy { min-width: 0; align-self: start; }
.hero-v2-title {
  font-size: clamp(34px, 4.8vw, 56px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin: 0 0 22px;
  text-wrap: balance;
}
.hero-v2-title-l1 { display: block; }
.hero-v2-title-l2 {
  display: block;
  background: linear-gradient(110deg, var(--accent), var(--accent-soft));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-v2-sub {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 0 28px;
  line-height: 1.55;
  text-wrap: pretty;
}

/* hero toggle (Extension / Bot / Both) */
.hero-v2-toggle {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-v2-toggle-label {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-faint);
  letter-spacing: 0.02em;
}
.seg-toggle {
  display: inline-flex;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 3px;
  gap: 2px;
}
.seg-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.2s;
}
.seg-btn:hover { color: var(--text); }
.seg-btn.active {
  background: var(--bg-elev);
  color: var(--accent);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
}

/* hero-v2 stage — extension mockup + bot card */
.hero-v2-stage {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  min-width: 0;
}
.hero-v2-ext {
  position: relative;
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.hero-v2-ext-caption {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--text-faint);
  letter-spacing: -0.005em;
}
.ext-cap-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #2EA864;
  box-shadow: 0 0 0 3px rgba(46,168,100,0.22);
  animation: pulse 2s ease-in-out infinite;
}
.hero-v2-bot {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  padding: 18px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.hero-bot-phone {
  display: flex;
  align-items: center;
}
.hero-bot-qr {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.hero-bot-qr .qr-canvas { padding: 6px; background: white; border-radius: 8px; }
.hero-bot-qr-name {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 4px;
}
.hero-bot-qr-cap {
  font-size: 12.5px;
  color: var(--text-faint);
  line-height: 1.4;
}

/* Hero variant: extension focused (default) — bot is small below */
.hero-stage-extension .hero-v2-ext { order: 1; }
.hero-stage-extension .hero-v2-bot { order: 2; transform: scale(0.96); opacity: 0.92; }

/* Hero variant: bot focused — bot big, ext small below */
.hero-stage-bot {
  grid-template-columns: 1fr;
}
.hero-stage-bot .hero-v2-ext {
  order: 2;
  transform: scale(0.85);
  transform-origin: top left;
  opacity: 0.65;
  max-height: 280px;
  overflow: hidden;
  filter: saturate(0.6);
}
.hero-stage-bot .hero-v2-bot {
  order: 1;
  transform: scale(1);
  padding: 28px;
  background: linear-gradient(180deg, var(--accent-tint), var(--bg-elev));
  border-color: var(--accent-soft);
}
.hero-stage-bot .hero-bot-phone { transform: scale(1.05); justify-content: center; }
.hero-stage-bot .hero-bot-qr { justify-content: center; }
.hero-stage-bot .hero-v2-bot {
  grid-template-columns: 1fr;
  gap: 22px;
}

/* Hero variant: both — equal */
.hero-stage-both .hero-v2-ext { order: 1; }
.hero-stage-both .hero-v2-bot { order: 2; }

@media (max-width: 980px) {
  .hero-v2-inner { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 640px) {
  .hero-v2-bot { grid-template-columns: 1fr; }
  .hero-bot-phone { justify-content: center; }
  .hero-bot-qr { justify-content: center; }
}

/* v2 nav has more links — raise the collapse breakpoint */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .nav-cta span { display: none; }
}

/* small phone for hero mini */
.phone-mini { width: 220px; }
.phone-mini .phone-screen { height: 360px; }
.phone-mini .chat-header { padding: 30px 10px 8px; }
.phone-mini .chat-avatar { width: 28px; height: 28px; }
.phone-mini .chat-name { font-size: 13px; }
.phone-mini .chat-status { font-size: 10.5px; }
.phone-mini .chat-body { padding: 10px 8px; }
.phone-mini .msg-bubble { font-size: 12px; padding: 6px 10px; }

/* ─── Chrome window mockup ─────────────────────────────────────────────── */
.chrome-window {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background: #ECEEF0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(14,27,44,0.18), 0 10px 30px rgba(14,27,44,0.08);
  border: 1px solid rgba(0,0,0,0.06);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}
[data-theme="dark"] .chrome-window {
  background: #2a2d31;
  border-color: rgba(255,255,255,0.06);
  box-shadow: 0 30px 80px rgba(0,0,0,0.45), 0 10px 30px rgba(0,0,0,0.30);
}

/* Title bar (tabs row) */
.cw-titlebar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px 0;
  background: #DEE1E6;
  position: relative;
}
[data-theme="dark"] .cw-titlebar { background: #20232a; }

.cw-traffic { display: flex; gap: 6px; padding-right: 6px; }
.cw-tl {
  width: 11px; height: 11px;
  border-radius: 50%;
  display: inline-block;
}
.cw-tl-red { background: #FF5F57; }
.cw-tl-yel { background: #FFBD2E; }
.cw-tl-grn { background: #28C840; }

.cw-tabs {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  flex: 1;
  min-width: 0;
}
.cw-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px 8px;
  border-radius: 8px 8px 0 0;
  background: transparent;
  font-size: 12px;
  color: #4a5260;
  max-width: 240px;
  min-width: 0;
  position: relative;
}
.cw-tab-active {
  background: #ECEEF0;
  color: #1c2128;
}
[data-theme="dark"] .cw-tab-active { background: #2a2d31; color: #d8dde6; }
.cw-favicon {
  width: 16px; height: 16px;
  border-radius: 3px;
  background: #ff9000;
  color: white;
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-sans);
}
.cw-tab-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cw-tab-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px; height: 16px;
  border-radius: 50%;
  color: #6c757d;
  cursor: pointer;
  flex-shrink: 0;
}
.cw-tab-close:hover { background: rgba(0,0,0,0.08); }
.cw-tab-new {
  padding: 2px 8px;
  font-size: 15px;
  color: #4a5260;
  border-radius: 6px;
  cursor: pointer;
  margin-bottom: 6px;
}
.cw-titlebar-actions { color: #4a5260; padding-right: 4px; }

/* Toolbar */
.cw-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: #ECEEF0;
  border-bottom: 1px solid #D6DAE0;
}
[data-theme="dark"] .cw-toolbar {
  background: #2a2d31;
  border-bottom-color: #1c1f23;
}
.cw-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  color: #4a5260;
  cursor: pointer;
  transition: background 0.15s;
}
[data-theme="dark"] .cw-nav-btn { color: #aab1bd; }
.cw-nav-btn:hover { background: rgba(0,0,0,0.06); }
[data-theme="dark"] .cw-nav-btn:hover { background: rgba(255,255,255,0.08); }

.cw-urlbar {
  flex: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #F8F9FA;
  border: 1px solid #D6DAE0;
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 12.5px;
  color: #5a6370;
  min-width: 0;
  overflow: hidden;
}
[data-theme="dark"] .cw-urlbar {
  background: #1c1f23;
  border-color: #34383f;
  color: #9aa3b0;
}
.cw-url-protocol { color: #9aa3b0; }
.cw-url-domain { font-weight: 500; color: #1c2128; }
[data-theme="dark"] .cw-url-domain { color: #e2e7ef; }
.cw-url-path { color: #6c757d; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.cw-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  padding-left: 4px;
}
.cw-tb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  color: #6c757d;
}
[data-theme="dark"] .cw-tb-btn { color: #aab1bd; }
.cw-tb-btn:hover { background: rgba(0,0,0,0.06); }

.cw-ext-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  transition: all 0.3s;
  color: #6c757d;
  background: transparent;
}
.cw-ext-btn .cw-ext-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  border-radius: 50%;
  transition: all 0.3s;
  /* inactive: greyed-out toolbar icon, like a real pinned extension */
  filter: grayscale(1) opacity(0.7);
}
.cw-ext-glyph img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: block;
}
.cw-ext-btn.active .cw-ext-glyph {
  filter: none;
  box-shadow: 0 2px 6px rgba(34,158,217,0.45);
  transform: scale(1.08);
}
.cw-ext-pulse {
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  animation: extPulse 1.4s ease-out infinite;
  pointer-events: none;
}
@keyframes extPulse {
  0% { transform: scale(0.85); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

.cw-avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff9854, #f25c54);
  color: white;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
}

/* Browser variants */
.cw-firefox .cw-titlebar { background: #f0f0f4; }
.cw-firefox .cw-tab-active { background: #ffffff; box-shadow: 0 -1px 0 #ff9000 inset; }
.cw-firefox .cw-toolbar { background: #ffffff; border-bottom-color: #e0e0e6; }
.cw-firefox .cw-urlbar { background: #ffffff; border-color: #d2d3db; }
[data-theme="dark"] .cw-firefox .cw-titlebar { background: #1c1b22; }
[data-theme="dark"] .cw-firefox .cw-tab-active { background: #2b2a33; }
[data-theme="dark"] .cw-firefox .cw-toolbar { background: #2b2a33; }

.cw-safari .cw-titlebar { padding-top: 10px; background: #e8eaed; }
.cw-safari .cw-tabs { display: none; }
.cw-safari .cw-traffic { padding-right: 0; }
.cw-safari .cw-toolbar { background: #e8eaed; }
.cw-safari .cw-urlbar { background: #f8f9fa; }
[data-theme="dark"] .cw-safari .cw-titlebar,
[data-theme="dark"] .cw-safari .cw-toolbar { background: #292a2f; }

/* Page area */
.cw-page {
  position: relative;
  background: #ffffff;
  min-height: 580px;
  overflow: hidden;
}
[data-theme="dark"] .cw-page { background: #1a1d22; }

/* ─── Simulated marketplace page ──────────────────────────────────────── */
.ap-page {
  height: 100%;
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}
.ap-topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  background: #f7f8f9;
  border-bottom: 1px solid #e1e3e8;
  flex-shrink: 0;
}
[data-theme="dark"] .ap-topbar {
  background: #14171c;
  border-bottom-color: #2a2d32;
}
.ap-logo {
  font-size: 18px;
  font-weight: 800;
  color: #d83e2d;
  letter-spacing: -0.02em;
  font-family: var(--font-sans);
}
.ap-logo span { color: #707b8a; font-weight: 500; }
[data-theme="dark"] .ap-logo span { color: #8a93a3; }
.ap-filters {
  display: flex;
  gap: 6px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.ap-filter-pill {
  font-size: 11.5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #d6dae0;
  color: #4a5260;
  white-space: nowrap;
}
[data-theme="dark"] .ap-filter-pill {
  background: #1c1f23;
  border-color: #2a2d32;
  color: #b0b7c3;
}
.ap-filter-more { color: #707b8a; }
.ap-results {
  font-size: 12px;
  color: #707b8a;
  white-space: nowrap;
}

.ap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: max-content;
  gap: 10px;
  padding: 12px 16px 16px;
  overflow: hidden;
  align-content: start;
}
.ap-card {
  background: #fff;
  border: 1px solid #e1e3e8;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}
[data-theme="dark"] .ap-card { background: #20232a; border-color: #2a2d32; }
.ap-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #e9ebef;
  overflow: hidden;
}
.ap-bike { width: 100%; height: 100%; display: block; }

.ap-card-body { padding: 8px 10px 10px; }
.ap-title {
  font-size: 12.5px;
  font-weight: 600;
  color: #1c2128;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
[data-theme="dark"] .ap-title { color: #e2e7ef; }
.ap-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}
.ap-price {
  font-weight: 700;
  font-size: 13px;
  color: #d83e2d;
}
.ap-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #707b8a;
}
.ap-dot { color: #b3bcc7; }

/* Page dims when the popup is open */
.ap-page.ap-dimmed { filter: brightness(0.62) saturate(0.85); transition: filter 0.4s; }
[data-theme="dark"] .ap-page.ap-dimmed { filter: brightness(0.5) saturate(0.8); }

/* ─── Extension popup (the real toolbar dropdown) ─────────────────────── */
.ext-popup {
  position: absolute;
  top: 8px; right: 8px;
  width: 300px;
  max-height: calc(100% - 16px);
  overflow-y: auto;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(14,27,44,0.28), 0 0 0 1px rgba(0,0,0,0.02);
  padding: 14px;
  font-family: var(--font-sans);
  z-index: 8;
  animation: epIn 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.ext-popup::-webkit-scrollbar { width: 6px; }
.ext-popup::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
@keyframes epIn {
  from { opacity: 0; transform: translateY(-10px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* popup topbar */
.ep-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--border-soft);
}
.ep-logo {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ep-logo img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: block;
}
.ep-brand { line-height: 1.1; }
.ep-brand-name { font-weight: 600; font-size: 13px; }
.ep-brand-sub { font-size: 10px; color: var(--text-faint); font-family: var(--font-mono); }
.ep-topbar-r { margin-left: auto; display: flex; gap: 4px; }
.ep-iconbtn {
  width: 26px; height: 26px;
  border-radius: 6px;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ep-iconbtn:hover { background: var(--bg-soft); color: var(--text); }

/* popup status */
.ep-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 600;
  font-family: var(--font-mono);
  padding: 8px;
  border-radius: 10px;
}
.ep-status-active {
  background: rgba(46,168,100,0.12);
  color: #2EA864;
  border: 1px solid rgba(46,168,100,0.24);
}
[data-theme="dark"] .ep-status-active { color: #6CE9A6; }
.ep-status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px rgba(46,168,100,0.18);
  animation: pulse 2s infinite;
}
.ep-hint { font-size: 11px; color: var(--text-muted); line-height: 1.45; margin: 8px 0 0; }

/* popup sections */
.ep-section {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border-soft);
}
.ep-section h4 {
  margin: 0 0 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-family: var(--font-mono);
}
.ep-section-head { display: flex; align-items: center; justify-content: space-between; }
.ep-section-head h4 { margin-bottom: 0; }
.ep-edit {
  font-size: 11px;
  color: var(--accent);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 12px;
}
.ep-edit:hover { border-color: var(--accent-soft); }
.ep-prow {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ep-plabel { color: var(--text-faint); }
.ep-pval { color: var(--text); }
.ep-pill {
  font-size: 9.5px;
  font-family: var(--font-mono);
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(46,168,100,0.14);
  color: #2EA864;
  margin-left: 4px;
}

/* sparkline + activity strip */
.pm-sparkline {
  display: block;
  width: 100%;
  height: 34px;
  background: var(--bg-soft);
  border-radius: 8px;
  margin-bottom: 5px;
}
.ep-strip {
  font-size: 10.5px;
  font-family: var(--font-mono);
  color: var(--text-faint);
  text-align: center;
  margin-bottom: 8px;
}

/* match list */
.ep-matches { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.ep-match {
  display: flex;
  gap: 9px;
  padding: 7px 8px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
}
.ep-match:hover { background: var(--bg-soft); border-color: var(--border-soft); }
.ep-match-thumb {
  width: 54px; height: 40px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}
.ep-match-thumb .ap-bike { width: 100%; height: 100%; }
.ep-match-col { flex: 1; min-width: 0; }
.ep-match-titlerow { display: flex; align-items: baseline; gap: 6px; margin-bottom: 2px; }
.ep-match-title {
  flex: 1; min-width: 0;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--accent);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ep-score {
  flex-shrink: 0;
  font-size: 10px;
  font-family: var(--font-mono);
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 999px;
}
.ep-score-ok   { background: rgba(46,168,100,0.16); color: #2EA864; }
.ep-score-warn { background: rgba(232,145,38,0.16); color: #C46A1A; }
.ep-score-err  { background: rgba(229,87,87,0.16); color: #D43F35; }
[data-theme="dark"] .ep-score-ok { color: #6CE9A6; }
[data-theme="dark"] .ep-score-warn { color: #F0B26A; }
.ep-match-summary {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}
.ep-match-meta {
  font-size: 10.5px;
  font-family: var(--font-mono);
  color: var(--text-faint);
  display: flex;
  align-items: center;
  gap: 4px;
}
.ep-src {
  display: inline-flex;
  align-items: center;
  margin-left: auto;
  color: var(--text-faint);
}
.ep-src-ext { color: var(--accent); }

.ep-aibadge {
  margin-top: 10px;
  text-align: center;
  font-size: 10.5px;
  font-family: var(--font-mono);
  color: var(--text-faint);
}

/* detail sheet (within popup) */
.ep-detail {
  position: absolute;
  inset: 0;
  z-index: 12;
  display: flex;
  align-items: flex-end;
  border-radius: 14px;
  overflow: hidden;
}
.ep-detail::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(14,27,44,0.42);
  animation: epIn 0.25s;
}
.ep-detail-card {
  position: relative;
  width: 100%;
  background: var(--bg-elev);
  border-radius: 16px 16px 14px 14px;
  box-shadow: 0 -8px 30px rgba(14,27,44,0.20);
  animation: sheetUp 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
  max-height: 92%;
  display: flex;
  flex-direction: column;
}
@keyframes sheetUp {
  from { transform: translateY(60%); }
  to   { transform: translateY(0); }
}
.ep-detail-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px 10px;
  border-bottom: 1px solid var(--border-soft);
}
.ep-detail-title { flex: 1; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep-detail-body { padding: 10px 14px; overflow-y: auto; }
.ep-detail-meta { font-size: 11.5px; font-family: var(--font-mono); color: var(--text-muted); margin-bottom: 8px; }
.ep-detail-score { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.ep-detail-market { font-size: 11px; color: #2EA864; font-weight: 600; }
[data-theme="dark"] .ep-detail-market { color: #6CE9A6; }
.ep-detail-sec { margin-bottom: 10px; }
.ep-detail-label {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-family: var(--font-mono);
  margin-bottom: 4px;
}
.ep-detail-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.ep-detail-list li { display: flex; gap: 7px; font-size: 11.5px; color: var(--text-muted); line-height: 1.4; }
.ep-dl-ic {
  flex-shrink: 0;
  width: 15px; height: 15px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.ep-dl-good { background: rgba(46,168,100,0.16); color: #2EA864; }
.ep-dl-warn { background: rgba(232,145,38,0.16); color: #C46A1A; }
.ep-detail-footer { padding: 10px 14px 12px; border-top: 1px solid var(--border-soft); }
.ep-detail-open {
  display: block;
  text-align: center;
  background: var(--accent);
  color: white;
  border-radius: 999px;
  padding: 9px;
  font-size: 12.5px;
  font-weight: 600;
}

/* OS notification toast */
.os-notif {
  position: absolute;
  bottom: 14px; right: 14px;
  width: 280px;
  display: flex;
  gap: 11px;
  padding: 12px;
  background: rgba(250,251,253,0.96);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 16px 44px rgba(14,27,44,0.26);
  backdrop-filter: blur(10px);
  z-index: 20;
  animation: notifIn 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
[data-theme="dark"] .os-notif { background: rgba(28,34,44,0.96); }
@keyframes notifIn {
  from { opacity: 0; transform: translateX(30px) scale(0.96); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}
.os-notif-icon {
  width: 46px; height: 46px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}
.os-notif-icon .ap-bike { width: 100%; height: 100%; }
.os-notif-body { min-width: 0; flex: 1; }
.os-notif-app {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: var(--text-faint);
  margin-bottom: 3px;
}
.os-notif-mark {
  width: 13px; height: 13px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.os-notif-mark img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: block;
}
.os-notif-title { font-size: 12.5px; font-weight: 600; color: var(--text); line-height: 1.3; margin-bottom: 2px; }
.os-notif-text { font-size: 11px; color: var(--text-muted); font-family: var(--font-mono); }
.os-notif-action {
  display: inline-block;
  margin-top: 7px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
}

/* ─── Extension demo wrapper ──────────────────────────────────────────── */
.ext-demo {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 36px;
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
}
.ext-demo-embedded {
  display: block;
  max-width: none;
}
.ext-demo-embedded .chrome-window { transform-origin: top left; }
.ext-demo-stage { min-width: 0; }
.ext-demo-progress { margin-top: 12px; }
.ext-progress-track {
  height: 4px;
  background: var(--bg-soft);
  border-radius: 999px;
  overflow: hidden;
}
.ext-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  border-radius: 999px;
  transition: width 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ext-demo-controls { padding-top: 4px; }
.ext-demo-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}
.ext-demo-step {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  align-items: start;
  text-align: left;
  padding: 11px 14px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all 0.2s;
}
.ext-demo-step:hover { border-color: var(--accent-soft); }
.ext-demo-step.active {
  border-color: var(--accent);
  background: var(--accent-tint);
  box-shadow: var(--shadow-glow);
}
.ext-demo-step.active .eds-num {
  background: var(--accent);
  color: white;
}
.ext-demo-step.done .eds-num { background: var(--accent-tint); color: var(--accent); }
.eds-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.eds-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.eds-title { font-size: 13.5px; font-weight: 600; color: var(--text); letter-spacing: -0.005em; }
.eds-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
}

.ext-demo-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-soft);
}
.ext-demo-playpause {
  padding: 7px 12px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-tint);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
}
.ext-demo-playpause:hover { background: var(--accent-tint-strong); }
.ext-demo-caption {
  font-size: 11.5px;
  color: var(--text-faint);
  flex: 1;
  text-align: right;
  line-height: 1.4;
}

@media (max-width: 980px) {
  .ext-demo { grid-template-columns: 1fr; gap: 24px; }
  .ext-demo-caption { text-align: left; }
}

/* Embedded demo (in hero) — shrink */
.ext-demo-embedded .cw-page { min-height: 440px; }
.ext-demo-embedded .ext-popup { width: 268px; padding: 12px; }
.ext-demo-embedded .ap-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 8px 12px; }

@media (max-width: 720px) {
  .cw-page { min-height: 460px; }
  .ext-popup,
  .ext-demo-embedded .ext-popup { width: calc(100% - 18px); }
  .os-notif { width: calc(100% - 28px); max-width: 280px; }
  .ap-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 8px 10px; }
  .ext-demo-embedded .ap-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .cw-tabs { gap: 2px; }
  .cw-tab-title { max-width: 70px; }
  .cw-page { min-height: 460px; }
  .ext-popup,
  .ext-demo-embedded .ext-popup { width: calc(100% - 16px); }
}

/* ─── Pair section ────────────────────────────────────────────────────── */
.pair {
  background: var(--bg-muted);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.pair-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: stretch;
  max-width: 1080px;
  margin: 0 auto;
}
.pair-card {
  display: flex;
  flex-direction: column;
  padding: 32px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  transition: all 0.2s;
}
.pair-card-ext {
  border-color: var(--accent-soft);
  background: linear-gradient(180deg, var(--accent-tint), var(--bg-elev) 50%);
}
.pair-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.pair-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.pair-card-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-soft), var(--accent));
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(34,158,217,0.35);
}
.pair-card-icon-tg {
  background: linear-gradient(135deg, #54A9EB, #229ED9);
}
.pair-card-role {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 2px;
}
.pair-card-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text);
}
.pair-card-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0 0 24px;
  flex: 1;
  text-wrap: pretty;
}

.pair-sync {
  position: relative;
  width: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px 0;
}
.pair-sync-pipe {
  position: absolute;
  top: 50%;
  left: -20px;
  right: -20px;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 4px, transparent 4px 9px);
  z-index: 0;
  transform: translateY(-1px);
}
.pair-sync-bubble {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--bg-elev);
  border: 2px solid var(--accent);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  box-shadow: 0 8px 22px rgba(34,158,217,0.25);
  animation: syncSpin 6s linear infinite;
}
@keyframes syncSpin {
  to { transform: rotate(360deg); }
}
.pair-sync-tags {
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 1;
  background: var(--bg-muted);
  padding: 6px 12px;
  border-radius: 12px;
}
.pair-sync-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
}
.sync-tag-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.pair-sync-caption {
  font-size: 11px;
  color: var(--text-faint);
  text-align: center;
  z-index: 1;
  background: var(--bg-muted);
  padding: 4px 10px;
  line-height: 1.3;
}

@media (max-width: 900px) {
  .pair-grid { grid-template-columns: 1fr; gap: 16px; }
  .pair-sync {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0;
  }
  .pair-sync-pipe {
    left: 50%; top: -8px; bottom: -8px;
    right: auto; width: 2px; height: auto;
    background: repeating-linear-gradient(0deg, var(--accent) 0 4px, transparent 4px 9px);
    transform: translateX(-1px);
  }
  .pair-sync-tags { flex-direction: row; flex-wrap: wrap; justify-content: center; }
}

/* ─── Install section ─────────────────────────────────────────────────── */
.install-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 0 28px;
}
.install-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  align-items: start;
  padding: 22px 28px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.2s;
}
.install-step:hover {
  border-color: var(--accent-soft);
  transform: translateX(4px);
}
.install-num {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent-tint);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.install-step-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.install-step-desc {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.55;
  text-wrap: pretty;
}
.install-hint {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: var(--accent-tint);
  color: var(--accent);
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  margin: 0 auto 22px;
}
.install-hint { display: flex; max-width: fit-content; }
.install-hint svg { animation: syncSpin 4s linear infinite; }
.install-cta-row {
  display: flex;
  justify-content: center;
}

/* ─── Bot section ─────────────────────────────────────────────────────── */
.bot-section {
  padding: 96px 0;
  background: var(--bg-muted);
  border-top: 1px solid var(--border-soft);
}
.bot-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}
.bot-copy { min-width: 0; }
.bot-cta-row {
  display: flex;
  gap: 12px;
  margin: 28px 0;
  flex-wrap: wrap;
}
.bot-qr-block {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 14px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-top: 8px;
}
.bot-qr-block .qr-canvas { padding: 6px; background: white; border-radius: 8px; }
.bot-qr-meta { min-width: 0; }
.bot-qr-name {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 4px;
}
.bot-qr-cap {
  font-size: 13.5px;
  color: var(--text-faint);
  max-width: 200px;
  line-height: 1.4;
}
.bot-phone-side {
  display: flex;
  justify-content: center;
}
.bot-phone-side .phone-mini { width: 280px; }
.bot-phone-side .phone-mini .phone-screen { height: 460px; }

@media (max-width: 880px) {
  .bot-grid { grid-template-columns: 1fr; gap: 36px; }
  .bot-phone-side { order: -1; }
}

/* ─── Section secondary (lower visual weight) ──────────────────────────── */
.features-secondary { padding-top: 80px; }
.features-secondary .section-eyebrow {
  background: var(--bg-soft);
  color: var(--text-muted);
}

/* ─── Adjust v1 sections for v2 ──────────────────────────────────────── */
/* When v2 is active, slightly desaturate the bot-specific demo */
.demo .section-eyebrow { background: var(--bg-soft); color: var(--text-muted); }
