/* CareerHound marketing site — matches Hub jacob theme */
/* Fonts load from <link> in HTML. Never @import here: a hung Google Fonts
   request blocks this whole file on phones (unstyled nav + clipped table). */

:root {
  --bg: #060a13;
  --card: #0e1626;
  --sidebar: #0a101d;
  --accent: #123a6b;
  --active: #22d3ee;
  --violet: #818cf8;
  --alert: #e94560;
  --text: #eaf2fb;
  --dim: #94a3b8;
  --green: #34d399;
  --border: #1c2740;
  --ink: #041018;
  --grad: linear-gradient(120deg, #22d3ee 0%, #67e8f9 45%, #818cf8 100%);
  --glow: 0 10px 40px rgba(34, 211, 238, 0.25);
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --max: 1040px;
  --radius: 14px;
}

/* Light theme: toggled via nav button, persisted in localStorage (ch_theme) */
html[data-theme="light"] {
  --bg: #f6f8fc;
  --card: #ffffff;
  --sidebar: #eef2f8;
  --accent: #dbeafe;
  --active: #0e7490;
  --violet: #6366f1;
  --alert: #dc2626;
  --text: #0f172a;
  --dim: #526079;
  --green: #047857;
  --border: #dbe3ee;
  --grad: linear-gradient(120deg, #0891b2 0%, #2563eb 55%, #6366f1 100%);
  --glow: 0 10px 30px rgba(8, 145, 178, 0.18);
}
html[data-theme="light"] body {
  background:
    radial-gradient(1200px 700px at 12% -14%, rgba(8, 145, 178, 0.08) 0%, transparent 55%),
    radial-gradient(1000px 600px at 88% -6%, rgba(99, 102, 241, 0.09) 0%, transparent 52%),
    linear-gradient(rgba(15, 23, 42, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.035) 1px, transparent 1px),
    var(--bg);
  background-size: auto, auto, 44px 44px, 44px 44px, auto;
}
html[data-theme="light"] .card {
  background: var(--card);
}
html[data-theme="light"] .grid .card:hover {
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.10), 0 0 0 1px rgba(8, 145, 178, 0.12);
}
html[data-theme="light"] .btn.ghost {
  background: rgba(15, 23, 42, 0.04);
}
html[data-theme="light"] .hub-window {
  background: var(--card);
  box-shadow: 0 -20px 50px rgba(15, 23, 42, 0.10), 0 0 0 1px rgba(8, 145, 178, 0.08);
}
html[data-theme="light"] .shot-img {
  border-color: var(--border);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.14);
}
html[data-theme="light"] .price-card.featured {
  background:
    linear-gradient(180deg, rgba(8, 145, 178, 0.05) 0%, rgba(99, 102, 241, 0.04) 100%),
    var(--card);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  background:
    radial-gradient(1200px 700px at 12% -14%, rgba(34, 211, 238, 0.13) 0%, transparent 55%),
    radial-gradient(1000px 600px at 88% -6%, rgba(129, 140, 248, 0.16) 0%, transparent 52%),
    radial-gradient(800px 520px at 50% 112%, rgba(18, 58, 107, 0.5) 0%, transparent 58%),
    linear-gradient(rgba(148, 163, 184, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.035) 1px, transparent 1px),
    var(--bg);
  background-size: auto, auto, auto, 44px 44px, 44px 44px, auto;
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: clip;
}

/* Skip link: visually hidden until keyboard focus (WCAG 2.4.1) */
.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10000;
  padding: 12px 18px;
  margin: 8px;
  border-radius: 6px;
  background: var(--active);
  color: var(--ink);
  font-weight: 700;
  font-family: var(--font-body);
  text-decoration: none;
  transform: translateY(-120%);
  transition: transform 0.15s ease;
}
.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid var(--text);
  outline-offset: 2px;
  text-decoration: none;
}

/* Below-fold sections: defer rendering work until near viewport */
.lazy-section {
  content-visibility: auto;
  contain-intrinsic-size: auto 480px;
}

a { color: var(--active); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible,
.btn:focus-visible,
.bill-opt:focus-visible,
.faq-list summary:focus-visible,
.feat-jump a:focus-visible,
.docs-nav a:focus-visible {
  outline: 2px solid var(--active);
  outline-offset: 2px;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 22px; }

/* —— Nav —— */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  animation: nav-fade 0.55s ease both;
  position: relative;
}

@keyframes nav-fade {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  letter-spacing: 0.01em;
  min-height: 44px;
}
.brand:hover { text-decoration: none; color: var(--text); }

.brand-mark-img {
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(34, 211, 238, 0.3);
  flex-shrink: 0;
}

.mono-img {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  margin-bottom: 10px;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--dim);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.theme-toggle:hover {
  color: var(--text);
  border-color: rgba(34, 211, 238, 0.5);
  background: rgba(34, 211, 238, 0.08);
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #22d3ee, #818cf8);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  border: 0;
  box-shadow: 0 4px 14px rgba(34, 211, 238, 0.3);
  flex-shrink: 0;
}

/* CSS checkbox hamburger (no JS framework) */
.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.nav-burger {
  display: none;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  cursor: pointer;
  place-items: center;
  gap: 5px;
  flex-shrink: 0;
}
.nav-burger span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 1px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle:checked + .nav-burger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle:checked + .nav-burger span:nth-child(2) {
  opacity: 0;
}
.nav-toggle:checked + .nav-burger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.nav-toggle:focus-visible + .nav-burger {
  outline: 2px solid var(--active);
  outline-offset: 2px;
}

