/* ==========================================================================
   BreakTest.io, light and clean professional theme
   Primary: blue   Accent: gold (used sparingly)   Product bands: deep navy
   ========================================================================== */

:root {
  /* surfaces */
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --bg-alt: #eef2f8;
  --surface: #ffffff;
  --navy: #0b1b2e;          /* dark product bands */
  --navy-2: #102540;

  /* lines + text */
  --border: #e3e8f0;
  --border-strong: #d3dbe6;
  --ink: #0d1b2e;           /* headings */
  --text: #3a4658;          /* body */
  --muted: #66738a;         /* secondary */

  /* brand */
  --primary: #2563eb;
  --primary-strong: #1d4ed8;
  --primary-soft: #eaf0ff;
  --gold: #c8901e;          /* accessible gold on light */
  --gold-bright: #f0c75f;   /* logo gold, for dark bands */
  --gold-soft: #fbf3df;

  /* status */
  --success: #15a05a;
  --warning: #c87f12;
  --danger: #dc2626;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(13, 27, 46, 0.06), 0 1px 3px rgba(13, 27, 46, 0.05);
  --shadow: 0 10px 30px rgba(13, 27, 46, 0.08);
  --shadow-lg: 0 24px 60px rgba(13, 27, 46, 0.14);
  --maxw: 1180px;
  --hero-heading-size: clamp(2.1rem, 4vw, 2.8rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; }

h1, h2, h3, h4, p { margin-top: 0; }

h1 {
  color: var(--ink);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1.1rem;
}

h2 {
  color: var(--ink);
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 0.9rem;
}

h3 {
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

p { color: var(--text); }

.muted { color: var(--muted); }

/* ---------- layout helpers ---------- */
.wrap {
  margin: 0 auto;
  max-width: var(--maxw);
  padding-left: clamp(1.1rem, 4vw, 2rem);
  padding-right: clamp(1.1rem, 4vw, 2rem);
}

section { padding: clamp(3rem, 5vw, 4.5rem) 0; }
.section-soft { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.eyebrow {
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 0.8rem;
}

.section-head { max-width: 720px; margin-bottom: 2.6rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p.lead { font-size: 1.08rem; color: var(--muted); margin: 0; }
.download-section { padding-top: clamp(2rem, 3.5vw, 3rem); padding-bottom: clamp(2rem, 3.5vw, 3rem); }

.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); line-height: 1.6; color: var(--text); }

/* ---------- badges / pills ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.badge-primary { background: var(--primary-soft); color: var(--primary-strong); border: 1px solid #d6e2ff; }
.badge-gold { background: var(--gold-soft); color: var(--gold); border: 1px solid #efdcae; }
.badge-free { background: #e7f7ee; color: var(--success); border: 1px solid #c7ecd6; }
.badge-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 11px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.97rem;
  padding: 0.72rem 1.25rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 6px 16px rgba(37, 99, 235, 0.28); }
.btn-primary:hover { background: var(--primary-strong); border-color: var(--primary-strong); box-shadow: 0 10px 22px rgba(37, 99, 235, 0.34); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--primary-strong); }
.btn-ghost:hover { background: var(--primary-soft); box-shadow: none; }
.btn-on-dark { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.22); color: #fff; }
.btn-on-dark:hover { background: rgba(255,255,255,0.16); }
.btn-lg { padding: 0.9rem 1.6rem; font-size: 1.02rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  min-height: 66px;
  margin: 0 auto;
  max-width: var(--maxw);
  padding: 0.6rem clamp(1.1rem, 4vw, 2rem);
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 800; font-size: 1.18rem; color: var(--ink); text-decoration: none; }
.brand img { height: 32px; width: 32px; border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 0.3rem; margin-left: auto; padding-left: 1rem; }
.nav-links a {
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.45rem 0.7rem;
  border-radius: 9px;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--ink); background: var(--bg-soft); }
.nav-links a[aria-current="page"] { color: var(--primary-strong); }
.header-cta { display: flex; align-items: center; gap: 0.6rem; }

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}
.hero-copy { max-width: 38rem; }
.hero-copy h1 { font-size: var(--hero-heading-size); line-height: 1.08; }
.hero .lead { color: var(--muted); margin-bottom: 1.7rem; }
.hero-note { margin-top: 1.1rem; font-size: 0.9rem; color: var(--muted); }
.hero-note strong { color: var(--ink); }

/* trust / logo strip */
.trust { padding: 1.6rem 0; border-top: 1px solid var(--border); }
.trust .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 1.4rem; justify-content: center; }
.trust span { color: var(--muted); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.trust b { color: var(--ink); }

/* ---------- media frames (drop screenshots / GIFs / video here) ---------- */
.media-frame { margin: 0; }
.media {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.media img, .media video { width: 100%; height: auto; display: block; }
.homepage-demo-link { position: relative; display: block; color: #fff; text-decoration: none; }
.homepage-demo-link::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(7, 20, 33, 0.88), transparent 48%); }
.homepage-demo-link span { position: absolute; z-index: 1; right: 1rem; bottom: 0.9rem; left: 1rem; color: #fff; font-weight: 800; text-align: center; }
.media iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }
.media-link { display: block; cursor: zoom-in; }
.media-link:focus-visible { outline: 3px solid var(--primary); outline-offset: -3px; }
.media-app { background: #f3f6fb; }

/* placeholder shown until a real asset is dropped in */
.media-ph {
  aspect-ratio: 16 / 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  text-align: center;
  padding: 1.5rem;
  background:
    linear-gradient(135deg, #f3f6fc 0%, #eaf0fb 100%);
  color: var(--muted);
}
.media-ph.ratio-wide { aspect-ratio: 16 / 9; }
.media-ph.ratio-square { aspect-ratio: 4 / 3; }
.media-ph .ph-icon {
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; box-shadow: var(--shadow-sm);
  color: var(--primary); font-size: 1.4rem;
}
.media-ph .ph-label { font-weight: 800; color: var(--ink); font-size: 1rem; }
.media-ph .ph-hint { font-size: 0.82rem; }
.media-ph[data-type="video"] { background: linear-gradient(135deg, #0b1b2e 0%, #163358 100%); color: #c7d4e8; }
.media-ph[data-type="video"] .ph-label { color: #fff; }
.media-ph[data-type="video"] .ph-icon { background: var(--primary); color: #fff; }
.media-ph[data-type="gif"] .ph-icon { color: var(--gold); }

.media-caption { margin-top: 0.7rem; font-size: 0.85rem; color: var(--muted); text-align: center; }

/* mock browser chrome around a screenshot */
.media.browser::before {
  content: "";
  display: block;
  height: 34px;
  background: #f1f4f9;
  border-bottom: 1px solid var(--border);
  background-image:
    radial-gradient(circle, #e2574c 4px, transparent 4.5px),
    radial-gradient(circle, #f1bf42 4px, transparent 4.5px),
    radial-gradient(circle, #4caf68 4px, transparent 4.5px);
  background-repeat: no-repeat;
  background-position: 16px center, 34px center, 52px center;
}

/* ---------- product split (BreakTest vs Enterprise) ---------- */
.products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
}
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  padding: clamp(1.6rem, 3vw, 2.3rem);
  overflow: hidden;
}
.product-card .top-accent { position: absolute; inset: 0 0 auto 0; height: 4px; }
.product-card.free .top-accent { background: var(--success); }
.product-card.enterprise { background: linear-gradient(180deg, #0b1b2e, #102540); border-color: #102540; color: #c7d4e8; }
.product-card.enterprise .top-accent { background: linear-gradient(90deg, var(--gold-bright), var(--gold)); }
.product-card h3 { font-size: 1.5rem; margin-bottom: 0.35rem; }
.product-card.enterprise h3 { color: #fff; }
.product-card .price-tag { font-size: 1.05rem; font-weight: 800; color: var(--ink); margin: 0.2rem 0 1rem; }
.product-card.enterprise .price-tag { color: var(--gold-bright); }
.product-card p { margin-bottom: 1.1rem; }
.product-card.enterprise p { color: #aebdd4; }
.product-card ul { list-style: none; margin: 0 0 1.4rem; padding: 0; display: grid; gap: 0.6rem; }
.product-card li { position: relative; padding-left: 1.6rem; font-size: 0.95rem; }
.product-card li::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 800; }
.product-card.enterprise li::before { color: var(--gold-bright); }
.product-card .card-cta { margin-top: auto; }

/* ---------- feature grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}
.feature {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.feature h3 { margin-bottom: 0.45rem; }
.feature p { font-size: 0.94rem; color: var(--muted); margin: 0; }
.feature a.flink { color: var(--primary-strong); font-weight: 700; font-size: 0.88rem; text-decoration: none; }
.feature a.flink:hover { text-decoration: underline; }

/* ---------- alternating media+copy rows ---------- */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.split.reverse .split-media { order: -1; }
.split-copy ul { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.65rem; }
.split-copy li { position: relative; padding-left: 1.7rem; }
.split-copy li::before { content: "→"; position: absolute; left: 0; color: var(--primary); font-weight: 800; }

/* ---------- dark band (product spotlight) ---------- */
.band-dark {
  background: radial-gradient(1200px 500px at 80% -10%, rgba(37,99,235,0.25), transparent 60%), var(--navy);
  color: #c7d4e8;
  border-top: 1px solid #0a1626;
  border-bottom: 1px solid #0a1626;
}
.band-dark h2, .band-dark h3 { color: #fff; }
.band-dark .eyebrow { color: var(--gold-bright); }
.band-dark p { color: #aebdd4; }
.band-dark .feature { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.1); box-shadow: none; }
.band-dark .feature p { color: #9fb0c9; }
.band-dark .feature:hover { border-color: rgba(255,255,255,0.22); }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.stat { text-align: center; padding: 1.4rem 1rem; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.band-dark .stat { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.1); }
.stat strong { display: block; font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; color: var(--ink); line-height: 1; }
.band-dark .stat strong { color: #fff; }
.stat span { display: block; margin-top: 0.45rem; font-size: 0.88rem; color: var(--muted); }
.band-dark .stat span { color: #9fb0c9; }

/* ---------- comparison callout ---------- */
.ladder { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.ladder .step { border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.ladder .step .tier { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.ladder .step h3 { margin: 0.3rem 0 0.4rem; }
.ladder .step p { font-size: 0.92rem; color: var(--muted); margin: 0; }

/* ---------- pricing ---------- */
.price-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; margin-bottom: 2.5rem; }
.price-card { border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); padding: 1.8rem; box-shadow: var(--shadow-sm); }
.price-card .price { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; color: var(--ink); line-height: 1; margin: 0.4rem 0 1rem; }
.price-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.price-card li { position: relative; padding-left: 1.5rem; font-size: 0.94rem; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--primary); font-weight: 800; }

.table-wrap { border: 1px solid var(--border); border-radius: var(--radius); overflow-x: auto; box-shadow: var(--shadow-sm); }
.price-table { border-collapse: collapse; width: 100%; min-width: 720px; }
.price-table th, .price-table td { padding: 1rem 1.1rem; text-align: left; border-bottom: 1px solid var(--border); }
.price-table thead th { background: var(--bg-soft); color: var(--ink); font-size: 0.85rem; letter-spacing: 0.03em; text-transform: uppercase; }
.price-table tbody th { color: var(--ink); font-weight: 800; }
.price-table tbody tr:last-child td, .price-table tbody tr:last-child th { border-bottom: none; }
.price-table tbody tr.featured { background: var(--primary-soft); }
.price-table .pop { color: var(--primary-strong); font-weight: 700; font-size: 0.78rem; }

.pricing-note { margin-top: 1.2rem; font-size: 0.9rem; color: var(--muted); }

/* ---------- two-column lists ---------- */
.cols2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3rem); }
.list-card { border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); padding: 1.6rem; box-shadow: var(--shadow-sm); }
.list-card ul { margin: 0.6rem 0 0; padding-left: 1.1rem; display: grid; gap: 0.55rem; color: var(--text); }
.list-card code { background: var(--bg-alt); border-radius: 6px; padding: 0.06rem 0.35rem; font-size: 0.88em; color: var(--ink); }

/* ---------- grouped change list ---------- */
.change-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.change-group h3 {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-strong);
  margin-bottom: 0.6rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-soft);
}
.change-items { list-style: none; margin: 0; padding: 0; }
.change-items li {
  padding: 0.75rem 0.6rem;
  border-bottom: 1px solid var(--border);
  border-radius: 8px;
}
.change-items li:last-child { border-bottom: none; }
.change-items li strong { display: block; color: var(--ink); font-size: 0.98rem; }
.change-items li.has-screenshot > strong::after {
  content: "Screenshot";
  display: inline-block;
  margin-left: 0.45rem;
  padding: 0.08rem 0.38rem;
  border: 1px solid var(--primary-soft);
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--primary-strong);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.25;
  text-transform: uppercase;
  vertical-align: 0.12em;
}
.change-items li > span { display: block; color: var(--muted); font-size: 0.9rem; margin-top: 0.15rem; }
.change-items li .change-detail { display: none; }
.change-items li.has-detail { cursor: pointer; position: relative; padding-right: 2rem; }
.change-items li.has-detail::after {
  content: "→";
  position: absolute;
  right: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--border-strong);
  font-weight: 800;
  transition: color 0.15s ease, transform 0.15s ease;
}
.change-items li.has-detail:hover { background: var(--bg-soft); }
.change-items li.has-detail:hover::after { color: var(--primary); transform: translateY(-50%) translateX(2px); }
.change-items li.has-detail:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.change-items code { background: var(--bg-alt); border-radius: 6px; padding: 0.06rem 0.35rem; font-size: 0.88em; color: var(--ink); }

/* ---------- release list (download page) ---------- */
.release-list { display: grid; gap: 0.8rem; }
.release {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.release summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.3rem;
  cursor: pointer;
  list-style: none;
}
.release summary::-webkit-details-marker { display: none; }
.release summary::after { content: "+"; font-weight: 800; color: var(--muted); margin-left: auto; }
.release[open] summary::after { content: "–"; }
.release summary strong { color: var(--ink); font-size: 1.02rem; }
.release-date { color: var(--muted); font-size: 0.88rem; white-space: nowrap; }
.release summary::after { order: 3; }
.release-body { padding: 0 1.3rem 1.2rem; border-top: 1px solid var(--border); }
.release-body h4 { margin: 1.1rem 0 0.5rem; font-size: 0.98rem; color: var(--ink); }
.release-body p { margin: 0.7rem 0; color: var(--text); font-size: 0.95rem; }
.release-body ul { margin: 0.4rem 0 0.8rem; padding-left: 1.2rem; }
.release-body li { margin-bottom: 0.3rem; font-size: 0.93rem; color: var(--text); }
.release-body code { background: var(--bg-alt); border-radius: 6px; padding: 0.06rem 0.35rem; font-size: 0.88em; color: var(--ink); }

/* ---------- change detail modal ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(13, 27, 46, 0.55);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(1rem, 5vh, 4rem) 1rem;
  overflow-y: auto;
}
.modal {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  max-width: 680px;
  width: 100%;
  padding: clamp(1.6rem, 4vw, 2.4rem);
}
.modal h3 { font-size: 1.4rem; padding-right: 2.2rem; margin-bottom: 1rem; }
.modal-body p { margin-bottom: 0.9rem; }
.modal-body p:last-child { margin-bottom: 0; }
.modal-body strong { color: var(--ink); }
.modal-body code { background: var(--bg-alt); border-radius: 6px; padding: 0.06rem 0.35rem; font-size: 0.88em; color: var(--ink); }
.modal-body img { border-radius: var(--radius); border: 1px solid var(--border); margin: 0.6rem 0; }
.change-detail-media { margin: 1.2rem 0 0; }
.change-detail-media a {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  cursor: zoom-in;
}
.change-detail-media img { display: block; width: 100%; height: auto; margin: 0; }
.change-detail-media-portrait a {
  display: flex;
  justify-content: center;
  background: var(--bg-soft);
}
.change-detail-media-portrait img { width: auto; max-width: 100%; max-height: 720px; }
.change-detail-media figcaption {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}
.modal-close:hover { background: var(--bg-alt); color: var(--ink); }

/* ---------- enlarged screenshot lightbox ---------- */
.screenshot-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.75rem, 2vw, 1.5rem);
  overflow: auto;
  background: rgba(7, 16, 30, 0.92);
}
.screenshot-lightbox-dialog {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(96vw, 1600px);
  max-height: calc(100vh - 3rem);
}
.screenshot-lightbox img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 3rem);
  object-fit: contain;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
.screenshot-lightbox-close {
  position: fixed;
  top: max(1rem, env(safe-area-inset-top));
  right: max(1rem, env(safe-area-inset-right));
  z-index: 1;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  color: #0d1b2e;
  box-shadow: var(--shadow-md);
  font: inherit;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.screenshot-lightbox-close:hover { background: #fff; transform: scale(1.04); }
.screenshot-lightbox-close:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }

/* request-access form inside the modal */
.access-form { display: grid; gap: 0.9rem; margin-top: 1.1rem; }
.access-form label { display: grid; gap: 0.35rem; font-size: 0.9rem; font-weight: 700; color: var(--ink); }
.access-form input,
.access-form textarea,
.access-form select {
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  font: inherit;
  font-size: 0.94rem;
  font-weight: 400;
  color: var(--ink);
  background: var(--surface);
}
.access-form input:focus,
.access-form textarea:focus,
.access-form select:focus { outline: 2px solid var(--primary-soft); border-color: var(--primary); }
.access-form-actions { margin-top: 1.1rem; }
.access-form-note { margin-top: 0.8rem; font-size: 0.88rem; }
.access-form-note a { color: var(--primary-strong); }
.demo-request-modal { max-width: 600px; }
.demo-request-modal h2 { margin-bottom: 0.7rem; padding-right: 2.2rem; font-size: clamp(1.7rem, 4vw, 2.2rem); }
.demo-request-modal > p:not(.eyebrow) { margin-bottom: 0; }
.demo-request-modal label small { color: var(--muted); font-size: 0.82em; font-weight: 600; }
.demo-form-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.demo-request-status { min-height: 1.5rem; margin: 0; color: var(--muted); font-size: 0.9rem; font-weight: 700; }
.demo-request-status.success { color: var(--success); }
.demo-request-status.error { color: #b42318; }
.demo-request-modal button:disabled { cursor: wait; opacity: 0.7; transform: none; }
.quote-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; }

@media (max-width: 560px) {
  .quote-form-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- converter wizard ---------- */
.is-hidden { display: none !important; }

.wizard-tabs { display: flex; gap: 0.5rem; margin-bottom: 1.4rem; }
.wizard-tab {
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding: 0.55rem 1.3rem;
  font: inherit; font-size: 0.95rem; font-weight: 700;
  cursor: pointer;
}
.wizard-tab:hover { border-color: var(--primary); color: var(--primary-strong); }
.wizard-tab.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.wizard-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  padding: clamp(1.4rem, 3vw, 2.2rem);
}

.wizard-steps {
  list-style: none;
  display: flex;
  gap: 0.4rem;
  margin: 0 0 1.6rem;
  padding: 0;
  flex-wrap: wrap;
}
.wizard-step {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  counter-increment: step;
}
.wizard-step.current { background: var(--primary-soft); border-color: #d6e2ff; color: var(--primary-strong); }
.wizard-step.done { background: #e7f7ee; border-color: #c7ecd6; color: var(--success); }

.wizard-error {
  background: #fdecec;
  border: 1px solid #f5c6c6;
  color: var(--danger);
  border-radius: 10px;
  padding: 0.7rem 1rem;
  font-size: 0.92rem;
  font-weight: 600;
}
.wizard-done {
  margin-top: 1rem;
  background: #e7f7ee;
  border: 1px solid #c7ecd6;
  color: #116b3d;
  border-radius: 10px;
  padding: 0.7rem 1rem;
  font-size: 0.92rem;
}
.wizard-done a { color: inherit; font-weight: 700; }

.file-drop {
  display: block;
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius);
  padding: 2.2rem 1.5rem;
  text-align: center;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  margin-top: 1rem;
}
.file-drop:hover { border-color: var(--primary); background: var(--primary-soft); }
.file-drop input[type="file"] { display: none; }
.file-drop strong { color: var(--primary-strong); }

.domain-list {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-height: 320px;
  overflow-y: auto;
  padding: 0.8rem 1rem;
  display: grid;
  gap: 0.4rem;
}
.domain-group { padding: 0.3rem 0; }
.domain-group-title { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.25rem; }
.domain-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.94rem; padding: 0.2rem 0; cursor: pointer; }
.domain-item input { accent-color: var(--primary); width: 16px; height: 16px; }

.format-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.3rem; }
.format-button {
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  border-radius: 11px;
  padding: 0.65rem 1.2rem;
  font: inherit; font-weight: 700; font-size: 0.95rem;
  cursor: pointer;
}
.format-button span { color: var(--muted); font-weight: 600; font-size: 0.85em; margin-left: 0.3rem; }
.format-button:hover { border-color: var(--primary); }
.format-button.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.format-button.active span { color: rgba(255, 255, 255, 0.75); }

.option-grid { display: grid; gap: 0.7rem; }
.opt { display: flex; align-items: center; gap: 0.55rem; font-size: 0.94rem; cursor: pointer; }
.opt input { accent-color: var(--primary); width: 16px; height: 16px; }
.opt-inline { display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: center; }
.opt-inline label { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.94rem; }
.opt-inline input[type="number"] {
  width: 5.2rem;
  padding: 0.4rem 0.55rem;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  font: inherit;
  font-size: 0.92rem;
}
.opt-inline select {
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  font: inherit;
  font-size: 0.92rem;
  background: var(--surface);
}

.script-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.65rem 1rem;
  margin-bottom: 0.55rem;
  font-size: 0.94rem;
}
.script-row > span:first-child { font-weight: 700; color: var(--ink); }
.script-state { color: var(--muted); font-size: 0.85rem; margin-left: auto; }

/* ---------- Enterprise sales page ---------- */
.enterprise-page { overflow-x: hidden; }
.enterprise-page .site-header { background: rgba(255, 255, 255, 0.92); }

.enterprise-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(520px, 1.12fr);
  align-items: center;
  gap: clamp(2.5rem, 5vw, 5rem);
  padding-top: clamp(4rem, 8vw, 7rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
}
.enterprise-hero-copy { max-width: 37rem; }
.enterprise-hero-copy h1 { font-size: var(--hero-heading-size); line-height: 1.08; }
.enterprise-hero-copy .lead { color: var(--muted); margin-bottom: 1.7rem; }
.enterprise-hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.2rem;
  margin: 1.35rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}
.enterprise-hero-proof li { position: relative; padding-left: 1.05rem; }
.enterprise-hero-proof li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(21, 160, 90, 0.1);
}

.enterprise-product-shot {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(11, 27, 46, 0.16);
}
.enterprise-product-shot > a {
  position: relative;
  display: block;
  overflow: hidden;
  background: #eef2f7;
}
.enterprise-product-shot img {
  width: 100%;
  height: auto;
  transition: transform 180ms ease;
}
.enterprise-product-shot > a:hover img { transform: scale(1.008); }
.enterprise-product-shot figcaption {
  padding: 0.8rem 1rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.73rem;
  line-height: 1.45;
}
.enterprise-product-shot figcaption strong { color: var(--ink); }
.enterprise-shot-zoom {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  padding: 0.38rem 0.58rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 7px;
  background: rgba(7, 18, 33, 0.78);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
}
.enterprise-hero-shot { transform: translateY(0.4rem); }
.forensic-real-layout { display: grid; gap: clamp(2rem, 4vw, 3.5rem); }
.forensic-real-copy { max-width: 880px; }
.enterprise-shot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}
.enterprise-product-shot-dark {
  border-color: rgba(142, 163, 193, 0.22);
  background: #0b1b2e;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.24);
}
.enterprise-product-shot-dark figcaption {
  border-color: rgba(142, 163, 193, 0.16);
  color: #8fa2bd;
}
.enterprise-product-shot-dark figcaption strong { color: #fff; }
.enterprise-setup-shot { max-width: 590px; margin-inline: auto; }

.live-console {
  position: relative;
  min-width: 0;
  padding: 1rem;
  overflow: hidden;
  border: 1px solid rgba(99, 130, 174, 0.28);
  border-radius: 22px;
  background:
    radial-gradient(700px 320px at 88% -20%, rgba(37, 99, 235, 0.28), transparent 60%),
    linear-gradient(145deg, #0a182a, #10233d);
  color: #d8e4f5;
  box-shadow: 0 35px 90px rgba(11, 27, 46, 0.24);
}
.live-console::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}
.console-topbar,
.console-metrics,
.console-tabs,
.live-chart,
.live-error-row { position: relative; z-index: 1; }
.console-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.25rem 0.25rem 1rem;
}
.console-topbar > div { display: grid; gap: 0.1rem; min-width: 0; }
.console-topbar strong { color: #fff; font-size: 1rem; line-height: 1.25; }
.console-kicker { color: #8ea3c1; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.live-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex: 0 0 auto;
  padding: 0.35rem 0.65rem;
  border: 1px solid rgba(50, 211, 125, 0.25);
  border-radius: 999px;
  background: rgba(21, 160, 90, 0.12);
  color: #75e5a6;
  font-size: 0.72rem;
  font-weight: 800;
}
.live-status i { width: 7px; height: 7px; border-radius: 50%; background: #35d07f; box-shadow: 0 0 0 4px rgba(53, 208, 127, 0.12); }
.console-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.55rem; }
.console-metrics > div {
  padding: 0.8rem;
  border: 1px solid rgba(142, 163, 193, 0.16);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.045);
}
.console-metrics span { display: block; margin-bottom: 0.25rem; color: #8ea3c1; font-size: 0.66rem; line-height: 1.2; }
.console-metrics strong { color: #fff; font-size: 1.25rem; line-height: 1; }
.console-metrics small { margin-left: 0.25rem; color: #7f93b0; font-size: 0.62rem; }
.console-metrics .metric-danger strong { color: #ff8b8b; }
.console-tabs { display: flex; gap: 1rem; margin-top: 0.85rem; padding: 0 0.2rem; border-bottom: 1px solid rgba(142, 163, 193, 0.16); }
.console-tabs span { padding: 0.4rem 0.05rem 0.55rem; color: #7f93b0; font-size: 0.7rem; font-weight: 700; }
.console-tabs .active { color: #fff; border-bottom: 2px solid #60a5fa; }
.live-chart { min-height: 215px; margin-top: 0.6rem; padding-left: 3.1rem; }
.live-chart svg { display: block; width: 100%; height: 180px; overflow: visible; }
.chart-scale { position: absolute; inset: 0 auto 1.9rem 0; display: flex; flex-direction: column; justify-content: space-between; color: #657b9c; font-size: 0.6rem; }
.chart-grid line { stroke: rgba(142, 163, 193, 0.13); stroke-width: 1; }
.chart-area { fill: url(#enterprise-chart-fill); }
.chart-line { fill: none; stroke: #60a5fa; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.chart-line-secondary { fill: none; stroke: #a78bfa; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.chart-point { fill: #93c5fd; stroke: #10233d; stroke-width: 4; }
.chart-legend { display: flex; align-items: center; gap: 0.85rem; margin-top: -0.2rem; color: #8ea3c1; font-size: 0.65rem; }
.chart-legend span { display: inline-flex; align-items: center; gap: 0.35rem; }
.chart-legend i { width: 14px; height: 3px; border-radius: 2px; }
.legend-p95 { background: #60a5fa; }
.legend-p50 { background: #a78bfa; }
.chart-legend em { margin-left: auto; color: #75e5a6; font-style: normal; }
.live-error-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem;
  border: 1px solid rgba(248, 113, 113, 0.23);
  border-radius: 11px;
  background: rgba(220, 38, 38, 0.09);
}
.error-code { padding: 0.3rem 0.45rem; border-radius: 7px; background: rgba(248, 113, 113, 0.16); color: #ff9d9d; font-size: 0.7rem; font-weight: 800; }
.live-error-row > div:nth-child(2) { display: grid; min-width: 0; }
.live-error-row strong { overflow: hidden; color: #fff; font-size: 0.72rem; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.live-error-row span { overflow: hidden; color: #91a5c2; font-size: 0.62rem; text-overflow: ellipsis; white-space: nowrap; }
.error-actions { display: flex; gap: 0.3rem; }
.error-actions span { padding: 0.28rem 0.4rem; border: 1px solid rgba(142,163,193,.17); border-radius: 6px; background: rgba(255,255,255,.045); color: #aebed3; font-size: 0.55rem; font-weight: 700; }

.enterprise-proof-strip { border-top: 1px solid #112944; border-bottom: 1px solid #112944; background: var(--navy); }
.enterprise-proof-strip .wrap { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding-top: 1.1rem; padding-bottom: 1.1rem; }
.enterprise-proof-strip .wrap > div { display: grid; gap: 0.05rem; padding: 0.1rem 1rem; border-right: 1px solid rgba(255,255,255,.09); text-align: center; }
.enterprise-proof-strip .wrap > div:last-child { border-right: 0; }
.enterprise-proof-strip strong { color: #fff; font-size: 0.83rem; }
.enterprise-proof-strip span { color: #8193ac; font-size: 0.7rem; }

.enterprise-demo-section {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(560px, 1.28fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5rem);
  padding-top: clamp(4rem, 7vw, 6rem);
  padding-bottom: clamp(4rem, 7vw, 6rem);
}
.enterprise-demo-heading { max-width: 35rem; }
.enterprise-demo-heading .lead { color: var(--muted); }
.enterprise-demo-video {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid #1f3654;
  border-radius: 18px;
  background: #071421;
  box-shadow: 0 28px 70px rgba(11, 27, 46, 0.24);
}
.enterprise-demo-video video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 960 / 616;
  background: #071421;
}
.enterprise-demo-video figcaption {
  padding: 0.85rem 1rem;
  border-top: 1px solid rgba(142, 163, 193, 0.2);
  color: #8fa2bd;
  font-size: 0.73rem;
  line-height: 1.45;
}
.enterprise-demo-video figcaption strong { color: #fff; }

.enterprise-intro .section-head { max-width: 830px; margin-bottom: 2.8rem; }
.value-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.value-card { position: relative; padding: 1.4rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.value-card.featured { border-color: #bed2ff; background: linear-gradient(145deg, #f7faff, #edf3ff); }
.value-number { display: inline-block; margin-bottom: 1.7rem; color: var(--primary); font-size: 0.7rem; font-weight: 900; letter-spacing: 0.08em; }
.value-card h3 { font-size: 1.06rem; }
.value-card p { margin: 0; color: var(--muted); font-size: 0.88rem; }

.platform-panes { scroll-margin-top: 65px; }
.platform-panes .section-head { max-width: 760px; }
.pane-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.85rem; }
.pane-card {
  position: relative;
  min-height: 174px;
  padding: 1.25rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.pane-card:hover { transform: translateY(-2px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.pane-card::after { content: ""; position: absolute; inset: auto -35px -55px auto; width: 110px; height: 110px; border-radius: 50%; background: var(--bg-soft); }
.pane-card-primary { border-color: #bed2ff; background: linear-gradient(145deg, #fff, #edf3ff); }
.pane-card-danger { border-color: #f4caca; background: linear-gradient(145deg, #fff, #fff2f2); }
.pane-card-gold { border-color: #edd9a9; background: linear-gradient(145deg, #fff, #fdf7e8); }
.pane-icon { position: relative; z-index: 1; display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 1rem; border-radius: 9px; background: var(--primary-soft); color: var(--primary-strong); font-size: 0.85rem; font-weight: 900; }
.pane-card-danger .pane-icon { background: #fde8e8; color: var(--danger); }
.pane-card-gold .pane-icon { background: var(--gold-soft); color: var(--gold); }
.pane-card h3, .pane-card p { position: relative; z-index: 1; }
.pane-card h3 { margin-bottom: 0.35rem; font-size: 1rem; }
.pane-card p { margin: 0; color: var(--muted); font-size: 0.82rem; line-height: 1.5; }

.forensic-section .split { grid-template-columns: minmax(0, .86fr) minmax(540px, 1.14fr); }
.forensic-console { overflow: hidden; border: 1px solid var(--border-strong); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-lg); }
.forensic-header { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); background: var(--bg-soft); }
.forensic-header span { color: var(--ink); font-size: 0.8rem; font-weight: 800; }
.forensic-header strong { color: var(--success); font-size: 0.67rem; text-transform: uppercase; letter-spacing: .06em; }
.forensic-layout { display: grid; grid-template-columns: 185px minmax(0, 1fr); min-height: 410px; }
.forensic-list { padding: 0.55rem; border-right: 1px solid var(--border); background: #f8fafc; }
.forensic-list > div { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .5rem; padding: .65rem .45rem; border-radius: 8px; }
.forensic-list > div.selected { background: #e8efff; }
.forensic-list i { color: var(--danger); font-size: .62rem; font-style: normal; font-weight: 900; }
.forensic-list span { display: grid; min-width: 0; }
.forensic-list strong { overflow: hidden; color: var(--ink); font-size: .64rem; text-overflow: ellipsis; white-space: nowrap; }
.forensic-list small { color: #8a97aa; font-size: .55rem; }
.forensic-detail { min-width: 0; padding: 0.75rem; }
.forensic-tabs { display: flex; gap: .25rem; padding-bottom: .65rem; }
.forensic-tabs span { padding: .3rem .45rem; border-radius: 6px; color: var(--muted); font-size: .58rem; font-weight: 700; }
.forensic-tabs .active { background: var(--primary-soft); color: var(--primary-strong); }
.browser-preview { overflow: hidden; border: 1px solid var(--border); border-radius: 10px; background: #f7f8fb; }
.browser-preview-bar { display: flex; align-items: center; gap: .3rem; height: 30px; padding: 0 .55rem; border-bottom: 1px solid var(--border); background: #edf1f6; }
.browser-preview-bar i { width: 6px; height: 6px; border-radius: 50%; background: #d7a039; }
.browser-preview-bar i:first-child { background: #e7665a; }
.browser-preview-bar i:nth-child(3) { background: #4fb46a; }
.browser-preview-bar span { margin-left: .35rem; color: #8290a4; font-size: .53rem; }
.browser-preview-body { min-height: 265px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1rem; text-align: center; background: radial-gradient(circle at 50% 20%, #fff, #f4f6fa 70%); }
.preview-mark { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: .75rem; border-radius: 50%; background: #fee2e2; color: var(--danger); font-weight: 900; }
.browser-preview-body strong { color: var(--ink); font-size: .82rem; }
.browser-preview-body span { margin-top: .2rem; color: var(--muted); font-size: .62rem; }
.browser-preview-body button { margin-top: .85rem; padding: .4rem .8rem; border: 0; border-radius: 7px; background: var(--primary); color: #fff; font-size: .62rem; font-weight: 800; }
.sample-meta { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); margin-top: .6rem; border: 1px solid var(--border); border-radius: 8px; }
.sample-meta span { display: grid; padding: .45rem; border-right: 1px solid var(--border); color: var(--muted); font-size: .53rem; }
.sample-meta span:last-child { border-right: 0; }
.sample-meta b { color: var(--ink); font-size: .62rem; }

.raw-data-band { padding: clamp(4rem, 8vw, 7rem) 0; border-top: 1px solid #0a1626; border-bottom: 1px solid #0a1626; background: radial-gradient(900px 440px at 85% 0, rgba(37,99,235,.23), transparent 62%), var(--navy); color: #c7d4e8; }
.raw-data-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(500px, 1.1fr); align-items: center; gap: clamp(2.5rem, 6vw, 5rem); }
.raw-data-copy h2 { color: #fff; }
.raw-data-copy .eyebrow { color: var(--gold-bright); }
.raw-data-copy .lead { color: #acbad0; }
.raw-data-points { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; margin-top: 2rem; }
.raw-data-points div { display: grid; gap: .15rem; }
.raw-data-points strong { color: #fff; font-size: .86rem; }
.raw-data-points span { color: #8193ac; font-size: .76rem; }
.analysis-console { overflow: hidden; border: 1px solid rgba(142,163,193,.2); border-radius: 18px; background: rgba(7, 20, 37, .82); box-shadow: 0 30px 70px rgba(0,0,0,.24); }
.analysis-toolbar { display: flex; justify-content: space-between; gap: 1rem; padding: .9rem 1rem; border-bottom: 1px solid rgba(142,163,193,.16); }
.analysis-toolbar strong { color: #fff; font-size: .76rem; }
.analysis-toolbar span { color: #7589a6; font-size: .62rem; }
.analysis-callout { display: grid; gap: .1rem; margin: 1rem; padding: .8rem; border: 1px solid rgba(248,113,113,.25); border-radius: 10px; background: rgba(220,38,38,.09); }
.analysis-callout span { color: #ff9c9c; font-size: .58rem; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.analysis-callout strong { color: #fff; font-size: .9rem; }
.analysis-callout small { color: #8396b0; font-size: .62rem; }
.analysis-bars { display: grid; gap: .75rem; padding: .4rem 1rem 1.1rem; }
.analysis-bars > div { display: grid; grid-template-columns: 75px minmax(0,1fr) 40px; align-items: center; gap: .55rem; }
.analysis-bars span { color: #9db0c9; font-size: .62rem; }
.analysis-bars em { color: #8193ac; font-size: .58rem; font-style: normal; text-align: right; }
.analysis-bars i { position: relative; display: block; height: 7px; border-radius: 999px; background: rgba(142,163,193,.12); }
.analysis-bars i::before, .analysis-bars i::after { content: ""; position: absolute; left: 0; border-radius: inherit; }
.analysis-bars i::before { top: -3px; width: var(--before); height: 3px; background: #8b9bb2; }
.analysis-bars i::after { bottom: -3px; width: var(--after); height: 3px; background: #60a5fa; }
.analysis-bars .bar-homepage i { --before: 42%; --after: 45%; }
.analysis-bars .bar-product i { --before: 55%; --after: 58%; }
.analysis-bars .bar-checkout i { --before: 51%; --after: 79%; }
.analysis-bars .bar-payment i { --before: 64%; --after: 67%; }
.analysis-bars .regressed i::after { background: #f87171; }
.analysis-bars .regressed em { color: #ff9292; }
.analysis-footer { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem 1rem; border-top: 1px solid rgba(142,163,193,.16); color: #7186a4; font-size: .58rem; }

.k6-engine-section {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}
.k6-engine-layout {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(540px, 1.22fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.k6-engine-copy { max-width: 35rem; }
.k6-engine-copy .lead { color: var(--muted); }
.k6-engine-copy > p:last-child { margin: 0; color: var(--text); }
.k6-engine-facts { border-top: 1px solid var(--border-strong); }
.k6-engine-fact {
  display: grid;
  grid-template-columns: minmax(180px, .55fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  padding: 1.55rem 0;
  border-bottom: 1px solid var(--border-strong);
}
.k6-engine-fact span {
  display: block;
  margin-bottom: .35rem;
  color: var(--primary);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.k6-engine-fact h3 { margin: 0; font-size: 1.12rem; }
.k6-engine-fact p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.7; }
.k6-engine-proof {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: .5rem;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.k6-engine-proof > div { padding: 1.2rem 1.35rem; border-right: 1px solid var(--border); }
.k6-engine-proof > div:last-child { border-right: 0; }
.k6-engine-proof strong { display: block; margin-bottom: .25rem; color: var(--ink); font-size: 1.12rem; }
.k6-engine-proof span { display: block; color: var(--muted); font-size: .72rem; line-height: 1.45; }
.k6-workflow {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: -.9rem 0 0;
  padding: 0;
  list-style: none;
}
.k6-workflow li { display: flex; gap: .75rem; min-width: 0; padding: 1rem 1.35rem; border-right: 1px solid var(--border); }
.k6-workflow li:last-child { border-right: 0; }
.k6-workflow li > span {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid #aac3fc;
  border-radius: 50%;
  color: var(--primary-strong);
  font-size: .67rem;
  font-weight: 900;
}
.k6-workflow li > div { display: grid; gap: .1rem; min-width: 0; }
.k6-workflow strong { color: var(--ink); font-size: .78rem; }
.k6-workflow small { color: var(--muted); font-size: .68rem; line-height: 1.45; }

.generator-section .split { grid-template-columns: minmax(500px, 1.1fr) minmax(0, .9fr); }
.generator-console { overflow: hidden; border: 1px solid var(--border); border-radius: 18px; background: #fff; box-shadow: var(--shadow-lg); }
.generator-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1rem; border-bottom: 1px solid var(--border); }
.generator-top > div { display: grid; }
.generator-top strong { color: var(--ink); font-size: .8rem; }
.generator-top span { color: var(--muted); font-size: .6rem; }
.generator-top button { padding: .35rem .6rem; border: 1px solid var(--border); border-radius: 7px; background: #fff; color: var(--primary-strong); font: inherit; font-size: .6rem; font-weight: 800; }
.generator-map { position: relative; height: 210px; overflow: hidden; border-bottom: 1px solid var(--border); background: radial-gradient(circle at 45% 45%, #f9fbff, #eef3fa); }
.generator-map::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(#c7d2e2 1px, transparent 1px); background-size: 14px 14px; opacity: .55; }
.map-route { position: absolute; left: 27%; top: 47%; width: 45%; height: 1px; background: linear-gradient(90deg, #93b4fb, #c1d2f8); transform-origin: left center; }
.route-one { transform: rotate(-18deg); }
.route-two { transform: rotate(19deg); }
.route-three { width: 24%; transform: rotate(153deg); }
.map-node { position: absolute; z-index: 1; display: grid; place-items: center; width: 42px; height: 42px; border: 3px solid #dbe6ff; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); font-style: normal; }
.map-node b { color: var(--primary-strong); font-size: .55rem; line-height: 1; }
.map-node small { color: var(--muted); font-size: .48rem; line-height: 1; }
.node-us { left: 17%; top: 51%; }
.node-eu { left: 44%; top: 36%; }
.node-asia { right: 14%; top: 55%; }
.node-local { left: 39%; bottom: 8%; }
.generator-rows { display: grid; }
.generator-rows > div { display: grid; grid-template-columns: minmax(0,1.5fr) .75fr .8fr .65fr; gap: .5rem; align-items: center; padding: .65rem 1rem; border-bottom: 1px solid var(--border); font-size: .58rem; }
.generator-rows > div:last-child { border-bottom: 0; }
.generator-rows span { display: flex; align-items: center; gap: .4rem; min-width: 0; color: var(--ink); font-weight: 700; }
.generator-rows b { color: var(--muted); font-weight: 600; }
.generator-rows em { color: var(--primary-strong); font-style: normal; font-weight: 700; }
.generator-rows small { color: var(--muted); }
.health-dot { flex: 0 0 auto; width: 6px; height: 6px; border-radius: 50%; background: var(--success); }

.automation-section .section-head { max-width: 810px; }
.automation-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1rem; }
.automation-grid article { padding: 1.5rem; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.automation-grid .automation-ai { border-color: #edd9a9; background: linear-gradient(145deg, #fff, #fdf8eb); }
.automation-icon { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 1.5rem; border-radius: 9px; background: var(--primary-soft); color: var(--primary-strong); font-size: .7rem; font-weight: 900; }
.automation-ai .automation-icon { background: var(--gold-soft); color: var(--gold); }
.automation-grid h3 { font-size: 1rem; }
.automation-grid p { margin-bottom: .75rem; color: var(--muted); font-size: .83rem; }
.automation-grid small { color: var(--ink); font-size: .7rem; font-weight: 700; }

.complete-platform .section-head { max-width: 790px; }
.complete-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.complete-grid article { min-height: 165px; padding: 1.35rem; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); background: #fff; }
.complete-grid h3 { margin-bottom: .4rem; font-size: 1rem; }
.complete-grid p { margin: 0; color: var(--muted); font-size: .82rem; }

.deployment-band { padding: clamp(4rem, 7vw, 6rem) 0; background: radial-gradient(700px 320px at 10% 0, rgba(37,99,235,.3), transparent 60%), linear-gradient(130deg, #0b1b2e, #142c4b); }
.deployment-grid { display: grid; grid-template-columns: minmax(0,.82fr) minmax(520px,1.18fr); align-items: center; gap: clamp(2.5rem,6vw,5rem); }
.deployment-copy h2 { color: #fff; }
.deployment-copy .eyebrow { color: var(--gold-bright); }
.deployment-copy p { color: #aebdd4; }
.deployment-cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.deployment-cards article { padding: 1.5rem; border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); background: rgba(255,255,255,.055); }
.deployment-cards span { display: inline-block; margin-bottom: 1.4rem; padding: .25rem .5rem; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; color: var(--gold-bright); font-size: .65rem; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.deployment-cards h3 { color: #fff; }
.deployment-cards p { margin: 0; color: #96a9c4; font-size: .82rem; }

.enterprise-stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); padding-top: clamp(3rem,6vw,5rem); padding-bottom: clamp(3rem,6vw,5rem); }
.enterprise-stats > div { display: grid; gap: .45rem; padding: .5rem 1rem; border-right: 1px solid var(--border); text-align: center; }
.enterprise-stats > div:last-child { border-right: 0; }
.enterprise-stats strong { color: var(--ink); font-size: clamp(2rem,4vw,3rem); line-height: 1; }
.enterprise-stats span { color: var(--muted); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.enterprise-cta .eyebrow { color: #dce7ff; }
.enterprise-cta .btn-row { justify-content: center; }

/* Enterprise highlight directory, mirroring the What's new interaction pattern. */
.enterprise-source-hero {
  display: grid;
  place-items: center;
  min-height: clamp(520px, 72vh, 720px);
  padding: clamp(5rem, 10vw, 8rem) 0;
  overflow: hidden;
  background:
    radial-gradient(760px 380px at 50% 44%, rgba(37, 99, 235, 0.12), transparent 68%),
    radial-gradient(520px 280px at 20% 0, rgba(200, 144, 30, 0.08), transparent 65%),
    #1b1b27;
  text-align: center;
}
.enterprise-source-hero .wrap { max-width: 850px; }
.enterprise-source-label {
  display: inline-flex;
  margin: 0 0 1.5rem;
  padding: 0.35rem 1rem;
  border: 1px solid rgba(96, 165, 250, 0.18);
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  color: #e2e8f0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.enterprise-source-hero h1 {
  margin-bottom: 1.4rem;
  color: #f5f2e9;
  font-size: clamp(3.3rem, 7.5vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}
.enterprise-source-hero .lead {
  max-width: 720px;
  margin: 0 auto 2rem;
  color: #bbbcc6;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
}
.enterprise-source-hero .btn-row { justify-content: center; }
.enterprise-source-hero .btn-on-dark { background: rgba(255, 255, 255, 0.055); }

.enterprise-stat-strip { padding: 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); }
.enterprise-stat-strip .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding-top: 1.45rem; padding-bottom: 1.45rem; }
.enterprise-stat-strip .wrap > div { display: grid; gap: 0.15rem; padding: 0.2rem 1rem; border-right: 1px solid var(--border); text-align: center; }
.enterprise-stat-strip .wrap > div:last-child { border-right: 0; }
.enterprise-stat-strip strong { color: var(--ink); font-size: 1.2rem; line-height: 1.1; }
.enterprise-stat-strip span { color: var(--muted); font-size: 0.69rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }

.enterprise-highlight-intro {
  max-width: var(--maxw);
  padding-top: clamp(4rem, 8vw, 6.5rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
  scroll-margin-top: 76px;
}
.enterprise-highlight-intro h2 { max-width: 850px; }
.enterprise-highlight-intro .lead { max-width: 820px; color: var(--muted); }
.enterprise-highlight-list { padding-top: 0; }
.enterprise-highlight-list .change-groups { align-items: start; }
.enterprise-highlight-list .change-group {
  padding: 0.15rem 0;
}
.enterprise-highlight-list .change-group h3 {
  color: var(--primary-strong);
  font-size: 0.82rem;
}
.enterprise-highlight-list .change-items li {
  min-height: 86px;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}
.enterprise-highlight-list .change-items li > strong { font-size: 1.02rem; }
.enterprise-highlight-list .change-items li > span { max-width: 94%; }
.enterprise-highlight-list .change-detail { font-size: 1rem; }
.enterprise-highlights-page #change-modal .modal { max-width: 760px; }
.enterprise-highlights-page #change-modal .modal-body p { line-height: 1.68; }
.enterprise-highlight-cta .eyebrow { color: #dce7ff; }

@media (max-width: 960px) {
  .enterprise-source-hero { min-height: 560px; }
}

@media (max-width: 640px) {
  .enterprise-source-hero { min-height: 520px; padding: 4.5rem 0; }
  .enterprise-source-hero h1 { font-size: clamp(3rem, 15vw, 4.3rem); }
  .enterprise-source-hero h1 br { display: none; }
  .enterprise-source-hero .btn { width: 100%; }
  .enterprise-stat-strip .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1rem; }
  .enterprise-stat-strip .wrap > div:nth-child(2) { border-right: 0; }
  .enterprise-highlight-intro { padding-bottom: 1.5rem; }
}

/* ---------- CTA band ---------- */
.cta {
  background: radial-gradient(900px 400px at 50% -30%, rgba(255,255,255,0.12), transparent 60%), linear-gradient(120deg, var(--primary-strong), #3b5bd9 60%, #4f46e5);
  color: #fff;
  text-align: center;
}
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,0.88); max-width: 40rem; margin: 0 auto 1.6rem; }
.cta .btn-row { justify-content: center; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: #9fb0c9; border-top: 1px solid #0a1626; padding: 3rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; }
.footer-brand .brand { color: #fff; }
.footer-brand p { color: #9fb0c9; font-size: 0.9rem; max-width: 24rem; margin-top: 0.8rem; }
.footer-col h4 { color: #fff; font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 0.8rem; }
.footer-col a,
.footer-link-button {
  display: block;
  color: #9fb0c9;
  text-decoration: none;
  font: inherit;
  font-size: 0.92rem;
  text-align: left;
  padding: 0.25rem 0;
}
.footer-link-button { border: 0; background: transparent; cursor: pointer; }
.footer-col a:hover, .footer-link-button:hover { color: #fff; }
.footer-bottom { margin-top: 2.4rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,0.08); font-size: 0.85rem; color: #7d8ca6; }
.footer-bottom p { margin: 0; color: #7d8ca6; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 0.35rem 0.6rem; margin-bottom: 0.8rem; }
.footer-legal a { color: #c2cee0; text-decoration: none; }
.footer-legal a:hover { color: #fff; text-decoration: underline; }

/* ---------- public legal and utility pages ---------- */
.legal-page { background: var(--bg-soft); }
.legal-shell { max-width: 850px; padding-top: clamp(3rem, 6vw, 5rem); padding-bottom: clamp(4rem, 8vw, 7rem); }
.legal-card { padding: clamp(1.5rem, 4vw, 3rem); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.legal-card h1 { font-size: clamp(2.2rem, 5vw, 3.3rem); }
.legal-card h2 { margin-top: 2rem; font-size: 1.35rem; }
.legal-card h3 { margin-top: 1.35rem; }
.legal-card p, .legal-card li, .legal-card dd { max-width: 70ch; }
.legal-card a { color: var(--primary-strong); }
.legal-meta { color: var(--muted); font-size: 0.9rem; }
.legal-details { display: grid; grid-template-columns: minmax(150px, 0.35fr) minmax(0, 1fr); gap: 0.75rem 1.25rem; margin: 1.5rem 0 0; }
.legal-details dt { color: var(--muted); font-weight: 700; }
.legal-details dd { margin: 0; color: var(--ink); }
.error-page { display: grid; place-items: center; min-height: 65vh; text-align: center; }
.error-page .legal-card { width: min(680px, 100%); }

/* ---------- page hero (interior pages) ---------- */
.page-hero { padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem); }
.page-hero .wrap { max-width: 820px; }
.page-hero h1 { font-size: var(--hero-heading-size); line-height: 1.08; }
.page-hero p.lead { color: var(--muted); }
.page-hero-left .wrap { max-width: var(--maxw); }
.page-hero-left p.lead { max-width: 820px; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .nav-links { gap: 0.1rem; }
  .nav-links a { font-size: 0.88rem; padding: 0.4rem 0.5rem; }
  .brand { font-size: 1.05rem; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { max-width: none; }
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .products, .cols2, .price-cards { grid-template-columns: 1fr; }
  .feature-grid, .change-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats, .ladder { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .enterprise-hero,
  .enterprise-demo-section,
  .raw-data-grid,
  .deployment-grid { grid-template-columns: 1fr; }
  .enterprise-hero-copy { max-width: 48rem; }
  .enterprise-hero { padding-top: 4rem; }
  .enterprise-hero-shot { max-width: 820px; transform: none; }
  .enterprise-demo-heading { max-width: 48rem; }
  .enterprise-demo-video { max-width: 820px; }
  .value-grid,
  .pane-grid,
  .automation-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .forensic-section .split,
  .generator-section .split { grid-template-columns: 1fr; }
  .k6-engine-layout { grid-template-columns: 1fr; }
  .k6-engine-copy { max-width: 48rem; }
  .k6-engine-proof { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .k6-engine-proof > div:nth-child(2) { border-right: 0; }
  .k6-engine-proof > div:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .k6-workflow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .k6-workflow li:nth-child(2) { border-right: 0; }
  .generator-section .split-media { order: 0; }
  .forensic-console,
  .generator-console,
  .analysis-console { max-width: 720px; width: 100%; }
  .enterprise-proof-strip .wrap { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: .9rem; }
  .enterprise-proof-strip .wrap > div:nth-child(3) { border-right: 0; }
  .enterprise-proof-strip .wrap > div:nth-child(4) { grid-column: 1 / 2; }
  .enterprise-proof-strip .wrap > div:nth-child(5) { grid-column: 2 / 4; }
  .complete-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .feature-grid, .change-list, .stats, .ladder { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn-row { width: 100%; }
  .hero .btn, .cta .btn { flex: 1 1 auto; }
  .enterprise-hero { padding-top: 3rem; padding-bottom: 3.5rem; }
  .enterprise-hero-copy .btn { width: 100%; }
  .enterprise-shot-grid { grid-template-columns: 1fr; }
  .enterprise-product-shot { border-radius: 11px; }
  .enterprise-product-shot figcaption { font-size: 0.69rem; }
  .k6-engine-fact { grid-template-columns: 1fr; gap: .7rem; }
  .k6-engine-proof { grid-template-columns: 1fr; }
  .k6-engine-proof > div,
  .k6-engine-proof > div:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--border); }
  .k6-engine-proof > div:last-child { border-bottom: 0; }
  .k6-workflow { grid-template-columns: 1fr; margin-top: 0; }
  .k6-workflow li,
  .k6-workflow li:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--border); }
  .k6-workflow li:last-child { border-bottom: 0; }
  .enterprise-shot-zoom { right: 0.5rem; bottom: 0.5rem; }
  .console-topbar { align-items: flex-start; }
  .console-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .console-tabs { gap: .65rem; overflow-x: auto; }
  .live-chart { min-height: 185px; padding-left: 2.35rem; }
  .live-chart svg { height: 150px; }
  .error-actions { display: none; }
  .live-error-row { grid-template-columns: auto minmax(0,1fr); }
  .enterprise-proof-strip .wrap { grid-template-columns: 1fr 1fr; }
  .enterprise-proof-strip .wrap > div,
  .enterprise-proof-strip .wrap > div:nth-child(3),
  .enterprise-proof-strip .wrap > div:nth-child(4),
  .enterprise-proof-strip .wrap > div:nth-child(5) { grid-column: auto; border-right: 0; }
  .enterprise-proof-strip .wrap > div:last-child { grid-column: 1 / -1; }
  .value-grid,
  .pane-grid,
  .automation-grid,
  .complete-grid,
  .deployment-cards,
  .raw-data-points,
  .enterprise-stats { grid-template-columns: 1fr; }
  .pane-card { min-height: 150px; }
  .forensic-layout { grid-template-columns: 1fr; }
  .forensic-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); border-right: 0; border-bottom: 1px solid var(--border); }
  .browser-preview-body { min-height: 220px; }
  .generator-map { height: 180px; }
  .generator-rows > div { grid-template-columns: minmax(0,1.4fr) .8fr .8fr; }
  .generator-rows small { display: none; }
  .analysis-toolbar,
  .analysis-footer { align-items: flex-start; flex-direction: column; }
  .analysis-bars > div { grid-template-columns: 62px minmax(0,1fr) 35px; }
  .complete-grid { border-left: 0; }
  .complete-grid article { min-height: auto; border-left: 1px solid var(--border); }
  .enterprise-stats { gap: 1rem; }
  .enterprise-stats > div { padding: 1.1rem; border: 1px solid var(--border); border-radius: var(--radius); }
  .change-groups { grid-template-columns: 1fr; gap: 2rem; }
}

/* ---------- customer portal and free-license extensions ---------- */
.header-license-link,
.header-portal-link {
  color: var(--primary-strong);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.header-license-link:hover,
.header-portal-link:hover {
  color: var(--ink);
}

.header-cta { gap: 0.8rem; }

.header-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}

.header-inner .brand { justify-self: start; }
.header-inner .nav-links { justify-self: center; margin-left: 0; padding-left: 0; }
.header-inner .header-cta { justify-self: end; }

.free-license-band {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
  color: #fff;
  background: var(--navy);
}

.free-license-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.free-license-band .eyebrow { color: #9db8ff; }
.free-license-band h2 { color: #fff; }
.free-license-band p { max-width: 720px; margin-bottom: 0; color: #b8c7dc; }
.free-license-action { display: grid; justify-items: start; gap: 0.8rem; }
.free-license-action p { font-size: 0.86rem; line-height: 1.55; }
.free-license-action > a:last-child { color: #fff; font-size: 0.86rem; font-weight: 700; }

.enterprise-intro { scroll-margin-top: 76px; }
.enterprise-stats-band { padding: 0; }

@media (max-width: 780px) {
  .header-license-link { display: none; }
  .free-license-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .header-inner {
    grid-template-columns: 1fr auto;
    row-gap: 0.35rem;
    padding-bottom: 0.45rem;
  }
  .header-inner .nav-links {
    display: flex;
    grid-column: 1 / -1;
    justify-self: stretch;
    justify-content: space-between;
    width: 100%;
    gap: 0;
    padding: 0.35rem 0 0;
    border-top: 1px solid var(--border);
    overflow-x: auto;
  }
  .header-inner .nav-links a { padding: 0.3rem 0.2rem; font-size: 0.78rem; }
  .header-inner .header-cta { grid-column: 2; grid-row: 1; }
  .header-portal-link { display: inline-flex; }
  .portal-authenticated .header-inner .nav-links { display: none; }
  .portal-authenticated .header-inner .portal-account-actions {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: stretch;
    justify-content: flex-end;
    gap: 1rem;
    padding-top: 0.35rem;
    border-top: 1px solid var(--border);
  }
  .legal-details { grid-template-columns: 1fr; gap: 0.2rem; }
  .legal-details dd { margin-bottom: 0.8rem; }
}

/* ---------- pricing plans ---------- */

/* Section rhythm. The global `section` rule is a flat clamp, so every block
   sits the same distance apart and related blocks read as unrelated. These
   tighten the gaps within a single topic. */
.sec-snug { padding-top: clamp(1.6rem, 2.4vw, 2.2rem); padding-bottom: clamp(1.6rem, 2.4vw, 2.2rem); }
.sec-tight { padding-top: 0; padding-bottom: clamp(1.6rem, 2.4vw, 2.2rem); }

/* Currency stays alongside the hero actions without claiming a separate row. */
.pricing-controls { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-left: auto; align-items: center; }
.pricing-toggle {
  display: inline-flex; padding: 3px; gap: 3px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--bg-soft);
}
.pricing-toggle button {
  appearance: none; border: 0; cursor: pointer;
  padding: 0.42rem 0.95rem; border-radius: 999px;
  font: inherit; font-size: 0.85rem; font-weight: 700;
  color: var(--muted); background: transparent;
}
.pricing-toggle button[aria-pressed="true"] { background: var(--primary); color: #fff; }
.pricing-toggle button:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* Everything true of every plan, stated once, so the cards only have to carry
   what actually differs between them. */
.shared-strip {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem;
  align-items: center; justify-content: center;
  padding: 0.9rem 1.2rem; margin-bottom: 1.5rem;
  border: 1px dashed var(--border); border-radius: var(--radius);
  background: var(--bg-soft); font-size: 0.88rem; color: var(--text);
}
.shared-strip span { display: inline-flex; align-items: center; gap: 0.4rem; }
.shared-strip span::before { content: "✓"; color: var(--primary); font-weight: 800; }

.tier-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  /* Row gap clears the badge straddling the featured card's top border. */
  gap: 1.75rem 1rem; margin: 1.25rem 0 1.5rem;
}
.tier-card {
  position: relative;
  border-radius: var(--radius-lg); border: 1px solid var(--border);
  background: var(--surface); padding: 1.5rem 1.3rem; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.tier-card.is-featured { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary), var(--shadow-sm); }
/* Centred on the top border, so it takes no vertical space and the cards keep
   their headings, prices, and buttons aligned across the row. */
.tier-card .tier-badge {
  position: absolute; top: 0; left: 50%;
  transform: translate(-50%, -50%);
  background: var(--primary); color: #fff; border-color: var(--primary);
  white-space: nowrap; z-index: 1;
}
.tier-card h2 { margin: 0 0 0.15rem; font-size: 1.2rem; }
.tier-card .tier-sub { color: var(--muted); font-size: 0.85rem; margin: 0 0 1rem; }
.tier-card .tier-price { font-size: clamp(1.6rem, 2vw, 1.95rem); font-weight: 800; color: var(--ink); line-height: 1.05; }
.tier-card .tier-price small { display: block; font-size: 0.8rem; font-weight: 500; color: var(--muted); margin-top: 0.3rem; }
.tier-card .tier-alt { font-size: 0.83rem; color: var(--muted); margin: 0.55rem 0 0; }
.tier-card ul { list-style: none; margin: 1.05rem 0 0; padding: 0; display: grid; gap: 0.42rem; }
.tier-card li { position: relative; padding-left: 1.3rem; font-size: 0.87rem; }
.tier-card li::before { content: "✓"; position: absolute; left: 0; color: var(--primary); font-weight: 800; }
.tier-card .btn-row { margin-top: auto; padding-top: 1.35rem; }
.tier-card .btn { width: 100%; justify-content: center; text-align: center; }

/* Partner is a rights tier, not a capacity tier, so it sits outside the ladder. */
.partner-strip {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.35fr) auto;
  gap: 1.5rem; align-items: center;
  border-radius: var(--radius-lg); border: 1px solid var(--border);
  background: var(--surface); padding: 1.6rem; box-shadow: var(--shadow-sm);
}
.partner-strip h2 { margin: 0 0 0.3rem; font-size: 1.2rem; }
.partner-strip p { margin: 0; font-size: 0.9rem; color: var(--muted); }
.partner-strip ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.partner-strip li { position: relative; padding-left: 1.25rem; font-size: 0.85rem; }
.partner-strip li::before { content: "✓"; position: absolute; left: 0; color: var(--primary); font-weight: 800; }
.saas-strip { margin-top: 1rem; background: linear-gradient(135deg, var(--primary-soft), var(--surface) 58%); border-color: #b8c9ed; }
.saas-strip .eyebrow { margin-bottom: 0.35rem; color: var(--primary-strong); }

/* Capacity by term grid */
.price-table td.num, .price-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.price-table .rate { display: block; font-size: 0.78rem; font-weight: 500; color: var(--muted); margin-top: 0.15rem; }
.price-table .col-annual { background: var(--primary-soft); }
.price-table thead th.col-annual { background: #dce7ff; }
.price-table .tier-name { display: block; font-size: 0.78rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.03em; }
.flip-note {
  margin-top: 1.2rem; padding: 1rem 1.2rem;
  border-left: 3px solid var(--primary); background: var(--bg-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.95rem;
}

/* VAT wording only applies to euro invoicing; pricing.js sets data-currency. */
.eur-only { display: none; }
:root[data-currency="eur"] .eur-only { display: inline; }
.usd-only { display: none; }
:root[data-currency="usd"] .usd-only { display: inline; }

@media (max-width: 900px) {
  .tier-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .partner-strip { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .tier-grid { grid-template-columns: minmax(0, 1fr); }
  .partner-strip ul { grid-template-columns: minmax(0, 1fr); }
  .pricing-controls { margin-left: 0; width: 100%; }
}
