/* ============================================================
   Kodiac · shared.css · V1 Apple editorial · light theme
   ------------------------------------------------------------
   Class names match the existing HTML so all pages inherit the
   redesign without markup changes. Tokens are light-first; the
   four product identity colours are preserved.
   ============================================================ */

* { font-synthesis: none; }

:root {
  /* Surfaces */
  --bg:           #FBFBFD;      /* page background */
  --surface:      #FFFFFF;      /* card surface */
  --surface-2:    #F5F5F7;      /* secondary surface, soft grey section */
  --surface-3:    #EEEEF1;      /* tertiary, dividers as fill */
  --ink:          #1D1D1F;      /* primary text */
  --ink-2:        #515154;      /* secondary text */
  --ink-3:        #86868B;      /* tertiary text / labels */
  --ink-4:        #A1A1A6;      /* quaternary */

  /* For pages still referencing dark tokens, alias to the new light surfaces
     so nothing breaks. Existing inline styles using var(--text), var(--navy2),
     etc. will resolve to sensible light values. */
  --navy:         var(--bg);
  --navy2:        var(--surface-2);
  --navy3:        var(--surface-3);
  --navy4:        var(--surface-3);
  /* --white is used as a text colour in legacy markup (dark theme used white
     text on dark bg). On light theme we remap it to ink so existing inline
     color:var(--white) styles render as readable dark text. The actual white
     surface colour is exposed as --surface (already defined above). */
  --white:        var(--ink);
  --off:          var(--bg);
  --text:         var(--ink);
  --text-muted:   var(--ink-2);
  --text-dim:     var(--ink-3);
  --border:       rgba(0,0,0,0.08);
  --border-strong:rgba(0,0,0,0.14);
  --border-light: rgba(0,0,0,0.06);
  --gray:         var(--ink-3);
  --gray2:        var(--ink-4);

  /* Product identity colours (kept from strategy) */
  --audit-color:    #2563EB;
  --content-color:  #16A34A;
  --agent-color:    #7C3AED;
  --workspace-color:#D9803A;

  /* Legacy aliases used by existing pages */
  --blue:     #2563EB;
  --blue2:    #1D4ED8;
  --blue-l:   #2563EB;
  --blue-lt:  #EBF2FE;
  --teal:     #16A34A;
  --teal-l:   #16A34A;
  --teal-lt:  #E7F6EC;
  --purple:   #7C3AED;
  --purple-l: #7C3AED;
  --purple-lt:#F3EDFE;
  --orange:   #D9803A;
  --orange-l: #D9803A;

  /* Semantic */
  --amber:    #B45309;
  --green:    #16A34A;
  --red:      #B91C1C;

  /* Fonts — Inter for everything, the SF system fallback first so Apple
     devices use SF Pro before swapping to web Inter. */
  --font-display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --font-body:    -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }

/* ============================================================
   NAV
   ============================================================ */
nav.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px; height: 64px;
  background: rgba(251,251,253,0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0.5px solid var(--border);
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 500; font-size: 19px;
  color: var(--ink);
  letter-spacing: -0.015em;
}
.nav-logo span { color: var(--audit-color); }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a {
  color: var(--ink-2);
  font-size: 13px; font-weight: 400;
  padding: 6px 12px; border-radius: 6px;
  transition: color 0.15s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--ink); }

.nav-dropdown { position: relative; }
.nav-dropdown > a::after { content: ' \2193'; font-size: 10px; opacity: 0.5; margin-left: 2px; }

.dropdown-menu {
  visibility: hidden; opacity: 0;
  transition: opacity 0.12s ease, visibility 0s linear 0.12s;
  position: absolute; top: 100%; left: 0;
  padding-top: 8px;
  min-width: 280px;
  z-index: 200;
}
.dropdown-menu-inner {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  visibility: visible; opacity: 1;
  transition: opacity 0.12s ease;
}
.dropdown-menu a {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px !important;
  border-radius: 8px;
  font-size: 13px !important; font-weight: 500 !important;
  color: var(--ink) !important;
  border-left: none;
}
.dropdown-menu a .dd-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dropdown-menu a .dd-text { display: flex; flex-direction: column; gap: 1px; }
.dropdown-menu a .dd-text small { color: var(--ink-3); font-size: 11px; font-weight: 400; }