nav .links { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
nav .links a {
  color: var(--dim);
  font-size: 0.95rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  transition: color 0.15s ease, background 0.15s ease;
}
nav .links a:hover {
  color: var(--text);
  background: rgba(34, 211, 238, 0.08);
  text-decoration: none;
}
nav .links a.nav-account {
  color: var(--active);
  font-weight: 600;
}
nav .links a.nav-account:hover { color: var(--text); }

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 24px;
  border-radius: 999px;
  background: linear-gradient(120deg, #22d3ee, #38bdf8 55%, #818cf8);
  /* Dark ink on cyan: ~7.8:1 contrast (WCAG AA) */
  color: var(--ink);
  font-weight: 700;
  font-family: var(--font-body);
  border: 0;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(34, 211, 238, 0.18);
  transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover {
  filter: brightness(1.1);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(34, 211, 238, 0.35);
}
.btn.ghost {
  background: rgba(234, 242, 251, 0.03);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: none;
  backdrop-filter: blur(6px);
}
.btn.ghost:hover {
  border-color: rgba(34, 211, 238, 0.6);
  background: rgba(34, 211, 238, 0.07);
  box-shadow: 0 6px 20px rgba(34, 211, 238, 0.12);
}
.btn.secondary { background: var(--accent); color: var(--text); }
.btn.checkout-pending {
  filter: grayscale(0.15);
  opacity: 0.9;
  cursor: pointer;
  pointer-events: auto;
}

/* —— Hero (brand-first) —— */
.hero {
  padding: 88px 0 64px;
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  top: -40px;
  left: -120px;
  width: 560px;
  height: 420px;
  background: radial-gradient(closest-side, rgba(34, 211, 238, 0.14), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
  z-index: -1;
}

.hero-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.8rem, 7.5vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
  max-width: 14ch;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: lead-up 0.6s ease both;
}

.hero-headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.25rem, 2.6vw, 1.6rem);
  line-height: 1.3;
  margin: 0 0 12px;
  max-width: 28ch;
  color: var(--text);
  animation: lead-up 0.6s ease 0.06s both;
}

.hero .lead {
  color: var(--dim);
  font-size: 1.08rem;
  max-width: 40ch;
  margin: 0 0 28px;
  animation: lead-up 0.7s ease 0.12s both;
}

@keyframes lead-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* Full-bleed Hub mock without expanding page scroll width */
.hub-plane {
  margin: 56px 0 0;
  padding: 36px 0 0;
  width: 100vw;
  max-width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  box-sizing: border-box;
  padding-left: max(22px, calc((100vw - var(--max)) / 2 + 22px));
  padding-right: max(22px, calc((100vw - var(--max)) / 2 + 22px));
  background:
    linear-gradient(180deg, rgba(22, 27, 34, 0.55) 0%, transparent 100%),
    radial-gradient(800px 280px at 50% 0%, rgba(34, 211, 238, 0.08), transparent 70%);
  border-top: 1px solid var(--border);
  overflow-x: clip;
}

.hub-window {
  max-width: var(--max);
  margin: 0 auto;
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  background: var(--bg);
  box-shadow:
    0 -24px 60px rgba(0, 0, 0, 0.4),
    0 0 60px rgba(34, 211, 238, 0.07),
    0 0 0 1px rgba(129, 140, 248, 0.06);
  display: grid;
  grid-template-columns: 168px 1fr;
  min-height: 280px;
}

.hub-sidebar {
  background: var(--sidebar);
  border-right: 1px solid var(--border);
  padding: 18px 14px;
}
.hub-sidebar .mono {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #22d3ee, #818cf8);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.8rem;
  margin-bottom: 10px;
}
.hub-sidebar .word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1.2;
  color: var(--active);
  margin-bottom: 4px;
}
.hub-sidebar .tag {
  font-size: 0.7rem;
  color: var(--dim);
  margin-bottom: 16px;
}
.hub-sidebar .nav-item {
  height: 10px;
  border-radius: 4px;
  background: rgba(230, 237, 243, 0.08);
  margin: 8px 0;
}
.hub-sidebar .nav-item.active {
  background: rgba(34, 211, 238, 0.28);
  width: 78%;
}

.hub-main { padding: 18px 20px; }
.hub-main .bar {
  height: 12px;
  width: 42%;
  border-radius: 4px;
  background: rgba(230, 237, 243, 0.14);
  margin-bottom: 16px;
}
.hub-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.hub-kpi {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  min-height: 64px;
}
.hub-kpi .n {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
}
.hub-kpi .l {
  font-size: 0.72rem;
  color: var(--dim);
  margin-top: 4px;
}
.hub-chart {
  height: 88px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, transparent 60%, rgba(34, 211, 238, 0.08)),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 18px,
      rgba(34, 211, 238, 0.35) 18px,
      rgba(34, 211, 238, 0.35) 28px
    );
  background-size: 100% 100%, 100% 55%;
  background-position: 0 0, 0 100%;
  background-repeat: no-repeat;
}

/* —— Hub screenshots gallery (CSS window mockups) —— */
#hub-screenshots {
  padding-top: 52px;
  overflow-x: clip;
  max-width: 100%;
}

