/* TabArmor Master Stylesheet - Dark Precision & High Conversion Funnel
   Modeled on Igor Zuev's TubeBlock framework & modern micro-SaaS design systems.
   Rule compliance: Standard ASCII hyphens (-) only. Zero em-dashes and zero en-dashes. */

:root {
  /* Surfaces & Canvas */
  --bg: #09090b;
  --bg-band: #0e0e14;
  --card-bg: rgba(18, 18, 24, 0.75);
  --card-solid: #121218;
  --card-hover: #181822;
  --header-bg: rgba(9, 9, 11, 0.88);

  /* Borders & Highlights */
  --border-hairline: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.18);
  --border-focus: rgba(16, 185, 129, 0.5);
  --highlight-top: inset 0 1px 0 0 rgba(255, 255, 255, 0.10);

  /* Brand Emerald */
  --brand: #10b981;
  --brand-hover: #059669;
  --brand-text: #34d399;
  --brand-glow: rgba(16, 185, 129, 0.25);
  --brand-tint: rgba(16, 185, 129, 0.10);
  --brand-border: rgba(16, 185, 129, 0.28);

  /* Accents */
  --sky: #38bdf8;
  --sky-tint: rgba(56, 189, 248, 0.10);
  --sky-border: rgba(56, 189, 248, 0.28);
  --amber: #fbbf24;
  --amber-tint: rgba(251, 191, 36, 0.10);
  --amber-border: rgba(251, 191, 36, 0.28);
  --rose: #f43f5e;
  --rose-tint: rgba(244, 63, 94, 0.12);
  --rose-border: rgba(244, 63, 94, 0.28);

  /* Typography */
  --ink: #f4f4f6;
  --ink-secondary: #d4d4d8;
  --muted: #a1a1aa;
  --faint: #8e8e99;

  /* Geometry & Rhythm */
  --radius-card: 24px;
  --radius-media: 18px;
  --radius-sm: 10px;
  --radius-pill: 9999px;
  --gutter: 20px;
  --content: 1140px;
  --header-h: 70px;
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', -system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (min-width: 640px) { :root { --gutter: 28px; } }
@media (min-width: 1024px) { :root { --gutter: 40px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* High-Contrast Accessible Focus States (WCAG 2.4.7) */
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}
:focus:not(:focus-visible) {
  outline: none;
}
main:focus {
  outline: none;
}
.btn:focus-visible,
.menu-btn:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.btn-primary:focus-visible,
.btn-stash-action:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

/* Background Atmosphere */
.bg-grid-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(16, 185, 129, 0.14), transparent 70%),
    radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 100% 100%, 28px 28px;
}

img, svg { display: block; max-width: 100%; }
.icon { width: 1.15rem; height: 1.15rem; flex-shrink: 0; }
.hidden { display: none !important; }

/* Layout Wrappers */
.wrap {
  position: relative;
  width: 100%;
  max-width: calc(var(--content) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.wrap.narrow { max-width: calc(760px + 2 * var(--gutter)); }
.wrap.wide { max-width: calc(1220px + 2 * var(--gutter)); }

.section { padding: clamp(48px, 6vw, 96px) 0; position: relative; z-index: 1; }
.section.tight { padding-top: 0; }
#simulator.section,
main.section {
  padding-top: clamp(24px, 3vw, 40px);
}
.band-alt { background: var(--bg-band); border-top: 1px solid var(--border-hairline); border-bottom: 1px solid var(--border-hairline); }

/* Typography */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-text);
  background: var(--brand-tint);
  border: 1px solid var(--brand-border);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}

.display {
  font-size: clamp(2.15rem, 1.4rem + 3.2vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: #ffffff;
  margin: 0 0 18px;
  text-wrap: balance;
}

.display-lead {
  font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.25rem);
  color: var(--muted);
  line-height: 1.6;
  max-width: 52ch;
  margin: 0 0 28px;
}

.h2-title {
  font-size: clamp(1.85rem, 1.2rem + 2vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: #ffffff;
  margin: 0 0 14px;
  text-wrap: balance;
}

.h2-sub {
  font-size: 1.0625rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: 60ch;
  margin: 0 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background: var(--header-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-hairline);
}

.header-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.025em;
}

.logo-icon {
  width: 32px;
  height: 32px;
  display: block;
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.35));
  transition: transform 0.2s ease, filter 0.2s ease;
}
.logo:hover .logo-icon {
  transform: scale(1.05);
  filter: drop-shadow(0 0 14px rgba(16, 185, 129, 0.65));
}

