/* Octane comparison pages — shared stylesheet.
   Brand tokens derived from https://www.octane.security/ (2026-09-22):
   bg #F4F5F8, accent #235CEF, radius 12/6px, Questrial display, Geist body,
   IBM Plex Mono for eyebrows, buttons and table headers. */

:root {
  --bg: #f4f5f8;
  --surface: #ffffff;
  --surface-alt: #eef0f5;
  --ink: #000000;
  --ink-soft: #292725;
  --muted: #666a70;
  --line: #d5dae7;
  --accent: #235cef;
  --accent-ink: #ffffff;
  --accent-wash: #e9eefd;
  --warn: #8a5a00;
  --warn-wash: #fff6e3;

  --r-lg: 12px;
  --r-sm: 6px;

  --font-display: Questrial, "Trebuchet MS", Verdana, sans-serif;
  --font-body: Geist, "Helvetica Neue", Verdana, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --maxw: 1100px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  overflow-wrap: break-word;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  text-wrap: balance;
}

h1 { font-size: clamp(2.25rem, 5.5vw, 3.75rem); line-height: 1.02; }
h2 { font-size: clamp(1.75rem, 4vw, 3rem); line-height: 1.05; }
h3 { font-size: clamp(1.125rem, 2vw, 1.375rem); line-height: 1.2; }

p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); }
a:hover { color: #1a48bd; }

:where(a, button, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* ---------- layout ---------- */

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

section { padding: 72px 0; border-top: 1px solid var(--line); }
section:first-of-type { border-top: 0; }

.lede { font-size: 1.125rem; color: var(--ink-soft); max-width: 60ch; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 20px;
}

.note {
  font-size: 0.875rem;
  color: var(--muted);
  max-width: 62ch;
}

.takeaway {
  margin-top: 24px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--ink);
  max-width: 48ch;
}

/* ---------- buttons ---------- */

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 28px; }

.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 16px 24px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  transition: background-color .15s ease, border-color .15s ease;
}

.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #1a48bd; color: var(--accent-ink); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface); color: var(--ink); border-color: var(--muted); }

.cta-band {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px;
  text-align: center;
}
.cta-band .cta-row { justify-content: center; margin-top: 20px; }

/* ---------- placeholders ---------- */

.ph {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.9em;
  color: var(--warn);
  background: var(--warn-wash);
  border: 1px dashed #c79a3a;
  border-radius: 4px;
  padding: 0 6px;
  cursor: help;
}

.ph-block { display: block; margin-top: 8px; }

/* ---------- header / hero ---------- */

.site-head {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.brand {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}
.site-head nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-head nav a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}
.site-head nav a:hover { color: var(--ink); }

#s1-hero { padding-top: 64px; }
.hero-grid { display: grid; gap: 40px; grid-template-columns: 1fr; align-items: start; }
.hero-sub { font-size: 1.1875rem; color: var(--ink-soft); max-width: 46ch; }
.updated {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 28px;
}

.hero-visual {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
}
.hero-visual svg { display: block; width: 100%; height: auto; }
.hero-visual figcaption { margin-top: 16px; }

/* ---------- logo bar ---------- */

.logo-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}
.logo-slot {
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--r-sm);
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  text-align: center;
}

/* ---------- cards & grids ---------- */

.grid-2 { display: grid; gap: 20px; grid-template-columns: 1fr; }
.grid-3 { display: grid; gap: 20px; grid-template-columns: 1fr; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
}
.card h3 { margin-bottom: 8px; }
.card .tag {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 12px;
}

.claim-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.claim-list li {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  padding-left: 20px;
  border-left: 3px solid var(--accent);
}

/* ---------- pain grid ---------- */

.pain-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.pain-pair {
  display: grid;
  gap: 0;
  grid-template-columns: 1fr;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.pain-pair > div { padding: 20px; }
.pain-pair .pain { background: var(--surface-alt); }
.pain-pair .remedy { border-top: 1px solid var(--line); }
.pain-pair h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  margin-bottom: 6px;
}
.pain-pair p { font-size: 0.9375rem; color: var(--ink-soft); }

