/* Merchant Sentinel — Landing page styles */

:root {
  /* Base palette */
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-muted: #f1f5f9;
  --ink: #0b1220;         /* deep navy ink */
  --ink-2: #0f172a;       /* slate-900 */
  --ink-3: #1e293b;       /* slate-800 */
  --muted: #475569;       /* slate-600 */
  --muted-2: #64748b;     /* slate-500 */
  --line: #e2e8f0;        /* slate-200 */
  --line-soft: #eef2f7;

  /* Brand / accent (Zomp #38A693; rewritten by Tweaks) */
  --accent: #38A693;          /* Zomp */
  --accent-600: #228373;      /* Zomp darker */
  --accent-soft: #E1F8F2;     /* Zomp tint */
  --accent-ink: #07362E;      /* Zomp ink */

  /* Signal colors (stable across accent changes) */
  --critical: #b91c1c;
  --critical-soft: #fef2f2;
  --warn: #b45309;
  --warn-soft: #fffbeb;
  --ok: #047857;
  --ok-soft: #ecfdf5;

  /* Type */
  --font-sans: "Inter", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --font-display: "Inter", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Radii */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;

  /* Shadows — subtle, institutional */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 14px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 40px -20px rgba(15, 23, 42, 0.18), 0 8px 16px -12px rgba(15, 23, 42, 0.08);

  /* Rhythm */
  --gutter: clamp(20px, 4vw, 56px);
  --max: 1240px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
/* The `hidden` attribute must win over author display rules (.tiers, .scan-banner,
   .footnote… all set display, which otherwise overrides the UA [hidden] rule). */
[hidden] { display: none !important; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  letter-spacing: -0.02em;
  margin: 0;
  font-weight: 700;
}
h1 { font-size: clamp(40px, 5.6vw, 68px); line-height: 1.02; letter-spacing: -0.03em; }
h2 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.08; }
h3 { font-size: 20px; line-height: 1.3; letter-spacing: -0.01em; }
p { margin: 0; }

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

/* ========= Header ========= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  font-size: 16px;
}
.brand .logo-mark {
  width: auto;
  height: 40px;
}
.brand .logo-with-text {
  width: auto;
  height: 36px;
  display: block;
}
.brand .dim { color: var(--muted-2); font-weight: 500; }

.nav {
  display: flex; align-items: center; gap: 28px;
}
.nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}
.nav a:hover { color: var(--ink); }

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

/* ========= Buttons ========= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  transition: transform 0.08s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: #000; }
.btn-accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,0.2) inset, 0 1px 2px rgba(15,23,42,0.08);
}
.btn-accent:hover { background: var(--accent-600); }
.btn-ghost {
  background: transparent;
  color: var(--ink-2);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--ink); }
.btn-link { color: var(--muted); font-weight: 500; font-size: 14px; }
.btn-link:hover { color: var(--ink); }
.btn-lg { height: 52px; padding: 0 22px; font-size: 15px; }

/* ========= Generic tokens ========= */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-soft);
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 999px; background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}

.kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}

section { padding: clamp(72px, 9vw, 128px) 0; }
.section-head { max-width: 760px; margin-bottom: 48px; }
.pricing .section-head { max-width: 100%; }
.section-head h2 { margin-top: 14px; }
.section-head .lede { color: var(--muted); font-size: 18px; margin-top: 14px; max-width: 640px; }

.divider { height: 1px; background: var(--line); width: 100%; }

/* ========= Hero ========= */
.hero { padding-top: clamp(60px, 7vw, 96px); padding-bottom: clamp(72px, 9vw, 128px); position: relative; overflow: hidden; }
.hero .grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero h1 .line-2 { color: var(--muted); font-weight: 700; }
.hero .sub {
  margin-top: 22px;
  font-size: 19px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 560px;
}
.hero .scan-form {
  margin-top: 36px;
  display: flex;
  align-items: stretch;
  gap: 8px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  max-width: 520px;
}
.hero .scan-form input {
  flex: 1;
  border: 0;
  outline: 0;
  padding: 0 14px;
  height: 48px;
  font-size: 15px;
  color: var(--ink);
  background: transparent;
  font-family: var(--font-mono);
  letter-spacing: -0.01em;
}
.hero .scan-form input::placeholder { color: var(--muted-2); }
.hero .fineprint {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted-2);
}