.logo-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--brand-tint);
  border: 1px solid var(--brand-border);
  color: var(--brand-text);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.15);
}

.logo-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 12px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-hairline);
  font-size: 0.75rem;
  color: var(--muted);
}
.led-pulse-green {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.site-nav ul {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.15s ease;
}
.site-nav a:hover { color: #ffffff; }

.header-cta-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

@media (max-width: 480px) {
  .header-in { gap: 8px; }
  .header-cta-group { gap: 8px; }
  .header-cta-group .btn {
    padding: 7px 12px;
    font-size: 0.8125rem;
    gap: 6px;
    min-height: 36px;
  }
}
@media (max-width: 380px) {
  .header-cta-group .btn span { display: none; }
  .header-cta-group .btn { padding: 8px; border-radius: 8px; }
}

.menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  color: #fff;
  cursor: pointer;
}
.menu-btn svg {
  width: 20px;
  height: 20px;
  display: block;
}

@media (max-width: 899px) {
  .menu-btn { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #09090b;
    border-bottom: 1px solid var(--border-strong);
    padding: 20px var(--gutter);
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.9);
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .site-nav ul a {
    display: block;
    padding: 10px 0;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--border-hairline);
  }
  .logo-status { display: none; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 100%;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  user-select: none;
  min-height: 44px;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: linear-gradient(180deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: var(--highlight-top), 0 4px 18px var(--brand-glow);
}
.btn-primary:hover {
  background: linear-gradient(180deg, #059669 0%, #047857 100%);
  color: #ffffff;
  box-shadow: var(--highlight-top), 0 6px 24px rgba(16, 185, 129, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  border-color: var(--border);
  box-shadow: var(--highlight-top);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--border-strong);
  color: #ffffff;
}

.btn-xl {
  min-height: 52px;
  padding: 14px 28px;
  font-size: 1.0625rem;
  font-weight: 700;
}
@media (max-width: 599px) {
  .btn-xl {
    min-height: 48px;
    padding: 12px 18px;
    font-size: 0.9375rem;
    width: 100%;
  }
}

/* Hero Section */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
  padding-top: 0;
}
.hero-left,
.hero-right {
  min-width: 0;
}
@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr 1.05fr;
    gap: 48px;
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}
@media (max-width: 599px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
}

.trust-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 0;
  margin: 0 0 32px;
  list-style: none;
}
.trust-badges-row li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--muted);
  white-space: nowrap;
}
.trust-badges-row li svg {
  color: var(--brand-text);
  width: 14px;
  height: 14px;
}

.hud-metrics-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
}
@media (max-width: 480px) {
  .hud-metrics-strip { grid-template-columns: 1fr; }
}

.hud-card {
  background: rgba(18, 18, 24, 0.65);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  box-shadow: var(--highlight-top);
}
.hud-metric-val {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
}
.hud-metric-val.emerald { color: #34d399; }
.hud-metric-val.sky { color: #38bdf8; }
.hud-metric-val.amber { color: #fbbf24; }
.hud-metric-lbl {
  font-size: 0.75rem;
  color: var(--faint);
  font-weight: 500;
}

/* Interactive Playground Window */
.demo-window {
  position: relative;
  width: 100%;
  border-radius: var(--radius-media);
  background: #09090d;
  border: 1px solid var(--border-strong);
  box-shadow: 0 32px 80px -16px rgba(0, 0, 0, 0.95), 0 0 50px -10px var(--brand-glow);
  overflow: hidden;
}

.demo-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 38px;
  padding: 0 14px;
  background: #121218;
  border-bottom: 1px solid var(--border);
  user-select: none;
}
.traffic-lights {
  display: flex;
  align-items: center;
  gap: 6px;
}
.traffic-lights .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.traffic-lights .dot.red { background: #ef4444; }
.traffic-lights .dot.yellow { background: #f59e0b; }
.traffic-lights .dot.green { background: #10b981; }

.demo-title-text {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
}

@media (max-width: 480px) {
  .demo-topbar {
    padding: 10px 12px;
    gap: 8px;
  }
  .demo-title-text {
    display: none;
  }
  .demo-topbar-metrics {
    margin-left: auto;
  }
}

.demo-topbar-metrics {
  display: flex;
  align-items: center;
  gap: 8px;
}
.demo-ram-badge {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: rgba(244, 63, 94, 0.14);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.3);
  transition: all 0.3s ease;
}
.demo-ram-badge.clean {
  background: var(--brand-tint);
  color: var(--brand-text);
  border-color: var(--brand-border);
}

.demo-body {
  padding: 20px;
}

.demo-hero-control {
  background: #14141c;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: var(--highlight-top);
}

.demo-control-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.demo-control-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.9375rem;
  color: #ffffff;
}

.demo-action-btn-row {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 10px;
}
@media (max-width: 480px) {
  .demo-action-btn-row { grid-template-columns: 1fr; }
}

.btn-stash-action {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-weight: 700;
  font-size: 0.9375rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.3), 0 4px 14px var(--brand-glow);
  transition: all 0.2s ease;
}
.btn-stash-action:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.4), 0 6px 20px rgba(16, 185, 129, 0.5);
}
.btn-stash-action:active { transform: scale(0.98); }