/* ---------- tables ---------- */

.table-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 24px;
}

table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }

caption {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left;
  padding: 18px 20px 0;
}

th, td {
  text-align: left;
  vertical-align: top;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}

thead th {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface-alt);
}

tbody th {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--ink);
  width: 26%;
}

tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }

td.octane { background: var(--accent-wash); }
thead th.octane { background: #dde5fc; color: var(--ink); }

/* ---------- quotes ---------- */

.quote {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-lg);
  padding: 28px;
  margin: 0;
}
.quote blockquote { margin: 0; font-family: var(--font-display); font-size: 1.25rem; line-height: 1.35; }
.quote figcaption, .quote .attrib {
  margin: 16px 0 0;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.quote-lead blockquote { font-size: clamp(1.25rem, 2.4vw, 1.625rem); }

.quote-card { display: flex; flex-direction: column; justify-content: space-between; }
.quote-card .tag { margin: 0 0 12px; }

/* ---------- stats ---------- */

.stats { display: grid; gap: 16px; grid-template-columns: 1fr; }
.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
}
.stat .num {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  line-height: 1;
  display: block;
  margin-bottom: 12px;
}
.stat .label { font-size: 0.9375rem; color: var(--muted); }

/* ---------- steps ---------- */

.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 16px; }
.steps li {
  counter-increment: step;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  position: relative;
}
.steps li::before {
  content: "0" counter(step);
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 10px;
}
.steps li h3 { margin-bottom: 6px; }
.steps li p { font-size: 0.9375rem; color: var(--ink-soft); }

/* ---------- faq ---------- */

.faq { display: grid; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary {
  cursor: pointer;
  padding: 20px 24px;
  font-family: var(--font-display);
  font-size: 1.125rem;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--accent); font-family: var(--font-mono); }
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 24px 22px; color: var(--ink-soft); font-size: 0.9375rem; max-width: 70ch; }

/* ---------- footer ---------- */

.site-foot {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 40px 0;
  font-size: 0.875rem;
  color: var(--muted);
}
.site-foot .cols { display: grid; gap: 24px; grid-template-columns: 1fr; }
.site-foot h2 {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }

/* ---------- responsive ---------- */

@media (min-width: 720px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .pain-pair { grid-template-columns: 1fr 1fr; }
  .pain-pair .remedy { border-top: 0; border-left: 1px solid var(--line); }
  .site-foot .cols { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
  section { padding: 96px 0; }
}

/* Stacked cards under 640px — every comparison table stays readable. */
@media (max-width: 639px) {
  .table-wrap { border: 0; background: transparent; overflow: visible; }
  caption { padding: 0 0 12px; }
  table, tbody, tr, th, td { display: block; width: 100%; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  tbody tr {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    margin-bottom: 12px;
    overflow: hidden;
  }
  tbody th {
    width: auto;
    background: var(--surface-alt);
    border-bottom: 1px solid var(--line);
    font-family: var(--font-body);
    font-size: 1rem;
  }
  tbody td { border-bottom: 1px solid var(--line); padding-top: 12px; }
  tbody tr td:last-child { border-bottom: 0; }
  tbody td::before {
    content: attr(data-label);
    display: block;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* Screen-reader-only label for the blank corner cell in comparison tables. */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Framing callout — used for the honest "here's what this really is" lines. */
.framing {
  margin-top: 28px;
  padding: 20px 24px;
  background: var(--accent-wash);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-sm);
  font-family: var(--font-display);
  font-size: 1.1875rem;
  line-height: 1.35;
  max-width: 62ch;
}

/* Sub-section heading inside a long section (section 8's four blocks). */
.sub {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 40px 0 16px;
}
.sub:first-of-type { margin-top: 32px; }

/* Rows where the honest answer is "keep the pentest". */
td.keep { background: var(--surface-alt); }

.source-note {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 16px;
}