.shots-scroll {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 4px;
  padding: 6px 4px 18px;
  margin: 0 -4px;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
  scrollbar-color: var(--active) var(--card);
  scrollbar-width: thin;
  overscroll-behavior-x: contain;
}
.shots-scroll:focus-visible {
  outline: 2px solid var(--active);
  outline-offset: 4px;
  border-radius: 8px;
}
.shots-scroll::-webkit-scrollbar { height: 8px; }
.shots-scroll::-webkit-scrollbar-track {
  background: var(--card);
  border-radius: 999px;
}
.shots-scroll::-webkit-scrollbar-thumb {
  background: rgba(34, 211, 238, 0.55);
  border-radius: 999px;
}

.shot-card {
  flex: 0 0 min(720px, 88vw);
  scroll-snap-align: start;
  margin: 0;
}
.shot-label {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  letter-spacing: -0.01em;
}
.shot-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid rgba(34, 211, 238, 0.2);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.45),
    0 0 40px rgba(34, 211, 238, 0.06);
  background: var(--card);
}
.shot-window {
  border-radius: 12px;
  min-height: 300px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
  max-width: none;
}
.shot-window .hub-main {
  display: flex;
  flex-direction: column;
  min-height: 280px;
}

.shot-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.shot-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}
.shot-chip {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--dim);
  border: 1px solid var(--border);
  background: rgba(230, 237, 243, 0.04);
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}
.shot-chip.ok {
  color: var(--green);
  border-color: rgba(63, 185, 80, 0.45);
  background: rgba(63, 185, 80, 0.1);
}

.shot-kpis { grid-template-columns: repeat(4, 1fr); margin-bottom: 12px; }
.shot-kpis .hub-kpi { min-height: 56px; padding: 10px; }
.shot-kpis .hub-kpi .n { font-size: 1.15rem; }

.shot-chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 96px;
  padding: 10px 12px 8px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, transparent 60%, rgba(34, 211, 238, 0.06)),
    var(--card);
}
.shot-chart-bars span {
  flex: 1;
  height: var(--h, 50%);
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, var(--active), rgba(34, 211, 238, 0.35));
  min-width: 0;
}

.shot-footnote {
  margin: 10px 0 0;
  font-size: 0.72rem;
  color: var(--dim);
}

.shot-queue { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.shot-queue-row {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 10px;
  align-items: start;
  padding: 10px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
}
.shot-queue-row.active {
  border-color: rgba(34, 211, 238, 0.45);
  background: rgba(34, 211, 238, 0.06);
}
.shot-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--active), var(--accent));
  flex-shrink: 0;
}
.shot-avatar.dim { opacity: 0.45; }
.shot-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.shot-note {
  font-size: 0.72rem;
  color: var(--dim);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* Muted mock notes: keep AA contrast (no opacity fade on text). */
.shot-note.muted { color: #9da5b0; }
.shot-keys {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.shot-keys span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 18px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--sidebar);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--active);
}

.shot-funnel { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.shot-funnel-step { display: flex; align-items: center; gap: 10px; }
.shot-funnel-bar {
  display: block;
  height: 14px;
  width: var(--w, 50%);
  max-width: 70%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--active), rgba(34, 211, 238, 0.35));
}
.shot-funnel-lbl {
  font-size: 0.72rem;
  color: var(--dim);
  white-space: nowrap;
}

.shot-heatmap {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
  padding: 8px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
}
.shot-heatmap span {
  aspect-ratio: 1;
  border-radius: 3px;
  background: rgba(34, 211, 238, 0.12);
}
.shot-heatmap .h0 { background: rgba(34, 211, 238, 0.08); }
.shot-heatmap .h1 { background: rgba(34, 211, 238, 0.22); }
.shot-heatmap .h2 { background: rgba(34, 211, 238, 0.4); }
.shot-heatmap .h3 { background: rgba(34, 211, 238, 0.7); }

.shot-radar {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px;
  align-items: center;
  flex: 1;
}
.shot-radar-ring {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 50%, rgba(63, 185, 80, 0.2) 0%, transparent 55%),
    conic-gradient(from 200deg, rgba(63, 185, 80, 0.85), rgba(34, 211, 238, 0.35), rgba(63, 185, 80, 0.2));
  border: 1px solid rgba(63, 185, 80, 0.4);
  box-shadow: 0 0 28px rgba(63, 185, 80, 0.12);
}
.shot-radar-core {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--green);
}
.shot-radar-meta { display: flex; flex-direction: column; gap: 6px; }
.shot-stat {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.75rem;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--card);
}
.shot-stat .k { color: var(--dim); }
.shot-stat .v { color: var(--text); font-weight: 600; }
.shot-stat .v.green { color: var(--green); }

.shots-hint {
  margin: 4px 0 0;
  font-size: 0.8rem;
  color: var(--dim);
}

/* —— Sections —— */
section { padding: 52px 0; }
section h2 {
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0 0 10px;
  font-size: clamp(1.55rem, 3vw, 1.9rem);
  letter-spacing: -0.02em;
}
section .sub { color: var(--dim); margin: 0 0 24px; max-width: 50ch; }