.btn-snapshot-action {
  background: #1c1c26;
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--highlight-top);
  transition: all 0.2s ease;
}
.btn-snapshot-action:hover {
  background: #242432;
  border-color: var(--border-strong);
  color: #ffffff;
}

.kbd-badge {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  padding: 2px 6px;
  color: #fff;
}

.demo-tabs-preview {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.preview-tab-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #101017;
  border: 1px solid var(--border-hairline);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.8125rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  max-height: 50px;
}
.preview-tab-row.tucked {
  opacity: 0;
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin-top: 0;
  margin-bottom: 0;
  border-color: transparent;
  transform: translateY(-8px) scale(0.96);
  pointer-events: none;
}
.tab-row-info {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
}
.tab-badge-group {
  font-size: 0.6875rem;
  font-family: var(--font-mono);
  padding: 1px 6px;
  border-radius: 4px;
  white-space: nowrap;
}
.tab-badge-group.blue { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }
.tab-badge-group.purple { background: rgba(168, 85, 247, 0.15); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.3); }
.tab-badge-group.amber { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.tab-badge-group.emerald { background: var(--brand-tint); color: var(--brand-text); border: 1px solid var(--brand-border); }

.tab-title-text {
  color: var(--ink-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tab-memory-cost {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--faint);
  flex-shrink: 0;
  margin-left: 8px;
}

.demo-vault-card {
  background: #12121a;
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.1);
}
.vault-info-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.vault-title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #ffffff;
}
.vault-meta {
  font-size: 0.6875rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-restore-mini {
  background: var(--brand-tint);
  border: 1px solid var(--brand-border);
  color: var(--brand-text);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease;
}
.btn-restore-mini:hover {
  background: var(--brand);
  color: #fff;
}

/* Toast */
.demo-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 100;
  width: min(34rem, calc(100vw - 32px));
  background: #14141c;
  border: 1px solid var(--brand-border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 30px var(--brand-glow);
  border-radius: var(--radius-media);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.toast-msg-inline {
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
}
.toast-sub-inline {
  font-size: 0.75rem;
  color: var(--muted);
}

/* ---------- Zuev Alternating Feature Rows (.row & .row.flip) */
.features-container {
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 6vw, 84px);
  margin-top: 36px;
}

.row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
@media (min-width: 880px) {
  .row {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
  }
  .row.flip .row-media {
    order: -1;
  }
}

.row-text {
  min-width: 0;
}
.row-text h3 {
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.18;
  color: #ffffff;
  margin: 0 0 14px;
}
.row-text p {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 20px;
}
.row-checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.row-checklist li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
  color: var(--ink-secondary);
}
.row-checklist li svg {
  color: var(--brand-text);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.row-media {
  min-width: 0;
  background: var(--card-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: clamp(20px, 4vw, 32px);
  box-shadow: var(--highlight-top), 0 20px 48px -12px rgba(0, 0, 0, 0.7);
}

/* Individual Feature Mockup Elements */
.mockup-inner {
  background: #0d0d12;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-media);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mockup-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
}

/* 3-Step Flow */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 36px;
}
@media (min-width: 768px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

.step-card {
  background: var(--card-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--highlight-top);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.step-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}
.step-num-pill {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand-tint);
  border: 1px solid var(--brand-border);
  color: var(--brand-text);
  font-family: var(--font-mono);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.step-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 10px;
  color: #fff;
}
.step-card p {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* Comparison Table */
.comparison-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 36px;
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  background: var(--card-solid);
}
.comp-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  text-align: left;
}
.comp-table th, .comp-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-hairline);
  font-size: 0.9375rem;
}
.comp-table th {
  background: #14141c;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.comp-table th.brand-col, .comp-table td.brand-col {
  background: rgba(16, 185, 129, 0.05);
  border-left: 1px solid var(--brand-border);
  border-right: 1px solid var(--brand-border);
  font-weight: 600;
}
.check-yes { color: #34d399; font-weight: 700; }
.check-no { color: #f43f5e; font-weight: 600; }
.check-partial { color: #fbbf24; }

/* FAQ */
.faq-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 36px;
}
.faq-box {
  background: var(--card-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-media);
  padding: 22px 26px;
  box-shadow: var(--highlight-top);
}
.faq-box summary {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
}
.faq-box summary:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}
.faq-box summary::-webkit-details-marker { display: none; }
.faq-box summary svg {
  transition: transform 0.2s ease;
  color: var(--muted);
}
.faq-box[open] summary svg {
  transform: rotate(180deg);
  color: var(--brand-text);
}
.faq-box p {
  margin: 14px 0 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--muted);
}

