/* ============================================================
   Toolbot — global stylesheet
   Single source of truth. Edit here, every page updates.
   ============================================================ */

:root {
  --bg:        #0a0a0e;
  --bg-elev:   #14141a;
  --bg-elev2:  #1a1a22;
  --line:      #2a2a32;
  --line-soft: #22222a;
  --text:      #e8e8ee;
  --text-mute: #9a9aa6;
  --text-dim:  #6a6a76;
  --steel-1:   #4a4e5a;
  --steel-2:   #3a3d48;
  --steel-3:   #2c2f38;
  --magenta:   #d946ef;
  --magenta-2: #ff4dd2;
  --magenta-3: #9a1cc7;
  --navy:      #2c3e50;
  --ok:        #4ade80;
  --warn:      #fbbf24;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  /* Native fallback for anchor smooth-scroll if JS fails to bind */
  scroll-behavior: smooth;
  /* Sticky nav offset — anchor jumps land below the nav, not behind it */
  scroll-padding-top: 80px;
  /* Magenta-tinted tap highlight on iOS instead of default gray */
  -webkit-tap-highlight-color: rgba(217, 70, 239, 0.25);
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Skip-to-content link — visually hidden until keyboard-focused */
.skip-to-content {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--magenta);
  color: #0a0a0e;
  padding: 10px 18px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 0 0 4px 0;
  z-index: 100;
  transition: top 0.18s;
}
.skip-to-content:focus { top: 0; outline: none; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; }

/* Backdrop grid + magenta glow */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(217, 70, 239, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(217, 70, 239, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 80%);
}
body::after {
  content: "";
  position: fixed;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(217, 70, 239, 0.18), transparent 60%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

main, header, footer { position: relative; z-index: 1; }
main { flex: 1; }

/* ==================== NAV ==================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(10, 10, 14, 0.72);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand .brand-icon { width: 32px; height: 32px; object-fit: contain; flex: 0 0 auto; }
.brand .brand-wordmark { height: 22px; width: auto; object-fit: contain; flex: 0 0 auto; }
/* Legacy fallback if .brand-text is still used somewhere */
.brand-text {
  font-weight: 900;
  letter-spacing: 0.22em;
  font-size: 14px;
  background: linear-gradient(90deg, #cfd8e3 0%, var(--magenta) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  color: var(--text-mute);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: color 0.18s;
}
.nav-links a:hover, .nav-links a.active { color: var(--magenta-2); }
.nav-cta {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 9px 16px;
  border: 1px solid var(--magenta);
  color: var(--text);
  text-decoration: none;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(217, 70, 239, 0.15), rgba(154, 28, 199, 0.05));
  transition: all 0.18s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--magenta); color: #0a0a0e; }

.nav-theme {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 8px 14px 8px 12px;
  border: 1px solid var(--line);
  color: var(--text-mute);
  background: rgba(255, 255, 255, 0.02);
  text-decoration: none;
  border-radius: 999px;
  margin-right: 4px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  transition: all 0.18s;
  white-space: nowrap;
}
.nav-theme:hover { color: var(--text); border-color: var(--magenta); }
.nav-theme .nav-theme-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--magenta) 0%, var(--magenta-3) 100%);
  box-shadow: 0 0 8px rgba(217, 70, 239, 0.55);
  flex: 0 0 auto;
}

/* Mobile-drawer copy of the toggle is hidden by default — only shown when the
   drawer is open at <880px. Desktop chip stays visible at all widths above the
   hamburger breakpoint. */
.nav-theme.nav-theme-mobile { display: none; }

/* Desktop toggle is an icon-only 40×40 square button matching .nav-cart.
   Inside it live two SVGs (sun + moon); CSS reveals the one matching the
   click target (data-next), so flipTheme just updates data-next. */
.nav-theme.nav-theme-desktop {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 8px;
  gap: 0;
  justify-content: center;
  font-size: 0;
  letter-spacing: 0;
  margin-right: 0;
}
.nav-theme.nav-theme-desktop svg { display: none; }
.nav-theme.nav-theme-desktop[data-next="light"] .theme-icon-sun  { display: block; }
.nav-theme.nav-theme-desktop[data-next="dark"]  .theme-icon-moon { display: block; }

@media (max-width: 880px) {
  /* Hide the inline desktop chip; the mobile drawer copy takes over */
  .nav-theme.nav-theme-desktop { display: none; }
  /* Show the mobile button as a drawer row, full-width touch target */
  .nav-theme.nav-theme-mobile {
    display: flex;
    width: 100%;
    justify-content: flex-start;
    padding: 14px 0;
    border: none;
    border-top: 1px solid var(--line-soft);
    background: transparent;
    border-radius: 0;
    margin: 0;
    color: var(--text-mute);
    text-align: left;
    font-size: 12px;
    letter-spacing: 0.22em;
  }
  .nav-theme.nav-theme-mobile:hover { color: var(--magenta-2); border-color: var(--line-soft); }
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

@media (max-width: 880px) {
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: rgba(10, 10, 14, 0.96); border-bottom: 1px solid var(--line); padding: 12px 28px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
  .nav-toggle { display: inline-block; }
  .nav-cta { display: none; }
}

/* ==================== LAYOUT ==================== */
.container { max-width: 1280px; margin: 0 auto; padding: 0 28px; }
.container-narrow { max-width: 880px; margin: 0 auto; padding: 0 28px; }
section {
  padding: 96px 0;
  position: relative;
  /* Anchor links scroll to land 80px below the sticky nav, not behind it */
  scroll-margin-top: 80px;
}
section + section { border-top: 1px solid var(--line); }
section.tight { padding: 64px 0; }

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--magenta);
  font-weight: 600;
  margin: 0 0 18px 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--magenta);
}
.eyebrow.center { justify-content: center; }
.eyebrow.center::before { display: none; }
/* Slightly larger eyebrow for feature sections (See It Work, Lineup, System, Engineering) */
.eyebrow.lg { font-size: 13px; letter-spacing: 0.28em; }
.eyebrow.lg::before { width: 32px; }