.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.card {
  background:
    linear-gradient(180deg, rgba(234, 242, 251, 0.035) 0%, rgba(234, 242, 251, 0.008) 60%),
    var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  min-width: 0;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.grid .card:hover {
  transform: translateY(-3px);
  border-color: rgba(34, 211, 238, 0.4);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(34, 211, 238, 0.08);
}
.card h3 {
  font-family: var(--font-display);
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
}
.card p { margin: 0; color: var(--dim); font-size: 0.95rem; }

/* —— Features page —— */
.features-hero { padding-bottom: 28px; }
.features-hero-title {
  max-width: 18ch;
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
}
.hero-eyebrow {
  margin: 0 0 10px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--active);
}
.feat-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.feat-jump a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--dim);
  font-size: 0.82rem;
  font-weight: 600;
}
.feat-jump a:hover {
  color: var(--text);
  border-color: var(--active);
  text-decoration: none;
}
.feat-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.feat-card:hover {
  border-color: rgba(34, 211, 238, 0.45);
  transform: translateY(-2px);
}
.feat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.feat-icon {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.28);
  color: var(--active);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.tier {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--border);
  color: var(--dim);
  background: var(--sidebar);
  flex-shrink: 0;
}
.tier.free {
  color: var(--green);
  border-color: rgba(63, 185, 80, 0.35);
  background: rgba(63, 185, 80, 0.1);
}
.tier.pro {
  color: var(--active);
  border-color: rgba(34, 211, 238, 0.4);
  background: rgba(34, 211, 238, 0.12);
}
.tier.team {
  color: #79b8ff;
  border-color: rgba(121, 184, 255, 0.4);
  background: rgba(15, 52, 96, 0.55);
}
.feat-card h3 { margin-bottom: 6px; }
.feat-card p { flex: 1; line-height: 1.45; }

.pricing {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.price-card { position: relative; }
.price-card.featured {
  border-color: rgba(34, 211, 238, 0.55);
  background:
    linear-gradient(180deg, rgba(34, 211, 238, 0.07) 0%, rgba(129, 140, 248, 0.04) 100%),
    var(--card);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.35), 0 18px 44px rgba(34, 211, 238, 0.1);
}
.price-card .tag {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  background: linear-gradient(120deg, #22d3ee, #818cf8);
  color: var(--ink);
  padding: 4px 10px;
  border-radius: 999px;
}
.bill-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.bill-toggle {
  display: inline-flex;
  margin: 6px 0 2px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--sidebar);
  gap: 2px;
}
.bill-opt {
  border: 0;
  background: transparent;
  color: var(--dim);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  min-height: 44px;
  min-width: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.bill-opt:hover { color: var(--text); }
.price-card:has(.bill-radio[value="monthly"]:checked) .bill-opt[for$="-monthly"],
.price-card:has(.bill-radio[value="annual"]:checked) .bill-opt[for$="-annual"] {
  background: var(--active);
  color: var(--ink);
}
.bill-note {
  color: var(--green);
  font-size: 0.85rem;
  margin: 4px 0 0;
}
.price-card .bill-show-annual { display: none; }
.price-card:has(.bill-radio[value="annual"]:checked) .bill-show-monthly { display: none; }
.price-card:has(.bill-radio[value="annual"]:checked) .price.bill-show-annual,
.price-card:has(.bill-radio[value="annual"]:checked) .bill-note.bill-show-annual { display: block; }
.price-card:has(.bill-radio[value="annual"]:checked) a.bill-show-annual { display: inline-block; }
.price {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  margin: 8px 0;
}
.price span { font-size: 0.9rem; color: var(--dim); font-weight: 500; font-family: var(--font-body); }
.price-card ul { margin: 12px 0 18px; padding-left: 18px; color: var(--dim); }
.price-card li { margin: 6px 0; }

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  margin: 0 -2px;
  padding-bottom: 6px;
  scrollbar-color: var(--active) var(--card);
  scrollbar-width: thin;
}
.table-scroll::-webkit-scrollbar { height: 8px; }
.table-scroll::-webkit-scrollbar-track {
  background: var(--card);
  border-radius: 999px;
}
.table-scroll::-webkit-scrollbar-thumb {
  background: rgba(34, 211, 238, 0.55);
  border-radius: 999px;
}
table.compare { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
table.compare th, table.compare td {
  border-bottom: 1px solid var(--border);
  padding: 10px 8px;
  text-align: left;
}
table.compare th { color: var(--dim); font-weight: 600; }

table.compare-matrix {
  min-width: 520px;
}
table.compare-matrix th:not(:first-child),
table.compare-matrix td:not(:first-child) {
  text-align: center;
  width: 12%;
}
table.compare-matrix th.col-pro,
table.compare-matrix td.col-pro,
table.compare-matrix th.col-us,
table.compare-matrix td.col-us {
  background: rgba(34, 211, 238, 0.06);
}
table.compare-matrix th.col-pro,
table.compare-matrix th.col-us { color: var(--active); }
table.compare-matrix tr.compare-group td {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--active);
  background: var(--sidebar);
  border-bottom-color: var(--border);
  padding-top: 14px;
  padding-bottom: 10px;
  text-align: left;
}
table.compare-competitors {
  font-size: 0.88rem;
  min-width: 820px;
}
table.compare-competitors th:not(:first-child),
table.compare-competitors td:not(:first-child) {
  width: 18%;
  vertical-align: top;
}
table.compare-competitors code {
  background: var(--sidebar);
  border: 1px solid var(--border);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.85em;
  color: var(--text);
}
.cell-yes { color: var(--green); font-weight: 700; }
.cell-no { color: var(--dim); }
.cap-note {
  color: var(--dim);
  font-size: 0.85rem;
  margin-top: 12px;
}
.after-pay {
  color: var(--dim);
  margin: 0;
  padding-left: 18px;
}
.after-pay li { margin: 8px 0; }
.after-pay code {
  background: var(--sidebar);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--text);
}

