/* ============================================================
   HempOS — Design System
   Serious Texas hemp compliance SaaS.
   Deep pine green + black/white/gray. Hanken Grotesk + IBM Plex Mono.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  /* Brand — one cohesive green ramp (no clashing shades) */
  --pine:        #1a7048;   /* primary brand green */
  --pine-800:    #155a3a;
  --pine-700:    #1f8455;
  --pine-600:    #279a64;
  --emerald:     #1f9d5a;   /* functional "valid/approved" — same hue family */
  --emerald-ink: #0c6b3a;

  /* Neutrals (very slightly green-tinted) */
  --ink:         #0b110e;   /* near-black text */
  --ink-2:       #2a322d;
  --gray:        #5b635e;   /* secondary text */
  --gray-2:      #868e89;   /* muted */
  --line:        #e4e8e5;   /* borders */
  --line-2:      #eef1ef;
  --paper:       #f6f8f6;   /* page bg */
  --card:        #ffffff;
  --white:       #ffffff;

  /* Status */
  --ok:          #1f9d5a;
  --ok-bg:       #e7f6ed;
  --ok-ink:      #0c6b3a;
  --warn:        #b7791f;
  --warn-bg:     #fbf3e2;
  --warn-ink:    #8a5a0c;
  --danger:      #c2410c;
  --danger-bg:   #fcebe3;
  --danger-ink:  #9a3412;
  --neutral-bg:  #eef1ef;
  --info:        #2563a8;
  --info-bg:     #e7eef7;

  /* Type */
  --sans: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Radii / shadow */
  --r-sm: 7px;
  --r:    11px;
  --r-lg: 16px;
  --r-xl: 22px;
  --shadow-sm: 0 1px 2px rgba(11,17,14,.05), 0 1px 3px rgba(11,17,14,.04);
  --shadow:    0 2px 6px rgba(11,17,14,.06), 0 8px 24px rgba(11,17,14,.05);
  --shadow-lg: 0 12px 40px rgba(11,17,14,.12);

  --maxw: 1200px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 { margin: 0; font-weight: 700; letter-spacing: -0.02em; line-height: 1.08; color: var(--ink); }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