.dropdown-menu a.dd-audit .dd-dot     { background: var(--audit-color); }
.dropdown-menu a.dd-content .dd-dot   { background: var(--content-color); }
.dropdown-menu a.dd-agent .dd-dot     { background: var(--agent-color); }
.dropdown-menu a.dd-workspace .dd-dot { background: var(--workspace-color); }
.dropdown-menu a:hover { background: var(--surface-2); }

.nav-cta { display: flex; align-items: center; gap: 8px; }

.nav-burger { display: none; }
.nav-burger-label {
  display: none;
  cursor: pointer;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 4px;
  border-radius: 8px;
}
.nav-burger-label:hover { background: var(--surface-2); }
.nav-burger-label span {
  display: block; width: 22px; height: 1.5px;
  background: var(--ink); border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-drawer {
  display: flex; align-items: center;
  gap: 16px; flex: 1;
  justify-content: space-between;
  margin-left: 28px;
}

@media (max-width: 900px) {
  nav.site-nav { padding: 0 20px; height: 56px; }
  .nav-logo { font-size: 18px; }
  .nav-burger-label { display: flex; }
  .nav-drawer {
    display: flex; flex-direction: column;
    position: fixed; top: 56px; left: 0; right: 0;
    background: var(--surface);
    border-bottom: 0.5px solid var(--border);
    padding: 12px 0 16px;
    margin-left: 0;
    transform: translateY(-120%);
    visibility: hidden; pointer-events: none;
    transition: transform 0.25s ease, visibility 0s linear 0.25s;
    z-index: 90;
    max-height: calc(100vh - 56px);
    overflow-y: auto;
  }
  .nav-links { flex-direction: column; align-items: stretch; padding: 4px 20px; gap: 2px; }
  .nav-links a { font-size: 15px; padding: 12px; }
  .nav-links li { width: 100%; }
  .nav-cta { flex-direction: row; gap: 10px; padding: 16px 20px 4px; margin-top: 8px; border-top: 0.5px solid var(--border); }
  .nav-cta .btn { flex: 1; justify-content: center; padding: 11px 16px; }
  .nav-dropdown { width: 100%; }
  .nav-dropdown > a::after { float: right; }
  .dropdown-menu {
    position: static; visibility: visible; opacity: 1;
    padding-top: 0; padding-left: 10px;
    min-width: 0; transition: none;
  }
  .dropdown-menu-inner { background: transparent; border: none; padding: 0; box-shadow: none; }
  .dropdown-menu a { padding: 8px 10px !important; font-size: 13px !important; }
  .nav-burger:checked ~ .nav-drawer {
    transform: translateY(0); visibility: visible; pointer-events: auto;
    transition: transform 0.25s ease, visibility 0s linear 0s;
  }
  .nav-burger:checked ~ .nav-burger-label span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
  .nav-burger:checked ~ .nav-burger-label span:nth-child(2) { opacity: 0; }
  .nav-burger:checked ~ .nav-burger-label span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
}

/* ============================================================
   BUTTONS — Apple-style: pill rounding for primary, subtle elsewhere
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 18px; border-radius: 980px;
  font-family: var(--font-body);
  font-size: 13px; font-weight: 500;
  cursor: pointer; border: none;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--ink); color: var(--surface); }
.btn-primary:hover { background: #000; transform: translateY(-1px); }
.btn-outline {
  background: transparent; color: var(--ink);
  border: 0.5px solid var(--border-strong);
}
.btn-outline:hover { border-color: var(--ink); background: var(--surface-2); }
.btn-lg { padding: 13px 26px; font-size: 14px; }
.btn-sm { padding: 7px 14px; font-size: 12px; }

/* ============================================================
   SECTIONS — generous editorial whitespace
   ============================================================ */
section {
  padding: 96px 32px;
  max-width: 1100px;
  margin: 0 auto;
}
.section-full { max-width: 100%; padding-left: 0; padding-right: 0; }
.section-full .section-inner { padding: 96px 32px; max-width: 1100px; margin: 0 auto; }

/* Eyebrow label — smaller, lighter, no pill */
.label-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-display);
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--audit-color);
  background: transparent;
  border: none;
  padding: 0;
  margin-bottom: 18px;
}
.label-tag.teal    { color: var(--content-color); }
.label-tag.purple  { color: var(--agent-color); }
.label-tag.orange  { color: var(--workspace-color); }
.label-tag.amber   { color: var(--amber); }
.label-tag.white   { color: var(--ink); }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--ink);
  font-weight: 500;
  overflow-wrap: break-word;
  text-wrap: balance;
}