/* FAQ accordion (pricing + faq.html) */
.faq-section .faq-list { display: grid; gap: 10px; }
.faq-page { padding-top: 28px; padding-bottom: 28px; }
.faq-page + .faq-page { border-top: 1px solid var(--border); }
.faq-list details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
}
.faq-list details[open] { border-color: rgba(34, 211, 238, 0.35); }
.faq-list summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  min-height: 44px;
  padding: 14px 44px 14px 16px;
  position: relative;
  color: var(--text);
  display: flex;
  align-items: center;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--active);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1;
}
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p {
  margin: 0;
  padding: 0 16px 16px;
  color: var(--dim);
  font-size: 0.95rem;
  max-width: 62ch;
}
.faq-list details p code {
  background: var(--sidebar);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--text);
}

/* Docs hub + download code/pre (legacy .docs class removed) */
.docs-section code {
  background: var(--sidebar);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--text);
}
.docs-section pre,
.dl-os-card pre,
.dl-release-card pre {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 14px;
  border-radius: 8px;
  overflow-x: auto;
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.5;
}
pre {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Docs hub: CSS-only sticky sidebar */
.docs-wrap { max-width: 1120px; }
.docs-hero { padding-bottom: 20px; }
.docs-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
  padding-bottom: 24px;
}
.docs-sidebar {
  position: sticky;
  top: 18px;
  background: var(--sidebar);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 12px 16px;
}
.docs-sidebar-label {
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--active);
}
.docs-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.docs-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--dim);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  border-left: 2px solid transparent;
}
.docs-nav a:hover {
  color: var(--text);
  background: rgba(34, 211, 238, 0.08);
  text-decoration: none;
}
.docs-main { min-width: 0; }
.docs-section {
  padding: 8px 0 36px;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 20px;
}
.docs-section:last-child { border-bottom: 0; }
.docs-section:target {
  outline: 1px solid rgba(34, 211, 238, 0.35);
  outline-offset: 10px;
  border-radius: 6px;
}
.docs-section h2 {
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0 0 8px;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}
.docs-section .sub {
  color: var(--dim);
  margin: 0 0 18px;
  max-width: 58ch;
}
.docs-section h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 22px 0 8px;
}
.docs-section p,
.docs-section li {
  color: var(--dim);
  max-width: 68ch;
}
.docs-section p { margin: 0 0 12px; }
.docs-section ol,
.docs-section ul { margin: 0 0 14px; padding-left: 18px; }
.docs-section li { margin: 6px 0; }
.docs-section a { color: var(--active); }
.docs-table { font-size: 0.92rem; }
.docs-layout:has(#getting-started:target) .docs-nav a[href="#getting-started"],
.docs-layout:has(#configuration:target) .docs-nav a[href="#configuration"],
.docs-layout:has(#safety-limits:target) .docs-nav a[href="#safety-limits"],
.docs-layout:has(#chrome-extension:target) .docs-nav a[href="#chrome-extension"],
.docs-layout:has(#crm-export:target) .docs-nav a[href="#crm-export"],
.docs-layout:has(#webhooks:target) .docs-nav a[href="#webhooks"],
.docs-layout:has(#multi-account:target) .docs-nav a[href="#multi-account"],
.docs-layout:has(#prompt-packs:target) .docs-nav a[href="#prompt-packs"],
.docs-layout:has(#cli-reference:target) .docs-nav a[href="#cli-reference"],
.docs-layout:has(#troubleshooting:target) .docs-nav a[href="#troubleshooting"] {
  color: var(--text);
  border-left-color: var(--active);
  background: rgba(34, 211, 238, 0.1);
}

@media (max-width: 860px) {
  .docs-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .docs-sidebar {
    position: static;
  }
  .docs-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }
  .docs-nav a {
    border-left: 0;
    border: 1px solid var(--border);
    background: var(--card);
    padding: 8px 12px;
    font-size: 0.82rem;
    min-height: 44px;
  }
  .docs-layout:has(#getting-started:target) .docs-nav a[href="#getting-started"],
  .docs-layout:has(#configuration:target) .docs-nav a[href="#configuration"],
  .docs-layout:has(#safety-limits:target) .docs-nav a[href="#safety-limits"],
  .docs-layout:has(#chrome-extension:target) .docs-nav a[href="#chrome-extension"],
  .docs-layout:has(#crm-export:target) .docs-nav a[href="#crm-export"],
  .docs-layout:has(#webhooks:target) .docs-nav a[href="#webhooks"],
  .docs-layout:has(#multi-account:target) .docs-nav a[href="#multi-account"],
  .docs-layout:has(#prompt-packs:target) .docs-nav a[href="#prompt-packs"],
  .docs-layout:has(#cli-reference:target) .docs-nav a[href="#cli-reference"],
  .docs-layout:has(#troubleshooting:target) .docs-nav a[href="#troubleshooting"] {
    border-color: var(--active);
  }
}

/* —— Changelog page —— */
.changelog-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin: 0 0 48px;
  padding: 0;
  list-style: none;
  border-left: 2px solid var(--border);
}

.changelog-entry {
  position: relative;
  margin-left: 0;
  padding: 0 0 0 22px;
}

.changelog-entry::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 18px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--active);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.45);
}

.changelog-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px 16px;
}

.changelog-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
  margin: 0 0 14px;
}

.changelog-version {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text);
  margin: 0;
}

.changelog-date {
  font-size: 0.88rem;
  color: var(--dim);
  font-weight: 500;
}

.changelog-tag {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: 1px solid rgba(34, 211, 238, 0.35);
  background: rgba(34, 211, 238, 0.12);
  color: var(--active);
}

.changelog-tag.unreleased {
  border-color: rgba(233, 69, 96, 0.4);
  background: rgba(233, 69, 96, 0.12);
  color: #ff7b93;
}

.changelog-group {
  margin: 0 0 12px;
}

.changelog-group:last-child { margin-bottom: 0; }

.changelog-group h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--active);
}

.changelog-group ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--dim);
}

.changelog-group li {
  margin: 0 0 6px;
  font-size: 0.95rem;
  line-height: 1.45;
}

.changelog-group li:last-child { margin-bottom: 0; }

.changelog-commits {
  margin: 0;
  padding: 0;
  list-style: none;
}

.changelog-commits li {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 10px 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.changelog-commits li:last-child { border-bottom: 0; }

.changelog-commits time {
  color: var(--dim);
  font-size: 0.82rem;
  font-weight: 600;
  padding-top: 2px;
}

.changelog-commits a {
  color: var(--text);
  font-weight: 500;
}

.changelog-commits a:hover { color: var(--active); }

.changelog-note {
  color: var(--dim);
  font-size: 0.92rem;
  margin: 0 0 18px;
  max-width: 56ch;
}

@media (max-width: 560px) {
  .changelog-commits li {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* —— Download & install page —— */
.dl-detect {
  margin: 0 0 18px;
  color: var(--text);
  font-size: 1.02rem;
  max-width: 48ch;
}
.dl-detect code {
  font-size: 0.92em;
}
.dl-cta-tip {
  margin: 14px 0 0;
  color: var(--dim);
  font-size: 0.9rem;
  max-width: 52ch;
}

.dl-release-row {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 8px;
}
.dl-release-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.15rem;
}
.dl-release-card p {
  margin: 0 0 14px;
  color: var(--dim);
  font-size: 0.95rem;
}
.dl-release-card pre {
  margin: 0 0 14px;
}

.dl-os-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 8px;
}
.dl-os-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.dl-os-card.is-detected {
  border-color: var(--active);
  box-shadow: 0 0 0 1px var(--active), 0 12px 28px rgba(34, 211, 238, 0.12);
  transform: translateY(-2px);
}
.dl-os-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.dl-os-badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(34, 211, 238, 0.45);
  background: rgba(34, 211, 238, 0.14);
  color: var(--active);
}
.dl-os-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.2rem;
}
.dl-os-card > p {
  margin: 0 0 10px;
  color: var(--dim);
  font-size: 0.95rem;
}
.dl-os-card pre {
  margin: 0 0 12px;
}
.dl-os-note {
  flex: 1;
  margin: 0 0 16px !important;
  font-size: 0.88rem !important;
  line-height: 1.45;
}
.dl-os-card .hero-cta {
  margin-top: auto;
}

.dl-req-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.dl-req-list li {
  display: grid;
  gap: 4px 16px;
  grid-template-columns: minmax(140px, 200px) minmax(0, 1fr);
  align-items: start;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.dl-req-list strong {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--active);
}
.dl-req-list span {
  color: var(--dim);
  font-size: 0.95rem;
}

.dl-steps {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
  counter-reset: none;
}
.dl-steps li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.dl-step-num {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(34, 211, 238, 0.14);
  border: 1px solid rgba(34, 211, 238, 0.35);
  color: var(--active);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
}
.dl-steps h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.05rem;
}
.dl-steps p {
  margin: 0;
  color: var(--dim);
  font-size: 0.95rem;
}

.dl-honest {
  margin-top: 36px;
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(15, 52, 96, 0.35) 0%, transparent 55%),
    var(--card);
}
.dl-honest h2 {
  margin-top: 0;
}
.dl-honest p {
  margin: 0;
  color: var(--dim);
  max-width: 62ch;
}

footer {
  margin-top: 48px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--border);
  color: var(--dim);
  font-size: 0.9rem;
}
footer a {
  color: var(--dim);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
footer a:hover { color: var(--active); text-decoration: none; }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 32px;
}
.footer-col h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
}
.footer-col a {
  display: flex;
  width: fit-content;
  padding: 0;
  min-height: 36px;
  font-size: 0.95rem;
}
.footer-meta {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--dim);
}

