/* =====================================================================
   AuditArc — Design System
   Premium-feeling, system-stack typography, generous whitespace.
   ===================================================================== */

:root {
  /* Color */
  --primary: #0f172a;
  --primary-soft: #1e293b;
  --accent: #10b981;
  --accent-hover: #059669;
  --accent-soft: #d1fae5;
  --bg: #f8fafc;
  --bg-warm: #fefdf9;
  --card: #ffffff;
  --text: #0f172a;
  --text-soft: #475569;
  --muted: #64748b;
  --border: #e2e8f0;
  --border-soft: #f1f5f9;

  --critical: #dc2626;
  --high: #ea580c;
  --medium: #ca8a04;
  --low: #65a30d;
  --info: #0891b2;

  /* Type scale */
  --type-display: clamp(40px, 6vw, 64px);
  --type-h1: clamp(32px, 4.5vw, 48px);
  --type-h2: clamp(26px, 3.2vw, 36px);
  --type-h3: 20px;
  --type-body: 16px;
  --type-small: 14px;
  --type-micro: 12px;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-8: 48px;
  --space-10: 64px;
  --space-12: 96px;

  /* Radius */
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 4px 12px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 4px 6px rgba(15, 23, 42, 0.05), 0 16px 32px rgba(15, 23, 42, 0.08);

  /* Type stack */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", "JetBrains Mono", Consolas, "Liberation Mono", Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: var(--type-body);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { max-width: 100%; height: auto; display: block; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 120ms ease;
}
a:hover { color: var(--accent-hover); }

code { font-family: var(--font-mono); font-size: 0.92em; background: var(--border-soft); padding: 1px 6px; border-radius: 4px; }

/* Accessibility helpers */
.skip-to-main {
  position: absolute;
  top: -100px;
  left: 8px;
  background: var(--primary);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius);
  z-index: 999;
}
.skip-to-main:focus { top: 8px; color: #fff; }

/* =====================================================================
   Layout
   ===================================================================== */
.container { max-width: 1140px; margin: 0 auto; padding: 0 var(--space-5); }
.container-narrow { max-width: 720px; margin: 0 auto; padding: 0 var(--space-5); }
.container-prose { max-width: 760px; margin: 0 auto; padding: 0 var(--space-5); }

/* =====================================================================
   Header
   ===================================================================== */
.site-header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: var(--space-4) 0; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--primary);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--primary); }
.brand-mark { color: var(--primary); }
.brand-word { font-weight: 700; }

.primary-nav { display: flex; align-items: center; gap: var(--space-6); }
.primary-nav a {
  color: var(--text);
  font-size: var(--type-small);
  font-weight: 500;
  padding: var(--space-2) 0;
}
.primary-nav a:hover { color: var(--accent); }
.primary-nav .nav-cta {
  background: var(--accent);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-weight: 600;
}
.primary-nav .nav-cta:hover { background: var(--accent-hover); color: #fff; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; }

@media (max-width: 760px) {
  .primary-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: var(--space-5);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .primary-nav.open { display: flex; align-items: stretch; }
  .primary-nav a { padding: var(--space-3); border-bottom: 1px solid var(--border-soft); }
  .nav-toggle { display: block; }
}

/* =====================================================================
   Hero
   ===================================================================== */
.hero {
  padding: var(--space-8) 0 var(--space-8);
  background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, rgba(16, 185, 129, 0.08), transparent 60%);
  pointer-events: none;
}
.hero .container { position: relative; }