h1, h2, h3, h4 { font-weight: 800; letter-spacing: -0.01em; margin: 0 0 16px 0; }
h1 {
  font-size: clamp(40px, 7vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
}
h1 .accent {
  background: linear-gradient(90deg, #cfd8e3 0%, var(--magenta) 70%, var(--magenta-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
h2 { font-size: clamp(28px, 4vw, 44px); line-height: 1.08; }
h3 { font-size: 18px; }
h4 { font-size: 14px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--magenta); }
p { color: var(--text-mute); margin: 0 0 16px 0; }
p.lede { font-size: 18px; color: var(--text); max-width: 640px; }
p.lede.center { margin-left: auto; margin-right: auto; text-align: center; }

ul.clean { list-style: none; padding: 0; margin: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  font-family: inherit;
}
.btn-primary {
  background: linear-gradient(90deg, var(--magenta) 0%, var(--magenta-3) 100%);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(217, 70, 239, 0.4), 0 12px 40px -12px rgba(217, 70, 239, 0.5);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px var(--magenta), 0 18px 50px -10px rgba(217, 70, 239, 0.7);
}
.btn-primary:disabled {
  background: var(--steel-3);
  color: var(--text-dim);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--magenta); color: var(--magenta-2); }
.btn-block { width: 100%; justify-content: center; }

/* ==================== HERO (home) ==================== */
.hero { padding: 120px 0 80px 0; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
}
.hero-copy { max-width: 640px; }
.hero-actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.hero-stats .stat-num { font-size: 26px; font-weight: 800; color: var(--text); letter-spacing: -0.02em; }
.hero-stats .stat-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.2em; color: var(--text-dim); margin-top: 4px; }

.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(217, 70, 239, 0.18), transparent 60%),
    linear-gradient(180deg, var(--bg-elev) 0%, var(--bg) 100%);
  overflow: hidden;
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(217, 70, 239, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(217, 70, 239, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
.hero-visual svg { width: 100%; height: 100%; }
.hero-corner {
  position: absolute;
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--text-dim);
  text-transform: uppercase;
}
.hero-corner.tl { top: 14px; left: 14px; }
.hero-corner.tr { top: 14px; right: 14px; color: var(--magenta); }
.hero-corner.bl { bottom: 14px; left: 14px; }
.hero-corner.br { bottom: 14px; right: 14px; }

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 56px; }
  .hero-visual { max-width: 480px; margin: 0 auto; width: 100%; }
}

/* ==================== PAGE HEADER (interior pages) ==================== */
/* Padding + H1 scale match the home page .hero so every page's "header
   area" feels the same size — no progressive shrinking when navigating. */