/* —— Responsive: 1280 desktop stays default layout —— */

/* Tablet and below (768) */
@media (max-width: 768px) {
  .wrap { padding: 0 16px; }
  .hero { padding-top: 40px; padding-bottom: 40px; }
  .hub-plane {
    padding-left: 16px;
    padding-right: 16px;
  }
  .hub-window { grid-template-columns: 1fr; max-width: 100%; }
  .hub-sidebar { display: none; }
  .shot-card { flex-basis: min(640px, 92vw); }
  .shot-kpis { grid-template-columns: repeat(2, 1fr); }
  .shot-radar { grid-template-columns: 1fr; justify-items: center; text-align: left; }
  .shot-radar-meta { width: 100%; }
  .shot-queue-row { grid-template-columns: 28px 1fr; }
  .shot-keys { display: none; }

  /* Hamburger nav */
  .nav-burger {
    display: grid;
    grid-template-rows: repeat(3, 2px);
    align-content: center;
    justify-items: center;
  }
  nav {
    flex-wrap: wrap;
    align-items: center;
  }
  nav .brand { flex: 1; min-width: 0; }
  nav .links {
    display: none;
    width: 100%;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 4px;
    border-top: 1px solid var(--border);
    margin-top: 4px;
  }
  nav .links a {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 1rem;
  }
  nav .links a:hover {
    background: rgba(34, 211, 238, 0.08);
  }
  .nav-toggle:checked ~ .links {
    display: flex;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 20px;
  }

  /* Stack pricing + single-column feature grids */
  .pricing {
    grid-template-columns: 1fr;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .dl-os-grid,
  .dl-release-row {
    grid-template-columns: 1fr;
  }

  /* Tables stay tabular inside overflow wrappers */
  .table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  table.compare-matrix,
  table.compare-competitors,
  table.docs-table {
    display: table;
  }
}

/* Phone (375-class) */
@media (max-width: 480px) {
  .wrap { padding: 0 14px; }
  .hero { padding-top: 28px; }
  .hero-brand { max-width: none; }
  .hero-headline { max-width: none; }
  .hero .lead { max-width: none; font-size: 1rem; }
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-cta .btn { width: 100%; }
  .bill-toggle { width: 100%; }
  .bill-opt { flex: 1; }
  .price { font-size: 1.75rem; }
  .hub-kpis { grid-template-columns: 1fr 1fr; }
  .shot-kpis { grid-template-columns: 1fr 1fr; }
  .shot-heatmap { grid-template-columns: repeat(4, 1fr); }
  .feat-jump { gap: 8px; }
  .feat-jump a { width: 100%; justify-content: center; }
  section { padding: 32px 0; }
  section h2 { font-size: 1.35rem; }
  .brand { font-size: 0.95rem; }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .dl-req-list li {
    grid-template-columns: 1fr;
  }
  .changelog-commits li {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* —— Social proof & trust (Prompt K) —— */
.trust-disclaimer {
  margin: 22px 0 0;
  max-width: 36ch;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--dim);
  border-left: 3px solid var(--active);
  padding: 8px 0 8px 12px;
}

#social-proof .built-by-line {
  max-width: 52ch;
}

.proof-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 28px 0 10px;
}