.hero-headline,
.d1 {
  font-size: clamp(38px, 5.4vw, 64px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.section-headline {
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 16px;
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.section-sub {
  font-size: 19px;
  color: var(--ink-2);
  font-weight: 400;
  line-height: 1.5;
  max-width: 680px;
}
.body-lg { font-size: 18px; color: var(--ink-2); line-height: 1.6; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: 16px;
  padding: 28px 32px;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: var(--border-strong); }

.card-blue   { border-top: 3px solid var(--audit-color); }
.card-teal   { border-top: 3px solid var(--content-color); }
.card-purple { border-top: 3px solid var(--agent-color); }
.card-orange { border-top: 3px solid var(--workspace-color); }

/* ============================================================
   PRODUCT TILE GRID
   ============================================================ */
.product-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 980px) { .product-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .product-grid-4 { grid-template-columns: 1fr; } }

.product-tile {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-top: 3px solid var(--audit-color);
  border-radius: 16px;
  padding: 28px;
  display: flex; flex-direction: column; gap: 12px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.product-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.product-tile.tile-blue   { border-top-color: var(--audit-color); }
.product-tile.tile-teal   { border-top-color: var(--content-color); }
.product-tile.tile-purple { border-top-color: var(--agent-color); }
.product-tile.tile-orange { border-top-color: var(--workspace-color); }

.product-tile h3 { font-size: 20px; font-weight: 500; letter-spacing: -0.015em; }
.product-tile .product-price {
  font-family: var(--font-display);
  font-size: 12px; font-weight: 500;
  color: var(--ink-3);
  letter-spacing: 0.02em;
}
.product-tile .product-desc { font-size: 14px; color: var(--ink-2); line-height: 1.55; }
.product-tile a.tile-link {
  margin-top: auto;
  font-size: 13px; font-weight: 500;
  color: var(--audit-color);
}
.product-tile a.tile-link:hover { text-decoration: underline; }

/* ============================================================
   THREE-LAYER VISUAL
   ============================================================ */
.three-layer {
  display: grid;
  grid-template-columns: 1fr 32px 1fr 32px 1fr;
  gap: 0;
  align-items: stretch;
  margin: 32px 0;
}
@media (max-width: 800px) {
  .three-layer { grid-template-columns: 1fr; gap: 12px; }
  .three-layer .layer-plus { display: none; }
}
.layer-card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: 14px;
  padding: 26px 22px;
  border-top: 3px solid var(--audit-color);
}
.layer-card h4 {
  font-size: 16px; font-weight: 500;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.layer-card .layer-num {
  font-family: var(--font-display);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--audit-color);
  margin-bottom: 8px;
}
.layer-card p { font-size: 13px; color: var(--ink-2); line-height: 1.55; }
.layer-card.l1 { border-top-color: var(--audit-color); }
.layer-card.l1 .layer-num { color: var(--audit-color); }
.layer-card.l2 { border-top-color: var(--content-color); }
.layer-card.l2 .layer-num { color: var(--content-color); }
.layer-card.l3 { border-top-color: var(--workspace-color); }
.layer-card.l3 .layer-num { color: var(--workspace-color); }
.layer-plus {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 22px; color: var(--ink-3); font-weight: 300;
}

/* ============================================================
   STATS
   ============================================================ */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 32px 0;
}
@media (max-width: 800px) { .stat-row { grid-template-columns: 1fr; } }
.stat {
  background: transparent;
  border: none;
  border-left: 2px solid var(--audit-color);
  border-radius: 0;
  padding: 4px 0 4px 18px;
}
.stat .stat-value {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.stat .stat-label {
  margin-top: 10px;
  font-size: 13px; font-weight: 400;
  color: var(--ink-2); line-height: 1.5;
}
.stat .stat-source {
  margin-top: 6px;
  font-size: 11px; color: var(--ink-3);
  letter-spacing: 0.02em;
}
.stat.amber  { border-left-color: var(--amber); }
.stat.green  { border-left-color: var(--content-color); }
.stat.purple { border-left-color: var(--agent-color); }

/* ============================================================
   CALLOUT
   ============================================================ */
.callout {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-left: 3px solid var(--workspace-color);
  border-radius: 12px;
  padding: 22px 26px;
  margin: 24px 0;
}
.callout h4 {
  font-size: 15px; font-weight: 500;
  margin-bottom: 6px; color: var(--ink);
}
.callout p { font-size: 14px; color: var(--ink-2); line-height: 1.6; }

/* ============================================================
   FEATURE LIST
   ============================================================ */
.feature-list { display: flex; flex-direction: column; gap: 18px; margin: 24px 0; }
.feature { display: grid; grid-template-columns: 22px 1fr; gap: 14px; align-items: start; }
.feature-icon {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(37,99,235,0.10);
  display: flex; align-items: center; justify-content: center;
  color: var(--audit-color);
  font-size: 11px; font-weight: 600;
  margin-top: 2px;
}
.feature h5 { font-size: 15px; font-weight: 500; color: var(--ink); margin-bottom: 4px; }
.feature p { font-size: 14px; color: var(--ink-2); line-height: 1.55; }

/* ============================================================
   COMPARISON TABLE
   ============================================================ */
.comparison-table {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin: 24px 0;
}
.comparison-table table { width: 100%; border-collapse: collapse; }
.comparison-table th {
  background: var(--surface-2);
  padding: 14px 18px; text-align: left;
  font-family: var(--font-display);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--ink-3);
  border-bottom: 0.5px solid var(--border);
}
.comparison-table td {
  padding: 14px 18px; font-size: 13px;
  border-bottom: 0.5px solid var(--border);
  color: var(--ink-2);
}
.comparison-table td:first-child { color: var(--ink); font-weight: 500; }
.comparison-table tr:last-child td { border-bottom: none; }

/* ============================================================
   HERO LARGE STAT
   ============================================================ */
.hero-stat-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: center;
  margin-top: 56px;
}
@media (max-width: 800px) { .hero-stat-grid { grid-template-columns: 1fr; gap: 32px; } }
.hero-stat-big {
  font-family: var(--font-display);
  font-size: clamp(72px, 11vw, 140px); font-weight: 500;
  line-height: 1; letter-spacing: -0.035em;
  color: var(--ink);
}

