/* ============================================================
   Cybertect.io — shared stylesheet
   Used by: index.html, detection.html, methodology.html, reports.html,
            trust.html, pricing.html, contact.html, privacy-policy.html,
            terms-of-service.html, 404.html
   ============================================================ */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', ui-sans-serif, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 16px; line-height: 1.55;
  color: #0F172A;
  background: #FFFFFF;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'kern', 'liga', 'cv02', 'cv11';
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
.mono, code, pre {
  font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.92em;
}

/* ---------- Tokens ---------- */
:root {
  --ink: #0F172A; --ink-2: #334155; --muted: #64748B; --muted-2: #94A3B8;
  --bg: #FFFFFF; --bg-soft: #F8FAFC; --bg-cream: #FAFAF9;
  --border: #E2E8F0; --border-soft: #F1F5F9;
  --blue: #2563EB; --blue-soft: #EFF6FF;
  --green: #16A34A; --green-soft: #DCFCE7;
  --amber: #D97706; --amber-soft: #FEF3C7;
  --red: #DC2626; --red-soft: #FEE2E2; --rose-bg: #FEF2F2;
  --purple: #9333EA; --purple-soft: #F3E8FF;
  --orange: #EA580C; --orange-ring: #F97316;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.08);
  --radius-sm: 8px; --radius: 14px; --radius-lg: 20px; --radius-pill: 999px;
  --max-width: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
}

/* ---------- Layout primitives ---------- */
.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--gutter); }
section { padding: 96px 0; }
@media (max-width: 720px) { section { padding: 64px 0; } }

.eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
  color: var(--blue); background: var(--blue-soft);
  padding: 6px 12px; border-radius: var(--radius-pill);
  margin: 0 0 18px;
}
.eyebrow.warm { color: var(--orange); background: #FFEDD5; }
.eyebrow.amber { color: var(--amber); background: var(--amber-soft); }
.eyebrow.green { color: var(--green); background: var(--green-soft); }
.eyebrow.purple { color: var(--purple); background: var(--purple-soft); }
.eyebrow.red { color: var(--red); background: var(--red-soft); }

h1, h2, h3, h4 { letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 20px; font-weight: 700; }
h1 { font-size: clamp(36px, 5.4vw, 60px); letter-spacing: -0.03em; }
h2 { font-size: clamp(28px, 3.6vw, 40px); }
h3 { font-size: 20px; font-weight: 600; }
h4 { font-size: 16px; font-weight: 600; }

p { margin: 0 0 16px; color: var(--ink-2); }
p.lead { font-size: clamp(17px, 1.6vw, 19px); line-height: 1.55; color: var(--muted); max-width: 64ch; }

.text-center { text-align: center; }
.max-prose { max-width: 64ch; }

/* ---------- Topbar / Header ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border-soft);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px var(--gutter);
  max-width: var(--max-width); margin: 0 auto;
  gap: 24px;
}
.brand { display: flex; align-items: center; font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.brand .cyber { color: var(--ink); }
.brand .tect { color: var(--blue); }
.brand .io { color: var(--muted); font-weight: 500; }

nav.primary { display: flex; gap: 28px; align-items: center; }
nav.primary a {
  font-size: 14px; color: var(--ink-2); font-weight: 500;
  position: relative; padding: 4px 0;
}
nav.primary a:hover { color: var(--ink); }
nav.primary a.current { color: var(--blue); }
nav.primary a.current::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--blue); border-radius: 2px;
}
nav.primary a.investors {
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
}
@media (max-width: 980px) { nav.primary { display: none; } }

.top-tools { display: flex; gap: 12px; align-items: center; }
.lang-toggle {
  display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
  font-size: 13px; font-weight: 600; background: var(--bg);
}
.lang-toggle button {
  background: transparent; border: 0; padding: 7px 12px; color: var(--muted);
}
.lang-toggle button.active { background: var(--bg-soft); color: var(--ink); }

.icon-btn {
  width: 36px; height: 36px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--bg);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--muted); transition: all 0.15s ease;
}
.icon-btn:hover { color: var(--ink); border-color: var(--muted-2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 14px;
  padding: 10px 18px; border-radius: var(--radius-pill);
  border: 1px solid transparent; transition: all 0.15s ease;
  cursor: pointer; white-space: nowrap;
}
.btn-primary { background: var(--blue); color: white; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: #1D4ED8; box-shadow: var(--shadow); transform: translateY(-1px); }
.btn-ghost { background: var(--bg); color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--muted-2); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.action-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 14px;
  padding: 9px 18px; border-radius: var(--radius-pill);
  background: var(--bg); border: 1.5px solid var(--border);
  color: var(--ink); transition: all 0.15s ease;
}
.action-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.action-btn.blue { color: var(--blue); border-color: var(--blue); }
.action-btn.green { color: var(--green); border-color: var(--green); }
.action-btn.purple { color: var(--purple); border-color: var(--purple); }
.action-btn.red { color: var(--red); border-color: var(--red); }
.action-btn.amber { color: var(--amber); border-color: var(--amber); }

/* ---------- Pills / badges ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em;
  padding: 4px 10px; border-radius: var(--radius-pill);
}
.pill.beta { background: var(--amber-soft); color: var(--amber); }
.pill.critical { background: var(--red-soft); color: var(--red); }
.pill.verified { background: var(--green-soft); color: var(--green); }
.pill.failed { background: var(--red-soft); color: var(--red); }
.pill.warm { background: #FFF7ED; color: var(--orange); }
.pill.outline { background: var(--bg); color: var(--ink-2); border: 1px solid var(--border); }
.pill.blue { background: var(--blue-soft); color: var(--blue); }

.sev {
  display: inline-block;
  font-size: 10px; font-weight: 700; letter-spacing: 0.04em;
  padding: 3px 8px; border-radius: var(--radius-pill);
}
.sev.LOW { background: var(--green-soft); color: var(--green); }
.sev.MEDIUM { background: var(--amber-soft); color: var(--amber); }
.sev.HIGH { background: #FFEDD5; color: var(--orange); }
.sev.CRITICAL { background: var(--red-soft); color: var(--red); }

/* ---------- Score circle ---------- */
.score-circle {
  width: 64px; height: 64px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; flex-shrink: 0;
  background: var(--bg);
  border: 4px solid var(--orange-ring);
}
.score-circle .num { font-size: 22px; font-weight: 700; color: var(--ink); line-height: 1; }
.score-circle .denom { font-size: 9px; color: var(--muted); letter-spacing: 0.04em; }
.score-circle.green-ring { border-color: var(--green); }
.score-circle.red-ring { border-color: var(--red); }
.score-circle.amber-ring { border-color: var(--amber); }
.score-circle.lg { width: 96px; height: 96px; border-width: 5px; }
.score-circle.lg .num { font-size: 32px; }
.score-circle.lg .denom { font-size: 11px; }

/* ---------- Hero / page-header ---------- */
.page-header { padding: 80px 0 48px; }
.page-header h1 { max-width: 22ch; }
.page-header h1 .accent { color: var(--blue); }
.page-header p.lead { margin-bottom: 24px; }

/* ---------- Audit input bar ---------- */
.audit-bar {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg); padding: 8px 8px 8px 20px;
  border: 1px solid var(--border); border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  max-width: 600px;
}
.audit-bar:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.audit-bar svg.search-icon { color: var(--muted-2); flex-shrink: 0; }
.audit-bar input {
  flex: 1; border: 0; outline: none; background: transparent;
  font-size: 15px; color: var(--ink); padding: 10px 0;
  font-family: inherit;
}
.audit-bar input::placeholder { color: var(--muted-2); }
.audit-bar .audit-btn {
  background: var(--blue); color: white; border: 0; border-radius: var(--radius-pill);
  padding: 10px 20px; font-weight: 600; font-size: 14px;
  display: inline-flex; align-items: center; gap: 6px;
}
.audit-bar .audit-btn:hover { background: #1D4ED8; }

/* ---------- Live audit progress ---------- */
.audit-progress {
  margin-top: 24px; padding: 22px;
  background: var(--ink); color: var(--bg-soft);
  border-radius: var(--radius); max-width: 700px;
  box-shadow: var(--shadow);
}
.audit-progress .step {
  display: flex; align-items: center; gap: 12px;
  padding: 7px 0; opacity: 0.55;
  font-family: 'JetBrains Mono', monospace; font-size: 13px;
}
.audit-progress .step.active { opacity: 1; color: #FCD34D; }
.audit-progress .step.done { opacity: 0.85; color: #86EFAC; }
.audit-progress .check { display: inline-block; width: 16px; text-align: center; }
.audit-progress .step .label { flex: 1; }
.audit-progress .step .ts { color: #64748B; font-size: 11px; }

/* ---------- Audit cards (split-screen comparison + reports) ---------- */
.audit-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease;
}
.audit-card:hover { box-shadow: var(--shadow); }

.audit-card-head {
  display: flex; align-items: center; gap: 14px; margin-bottom: 20px;
}
.audit-card-head .meta { flex: 1; }
.audit-card-head .meta .domain {
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px; font-weight: 500; color: var(--ink);
  margin-bottom: 4px;
}
.audit-card-head .meta .timestamp { font-size: 12px; color: var(--muted); }

.audit-card-status {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px;
}

.audit-card-stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
  padding: 16px; border-radius: var(--radius);
  background: var(--bg-soft); margin-bottom: 18px;
}
.stat .label { font-size: 11px; color: var(--muted); font-weight: 500; }
.stat .val { font-size: 22px; font-weight: 700; color: var(--ink); margin-top: 2px; }
.stat .val small { font-size: 13px; color: var(--muted); margin-left: 2px; font-weight: 500; }

.findings-list { border-top: 1px solid var(--border-soft); padding-top: 14px; }
.findings-list .item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; font-size: 13.5px;
  border-bottom: 1px solid var(--border-soft);
}
.findings-list .item:last-child { border-bottom: 0; }
.findings-list .item .name { color: var(--ink-2); }

.audit-card-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 14px; margin-top: 6px;
  border-top: 1px solid var(--border-soft);
  font-size: 13px;
}
.audit-card-foot a { color: var(--blue); font-weight: 600; }
.audit-card-foot a:hover { text-decoration: underline; }