/* CTA Card */
.cta-banner-card {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(9, 9, 11, 0.9) 100%);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-card);
  padding: clamp(36px, 6vw, 64px) 24px;
  text-align: center;
  box-shadow: 0 24px 60px -12px var(--brand-glow), var(--highlight-top);
}

/* Floating Sticky Pill */
.floating-install-pill {
  position: fixed;
  z-index: 90;
  background: rgba(14, 14, 18, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-strong);
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.8), 0 0 25px rgba(16, 185, 129, 0.2);
  display: flex;
  align-items: center;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, visibility 0.3s ease;
  transform: translateY(120px);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}
.floating-install-pill.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}
@media (min-width: 768px) {
  .floating-install-pill {
    bottom: 28px;
    right: 28px;
    border-radius: var(--radius-pill);
    padding: 8px 12px 8px 18px;
    gap: 16px;
  }
}
@media (max-width: 767px) {
  .floating-install-pill {
    left: 14px;
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    border-radius: 16px;
    padding: 10px 14px;
    justify-content: space-between;
  }
}
@media (max-width: 400px) {
  .floating-pill-sub {
    display: none !important;
  }
}
@media (max-width: 360px) {
  .floating-install-pill {
    padding: 8px 10px;
    gap: 8px;
  }
  .floating-install-pill .btn {
    padding: 6px 10px !important;
    font-size: 0.75rem !important;
    white-space: nowrap;
  }
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-hairline);
  padding: 64px 0 36px;
  background: #060608;
}
.footer-cols-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  margin-bottom: 48px;
}
@media (min-width: 640px) and (max-width: 959px) {
  .footer-cols-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}
@media (min-width: 960px) {
  .footer-cols-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
  }
}
.footer-heading {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 16px;
}
.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links-list a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.15s ease;
}
.footer-links-list a:hover { color: var(--brand-text); }


/* ---------- Child Pages & Editorial Prose Styles */
.prose {
  max-width: 760px;
  margin: 0 auto;
}
.prose h1 {
  font-size: clamp(2rem, 1.3rem + 2.4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: #ffffff;
  margin: 0 0 16px;
  text-wrap: balance;
}
.prose h2 {
  font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.22;
  color: #ffffff;
  margin: 40px 0 14px;
}
.prose h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  margin: 28px 0 10px;
}
.prose p {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 18px;
}
.prose ul, .prose ol {
  padding-left: 24px;
  margin: 0 0 24px;
  color: var(--ink-secondary);
  line-height: 1.7;
}
/* Accessibility Skip Link */
.skip-link {
  position: absolute;
  top: -120px;
  left: 16px;
  background: var(--brand);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  z-index: 9999;
  text-decoration: none !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8), 0 0 16px var(--brand-glow);
  transition: top 0.18s ease;
}
.skip-link:focus {
  top: 16px;
}

.prose li {
  margin-bottom: 8px;
}
.prose p a:not(.btn),
.prose li a:not(.btn) {
  color: var(--brand-text);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}
.prose p a:not(.btn):hover,
.prose li a:not(.btn):hover {
  color: #ffffff;
}

/* Hard button resets inside prose / article contexts */
.prose a.btn,
.prose .btn,
.btn,
.btn span {
  text-decoration: none !important;
}
.prose a.btn-primary,
.prose .btn-primary,
.btn-primary,
.btn-primary span,
.btn-primary svg {
  color: #ffffff !important;
  stroke: #ffffff;
  text-decoration: none !important;
}
.prose a.btn-primary:hover,
.btn-primary:hover,
.btn-primary:hover span,
.btn-primary:hover svg {
  color: #ffffff !important;
  stroke: #ffffff;
  text-decoration: none !important;
}
.prose a.btn-secondary,
.prose .btn-secondary,
.btn-secondary {
  color: var(--ink) !important;
}
.prose a.btn-secondary:hover,
.btn-secondary:hover {
  color: #ffffff !important;
}