.trust-row {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 12px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.trust-row .sep { width: 1px; height: 14px; background: var(--line); }

/* Risk surface visual container */
.riskboard {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background:
    linear-gradient(180deg, #fbfcfd 0%, #f4f6fa 100%);
  padding: 18px;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

/* ========= Problem section ========= */
.problem {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.problem .grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 28px;
}
.problem .card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
}
.problem .card .num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted-2);
  letter-spacing: 0.08em;
}
.problem .card h3 { margin-top: 14px; }
.problem .card p { color: var(--muted); margin-top: 10px; font-size: 15px; }

/* Case callout */
.case-callout {
  margin-top: 32px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--ink);
  border-radius: var(--r-md);
  background: #fff;
  padding: 24px 28px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
}
.case-callout .tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--critical);
  background: var(--critical-soft);
  padding: 4px 8px;
  border-radius: var(--r-xs);
}
.case-callout h4 { font-size: 16px; margin: 0; color: var(--ink); letter-spacing: -0.01em; }
.case-callout p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.case-callout .timeline {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted-2);
  display: flex; gap: 14px;
  white-space: nowrap;
}
.case-callout .timeline span b { color: var(--ink); font-weight: 600; }

/* ========= Pillars (5) ========= */
.pillars .pillar-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.pillar {
  padding: 32px 28px 36px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
  position: relative;
  min-height: 300px;
  display: flex;
  flex-direction: column;
}
.pillar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.pillar-icon {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.pillar-num {
  font-family: var(--font-display);
  font-size: 44px;
  line-height: 1;
  font-weight: 700;
  color: var(--line);
  letter-spacing: -0.04em;
  font-feature-settings: "tnum";
}
.pillar h3 { font-size: 22px; letter-spacing: -0.02em; }
.pillar p { color: var(--muted); margin-top: 12px; font-size: 14px; line-height: 1.55; }

/* ========= Industries ========= */
.industries {
  background: var(--ink);
  color: #e2e8f0;
}
.industries h2 { color: #fff; }
.industries .kicker { color: #94a3b8; }
.industries .section-head .lede { color: #94a3b8; }
.industries .grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: #1e293b;
  border: 1px solid #1e293b;
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-top: 40px;
}
.industries .cell {
  background: var(--ink);
  padding: 24px 22px;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.industries .cell .name {
  color: #fff;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.industries .cell .desc {
  color: #94a3b8;
  font-size: 13px;
  margin-top: 6px;
}
.industries .cell .risk-badge {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}
.risk-high { background: rgba(185, 28, 28, 0.18); color: #fca5a5; }
.risk-med  { background: rgba(180, 83, 9, 0.18); color: #fcd34d; }
.risk-low  { background: rgba(4, 120, 87, 0.2); color: #6ee7b7; }

/* ========= ROI ========= */
.roi-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  align-items: stretch;
}
.roi .stat {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  background: #fff;
}
.roi .stat .big {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
}
.roi .stat .cap {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 12px;
}
.roi .stat p { color: var(--muted); margin-top: 8px; font-size: 14px; }
.roi-lists {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 32px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  overflow: hidden;
}
.roi-col {
  padding: 32px;
}
.roi-col + .roi-col {
  border-left: 1px solid var(--line);
}
.roi-col-title {
  font-size: 15px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.01em;
  margin-bottom: 20px;
}
.roi .list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 14px;
}
.roi .list li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 15px; color: var(--ink-2);
}
.roi .list li .marker {
  width: 18px; height: 18px; flex: none; margin-top: 2px;
  color: var(--accent);
}

/* ========= Comparison table ========= */
.compare .table-wrap {
  margin-top: 32px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #fff;
}
.compare table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.compare thead th {
  text-align: left;
  font-weight: 600;
  color: var(--ink);
  padding: 20px 24px;
  background: var(--bg-soft);
  font-size: 13px;
  letter-spacing: 0.01em;
  border-bottom: 1px solid var(--line);
  vertical-align: bottom;
}
.compare thead th.ms {
  color: var(--accent-ink);
  background: var(--accent-soft);
  position: relative;
  font-weight: 700;
}
.compare thead th.ms::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0; height: 3px;
  background: var(--accent);
}
.compare tbody td:nth-child(2) { background: var(--accent-soft); }
.compare th small {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
  font-weight: 500;
}
.compare tbody td {
  padding: 18px 24px;
  border-top: 1px solid var(--line-soft);
  color: var(--ink-2);
  vertical-align: middle;
}
.compare tbody tr td:first-child { color: var(--muted); font-size: 14px; }
.compare .yes { color: var(--accent); }
.compare .no { color: var(--muted-2); }
.compare .no-feat { color: #e2e8f0; font-size: 13px; font-weight: 600; }
.compare .pill {
  display: inline-flex;
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  border-radius: 999px;
  background: var(--bg-muted);
  color: var(--muted);
}
.compare .pill.ms { background: var(--accent-soft); color: var(--accent-ink); }

/* ========= Pricing ========= */
.pricing { background: var(--bg-soft); }
.pricing .toggle-row {
  display: flex; align-items: center; gap: 14px;
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted);
}
.pricing .toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 4px;
}
.pricing .toggle button {
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  color: var(--muted);
}
.pricing .toggle button.active {
  background: var(--ink);
  color: #fff;
}
.pricing .tiers {
  display: grid;
  gap: 20px;
  margin-top: 40px;
  align-items: stretch;
}
.pricing .tiers--corporate { grid-template-columns: repeat(4, 1fr); }
.pricing .tiers--self { grid-template-columns: repeat(4, 1fr); }
.tier {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  min-height: 520px;
}
.tier.featured {
  border-color: var(--ink);
  box-shadow: var(--shadow-lg);
}
.tier .tag {
  position: absolute;
  top: -11px;
  left: 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--ink);
  color: #fff;
  padding: 4px 8px;
  border-radius: var(--r-xs);
}
.tier .tname {
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.tier .price {
  margin-top: 12px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.tier .price .amount {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
}
.tier .price .unit { color: var(--muted-2); font-size: 14px; }
.tier .tag-small {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}
.tier ul {
  list-style: none;
  padding: 0;
  margin: 28px 0 28px;
  display: flex; flex-direction: column; gap: 12px;
  border-top: 1px dashed var(--line);
  padding-top: 22px;
}
.tier ul li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 14px; color: var(--ink-2); line-height: 1.5;
}
.tier ul li svg { flex: none; width: 16px; height: 16px; color: var(--accent); margin-top: 3px; }
.tier .cta { margin-top: auto; }
.tier .cta .btn { width: 100%; }
.pricing .footnote {
  margin-top: 28px;
  padding: 18px 22px;
  border: 1px dashed var(--line);
  border-radius: var(--r-md);
  background: #fff;
  font-size: 13px;
  color: var(--muted);
  display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap;
}
.pricing .footnote b { color: var(--ink); font-weight: 600; }
.pricing-free-banner {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: var(--r-md);
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 14px;
}
.pricing-free-banner svg { flex: none; width: 18px; height: 18px; color: var(--accent); }
.pricing-free-banner b { font-weight: 700; }
.pricing .footnote-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.pricing .footnote-link:hover { color: var(--accent-600); }

/* ---- Audience gate (shown before user picks self_reviewer vs corporate) ---- */
.audience-gate {
  margin-top: 36px;
  padding: 36px 32px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}
.audience-gate .ag-head { text-align: center; }
.audience-gate .ag-head h3 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}
.audience-gate .ag-head p {
  margin: 8px auto 0;
  max-width: 540px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.audience-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 28px auto 0;
  max-width: 820px;
}
.audience-card {
  text-align: left;
  padding: 22px 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg-soft);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s, transform 0.15s;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--ink);
}
.audience-card:hover {
  border-color: var(--accent);
  background: #fff;
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}
.audience-card .ao-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}
.audience-card .ao-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}
.audience-card .ao-cta {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.audience-card .ao-cta svg { width: 14px; height: 14px; }

/* ---- Pay-by-scan banner (self_reviewer only, full-width row) ---- */
.scan-banner {
  margin-top: 36px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px 28px;
  display: grid;
  grid-template-columns: minmax(180px, auto) 1fr auto;
  gap: 28px;
  align-items: center;
}
.scan-banner .sb-name {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.scan-banner .sb-price {
  margin-top: 6px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.scan-banner .sb-amount {
  font-size: 36px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1;
}
.scan-banner .sb-unit { color: var(--muted-2); font-size: 14px; }
.scan-banner .sb-sub {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}
.scan-banner .sb-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
}
.scan-banner .sb-feat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.4;
}
.scan-banner .sb-feat svg {
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--accent);
}
.scan-banner .sb-cta .btn { white-space: nowrap; }