.page-header {
  padding: 120px 0 80px 0;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.page-header p { max-width: 640px; margin: 0 auto; font-size: 17px; color: var(--text-mute); }

.crumbs {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 18px;
}
.crumbs a { color: var(--text-mute); text-decoration: none; }
.crumbs a:hover { color: var(--magenta-2); }
.crumbs span { color: var(--steel-1); }

/* ==================== MANIFESTO PILLARS ==================== */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.pillar {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.pillar:hover { border-color: var(--magenta); transform: translateY(-2px); }
.pillar-num { font-size: 11px; letter-spacing: 0.3em; color: var(--magenta); margin-bottom: 14px; }
.pillar h3 { font-size: 18px; margin-bottom: 10px; }
.pillar p { font-size: 14px; margin: 0; }
.pillar::after {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 56px; height: 56px;
  background: linear-gradient(225deg, rgba(217, 70, 239, 0.18), transparent 60%);
  pointer-events: none;
}

@media (max-width: 880px) { .pillars { grid-template-columns: 1fr; } }

/* ==================== PRODUCT GRID ==================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 48px;
}
.products-grid.tight { margin-top: 24px; }
.product-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s;
  text-decoration: none;
  color: inherit;
}
.product-card:hover { border-color: var(--magenta); transform: translateY(-3px); }
.product-card.coming-soon { opacity: 0.86; }
.product-card.coming-soon:hover { border-color: var(--steel-1); }

.product-art {
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(ellipse at 50% 60%, rgba(217, 70, 239, 0.22), transparent 65%),
    linear-gradient(180deg, var(--bg-elev2) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(217, 70, 239, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(217, 70, 239, 0.06) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}
.product-art svg { width: 78%; height: 78%; position: relative; z-index: 1; }
.product-art .stamp {
  position: absolute;
  top: 12px; right: 12px;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(217, 70, 239, 0.15);
  border: 1px solid rgba(217, 70, 239, 0.5);
  color: var(--magenta-2);
  z-index: 2;
}
.product-art .stamp.soon { background: rgba(255,255,255,0.04); border-color: var(--line); color: var(--text-mute); }

.product-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.product-tag { font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--magenta); margin-bottom: 8px; }
.product-card h3 { font-size: 19px; margin-bottom: 8px; }
.product-card p { font-size: 14px; margin-bottom: 16px; flex: 1; }
.product-spec { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; }

.chip {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-mute);
  background: rgba(255,255,255,0.02);
}
.chip.live { color: var(--magenta); border-color: rgba(217, 70, 239, 0.5); }
.chip.tier1 { color: var(--magenta-2); border-color: rgba(217, 70, 239, 0.5); }
.chip.tier2 { color: var(--text-mute); }

@media (max-width: 960px) { .products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .products-grid { grid-template-columns: 1fr; } }

/* Filter bar (shop page) */
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  margin-top: 8px;
}
.filter-bar button {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text-mute);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.18s;
}
.filter-bar button:hover { color: var(--text); border-color: var(--steel-1); }
.filter-bar button.active { background: var(--magenta); border-color: var(--magenta); color: #0a0a0e; }

/* ==================== PRODUCT DETAIL PAGE ==================== */
.product-detail {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  padding: 56px 0 32px 0;
  align-items: start;
}
.product-hero {
  position: sticky;
  top: 84px;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(217, 70, 239, 0.18), transparent 65%),
    linear-gradient(180deg, var(--bg-elev) 0%, var(--bg) 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(217, 70, 239, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(217, 70, 239, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
.product-hero svg { width: 84%; height: 84%; position: relative; z-index: 1; }

.product-info .product-tag { font-size: 11px; }
.product-info h1 { font-size: clamp(32px, 4.5vw, 52px); margin-bottom: 12px; line-height: 1.05; }
.product-info .lede { margin-bottom: 32px; }

.price-block {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px 22px;
  background: var(--bg-elev);
  margin: 12px 0 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.price-block .price-label {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.price-block .price {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}
.price-block .status {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
}
.price-block .status.coming { color: var(--warn); border: 1px solid rgba(251, 191, 36, 0.4); background: rgba(251, 191, 36, 0.08); }
.price-block .status.live { color: var(--ok); border: 1px solid rgba(74, 222, 128, 0.4); background: rgba(74, 222, 128, 0.08); }

.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}
.spec-table tr { border-bottom: 1px solid var(--line-soft); }
.spec-table tr:last-child { border-bottom: none; }
.spec-table td {
  padding: 13px 0;
  font-size: 14px;
  vertical-align: top;
}
.spec-table td.k {
  color: var(--text-dim);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 11px;
  width: 38%;
  padding-right: 16px;
}
.spec-table td.v { color: var(--text); }
.spec-table td.v strong { color: var(--magenta-2); }

.use-cases {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.use-case {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 13px;
  color: var(--text);
  background: var(--bg-elev);
}
.use-case .uc-tag {
  display: block;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--magenta);
  margin-bottom: 4px;
}

@media (max-width: 960px) {
  .product-detail { grid-template-columns: 1fr; gap: 32px; }
  .product-hero { position: static; max-width: 520px; margin: 0 auto; width: 100%; }
  .use-cases { grid-template-columns: 1fr; }
}

/* ==================== TPS SECTION ==================== */
.tps-section { background: linear-gradient(180deg, var(--bg) 0%, #0d0d12 100%); }
.tps-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.tps-specs { margin-top: 28px; border-top: 1px solid var(--line); }
.tps-specs .row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
}
.tps-specs .row .k { color: var(--text-dim); letter-spacing: 0.16em; text-transform: uppercase; font-size: 11px; }
.tps-specs .row .v { color: var(--text); }
.tps-specs .row .v strong { color: var(--magenta-2); }

.tps-diagram {
  aspect-ratio: 1 / 1;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(217, 70, 239, 0.15), transparent 70%),
    var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}
.tps-diagram::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(217, 70, 239, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(217, 70, 239, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
.tps-diagram svg { width: 100%; height: 100%; position: relative; z-index: 1; }

/* See It Work + System sections — narrower diagrams so they don't overpower the copy */
#see-it-work .tps-diagram,
#standard .tps-diagram { max-width: 600px; margin: 0 auto; width: 100%; }

@media (max-width: 960px) { .tps-inner { grid-template-columns: 1fr; gap: 48px; } }

/* ==================== OPAQUE vs TRANSLUCENT COMPARE ==================== */
.compare-block { margin-top: 80px; padding-top: 56px; border-top: 1px solid var(--line); }
.compare-block h3 { font-size: clamp(22px, 3vw, 30px); margin-bottom: 6px; }
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 36px;
}
.compare-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s;
}
.compare-card.translucent {
  border-color: var(--magenta);
  box-shadow: 0 0 0 1px rgba(217, 70, 239, 0.25), 0 18px 50px -20px rgba(217, 70, 239, 0.4);
}
.compare-card.translucent:hover { transform: translateY(-3px); }

.compare-card .compare-label {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 16px;
  font-weight: 700;
}
.compare-card.translucent .compare-label { color: var(--magenta); }

.compare-card .compare-art {
  background:
    radial-gradient(ellipse at 50% 60%, rgba(217, 70, 239, 0.12), transparent 65%),
    linear-gradient(180deg, var(--bg-elev2) 0%, var(--bg) 100%);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 18px;
  margin: 0 auto 20px;
  width: 100%;
  max-width: 600px;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.compare-card .compare-art::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(217, 70, 239, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(217, 70, 239, 0.05) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
  border-radius: 8px;
}
.compare-card .compare-art svg { width: 100%; height: 100%; position: relative; z-index: 1; }

.compare-card ul.compare-points { list-style: none; padding: 0; margin: 0; }
.compare-card ul.compare-points li {
  padding: 12px 0 12px 28px;
  font-size: 14px;
  color: var(--text);
  border-bottom: 1px solid var(--line-soft);
  position: relative;
}
.compare-card ul.compare-points li:last-child { border-bottom: none; }
.compare-card ul.compare-points li::before {
  position: absolute;
  left: 0; top: 12px;
  font-weight: 800;
  font-size: 16px;
  width: 20px;
  text-align: center;
}
.compare-card.opaque ul.compare-points li::before { content: "✗"; color: #ff6b6b; }
.compare-card.opaque ul.compare-points li { color: var(--text-mute); }
.compare-card.translucent ul.compare-points li::before { content: "✓"; color: var(--magenta); }

@media (max-width: 720px) {
  .compare-grid { grid-template-columns: 1fr; }
  .compare-block { padding-top: 40px; margin-top: 56px; }
}

/* ==================== ENGINEERING ==================== */
.engineering { background: linear-gradient(180deg, #0d0d12 0%, var(--bg) 100%); }
.eng-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: start;
  margin-top: 32px;
}
.eng-list li {
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
}
.eng-list li .k {
  color: var(--magenta);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding-top: 2px;
}
.eng-list li .v { color: var(--text); font-size: 15px; }
.eng-list li .v small { display: block; color: var(--text-dim); font-size: 13px; margin-top: 4px; }

.silica-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.silica-card::before {
  content: "";
  position: absolute;
  top: -40px; right: -40px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(217, 70, 239, 0.25), transparent 60%);
  pointer-events: none;
}
.silica-card h3 { font-size: 22px; }
.silica-card .badge {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--magenta);
  border: 1px solid rgba(217, 70, 239, 0.5);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.silica-card p { font-size: 14px; }

@media (max-width: 960px) {
  .eng-grid { grid-template-columns: 1fr; gap: 32px; }
  .eng-list li { grid-template-columns: 1fr; gap: 4px; }
}

/* ==================== TIMELINE (about/roadmap) ==================== */
.timeline { margin-top: 48px; position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  left: 9px; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, var(--magenta) 0%, var(--steel-2) 100%);
}
.tl-item { padding: 0 0 32px 38px; position: relative; }
.tl-item::before {
  content: "";
  position: absolute;
  left: 4px; top: 6px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--magenta);
  box-shadow: 0 0 12px rgba(217, 70, 239, 0.6);
}
.tl-item.future::before { background: var(--steel-2); box-shadow: none; }
.tl-item .tl-date {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--magenta);
  margin-bottom: 6px;
}
.tl-item h3 { font-size: 18px; margin-bottom: 6px; }
.tl-item p { font-size: 14px; margin: 0; }

/* ==================== EMAIL CAPTURE ==================== */
.signup {
  text-align: center;
  padding: 120px 0;
  position: relative;
}
.signup::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(217, 70, 239, 0.15), transparent 60%);
  pointer-events: none;
}
.signup .container { position: relative; }
.signup h2 { max-width: 720px; margin: 0 auto 20px; }
.signup p { max-width: 540px; margin: 0 auto 36px; font-size: 16px; }

.signup-form {
  display: flex;
  gap: 10px;
  max-width: 520px;
  margin: 0 auto;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px;
  transition: border-color 0.2s;
}
.signup-form:focus-within { border-color: var(--magenta); }
.signup-form input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 15px;
  padding: 12px 14px;
  outline: none;
}
.signup-form input::placeholder { color: var(--text-dim); }
.signup-form button { padding: 12px 22px; border-radius: 5px; }

.signup-msg {
  margin-top: 18px;
  font-size: 14px;
  color: var(--ok);
  min-height: 22px;
  letter-spacing: 0.05em;
}
.signup-msg.err { color: #ff6b6b; }

.signup-trust {
  margin-top: 28px;
  color: var(--text-dim);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

@media (max-width: 600px) {
  .signup-form { flex-direction: column; padding: 10px; }
  .signup-form button { width: 100%; }
}

/* ==================== FORMS (contact) ==================== */
.contact-form { display: grid; gap: 18px; max-width: 640px; margin-top: 32px; }
.contact-form label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--magenta);
  margin-bottom: 8px;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 15px;
  padding: 12px 14px;
  border-radius: 6px;
  outline: none;
  transition: border-color 0.18s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { border-color: var(--magenta); }
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .contact-form .form-row { grid-template-columns: 1fr; } }

/* ==================== FOOTER ==================== */
footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 28px 0;
  margin-top: auto;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line-soft);
}
.foot-col h4 {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 18px;
}
.foot-col ul li { margin-bottom: 10px; }
.foot-col ul li a {
  color: var(--text-mute);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.18s;
}
.foot-col ul li a:hover { color: var(--magenta-2); }
.foot-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; text-decoration: none; }
.foot-brand .foot-icon { width: 40px; height: 40px; object-fit: contain; flex: 0 0 auto; }
.foot-brand .foot-wordmark { height: 28px; width: auto; object-fit: contain; flex: 0 0 auto; }
.foot-tag { font-size: 13px; color: var(--text-mute); max-width: 280px; }