/* ============================================================
   PRICING
   ============================================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 32px 0;
}
@media (max-width: 1100px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .pricing-grid { grid-template-columns: 1fr; } }

.pricing-tile {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: 16px;
  padding: 26px 22px;
  display: flex; flex-direction: column; gap: 12px;
}
.pricing-tile.featured {
  border-color: var(--audit-color);
  border-width: 1.5px;
}
.pricing-tile h3 { font-size: 18px; font-weight: 500; letter-spacing: -0.015em; }
.pricing-tile .pricing-price {
  font-family: var(--font-display);
  font-size: 32px; font-weight: 500;
  line-height: 1; letter-spacing: -0.025em;
  color: var(--ink);
}
.pricing-tile .pricing-price small {
  font-size: 13px; color: var(--ink-3);
  font-weight: 400; letter-spacing: 0;
}
.pricing-tile .pricing-desc { font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.pricing-tile ul { list-style: none; display: flex; flex-direction: column; gap: 10px; margin: 12px 0; }
.pricing-tile li {
  font-size: 13px; color: var(--ink-2);
  display: flex; gap: 8px; align-items: start;
  line-height: 1.45;
}
.pricing-tile li::before {
  content: '\2713';
  color: var(--content-color);
  font-weight: 600; flex-shrink: 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer.site-footer {
  border-top: 0.5px solid var(--border);
  padding: 56px 32px 32px;
  margin-top: 96px;
  background: var(--bg);
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
@media (max-width: 1100px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

.footer-col h6 {
  font-family: var(--font-display);
  font-size: 12px; font-weight: 500;
  color: var(--ink);
  margin-bottom: 12px;
  letter-spacing: 0;
  text-transform: none;
}
.footer-col a {
  display: block;
  color: var(--ink-2);
  font-size: 13px;
  padding: 5px 0;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  padding-top: 24px;
  border-top: 0.5px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--ink-3);
}

/* ============================================================
   FORMS
   ============================================================ */