.proof-stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 16px;
  text-align: center;
  min-height: 96px;
}

.proof-stat .proof-n {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.proof-stat .proof-l {
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--dim);
  line-height: 1.35;
}

.proof-stat-note {
  margin: 0 0 22px;
  font-size: 0.78rem;
  color: var(--dim);
}

.gh-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin: 0 0 36px;
}

.gh-badge {
  display: inline-flex;
  line-height: 0;
  min-height: 44px;
  align-items: center;
}
.gh-badge:hover { text-decoration: none; opacity: 0.92; }
.gh-badge img {
  display: block;
  height: 20px;
  width: auto;
}

.gh-repo-btn {
  min-height: 44px;
}

.integrations-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  margin: 0 0 8px;
  color: var(--text);
}

.integrations-sub {
  margin-top: 0;
  margin-bottom: 16px;
}

.integration-row {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.integration-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 10px 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.integration-mark:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 211, 238, 0.4);
}

.int-glyph {
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.35);
  color: var(--active);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

.int-name {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
}

.trust-banner {
  margin-top: 8px;
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background:
    linear-gradient(90deg, rgba(34, 211, 238, 0.1), transparent 55%),
    var(--card);
  color: var(--dim);
  font-size: 0.92rem;
  line-height: 1.5;
}
.trust-banner strong {
  display: block;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 4px;
}

@media (max-width: 768px) {
  .proof-stats {
    grid-template-columns: 1fr;
  }
  .integration-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .integration-row {
    grid-template-columns: 1fr;
  }
  .trust-disclaimer {
    max-width: none;
  }
}

/* —— Account Manager Portal (website/account/) —— */
.acct-page .acct-wrap {
  max-width: 1120px;
}

.acct-auth-card {
  max-width: 520px;
  margin: 0 0 48px;
  padding: 22px 24px 26px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(34, 211, 238, 0.06) 0%, transparent 100px),
    var(--card);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

.acct-free-card {
  max-width: 560px;
}

.acct-login-form .acct-input {
  max-width: none;
}

.acct-optional {
  font-weight: 500;
  color: var(--dim);
  text-transform: none;
  letter-spacing: 0;
}

.acct-logout-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--dim);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.acct-logout-btn:hover {
  color: var(--active);
}

.acct-free-result .acct-badge {
  margin-bottom: 10px;
}

.acct-hero {
  padding: 28px 0 18px;
}

.acct-hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  letter-spacing: -0.03em;
  margin: 0 0 8px;
}

.acct-hero-lead {
  max-width: 58ch;
  color: var(--dim);
  margin: 0 0 12px;
}

.acct-offline {
  display: inline-block;
  margin-top: 4px;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid rgba(233, 69, 96, 0.45);
  background: rgba(233, 69, 96, 0.1);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
}

.acct-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  margin-bottom: 48px;
  min-height: 520px;
}

.acct-sidebar {
  background: var(--sidebar);
  border-right: 1px solid var(--border);
  padding: 18px 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.acct-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 6px 4px;
}

.acct-sidebar-mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--active);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.acct-sidebar-word {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--active);
  line-height: 1.2;
}

.acct-sidebar-tag {
  margin: 2px 0 0;
  font-size: 0.72rem;
  color: var(--dim);
}