.foot-meta {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: var(--text-dim);
}
.foot-meta > div > span { color: var(--magenta); }
.foot-legal { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.foot-legal a { color: var(--text-mute); text-decoration: none; transition: color 0.18s; }
.foot-legal a:hover { color: var(--magenta-2); }
.foot-legal span { color: var(--text-dim); }
.foot-legal span:last-child { color: var(--text-dim); }

@media (max-width: 880px) {
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 540px) {
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ==================== UTILITY ==================== */
.center { text-align: center; }
.muted { color: var(--text-mute); }
.dim { color: var(--text-dim); }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.mt-6 { margin-top: 48px; }
.mb-0 { margin-bottom: 0; }
.flex-row { display: flex; gap: 14px; flex-wrap: wrap; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s, transform 0.7s; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* SVG defs reused via <use> not feasible across files; gradients are redeclared per-page where needed.
   For inline SVGs keep their own <defs>. */

/* ============================================================
   TOUCH-DEVICE FIX
   iOS Safari fires :hover state momentarily when a finger drags
   across an element during scroll. With our hover transforms,
   that means cards visibly jitter -3px and snap back as you scroll
   past them. Suppress every hover-only transform on touch devices.
   ============================================================ */

@media (hover: none) {
  .pillar:hover,
  .product-card:hover,
  .product-card.coming-soon:hover,
  .compare-card.translucent:hover,
  .road-card:hover {
    transform: none;
    border-color: var(--line);
  }
  .compare-card.translucent:hover { border-color: var(--magenta); }
  .btn-primary:hover { transform: none; }
}

/* ============================================================
   MOBILE COMPRESSION
   Tightens vertical rhythm on phone screens. Without this, each
   section is ~96px top + 96px bottom + content, and 8+ stacked
   sections turn the home page into endless scroll.

   Also removes scroll-expensive effects (large box-shadows, blur
   filters, backdrop-filter) that cause jitter on mid-tier phones.
   ============================================================ */

@media (max-width: 720px) {

  /* ----- Scroll-expensive effects: kill on mobile ----- */

  /* Heavy magenta glow on the translucent card was the main culprit.
     The magenta border alone signals "good" — drop the shadow. */
  .compare-card.translucent {
    box-shadow: none;
  }

  /* Big fixed blur on body::after costs a re-raster on every scroll
     frame on iOS Safari. Hide it on mobile — the gradient backdrop
     still looks good without the bloom. */
  body::after { display: none; }

  /* Decorative grid pseudo-elements force one extra GPU compositing
     layer per card. The home page has 4 of them stacked across the
     hero, See It Work diagram, every product card, and every compare
     card. On mobile that compounds — hide them all, keep the gradient
     backgrounds underneath. */
  .hero-visual::before,
  .product-art::before,
  .tps-diagram::before,
  .compare-card .compare-art::before {
    display: none;
  }

  /* The body::before backdrop grid is expensive too — keep it but
     drop the opacity so it doesn't drive heavy compositing. */
  body::before { opacity: 0.4; }

  /* Reveal animations: scroll-triggered transform + opacity transition
     on dozens of elements is one of the costliest patterns. Keep the
     fade but drop the translate — eliminates a per-frame transform
     interpolation as you scroll. */
  .reveal {
    transform: none;
    transition: opacity 0.4s ease-out;
  }

  /* backdrop-filter: blur on the sticky nav is also expensive — swap
     for a solid background that compositors handle for free. */
  .nav {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(10, 10, 14, 0.94);
  }

  /* Drop the launch-trio + product-card hover shadow boost too. */
  .btn-primary {
    box-shadow: 0 0 0 1px rgba(217, 70, 239, 0.4);
  }

  /* ----- iOS auto-zoom prevention ----- */
  /* iOS Safari/Chrome auto-zooms any input below 16px on focus.
     Bump everything that takes text input to 16px on mobile. */
  .signup-form input,
  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    font-size: 16px;
  }

  /* ----- Tap target sizes (Apple HIG: 44pt minimum) ----- */
  .filter-bar button {
    padding: 12px 18px;     /* was 8px 14px */
    font-size: 12px;        /* was 11px */
  }
  .chip {
    padding: 6px 12px;      /* was 4px 10px */
    font-size: 11px;        /* was 10px */
  }
  .foot-col ul li a {
    display: inline-block;
    padding: 6px 0;         /* was no padding */
    min-height: 32px;
  }

  /* ----- Reserve space for JS-rendered launch trio (CLS fix) ----- */
  /* Three product cards stack on mobile, each ~340px tall.
     Reserve the space so the page doesn't jump when JS fills it. */
  #featured-grid:empty {
    min-height: 1080px;
  }

  /* ----- Vertical rhythm compression ----- */


  /* Section vertical rhythm — cut roughly in half */
  section            { padding: 56px 0; }
  section.tight      { padding: 40px 0; }
  .hero              { padding: 72px 0 40px 0; }
  .signup            { padding: 72px 0; }
  .page-header       { padding: 72px 0 40px 0; }

  /* Hero copy / visual gap */
  .hero-inner        { gap: 36px; }
  .hero-copy         { max-width: none; }
  .hero-actions      { margin-top: 24px; }

  /* Hero stats: stack vertically on phone — 3 full-width rows.
     Long labels ("Universal Port System", "Translucent — See It Work")
     no longer wrap into 95px columns. Subtle dividers between rows
     keep the rhythm clear. */
  .hero-stats        { grid-template-columns: 1fr; gap: 0; margin-top: 36px; padding-top: 20px; }
  .hero-stats > div  { padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
  .hero-stats > div:last-child { padding-bottom: 0; border-bottom: none; }
  .hero-stats > div:first-child { padding-top: 4px; }
  .hero-stats .stat-num   { font-size: 24px; }
  .hero-stats .stat-label { font-size: 11px; letter-spacing: 0.2em; margin-top: 2px; }

  .hero-visual       { max-width: 360px; }

  /* Body type: keep h1 punchy but pull it back from desktop scale */
  h1                 { margin-bottom: 16px; }
  h2                 { margin-bottom: 12px; }
  p.lede             { font-size: 16px; }

  /* Pillars + grids — already collapse to 1 col, just reduce vertical pad */
  .pillars           { gap: 14px; margin-top: 28px; }
  .pillar            { padding: 22px; }

  /* Product grid breathing room */
  .products-grid     { gap: 14px; margin-top: 28px; }

  /* See-It-Work / TPS section spacing */
  .tps-inner         { gap: 32px; }
  .tps-specs .row    { padding: 10px 0; }

  /* ----- Compare block: size + complexity reduction ----- */
  /* On desktop the compare-art is aspect-ratio 4:3, which on a phone
     stretches each illustration to ~210px tall. Two cards = ~500px of
     decorative SVG eating real estate, plus a heavy compositing surface
     (gradient + grid pseudo + SVG with its own gradients) that causes
     scroll jitter on iPhone Safari/Chrome. On mobile we drop the
     aspect-ratio, fix a small height, and flatten the background to a
     single solid color. The bullet points carry the message — the
     illustration is now a thumbnail, not a hero. */
  .compare-block     { margin-top: 32px; padding-top: 24px; }
  .compare-grid      { gap: 12px; margin-top: 20px; }
  .compare-card      {
    padding: 14px;
    transition: none;            /* eliminate per-frame compositing on scroll */
  }
  .compare-card .compare-art {
    aspect-ratio: auto;
    height: 110px;               /* fixed compact height (was ~210px stretched) */
    padding: 8px;
    margin-bottom: 12px;
    background: var(--bg-elev2); /* single flat color — no gradients */
    border: 1px solid var(--line-soft);
  }
  .compare-card .compare-art svg {
    width: auto;
    height: 100%;
    max-width: 100%;
  }
  .compare-card .compare-label { margin-bottom: 10px; font-size: 10px; }
  .compare-card ul.compare-points li {
    padding: 8px 0 8px 24px;     /* was 12px 0 12px 28px */
    font-size: 13px;
  }
  .compare-card ul.compare-points li::before { top: 8px; font-size: 14px; }

  /* Body backdrop grid: was reduced to opacity 0.4 — drop entirely on
     mobile. One less compositing layer over the whole page. */
  body::before { display: none; }

  /* Engineering page eng-list — items collapse on small screens already */
  .eng-list li       { padding: 12px 0; }

  /* Timeline tighter */
  .timeline          { margin-top: 32px; }
  .tl-item           { padding-bottom: 22px; }

  /* Manifesto pillars margin from h2 */
  #manifesto .pillars { margin-top: 28px; }

  /* Footer - collapse breathing room */
  footer             { padding: 40px 0 24px 0; }
  .foot-grid         { gap: 24px; padding-bottom: 28px; }
}

/* Hardening against horizontal scroll on iOS Safari — some inline SVGs
   with viewBox can occasionally overflow their container by a fractional
   pixel which iOS treats as scrollable. Belt and suspenders. */
html { overflow-x: hidden; }
section, .container, .container-narrow { max-width: 100%; }
img, svg { max-width: 100%; }

/* ==================== BRAND ACCENTS ==================== */
/* Small wordmark or icon above a section header — used like an eyebrow
   image stamp. Renders dim by default, glows on reveal. */
.section-bug {
  display: block;
  margin: 0 auto 18px;
  height: 28px;
  width: auto;
  opacity: 0.55;
  filter: drop-shadow(0 0 18px rgba(217, 70, 239, 0.25));
  transition: opacity 0.35s ease;
}
.section-bug.left { margin: 0 0 18px 0; }
.section-bug.icon-bug { height: 36px; opacity: 0.7; }
.section-bug.lg { height: 40px; opacity: 0.65; }
.section-bug.xl { height: 56px; opacity: 0.7; }
.reveal.in .section-bug { opacity: 0.85; }

/* Stacked icon + wordmark — used at the top of major pages */
.brand-stack {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(217, 70, 239, 0.06), rgba(154, 28, 199, 0.02));
}
.brand-stack img.bs-icon { height: 28px; width: auto; }
.brand-stack img.bs-wordmark { height: 18px; width: auto; opacity: 0.85; }
.brand-stack .bs-rule { width: 1px; height: 22px; background: var(--line); }

/* Faint icon watermark — absolutely positioned background brand mark
   inside a section. Subtle, decorative, never blocking content. */
.brand-watermark {
  position: absolute;
  width: 360px;
  height: 360px;
  background-image: url("logos/toolbot-icon.png?v=8");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
  filter: drop-shadow(0 0 60px rgba(217, 70, 239, 0.4));
}
.brand-watermark.tr { top: -40px; right: -40px; }
.brand-watermark.bl { bottom: -40px; left: -40px; }
.brand-watermark.tl { top: -40px; left: -40px; }
.brand-watermark.br { bottom: -40px; right: -40px; }
.brand-watermark.center { top: 50%; left: 50%; transform: translate(-50%, -50%); width: 480px; height: 480px; opacity: 0.04; }
.brand-watermark.wordmark { background-image: url("logos/toolbot-wordmark.png?v=8"); width: 720px; height: 200px; opacity: 0.035; }
.brand-watermark.wordmark.center { width: 920px; height: 240px; opacity: 0.04; }

@media (max-width: 720px) {
  .brand-watermark { width: 220px; height: 220px; }
  .brand-watermark.center { width: 280px; height: 280px; }
  .brand-watermark.wordmark { width: 380px; height: 100px; }
  .brand-watermark.wordmark.center { width: 460px; height: 130px; }
}

/* The hero visual already has a corner label slot — repurpose to show
   the wordmark as a subtle "powered by" mark when desired */
.hero-visual .hero-wordmark {
  position: absolute;
  bottom: 14px;
  right: 14px;
  height: 18px;
  width: auto;
  opacity: 0.7;
  pointer-events: none;
  filter: drop-shadow(0 0 10px rgba(217, 70, 239, 0.4));
  z-index: 2;
}

/* Page-header brand stamp — wordmark above the H1 on interior pages */
.page-header .ph-wordmark {
  display: block;
  margin: 0 auto 18px;
  height: 32px;
  width: auto;
  opacity: 0.75;
  filter: drop-shadow(0 0 12px rgba(217, 70, 239, 0.3));
}
.page-header .ph-icon {
  display: block;
  margin: 0 auto 12px;
  height: 44px;
  width: auto;
  opacity: 0.85;
  filter: drop-shadow(0 0 16px rgba(217, 70, 239, 0.35));
}

/* Big featured wordmark in 404 / signup hero — bigger and brighter */
.feature-wordmark {
  display: block;
  margin: 0 auto;
  width: min(520px, 88%);
  height: auto;
  opacity: 0.92;
  filter: drop-shadow(0 0 28px rgba(217, 70, 239, 0.4));
}

/* Icon + wordmark side-by-side in launch-access / signup hero blocks */
.feature-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.feature-brand .feature-icon {
  height: 80px;
  width: auto;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 0 22px rgba(217, 70, 239, 0.4));
}
/* Inside .feature-brand, neutralize the standalone-block sizing of .feature-wordmark */
.feature-brand .feature-wordmark {
  display: block;
  margin: 0;
  width: auto;
  height: 56px;
  max-width: 70vw;
}
@media (max-width: 720px) {
  .feature-brand { gap: 14px; }
  .feature-brand .feature-icon { height: 56px; }
  .feature-brand .feature-wordmark { height: 38px; }
}