/* ========= FAQ ========= */
.faq .list {
  margin-top: 36px;
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 22px 4px;
}
.faq summary {
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer;
  font-size: 17px; font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-weight: 400;
  color: var(--muted-2);
  font-size: 22px;
  transition: transform 0.18s ease;
}
.faq details[open] summary::after { content: "–"; }
.faq details p {
  color: var(--muted);
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.6;
  max-width: 820px;
}

/* ========= Final CTA ========= */
.final-cta {
  background: var(--ink);
  color: #e2e8f0;
  text-align: left;
  border-top: 1px solid #1e293b;
}
.final-cta h2 { color: #fff; max-width: 720px; }
.final-cta .lede { color: #94a3b8; margin-top: 16px; font-size: 18px; max-width: 640px; }
.final-cta .actions { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.final-cta .btn-accent { background: var(--accent); }
.final-cta .btn-ghost-inv {
  background: transparent; color: #fff; border: 1px solid #334155;
}
.final-cta .btn-ghost-inv:hover { border-color: #fff; }

/* ========= Footer ========= */
.site-footer {
  background: #05080f;
  color: #94a3b8;
  padding: 56px 0 36px;
  font-size: 13px;
}
.site-footer .top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid #1e293b;
}
.site-footer h5 {
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 14px;
  font-weight: 600;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer ul a:hover { color: #fff; }
.site-footer .bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}
.site-footer .bottom .brand { color: #94a3b8; font-weight: 500; }
.site-footer .meta {
  display: flex; gap: 16px;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

/* ========= Tweaks panel ========= */
.tweaks-panel {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  width: 300px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: none;
}
.tweaks-panel.visible { display: block; }
.tweaks-panel .tp-head {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  background: var(--bg-soft);
}
.tweaks-panel .tp-title {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}
.tweaks-panel .tp-body { padding: 18px 16px; display: flex; flex-direction: column; gap: 18px; }
.tweaks-panel .tp-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}
.swatches { display: flex; gap: 8px; }
.swatch {
  flex: 1;
  height: 40px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  cursor: pointer;
  display: flex;
  align-items: flex-end;
  padding: 6px 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: #fff;
  letter-spacing: 0.04em;
  position: relative;
}
.swatch.active { outline: 2px solid var(--ink); outline-offset: 2px; }
.seg {
  display: flex;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.seg button {
  flex: 1;
  padding: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: #fff;
}
.seg button.active { background: var(--ink); color: #fff; }

/* ========= Visual breaks ========= */
.visual-break {
  padding: 72px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.visual-break .vb-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 36px;
}
.visual-break .vb-head .kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
  display: block;
  margin-bottom: 10px;
}
.visual-break .vb-head h3 {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
}
.visual-break .vb-foot {
  margin-top: 20px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-2);
  letter-spacing: 0.02em;
}

/* Evidence strip */
.evidence-strip { background: var(--bg-soft); }
.evidence-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.evidence-tile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.tile-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfd;
}
.tile-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
}
.tile-caption {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-2);
  letter-spacing: 0.02em;
  flex: 1;
}
.tile-ts {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted-2);
}
.tile-body {
  padding: 18px;
  min-height: 220px;
}
.ph-stripes {
  background-image: repeating-linear-gradient(
    45deg,
    #f1f5f9 0,
    #f1f5f9 10px,
    #e2e8f0 10px,
    #e2e8f0 20px
  );
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.ph-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  background: rgba(255,255,255,0.88);
  padding: 8px 12px;
  border-radius: var(--r-sm);
  max-width: 80%;
}
.ph-data { display: flex; flex-direction: column; gap: 8px; }
.ph-row {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-2);
  padding: 8px 10px;
  background: var(--bg-soft);
  border-radius: var(--r-sm);
  align-items: center;
}
.ph-row.dim { opacity: 0.5; }
.ph-row span:first-child { color: var(--muted-2); }
.ph-flag {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 7px;
  border-radius: 3px;
  font-weight: 600;
}
.ph-flag.ok { background: var(--ok-soft); color: var(--ok); }
.ph-flag.warn { background: var(--warn-soft); color: var(--warn); }
.ph-flag.crit { background: var(--critical-soft); color: var(--critical); }
.ph-citations { display: flex; flex-direction: column; gap: 10px; }
.ph-cite {
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.5;
  padding: 10px 12px;
  background: var(--bg-soft);
  border-left: 2px solid var(--accent);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.ph-cite b { color: var(--ink); font-weight: 600; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.02em; }
.ph-cite.dim { opacity: 0.55; }

/* Dashboard preview */
.dash-preview { background: #fff; }
.dash-frame {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  max-width: 1100px;
  margin: 0 auto;
}
.dash-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfd;
}
.dash-title { display: flex; align-items: center; gap: 8px; }
.dash-dot { width: 10px; height: 10px; border-radius: 50%; background: #ef4444; }
.dash-dot.y { background: #f59e0b; }
.dash-dot.g { background: #10b981; }
.dash-name {
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-2);
  letter-spacing: 0.02em;
}
.dash-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted-2);
  letter-spacing: 0.03em;
}
.dash-meta .sep { width: 1px; height: 10px; background: var(--line); }
.dash-body {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 360px;
}
.dash-side {
  border-right: 1px solid var(--line);
  padding: 16px 14px;
  background: #fbfcfd;
}
.dash-side-head {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--muted-2);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.dash-side-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-3);
  padding: 7px 10px;
  border-radius: var(--r-sm);
  margin-bottom: 2px;
}
.dash-side-row span:last-child { color: var(--muted); font-family: var(--font-mono); font-size: 11px; }
.dash-side-row.active { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.dash-side-row.active span:last-child { color: var(--accent-ink); }
.dash-main { padding: 6px 0; }
.dash-tablehead, .dash-trow {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.5fr 1.4fr;
  gap: 12px;
  padding: 12px 20px;
  align-items: center;
}
.dash-tablehead {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  border-bottom: 1px solid var(--line);
}
.dash-trow {
  font-size: 13px;
  color: var(--ink-3);
  border-bottom: 1px solid var(--line-soft);
}
.dash-trow:last-child { border-bottom: none; }
.dash-trow span:first-child {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink);
}
.dash-trow b { font-weight: 600; }
.dash-trow em { color: var(--muted-2); font-style: normal; font-family: var(--font-mono); font-size: 11px; }
.dash-trow.crit span:nth-child(2) b { color: var(--critical); }
.dash-trow.warn span:nth-child(2) b { color: var(--warn); }
.dash-trow.ok span:nth-child(2) b { color: var(--ok); }
.dash-trow span:last-child { color: var(--muted); font-size: 12px; }
.dash-trow.dim { opacity: 0.55; }