.hero h1 {
  font-size: var(--type-display);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 700;
  color: var(--primary);
  max-width: 920px;
  margin-bottom: var(--space-5);
}
.hero h1 em { font-style: normal; color: var(--accent); font-weight: 800; }
.hero .sub {
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.45;
  color: var(--text-soft);
  max-width: 700px;
  margin-bottom: var(--space-6);
}
.hero-cta { display: flex; gap: var(--space-3); flex-wrap: wrap; margin-bottom: var(--space-5); }
.hero-trust {
  color: var(--muted);
  font-size: var(--type-small);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.hero-trust::before { content: ""; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
}
.hero-stat .num { font-size: 28px; font-weight: 700; color: var(--primary); letter-spacing: -0.02em; }
.hero-stat .label { font-size: var(--type-micro); color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 4px; }

/* =====================================================================
   Buttons
   ===================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 14px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition: all 120ms ease;
  font-family: inherit;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 1px 2px rgba(16,185,129,0.3); }
.btn-primary:hover { background: var(--accent-hover); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(16,185,129,0.25); }
.btn-secondary { background: var(--primary); color: #fff; }
.btn-secondary:hover { background: var(--primary-soft); color: #fff; }
.btn-ghost { background: transparent; color: var(--primary); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--card); color: var(--primary); border-color: var(--text-soft); }
.btn-block { display: flex; width: 100%; }
.btn-small { padding: 8px 14px; font-size: var(--type-small); }
.btn-large { padding: 16px 28px; font-size: 16px; }

/* =====================================================================
   Sections
   ===================================================================== */
section { padding: var(--space-10) 0; }
section.compact { padding: var(--space-10) 0; }

.section-head { text-align: center; max-width: 720px; margin: 0 auto var(--space-8); }
.section-head .eyebrow {
  font-size: var(--type-micro);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: var(--space-3);
}
.section-head h2 {
  font-size: var(--type-h2);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--primary);
  margin-bottom: var(--space-4);
}
.section-head p { color: var(--text-soft); font-size: 18px; }

/* =====================================================================
   Wedges / value props
   ===================================================================== */
.wedges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-5);
}
.wedge {
  background: var(--card);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform 150ms ease, box-shadow 150ms ease;
}
.wedge:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.wedge .icon {
  width: 40px; height: 40px;
  background: var(--accent-soft);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  font-size: 22px;
  margin-bottom: var(--space-4);
}
.wedge h3 { font-size: var(--type-h3); color: var(--primary); margin-bottom: var(--space-2); letter-spacing: -0.01em; }
.wedge p { color: var(--text-soft); font-size: 15px; line-height: 1.6; }

/* =====================================================================
   Comparison table
   ===================================================================== */
.compare-wrapper { overflow-x: auto; border-radius: var(--radius-lg); background: var(--card); box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.compare { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare th, .compare td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border-soft); font-size: 15px; }
.compare thead th {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.compare tbody tr:hover { background: var(--bg); }
.compare td:first-child, .compare th:first-child { font-weight: 600; color: var(--primary); }
.compare .yes { color: var(--accent); font-weight: 600; }
.compare .no { color: var(--muted); }
.compare .highlight { background: var(--accent-soft); }

/* =====================================================================
   Pricing
   ===================================================================== */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-4); }
.pricing-grid.four { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.tier {
  background: var(--card);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  display: flex; flex-direction: column;
  position: relative;
  transition: all 150ms ease;
}
.tier:hover { box-shadow: var(--shadow); border-color: var(--text-soft); }
.tier.featured {
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 4px rgba(16,185,129,0.06), var(--shadow);
}
.tier .ribbon {
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--accent);
  color: #fff;
  padding: 4px 12px;
  font-size: var(--type-micro);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 999px;
}
.tier h3 { font-size: 18px; color: var(--primary); margin-bottom: var(--space-2); }
.tier .price-row { display: baseline; }
.tier .price { font-size: 36px; font-weight: 800; color: var(--primary); letter-spacing: -0.02em; line-height: 1; }
.tier .price .unit { font-size: 14px; color: var(--muted); font-weight: 500; margin-left: 4px; }
.tier .sla { color: var(--muted); font-size: var(--type-small); margin: var(--space-2) 0 var(--space-5); }
.tier ul { list-style: none; margin: 0 0 var(--space-6); font-size: var(--type-small); padding: 0; flex: 1; }
.tier li { padding: var(--space-2) 0; border-bottom: 1px solid var(--border-soft); position: relative; padding-left: 22px; color: var(--text-soft); }
.tier li:last-child { border-bottom: 0; }
.tier li::before { content: "✓"; position: absolute; left: 0; top: var(--space-2); color: var(--accent); font-weight: 700; }
.tier .btn { width: 100%; }