/* Inline mark in body copy — for sentences that mention "Toolbot" */
.inline-wordmark {
  height: 14px;
  width: auto;
  vertical-align: -2px;
  margin: 0 2px;
  opacity: 0.92;
  filter: drop-shadow(0 0 4px rgba(217, 70, 239, 0.25));
}

/* TPS unified-interface puck — uses the icon mark itself as the centerpiece */
.tps-icon-puck {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 42%;
  height: 42%;
  background-image: url("logos/toolbot-icon.png?v=8");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: drop-shadow(0 0 22px rgba(217, 70, 239, 0.55));
  opacity: 0.95;
  z-index: 2;
  pointer-events: none;
}

/* ============================================================
   LIGHT THEME — robotic-grey palette inspired by the wordmark's
   "TOOL" half. Keeps every magenta accent, glow, and grid the
   same — only the surfaces, text, and lines move toward grey.
   Triggered by html[data-theme="light"] (set by theme toggle).
   ============================================================ */

html[data-theme="light"] {
  --bg:        #eef0f4;
  --bg-elev:   #f7f9fc;
  --bg-elev2:  #e2e5eb;
  --line:      #c8ccd4;
  --line-soft: #dee1e7;
  --text:      #1c1e25;
  --text-mute: #5a5e6a;
  --text-dim:  #888c96;
  --steel-1:   #7e8390;
  --steel-2:   #5a5e6a;
  --steel-3:   #44474f;
  /* magenta family stays identical — that's the brand signature */
}