.mono { font-family: var(--mono); font-feature-settings: "tnum" 1; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--emerald-ink);
  font-weight: 500;
  margin-bottom: 18px;
}
.eyebrow.on-dark { color: #6fe0a3; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-weight: 600; font-size: 15.5px;
  padding: 13px 22px; border-radius: var(--r-sm);
  border: 1px solid transparent; line-height: 1; cursor: pointer;
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease, border-color .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--pine); color: #eafff3; }
.btn-primary:hover { background: var(--pine-700); box-shadow: 0 6px 18px rgba(15,46,34,.25); }
.btn-emerald { background: var(--emerald); color: #fff; }
.btn-emerald:hover { background: var(--emerald-ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: #fff; border-color: var(--gray-2); }
.btn-ghost.on-dark { color: #eafff3; border-color: rgba(255,255,255,.28); }
.btn-ghost.on-dark:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.55); }
.btn-light { background: #eafff3; color: var(--pine); }
.btn-light:hover { background: #fff; }
.btn-sm { padding: 9px 14px; font-size: 13.5px; }
.btn-lg { padding: 16px 28px; font-size: 17px; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Badges / pills ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: .01em; padding: 4px 10px; border-radius: 100px;
  background: var(--neutral-bg); color: var(--ink-2); white-space: nowrap;
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.ok      { background: var(--ok-bg);     color: var(--ok-ink); }
.badge.warn    { background: var(--warn-bg);   color: var(--warn-ink); }
.badge.danger  { background: var(--danger-bg); color: var(--danger-ink); }
.badge.info    { background: var(--info-bg);   color: var(--info); }
.badge.muted   { background: var(--neutral-bg);color: var(--gray); }

/* ---------- Cards ---------- */
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--shadow-sm);
}

/* ---------- Placeholder image ---------- */
.ph {
  position: relative; overflow: hidden; border-radius: var(--r);
  background-color: #eef1ef;
  background-image: repeating-linear-gradient(135deg,
    #e7ebe8 0 11px, #eef1ef 11px 22px);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
}
.ph span {
  font-family: var(--mono); font-size: 12px; color: var(--gray-2);
  letter-spacing: .04em; background: rgba(255,255,255,.78);
  padding: 5px 12px; border-radius: 100px; border: 1px solid var(--line);
}

/* ============================================================
   MARKETING — header & footer
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246,248,246,.82); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .bar { display: flex; align-items: center; gap: 30px; height: 70px; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav-links a {
  font-size: 15px; font-weight: 700; color: var(--ink-2);
  padding: 8px 13px; border-radius: var(--r-sm); transition: background .15s, color .15s; letter-spacing: -.01em;
}
.nav-links a:hover { background: #fff; color: var(--ink); }
.nav-links a.active { color: var(--pine); background: rgba(15,46,34,.06); }
.header-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* Logo */
.logo { display: inline-flex; align-items: center; }
.logo .logo-img { height: 38px; width: auto; display: block; }

.site-footer { background: var(--pine); color: #cfe7da; padding: 70px 0 36px; }
.site-footer .logo { background: #fff; padding: 9px 14px; border-radius: 10px; }
.site-footer .logo .logo-img { height: 34px; }
.site-footer a { color: #cfe7da; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid h5 { color: #fff; font-size: 13px; font-family: var(--mono); letter-spacing: .1em; text-transform: uppercase; font-weight: 500; margin-bottom: 16px; }
.footer-grid ul { display: flex; flex-direction: column; gap: 11px; font-size: 15px; }
.footer-bottom { margin-top: 50px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.14); display: flex; justify-content: space-between; gap: 20px; font-size: 13.5px; color: #9cc4ad; flex-wrap: wrap; }
.footer-disclaimer { font-size: 12.5px; color: #88b29c; max-width: 560px; line-height: 1.6; margin-top: 14px; }

/* Minimal footer for auth / standalone pages (signup, login, coa) */
.auth-foot { padding: 26px 22px 30px; text-align: center; border-top: 1px solid var(--line); background: #fff; }
.auth-foot-wrap { display: flex; justify-content: center; flex-wrap: wrap; gap: 22px; font-size: 13.5px; }
.auth-foot-wrap a { color: var(--gray); font-weight: 500; }
.auth-foot-wrap a:hover { color: var(--pine); }
.auth-foot-copy { color: var(--gray-2); font-size: 12px; margin-top: 12px; }

/* ──────────────────────────────────────────────────────────────────────
   Hamburger menu — animated, accessible, full-width drawer.
   ────────────────────────────────────────────────────────────────────── */
.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  background: transparent; border: 0; padding: 0; margin: 0;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  border-radius: 10px;
  transition: background-color .15s;
  position: relative; z-index: 1001;
}
.menu-toggle:hover { background: rgba(15,46,34,.06); }
.menu-toggle:active { background: rgba(15,46,34,.12); transform: scale(0.96); }
.menu-toggle .hamburger {
  display: block;
  width: 22px; height: 16px;
  margin: 14px auto;
  position: relative;
}
.menu-toggle .hamburger span {
  display: block;
  position: absolute; left: 0;
  width: 22px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s cubic-bezier(.4,.0,.2,1),
              top .25s cubic-bezier(.4,.0,.2,1),
              opacity .15s;
}
.menu-toggle .hamburger span:nth-child(1) { top: 0; }
.menu-toggle .hamburger span:nth-child(2) { top: 7px; }
.menu-toggle .hamburger span:nth-child(3) { top: 14px; }
.menu-toggle.is-active .hamburger span:nth-child(1) {
  top: 7px; transform: rotate(45deg);
}
.menu-toggle.is-active .hamburger span:nth-child(2) { opacity: 0; }
.menu-toggle.is-active .hamburger span:nth-child(3) {
  top: 7px; transform: rotate(-45deg);
}

@media (max-width: 920px) {
  .nav-links { display: none; }
  .header-cta .btn:not(.menu-toggle) { display: none; }
  .header-cta .btn.always { display: inline-flex; }
  .menu-toggle { display: inline-block; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Lock background scroll when drawer is open */
body.menu-open { overflow: hidden; }

/* ---------- utility ---------- */
.muted { color: var(--gray); }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; }
.lead { font-size: 19px; color: var(--gray); line-height: 1.6; }
.grid { display: grid; gap: 22px; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* Mobile nav drawer — slides down from the top with a backdrop fade */
.mobile-nav {
  position: fixed; top: 70px; left: 0; right: 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 36px rgba(15,46,34,.10);
  padding: 18px 22px 24px;
  display: flex; flex-direction: column; gap: 4px;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: transform .22s cubic-bezier(.4,.0,.2,1),
              opacity .18s, visibility 0s .22s;
  z-index: 1000;
  max-height: calc(100vh - 70px);
  overflow-y: auto;
}
.mobile-nav.open {
  transform: translateY(0); opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transition: transform .22s cubic-bezier(.4,.0,.2,1), opacity .18s, visibility 0s 0s;
}
.mobile-nav-links { display: flex; flex-direction: column; gap: 0; }
.mobile-nav a {
  display: flex; align-items: center;
  padding: 14px 6px; font-weight: 500; font-size: 16px;
  border-bottom: 1px solid var(--line-2);
  color: var(--ink); text-decoration: none;
  min-height: 48px;
  transition: color .15s, background .15s;
}
.mobile-nav a:active { background: rgba(31,157,90,.06); }
.mobile-nav a.active { color: var(--pine); font-weight: 700; }
.mobile-nav a.active::before {
  content: ""; display: inline-block;
  width: 4px; height: 18px; background: var(--pine);
  border-radius: 2px; margin-right: 12px;
}
.mobile-nav-actions {
  display: flex; flex-direction: column; gap: 10px;
  margin-top: 16px; padding-top: 16px;
  border-top: 1px solid var(--line-2);
}
.mobile-nav-actions .btn { width: 100%; min-height: 48px; font-size: 15px; }

/* Backdrop behind the drawer when open */
body.menu-open::before {
  content: "";
  position: fixed; inset: 70px 0 0 0;
  background: rgba(15,46,34,.34);
  z-index: 999;
  animation: fadeIn .18s ease-out;
}
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   MARKETING — sections
   ============================================================ */
/* Hero */
.hero { background:
    radial-gradient(120% 80% at 85% -10%, rgba(31,157,90,.10), transparent 55%),
    linear-gradient(180deg, #fff 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding: 84px 0 90px; }
.hero h1 { font-size: clamp(36px, 4.4vw, 58px); letter-spacing: -.035em; line-height: 1.04; }
.hero .lead { margin-top: 22px; max-width: 540px; font-size: 19.5px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 22px 30px; margin-top: 38px; font-size: 14px; color: var(--gray); }
.hero-trust .ti { display: flex; align-items: center; gap: 9px; }
.hero-trust .ti .tick { width: 18px; height: 18px; border-radius: 50%; background: var(--ok-bg); color: var(--ok-ink); display: grid; place-items: center; font-size: 11px; font-weight: 700; flex: none; }
.proof-links { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 22px; }
.proof-links a { display: inline-flex; align-items: center; gap: 7px; font-size: 14.5px; font-weight: 600; color: var(--pine); border-bottom: 1px solid transparent; padding-bottom: 1px; }
.proof-links a:hover { border-bottom-color: var(--pine); }
.stat-mini .sv { font-size: 19px; font-weight: 700; letter-spacing: -.01em; line-height: 1.1; }

/* Hero product card (mock app) */
.hero-visual { position: relative; }
.appcard { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.appcard .topbar { display: flex; align-items: center; gap: 8px; padding: 13px 16px; border-bottom: 1px solid var(--line); background: #fbfcfb; }
.appcard .topbar .dots { display: flex; gap: 6px; }
.appcard .topbar .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); display: block; }
.appcard .topbar .url { font-family: var(--mono); font-size: 12px; color: var(--gray-2); margin-left: 8px; }
.appcard .body { padding: 18px; }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat-mini { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px; }
.stat-mini .n { font-family: var(--mono); font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.stat-mini .l { font-size: 11.5px; color: var(--gray); margin-top: 2px; }

.float-chip { position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 11px 14px; display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; }
.float-chip .ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex: none; }

/* logos strip */
.logostrip { padding: 30px 0; border-bottom: 1px solid var(--line); }
.logostrip .row { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.logostrip .lbl { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--gray-2); }
.logostrip .item { font-weight: 700; font-size: 16px; color: var(--gray-2); letter-spacing: -.02em; }

/* Section heads */
.shead { max-width: 720px; }
.shead.center { margin: 0 auto; }
.shead h2 { font-size: clamp(28px, 3.3vw, 40px); letter-spacing: -.03em; }
.shead .lead { margin-top: 16px; }

/* Problem section (deep green, not black) */
.darkband { background: var(--pine-800); color: #e7ece9; }
.darkband h2, .darkband h3 { color: #fff; }
.problem-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); gap: 16px; margin-top: 44px; }
.problem-item { border: 1px solid rgba(255,255,255,.12); border-radius: var(--r); padding: 22px; background: rgba(255,255,255,.02); }
.problem-item .x { width: 26px; height: 26px; border-radius: 7px; background: rgba(194,65,12,.18); color: #f0a07a; display: grid; place-items: center; font-weight: 700; margin-bottom: 14px; }
.problem-item p { color: #b9c2bd; font-size: 15px; }
.problem-item h4 { color: #fff; font-size: 16px; margin-bottom: 6px; }

/* Solution flow */
.flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-top: 44px; }
.flow-step { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px 18px; position: relative; }
.flow-step .num { font-family: var(--mono); font-size: 12px; color: var(--emerald-ink); font-weight: 600; }
.flow-step h4 { font-size: 16.5px; margin-top: 10px; }
.flow-step p { font-size: 13.5px; color: var(--gray); margin-top: 6px; }

/* Audience cards */
.aud-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 48px; }
.aud-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s; display: flex; flex-direction: column; }
.aud-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cdd6d0; }
.aud-card .ic { width: 48px; height: 48px; border-radius: 12px; background: var(--pine); display: grid; place-items: center; margin-bottom: 18px; }
.aud-card h3 { font-size: 21px; }
.aud-card p { color: var(--gray); font-size: 15px; margin-top: 10px; }
.aud-card ul { margin-top: 16px; display: flex; flex-direction: column; gap: 9px; }
.aud-card ul li { font-size: 14.5px; padding-left: 22px; position: relative; color: var(--ink-2); }
.aud-card ul li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--emerald); }
.aud-card .go { margin-top: auto; padding-top: 20px; font-weight: 600; color: var(--pine); font-size: 14.5px; display: inline-flex; align-items: center; gap: 6px; }

/* Feature grid */
.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; margin-top: 48px; }
.feat { background: #fff; padding: 26px 22px; transition: background .15s; }
.feat:hover { background: #fbfdfb; }
.feat .ic { width: 38px; height: 38px; border-radius: 9px; background: var(--ok-bg); color: var(--emerald-ink); display: grid; place-items: center; margin-bottom: 14px; }
.feat h4 { font-size: 16px; }
.feat p { font-size: 13.5px; color: var(--gray); margin-top: 6px; line-height: 1.5; }

/* Licensed workflow band */
.lwf { background: linear-gradient(180deg, var(--pine) 0%, var(--pine-800) 100%); color: #d8eee2; overflow: hidden; }
.lwf h2 { color: #fff; }
.lwf .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.lwf .pill-list { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 26px; }
.lwf .pill-list span { font-family: var(--mono); font-size: 12.5px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); padding: 7px 13px; border-radius: 100px; color: #cdeede; }
.lwf .note { font-size: 13px; color: #8fbaa3; margin-top: 22px; max-width: 460px; }

/* big CTA */
.cta-band { padding: 88px 0; text-align: center; background:
   radial-gradient(100% 120% at 50% 0%, rgba(31,157,90,.08), transparent 60%); }
.cta-band h2 { font-size: clamp(30px,3.6vw,44px); }

/* money-punch row (on dark problem band) */
.punch { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 36px; }
.punch .p { border-top: 2px solid rgba(240,160,122,.5); padding-top: 18px; }
.punch .p strong { display: block; color: #fff; font-size: 20px; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; }
.punch .p span { color: #b9c2bd; font-size: 14px; }

/* why / centralize */
.why { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.scatter { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.scatter span { font-family: var(--mono); font-size: 13px; color: var(--gray); background: var(--paper); border: 1px solid var(--line); border-radius: 100px; padding: 7px 14px; text-decoration: line-through; text-decoration-color: var(--danger); }
.why-arrow { display: flex; align-items: center; justify-content: center; color: var(--emerald); margin: 26px 0; }
.why-result { background: var(--pine); color: #eafff3; border-radius: var(--r-lg); padding: 28px 32px; display: flex; align-items: center; gap: 18px; }
.why-result .ic { width: 50px; height: 50px; border-radius: 13px; background: rgba(255,255,255,.12); display: grid; place-items: center; flex: none; }

/* inspection section */
.insp-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 28px; align-items: stretch; margin-top: 44px; }
.insp-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow-sm); }
.insp-card h3 { font-size: 18px; display: flex; align-items: center; gap: 10px; }
.insp-card .tagline { color: var(--gray); font-size: 13.5px; margin-top: 4px; }
.insp-list { margin-top: 18px; display: flex; flex-direction: column; gap: 12px; }
.insp-list li { display: flex; align-items: center; gap: 11px; font-size: 15px; color: var(--ink-2); }
.insp-list li .ck { width: 22px; height: 22px; border-radius: 6px; background: var(--ok-bg); color: var(--ok-ink); display: grid; place-items: center; flex: none; }
.insp-steps { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.insp-step { display: flex; align-items: center; gap: 13px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.insp-step .num { width: 26px; height: 26px; border-radius: 50%; background: var(--pine); color: #eafff3; display: grid; place-items: center; font-family: var(--mono); font-size: 12px; font-weight: 600; flex: none; }
.insp-step.done { background: var(--ok-bg); border-color: #bfe6cd; }
.insp-arrow { display: grid; place-items: center; color: var(--gray-2); }
.insp-seal { width: 122px; height: 122px; flex: none; }

@media (max-width: 880px) {
  .punch { grid-template-columns: 1fr; gap: 14px; }
  .insp-grid { grid-template-columns: 1fr; }
  .insp-arrow { transform: rotate(90deg); }
}

/* steps / how it works numbered */
.kpis { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; margin-top: 40px; }
.kpi .n { font-family: var(--mono); font-size: clamp(30px,4vw,46px); font-weight: 600; color: var(--pine); letter-spacing: -.03em; }
.kpi .l { color: var(--gray); font-size: 14.5px; margin-top: 4px; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; padding: 56px 0 64px; }
  .hero-visual { order: 2; }
  .aud-grid { grid-template-columns: 1fr; }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .lwf .grid2 { grid-template-columns: 1fr; gap: 36px; }
  .kpis { grid-template-columns: repeat(2,1fr); }
  .section { padding: 64px 0; }
}
@media (max-width: 560px) {
  .feat-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(3,1fr); }
  .wrap { padding: 0 18px; }
}

/* ============================================================
   INNER PAGES
   ============================================================ */
.page-hero { background: linear-gradient(180deg,#fff,var(--paper)); border-bottom: 1px solid var(--line); padding: 70px 0 60px; }
.page-hero .eyebrow { margin-bottom: 14px; }
.page-hero h1 { font-size: clamp(32px,4vw,50px); max-width: 760px; }
.page-hero .lead { margin-top: 18px; max-width: 620px; }
.page-hero .hero-actions { margin-top: 28px; }

/* split feature rows */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.flip .split-media { order: -1; }
.split-media .ph { width: 100%; aspect-ratio: 4/3; }
.included { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; margin-top: 24px; }
.included li { display: flex; gap: 11px; align-items: flex-start; font-size: 15px; color: var(--ink-2); }
.included li .ck { color: var(--emerald); flex: none; margin-top: 1px; }

/* pricing */
.price-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 40px; align-items: stretch; max-width: 1100px; margin-left: auto; margin-right: auto; }
.price-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px; display: flex; flex-direction: column; position: relative; }
.price-card.feature { border: 1.5px solid var(--pine); box-shadow: var(--shadow); }
.price-card .ribbon { position: absolute; top: -12px; left: 30px; background: var(--pine); color: #eafff3; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 5px 12px; border-radius: 100px; }
.price-card h3 { font-size: 21px; line-height: 1.22; }
.price-card .who { color: var(--gray); font-size: 14.5px; margin-top: 6px; min-height: 42px; }
.price-card .price { font-family: var(--mono); font-size: 36px; font-weight: 600; letter-spacing: -.03em; margin-top: 16px; color: var(--ink); }
.price-card .price small { font-size: 15px; color: var(--gray); font-weight: 400; letter-spacing: 0; }
.price-card .setup { font-size: 13px; color: var(--gray-2); font-family: var(--mono); margin-top: 2px; }
.price-card .inc { margin-top: 22px; display: flex; flex-direction: column; gap: 11px; }
.price-card .inc li { display: flex; gap: 10px; font-size: 14.5px; align-items: flex-start; color: var(--ink-2); }
.price-card .inc li .ck { color: var(--emerald); flex: none; margin-top: 1px; }
.price-card .btn { margin-top: 26px; }
.price-card .foot { margin-top: auto; }
.cleanup-band { margin-top: 24px; }
.cleanup-band .card { display: flex; gap: 24px; align-items: center; padding: 28px 32px; flex-wrap: wrap; }
.cleanup-band .price { font-family: var(--mono); font-size: 30px; font-weight: 600; color: var(--pine); }

/* pricing: every-plan-includes + toggle + outcomes + cost compare */
.plan-includes { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; margin-top: 26px; }
.plan-includes span { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: var(--ink-2); font-weight: 500; }
.plan-includes span .ck { color: var(--emerald); }
.bill-toggle { display: inline-flex; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 100px; padding: 4px; margin-top: 26px; }
.bill-toggle button { border: 0; background: transparent; font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--gray); padding: 9px 18px; border-radius: 100px; cursor: pointer; transition: all .15s; }
.bill-toggle button.active { background: var(--pine); color: #eafff3; }
.bill-toggle .save { font-size: 11px; color: var(--emerald-ink); font-family: var(--mono); margin-left: 4px; }
.bill-toggle button.active .save { color: #9be8bd; }
.price-card .solves-label, .price-card .inc-label { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--gray-2); margin: 22px 0 12px; }
.price-card .billed { font-size: 12px; color: var(--gray-2); font-family: var(--mono); margin-top: 2px; min-height: 16px; }
.price-card .solves { display: flex; flex-direction: column; gap: 10px; }
.price-card .solves li { display: flex; gap: 10px; font-size: 14px; align-items: flex-start; color: var(--ink-2); }
.price-card .solves li .ck { color: var(--pine); flex: none; margin-top: 1px; }
.inc-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.inc-tags span { font-size: 12px; color: var(--gray); background: var(--paper); border: 1px solid var(--line); border-radius: 100px; padding: 5px 11px; }

.sample-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 30px; }
.sample-links a { display: inline-flex; align-items: center; gap: 9px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 18px; font-weight: 600; font-size: 14.5px; color: var(--pine); transition: border-color .15s, box-shadow .15s; }
.sample-links a:hover { border-color: var(--pine-600); box-shadow: var(--shadow-sm); }

.cost-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 44px; }
.cost-col { border-radius: var(--r-lg); padding: 28px; border: 1px solid var(--line); }
.cost-col.without { background: #fff; }
.cost-col.with { background: var(--pine); color: #d8eee2; border-color: var(--pine); }
.cost-col h3 { font-size: 18px; display: flex; align-items: center; gap: 10px; }
.cost-col.with h3 { color: #fff; }
.cost-col ul { margin-top: 18px; display: flex; flex-direction: column; gap: 12px; }
.cost-col li { display: flex; gap: 11px; align-items: flex-start; font-size: 15px; }
.cost-col.without li { color: var(--gray); }
.cost-col.without li .ic { color: var(--danger); flex: none; }
.cost-col.with li { color: #e7f6ed; }
.cost-col.with li .ic { color: #6fe0a3; flex: none; }
@media (max-width: 720px){ .cost-compare { grid-template-columns: 1fr; } }

/* example audit packet (zip) card */
.packet { background:#fff; border:1px solid var(--line); border-radius:var(--r-lg); box-shadow:var(--shadow); overflow:hidden; width:100%; max-width:430px; }
.packet .ptop { display:flex; align-items:center; gap:12px; padding:15px 20px; background:var(--pine); color:#eafff3; }
.packet .ptop .fi { flex:none; }
.packet .ptop .nm { font-family:var(--mono); font-size:14px; font-weight:600; }
.packet .ptop .zip { margin-left:auto; font-family:var(--mono); font-size:11px; color:#9be8bd; }
.packet ul { padding:6px 0; }
.packet li { display:flex; align-items:center; gap:12px; padding:11px 20px; font-size:14.5px; color:var(--ink-2); border-bottom:1px solid var(--line-2); }
.packet li:last-child { border-bottom:0; }
.packet li .fi { color:var(--emerald-ink); flex:none; }
.packet li .ct { margin-left:auto; font-family:var(--mono); font-size:12px; color:var(--gray-2); }

/* manufacturing: capability grid, process chain, facilities */
.cap-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; margin-top:44px; }
.cap { background:#fff; border:1px solid var(--line); border-radius:var(--r-lg); padding:26px; transition:transform .18s, box-shadow .18s, border-color .18s; }
.cap:hover { transform:translateY(-4px); box-shadow:var(--shadow); border-color:#cdd6d0; }
.cap .ic { width:44px; height:44px; border-radius:11px; background:var(--pine); color:#eafff3; display:grid; place-items:center; margin-bottom:16px; }
.cap h3 { font-size:18px; }
.cap p { color:var(--gray); font-size:14px; margin-top:8px; line-height:1.55; }

.chain { display:flex; align-items:stretch; gap:0; margin-top:40px; flex-wrap:wrap; }
.chain .node { flex:1; min-width:150px; background:#fff; border:1px solid var(--line); border-radius:var(--r); padding:18px 16px; text-align:center; position:relative; }
.chain .node .step { font-family:var(--mono); font-size:11px; color:var(--emerald-ink); font-weight:600; }
.chain .node .lbl { font-weight:600; font-size:14.5px; margin-top:6px; letter-spacing:-.01em; }
.chain .arr { display:grid; place-items:center; color:var(--gray-2); padding:0 4px; flex:none; }
@media (max-width:900px){ .chain { flex-direction:column; } .chain .arr { transform:rotate(90deg); padding:6px 0; } }

.fac-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin-top:40px; }
.fac { display:flex; align-items:center; gap:12px; background:#fff; border:1px solid var(--line); border-radius:var(--r); padding:18px 20px; font-weight:600; font-size:15.5px; }
.fac .ic { width:38px; height:38px; border-radius:9px; background:var(--ok-bg); color:var(--emerald-ink); display:grid; place-items:center; flex:none; }
@media (max-width:880px){ .cap-grid{grid-template-columns:1fr;} .fac-grid{grid-template-columns:1fr;} }

/* custom pricing callout */
.quote-band { background: linear-gradient(180deg,var(--pine),var(--pine-800)); color:#d8eee2; border-radius:var(--r-xl); padding:46px; text-align:center; }
.quote-band h2 { color:#fff; }
.quote-band .qprice { font-family:var(--mono); font-size:clamp(26px,3vw,34px); font-weight:600; color:#fff; margin-top:14px; letter-spacing:-.02em; }
.quote-band .qsub { color:#9cc4ad; font-size:14.5px; margin-top:8px; }

/* compare table */
.compare { width: 100%; border-collapse: collapse; margin-top: 40px; background:#fff; border:1px solid var(--line); border-radius: var(--r); overflow:hidden; }
.compare th, .compare td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line-2); font-size: 14.5px; }
.compare th { background: #fbfcfb; font-family: var(--mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--gray); font-weight: 500; }
.compare td.c { text-align: center; }
.compare .yes { color: var(--emerald-ink); }
.compare .no { color: var(--gray-2); }

/* faq */
.faq { max-width: 760px; margin: 40px auto 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 4px; }
.faq summary { font-weight: 600; font-size: 17px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--gray); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--gray); margin-top: 12px; font-size: 15.5px; }
.faq .faq-group { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--emerald-ink); margin: 32px 0 4px; }
.faq .faq-group:first-child { margin-top: 0; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.field .hint { font-size: 12.5px; color: var(--gray-2); }
.input, .select, .textarea {
  width: 100%; font-family: var(--sans); font-size: 15px; color: var(--ink);
  padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: #fff; transition: border-color .15s, box-shadow .15s;
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--pine-600); box-shadow: 0 0 0 3px rgba(31,157,90,.14); }
.textarea { resize: vertical; min-height: 92px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* auth */
.auth-wrap { min-height: calc(100vh - 70px); display: grid; grid-template-columns: 1fr 1fr; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 40px; }
.auth-form .inner { width: 100%; max-width: 400px; }
.auth-side { background: linear-gradient(180deg,var(--pine),var(--pine-800)); color: #cdeede; padding: 56px; display: flex; flex-direction: column; justify-content: center; }
.auth-side h2 { color:#fff; font-size: 30px; }
.auth-side .quote { font-size: 19px; line-height: 1.5; color: #e7f6ed; }
.auth-side .who { margin-top: 18px; font-size: 14px; color: #9cc4ad; }
.checkrow { display:flex; align-items:center; gap:9px; font-size:14px; color:var(--ink-2); }

@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split.flip .split-media { order: 0; }
  .price-grid { grid-template-columns: 1fr; }
  .included { grid-template-columns: 1fr; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .field-row { grid-template-columns: 1fr; }
}
@media (min-width: 561px) and (max-width: 1080px) {
  .price-grid { grid-template-columns: repeat(2,1fr); }
}

/* ──────────────────────────────────────────────────────────────────────
   Mobile auth chrome — login / signup / reset-password / verify-email.
   Native-app feel on phones: minimal chrome, single CTA per surface.
   Theme stays consistent with the desktop pine-green palette.
   ────────────────────────────────────────────────────────────────────── */
.auth-form .inner h1 { line-height: 1.2; }
.team-access-row,
.auth-helper-row { font-size: 12.5px; color: var(--gray-2); margin-top: 10px; text-align: center; }
.team-access-row a,
.auth-helper-row a { color: var(--pine); font-weight: 600; }

/* Phone breakpoint — applies to ALL phones in portrait and landscape.
   The dark sidebar already hides below 880px (existing rule); these rules
   complete the native-app feel on actual phone screens. */
@media (max-width: 760px) {
  .auth-wrap { min-height: 100dvh; min-height: 100vh; }   /* dvh handles iOS URL bar */
  .auth-form {
    padding: 22px 18px 26px;
    align-items: flex-start;
    justify-content: flex-start;
  }
  .auth-form .inner { max-width: 100%; }
  .auth-form .inner > .logo { margin-bottom: 20px !important; }
  .auth-form .inner > .logo .logo-img { height: 36px; }
  .auth-form .inner h1 { font-size: 22px !important; margin-bottom: 4px; }
  .auth-form .inner > p.muted { font-size: 13.5px !important; }
  .btn, .btn-lg {
    padding: 13px 18px;
    font-size: 15px;
    min-height: 48px;
    border-radius: 10px;
  }
  .input {
    min-height: 48px;
    font-size: 16px;            /* 16px prevents iOS zoom on focus */
    padding: 12px 14px;
    border-radius: 10px;
  }
  .field { margin-bottom: 14px; }
  .field label { font-size: 13.5px; }
  .checkrow { font-size: 13.5px; }
  .divider { margin: 0; }

  /* Footer — on phones, the auth form already has "Back to site" + "Join the
     team" links inline. Hide the wide footer nav entirely; keep only the
     copyright as a single, tiny centered line at the very bottom. App feel. */
  .auth-foot { padding: 14px 16px 22px; border-top: 0; background: transparent; }
  .auth-foot-wrap { display: none; }
  .auth-foot-copy { font-size: 11px; margin-top: 0; color: var(--gray-2); text-align: center; }
  .team-access-row { display: none; }
  .auth-helper-row.optional-on-mobile { display: none; }
}

/* Tiny phones */
@media (max-width: 380px) {
  .auth-form { padding: 18px 14px 22px; }
  .auth-form .inner h1 { font-size: 20px !important; }
  .auth-foot-wrap { gap: 0 10px; font-size: 12px; }
}

/* Standalone PWA: respect iOS notch + Android gesture bar */
@supports (padding: max(0px)) {
  body.standalone .auth-form { padding-top: max(22px, env(safe-area-inset-top) + 14px); }
  body.standalone .auth-foot { padding-bottom: max(22px, env(safe-area-inset-bottom) + 12px); }
}

/* When wrapped in a native shell, hide the auth-foot links — the native
   app provides its own nav chrome. Keep the copyright only. */
body.native-capacitor .auth-foot-wrap,
body.native-cordova   .auth-foot-wrap { display: none; }

/* Personality layer removed — was breaking /login layout. Will reintroduce
   piecemeal AFTER customer-portal smoke test passes. */

/* ============================================================
   NARROW-MOBILE FIXES — H1 overflow + header bar fit
   ============================================================ */
html, body { overflow-x: hidden; max-width: 100vw; }
h1, h2, h3 { overflow-wrap: anywhere; word-break: normal; }

@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .site-header .bar { gap: 12px; height: 60px; }
  .header-cta { gap: 6px; margin-left: auto; }
  .header-cta .btn { padding: 8px 12px; font-size: 13px; }
  .menu-toggle { flex-shrink: 0; }
  .logo-img { max-height: 26px; }
  .eyebrow { letter-spacing: .08em; word-spacing: -.04em; }

  .hero { padding-top: 28px; }
  .hero h1 { font-size: clamp(22px, 6.4vw, 30px); line-height: 1.15; max-width: 100%; }
  .page-hero { padding: 40px 0 28px; }
  .page-hero h1 { font-size: clamp(22px, 6vw, 28px); line-height: 1.18; max-width: 100%; }
  .pricing-hero h1 { font-size: 24px !important; line-height: 1.22; max-width: 100% !important; }
  .pay-hero h1 { font-size: 24px !important; line-height: 1.22; }
  .hero .lead, .page-hero .lead, .pricing-hero .lead, .pay-hero .lead { font-size: 14.5px; max-width: 100%; }
  .pricing-hero .trust-row { font-size: 12.5px; gap: 10px; }
}

@media (max-width: 420px) {
  .site-header .bar { gap: 8px; }
  .header-cta { gap: 4px; }
  .header-cta .btn { padding: 7px 9px; font-size: 12.5px; }
  .menu-toggle { width: 40px; height: 40px; }
  .logo-img { max-height: 24px; }
}


/* ═══════════════════════════════════════════════════════════════════════
 * Mobile stack rules (2026-06-01) — every multi-column grid collapses to
 * a single column under 720px. Catches both named classes AND inline
 * grid-template-columns declarations across all marketing pages.
 * ═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 720px) {

  /* Tighten outer padding so cards have room to breathe */
  .wrap { padding: 0 18px !important; }

  /* Named classes in styles.css that lacked a proper mobile breakpoint */
  .stat-row,
  .footer-grid,
  .hero-grid,
  .aud-grid,
  .feat-grid,
  .lwf .grid2,
  .punch,
  .kpis,
  .insp-grid,
  .problem-grid,
  .flow,
  .price-grid,
  .cap-grid,
  .fac-grid,
  .cmp-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* Force inline grid declarations to stack regardless of column count */
  div[style*="grid-template-columns:repeat(2"],
  div[style*="grid-template-columns: repeat(2"],
  div[style*="grid-template-columns:repeat(3"],
  div[style*="grid-template-columns: repeat(3"],
  div[style*="grid-template-columns:repeat(4"],
  div[style*="grid-template-columns: repeat(4"],
  div[style*="grid-template-columns:repeat(5"],
  div[style*="grid-template-columns: repeat(5"],
  div[style*="grid-template-columns:1fr 1fr"],
  div[style*="grid-template-columns: 1fr 1fr"],
  div[style*="grid-template-columns:1.05fr"],
  div[style*="grid-template-columns: 1.05fr"],
  div[style*="grid-template-columns:1.1fr"],
  div[style*="grid-template-columns: 1.1fr"],
  div[style*="grid-template-columns:1.25fr"],
  div[style*="grid-template-columns: 1.25fr"],
  div[style*="grid-template-columns:1.2fr"],
  div[style*="grid-template-columns: 1.2fr"],
  div[style*="grid-template-columns:1.3fr"],
  div[style*="grid-template-columns: 1.3fr"],
  div[style*="grid-template-columns:1.4fr"],
  div[style*="grid-template-columns: 1.4fr"],
  div[style*="grid-template-columns:1.6fr"],
  div[style*="grid-template-columns: 1.6fr"],
  section[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  /* Section + card padding compressed for narrow viewports */
  section { padding: 36px 0 !important; }
  .plan-card, .plan-tile {
    padding: 22px 18px !important;
    max-width: 100% !important;
  }

  /* Hero typography sized for thumb-reach */
  .hero h1, .page-hero h1 { font-size: clamp(28px, 9vw, 42px) !important; }
  .hero .lead, .page-hero .lead { font-size: 16px !important; }

  /* Manufacturing Tier 4 — already had its own breakpoint at 880px;
     belt-and-suspenders override so it stacks at 720 too. */
  .mfg-tier .mfg-grid { grid-template-columns: 1fr !important; gap: 24px !important; }

  /* Pricing comparison table — too wide for phones; allow horizontal scroll */
  table.cmp { display: block !important; overflow-x: auto !important;
              -webkit-overflow-scrolling: touch !important; }

  /* Footer links stack cleanly */
  .footer-grid > div { text-align: left !important; }
}

@media (max-width: 480px) {
  .wrap { padding: 0 14px !important; }
  .plan-card, .plan-tile { padding: 18px 14px !important; }
  .hero h1, .page-hero h1 { font-size: clamp(26px, 8vw, 36px) !important; }
}


/* ═══════════════════════════════════════════════════════════════════════
 * Card-breathing pass (2026-06-01)
 *
 * Most marketing-page grids previously ran at gap:10-18px with repeat(4,1fr)
 * and small inner padding — read as 'wall of tiny cards'. This pass forces
 * looser gaps and fewer columns at each breakpoint so cards have room to
 * breathe without per-section patches.
 *
 * Cascade:
 *   ≥ 1280px  →  4-cols become 3-cols, gap 26px
 *   ≤ 1080px  →  3-cols become 2-cols, gap 24px
 *   ≤ 720px   →  everything stacks (handled by earlier rule)
 * ═══════════════════════════════════════════════════════════════════════ */

/* Floor: every multi-column grid gets at least 26px gap */
.feat-grid,
.aud-grid,
.kpis,
.punch,
.stat-row,
.problem-grid,
.flow,
.price-grid,
.cap-grid,
.fac-grid,
.cmp-grid,
.mfg-tier .mfg-grid,
.plan-grid {
  gap: 26px !important;
}

/* feat-grid was using gap:1px with border as separator — restore real gap */
.feat-grid {
  background: transparent !important;
  border: none !important;
  gap: 22px !important;
}
.feat-grid > * {
  background: #fff !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--r-lg, 14px) !important;
  padding: 26px 24px !important;
}

/* Inline 4-up grids — force 3-cols max even on widest viewport */
div[style*="grid-template-columns:repeat(4,1fr)"],
div[style*="grid-template-columns: repeat(4,1fr)"],
div[style*="grid-template-columns: repeat(4, 1fr)"] {
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 24px !important;
}

/* When a grid originally had 4 items and we collapsed it to 3-col, the
 * 4th would otherwise sit alone on a second row looking awkward.
 * Promote it to full-width with more padding + a subtle visual lift so
 * it reads as a featured summary card under the top row of 3. */
div[style*="grid-template-columns:repeat(4,1fr)"] > *:nth-child(4):last-child,
div[style*="grid-template-columns: repeat(4,1fr)"] > *:nth-child(4):last-child,
div[style*="grid-template-columns: repeat(4, 1fr)"] > *:nth-child(4):last-child,
.feat-grid > *:nth-child(4):last-child,
.kpis    > *:nth-child(4):last-child,
.plan-grid.plans-4 > *:nth-child(4):last-child {
  grid-column: 1 / -1 !important;
  padding: 34px 32px !important;
  background: linear-gradient(135deg, #f8fafc 0%, #fff 100%) !important;
  border: 1.5px solid var(--line, #e5e7eb) !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 14px rgba(15, 46, 34, 0.04) !important;
  font-size: 1.02em !important;
}

/* Inline grids with tight inline gap → bump the gap */
div[style*="grid-template-columns"][style*="gap:10px"],
div[style*="grid-template-columns"][style*="gap: 10px"],
div[style*="grid-template-columns"][style*="gap:12px"],
div[style*="grid-template-columns"][style*="gap: 12px"],
div[style*="grid-template-columns"][style*="gap:14px"],
div[style*="grid-template-columns"][style*="gap: 14px"],
div[style*="grid-template-columns"][style*="gap:16px"],
div[style*="grid-template-columns"][style*="gap: 16px"] {
  gap: 24px !important;
}

/* Card inner padding — make space to look at the words */
.plan-card,
.plan-tile,
.tile,
.problem-grid > *,
.aud-grid > *,
.kpis > *,
.punch > *,
.stat-row > * {
  padding: 28px 26px !important;
}

/* Tablet (≤1080px): 3-cols become 2-cols */
@media (max-width: 1080px) {
  .feat-grid,
  .aud-grid,
  .kpis,
  .punch,
  .plan-grid.plans-3,
  .plan-grid.cols-3,
  .stat-row {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 22px !important;
  }
  div[style*="grid-template-columns:repeat(3"],
  div[style*="grid-template-columns: repeat(3"],
  div[style*="grid-template-columns:repeat(4"],
  div[style*="grid-template-columns: repeat(4"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 22px !important;
  }
  .plan-card, .plan-tile, .tile {
    padding: 26px 22px !important;
  }
}

/* Phone (≤720px) — stack handled by earlier rule, but bump card padding */
@media (max-width: 720px) {
  .plan-card, .plan-tile, .tile,
  .problem-grid > *, .aud-grid > *, .kpis > *, .punch > *, .stat-row > * {
    padding: 24px 20px !important;
  }
}


/* ═══════════════════════════════════════════════════════════════════════
 * Mobile header + drawer + green-card pass (2026-06-01)
 * ═══════════════════════════════════════════════════════════════════════ */

/* ── Mobile drawer (mobileNav) — full viewport, scrollable, top-z ── */
@media (max-width: 920px) {
  #mobileNav {
    position: fixed !important;
    top: 0 !important; left: 0 !important; right: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    max-height: 100vh !important;
    background: #fff !important;
    z-index: 9990 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 80px 22px 40px !important;
    transform: translateY(-100%) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: transform .24s cubic-bezier(.4,0,.2,1),
                opacity .2s ease,
                visibility 0s linear .24s !important;
    box-shadow: 0 12px 32px rgba(15, 46, 34, .12) !important;
  }
  #mobileNav.open {
    transform: translateY(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transition: transform .24s cubic-bezier(.4,0,.2,1),
                opacity .2s ease,
                visibility 0s linear 0s !important;
  }
  /* Mobile nav links — exclude .btn so bottom CTAs keep their button styling */
  #mobileNav a:not(.btn),
  #mobileNav .mnav-link,
  #mobileNav .nav-dd-item,
  #mobileNav .nav-dd-trigger {
    display: block !important;
    padding: 14px 16px !important;
    font-size: 17px !important;
    line-height: 1.4 !important;
    text-align: center !important;
    border-bottom: 1px solid #eef2ef !important;
    color: var(--ink, #0f172a) !important;
    text-decoration: none !important;
  }
  /* Group titles ("Platform" / "Solutions" / "Resources") match link alignment */
  #mobileNav .mnav-group { margin-bottom: 6px !important; }
  #mobileNav .mnav-group-title {
    display: block !important;
    text-align: center !important;
    font-size: 11.5px !important;
    letter-spacing: .08em !important;
    text-transform: uppercase !important;
    color: var(--gray, #64748b) !important;
    margin: 18px 0 4px !important;
    padding: 0 !important;
    border: 0 !important;
  }
  /* Bottom CTA buttons — kill border-bottom and full-width them */
  #mobileNav .mobile-nav-actions { margin-top: 22px !important; padding-top: 18px !important; border-top: 1px solid #eef2ef !important; gap: 10px !important; display: flex !important; flex-direction: column !important; }
  #mobileNav .mobile-nav-actions .btn { width: 100% !important; min-height: 48px !important; border-bottom: 0 !important; }
  #mobileNav .nav-dd-desc { font-size: 13px !important; color: var(--gray, #64748b) !important; margin-top: 4px !important; }

  /* Hamburger toggle button — fixed top-right, above drawer */
  .menu-toggle {
    position: relative !important;
    z-index: 9999 !important;
  }
  body.menu-open .menu-toggle {
    position: fixed !important;
    top: 18px !important;
    right: 18px !important;
  }
}

/* ── WordPress-style mobile header: logo centered, hamburger right ── */
@media (max-width: 720px) {
  .site-header { padding: 0 !important; border-bottom: 1px solid var(--line, #e5e7eb) !important; }
  .site-header .bar {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: auto !important;
    gap: 0 !important;
    height: auto !important;
    padding: 14px 0 !important;
    position: relative !important;
    text-align: center !important;
    justify-items: center !important;
  }
  /* Logo: centered, bigger than the previous 26px squish */
  .site-header .logo {
    margin: 0 auto !important;
    justify-content: center !important;
  }
  .site-header .logo .logo-img {
    height: 42px !important;
    max-height: 42px !important;
    max-width: 70vw !important;
    width: auto !important;
    margin: 0 auto !important;
  }
  /* Hamburger floats top-right of the header without disturbing the centered logo */
  .site-header .header-cta {
    position: absolute !important;
    right: 14px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin: 0 !important;
  }
  .site-header .nav-links { display: none !important; }
  .site-header .header-cta .btn:not(.menu-toggle) { display: none !important; }
  .site-header .menu-toggle { display: inline-flex !important; }

  /* Center text content on hero + key sections */
  .hero .wrap, .page-hero .wrap, section .wrap {
    text-align: center;
  }
  .hero h1, .page-hero h1,
  section h1, section h2 {
    text-align: center !important;
  }
  .hero .lead, .page-hero .lead,
  section .lead, section p {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* ── Green/dark sections: force inner grids to stack with breath ── */
@media (max-width: 720px) {
  /* #exposure dark-green section on home — inner grids stack */
  #exposure div[style*="grid-template-columns"],
  #exposure .grid,
  section[style*="background:#0f2e22"] div[style*="grid-template-columns"],
  section[style*="background:#0c241b"] div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }
  /* Items inside the green band — give them real padding */
  #exposure div[style*="background:"],
  section[style*="background:#0f2e22"] div[style*="background:"] {
    padding: 22px 20px !important;
    border-radius: 14px !important;
  }
  /* Vendor network gradient band on /pricing */
  section[style*="background:linear-gradient"] div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  /* Footer logo card — center, breathe */
  .site-footer .logo {
    margin: 0 auto 8px !important;
    display: inline-flex !important;
    background: #fff !important;
  }
  .site-footer .logo .logo-img {
    height: 36px !important;
    max-height: 36px !important;
  }
  .site-footer .footer-grid { text-align: center !important; }
  .site-footer .footer-grid > div { text-align: center !important; }
  .site-footer .footer-grid ul { align-items: center !important; }
}

@media (max-width: 480px) {
  .site-header .logo .logo-img { height: 36px !important; max-height: 36px !important; }
  #mobileNav { padding-top: 72px !important; }
}


/* ═══════════════════════════════════════════════════════════════════════
 * Mobile-only fixes (2026-06-01) — green cards + horizontal overflow
 * Desktop unchanged.
 * ═══════════════════════════════════════════════════════════════════════ */

/* Hard rule: nothing should ever cause horizontal scroll on mobile */
@media (max-width: 720px) {
  html, body { overflow-x: hidden !important; max-width: 100vw !important; }
  *, *::before, *::after { box-sizing: border-box !important; }
  /* Any element trying to be wider than viewport gets clamped */
  body * {
    max-width: 100% !important;
  }
  /* Outer container: reduce horizontal padding so card content has room */
  .wrap { padding-left: 16px !important; padding-right: 16px !important; }
  /* Inline-styled wraps using padding:0 24px — override */
  div[style*="padding:0 24px"], div[style*="padding: 0 24px"] {
    padding-left: 16px !important; padding-right: 16px !important;
  }
  /* Green #exposure section — real card breathing on mobile */
  #exposure { padding: 44px 0 38px !important; }
  #exposure > .wrap {
    padding-left: 16px !important; padding-right: 16px !important;
    max-width: 100% !important;
  }
  #exposure > .wrap > div[style*="grid-template-columns"] {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    max-width: 100% !important;
    margin: 0 !important;
  }
  #exposure > .wrap > div[style*="grid-template-columns"] > div {
    padding: 22px 20px !important;
    border-radius: 14px !important;
    background: rgba(255,255,255,.07) !important;
    border: 1px solid rgba(111,224,163,.22) !important;
    max-width: 100% !important;
  }
  #exposure > .wrap > div[style*="grid-template-columns"] > div > div:first-child {
    font-size: 11.5px !important;
    margin-bottom: 8px !important;
    color: #6fe0a3 !important;
  }
  #exposure > .wrap > div[style*="grid-template-columns"] > div > div:last-child {
    font-size: 14.5px !important;
    line-height: 1.6 !important;
    color: #d8efe4 !important;
  }
  /* Same generous treatment for any other dark-bg card section on mobile */
  section[style*="background:#0f2e22"] > .wrap,
  section[style*="background:#0c241b"] > .wrap {
    padding-left: 16px !important; padding-right: 16px !important;
  }
  section[style*="background:#0f2e22"] div[style*="grid-template-columns"],
  section[style*="background:#0c241b"] div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    max-width: 100% !important;
  }
}


/* ═══════════════════════════════════════════════════════════════════════
 * Defensive admin chrome rules (2026-06-01) — guarantees that:
 *   - .mobile-top hamburger button NEVER shows above 860px
 *   - .sidebar .brand .logo-img always renders at readable size with wordmark visible
 *   - portal-kit-rendered sidebar brand has proper layout
 * ═══════════════════════════════════════════════════════════════════════ */
@media (min-width: 861px) {
  .mobile-top { display: none !important; }
}
@media (max-width: 860px) {
  .mobile-top {
    display: inline-flex !important;
    position: fixed !important;
    top: 14px !important;
    left: 14px !important;
    z-index: 200 !important;
    background: #fff !important;
    border: 1px solid var(--line, #e5e7eb) !important;
    border-radius: 8px !important;
    width: 40px !important;
    height: 40px !important;
    align-items: center !important;
    justify-content: center !important;
  }
}

/* Sidebar brand — logo must show the wordmark, never get squished */
.sidebar .brand,
#sidebar .brand,
aside .brand {
  display: flex !important;
  align-items: center !important;
  min-height: 70px !important;
  padding: 14px 18px !important;
}
.sidebar .brand .logo,
#sidebar .brand .logo,
aside .brand .logo {
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  text-decoration: none !important;
}
.sidebar .brand .logo .logo-img,
#sidebar .brand .logo .logo-img,
aside .brand .logo .logo-img {
  height: 42px !important;
  width: auto !important;
  max-width: 180px !important;
  object-fit: contain !important;
  display: block !important;
}


/* ═══════════════════════════════════════════════════════════════════════
 * Final mobile-stack override (2026-06-01) — last rule wins.
 * Forces every audience/feature/punch/stat grid to 1-up at ≤900px
 * (was conflicting with the 2-up rule at ≤1080px earlier in file).
 * ═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .aud-grid,
  .feat-grid,
  .punch,
  .stat-row,
  .kpis,
  .problem-grid,
  .plan-grid.plans-3,
  .plan-grid.cols-3,
  .plan-grid.plans-4,
  .plan-grid.cols-2 {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    max-width: 100% !important;
  }
  .aud-card, .aud-grid > *,
  .feat-grid > *, .punch > *, .stat-row > *, .kpis > *, .problem-grid > * {
    padding: 26px 22px !important;
  }
  /* Catch every inline 2-up grid too */
  div[style*="grid-template-columns: repeat(2"],
  div[style*="grid-template-columns:repeat(2"],
  div[style*="grid-template-columns: 1fr 1fr"],
  div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
}


/* Hamburger nuke (2026-06-01) — hide every known hamburger class on desktop */
@media (min-width: 861px) {
  .hamburger,
  .mobile-top,
  .menu-toggle,
  .nav-toggle,
  .icon-btn.mobile-top,
  button[aria-label="Menu"],
  button[aria-label="Open menu"] {
    display: none !important;
    visibility: hidden !important;
  }
}