/* =====================================================================
   Guarantee callout
   ===================================================================== */
.guarantee {
  padding: var(--space-12) 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-soft) 100%);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.guarantee::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(16,185,129,0.15), transparent 50%);
  pointer-events: none;
}
.guarantee .container { position: relative; }
.guarantee h2 { color: #fff; margin-bottom: var(--space-4); font-size: var(--type-h2); }
.guarantee p { font-size: 19px; color: rgba(255,255,255,0.85); max-width: 640px; margin: 0 auto var(--space-6); }
.guarantee strong { color: var(--accent); font-weight: 700; }

/* =====================================================================
   How it works (process steps)
   ===================================================================== */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-5); counter-reset: step; }
.step {
  background: var(--card);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  position: relative;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -16px;
  left: 24px;
  background: var(--accent);
  color: #fff;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 14px;
}
.step h3 { margin: var(--space-3) 0 var(--space-2); font-size: 18px; color: var(--primary); }
.step p { color: var(--text-soft); font-size: 15px; }
.step .time-tag { display: inline-block; background: var(--accent-soft); color: var(--accent); font-size: var(--type-micro); padding: 2px 8px; border-radius: 999px; font-weight: 600; margin-top: var(--space-3); text-transform: uppercase; letter-spacing: 0.05em; }

/* =====================================================================
   FAQ
   ===================================================================== */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: var(--space-5) 0;
}
.faq-q {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  position: relative;
  padding-right: 40px;
  letter-spacing: -0.01em;
}
.faq-q::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  font-size: 22px;
  color: var(--muted);
  transition: transform 200ms ease;
}
.faq-item[open] .faq-q::after { transform: rotate(45deg); }
.faq-a { padding-top: var(--space-3); color: var(--text-soft); line-height: 1.7; }

/* =====================================================================
   Forms
   ===================================================================== */
.form-card {
  background: var(--card);
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.form-card label { display: block; margin-bottom: var(--space-5); font-size: var(--type-small); font-weight: 600; color: var(--primary); }
.form-card .req { color: var(--critical); }
.form-card input, .form-card textarea {
  display: block; width: 100%;
  padding: 12px 14px;
  margin-top: 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font: inherit;
  font-size: 15px;
  background: var(--card);
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.form-card input:focus, .form-card textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(16,185,129,0.15);
}
.form-card small { color: var(--muted); font-weight: 400; font-size: 13px; display: block; margin-top: 4px; }
.error-banner {
  background: #fef2f2;
  color: #991b1b;
  padding: 14px 18px;
  border-radius: var(--radius);
  margin-bottom: var(--space-5);
  border-left: 4px solid var(--critical);
  font-size: 15px;
}

/* =====================================================================
   Status / audit progress
   ===================================================================== */
.status-card { background: var(--card); padding: var(--space-8); border-radius: var(--radius-lg); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.status-label { font-size: var(--type-micro); text-transform: uppercase; color: var(--muted); letter-spacing: 0.08em; font-weight: 600; }
.status-value { font-size: 32px; font-weight: 700; color: var(--primary); margin: var(--space-2) 0 var(--space-5); letter-spacing: -0.02em; }
.status-value.status-delivered { color: var(--accent); }
.status-value.status-failed { color: var(--critical); }
.status-meta { font-size: var(--type-small); color: var(--text-soft); }
.status-meta > div { padding: 4px 0; }
.status-ready { margin-top: var(--space-5); display: flex; gap: var(--space-3); }

/* =====================================================================
   Admin
   ===================================================================== */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--space-4); margin-bottom: var(--space-8); }
.kpi { background: var(--card); padding: var(--space-5); border-radius: var(--radius-lg); border: 1px solid var(--border); }
.kpi-label { font-size: var(--type-micro); text-transform: uppercase; color: var(--muted); letter-spacing: 0.06em; }
.kpi-value { font-size: 28px; font-weight: 700; color: var(--primary); margin-top: 4px; letter-spacing: -0.02em; }
.kpi-danger { border-left: 4px solid var(--critical); }
.kpi-ok { border-left: 4px solid var(--accent); }