/* ========= Responsive ========= */
@media (max-width: 1024px) {
  .hero .grid { grid-template-columns: 1fr; gap: 48px; }
  .hero .riskboard { max-width: 560px; }
  .problem .grid3 { grid-template-columns: 1fr; }
  .pillars .pillar-grid { grid-template-columns: repeat(2, 1fr); }
  .industries .grid { grid-template-columns: repeat(2, 1fr); }
  .pricing .tiers--corporate { grid-template-columns: repeat(2, 1fr); }
  .pricing .tiers--self { grid-template-columns: repeat(2, 1fr); }
  .scan-banner { grid-template-columns: 1fr; gap: 18px; }
  .audience-options { grid-template-columns: 1fr; }
  .roi-stats { grid-template-columns: 1fr; }
  .roi-lists { grid-template-columns: 1fr; }
  .roi-col + .roi-col { border-left: none; border-top: 1px solid var(--line); }
  .site-footer .top { grid-template-columns: 1fr 1fr; }
  .case-callout { grid-template-columns: 1fr; gap: 12px; }
  .case-callout .timeline { flex-wrap: wrap; }
  .evidence-grid { grid-template-columns: 1fr; }
  .dash-body { grid-template-columns: 1fr; }
  .dash-side { border-right: none; border-bottom: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .nav { display: none; }
  .pillars .pillar-grid { grid-template-columns: 1fr; }
  .industries .grid { grid-template-columns: 1fr; }
  .trust-row { gap: 16px; }
  .trust-row .sep { display: none; }
  .pricing .tiers--corporate, .pricing .tiers--self { grid-template-columns: 1fr; }
  .scan-banner { padding: 20px 22px; }
  .scan-banner .sb-amount { font-size: 32px; }
  .pricing .toggle-row { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* Demo / contact form */
.demo-section { padding: 96px 0; }
.demo-form { max-width: 760px; margin: 32px auto 0; }
.demo-form .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.demo-form input, .demo-form textarea {
  width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-md);
  font: inherit; color: var(--ink); background: var(--bg-soft); margin-top: 16px;
}
.demo-form .form-grid input { margin-top: 0; }
.demo-form textarea { min-height: 160px; resize: vertical; }
.demo-form input:focus, .demo-form textarea:focus { outline: 2px solid var(--accent); border-color: transparent; }
.demo-form .form-actions { margin-top: 20px; text-align: center; }
#form-messages:empty { display: none; }
#form-messages .alert { padding: 12px 16px; border-radius: var(--r-md); margin-bottom: 16px; }
#form-messages .alert-success { background: var(--ok-soft); color: var(--ok); }
#form-messages .alert-error { background: var(--critical-soft); color: var(--critical); }
@media (max-width: 640px) { .demo-form .form-grid { grid-template-columns: 1fr; } }

/* ---- Generic content pages (footer/legal pages via page.blade.php) ---- */
.page-section { padding: 96px 0; }
.page-prose { max-width: 720px; margin-top: 8px; color: var(--ink-2); font-size: 16px; line-height: 1.7; }
.page-prose h3 { font-size: 20px; color: var(--ink); margin: 36px 0 12px; }
.page-prose h4 { font-size: 16px; color: var(--ink); margin: 24px 0 10px; }
.page-prose p { margin: 0 0 16px; }
.page-prose ul { margin: 0 0 16px; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.page-prose li { line-height: 1.6; }
.page-prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.page-prose a:hover { color: var(--accent-600); }
.page-prose .table-wrap {
  margin: 0 0 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow-x: auto;
  background: #fff;
}
.page-prose table { width: 100%; border-collapse: collapse; font-size: 14px; }
.page-prose thead th {
  text-align: left;
  font-weight: 600;
  color: var(--ink);
  background: var(--bg-soft);
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.page-prose tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.page-prose tbody tr:last-child td { border-bottom: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