kbd,
code,
.prose kbd,
.prose code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 2px 6px;
  color: #ffffff;
}

/* Breadcrumbs - strict override against any container links */
.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 24px;
}
.breadcrumbs a,
.prose .breadcrumbs a,
.prose nav.breadcrumbs a {
  color: var(--muted) !important;
  text-decoration: none !important;
  transition: color 0.15s ease;
}
.breadcrumbs a:hover,
.prose .breadcrumbs a:hover,
.prose nav.breadcrumbs a:hover {
  color: #ffffff !important;
}
.breadcrumbs .sep {
  opacity: 0.4;
  color: var(--faint);
  user-select: none;
  font-size: 0.75rem;
}

/* AI Direct Answer Capsule / Callout Box */
.callout-box {
  background: rgba(16, 185, 129, 0.07);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-media);
  padding: 20px 24px;
  margin: 24px 0 36px;
  box-shadow: var(--highlight-top);
}
.callout-box h4,
.callout-box .callout-title,
.callout-box h2,
.callout-box h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #34d399;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 8px;
  font-family: var(--font-mono);
}
.callout-box p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--ink-secondary);
  margin: 0;
}

/* Child Page Comparison Matrix */
.cmp-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 24px 0 40px;
  border-radius: var(--radius-media);
  border: 1px solid var(--border);
  background: var(--card-solid);
}
.cmp-matrix {
  width: 100%;
  border-collapse: collapse;
  min-width: 540px;
  text-align: left;
}
.cmp-matrix th, .cmp-matrix td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-hairline);
  font-size: 0.9375rem;
}
.cmp-matrix th {
  background: #14141c;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.cmp-matrix .brand-col {
  background: rgba(16, 185, 129, 0.06);
  border-left: 1px solid var(--brand-border);
  border-right: 1px solid var(--brand-border);
  font-weight: 600;
  color: #34d399;
}

/* Bottom CTA Banner for Articles */
.bottom-cta-banner {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(9, 9, 11, 0.92) 100%);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-card);
  padding: clamp(32px, 5vw, 48px) 24px;
  text-align: center;
  margin-top: 56px;
  box-shadow: 0 20px 50px -10px var(--brand-glow), var(--highlight-top);
}
.bottom-cta-banner h2 {
  font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.1rem);
  font-weight: 800;
  color: #ffffff !important;
  margin: 0 0 12px !important;
  letter-spacing: -0.02em;
}
.bottom-cta-banner p {
  font-size: 1.05rem !important;
  color: var(--muted) !important;
  max-width: 52ch;
  margin: 0 auto 26px !important;
  line-height: 1.6;
}
.bottom-cta-banner .btn,
.bottom-cta-banner a.btn,
.bottom-cta-banner .btn span,
.bottom-cta-banner .btn svg {
  text-decoration: none !important;
}
.bottom-cta-banner .btn-primary,
.bottom-cta-banner a.btn-primary,
.bottom-cta-banner .btn-primary span,
.bottom-cta-banner .btn-primary svg {
  color: #ffffff !important;
  stroke: #ffffff !important;
  text-decoration: none !important;
}
.bottom-cta-banner .btn-primary:hover,
.bottom-cta-banner a.btn-primary:hover,
.bottom-cta-banner .btn-primary:hover span,
.bottom-cta-banner .btn-primary:hover svg {
  color: #ffffff !important;
  stroke: #ffffff !important;
  text-decoration: none !important;
}

/* Install Steps Aliases */
.step-item {
  background: var(--card-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--highlight-top);
}
.step-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand-tint);
  border: 1px solid var(--brand-border);
  color: var(--brand-text);
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.9375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Dynamic RAM Calculator Grid */
.calc-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
}
@media (max-width: 440px) {
  .calc-stat-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* Crisis Section & Privacy Section Fluid Grids (Prevents 320px Overflow) */
.crisis-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 680px) {
  .crisis-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.privacy-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 720px) {
  .privacy-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Feature Mockup Responsive Enhancements */
.mockup-inner {
  overflow: hidden;
}
.mockup-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #12121a;
  border: 1px solid var(--border-hairline);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 0.8125rem;
  margin-bottom: 8px;
}
.mockup-item-row .mockup-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #ffffff;
}
.mockup-item-row .mockup-badge {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  padding: 2px 8px;
  border-radius: 4px;
}

.demo-stashed-placeholder {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Orphan Word Prevention */
.bottom-cta-banner h2,
.cta-banner-card h2,
.callout-box h2,
.callout-box h3,
.callout-box h4 {
  text-wrap: balance;
}