table.escalations { width: 100%; background: var(--card); border-radius: var(--radius-lg); overflow: hidden; }
table.escalations th, table.escalations td { padding: 12px; text-align: left; border-bottom: 1px solid var(--border-soft); font-size: var(--type-small); }
table.escalations th { background: var(--primary); color: #fff; font-size: var(--type-micro); text-transform: uppercase; letter-spacing: 0.05em; }
.pill { background: var(--bg); padding: 2px 8px; border-radius: 999px; font-size: var(--type-micro); }
.badge {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  font-size: var(--type-micro); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
}
.badge-p1 { background: #fee2e2; color: var(--critical); }
.badge-p2 { background: #fef9c3; color: var(--medium); }
.badge-p3 { background: #dbeafe; color: var(--info); }

/* =====================================================================
   Prose (legal, about, articles)
   ===================================================================== */
.prose { color: var(--text); line-height: 1.7; }
.prose h1 { font-size: var(--type-h1); margin-bottom: var(--space-4); color: var(--primary); letter-spacing: -0.02em; }
.prose h2 { font-size: 24px; margin: var(--space-8) 0 var(--space-4); color: var(--primary); letter-spacing: -0.01em; }
.prose h3 { font-size: 18px; margin: var(--space-6) 0 var(--space-3); color: var(--primary); }
.prose p { margin-bottom: var(--space-4); }
.prose ul, .prose ol { margin: var(--space-4) 0; padding-left: var(--space-6); }
.prose li { margin-bottom: var(--space-2); }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: var(--space-8) 0; }
.prose blockquote { border-left: 3px solid var(--accent); padding-left: var(--space-5); margin: var(--space-5) 0; color: var(--text-soft); font-style: italic; }
.prose code { font-size: 0.9em; }
.prose .meta { color: var(--muted); font-size: var(--type-small); margin-bottom: var(--space-6); }

/* =====================================================================
   Footer
   ===================================================================== */
.site-footer {
  margin-top: var(--space-12);
  padding: var(--space-10) 0 var(--space-6);
  background: var(--primary);
  color: rgba(255,255,255,0.85);
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-6);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand { color: #fff; }
.brand-footer { color: #fff; font-size: 18px; }
.brand-footer svg { color: #fff; }
.footer-tag { color: rgba(255,255,255,0.6); font-size: var(--type-small); margin-top: var(--space-3); }
.footer-col h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: var(--space-3); font-weight: 600; }
.footer-col a { color: rgba(255,255,255,0.75); font-size: var(--type-small); padding: 4px 0; display: block; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  padding-top: var(--space-6);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--space-3);
  color: rgba(255,255,255,0.5); font-size: var(--type-micro);
}
.footer-bottom a { color: rgba(255,255,255,0.65); }
.footer-bottom a:hover { color: var(--accent); }

@media (max-width: 720px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}

/* =====================================================================
   Cookie banner
   ===================================================================== */
.cookie-banner {
  position: fixed;
  bottom: var(--space-4);
  right: var(--space-4);
  max-width: 380px;
  background: var(--card);
  padding: var(--space-4);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  z-index: 99;
  display: flex; align-items: center; gap: var(--space-3);
}
.cookie-banner p { font-size: 13px; color: var(--text-soft); margin: 0; flex: 1; }

/* =====================================================================
   Misc
   ===================================================================== */
.text-center { text-align: center; }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-4 { margin-bottom: var(--space-4); }

.divider {
  height: 1px;
  background: var(--border);
  margin: var(--space-10) 0;
}

/* ============================== SECTION VARIANTS ============================== */
.section-card { background: var(--card); }
.cta-heading { font-size: var(--type-h2); margin-bottom: var(--space-3); color: var(--primary); }
.cta-subtext { font-size: 18px; color: var(--text-soft); margin-bottom: var(--space-6); }
.guarantee-note { margin-top: var(--space-4); font-size: 15px; color: var(--text-soft); }

/* ============================== FOOTER HEADINGS ============================== */
.footer-heading { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 12px; color: var(--text); }

/* ============================== BRAND LOGO ============================== */
.brand-logo { height: 40px; width: auto; display: block; max-width: 240px; object-fit: contain; }
.brand-footer img { height: 28px; width: auto; max-width: 180px; object-fit: contain; opacity: 0.8; }
.brand { display: flex; align-items: center; text-decoration: none; }
.hero-logo { display: block; max-width: 280px; width: 100%; height: auto; margin: 0 0 var(--space-5) 0; }
@media (max-width: 720px) { .hero-logo { max-width: 220px; } }

/* ============================== RISK CALCULATOR ============================== */
.risk-grid { display: grid; gap: 12px; max-width: 600px; margin: 0 auto; }
.risk-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: var(--bg); border-radius: 8px; }
.risk-item.total { background: var(--primary); color: #fff; border-radius: 8px; margin-top: 8px; }
.risk-label { font-size: 15px; }
.risk-val { font-size: 15px; font-weight: 600; white-space: nowrap; margin-left: 16px; }

/* ============================== DIMENSIONS GRID ============================== */
.dims-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.dim { padding: 12px 16px; background: var(--card); border: 1px solid var(--border); border-radius: 8px; font-size: 15px; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.dim-icon { font-size: 18px; }
.dim-more { background: var(--accent-soft); color: var(--accent-hover); border-color: var(--accent); font-weight: 600; justify-content: center; }

/* ============================== PRICING RECURRING ============================== */
.pricing-recurring { margin-top: var(--space-8); display: grid; gap: 16px; }
.tier-inline { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; }
.tier-inline h3 { margin: 0 0 4px; font-size: 18px; }
.tier-inline p { margin: 0; color: var(--text-soft); font-size: 15px; }

/* ============================== CHAT WIDGET ============================== */
.chat-fab { position: fixed; bottom: 24px; right: 24px; width: 56px; height: 56px; border-radius: 28px; background: var(--accent); color: #fff; border: none; cursor: pointer; box-shadow: 0 4px 16px rgba(0,0,0,0.2); z-index: 1000; display: flex; align-items: center; justify-content: center; transition: transform 0.15s; }
.chat-fab:hover { transform: scale(1.1); }
.chat-widget { position: fixed; bottom: 90px; right: 24px; width: 360px; max-height: 480px; z-index: 1001; }
.chat-window { background: var(--card); border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 8px 32px rgba(0,0,0,0.15); overflow: hidden; display: flex; flex-direction: column; max-height: 480px; }
.chat-header { background: var(--primary); color: #fff; padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 15px; }
.chat-header button { background: none; border: none; color: #fff; font-size: 22px; cursor: pointer; padding: 0; line-height: 1; }
.chat-body { flex: 1; overflow-y: auto; padding: 16px; max-height: 320px; }
.chat-msg { padding: 8px 12px; border-radius: 12px; margin-bottom: 8px; font-size: 14px; line-height: 1.5; max-width: 85%; }
.chat-msg.bot { background: var(--bg); color: var(--text); }
.chat-msg.user { background: var(--accent); color: #fff; margin-left: auto; }
.chat-quick-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chat-quick-btns button, .chat-link-btn { background: var(--bg); border: 1px solid var(--border); border-radius: 16px; padding: 6px 12px; font-size: 13px; cursor: pointer; color: var(--text); transition: background 0.1s; }
.chat-quick-btns button:hover, .chat-link-btn:hover { background: var(--accent-soft); border-color: var(--accent); }
.chat-input { display: flex; border-top: 1px solid var(--border); }
.chat-input input { flex: 1; padding: 12px 16px; border: none; font-size: 14px; outline: none; }
.chat-input button { padding: 12px 16px; background: var(--accent); color: #fff; border: none; cursor: pointer; font-weight: 600; font-size: 14px; }

@media (max-width: 720px) {
  section { padding: var(--space-8) 0; }
  .hero { padding: var(--space-6) 0; }
  .chat-widget { width: calc(100vw - 32px); right: 16px; bottom: 80px; }
  .tier-inline { flex-direction: column; text-align: center; }
  .risk-item { flex-direction: column; text-align: center; gap: 4px; }
  .risk-val { margin-left: 0; }
}