.acct-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.acct-nav-btn {
  display: flex;
  align-items: center;
  min-height: 44px;
  width: 100%;
  padding: 8px 12px;
  border: 0;
  border-left: 2px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--dim);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.acct-nav-btn:hover {
  color: var(--text);
  background: rgba(34, 211, 238, 0.08);
}

.acct-nav-btn.is-active {
  color: var(--text);
  border-left-color: var(--active);
  background: rgba(34, 211, 238, 0.12);
}

.acct-nav-btn:focus-visible {
  outline: 2px solid var(--active);
  outline-offset: 2px;
}

.acct-sidebar-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  padding: 10px 8px 0;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
}

.acct-content {
  padding: 22px 24px 28px;
  min-width: 0;
  background:
    linear-gradient(180deg, rgba(34, 211, 238, 0.04) 0%, transparent 120px),
    var(--bg);
}

.acct-pane-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}

.acct-pane-sub {
  margin: 0 0 18px;
  color: var(--dim);
  max-width: 56ch;
  font-size: 0.95rem;
}

.acct-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.acct-kpi,
.acct-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.acct-kpi-label {
  margin: 0 0 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--dim);
}

.acct-kpi-value {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  word-break: break-word;
}

.acct-panel {
  margin-bottom: 14px;
}

.acct-panel h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0 0 10px;
}

.acct-panel-muted {
  background: rgba(22, 27, 34, 0.65);
}

.acct-key-mask {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1rem;
  color: var(--active);
  margin: 0 0 12px;
  word-break: break-all;
}

.acct-key-full {
  display: block;
  margin: 8px 0 12px;
  padding: 10px 12px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  word-break: break-all;
  color: var(--text);
}

.acct-meta {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
}

.acct-meta > div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 8px;
  font-size: 0.9rem;
}

.acct-meta dt {
  margin: 0;
  color: var(--dim);
  font-weight: 500;
}

.acct-meta dd {
  margin: 0;
  color: var(--text);
  word-break: break-word;
}

.acct-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.acct-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 12px;
}

.acct-period-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.acct-dim {
  color: var(--dim);
  font-size: 0.92rem;
  margin: 0 0 10px;
}

.acct-list {
  margin: 0 0 12px;
  padding-left: 18px;
  color: var(--dim);
}

.acct-list li {
  margin: 6px 0;
}

.acct-list strong {
  color: var(--text);
}

.acct-label {
  display: block;
  margin: 0 0 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.acct-input {
  width: 100%;
  max-width: 480px;
  min-height: 44px;
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.acct-input:focus {
  outline: 2px solid var(--active);
  outline-offset: 1px;
  border-color: var(--active);
}

.acct-input[readonly] {
  color: var(--dim);
}

.acct-fieldset {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin: 0 0 14px;
  max-width: 480px;
}

.acct-fieldset legend {
  padding: 0 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.acct-check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  color: var(--dim);
  font-size: 0.92rem;
  cursor: pointer;
}

.acct-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--active);
}

.acct-license-list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}

.acct-license-empty {
  padding: 14px 16px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--dim);
  font-size: 0.92rem;
}

.acct-license-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 10px;
}

.acct-license-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.acct-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.16);
  border: 1px solid rgba(34, 211, 238, 0.4);
  color: var(--active);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.acct-status {
  margin: 12px 0 0;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
  border: 1px solid var(--border);
  background: rgba(22, 27, 34, 0.8);
  color: var(--text);
}

.acct-status--ok {
  border-color: rgba(63, 185, 80, 0.45);
  background: rgba(63, 185, 80, 0.1);
}

.acct-status--warn {
  border-color: rgba(210, 153, 34, 0.5);
  background: rgba(210, 153, 34, 0.1);
}

.acct-status--err {
  border-color: rgba(233, 69, 96, 0.45);
  background: rgba(233, 69, 96, 0.1);
}

.acct-dl-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.acct-dl-grid .acct-panel {
  margin-bottom: 0;
}
.acct-dl-grid .acct-panel.is-detected {
  border-color: rgba(34, 211, 238, 0.55);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.25);
}
.acct-dl-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  vertical-align: middle;
  color: var(--active);
  border: 1px solid rgba(34, 211, 238, 0.45);
  border-radius: 4px;
  background: rgba(34, 211, 238, 0.1);
}

@media (max-width: 900px) {
  .acct-shell {
    grid-template-columns: 1fr;
  }
  .acct-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .acct-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .acct-nav-btn {
    border-left: 0;
    border: 1px solid var(--border);
    background: var(--card);
    width: auto;
    padding: 8px 12px;
    font-size: 0.84rem;
  }
  .acct-nav-btn.is-active {
    border-color: var(--active);
    background: rgba(34, 211, 238, 0.12);
  }
  .acct-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .acct-row {
    grid-template-columns: 1fr;
  }
  .acct-dl-grid {
    grid-template-columns: 1fr;
  }
  .acct-meta > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

@media (max-width: 480px) {
  .acct-content {
    padding: 16px 14px 22px;
  }
  .acct-kpi-grid {
    grid-template-columns: 1fr;
  }
  .acct-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .acct-auth-card {
    padding: 18px 14px 22px;
    margin-bottom: 36px;
  }
  .acct-sidebar-foot {
    flex-direction: column;
    align-items: flex-start;
  }
  .acct-logout-btn {
    width: 100%;
  }
}

.hub-sidebar .mono.mono-img {
  background: transparent;
  border-radius: 10px;
}