.form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-row label {
  font-family: var(--font-display);
  font-size: 12px; font-weight: 500;
  color: var(--ink-2);
}
.form-row input, .form-row select, .form-row textarea {
  background: var(--surface);
  border: 0.5px solid var(--border-strong);
  border-radius: 8px;
  padding: 11px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--audit-color);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}

/* ============================================================
   HERO BACKGROUND — gentle Apple-style fade, no glow
   ============================================================ */
.fade-up { opacity: 1; transform: none; transition: opacity 0.6s ease, transform 0.6s ease; }

.hero-glow {
  /* Was a coloured radial on the dark theme. On light, we keep the hook so
     pages don't break, but render nothing — Apple-style heroes don't need
     it. Pages that want a tinted band should use surface-2 instead. */
  display: none;
}

/* ============================================================
   Quote / pull-quote
   ============================================================ */
.pull-quote {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--ink);
  max-width: 760px;
  margin: 48px 0;
}

/* ============================================================
   Section variants — alternating surface, dark stinger
   ============================================================ */
.section-surface-2 {
  background: var(--surface-2);
  max-width: 100%;
  padding-left: 0; padding-right: 0;
}
.section-surface-2 > .section-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 96px 32px;
}
.section-dark {
  background: #1D1D1F;
  color: #F5F5F7;
  max-width: 100%;
  padding-left: 0; padding-right: 0;
}
.section-dark .section-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 112px 32px;
}
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: #F5F5F7; }
.section-dark .section-headline { color: #F5F5F7; }
.section-dark p { color: #A1A1A6; }
.section-dark .label-tag { color: var(--audit-color); }
.section-dark .btn-outline { color: #F5F5F7; border-color: rgba(255,255,255,0.2); }
.section-dark .btn-outline:hover { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.05); }
.section-dark .btn-primary { background: #F5F5F7; color: #1D1D1F; }
.section-dark .btn-primary:hover { background: #FFF; }

/* ============================================================
   MOBILE RESPONSIVE — body content
   ============================================================ */
@media (max-width: 1024px) {
  section { padding: 80px 28px; }
  .section-full .section-inner { padding: 80px 28px; }
  .section-surface-2 > .section-inner { padding: 80px 28px; }
  .section-dark .section-inner { padding: 96px 28px; }

  [style*="grid-template-columns:1fr 1fr 1fr"] { grid-template-columns: 1fr 1fr !important; }
  [style*="grid-template-columns:repeat(3,1fr)"] { grid-template-columns: 1fr 1fr !important; }
  [style*="padding-top:160px"] { padding-top: 110px !important; }
}

@media (max-width: 768px) {
  section { padding: 56px 20px; }
  .section-full .section-inner { padding: 56px 20px; }
  .section-surface-2 > .section-inner { padding: 56px 20px; }
  .section-dark .section-inner { padding: 72px 20px; }

  [style*="grid-template-columns:1fr 1fr"]:not([style*="grid-template-columns:1fr 1fr 1fr"]),
  [style*="grid-template-columns:1.05fr 1fr"],
  [style*="grid-template-columns:1fr 1.05fr"],
  [style*="grid-template-columns:1fr 1.1fr"],
  [style*="grid-template-columns:1.1fr 1fr"],
  [style*="grid-template-columns:1fr 1.2fr"],
  [style*="grid-template-columns:1.2fr 1fr"],
  [style*="grid-template-columns:1fr auto"],
  [style*="grid-template-columns:auto 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  [style*="grid-template-columns:1fr 1fr 1fr"],
  [style*="grid-template-columns:repeat(3,1fr)"] {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  [style*="grid-template-columns:repeat(4,1fr)"],
  [style*="grid-template-columns:repeat(5,1fr)"] {
    grid-template-columns: 1fr 1fr !important;
    gap: 14px !important;
  }
  [style*="grid-template-columns:140px 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  [style*="grid-template-columns:140px 1fr"] > div:first-child { justify-self: start; }

  [style*="padding-top:160px"] { padding-top: 88px !important; }
  [style*="padding:80px 48px"] { padding: 48px 20px !important; }
  [style*="padding:96px 48px"] { padding: 56px 20px !important; }
  [style*="padding:48px 56px"] { padding: 32px 24px !important; }
  [style*="padding:64px 48px"] { padding: 40px 20px !important; }
  [style*="padding:56px 48px"] { padding: 36px 20px !important; }

  .card { padding: 22px !important; }
  [style*="display:flex"][style*="gap:12px"] .btn-lg { width: 100%; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr 1fr !important; gap: 28px !important; }
  .footer-bottom { flex-direction: column; gap: 8px; align-items: flex-start; }
  .comparison-table { overflow-x: auto; }
  .comparison-table table { min-width: 600px; }
  .hero-stat-big { font-size: clamp(56px, 14vw, 88px) !important; }
  .hero-sub { font-size: 17px !important; }
  .d1, .hero-headline { font-size: clamp(32px, 8vw, 48px) !important; }
  .section-headline { font-size: clamp(24px, 6vw, 34px) !important; }
  /* Body copy mobile sizing — sub-paragraphs and pull-quotes scale down */
  .section-sub { font-size: 16px !important; line-height: 1.55 !important; }
  .pull-quote { font-size: clamp(19px, 4.6vw, 24px) !important; line-height: 1.35 !important; }
  /* Hero paragraph has inline font-size:21px — defeat it on mobile */
  p.section-sub[style*="font-size:21px"] { font-size: 16px !important; }
}

@media (max-width: 480px) {
  section { padding: 48px 16px; }
  .footer-grid { grid-template-columns: 1fr !important; }
  .nav-cta { flex-direction: column !important; }
  .nav-cta .btn { width: 100%; }
}

/* ============================================================
   Light theme overrides for inline-styled colour tokens
   Many pages use inline style="color:var(--text-muted)" etc.; the alias
   block at the top handles colour tokens. These rules catch a few inline
   patterns the dark theme baked in that don't translate visually.
   ============================================================ */

/* Sections that were navy2 (dark surface) should be the soft grey */
section[style*="background:var(--navy2)"],
section[style*="background:var(--navy)"],
section[style*="background:var(--navy3)"] {
  background: var(--surface-2) !important;
}

/* Inline white text in dark sections won't apply now; let it inherit
   from .section-dark / parent. Safe to leave as-is. */