/* Body grid + glow re-tinted slightly so the lines read on a grey field */
html[data-theme="light"] body::before {
  background-image:
    linear-gradient(rgba(217, 70, 239, 0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(217, 70, 239, 0.10) 1px, transparent 1px);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 80%);
}
html[data-theme="light"] body::after {
  background: radial-gradient(ellipse at center, rgba(217, 70, 239, 0.22), transparent 60%);
  filter: blur(70px);
}

/* Nav: lighter, still translucent + frosted */
html[data-theme="light"] .nav {
  background: rgba(230, 232, 238, 0.78);
  border-bottom: 1px solid var(--line);
}
html[data-theme="light"] .nav-cta {
  background: linear-gradient(90deg, rgba(217, 70, 239, 0.18), rgba(154, 28, 199, 0.06));
  color: var(--text);
}
html[data-theme="light"] .nav-cta:hover { background: var(--magenta); color: #fff; }
html[data-theme="light"] .nav-links a:hover,
html[data-theme="light"] .nav-links a.active { color: var(--magenta-3); }

/* Buttons */
html[data-theme="light"] .btn-primary { color: #fff; }
html[data-theme="light"] .btn-ghost { color: var(--text); }
html[data-theme="light"] .btn-ghost:hover { color: var(--magenta-3); }

/* Headlines */
html[data-theme="light"] h1 .accent {
  background: linear-gradient(90deg, #2c3038 0%, var(--magenta-3) 60%, var(--magenta) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Hero visual — flip the gradient so it reads on the grey field */
html[data-theme="light"] .hero-visual {
  background:
    radial-gradient(ellipse at 50% 30%, rgba(217, 70, 239, 0.22), transparent 60%),
    linear-gradient(180deg, var(--bg-elev) 0%, var(--bg-elev2) 100%);
}

/* Pillars / cards */
html[data-theme="light"] .pillar,
html[data-theme="light"] .product-card,
html[data-theme="light"] .compare-card,
html[data-theme="light"] .silica-card,
html[data-theme="light"] .use-case,
html[data-theme="light"] .price-block,
html[data-theme="light"] .signup-form,
html[data-theme="light"] .contact-form input,
html[data-theme="light"] .contact-form select,
html[data-theme="light"] .contact-form textarea {
  background: var(--bg-elev);
  border-color: var(--line);
}
html[data-theme="light"] .product-art {
  background:
    radial-gradient(ellipse at 50% 60%, rgba(217, 70, 239, 0.22), transparent 65%),
    linear-gradient(180deg, #f7f9fc 0%, #e2e5ec 100%);
}
html[data-theme="light"] .product-art::before {
  background-image:
    linear-gradient(rgba(217, 70, 239, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(217, 70, 239, 0.08) 1px, transparent 1px);
}
html[data-theme="light"] .compare-card .compare-art {
  background:
    radial-gradient(ellipse at 50% 60%, rgba(217, 70, 239, 0.14), transparent 65%),
    linear-gradient(180deg, #f7f9fc 0%, #e2e5ec 100%);
}
html[data-theme="light"] .compare-card.opaque ul.compare-points li { color: var(--text-mute); }
html[data-theme="light"] .product-hero,
html[data-theme="light"] .tps-diagram {
  background:
    radial-gradient(ellipse at 50% 50%, rgba(217, 70, 239, 0.20), transparent 65%),
    var(--bg-elev);
}
html[data-theme="light"] .tps-diagram::before {
  background-image:
    linear-gradient(rgba(217, 70, 239, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(217, 70, 239, 0.12) 1px, transparent 1px);
}

/* Skip-to-content text colour */
html[data-theme="light"] .skip-to-content { color: #fff; }

/* Section background gradients (TPS section, engineering) — flip to lighter */
html[data-theme="light"] .tps-section {
  background: linear-gradient(180deg, var(--bg) 0%, #e2e5ec 100%);
}
html[data-theme="light"] .engineering {
  background: linear-gradient(180deg, #e2e5ec 0%, var(--bg) 100%);
}

/* Status pill on price block */
html[data-theme="light"] .price-block .status.coming { background: rgba(251, 191, 36, 0.18); }
html[data-theme="light"] .price-block .status.live { background: rgba(74, 222, 128, 0.20); }

/* Stamp on product art */
html[data-theme="light"] .product-art .stamp {
  background: rgba(217, 70, 239, 0.18);
  color: var(--magenta-3);
}
html[data-theme="light"] .product-art .stamp.soon {
  background: rgba(255, 255, 255, 0.6);
  color: var(--text-mute);
}

/* Chips */
html[data-theme="light"] .chip {
  background: rgba(255, 255, 255, 0.5);
  color: var(--text-mute);
}
html[data-theme="light"] .chip.live,
html[data-theme="light"] .chip.tier1 { color: var(--magenta-3); border-color: rgba(217, 70, 239, 0.55); background: rgba(217, 70, 239, 0.08); }

/* Filter bar */
html[data-theme="light"] .filter-bar button {
  color: var(--text-mute);
  background: rgba(255, 255, 255, 0.45);
}
html[data-theme="light"] .filter-bar button.active {
  background: var(--magenta);
  color: #fff;
  border-color: var(--magenta);
}

/* Compare card translucent variant — keep the magenta border + glow */
html[data-theme="light"] .compare-card.translucent {
  box-shadow: 0 0 0 1px rgba(217, 70, 239, 0.35), 0 18px 50px -20px rgba(217, 70, 239, 0.45);
}

/* Footer + signup gradient */
html[data-theme="light"] footer { border-top: 1px solid var(--line); }
html[data-theme="light"] .signup::before {
  background: radial-gradient(ellipse at center, rgba(217, 70, 239, 0.22), transparent 60%);
}

/* Hero stat divider */
html[data-theme="light"] .hero-stats { border-top-color: var(--line); }

/* Brand watermark — boost opacity on light bg so it reads */
html[data-theme="light"] .brand-watermark { opacity: 0.06; }
html[data-theme="light"] .brand-watermark.center { opacity: 0.05; }
html[data-theme="light"] .brand-watermark.wordmark { opacity: 0.045; }
html[data-theme="light"] .brand-watermark.wordmark.center { opacity: 0.05; }

/* Nav theme toggle on light variant */
html[data-theme="light"] .nav-theme {
  color: var(--text-mute);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.5);
}
html[data-theme="light"] .nav-theme:hover { color: var(--magenta-3); border-color: var(--magenta); }
html[data-theme="light"] .nav-theme.nav-theme-mobile {
  background: transparent;
  border-color: transparent;
  border-top-color: var(--line-soft);
}

/* Hero corners read OK on grey */
html[data-theme="light"] .hero-corner { color: var(--text-dim); }
html[data-theme="light"] .hero-corner.tr { color: var(--magenta-3); }

/* TPS section bug glow stays */
html[data-theme="light"] .section-bug { filter: drop-shadow(0 0 18px rgba(217, 70, 239, 0.35)); }
html[data-theme="light"] .ph-wordmark { filter: drop-shadow(0 0 12px rgba(217, 70, 239, 0.45)); }
html[data-theme="light"] .feature-wordmark { filter: drop-shadow(0 0 28px rgba(217, 70, 239, 0.5)); }

/* On product pages the brand-stack pill needs a hint of contrast */
html[data-theme="light"] .brand-stack {
  background: linear-gradient(90deg, rgba(217, 70, 239, 0.10), rgba(154, 28, 199, 0.04));
}

/* ============================================================
   BRAND MARK — large logo + wordmark, top of home page.
   ============================================================ */
.brand-mark {
  position: relative;
  padding: 96px 0 80px;
  text-align: center;
  overflow: hidden;
}
.brand-mark-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 720px;
  height: 720px;
  max-width: 100%;
  background: radial-gradient(circle, rgba(217, 70, 239, 0.22), transparent 60%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}
.brand-mark .container { position: relative; z-index: 1; }
.brand-mark-stack {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}
.brand-mark-icon {
  width: auto;
  height: 160px;
  max-width: 40vw;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 0 36px rgba(217, 70, 239, 0.45));
}
.brand-mark-wordmark {
  width: auto;
  height: 110px;
  max-width: 70vw;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 0 32px rgba(217, 70, 239, 0.5));
}
@media (max-width: 720px) {
  .brand-mark { padding: 64px 0 48px; }
  .brand-mark-stack { gap: 18px; }
  .brand-mark-icon { height: 100px; }
  .brand-mark-wordmark { height: 70px; }
}

/* Light theme — softer glow on the lighter field */
html[data-theme="light"] .brand-mark-glow {
  background: radial-gradient(circle, rgba(217, 70, 239, 0.28), transparent 60%);
}
html[data-theme="light"] .brand-mark-icon {
  filter: drop-shadow(0 0 36px rgba(217, 70, 239, 0.4));
}
html[data-theme="light"] .brand-mark-wordmark {
  filter: drop-shadow(0 0 28px rgba(217, 70, 239, 0.5));
}

/* ============================================================
   CART — nav button, drawer, qty steppers, empty/full states.
   Provider-agnostic: drawer + state live in assets/cart.js.
   ============================================================ */

/* ----- Nav cart icon ----- */
/* The cart + theme toggle live inside .nav-actions, which controls their
   spacing — so .nav-cart no longer needs its own margin-right. */
.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.nav-cart {
  position: relative;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  transition: all 0.18s ease;
  flex: 0 0 auto;
}
.nav-cart:hover {
  border-color: var(--magenta);
  background: rgba(217, 70, 239, 0.08);
  color: var(--text);
  box-shadow: 0 0 0 3px rgba(217, 70, 239, 0.12);
}
.nav-cart svg { display: block; }
.nav-cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--magenta);
  color: #0a0a0e;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0;
  box-shadow: 0 0 0 2px var(--bg), 0 0 8px rgba(217, 70, 239, 0.7);
}
.nav-cart-badge[hidden] { display: none; }

/* ----- Drawer + backdrop ----- */
.cart-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
  z-index: 90;
}
.cart-backdrop.open { opacity: 1; visibility: visible; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  height: 100dvh;
  width: 420px;
  max-width: 100vw;
  background: var(--bg-elev);
  border-left: 1px solid var(--line);
  box-shadow: -16px 0 48px rgba(0, 0, 0, 0.5);
  z-index: 100;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
}
.cart-drawer.open { transform: translateX(0); }

body.cart-open { overflow: hidden; }

.cart-drawer-header {
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 auto;
}
.cart-drawer-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text);
}
.cart-drawer-title .count { color: var(--magenta); margin-left: 4px; }
.cart-drawer-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text-mute);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s;
}
.cart-drawer-close:hover { color: var(--magenta); border-color: var(--magenta); }

/* ----- Cart items ----- */
.cart-items {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 4px 0 0;
}
.cart-item {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 14px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line-soft);
}
.cart-item-art {
  width: 76px;
  height: 76px;
  background:
    radial-gradient(ellipse at 50% 35%, rgba(232, 121, 249, 0.35), rgba(76, 29, 149, 0.65) 70%);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.cart-item-art svg { width: 70px; height: 56px; }
.cart-item-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.cart-item-sub {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--magenta);
  font-weight: 700;
}
.cart-item-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 2px;
}
.cart-item-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg);
}
.qty-stepper button {
  width: 28px;
  height: 28px;
  background: transparent;
  border: 0;
  color: var(--text);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  font-weight: 600;
}
.qty-stepper button:hover { color: var(--magenta); background: rgba(217, 70, 239, 0.08); }
.qty-stepper .v {
  min-width: 28px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.cart-item-remove {
  background: transparent;
  border: 0;
  color: var(--text-dim);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  transition: color 0.18s;
}
.cart-item-remove:hover { color: var(--magenta-2); }
.cart-item-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

/* ----- Footer + checkout ----- */
.cart-drawer-footer {
  padding: 20px 24px 22px;
  border-top: 1px solid var(--line);
  background: var(--bg-elev2);
  flex: 0 0 auto;
}
.cart-totals {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 5px 0;
  font-size: 13px;
  color: var(--text-mute);
}
.cart-totals .cart-mute { color: var(--text-dim); font-size: 12px; }
.cart-totals.total {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.04em;
  border-top: 1px solid var(--line-soft);
  margin-top: 8px;
  padding-top: 14px;
}
.cart-checkout {
  width: 100%;
  background: var(--magenta);
  color: #0a0a0e;
  border: 0;
  padding: 16px;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.18s;
  box-shadow: 0 0 24px rgba(217, 70, 239, 0.3);
  font-family: inherit;
}
.cart-checkout:hover {
  background: var(--magenta-2);
  box-shadow: 0 0 32px rgba(255, 77, 210, 0.5);
}
.cart-checkout-msg {
  font-size: 12px;
  color: var(--text-mute);
  text-align: center;
  margin-top: 10px;
  min-height: 1.4em;
  line-height: 1.5;
}
.cart-checkout-msg.show { color: var(--magenta-2); }
.cart-trust {
  text-align: center;
  font-size: 10px;
  color: var(--text-dim);
  margin-top: 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ----- Empty state ----- */
.cart-empty {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  text-align: center;
  gap: 10px;
}
.cart-empty-icon {
  width: 56px;
  height: 56px;
  border: 1.5px dashed var(--line);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.cart-empty-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.04em;
}
.cart-empty p {
  color: var(--text-mute);
  margin: 0;
  font-size: 14px;
  max-width: 260px;
}
.cart-empty-link {
  color: var(--magenta);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-top: 10px;
  text-decoration: none;
  border-bottom: 1px solid rgba(217, 70, 239, 0.5);
  padding-bottom: 2px;
}
.cart-empty-link:hover { color: var(--magenta-2); border-color: var(--magenta-2); }

/* ----- Add-to-cart row on the product page ----- */
.cta-add-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
  margin-top: 14px;
}
.cta-add-row .qty-stepper {
  height: 48px;
  border-radius: 10px;
}
.cta-add-row .qty-stepper button {
  width: 40px;
  height: 100%;
  font-size: 18px;
}
.cta-add-row .qty-stepper .v {
  min-width: 40px;
  font-size: 14px;
}
.btn-add-to-cart {
  flex: 1;
  background: var(--magenta);
  color: #0a0a0e;
  border: 0;
  padding: 0 22px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.18s;
  box-shadow: 0 0 24px rgba(217, 70, 239, 0.25);
  font-family: inherit;
}
.btn-add-to-cart:hover {
  background: var(--magenta-2);
  box-shadow: 0 0 32px rgba(255, 77, 210, 0.4);
}
.cta-preorder-note {
  font-size: 12px;
  color: var(--magenta-2);
  margin-top: 10px;
  letter-spacing: 0.04em;
}
.cta-preorder-note::before { content: "↳ "; opacity: 0.7; }

/* ----- Mobile drawer ----- */
@media (max-width: 520px) {
  .cart-drawer { width: 100vw; border-left: 0; }
  .cart-item { grid-template-columns: 64px 1fr; gap: 12px; padding: 16px 18px; }
  .cart-item-art { width: 64px; height: 64px; }
  .cart-item-art svg { width: 56px; height: 44px; }
  .cart-drawer-header { padding: 20px 18px 16px; }
  .cart-drawer-footer { padding: 18px 18px 22px; }
}


/* ============================================================
   LIGHT THEME — cart variants
   ============================================================ */
html[data-theme="light"] .nav-cart {
  background: rgba(255, 255, 255, 0.5);
  border-color: var(--line);
  color: var(--text);
}
html[data-theme="light"] .nav-cart:hover {
  border-color: var(--magenta);
  background: rgba(217, 70, 239, 0.06);
}
html[data-theme="light"] .nav-cart-badge { color: #fff; box-shadow: 0 0 0 2px var(--bg), 0 0 8px rgba(217, 70, 239, 0.5); }
html[data-theme="light"] .cart-backdrop { background: rgba(40, 40, 50, 0.45); }
html[data-theme="light"] .cart-drawer {
  background: var(--bg-elev);
  border-left-color: var(--line);
  box-shadow: -16px 0 48px rgba(0, 0, 0, 0.18);
}
html[data-theme="light"] .qty-stepper { background: rgba(255, 255, 255, 0.7); }
html[data-theme="light"] .cart-item-art {
  background:
    radial-gradient(ellipse at 50% 50%, rgba(217, 70, 239, 0.18), transparent 65%),
    linear-gradient(180deg, #f7f9fc, #e2e5ec);
}
html[data-theme="light"] .cart-checkout { color: #fff; }
html[data-theme="light"] .btn-add-to-cart { color: #fff; }