/* ---------- Compare grid (split-screen) ---------- */
.compare {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 56px;
}
@media (max-width: 880px) { .compare { grid-template-columns: 1fr; } }
.compare-strap {
  text-align: center; padding: 20px;
  font-size: 13.5px; color: var(--muted);
  grid-column: 1 / -1;
}

/* ---------- Code blocks ---------- */
.codeblock {
  background: var(--ink); color: #E2E8F0;
  border-radius: var(--radius);
  padding: 0; overflow: hidden;
  box-shadow: var(--shadow);
  font-size: 13px; line-height: 1.6;
}
.codeblock .label-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid #1E293B;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.04em; color: #94A3B8;
}
.codeblock .label-bar .dot-row { display: inline-flex; gap: 6px; }
.codeblock .label-bar .dot-row span { width: 10px; height: 10px; border-radius: 50%; background: #334155; display: inline-block; }
.codeblock pre { padding: 20px; margin: 0; overflow-x: auto; font-family: 'JetBrains Mono', monospace; }
.codeblock .key { color: #93C5FD; }
.codeblock .str { color: #FCD34D; }
.codeblock .num { color: #FCA5A5; }
.codeblock .comment { color: #64748B; font-style: italic; }
.codeblock.compact pre { padding: 16px; font-size: 12px; }

/* ---------- Three pillars / feature cards ---------- */
.pillars-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px;
}
@media (max-width: 920px) { .pillars-grid { grid-template-columns: 1fr; } }
.pillar {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.2s ease;
}
.pillar:hover { border-color: var(--blue); box-shadow: var(--shadow); }
.pillar-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  background: var(--blue-soft); color: var(--blue);
}
.pillar-icon.green { background: var(--green-soft); color: var(--green); }
.pillar-icon.purple { background: var(--purple-soft); color: var(--purple); }
.pillar-icon.amber { background: var(--amber-soft); color: var(--amber); }
.pillar-icon.red { background: var(--red-soft); color: var(--red); }
.pillar h3 { font-size: 19px; }
.pillar p { color: var(--ink-2); font-size: 14.5px; margin-bottom: 14px; }
.pillar .artifact {
  margin-top: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; line-height: 1.7;
  background: var(--bg-soft);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  color: var(--ink-2);
  border-left: 3px solid var(--blue);
}
.pillar .artifact.green-bar { border-left-color: var(--green); }
.pillar .artifact.purple-bar { border-left-color: var(--purple); }
.pillar .artifact.amber-bar { border-left-color: var(--amber); }

/* ---------- Featured PDF viewer ---------- */
.featured-viewer {
  margin-top: 36px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.viewer-tabs {
  display: flex; flex-wrap: wrap; gap: 0;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}
.viewer-tab {
  flex: 1; min-width: 200px;
  background: transparent; border: 0;
  padding: 18px 22px;
  text-align: left; cursor: pointer;
  border-bottom: 3px solid transparent;
  border-right: 1px solid var(--border-soft);
  transition: all 0.15s ease;
  display: flex; align-items: center; gap: 12px;
}
.viewer-tab:last-child { border-right: 0; }
.viewer-tab:hover { background: var(--bg); }
.viewer-tab.active { background: var(--bg); border-bottom-color: var(--blue); }
.viewer-tab .tab-score {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  background: var(--bg);
  border: 3px solid var(--orange-ring);
  font-size: 13px; font-weight: 700;
  color: var(--ink);
}
.viewer-tab.green .tab-score { border-color: var(--green); }
.viewer-tab.red .tab-score { border-color: var(--red); }
.viewer-tab.amber .tab-score { border-color: var(--amber); }
.viewer-tab .tab-meta { flex: 1; min-width: 0; }
.viewer-tab .tab-domain {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13.5px; font-weight: 600; color: var(--ink);
  margin-bottom: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.viewer-tab .tab-verdict {
  font-size: 11px; font-weight: 600;
  padding: 2px 8px; border-radius: var(--radius-pill);
  display: inline-block;
}
.viewer-tab .tab-verdict.likely { background: var(--red-soft); color: var(--red); }
.viewer-tab .tab-verdict.possible { background: var(--amber-soft); color: var(--amber); }
.viewer-tab .tab-verdict.notmfa { background: var(--green-soft); color: var(--green); }

.viewer-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 22px;
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg);
  flex-wrap: wrap;
}
.viewer-toolbar .summary {
  font-size: 13.5px; color: var(--ink-2);
  flex: 1; min-width: 240px;
}
.viewer-toolbar .summary .domain-link {
  font-family: 'JetBrains Mono', monospace; font-weight: 600; color: var(--blue);
}
.viewer-toolbar .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.viewer-toolbar .actions a {
  font-size: 12.5px; font-weight: 600;
  padding: 7px 14px; border-radius: var(--radius-pill);
  background: var(--bg); color: var(--ink-2);
  border: 1px solid var(--border);
  display: inline-flex; align-items: center; gap: 6px;
  transition: all 0.15s ease;
}
.viewer-toolbar .actions a:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.viewer-toolbar .actions a.blue { color: var(--blue); border-color: var(--blue); }
.viewer-toolbar .actions a.purple { color: var(--purple); border-color: var(--purple); }
.viewer-toolbar .actions a.green { color: var(--green); border-color: var(--green); }

.viewer-frame {
  width: 100%; height: 820px; border: 0;
  background: var(--bg-cream); display: block;
}
@media (max-width: 720px) { .viewer-frame { height: 600px; } }
.viewer-pane { display: none; }
.viewer-pane.active { display: block; }

/* ---------- Tabs (general) ---------- */
.tabs-pill {
  display: flex; flex-wrap: wrap; gap: 4px;
  background: var(--bg-soft);
  border-radius: var(--radius-pill);
  padding: 4px;
  max-width: 100%;
}
.tabs-pill button {
  font-size: 13.5px; font-weight: 500;
  padding: 10px 18px; background: transparent; border: 0;
  color: var(--muted); border-radius: var(--radius-pill);
  transition: all 0.15s ease;
}
.tabs-pill button.active {
  background: var(--bg); color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.tabs-tag {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.tabs-tag button {
  font-size: 13px; font-weight: 500;
  padding: 9px 16px; border-radius: var(--radius-pill);
  border: 1px solid var(--border); background: var(--bg); color: var(--ink-2);
  transition: all 0.15s ease;
}
.tabs-tag button:hover { border-color: var(--muted-2); }
.tabs-tag button.active { background: var(--ink); color: white; border-color: var(--ink); }
.tabs-tag button.demand-source { background: var(--blue); color: white; border-color: var(--blue); }
.tabs-tag button.demand-source.active { background: var(--ink); border-color: var(--ink); }

/* ---------- Reports grid ---------- */
.reports-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px;
}
@media (max-width: 920px) { .reports-grid { grid-template-columns: 1fr; } }
.report-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: all 0.2s ease;
}
.report-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.report-card-head { padding: 22px; }
.report-card-head .domain { font-family: 'JetBrains Mono', monospace; font-weight: 600; font-size: 16px; margin: 10px 0 6px; }
.report-card-head .desc { font-size: 13.5px; color: var(--muted); margin: 0; }
.report-card-body { padding: 0 22px; flex: 1; }
.kv-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 13px;
}
.kv-row:last-child { border-bottom: 0; }
.kv-row .k { color: var(--muted); font-weight: 500; }
.kv-row .v { color: var(--ink); font-weight: 600; font-family: 'JetBrains Mono', monospace; font-size: 12.5px; }
.report-card-foot {
  padding: 16px 22px;
  border-top: 1px solid var(--border-soft);
  background: var(--bg-soft);
  display: flex; gap: 16px;
  font-size: 13px; font-weight: 600;
}
.report-card-foot a { color: var(--blue); }

/* ---------- Trust strip ---------- */
.trust-strip { background: var(--bg-soft); padding: 36px 0; }
.trust-strip .wrap {
  display: flex; flex-wrap: wrap; gap: 28px 36px;
  align-items: center; justify-content: center;
  font-size: 13px; color: var(--muted);
}
.trust-strip .item { display: inline-flex; align-items: center; gap: 8px; }
.trust-strip .item svg { color: var(--green); flex-shrink: 0; }
.trust-strip .dot { color: var(--border); }
.trust-strip a { color: var(--blue); font-weight: 600; }

/* ---------- Tier cards ---------- */
.tiers-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
@media (max-width: 920px) { .tiers-grid { grid-template-columns: 1fr; } }
.tier {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex; flex-direction: column;
  transition: all 0.2s ease;
  position: relative;
}
.tier:hover { box-shadow: var(--shadow); }
.tier .label {
  font-size: 11px; letter-spacing: 0.06em; color: var(--muted);
  margin-bottom: 10px; text-transform: uppercase; font-weight: 600;
}
.tier h3 { font-size: 22px; margin-bottom: 14px; }
.tier p { color: var(--ink-2); font-size: 14.5px; margin: 0 0 16px; }
.tier .features { list-style: none; padding: 0; margin: 0 0 24px; }
.tier .features li {
  padding: 9px 0; font-size: 13.5px; color: var(--ink-2);
  display: flex; align-items: center; gap: 8px;
}
.tier .features li svg { color: var(--green); flex-shrink: 0; }
.tier .cta-line { margin-top: auto; }
.tier.featured {
  border: 2px solid var(--blue);
  background: linear-gradient(180deg, var(--blue-soft) 0%, var(--bg) 100%);
}
.tier.featured .featured-tag {
  position: absolute; top: -12px; left: 28px;
  background: var(--blue); color: white;
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em;
  padding: 4px 12px; border-radius: var(--radius-pill);
}

/* ---------- Audience tabs / panels ---------- */
.audience-panel { display: none; padding: 36px 0; }
.audience-panel.active { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; }
@media (max-width: 920px) { .audience-panel.active { grid-template-columns: 1fr; } }
.audience-panel h3 { font-size: 26px; max-width: 22ch; }
.audience-panel .visual {
  background: var(--ink); color: #CBD5E1;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  padding: 22px;
  font-family: 'JetBrains Mono', monospace; font-size: 12px; line-height: 1.85;
  align-self: start;
  box-shadow: var(--shadow);
  overflow-x: auto;
}
.audience-panel .visual .head {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.06em; color: #94A3B8;
  padding-bottom: 10px; border-bottom: 1px solid #1E293B; margin-bottom: 14px;
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
}
.audience-panel .visual pre { margin: 0; font: inherit; white-space: pre; }
.audience-panel .visual .accent-y { color: #FCD34D; }
.audience-panel .visual .accent-g { color: #86EFAC; }
.audience-panel .visual .accent-b { color: #93C5FD; }
.audience-panel .visual .accent-r { color: #FCA5A5; }

/* ---------- Detection taxonomy panels ---------- */
.tactic-panel { display: none; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; }
.tactic-panel.active { display: grid; grid-template-columns: 1.3fr 1fr; gap: 36px; }
@media (max-width: 920px) { .tactic-panel.active { grid-template-columns: 1fr; } }
.tactic-panel .field { margin-bottom: 18px; }
.tactic-panel .field-label { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 6px; text-transform: uppercase; }
.tactic-panel .field-value { font-size: 15px; color: var(--ink-2); line-height: 1.55; }
.tactic-panel .field-value.mono {
  font-family: 'JetBrains Mono', monospace; font-size: 12.5px; line-height: 1.7;
  background: var(--bg-soft); padding: 12px 14px;
  border-radius: var(--radius-sm); color: var(--ink-2);
  border-left: 3px solid var(--border);
}
.tactic-panel .sample-card {
  background: var(--rose-bg);
  border: 1px solid #FECACA;
  border-radius: var(--radius);
  padding: 20px;
}
.tactic-panel .sample-card .sample-title {
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em; color: var(--red); text-transform: uppercase; margin-bottom: 10px;
}
.tactic-panel .sample-card .sample-body {
  font-family: 'JetBrains Mono', monospace; font-size: 12.5px; line-height: 1.8; color: var(--ink-2);
}
.tactic-panel .sample-card.blue { background: var(--blue-soft); border-color: #BFDBFE; }
.tactic-panel .sample-card.blue .sample-title { color: var(--blue); }
.tactic-panel .sample-card.green { background: var(--green-soft); border-color: #BBF7D0; }
.tactic-panel .sample-card.green .sample-title { color: var(--green); }

/* ---------- Methodology page styles ---------- */
.method-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 32px;
}
@media (max-width: 920px) { .method-grid { grid-template-columns: 1fr; } }
.method-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.method-card h3 { font-size: 18px; margin-bottom: 12px; }
.method-card .formula {
  font-family: 'JetBrains Mono', monospace; font-size: 13px;
  background: var(--bg-soft); padding: 14px 16px;
  border-radius: var(--radius-sm); margin: 12px 0;
  color: var(--ink-2);
}
.severity-bands {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px;
}
.severity-band {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px; border-radius: var(--radius-sm);
  font-size: 13px; font-family: 'JetBrains Mono', monospace;
}
.severity-band.LOW { background: var(--green-soft); color: var(--green); }
.severity-band.MEDIUM { background: var(--amber-soft); color: var(--amber); }
.severity-band.HIGH { background: #FFEDD5; color: var(--orange); }
.severity-band.CRITICAL { background: var(--red-soft); color: var(--red); }
.severity-band .label { font-weight: 700; }

/* ---------- Audit page (workspace) ---------- */
.workspace {
  display: grid; grid-template-columns: 1fr 320px; gap: 32px;
  padding-top: 48px; padding-bottom: 64px;
}
@media (max-width: 980px) { .workspace { grid-template-columns: 1fr; } }
.workspace-main h1 { font-size: 32px; margin-bottom: 12px; }
.workspace-aside { position: sticky; top: 90px; align-self: start; }
.history-list { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); }
.history-item {
  padding: 14px 16px; border-bottom: 1px solid var(--border-soft);
  display: flex; align-items: center; gap: 12px;
  transition: background 0.15s ease;
}
.history-item:last-child { border-bottom: 0; }
.history-item:hover { background: var(--bg-soft); }
.history-item .h-domain {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px; font-weight: 600; color: var(--ink);
}
.history-item .h-meta { font-size: 11px; color: var(--muted); margin-top: 2px; }
.history-item .h-score {
  width: 36px; height: 36px; flex-shrink: 0;
  border-radius: 50%; border: 3px solid var(--orange-ring);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; background: var(--bg);
}
.history-item .h-score.green { border-color: var(--green); }
.history-item .h-score.red { border-color: var(--red); }
.history-item .h-score.amber { border-color: var(--amber); }

/* ---------- Footer ---------- */
footer { background: var(--bg-soft); padding: 56px 0 32px; border-top: 1px solid var(--border-soft); }
footer .grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 880px) { footer .grid { grid-template-columns: 1fr 1fr; } }
footer h4 { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer ul li { padding: 4px 0; font-size: 14px; color: var(--ink-2); }
footer ul li a:hover { color: var(--blue); }
footer .colophon {
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border-soft);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 12px; color: var(--muted);
}

/* ---------- Contact form ---------- */
.contact-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: start; }
@media (max-width: 920px) { .contact-grid { grid-template-columns: 1fr; } }

.form-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
@media (max-width: 620px) { .form-card { padding: 24px; } }

.field { margin-bottom: 20px; }
.field:last-of-type { margin-bottom: 0; }
.field > label {
  display: block;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 8px;
}
.field > label .optional { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--muted-2); }
.field .hint { font-size: 12.5px; color: var(--muted); margin: 8px 0 0; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 620px) { .field-pair { grid-template-columns: 1fr; gap: 0; } }

.input, .textarea, .select {
  width: 100%;
  font-family: inherit; font-size: 15px; line-height: 1.5;
  color: var(--ink); background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.input::placeholder, .textarea::placeholder { color: var(--muted-2); }
.input:focus, .textarea:focus, .select:focus {
  outline: 0; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft);
}
.textarea { min-height: 170px; resize: vertical; }
.select { cursor: pointer; }

/* Off-screen rather than display:none — a headless browser reads computed
   styles, and a field it can see is a field it will fill. */
.honeypot { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.form-actions {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--border-soft);
}
.form-actions .btn-primary { border: 0; font-size: 14.5px; padding: 12px 22px; }
.form-actions .btn-primary:disabled { opacity: 0.6; cursor: default; transform: none; }
.form-actions .note { font-size: 12.5px; color: var(--muted); max-width: 34ch; margin: 0; }

.form-status {
  margin: 20px 0 0; padding: 13px 16px;
  border-radius: var(--radius-sm); border: 1px solid var(--border);
  font-size: 14px; font-weight: 500; color: var(--ink-2);
  background: var(--bg-soft);
}
.form-status.ok { background: var(--green-soft); border-color: #BBF7D0; color: #14532D; }
.form-status.error { background: var(--rose-bg); border-color: #FECACA; color: #7F1D1D; }
.form-status.pending { background: var(--blue-soft); border-color: #BFDBFE; color: #1E3A8A; }

.aside-card {
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
}
.aside-card:last-child { margin-bottom: 0; }
.aside-card h3 { font-size: 16px; margin-bottom: 12px; }
.aside-card p { font-size: 14px; margin: 0 0 12px; }
.aside-card p:last-child { margin-bottom: 0; }
.aside-card a { color: var(--blue); font-weight: 600; }
.aside-card ul { list-style: none; padding: 0; margin: 0; }
.aside-card ul li {
  font-size: 14px; color: var(--ink-2);
  padding: 8px 0; border-bottom: 1px solid var(--border);
}
.aside-card ul li:last-child { border-bottom: 0; }

.noscript-note {
  margin-top: 20px; padding: 16px;
  background: var(--amber-soft); border: 1px solid #FDE68A;
  border-radius: var(--radius-sm); font-size: 14px; color: #78350F;
}
.noscript-note a { color: #78350F; font-weight: 700; text-decoration: underline; }

/* ---------- Legal documents ---------- */
.legal { max-width: 76ch; padding-bottom: 96px; }
.legal .updated {
  font-family: 'JetBrains Mono', monospace; font-size: 12.5px; color: var(--muted);
  padding-bottom: 24px; margin-bottom: 32px; border-bottom: 1px solid var(--border);
}
.legal h2 {
  font-size: 22px; margin: 44px 0 14px;
  padding-top: 8px;
}
.legal h2:first-of-type { margin-top: 0; }
.legal h3 { font-size: 16.5px; margin: 26px 0 10px; }
.legal p, .legal li { font-size: 15px; line-height: 1.65; color: var(--ink-2); }
.legal ul, .legal ol { padding-left: 22px; margin: 0 0 16px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--blue); font-weight: 600; }
.legal .callout {
  background: var(--bg-soft); border-left: 3px solid var(--blue);
  border-radius: var(--radius-sm); padding: 18px 20px; margin: 0 0 24px;
}
.legal .callout p:last-child { margin-bottom: 0; }

/* ---------- Error page ---------- */
.error-page { padding: 140px 0 120px; text-align: center; }
.error-page .code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em;
  color: var(--muted); margin-bottom: 18px;
}
.error-page h1 { font-size: clamp(30px, 4vw, 44px); max-width: 24ch; margin: 0 auto 20px; }
.error-page p.lead { margin: 0 auto 32px; }
.error-page .btn-row { justify-content: center; }

/* ---------- Card icons ---------- */
.card-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  background: var(--blue-soft); color: var(--blue);
}
.card-icon svg { width: 22px; height: 22px; stroke-width: 1.8; }
.card-icon.green { background: var(--green-soft); color: var(--green); }
.card-icon.purple { background: var(--purple-soft); color: var(--purple); }
.card-icon.amber { background: var(--amber-soft); color: var(--amber); }

/* ---------- Hero screenshot frame ---------- */
.hero-split {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center;
}
@media (max-width: 920px) { .hero-split { grid-template-columns: 1fr; } }
.device-frame {
  background: var(--ink);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.device-frame::before {
  content: '';
  display: block;
  height: 32px;
  background: #1E293B;
  border-bottom: 1px solid #334155;
  background-image: radial-gradient(circle, #475569 5px, transparent 5px),
                    radial-gradient(circle, #475569 5px, transparent 5px),
                    radial-gradient(circle, #475569 5px, transparent 5px);
  background-size: 12px 12px;
  background-position: 14px center, 30px center, 46px center;
  background-repeat: no-repeat;
}
.device-frame img {
  display: block; width: 100%; height: auto;
}

/* ---------- Animation ---------- */
.fade-in { opacity: 0; transform: translateY(8px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.in { opacity: 1; transform: translateY(0); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-24px); transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal-left.in { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(24px); transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal-right.in { opacity: 1; transform: translateX(0); }

.stagger > * { opacity: 0; transform: translateY(16px); transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
.stagger.in > *:nth-child(1) { transition-delay: 0ms; }
.stagger.in > *:nth-child(2) { transition-delay: 80ms; }
.stagger.in > *:nth-child(3) { transition-delay: 160ms; }
.stagger.in > *:nth-child(4) { transition-delay: 240ms; }
.stagger.in > *:nth-child(5) { transition-delay: 320ms; }
.stagger.in > *:nth-child(6) { transition-delay: 400ms; }
.stagger.in > * { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right, .fade-in, .stagger > * { opacity: 1; transform: none; transition: none; }
}
