/* ═══════════════════════════════════════════════════════════════════════════════
   ERMITS MARKETING SHELL — CyberCaution
   Canonical shell shared (structurally) by CyberCaution, CyberCorrect and
   VendorSoluce. Only the four --brand-* tokens differ between the three sites.

   Load order: linked LAST in <head> (after app.css → nav-fixes.css → layout.css
   and any page CSS) so it wins the cascade. legacy nav-fixes.css / layout.css
   use !important heavily; where this file has to beat one of those rules it
   also uses !important, and each such block says which rule it overrides.

   Scope:
   - Header, mobile menu, breadcrumb and footer rules apply on every page that
     links this file (marketing pages and the review tool pages).
   - Content rules (containers, sections, cards, buttons, type) are scoped to
     body.ermits-marketing so tool internals (AssessmentShell) are untouched.
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ── 1. Tokens ─────────────────────────────────────────────────────────────── */
:root {
  /* Brand (only per-site variation) */
  --brand: #EA580C;
  --brand-hover: #D24E0B;
  --brand-soft: rgba(234, 88, 12, 0.10);
  --brand-ink: #C2410C;

  /* Layout */
  --shell-max: 1200px;        /* header, footer, and every section's content box */
  --shell-narrow: 760px;      /* section intro copy / hero subcopy / prose */
  --shell-gutter: 16px;       /* <640 */
  --shell-gutter-md: 24px;    /* >=640 */
  --shell-gutter-lg: 32px;    /* >=1024 */
  --nav-h: 48px;

  /* Section rhythm — denser operational marketing (v3) */
  --section-y: 28px;          /* mobile */
  --section-y-lg: 40px;       /* >=1024 */
  --stack-intro: 16px;        /* gap between section intro (h2+lead) and its content; 12px <640 */

  /* Type scale */
  --fs-hero: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);      /* lh 1.08, ls -0.025em, weight 800 */
  --fs-h2:   clamp(1.75rem, 1.35rem + 1.6vw, 2.5rem);  /* lh 1.15, ls -0.02em, weight 700 */
  --fs-h3:   1.0625rem;                                /* cards 17px (v2); lh 1.35, weight 600 */
  --fs-h3-feature: 1.25rem;                            /* feature; lh 1.35, weight 600 */
  --fs-lead: clamp(1.0625rem, 1rem + .3vw, 1.25rem);   /* lh 1.6, muted colour */
  --fs-body: 1rem;                                     /* lh 1.6 */
  --fs-small: .875rem;                                 /* lh 1.5 */
  --fs-eyebrow: .75rem;                                /* uppercase, ls .08em, weight 600, brand-ink */

  /* Shape */
  --radius-sm: 8px;   /* buttons, inputs, chips */
  --radius-md: 12px;  /* cards */
  --radius-lg: 16px;  /* hero panel / CTA band */
  --border-w: 1px;
  --shadow-sm: 0 1px 2px rgb(15 23 42 / .06);
  --shadow-md: 0 4px 16px -4px rgb(15 23 42 / .10), 0 2px 4px -2px rgb(15 23 42 / .06);
  --focus-ring: 0 0 0 3px color-mix(in srgb, var(--brand) 35%, transparent);
  --ease: cubic-bezier(.2,.8,.2,1); --dur: 160ms;

  /* Illustration palette (v2) */
  --ill-surface: #ffffff;
  --ill-line: #cbd5e1;
  --ill-ink: #334155;
  --ill-muted: #94a3b8;
  --ill-accent: #f59e0b;      /* the one semantic accent: amber = risk */
}
@media (max-width: 639px) { :root { --stack-intro: 12px; } }
html.dark { --ill-surface: #1e293b; --ill-line: #475569; --ill-ink: #cbd5e1; --ill-muted: #64748b; }

/* Site-local derived tokens (not part of the shared block) */
:root {
  --shell-g: var(--shell-gutter);
  --shell-section-y: var(--section-y);
  --shell-surface: hsl(var(--card));
  --shell-surface-alt: #F6F8FB;
  --shell-border: hsl(var(--border));
  --shell-muted: hsl(var(--muted-foreground));
  --shell-fg: hsl(var(--foreground));
  /* legacy nav-fixes.css drops the bar to 56px <640; the spec wants 64px everywhere */
  --nav-height: var(--nav-h);
  --nav-safe-height: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
}
@media (min-width: 640px) {
  :root { --shell-g: var(--shell-gutter-md); --nav-height: var(--nav-h); }
}
@media (min-width: 1024px) {
  :root { --shell-g: var(--shell-gutter-lg); --shell-section-y: var(--section-y-lg); }
}
html.dark {
  --brand-soft: rgba(251, 146, 60, 0.14);
  --brand-ink: #FB923C;
  --shell-surface-alt: hsl(222.2 47.4% 13.5%);
  --shadow-sm: none;
  --shadow-md: none;
}

/* ── 2. Shared container ───────────────────────────────────────────────────── */
/* Overrides layout.css / nav-fixes.css padding rules, which are !important. */
html body nav.glass-nav > div.max-w-7xl.mx-auto,
html body [data-mobile-menu="true"] .max-w-7xl.mx-auto,
html body nav[aria-label="Breadcrumb"][data-breadcrumb="true"] > div.max-w-7xl,
html body nav[aria-label="Breadcrumb"][data-breadcrumb="true"] > div,
html body footer#footer .footer-inner,
html body.ermits-marketing main .container,
html body.ermits-marketing main .container-main-content {
  width: 100% !important;
  max-width: var(--shell-max) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: var(--shell-g) !important;
  padding-right: var(--shell-g) !important;
  box-sizing: border-box !important;
}
/* Inner rails: card grids use the full content box (no 1024px / 896px columns). */
body.ermits-marketing main .container .max-w-4xl.mx-auto,
body.ermits-marketing main .container .max-w-5xl.mx-auto,
body.ermits-marketing main .container .max-w-6xl.mx-auto,
body.ermits-marketing main .container .max-w-7xl.mx-auto,
body.ermits-marketing main .container-main-content .max-w-4xl.mx-auto,
body.ermits-marketing main .container-main-content .max-w-5xl.mx-auto,
body.ermits-marketing main .container-main-content .max-w-6xl.mx-auto,
body.ermits-marketing main .container-main-content .max-w-7xl.mx-auto,
body.ermits-marketing.page-index main > section[id] > .container > .max-w-5xl {
  max-width: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
/* Intro copy stays narrow and centred */
body.ermits-marketing main p.max-w-2xl,
body.ermits-marketing main p.max-w-3xl {
  max-width: var(--shell-narrow) !important;
}
/* Legal prose: readable measure, but on the shared left edge */
body.ermits-marketing main .container-main-content > .page-prose {
  max-width: 56rem !important;
  margin-left: 0 !important;
}

/* ── 3. Header ─────────────────────────────────────────────────────────────── */
nav.glass-nav {
  box-shadow: none !important;               /* was shadow-lg */
  border-bottom: 1px solid var(--shell-border) !important;
  min-height: var(--nav-safe-height) !important;
  height: var(--nav-safe-height) !important;
  padding-bottom: 0 !important;
  max-height: var(--nav-safe-height) !important;
}
nav.glass-nav > div.max-w-7xl {
  height: var(--nav-h) !important;
  min-height: var(--nav-h) !important;
  max-height: var(--nav-h) !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  box-sizing: border-box !important;
}
nav.glass-nav .flex.justify-between.items-center {
  height: var(--nav-h) !important;           /* nav-fixes binds to --nav-height */
  min-height: var(--nav-h) !important;
  max-height: var(--nav-h) !important;
  gap: 12px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  align-items: center !important;
}
/* Brand block: drop nav-fixes' 200px min-width reservation */
nav.glass-nav .flex.justify-between.items-center > div:first-child {
  min-width: 0 !important;
}
nav.glass-nav .flex.justify-between.items-center > div:first-child > a {
  gap: 10px;
}
nav.glass-nav .flex.justify-between.items-center > div:first-child > a > * + * {
  margin-left: 0 !important;                 /* Tailwind space-x-* */
}
/* Logo mark 32px — fits a 48px bar without extra bottom chrome */
html body nav.glass-nav img[alt="CyberCaution™ Logo"],
html body nav.glass-nav > div > div > div > a > img[alt="CyberCaution™ Logo"] {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  max-width: 32px !important;
  max-height: 32px !important;
  transform: none !important;
}
html body nav.glass-nav .brand-text { font-size: 1rem !important; margin-left: 0 !important; line-height: 1.1; }
html body nav.glass-nav .brand-text .brand-name {
  font-size: 1.0625rem !important;           /* 17px */
  font-weight: 600 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.01em !important;
}
html body nav.glass-nav .brand-text .brand-tagline {
  font-size: 0.6875rem !important;           /* 11px */
  font-weight: 500 !important;
  font-style: normal !important;
  letter-spacing: 0.01em !important;
  color: var(--shell-muted) !important;
  line-height: 1.15 !important;
}
@media (max-width: 379px) {
  html body nav.glass-nav .brand-text .brand-tagline { display: none !important; }
}

/* Centre links */
nav.glass-nav .flex.justify-between.items-center > div:nth-child(2) {
  margin-left: 0 !important;
}
nav.glass-nav .flex.justify-between.items-center > div:nth-child(2) > div {
  gap: 4px;
}
nav.glass-nav .flex.justify-between.items-center > div:nth-child(2) > div > * + * {
  margin-left: 0 !important;                 /* Tailwind space-x-* */
}
nav.glass-nav a.nav-link {
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 20px !important;
  padding: 8px 12px !important;
  border-radius: var(--radius-sm) !important;
  gap: 6px;
  white-space: nowrap;
  color: var(--shell-fg) !important;
}
nav.glass-nav a.nav-link > * + * { margin-left: 0 !important; }
nav.glass-nav a.nav-link svg { width: 16px !important; height: 16px !important; opacity: .8; }
nav.glass-nav .nav-link:not(.nav-link-active):hover,
nav.glass-nav .mobile-nav-link:not(.nav-link-active):hover {
  background-color: hsl(var(--muted)) !important;
  color: var(--shell-fg) !important;
}
/* Active link = soft brand (nav-fixes paints a solid orange pill with !important) */
html body nav.glass-nav a.nav-link.nav-link-active,
html body nav.glass-nav a.nav-link.bg-primary,
html body .mobile-menu-container a.mobile-nav-link.nav-link-active,
html body .mobile-menu-container a.mobile-nav-link.bg-primary {
  background-color: var(--brand-soft) !important;
  color: var(--brand-ink) !important;
}
html body nav.glass-nav a.nav-link.nav-link-active svg { opacity: 1; }

/* Icon buttons: compact cluster, no filled pill */
nav.glass-nav .flex.justify-between > div:nth-child(3),
nav.glass-nav .flex.justify-between > div.flex.md\:hidden {
  gap: 0 !important;
}
/* Kill Tailwind space-x-* margins on the mobile action cluster */
nav.glass-nav .flex.justify-between > div.flex.md\:hidden > * + *,
nav.glass-nav .flex.justify-between > div.flex.md\:hidden.space-x-1 > * + * {
  margin-left: 0 !important;
}
html body nav.glass-nav .nav-action-icon,
html body nav.glass-nav .flex.justify-between > div.flex.md\:hidden > a,
html body nav.glass-nav .flex.justify-between > div.flex.md\:hidden > button,
html body nav.glass-nav .flex.justify-between > div.flex.md\:hidden .nav-theme-toggle-wrapper,
html body nav.glass-nav .flex.justify-between > div.flex.md\:hidden .nav-theme-toggle-wrapper button {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  padding: 0 !important;
  border-radius: var(--radius-sm) !important;
  background-color: transparent !important;
  box-shadow: none !important;
  transform: none !important;
  color: var(--shell-fg) !important;
}
html body nav.glass-nav .nav-action-icon:hover,
html body nav.glass-nav .flex.justify-between > div.flex.md\:hidden > a:hover,
html body nav.glass-nav .flex.justify-between > div.flex.md\:hidden > button:hover,
html body nav.glass-nav .flex.justify-between > div.flex.md\:hidden .nav-theme-toggle-wrapper button:hover {
  background-color: hsl(var(--muted)) !important;
}
html body nav.glass-nav .nav-action-icon svg,
html body nav.glass-nav .flex.justify-between > div.flex.md\:hidden svg {
  width: 17px !important;
  height: 17px !important;
}
/* Mobile: packed 32px targets, zero gap */
@media (max-width: 1023px) {
  html body nav.glass-nav .flex.justify-between > div.flex.md\:hidden > a,
  html body nav.glass-nav .flex.justify-between > div.flex.md\:hidden > button,
  html body nav.glass-nav .flex.justify-between > div.flex.md\:hidden .nav-theme-toggle-wrapper,
  html body nav.glass-nav .flex.justify-between > div.flex.md\:hidden .nav-theme-toggle-wrapper button {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
  }
  nav.glass-nav .flex.justify-between > div.flex.md\:hidden { gap: 0 !important; }
}
/* 768–1023px: the six links + actions do not fit at 14px. shared-nav.js already
   treats <1024px as "mobile" (DESKTOP_MIN), so show the menu button there. */
@media (min-width: 768px) and (max-width: 1023px) {
  nav.glass-nav .flex.justify-between > div.hidden.md\:flex { display: none !important; }
  nav.glass-nav .flex.justify-between > div.flex.md\:hidden { display: flex !important; margin-left: auto; }
  [data-mobile-menu="true"].md\:hidden:not(.hidden) { display: block !important; }
}

/* Mobile menu panel */
[data-mobile-menu="true"] { top: var(--nav-safe-height) !important; }
.mobile-menu-container .max-w-7xl { padding-top: 12px !important; padding-bottom: 12px !important; }
.mobile-menu-container .mobile-nav-link {
  min-height: 44px;
  padding: 10px 12px !important;
  border-radius: var(--radius-sm) !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  border-left: 0 !important;
}
html.dark .mobile-menu-container .mobile-nav-link { color: hsl(var(--foreground)) !important; }

/* Breadcrumb strip — tight chrome under the header (override HTML py-3 / min-h-[3.25rem]) */
nav[aria-label="Breadcrumb"][data-breadcrumb="true"] {
  min-height: 0 !important;
}
nav[aria-label="Breadcrumb"][data-breadcrumb="true"] > div,
nav[aria-label="Breadcrumb"][data-breadcrumb="true"] > div.max-w-7xl,
html body nav[aria-label="Breadcrumb"][data-breadcrumb="true"] > div.py-3,
html body nav[aria-label="Breadcrumb"][data-breadcrumb="true"] > div.min-h-\[3\.25rem\] {
  min-height: 0 !important;
  height: auto !important;
  padding-top: 0.375rem !important;   /* 6px */
  padding-bottom: 0.375rem !important;
  font-size: var(--fs-small);
  line-height: 1.25 !important;
  align-items: center !important;
}

/* ── 4. Footer ─────────────────────────────────────────────────────────────── */
/* Replaces the flex layout in nav-fixes.css (#footer .footer-top-row etc.). */
#footer {
  background: var(--shell-surface-alt) !important;
  border-top: 1px solid var(--shell-border) !important;
  backdrop-filter: none !important;
}
#footer .footer-inner {
  display: block !important;
  padding-top: 8px !important;
  padding-bottom: 0 !important;
  overflow: visible !important;
}
#footer .footer-top-row {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 20px !important;
  padding-bottom: 12px !important;
  margin: 0 !important;
  align-items: start !important;
}
#footer .footer-columns,
#footer .footer-columns.footer-columns-compact {
  display: contents !important;              /* columns become grid items of .footer-top-row */
}
#footer .footer-columns > div,
#footer .footer-columns.footer-columns-compact > div {
  min-width: 0 !important;
  max-width: none !important;
  width: auto !important;
  flex: none !important;
}
/* Mobile: brand, then link columns stacked */
#footer .footer-branding { grid-column: auto; }
@media (min-width: 640px) and (max-width: 767px) {
  #footer .footer-top-row { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 28px !important; }
  #footer .footer-branding { grid-column: 1 / -1; }
}
/* Desktop/tablet: brand capped left; link columns sit further right with air after brand */
@media (min-width: 768px) {
  #footer .footer-top-row {
    grid-template-columns: minmax(10rem, 15rem) repeat(3, minmax(0, 1fr)) !important;
    column-gap: 2.75rem !important;
    row-gap: 1.5rem !important;
  }
  #footer .footer-branding {
    grid-column: auto;
    padding-right: clamp(1.25rem, 3.5vw, 2.75rem) !important;
  }
}
@media (min-width: 1024px) {
  #footer .footer-top-row {
    grid-template-columns: minmax(12rem, 16rem) repeat(3, minmax(0, 1fr)) !important;
    column-gap: 3.5rem !important;
  }
  #footer .footer-branding {
    padding-right: clamp(2rem, 5vw, 4rem) !important;
  }
}
#footer .footer-branding {
  max-width: 16rem !important;
  flex: none !important;
  align-items: flex-start !important;
  text-align: left !important;
}
#footer .footer-brand-row { gap: 10px !important; align-items: center !important; }
html body #footer .footer-brand-logo,
html body footer#footer .footer-brand-logo {
  width: auto !important;
  height: 64px !important;
  min-height: 64px !important;
  max-height: 64px !important;
  transform: none !important;
  object-fit: contain !important;
  flex-shrink: 0 !important;
}
#footer .footer-brand-row .brand-text { margin-left: 0 !important; line-height: 1.2; }
html body #footer .brand-name { font-size: 1.125rem !important; font-weight: 600 !important; letter-spacing: -0.01em !important; }
html body #footer .brand-tagline { font-size: 0.75rem !important; font-style: normal !important; color: var(--shell-muted) !important; }
html body #footer .brand-attribution { font-size: 0.75rem !important; color: var(--shell-muted) !important; }
#footer .footer-brand-desc {
  margin-top: 10px !important;
  padding-top: 0 !important;
  max-width: 16rem !important;
  font-size: var(--fs-small) !important;
  line-height: 1.45 !important;
  color: var(--shell-muted) !important;
}
#footer .footer-column-title {
  font-size: 13px !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--shell-fg) !important;
  margin: 0 0 10px !important;
  line-height: 1.4 !important;
}
/* Uniform list rhythm across Platform / Resources / Legal (overrides nav-fixes gap:0) */
html body #footer .footer-list,
html body #footer #footer-platform ul,
html body #footer #footer-resources ul,
html body #footer #footer-legal ul,
html body #footer #footer-solutions ul {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  margin: 0 !important;
  padding: 0 !important;
}
html body #footer .footer-list-item,
html body #footer .footer-list-item:first-child,
html body #footer ul li,
html body #footer ul li:first-child,
html body #footer ul li + li {
  display: flex !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0 !important; /* kill anonymous line-box strut above/below the link */
}
#footer .footer-list a,
html body #footer ul li a {
  font-size: 14px !important;
  line-height: 1.25 !important;
  gap: 6px !important;
  color: var(--shell-muted) !important;
  white-space: nowrap;
}
#footer .footer-list a:hover { color: var(--shell-fg) !important; }
#footer .footer-list a svg { width: 14px !important; height: 14px !important; flex-shrink: 0; opacity: .75; }
#footer .footer-bottom-row {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 8px !important;
  padding: 8px 0 12px !important;
  border-top: 1px solid var(--shell-border) !important;
}
#footer .footer-bottom-row > div { flex: none !important; margin: 0 !important; justify-content: flex-start !important; }
#footer .footer-bottom-row a[href*="ermits.com"] { font-size: 13px !important; color: var(--shell-muted) !important; }
#footer .footer-bottom-row .status-badge-secure span { font-size: 12px !important; }
@media (min-width: 640px) {
  #footer .footer-bottom-row { flex-direction: row !important; align-items: center !important; }
}

/* Skip link: hidden until focused (was a static 20px strip above <main>) */
.skip-link { position: absolute !important; left: 8px; top: -60px; z-index: 100; padding: 8px 12px; border-radius: var(--radius-sm); background: var(--brand); color: #fff !important; }
.skip-link:focus { top: 8px; }

/* ── 5. Focus ring ─────────────────────────────────────────────────────────── */
nav.glass-nav a:focus-visible,
nav.glass-nav button:focus-visible,
#footer a:focus-visible,
body.ermits-marketing main a:focus-visible,
body.ermits-marketing main button:focus-visible,
body.ermits-marketing main input:focus-visible,
body.ermits-marketing main select:focus-visible,
body.ermits-marketing main textarea:focus-visible {
  outline: none !important;
  box-shadow: var(--focus-ring) !important;
  border-radius: var(--radius-sm);
}

/* ═══ Content (marketing pages only) ═════════════════════════════════════════ */

/* ── 6. Brand utility remap (Tailwind build hard-codes #FF6B00) ─────────────── */
body.ermits-marketing main .text-primary { color: var(--brand-ink) !important; }
body.ermits-marketing main .bg-primary { background-color: var(--brand) !important; }
body.ermits-marketing main a:not(.btn).text-primary:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ── 7. Sections ───────────────────────────────────────────────────────────── */
body.ermits-marketing main > section.cc-section,
body.ermits-marketing.page-index main > section[id] {
  padding-top: var(--shell-section-y) !important;
  padding-bottom: var(--shell-section-y) !important;
  margin: 0 !important;
}
/* Home: alternate page bg / one subtle surface, full bleed */
body.ermits-marketing.page-index main > section[id]:nth-of-type(odd) { background-color: hsl(var(--background)) !important; }
body.ermits-marketing.page-index main > section[id]:nth-of-type(even) { background-color: var(--shell-surface-alt) !important; }
/* Inner pages: sections stack inside one container on one background, so
   each section carries half the rhythm and adjacent ones add up to one step. */
body.ermits-marketing main .container-main-content > section.cc-section,
body.ermits-marketing main .container-main-content > section {
  padding-top: calc(var(--shell-section-y) / 2) !important;
  padding-bottom: calc(var(--shell-section-y) / 2) !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
body.ermits-marketing main .container-main-content > section:first-child:not(.page-header) {
  padding-top: 20px !important;
}
body.ermits-marketing main .container-main-content > section.page-header:first-child {
  padding-top: 10px !important;
}
body.ermits-marketing main .container-main-content > section:last-child {
  padding-bottom: var(--shell-section-y) !important;
}
body.ermits-marketing main .container-main-content { padding-bottom: 0 !important; }
/* Vertical card stacks inside a section */
body.ermits-marketing main .container-main-content > section.space-y-10 > * + *,
body.ermits-marketing main .container-main-content > section.space-y-8 > * + *,
body.ermits-marketing main .container-main-content > section.space-y-6 > * + * {
  margin-top: 14px !important;
}
/* Tailwind margin utilities still used in HTML — collapse to compact rhythm */
body.ermits-marketing main .mb-16 { margin-bottom: 1.5rem !important; }
body.ermits-marketing main .mb-14 { margin-bottom: 1.25rem !important; }
body.ermits-marketing main .mb-12 { margin-bottom: 1rem !important; }
body.ermits-marketing main .mb-10 { margin-bottom: 0.875rem !important; }
body.ermits-marketing main .mt-16 { margin-top: 1.5rem !important; }
body.ermits-marketing main .mt-12 { margin-top: 1rem !important; }
body.ermits-marketing main .py-16 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
body.ermits-marketing main .py-12 { padding-top: 1.25rem !important; padding-bottom: 1.25rem !important; }
/* Common airy panel utility combo in static HTML */
body.ermits-marketing main .rounded-xl.border.p-6,
body.ermits-marketing main .rounded-xl.border[class~="p-6"],
body.ermits-marketing main .rounded-2xl.border.p-6 {
  padding: 0.875rem !important;
}
@media (min-width: 768px) {
  body.ermits-marketing main .rounded-xl.border.md\:p-8,
  body.ermits-marketing main .rounded-xl.border[class~="md:p-8"],
  body.ermits-marketing main .rounded-2xl.border.md\:p-8 {
    padding: 1rem !important;
  }
}

/* ── 8. Typography ─────────────────────────────────────────────────────────── */
body.ermits-marketing main h1 {
  font-size: var(--fs-hero) !important;
  line-height: 1.08 !important;
  letter-spacing: -0.025em !important;
  font-weight: 800 !important;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-wrap: balance;
}
body.ermits-marketing main h1.text-left,
body.ermits-marketing main .text-left h1 { margin-left: 0; }
/* Section headings (not card titles) */
body.ermits-marketing main section > h2,
body.ermits-marketing main section > .text-center > h2,
body.ermits-marketing main section > div > .text-center > h2,
body.ermits-marketing main section > .container > .text-center > h2,
body.ermits-marketing main section > .container > div > .text-center > h2,
body.ermits-marketing main section > .container > div > h2,
body.ermits-marketing main .shell-intro h2 {
  font-size: var(--fs-h2) !important;
  line-height: 1.15 !important;
  letter-spacing: -0.02em !important;
  font-weight: 700 !important;
  text-wrap: balance;
}
body.ermits-marketing main .shell-intro {
  max-width: 960px;
  margin: 0 auto var(--stack-intro) !important;
  text-align: center;
}
body.ermits-marketing main .shell-intro > p {
  max-width: var(--shell-narrow);
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--shell-muted);
  margin: 12px auto 0 !important;
}
body.ermits-marketing main .shell-eyebrow {
  display: inline-block;
  font-size: var(--fs-eyebrow) !important;
  text-transform: uppercase;
  letter-spacing: .08em !important;
  font-weight: 600 !important;
  color: var(--brand-ink) !important;
  margin-bottom: 12px !important;
}
body.ermits-marketing main p.text-lg.text-muted-foreground {
  font-size: var(--fs-lead) !important;
  line-height: 1.6 !important;
}

/* ── 9. Cards ──────────────────────────────────────────────────────────────── */
body.ermits-marketing main .modern-card,
body.ermits-marketing main .shell-card {
  background: var(--shell-surface) !important;
  background-image: none !important;
  border: 1px solid var(--shell-border) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-sm) !important;
  padding: 14px !important;
  transform: none !important;
  backdrop-filter: none !important;
}
@media (max-width: 639px) {
  body.ermits-marketing main .modern-card,
  body.ermits-marketing main .shell-card { padding: 12px !important; }
}
/* Whole-card links only */
body.ermits-marketing main a.modern-card:hover,
body.ermits-marketing main a.shell-card:hover {
  box-shadow: var(--shadow-md) !important;
  border-color: color-mix(in srgb, var(--brand) 30%, var(--shell-border)) !important;
}
/* No card inside a card: flatten the OUTER box to plain layout. */
body.ermits-marketing main .modern-card:has(.modern-card, .shell-card),
body.ermits-marketing main .shell-card:has(.modern-card, .shell-card) {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
}
/* Icon chip */
body.ermits-marketing main .shell-chip {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--brand-soft);
  color: var(--brand-ink);
  margin-bottom: 8px;
  flex-shrink: 0;
}
body.ermits-marketing main .shell-chip svg { width: 18px; height: 18px; }
/* Card grids */
body.ermits-marketing main .grid.gap-6,
body.ermits-marketing main .grid.gap-8,
body.ermits-marketing main .grid.gap-4 { gap: 12px !important; }
@media (max-width: 639px) {
  body.ermits-marketing main .grid.gap-6,
  body.ermits-marketing main .grid.gap-8,
  body.ermits-marketing main .grid.gap-4 { gap: 8px !important; }
}
body.ermits-marketing main .modern-card h3,
body.ermits-marketing main .shell-card h3 { font-size: var(--fs-h3) !important; line-height: 1.35 !important; font-weight: 600 !important; }
body.ermits-marketing main .modern-card p,
body.ermits-marketing main .modern-card li,
body.ermits-marketing main .shell-card p,
body.ermits-marketing main .shell-card li { font-size: 15px; line-height: 1.55; }

/* ── 10. Buttons ───────────────────────────────────────────────────────────── */
body.ermits-marketing a.btn,
body.ermits-marketing button.btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  height: 44px !important;
  min-height: 44px !important;
  padding: 0 20px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  border-radius: var(--radius-sm) !important;
  white-space: nowrap !important;
  text-decoration: none !important;
  background-image: none !important;
  transform: none !important;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease) !important;
  box-sizing: border-box !important;
  max-width: 100%;
  width: auto;
}
body.ermits-marketing .btn > * + * { margin-left: 0 !important; }
body.ermits-marketing .btn svg { width: 16px !important; height: 16px !important; margin: 0 !important; flex-shrink: 0; }
body.ermits-marketing a.btn.btn-lg,
body.ermits-marketing button.btn.btn-lg {
  height: 48px !important;
  min-height: 48px !important;
  padding: 0 24px !important;
  font-size: 16px !important;
}
body.ermits-marketing .btn.btn-primary {
  background-color: var(--brand) !important;
  border: 1px solid var(--brand) !important;
  color: #fff !important;
  box-shadow: var(--shadow-sm) !important;
}
body.ermits-marketing .btn.btn-primary:hover {
  background-color: var(--brand-hover) !important;
  border-color: var(--brand-hover) !important;
}
body.ermits-marketing .btn.btn-secondary {
  background-color: hsl(var(--card)) !important;
  border: 1px solid var(--shell-border) !important;
  color: var(--shell-fg) !important;
  box-shadow: none !important;
}
body.ermits-marketing .btn.btn-secondary:hover {
  background-color: hsl(var(--muted)) !important;
}
body.ermits-marketing .btn.btn-primary:focus-visible,
body.ermits-marketing .btn.btn-secondary:focus-visible { box-shadow: var(--focus-ring) !important; }
/* Button groups */
body.ermits-marketing main .flex:has(> .btn + .btn) { gap: 12px !important; }
body.ermits-marketing main .flex:has(> .btn + .btn) > .btn { margin: 0 !important; }
@media (max-width: 479px) {
  body.ermits-marketing main .flex:has(> .btn + .btn) {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  body.ermits-marketing main .flex:has(> .btn + .btn) > .btn { width: 100% !important; }
}

/* ── 11. Home: hero (two-column ≥1024, copy left / illustration right) ────── */
.ermits-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 20px 0 var(--shell-section-y);
}
@media (min-width: 1024px) { .ermits-hero { padding: 28px 0 24px; } }
.ermits-hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.ermits-hero-bg > div { position: absolute; inset: 0; }
.ermits-hero-bg .hero-light-background { background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%); }
.ermits-hero-bg .hero-dark-background { background: linear-gradient(180deg, #0b1730 0%, hsl(var(--background)) 100%); }
html.dark .ermits-hero-bg .hero-light-background,
html:not(.dark) .ermits-hero-bg .hero-dark-background { display: none; }
.ermits-hero-bg .animated-grid-pattern {          /* faint grid, ≤6% */
  background-image:
    linear-gradient(rgba(100, 116, 139, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100, 116, 139, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(180deg, #000 40%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 40%, transparent 100%);
}
.ermits-hero__grid {
  display: grid;
  gap: 20px;
  align-items: start;
  grid-template-columns: minmax(0, 1fr);
}
.ermits-hero__copy {
  min-width: 0;
  max-width: 36rem;
}
.ermits-hero__visual {
  min-width: 0;
  width: 100%;
}
/* Side-by-side from tablet so copy + product stage read as one composition */
@media (min-width: 768px) {
  .ermits-hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 24px 28px;
    align-items: center;
  }
  .ermits-hero__copy { max-width: none; }
}
@media (min-width: 1024px) {
  .ermits-hero__grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 28px 36px;
  }
}
body.ermits-marketing .ermits-hero h1 {
  margin: 0 !important;
  max-width: 18ch;
  font-size: clamp(1.85rem, 1.25rem + 1.8vw, 2.75rem) !important;
  line-height: 1.1 !important;
  letter-spacing: -0.025em;
  text-align: left;
}

.ermits-hero .hero-lead {
  font-size: var(--fs-lead) !important;
  line-height: 1.5 !important;
  max-width: 32rem;
  margin: 10px 0 0 !important;
}
.ermits-hero .hero-panel {
  margin-top: 12px;
  padding-left: 14px;
  border-left: 3px solid var(--brand);
}
.ermits-hero .hero-panel__title { font-size: 1.0625rem !important; font-weight: 600 !important; line-height: 1.4 !important; margin: 0 !important; }
.ermits-hero .hero-panel__sub { font-size: var(--fs-small); margin: 2px 0 0 !important; }
.ermits-hero .hero-panel__eyebrow { margin: 14px 0 6px !important; }
.ermits-hero .hero-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px 20px; font-size: 15px; line-height: 1.45; color: var(--shell-fg); }
@media (min-width: 640px) { .ermits-hero .hero-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ermits-hero .hero-list li { display: flex; gap: 8px; align-items: flex-start; }
.ermits-hero .hero-check { color: var(--brand-ink); flex-shrink: 0; margin-top: 2px; }
.ermits-hero .hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 16px; }
.ermits-hero .hero-meta { font-size: var(--fs-small); }
@media (max-width: 639px) {
  .ermits-hero .hero-actions .btn { width: auto !important; }
  .ermits-hero .hero-actions { justify-content: flex-start; }
}

/* ── 12. Home: content blocks ──────────────────────────────────────────────── */
body.ermits-marketing main .shell-footnote { text-align: center; font-size: var(--fs-small); margin: 14px auto 0; max-width: var(--shell-narrow); }
body.ermits-marketing main .section-actions { display: flex; justify-content: center; margin-top: 16px; }
@media (max-width: 479px) { body.ermits-marketing main .section-actions .btn { width: 100% !important; } }
body.ermits-marketing main .card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
body.ermits-marketing main .card-head .shell-chip { margin-bottom: 0; }
body.ermits-marketing main .shell-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
body.ermits-marketing main .shell-list li { position: relative; padding-left: 16px; }
body.ermits-marketing main .shell-list li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 999px; background: color-mix(in srgb, var(--brand) 55%, transparent); }

/* Fragmented → Structured comparison */
.compare { display: grid; gap: 12px; align-items: stretch; }
@media (min-width: 768px) { .compare { grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr); gap: 0; } }
.compare__mid { display: flex; align-items: center; justify-content: center; }
.compare__logo { width: 48px; height: 48px; object-fit: contain; }
@media (max-width: 767px) { .compare__mid { display: none; } }
.compare__label { font-size: 12px !important; text-transform: uppercase; letter-spacing: .08em; font-weight: 600 !important; margin: 0 0 12px !important; color: var(--shell-muted); }
.compare ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.compare li { display: flex; gap: 10px; font-size: 15px; line-height: 1.5; color: var(--shell-fg); }
.compare li > span:first-child { width: 14px; flex-shrink: 0; font-weight: 700; color: var(--shell-muted); }
.compare__col--after li > span:first-child { color: var(--brand-ink); }
.compare li strong { font-weight: 600; }
body.ermits-marketing main .compare__col--after { border-color: color-mix(in srgb, var(--brand) 35%, var(--shell-border)) !important; }
.journey-strip { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; align-items: center; text-align: center; }
.journey-strip p { font-size: 15px; line-height: 1.6; max-width: var(--shell-narrow); margin: 0; }
.journey-strip__chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chip {
  display: inline-flex; align-items: center; height: 32px; padding: 0 12px;
  border-radius: var(--radius-sm); border: 1px solid var(--shell-border);
  background: hsl(var(--card)); color: var(--shell-fg); font-size: 13px; font-weight: 500; text-decoration: none;
}
a.chip:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--shell-border)); }
.chip--active { background: var(--brand-soft); color: var(--brand-ink); border-color: transparent; }
.chip--static { color: var(--shell-muted); }

/* Four surfaces */
body.ermits-marketing main .surface-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
body.ermits-marketing main .surface-head h3 { margin: 0 !important; }
.surface-num {
  width: 28px; height: 28px; border-radius: 999px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-soft); color: var(--brand-ink); font-size: 13px; font-weight: 700;
}
body.ermits-marketing main .surface-shot { margin-top: 16px; box-shadow: none; }

/* Sector carousel */
.sector-heading { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem) !important; line-height: 1.2 !important; letter-spacing: -0.02em; font-weight: 700 !important; margin: 0 0 12px !important; }
.sector-next { margin: 14px 0 12px; }
.sector-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
@media (max-width: 479px) { .sector-actions .btn { width: 100% !important; } }
#sector-threat .shell-split--stack {
  display: block !important;
  grid-template-columns: none !important;
}
#sector-threat .shell-split--stack .shell-split__text {
  max-width: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
#sector-threat .shell-split--stack .sector-heading,
#sector-threat .shell-split--stack .sector-next {
  text-align: center;
  max-width: 40rem;
}
#sector-threat .shell-split--stack .sector-actions {
  justify-content: center;
}
body.ermits-marketing main #sector-threat .sector-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 480px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
  padding: 12px !important;
}
#sector-threat-card > div { padding: 0 !important; }
.sector-card__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sector-threat-content { transition: opacity .2s ease-out; min-width: 0; flex: 1; }
.sector-threat-content > .flex { gap: 8px !important; align-items: center !important; }
.sector-card h3 { font-size: 1rem !important; line-height: 1.25 !important; margin: 0 !important; }
.sector-card .sector-threat-desc {
  font-size: 0.75rem !important;
  line-height: 1.35 !important;
  margin: 1px 0 0 !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
#sector-threat-card .sector-threat-icon {
  width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-soft) !important; color: var(--brand-ink); border-radius: 6px !important; padding: 0 !important;
}
#sector-threat-card .sector-threat-icon { flex: 0 0 32px; height: 32px !important; align-self: center; }
#sector-threat-card .sector-threat-icon svg { width: 16px; height: 16px; color: var(--brand-ink) !important; }
.sector-nav { display: flex; gap: 4px; flex-shrink: 0; }
.sector-nav button {
  width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--shell-border); background: hsl(var(--card)); color: var(--shell-fg);
  border-radius: 6px; cursor: pointer;
}
.sector-nav button:hover { background: hsl(var(--muted)); }
.sector-nav button svg { width: 14px; height: 14px; }
.sector-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.sector-stat { background: hsl(var(--muted)); border: 1px solid var(--shell-border); border-radius: 6px; padding: 6px 4px; text-align: center; }
html.dark .sector-stat { background: hsl(var(--muted) / .55); }
.sector-stat__label { font-size: 10px; font-weight: 500; color: var(--shell-muted); letter-spacing: 0.02em; text-transform: uppercase; }
.sector-stat__value { font-size: 0.875rem; font-weight: 700; color: var(--shell-fg); margin-top: 1px; line-height: 1.2; }
.sector-threat-source { margin: 0; max-width: 100%; font-size: 0.6875rem !important; line-height: 1.35 !important; }
#sector-threat .sector-threat-frameworks { gap: 4px !important; }
#sector-threat .sector-threat-frameworks span {
  padding: 2px 6px !important;
  font-size: 0.625rem !important;
  line-height: 1.2 !important;
}
#sector-threat-dots { gap: 4px !important; margin-top: 2px; }
#sector-threat-dots button { width: 6px; height: 6px; border-radius: 999px; }
#sector-threat-dots button.bg-muted { background: var(--ill-line) !important; }
#sector-threat .sector-heading { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem) !important; margin-bottom: 0.75rem !important; }
#sector-threat .shell-eyebrow { margin-bottom: 4px !important; }
#sector-threat .sector-actions { margin-top: 10px; gap: 8px; }

/* ── 13. CTA band ──────────────────────────────────────────────────────────── */
body.ermits-marketing main .shell-cta-band {
  border-radius: var(--radius-lg) !important;
  border: 0 !important;
  background: color-mix(in srgb, var(--brand) 6%, hsl(var(--background))) !important;
  background-image: none !important;
  box-shadow: none !important;
  padding: 18px 14px !important;
  text-align: center;
}
@media (min-width: 1024px) { body.ermits-marketing main .shell-cta-band { padding: 22px 28px !important; } }
body.ermits-marketing main .shell-cta-band h2 {
  font-size: clamp(1.125rem, 1.05rem + 0.45vw, 1.375rem) !important;
  line-height: 1.2 !important;
  letter-spacing: -0.02em !important;
  font-weight: 700 !important;
  color: var(--shell-fg) !important;
  margin-bottom: 4px !important;
}
body.ermits-marketing main .shell-cta-band > h2 + p,
body.ermits-marketing main .shell-cta-band > p:not(.shell-eyebrow):not(.cta-terms):not([class*="text-xs"]):not([class*="text-sm"]) {
  font-size: var(--fs-body) !important;
  line-height: 1.45 !important;
  color: var(--shell-muted) !important;
  max-width: var(--shell-narrow);
  margin: 0 auto 10px !important;
}
body.ermits-marketing main .shell-cta-band .flex:has(> .btn) { margin-top: 8px; justify-content: center; gap: 8px; }
body.ermits-marketing main .shell-cta-band .btn {
  padding: 0.55rem 1.15rem !important;
  font-size: 0.875rem !important;
  min-height: 2.5rem;
}

/* ═══ v2 components (shared visual language) ═════════════════════════════════ */

/* ── 14. Illustrations (inline SVG; themed via tokens) ─────────────────────── */
.ill { display: block; width: 100%; height: auto; overflow: visible; }
.ill .i-card { fill: var(--ill-surface); stroke: var(--ill-line); stroke-width: 1.5; }
.ill .i-card-back { opacity: .7; }
.ill .i-tile { fill: var(--brand-soft); stroke: none; }
.ill .i-line { fill: none; stroke: var(--ill-line); stroke-width: 1.5; stroke-linecap: round; }
.ill .i-skel { fill: var(--ill-line); }
.ill .i-skel-ink { fill: var(--ill-muted); }
.ill .i-brand { fill: var(--brand); }
.ill .i-soft { fill: var(--brand-soft); }
.ill .i-soft-strong { fill: color-mix(in srgb, var(--brand) 22%, var(--ill-surface)); }
.ill .i-accent { fill: var(--ill-accent); }
.ill .i-dot { fill: var(--ill-line); }
.ill .i-ring-track { fill: none; stroke: var(--ill-line); stroke-width: 12; opacity: .6; }
.ill .i-ring { fill: none; stroke: var(--brand); stroke-width: 12; stroke-linecap: round; }
.ill .i-ring-sm { stroke-width: 6; }
.ill .i-num { fill: var(--ill-ink); font: 700 30px/1 Inter, ui-sans-serif, system-ui, sans-serif; }
.ill .i-cap { fill: var(--ill-muted); font: 500 11px/1 Inter, ui-sans-serif, system-ui, sans-serif; }
.ill .i-glyph { fill: var(--ill-surface); }
.ill .i-glyph-line { fill: none; stroke: var(--ill-surface); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ill .i-check { fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ill .i-stop { stop-color: var(--brand); }
.ill-frame { position: relative; }

/* ── 15. Split section (text | visual, alternating) ────────────────────────── */
.shell-split { display: grid; gap: 28px; align-items: center; }
.shell-split__visual { max-width: 480px; width: 100%; margin: 0 auto; }
@media (min-width: 1024px) {
  .shell-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }
  .shell-split--reverse .shell-split__visual { order: -1; }
}

/* ── 16. Step flow (numbered nodes on a line) ──────────────────────────────── */
.step-flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; position: relative; counter-reset: none; }
.step-flow__item { position: relative; padding-left: 56px; min-height: 40px; }
.step-flow__num {
  position: absolute; left: 0; top: 0;
  width: 40px; height: 40px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand); color: #fff; font-weight: 700; font-size: 16px;
  box-shadow: 0 0 0 6px hsl(var(--background));
  z-index: 1;
}
.step-flow::before {                        /* vertical connector (mobile) */
  content: ""; position: absolute; left: 19px; top: 20px; bottom: 20px;
  width: 2px; background: var(--shell-border);
}
.step-flow__item h3 { font-size: var(--fs-h3) !important; font-weight: 600 !important; line-height: 1.35; margin: 8px 0 4px; color: var(--shell-fg); }
.step-flow__item p { font-size: 15px; line-height: 1.55; color: var(--shell-muted); margin: 0; }
@media (min-width: 640px) {
  .step-flow { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .step-flow__item { padding-left: 0; padding-top: 56px; text-align: center; }
  .step-flow__num { left: 50%; transform: translateX(-50%); }
  .step-flow::before { left: 16.66%; right: 16.66%; top: 19px; bottom: auto; width: auto; height: 2px; }
}

/* ── 17. Browser frame for screenshots (16:10) ─────────────────────────────── */
.browser-frame {
  margin: 0; overflow: hidden;
  border: 1px solid var(--shell-border); border-radius: var(--radius-md);
  background: hsl(var(--card)); box-shadow: var(--shadow-md);
}
.browser-frame__bar {
  display: flex; gap: 6px; align-items: center;
  height: 22px; padding: 0 10px;
  background: hsl(var(--muted)); border-bottom: 1px solid var(--shell-border);
}
.browser-frame__bar span { width: 7px; height: 7px; border-radius: 999px; background: var(--ill-line); }
.browser-frame img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; }

/* ── 18. Mobile collection patterns ────────────────────────────────────────── */
/* Short tiles: 2 columns at phone width */
@media (max-width: 639px) {
  body.ermits-marketing main .shell-tiles { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px !important; }
}
/* Long lists (>=4): optional horizontal scroll-snap (opt-in via .shell-snap).
   Homepage uses .shell-stack instead — vertical cards, no sideways swipe. */
@media (max-width: 639px) {
  body.ermits-marketing main .shell-snap {
    display: flex !important;
    grid-template-columns: none !important;
    gap: 12px !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-left: calc(var(--shell-g) * -1) !important;
    margin-right: calc(var(--shell-g) * -1) !important;
    padding: 2px var(--shell-g) 12px !important;
    scroll-padding-left: var(--shell-g);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  body.ermits-marketing main .shell-snap > * { flex: 0 0 82% !important; scroll-snap-align: start; min-width: 0; }
  body.ermits-marketing.page-index main .shell-stack,
  body.ermits-marketing.page-index main .shell-snap {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    overflow-x: visible !important;
    scroll-snap-type: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 !important;
  }
  body.ermits-marketing.page-index main .shell-stack > *,
  body.ermits-marketing.page-index main .shell-snap > * {
    flex: none !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
  }
}
/* Equal-height cards with CTA pinned to the bottom */
body.ermits-marketing main .shell-card-flex { display: flex !important; flex-direction: column; height: 100%; }
body.ermits-marketing main .shell-card-flex > .shell-card-cta { margin-top: auto !important; padding-top: 12px; }

body.ermits-marketing main .shell-cta-band .shell-eyebrow { margin-bottom: 4px !important; }
.cta-points { display: grid; gap: 12px; margin: 24px auto 0; max-width: 960px; text-align: left; }
@media (min-width: 768px) { .cta-points { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.cta-points > div { padding: 16px; border-radius: var(--radius-md); background: hsl(var(--card)); border: 1px solid var(--shell-border); }
.cta-points p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--shell-muted); }
.cta-points .cta-points__title { font-weight: 600; color: var(--shell-fg); margin-bottom: 4px; }
.shell-cta-band .cta-terms { margin: 20px auto 0 !important; font-size: var(--fs-small) !important; color: var(--shell-muted); max-width: var(--shell-narrow); }
.shell-cta-band .cta-terms strong { color: var(--shell-fg); font-weight: 600; }

/* ═══ Page components moved out of inline <style> blocks ═════════════════════ */

/* Breadcrumb: drop the legacy logo-width spacer so crumbs sit on the shared left edge */
nav[aria-label="Breadcrumb"][data-breadcrumb="true"] > div > div[aria-hidden="true"]:first-child { display: none !important; }

/* Collapsible sections (trust / features / how-it-works) — one connected panel when open */
.trust-section-hidden { display: none !important; }
.trust-collapsible { margin-bottom: 10px !important; }
.trust-collapsible .trust-collapsible-summary {
  list-style: none; cursor: pointer;
  padding: 12px 14px; border-radius: var(--radius-md);
  border: 1px solid var(--shell-border); background: hsl(var(--card));
  font-weight: 600; font-size: 1.0625rem; color: var(--shell-fg);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  box-shadow: var(--shadow-sm);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.trust-collapsible .trust-collapsible-summary:hover { border-color: color-mix(in srgb, var(--brand) 30%, var(--shell-border)); }
.trust-collapsible .trust-collapsible-summary::-webkit-details-marker { display: none; }
.trust-collapsible .trust-collapsible-summary::marker { content: none; }
.trust-collapsible-summary-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; text-align: left; }
.trust-collapsible-summary-title { font-weight: 600; font-size: 1rem; line-height: 1.3; color: var(--shell-fg); }
.trust-collapsible-summary-lede { font-weight: 400; font-size: .8125rem; line-height: 1.4; color: var(--shell-muted); }
.trust-collapsible .trust-chevron { flex-shrink: 0; transition: transform .2s ease; color: var(--shell-muted); }
.trust-collapsible[open] .trust-chevron { transform: rotate(180deg); }
.trust-collapsible[open] > .trust-collapsible-summary {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom-color: color-mix(in srgb, var(--shell-border) 70%, transparent);
  box-shadow: none;
}
.trust-collapsible-content {
  padding: 0;
  margin: 0;
  border: 1px solid var(--shell-border);
  border-top: 0;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  background: hsl(var(--card));
  box-shadow: var(--shadow-sm);
}
.trust-collapsible-content > .cc-section {
  margin: 0 !important;
  padding: 0 !important;
}
.trust-collapsible-content .modern-card,
.trust-collapsible-content .trust-panel {
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  margin: 0 !important;
}
.trust-collapsible-content .trust-panel {
  padding: 12px 14px 14px !important;
}
.trust-collapsible-content .modern-card.p-8,
.trust-collapsible-content .modern-card.p-8.md\:p-10,
.trust-collapsible-content .modern-card.p-8.md\:p-12 {
  padding: 12px 14px 14px !important;
}
@media (min-width: 768px) {
  .trust-collapsible-content .trust-panel,
  .trust-collapsible-content .modern-card.p-8.md\:p-10,
  .trust-collapsible-content .modern-card.p-8.md\:p-12 {
    padding: 14px 16px 16px !important;
  }
}
.trust-panel-grid { margin-top: 12px !important; }
.trust-panel-foot {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--shell-border);
}

/* Privacy panel: polished compact layout */
.trust-panel--privacy .trust-panel-lede {
  margin: 0 0 12px;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--shell-muted);
}
.trust-callout {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid color-mix(in srgb, var(--brand) 22%, var(--shell-border));
  background: color-mix(in srgb, var(--brand) 8%, hsl(var(--card)));
}
.trust-callout-icon {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  color: var(--brand);
}
.trust-callout-title {
  margin: 0 0 2px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--shell-fg);
  line-height: 1.3;
}
.trust-callout-body {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--shell-muted);
}
.trust-principle-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 0;
}
@media (min-width: 640px) {
  .trust-principle-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
}
.trust-principle {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--shell-border);
  border-radius: var(--radius-sm);
  background: hsl(var(--card));
}
.trust-principle h3 {
  margin: 0 0 2px !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  color: var(--shell-fg);
}
.trust-principle p {
  margin: 0 !important;
  font-size: 0.75rem !important;
  line-height: 1.4 !important;
  color: var(--shell-muted);
}
.trust-panel--privacy .trust-panel-foot {
  margin-top: 12px;
  padding-top: 12px;
}
.trust-foot-title {
  margin: 0 0 8px !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  color: var(--shell-fg);
}
.trust-place-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  margin-bottom: 10px;
}
@media (min-width: 480px) {
  .trust-place-grid { grid-template-columns: 1fr 1fr; }
}
.trust-place {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: hsl(var(--muted) / 0.45);
  border: 1px solid var(--shell-border);
}
.trust-place-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--shell-fg);
  line-height: 1.25;
}
.trust-place-desc {
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--shell-muted);
}
.trust-foot-meta {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--shell-muted);
}
.trust-foot-meta a {
  color: var(--brand);
  font-weight: 500;
  text-decoration: none;
}
.trust-foot-meta a:hover { text-decoration: underline; }
body.page-trust .trust-collapsible-content .grid { margin-top: 12px; margin-bottom: 0; gap: 12px !important; }
body.page-trust .trust-collapsible-content .grid > div { display: flex; align-items: flex-start; gap: 12px; }
body.page-trust .trust-collapsible-content .grid > div > div:last-child { flex: 1; min-width: 0; }
body.page-trust .trust-collapsible-content .grid > div h3 { margin-bottom: 4px; line-height: 1.35; font-size: 0.9375rem; }
body.page-trust .trust-collapsible-content .grid > div p { margin: 0; font-size: .8125rem; line-height: 1.45; color: var(--shell-muted); }
body.page-trust .trust-collapsible-content .shell-split { margin-bottom: 0; gap: 12px; }
body.page-trust .trust-collapsible-content .trust-local { margin-bottom: 0 !important; }
body.page-trust .trust-collapsible-content .shell-split__visual .ill-section { max-width: 100%; }

/* Trust header: match other text-only page headers + gap before first accordion */
body.page-trust main .page-header h1,
body.page-trust main .page-header--text h1 {
  max-width: none !important;
}
body.page-trust main .page-header__lead {
  max-width: 36rem;
}
body.page-trust main .trust-collapsible-content .ci-square {
  flex-basis: 40px;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  color: var(--brand);
}
body.page-trust main .trust-collapsible-content .ci-square .ci {
  width: 28px;
  height: 28px;
}
body.page-trust main .trust-collapsible-content .ci-square .ci-glyph {
  width: 20px;
  height: 20px;
  display: block;
}
body.page-trust main .trust-collapsible-content .ci-item {
  gap: 10px !important;
}
body.page-trust main .trust-cta {
  margin-bottom: 1.5rem !important;
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
}
body.page-trust main .trust-cta .shell-cta-band {
  padding: 14px 16px !important;
}
body.page-trust main .trust-cta .shell-cta-band h2 {
  margin-bottom: 4px !important;
}
body.page-trust main .trust-cta .shell-cta-band > p {
  margin: 0 auto 10px !important;
}
body.page-trust main .trust-cta .shell-cta-band .flex {
  margin-top: 0 !important;
  margin-bottom: 8px;
}
@media (min-width: 1024px) {
  body.page-trust main .trust-cta .shell-cta-band { padding: 16px 22px !important; }
}

/* Trust: compact framework mapping tables */
body.page-trust .trust-framework-card {
  padding: 14px 16px !important;
}
@media (min-width: 768px) {
  body.page-trust .trust-framework-card { padding: 16px 18px !important; }
}
body.page-trust .trust-framework-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
body.page-trust .trust-framework-head h2 { margin: 0 !important; }
body.page-trust .trust-framework-lede {
  margin-top: 0 !important;
  font-size: 0.8125rem;
  line-height: 1.45;
  margin: 0 0 12px !important;
  max-width: 48rem;
}
body.page-trust .trust-framework-maps {
  display: grid;
  gap: 14px;
}
@media (min-width: 1024px) {
  body.page-trust .trust-framework-maps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
}
body.page-trust .trust-framework-maps h3 {
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--shell-fg);
  margin: 0 0 6px !important;
  line-height: 1.3;
}
body.page-trust .trust-map-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
  line-height: 1.35;
  border: 1px solid hsl(var(--border));
}
body.page-trust .trust-map-table th,
body.page-trust .trust-map-table td {
  padding: 0.35rem 0.5rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid hsl(var(--border));
}
body.page-trust .trust-map-table th {
  font-weight: 600;
  background: hsl(var(--muted) / 0.4);
  color: var(--shell-fg);
  white-space: nowrap;
}
body.page-trust .trust-map-table td:first-child {
  font-weight: 550;
  color: var(--shell-fg);
  white-space: nowrap;
  width: 36%;
}
body.page-trust .trust-map-table tbody tr:last-child th,
body.page-trust .trust-map-table tbody tr:last-child td {
  border-bottom: 0;
}
body.page-trust .trust-map-table .is-yes {
  font-weight: 600;
  color: hsl(var(--success, 142 71% 35%));
}
body.page-trust .trust-map-table .is-no {
  font-weight: 500;
  color: var(--shell-muted);
}
body.page-trust .trust-framework-footnote {
  font-size: 0.6875rem;
  color: var(--shell-muted);
  margin: 6px 0 0 !important;
}

/* Tutorial */
body.ermits-marketing .tutorial-hero { display: flex; flex-direction: column; gap: 0; margin-bottom: 32px; }
body.ermits-marketing .tutorial-hero-row { display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 16px; }
body.ermits-marketing .tutorial-hero-title { font-size: var(--fs-h2); font-weight: 700; letter-spacing: -0.02em; color: var(--shell-fg); }
body.ermits-marketing .tutorial-step-card {
  position: relative; border-radius: var(--radius-md); border: 1px solid var(--shell-border);
  background: hsl(var(--card)); box-shadow: var(--shadow-sm);
  padding: 20px 20px 20px 64px; margin-bottom: 16px;
}
body.ermits-marketing .tutorial-step-num {
  position: absolute; left: 20px; top: 20px; width: 32px; height: 32px; border-radius: 999px;
  background: var(--brand); color: #fff; font-size: .875rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
body.ermits-marketing .tutorial-callout { border-radius: var(--radius-sm); padding: 12px 16px; margin-top: 12px; font-size: .875rem; border-left: 3px solid; }
body.ermits-marketing .tutorial-cta-card { border-radius: var(--radius-lg); background: color-mix(in srgb, var(--brand) 6%, hsl(var(--background))); padding: 24px; margin-top: 24px; }

/* How it works: stages are plain blocks separated by a rule (not cards) */
body.ermits-marketing main .shell-stage { padding: 32px 0; border-top: 1px solid var(--shell-border); }
body.ermits-marketing main .shell-stage:first-of-type { border-top: 0; padding-top: 8px; }
body.ermits-marketing main .shell-stage > .flex { gap: 20px !important; }
body.ermits-marketing main .shell-stage h2 { font-size: clamp(1.375rem, 1.2rem + .8vw, 1.75rem) !important; letter-spacing: -0.015em; }
body.ermits-marketing main .shell-stage > .flex > div:last-child { min-width: 0; flex: 1; }
.stage-num {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand); color: #fff; font-size: 18px; font-weight: 700;
}
@media (max-width: 639px) { body.ermits-marketing main .shell-stage > .flex { flex-direction: column; gap: 12px !important; } }
.stage-split { margin-bottom: 20px; }
.stage-split .shell-split__visual { max-width: 400px; }
@media (max-width: 1023px) { .stage-split .shell-split__visual { max-width: 340px; } }
.intro-flow { margin: 36px auto 0; max-width: 960px; text-align: center; }
.intro-flow h3 a { color: inherit; text-decoration: none; }
.intro-flow h3 a:hover { color: var(--brand-ink); }
@media (max-width: 639px) { .intro-flow { text-align: left; max-width: 420px; } }

/* Pricing tier CTAs (replaces inline "Pricing CTA normalization" block) */
body.ermits-marketing a.btn.pricing-cta-button { width: 100% !important; padding: 0 12px !important; font-size: 14px !important; }
body.ermits-marketing a.btn.pricing-cta-button .pricing-cta-label { overflow: hidden; text-overflow: ellipsis; }
body.ermits-marketing main div[data-tier] { padding: 20px 16px !important; }

/* ── Tinted / orange-bordered panels → standard card surface ────────────────
   Legacy markup uses bg-primary/5, gradient tints and border-primary/xx as the
   default card look; the shell's card is neutral. Featured items opt back in
   with .shell-featured. */
body.ermits-marketing main div[class*="bg-primary/5"]:not(.shell-featured),
body.ermits-marketing main div[class*="from-primary/"]:not(.shell-featured),
body.ermits-marketing main div[class*="bg-secure-green/5"]:not(.shell-featured),
body.ermits-marketing main div[class*="bg-accent/5"]:not(.shell-featured),
body.ermits-marketing main div[class*="bg-orange-50"]:not(.shell-featured) {
  background: hsl(var(--card)) !important;
  background-image: none !important;
}
body.ermits-marketing main div[class*="border-primary/"]:not(.shell-featured):not(.compare__col--after),
body.ermits-marketing main div[class*="border-accent/"]:not(.shell-featured),
body.ermits-marketing main div[class*="border-success/"]:not(.shell-featured),
body.ermits-marketing main div[class*="border-secure-green/"]:not(.shell-featured),
body.ermits-marketing main div.border-2:not(.shell-featured):not(.compare__col--after) {
  border-width: 1px !important;
  border-color: var(--shell-border) !important;
}
body.ermits-marketing main .shell-featured {
  border: 1px solid color-mix(in srgb, var(--brand) 45%, var(--shell-border)) !important;
  box-shadow: 0 0 0 3px var(--brand-soft), var(--shadow-sm) !important;
}

/* ── Mobile: long card lists (>=4) stack vertically (no horizontal carousel) ─
   Opt into a snap row with .shell-snap (homepage). Opt out with .shell-stack. */
@media (max-width: 639px) {
  body.ermits-marketing main .grid:not(.shell-tiles):not(.shell-stack):not(.shell-snap):has(> .modern-card:nth-child(4)) {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    overflow-x: visible !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 !important;
    scroll-snap-type: none !important;
  }
  body.ermits-marketing main .grid:not(.shell-tiles):not(.shell-stack):not(.shell-snap):has(> .modern-card:nth-child(4)) > * {
    flex: none !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
  }
}

/* Features: denser page — collapse chrome, quieter cards on small screens */
body.page-features main .trust-collapsible { margin-bottom: 12px !important; }
body.page-features main .trust-collapsible-content .modern-card.p-8,
body.page-features main .trust-collapsible-content .modern-card.p-8.md\:p-12 {
  padding: 12px !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
@media (max-width: 639px) {
  body.page-features main .modern-card.group:hover {
    transform: none !important;
  }
  body.page-features main .shell-grid-center {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  body.page-features main .shell-grid-center > * {
    flex: none !important;
    max-width: none !important;
    width: auto !important;
  }
}
body.ermits-marketing main .container-main-content > section.shell-cta-band {
  margin-top: 14px !important;
  margin-bottom: 18px !important;
  padding: 18px 14px !important;
}
@media (min-width: 1024px) { body.ermits-marketing main .container-main-content > section.shell-cta-band { padding: 22px 28px !important; } }

/* ── Balanced grids: centred last row instead of a left-aligned orphan ────── */
@media (min-width: 640px) {
  body.ermits-marketing main .shell-grid-center { display: flex !important; flex-wrap: wrap; justify-content: center; gap: 12px !important; }
  body.ermits-marketing main .shell-grid-center > * { flex: 0 0 calc((100% - 12px) / 2); max-width: calc((100% - 12px) / 2); }
}
@media (min-width: 1024px) {
  body.ermits-marketing main .shell-grid-center > * { flex-basis: calc((100% - 24px) / 3); max-width: calc((100% - 24px) / 3); }
  body.ermits-marketing main .shell-grid-center--4 > * { flex-basis: calc((100% - 36px) / 4); max-width: calc((100% - 36px) / 4); }
}
/* Pricing: 5 tiers → at 2-up widths the last tier spans the row */
@media (min-width: 768px) and (max-width: 1023px) {
  body.ermits-marketing main .pricing-tiers > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* Pricing page: denser tier cards, less chrome */
body.page-pricing main .pricing-tiers {
  gap: 10px !important;
  align-items: start !important;
}
body.page-pricing main .pricing-tiers > .modern-card,
body.page-pricing main .pricing-tiers > [data-tier] {
  padding: 12px !important;
  min-height: 0 !important;
  height: auto !important;
}
body.page-pricing main .pricing-tiers [data-tier] > ul {
  flex: 0 0 auto !important;
  margin-bottom: 0 !important;
}
body.page-pricing main .pricing-tiers .pricing-cta-button,
body.page-pricing main .pricing-tiers a.pricing-cta-button {
  margin-top: 0.65rem !important;
}
/* Icon + title on one row (no full-bleed ci-panel band) */
body.page-pricing main .pricing-tiers .ci-square--plan {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  margin: 0;
}
body.page-pricing main .pricing-tiers .ci-square--plan .ci {
  width: 32px !important;
  height: 24px !important;
}
body.page-pricing main .pricing-tiers .flex.items-center.gap-3 {
  gap: 0.625rem !important;
  margin-bottom: 0.35rem !important;
  align-items: center;
}
body.page-pricing main .pricing-tiers h3 {
  font-size: 1.0625rem !important;
  line-height: 1.25 !important;
  margin: 0 !important;
}
body.page-pricing main .pricing-tiers .mb-6 {
  margin-bottom: 0.5rem !important;
}
body.page-pricing main .pricing-tiers .mb-4 {
  margin-bottom: 0.5rem !important;
}
body.page-pricing main .pricing-tiers .mb-3 {
  margin-bottom: 0.35rem !important;
}
body.page-pricing main .pricing-tiers .mb-2 {
  margin-bottom: 0.25rem !important;
}
body.page-pricing main .pricing-tiers ul {
  gap: 0 !important;
  margin-bottom: 0.5rem !important;
}
body.page-pricing main .pricing-tiers ul.space-y-3 > :not([hidden]) ~ :not([hidden]),
body.page-pricing main .pricing-tiers ul li + li {
  margin-top: 0.2rem !important;
}
body.page-pricing main .pricing-tiers ul li svg {
  width: 14px !important;
  height: 14px !important;
  margin-top: 3px !important;
}
body.page-pricing main .pricing-tiers ul li span {
  font-size: 0.75rem !important;
  line-height: 1.3 !important;
}
body.page-pricing main .pricing-tiers .text-2xl.sm\:text-3xl,
body.page-pricing main .pricing-tiers [class*="text-2xl"] {
  font-size: 1.5rem !important;
}
body.page-pricing main .pricing-tiers .pricing-cta-button {
  height: 2.5rem !important;
  min-height: 2.5rem !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
body.page-pricing main .pricing-tiers ul li span {
  font-size: 0.8125rem !important;
  line-height: 1.35 !important;
}
body.page-pricing main .pricing-tiers .hover\:scale-\[1\.02\]:hover,
body.page-pricing main .pricing-tiers [class*="hover:scale"]:hover {
  transform: none !important;
}
body.page-pricing main .page-header__lead {
  max-width: 36rem;
}
/* Price + cadence flush right under the plan blurb */
body.page-pricing main .pricing-tiers [data-tier] .flex.items-baseline {
  justify-content: flex-end !important;
  width: 100%;
  text-align: right;
}

/* How It Works: lean journey — compact stages, no digressions */
body.page-how-it-works main .container-main-content {
  padding-bottom: 1.5rem !important;
}
body.page-how-it-works main .journey-overview {
  margin-bottom: 1rem !important;
}
body.page-how-it-works main .intro-flow {
  margin-top: 12px !important;
}
body.page-how-it-works main .hiw-stages {
  gap: 10px !important;
  margin-bottom: 1rem !important;
}
body.page-how-it-works main .hiw-stages.space-y-4 > :not([hidden]) ~ :not([hidden]) {
  margin-top: 10px !important;
}
body.page-how-it-works main .hiw-stages .shell-stage {
  margin-bottom: 0 !important;
  padding: 14px 16px !important;
  border-top: 0;
}
body.page-how-it-works main .hiw-stages .shell-stage > .flex {
  flex-direction: row !important;
  gap: 0.75rem !important;
  align-items: flex-start;
}
body.page-how-it-works main .hiw-stages .shell-stage h2 {
  font-size: 1.0625rem !important;
}
body.page-how-it-works main .hiw-stages .stage-num {
  width: 2rem;
  height: 2rem;
  font-size: 0.875rem;
}
body.page-how-it-works main .shell-cta-band {
  padding: 1.25rem 1rem !important;
  margin-top: 0.5rem;
}
body.ermits-marketing a.btn.pricing-cta-button svg { display: none !important; }
/* Narrow callout boxes (max-w-2xl / 3xl panels) use the full content box */
body.ermits-marketing main div.max-w-2xl.mx-auto[class*="rounded"],
body.ermits-marketing main div.max-w-3xl.mx-auto[class*="rounded"] { max-width: none !important; }
@media (max-width: 479px) { body.ermits-marketing main .shell-cta-band .btn { width: 100% !important; } }
/* FAQ "1. Discover…:" label rows: stack the fixed-width label on phones (was overflowing at 320–390) */
@media (max-width: 639px) {
  body.ermits-marketing main li.flex:has(> .min-w-\[12rem\]) { flex-direction: column; gap: 2px; }
  body.ermits-marketing main .min-w-\[12rem\] { min-width: 0 !important; white-space: normal !important; }
}

/* ═══ v3: illustration extras, PageHeader, trimmed hero ══════════════════════ */
.ill .i-brand-line { fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ill .i-dash { fill: none; stroke: var(--ill-muted); stroke-width: 2; stroke-dasharray: 4 5; stroke-linecap: round; }
.ill .i-boundary { fill: none; stroke: var(--ill-line); stroke-width: 1.5; stroke-dasharray: 6 6; }
.ill .i-cloud { fill: var(--ill-surface); stroke: var(--ill-line); stroke-width: 1.5; }
.ill .i-x { fill: none; stroke: var(--ill-accent); stroke-width: 3; stroke-linecap: round; }
.ill .i-gauge-track { fill: none; stroke: var(--ill-line); stroke-width: 10; stroke-linecap: round; opacity: .6; }
.ill .i-gauge { fill: none; stroke: var(--brand); stroke-width: 10; stroke-linecap: round; }
.ill .i-needle { fill: none; stroke: var(--ill-ink); stroke-width: 2.5; stroke-linecap: round; }
.ill .i-ring-md { stroke-width: 10; }
.ill .i-ring-sm2 { stroke-width: 8; }
.ill .i-num-md { font-size: 22px; }
.ill .i-num-on { fill: var(--ill-surface); font: 700 13px/1 Inter, ui-sans-serif, system-ui, sans-serif; }
.ill .i-num-sm { fill: var(--brand-ink); font: 700 13px/1 Inter, ui-sans-serif, system-ui, sans-serif; }

/* PageHeader: uniform compact Trust-size band on every marketing page */
body.ermits-marketing main .page-header,
body.ermits-marketing main section.cc-section.page-header,
html body.ermits-marketing main .container-main-content > section.cc-section.page-header,
html body.ermits-marketing main .container > section.cc-section.page-header,
body.ermits-marketing main .page-header--text,
html body.ermits-marketing main .container-main-content > section.cc-section.page-header--text {
  position: relative;
  isolation: isolate;
  padding-top: 10px !important;
  padding-bottom: 10px !important;
  margin: 0 0 1.25rem !important;
  text-align: left;
}
body.ermits-marketing main .page-header::before {           /* full-bleed band */
  content: ""; position: absolute; z-index: -1; top: 0; bottom: 0;
  left: 50%; width: 100vw; transform: translateX(-50%);
  background: var(--shell-surface-alt);
  border-bottom: 1px solid var(--shell-border);
}
html, body { overflow-x: clip; }
.page-header__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 0 !important;
  align-items: start;
}
body.ermits-marketing main .page-header h1,
body.ermits-marketing main .page-header--text h1 {
  font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem) !important;
  line-height: 1.2 !important;
  margin: 0 !important;
  max-width: none !important;
  text-align: left;
}
body.ermits-marketing main .page-header .shell-eyebrow { margin-bottom: 4px !important; }
.page-header__lead {
  font-size: 0.9375rem !important;
  line-height: 1.45 !important;
  color: var(--shell-muted);
  margin: 6px 0 0 !important;
  max-width: 36rem;
}
/* Keep band to eyebrow + h1 + one lead; extras live in page body */
.page-header__visual,
.page-header__actions,
.page-header__note {
  display: none !important;
}
.page-header--text .page-header__grid { grid-template-columns: minmax(0, 1fr); }
/* Legal/policy meta lines inside the header */
.page-header .legal-meta { margin-top: 12px; font-size: var(--fs-small); color: var(--shell-muted); display: flex; flex-wrap: wrap; gap: 4px 20px; }
.page-header .legal-meta strong { color: var(--shell-fg); font-weight: 600; }
/* Section visuals in split rows */
.shell-split__visual .ill-section { max-width: 480px; margin: 0 auto; }
.shell-split h2 { font-size: var(--fs-h2) !important; line-height: 1.15 !important; letter-spacing: -0.02em; font-weight: 700 !important; margin: 0 0 12px !important; }
.shell-split__text > p { font-size: var(--fs-lead); line-height: 1.6; color: var(--shell-muted); margin: 0 0 16px; }
.shell-split__text .shell-list { font-size: 15px; }
/* Pricing plan chips */
body.ermits-marketing main div[data-tier] .plan-chip { margin-bottom: 0; }

/* Home: hero trimmed to copy + CTA; benefits moved to #what-you-get */
@media (min-width: 1024px) { .ermits-hero { padding: 28px 0 24px !important; } }
@media (max-width: 1023px) { .ermits-hero { padding: 20px 0 !important; } }
.ermits-hero .hero-lead { max-width: 32rem !important; }
#what-you-get .wyg { display: grid; gap: 20px 48px; align-items: center; }
@media (min-width: 1024px) { #what-you-get .wyg { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
#what-you-get h2 { font-size: clamp(1.375rem, 1.15rem + 1vw, 1.875rem) !important; line-height: 1.2 !important; letter-spacing: -0.015em; font-weight: 700 !important; margin: 0 !important; }
#what-you-get .wyg__sub { color: var(--shell-muted); margin: 8px 0 0; font-size: var(--fs-lead); }
#what-you-get .hero-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 640px) { #what-you-get .hero-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
#what-you-get .hero-list li {
  display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.5; color: var(--shell-fg);
  padding: 14px 16px; border: 1px solid var(--shell-border); border-radius: var(--radius-md); background: hsl(var(--card));
}
#what-you-get .hero-check { color: var(--brand-ink); flex-shrink: 0; margin-top: 3px; }
#what-you-get .shell-eyebrow { margin: 16px 0 0 !important; }
/* PageHeader sits flush under the breadcrumb, whatever top padding the page container had */
html body.ermits-marketing main .container-main-content:has(> .page-header),
html body.ermits-marketing main .container:has(> .page-header) { padding-top: 0 !important; }
/* Keep page-header compact (Trust-size); do not re-inflate padding here */
html body.ermits-marketing main .container-main-content > section.page-header,
html body.ermits-marketing main .container > section.page-header {
  padding-top: 10px !important;
  padding-bottom: 10px !important;
  margin: 0 0 1.25rem !important;
}
/* Collapse leftover Tailwind spacing on journey / account stacks */
body.ermits-marketing main .mb-20 { margin-bottom: 1.75rem !important; }
body.ermits-marketing main .mb-12 { margin-bottom: 0.875rem !important; }
body.ermits-marketing main .space-y-6 > * + * { margin-top: 0.75rem !important; }
body.ermits-marketing main .shell-stage { margin-bottom: 0.25rem; }
body.ermits-marketing main .shell-stage .flex.gap-6 { gap: 0.75rem !important; }
body.ermits-marketing main .page-header__visual .shot-crop .shot { max-height: 180px; }
body.ermits-marketing main .page-prose:has(+ *), body.ermits-marketing main .page-prose { margin-top: 20px !important; }
body.ermits-marketing main .shell-chip img { width: 22px; height: 22px; object-fit: contain; }
body.ermits-marketing main .section-split { margin-bottom: 32px; }
body.ermits-marketing main .trust-local { margin-bottom: 24px; }
body.ermits-marketing main .trust-local h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem) !important; }
.journey-overview .intro-flow { margin-top: 8px; }
.journey-notes { max-width: var(--shell-narrow); margin: 28px auto 0; text-align: center; font-size: var(--fs-small); color: var(--shell-muted); display: grid; gap: 8px; }
.journey-notes p { margin: 0; }
.ermits-hero .hero-lead { font-size: 1.0625rem !important; max-width: 32rem !important; }
html body.ermits-marketing.page-index main > section#what-you-get { padding-top: 28px !important; }
#what-you-get .shell-eyebrow { margin: 0 0 6px !important; }
@media (max-width: 639px) {
  #what-you-get .hero-list { gap: 10px; }
  #what-you-get .hero-list li { padding: 0; border: 0; background: none; }
  .ermits-hero__grid { gap: 18px; }
}
/* Sticky breadcrumb pages: the inline layout-fixes rule adds --breadcrumb-height to main's
   top padding, which double-counts a sticky (in-flow) breadcrumb (gap on legal pages). */
body.ermits-marketing main:has(> nav[aria-label="Breadcrumb"].sticky) { padding-top: var(--nav-height) !important; }
/* Dark: nav-fixes paints the mobile icon buttons with a filled bg under html.dark */
html.dark body nav.glass-nav .flex.justify-between > div.flex.md\:hidden > a,
html.dark body nav.glass-nav .flex.justify-between > div.flex.md\:hidden > button,
html.dark body nav.glass-nav .flex.justify-between > div.flex.md\:hidden .nav-theme-toggle-wrapper button,
html.dark body nav.glass-nav .nav-action-icon { background-color: transparent !important; border-color: transparent !important; box-shadow: none !important; }
html.dark body nav.glass-nav .flex.justify-between > div.flex.md\:hidden > a:hover,
html.dark body nav.glass-nav .flex.justify-between > div.flex.md\:hidden > button:hover,
html.dark body nav.glass-nav .nav-action-icon:hover { background-color: hsl(var(--muted)) !important; }
/* Home: "What you get fast" folded into #built-differently (compact check row) */
#built-differently .wyg-row { margin-top: 28px; }
#built-differently .wyg-row__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 12px; }
#built-differently .wyg-row__head .shell-eyebrow { margin: 0 !important; width: 100%; }
#built-differently .wyg-row__head h3 { font-size: var(--fs-h3) !important; font-weight: 600 !important; margin: 0 !important; line-height: 1.35; }
#built-differently .wyg-row__head p:not(.shell-eyebrow) { margin: 0; font-size: 15px; }
#built-differently .wyg-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
@media (min-width: 640px) { #built-differently .wyg-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
@media (min-width: 1024px) { #built-differently .wyg-list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
#built-differently .wyg-list li { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: var(--shell-fg); }
@media (min-width: 640px) {
  #built-differently .wyg-list li { padding: 12px 14px; border: 1px solid var(--shell-border); border-radius: var(--radius-sm); background: hsl(var(--card)); }
}
#built-differently .hero-check { color: var(--brand-ink); flex-shrink: 0; margin-top: 2px; }
#built-differently .shell-footnote { margin-top: 20px; }
html body.ermits-marketing.page-index main > section#built-differently { padding-top: 40px !important; }
@media (min-width: 1024px) { .ermits-hero { padding-bottom: 40px !important; } }
body.ermits-marketing main .shell-intro { max-width: 1100px; }
#built-differently .wyg-row { margin-top: 24px; }
#built-differently .shell-footnote { margin-top: 16px; }
#built-differently .modern-card p.mt-1 { margin-top: 0 !important; }
#built-differently .wyg-row { margin-top: 20px; }
#built-differently .shell-footnote { margin-top: 12px; }

/* ═══ v4: real product captures ══════════════════════════════════════════════ */
/* Light/dark capture pairs: show the one matching the site theme */
.shot { display: block; width: 100%; height: auto; }
html.dark .shot-light, html:not(.dark) .shot-dark { display: none !important; }

/* Browser frame (shared chrome: 28px bar, three dots, muted real URL) */
.browser-frame.product-frame {
  margin: 0; overflow: hidden; border-radius: var(--radius-md);
  border: 1px solid var(--shell-border); background: hsl(var(--card));
  box-shadow: 0 24px 48px -12px rgb(15 23 42 / .18), var(--shadow-sm);
}
html.dark .browser-frame.product-frame { box-shadow: 0 24px 48px -12px rgb(0 0 0 / .5); }
.browser-frame.product-frame .browser-frame__bar {
  height: 28px; padding: 0 12px; gap: 6px; display: flex; align-items: center;
  background: hsl(var(--muted)); border-bottom: 1px solid var(--shell-border);
}
.browser-frame.product-frame .browser-frame__bar span { width: 8px; height: 8px; border-radius: 999px; background: var(--ill-line); flex-shrink: 0; }
.browser-frame.product-frame .browser-frame__bar em {
  font-style: normal; font-size: 11px; color: var(--shell-muted); margin-left: 10px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0;
}
.browser-frame.product-frame .shot { aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; }

/* Element crops shown as callout cards */
.shot-crop {
  margin: 0; overflow: hidden; border-radius: 10px;
  border: 1px solid var(--shell-border); background: hsl(var(--card));
  box-shadow: var(--shadow-md);
}
html.dark .shot-crop { box-shadow: 0 12px 24px -8px rgb(0 0 0 / .45); }

/* Homepage hero: product stage — same column rhythm as copy (no floating center) */
.ermits-hero__visual { position: relative; }
.product-stage {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}
.product-stage::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -10% -6% -8% -4%;
  background: radial-gradient(closest-side, var(--brand-soft), transparent 72%);
  pointer-events: none;
}
.product-stage .stage-main { width: 100%; }
.product-stage .stage-callout { position: absolute; z-index: 1; }
.product-stage .stage-callout--a { width: 48%; left: -12px; bottom: -20px; }
.product-stage .stage-callout--b { width: 46%; right: -16px; top: -16px; }
.stage-caption {
  margin: 10px 0 0 !important;
  font-size: 12px;
  color: var(--shell-muted);
  text-align: left;
}
/* Stacked: align frame with copy, keep callouts off */
@media (max-width: 767px) {
  .product-stage .stage-callout { display: none; }
  .product-stage .stage-main .shot {
    aspect-ratio: 16 / 10;
    max-height: min(320px, 42vh);
    object-fit: cover;
    object-position: top center;
  }
  .stage-caption { margin-top: 8px !important; }
}
@media (max-width: 639px) {
  .product-stage .stage-main .shot { max-height: min(240px, 38vh); }
}
/* Side-by-side tablet: frame fills visual column */
@media (min-width: 768px) and (max-width: 1023px) {
  .product-stage .stage-callout { display: none; }
  .product-stage .stage-main .shot {
    aspect-ratio: 16 / 10;
    max-height: none;
    object-fit: cover;
    object-position: top center;
  }
}
/* Desktop: callout overlays allowed */
@media (min-width: 1024px) {
  .product-stage { padding: 0 8px 28px 0; }
  .product-stage .stage-callout--a { width: 46%; left: -20px; bottom: -24px; }
  .stage-caption { margin-top: 28px !important; text-align: right; }
}

/* Four surfaces cards */
body.ermits-marketing main .surface-shot { margin-top: 16px; box-shadow: var(--shadow-sm) !important; }
body.ermits-marketing main .surface-shot .browser-frame__bar { height: 22px !important; }
body.ermits-marketing main .surface-shot .browser-frame__bar em { display: none; }

/* Page-header spots: real crop or a small framed screen */
.page-header__visual .shot-crop, .page-header__visual .spot-frame { max-width: 300px; margin-left: auto; }
.page-header__visual .shot-crop .shot { max-height: 180px; object-fit: cover; object-position: top left; }
@media (max-width: 1023px) {
  .page-header__visual .shot-crop, .page-header__visual .spot-frame { margin: 0 auto; }
  .page-header__visual .shot-crop .shot { max-height: 198px; }
  .page-header__visual .spot-frame .shot { max-height: 172px; }
}

/* How it works: step thumbnails + report frame */
.step-thumb { margin: 14px auto 0 !important; max-width: 280px; box-shadow: var(--shadow-md) !important; }
.step-thumb .browser-frame__bar { height: 20px !important; }
.step-thumb .browser-frame__bar em { display: none; }
@media (max-width: 639px) { .step-thumb { display: none !important; } }
.stage-split .shell-split__visual .product-frame { max-width: 440px; margin: 0 auto; }

/* Labelled trust diagram */
.ill .i-label { fill: var(--ill-ink); font: 600 14px/1 Inter, ui-sans-serif, system-ui, sans-serif; }
.ill .i-sublabel { fill: var(--ill-muted); font: 500 12px/1 Inter, ui-sans-serif, system-ui, sans-serif; }
/* (hero product-stage rules consolidated above — do not re-center on narrow viewports) */

/* ═══ v5: concept-card spot illustrations (96×72 duotone) ════════════════════ */
.ci { display: block; width: 88px; height: 66px; overflow: visible; }
.ci .f { fill: var(--brand-soft); stroke: var(--brand); stroke-width: 1.75; stroke-linejoin: round; stroke-linecap: round; }
.ci .s { fill: none; stroke: var(--brand); stroke-width: 1.75; stroke-linejoin: round; stroke-linecap: round; }
.ci .n { fill: none; stroke: var(--ill-line); stroke-width: 1.75; stroke-linejoin: round; stroke-linecap: round; }
.ci .b { fill: var(--brand); }
.ci .a { fill: var(--ill-accent); }
html.dark .ci .f { fill: color-mix(in srgb, var(--brand) 22%, transparent); }

/* Top tinted panel (grids of 3–4) */
body.ermits-marketing main .modern-card.has-ci { padding-top: 0 !important; overflow: hidden; }
.ci-panel {
  display: flex; align-items: center; justify-content: center;
  height: 96px; margin: 0 -20px 16px;
  background: var(--brand-soft);
  border-bottom: 1px solid color-mix(in srgb, var(--brand) 14%, transparent);
}
@media (max-width: 639px) {
  .ci-panel { height: 72px; margin: 0 -16px 14px; }
  .ci-panel .ci { width: 64px; height: 48px; }
}
body.ermits-marketing main .modern-card.has-ci h3 { margin: 0 0 6px !important; }
/* Pricing tier header panel */
body.ermits-marketing main div[data-tier] { overflow: hidden; }
.ci-panel--plan { margin: -20px -16px 16px; height: 88px; }

/* Left square (2-col / list cards) */
.ci-square {
  flex: 0 0 72px; width: 72px; height: 72px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-soft);
}
.ci-square .ci { width: 60px; height: 45px; }
body.ermits-marketing main .modern-card.has-ci-left { display: flex; gap: 16px; align-items: flex-start; }
.has-ci-left .ci-body { min-width: 0; flex: 1; }
.ci-item { gap: 16px !important; }
@media (max-width: 479px) {
  .ci-square { flex-basis: 56px; width: 56px; height: 56px; }
  .ci-square .ci { width: 48px; height: 36px; }
}

/* Features persona tabs — compact chips (icon + label in one row) */
body.ermits-marketing main #value-proposition [role="tablist"] {
  gap: 8px !important;
  margin-bottom: 1.25rem !important;
}
body.ermits-marketing main .vp-tab.has-ci-tab {
  flex-direction: row !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 8px 12px !important;
  min-width: 0;
  min-height: 2.5rem;
  font-size: 0.8125rem !important;
  line-height: 1.2 !important;
  font-weight: 600 !important;
  justify-content: center;
}
.ci-tab {
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
  width: 36px; height: 28px; border-radius: 6px;
  background: color-mix(in srgb, var(--brand) 16%, hsl(var(--card)));
  border: 1px solid color-mix(in srgb, var(--brand) 28%, transparent);
}
.ci-tab .ci { width: 28px; height: 21px; }
/* Active tab must also be .bg-primary (orange). Do not invert on aria-selected alone —
   default markup can be vp-tab-active + bg-card, which made white icons disappear. */
body.ermits-marketing main .vp-tab.bg-primary .ci-tab {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.35);
}
body.ermits-marketing main .vp-tab.bg-primary .ci .f {
  fill: rgba(255, 255, 255, 0.18);
  stroke: #fff;
}
body.ermits-marketing main .vp-tab.bg-primary .ci .s,
body.ermits-marketing main .vp-tab.bg-primary .ci .n {
  stroke: #fff;
}
body.ermits-marketing main .vp-tab.bg-primary .ci .b {
  fill: #fff;
}
@media (max-width: 639px) {
  body.ermits-marketing main .vp-tab.has-ci-tab {
    flex: 1 1 calc(50% - 8px);
    padding: 7px 10px !important;
    font-size: 0.75rem !important;
  }
  .ci-tab { width: 32px; height: 24px; }
  .ci-tab .ci { width: 24px; height: 18px; }
}
/* Card panels trimmed: 80px desktop / 64px mobile (all pages) */
.ci-panel { height: 80px; margin-bottom: 14px; }
.ci-panel .ci { width: 80px; height: 60px; }
.ci-panel--plan { height: 80px; }
@media (max-width: 639px) {
  .ci-panel, .ci-panel--plan { height: 64px; }
  .ci-panel .ci { width: 56px; height: 42px; }
}
body.ermits-marketing main .modern-card.has-ci-left h3 { margin: 4px 0 8px !important; }
/* Deploy-your-way cards: left square beside the title, list full width below */
.ci-square--sm { flex-basis: 64px; width: 64px; height: 56px; }
.ci-square--sm .ci { width: 56px; height: 42px; }
body.ermits-marketing main .deploy-card .card-head { margin-bottom: 12px; gap: 14px; }
body.ermits-marketing main .deploy-card .card-head h3 { margin: 0 !important; }
/* Fragmented / Structured: square beside the label, list full width (less wrapping) */
body.ermits-marketing main .compare .modern-card.has-ci-left { display: grid !important; grid-template-columns: 64px minmax(0, 1fr); column-gap: 14px; row-gap: 12px; align-items: center; }
.compare .has-ci-left .ci-square { width: 64px; height: 56px; }
.compare .has-ci-left .ci-square .ci { width: 56px; height: 42px; }
.compare .has-ci-left .ci-body { display: contents; }
.compare .has-ci-left .compare__label { margin: 0 !important; }
.compare .has-ci-left ul { grid-column: 1 / -1; }
/* CTA band a little tighter (wins over earlier desktop rule) */
@media (min-width: 1024px) { body.ermits-marketing main .shell-cta-band { padding: 16px 22px !important; } }
@media (min-width: 1024px) { body.ermits-marketing main .container-main-content > section.shell-cta-band { padding: 16px 22px !important; } }
.cta-points { margin-top: 14px; }
/* Home compaction (round 6) */
.compare ul { gap: 8px; }
.compare li { font-size: 14.5px; line-height: 1.45; }
.journey-strip { margin-top: 16px; gap: 10px; }
@media (min-width: 1024px) { .ermits-hero .stage-caption { margin-top: 28px !important; text-align: right; } }
@media (max-width: 1023px) { .ermits-hero .stage-caption { margin-top: 8px !important; text-align: left; } }
@media (max-width: 639px) {
  body.ermits-marketing main .shell-cta-band { padding: 18px 14px !important; }
  .compare li { font-size: 14px; }
  #sector-threat .sector-heading { font-size: 1.375rem !important; }
}
@media (min-width: 1024px) { body.ermits-marketing.page-index main .shell-intro > p { max-width: 860px; } }
body.ermits-marketing main .surface-shot { margin-top: 12px; }
@media (min-width: 640px) { #built-differently .wyg-list li { padding: 10px 12px; } }
.cta-points > div { padding: 14px; }
@media (max-width: 639px) {
  .journey-strip p { font-size: 14px; }
  #built-differently .shell-footnote { font-size: 13px; }
}

/* Pricing CTA: beat global CTA compaction — more air */
body.ermits-marketing.page-pricing main .shell-cta-band,
body.ermits-marketing.page-pricing main .container-main-content > section.shell-cta-band {
  padding: 28px 18px !important;
  margin-top: 28px !important;
  margin-bottom: 28px !important;
}
@media (min-width: 1024px) {
  body.ermits-marketing.page-pricing main .shell-cta-band,
  body.ermits-marketing.page-pricing main .container-main-content > section.shell-cta-band {
    padding: 36px 32px !important;
  }
}
@media (max-width: 639px) {
  body.ermits-marketing.page-pricing main .shell-cta-band,
  body.ermits-marketing.page-pricing main .container-main-content > section.shell-cta-band {
    padding: 28px 18px !important;
  }
}
body.ermits-marketing.page-pricing main .shell-cta-band h2 {
  margin-bottom: 12px !important;
}
body.ermits-marketing.page-pricing main .shell-cta-band > h2 + p {
  font-size: 0.9375rem !important;
  line-height: 1.55 !important;
  max-width: 26rem !important;
  margin: 0 auto 20px !important;
}
body.ermits-marketing.page-pricing main .shell-cta-band .flex:has(> .btn) {
  margin-top: 0 !important;
  gap: 12px !important;
}
body.ermits-marketing.page-pricing main .shell-cta-band > p.text-xs {
  margin-top: 16px !important;
}
/* ── Home narrative (problem → how it works → your data → start) ─────────── */
body.ermits-marketing main .surface-verb { font-weight: 600; color: var(--shell-fg); }
body.ermits-marketing main .deploy-card > p { margin: 0 !important; font-size: 15px; line-height: 1.55; }
body.ermits-marketing.page-index main #sector-threat .shell-intro { margin-bottom: var(--stack-intro) !important; }
body.ermits-marketing.page-index main #sector-threat .sector-actions { margin-top: 16px; }
body.ermits-marketing.page-index main #deployment .shell-footnote { margin-top: 20px; }
/* Step cards: screenshots line up across the row whatever the text length */
body.ermits-marketing.page-index main #solution .surface-shot { margin-top: auto; }
body.ermits-marketing.page-index main #solution .shell-card-flex > p { margin-bottom: 16px !important; }
body.ermits-marketing.page-index main #solution .shell-card-flex > .shell-card-cta { margin-top: 0 !important; }
/* Home sector carousel: wider and shorter (source and frameworks share a row) */
body.ermits-marketing.page-index main #sector-threat .sector-card {
  display: grid !important; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 16px;
  max-width: 760px; padding: 14px 16px !important;
}
body.ermits-marketing.page-index main #sector-threat .sector-card > .sector-card__top,
body.ermits-marketing.page-index main #sector-threat .sector-card > .sector-stats,
body.ermits-marketing.page-index main #sector-threat .sector-card > #sector-threat-dots { grid-column: 1 / -1; }
body.ermits-marketing.page-index main #sector-threat .sector-threat-source { grid-column: 1; align-self: center; }
body.ermits-marketing.page-index main #sector-threat .sector-threat-frameworks { grid-column: 2; justify-content: flex-end; align-self: center; }
body.ermits-marketing.page-index main #sector-threat .sector-stat { padding: 8px 10px; }
body.ermits-marketing.page-index main #sector-threat .sector-stat__value { font-size: 16px; }
body.ermits-marketing.page-index main #sector-threat .sector-nav button { width: 32px; height: 32px; }
body.ermits-marketing.page-index main #sector-threat-card .sector-threat-icon { flex-basis: 36px; height: 36px !important; }
@media (max-width: 639px) {
  body.ermits-marketing.page-index main #sector-threat .sector-threat-source,
  body.ermits-marketing.page-index main #sector-threat .sector-threat-frameworks { grid-column: 1 / -1; justify-content: flex-start; }
}
@media (max-width: 479px) { body.ermits-marketing.page-index main #sector-threat .sector-stat { padding: 8px 6px; } body.ermits-marketing.page-index main #sector-threat .sector-stat__value { font-size: 14px; } }
/* FAQ: compact question list */
body.ermits-marketing main .faq-list { max-width: 820px; margin-left: auto; margin-right: auto; }
body.ermits-marketing main .faq-q { margin-bottom: 8px; }
body.ermits-marketing main .faq-q .trust-collapsible-summary { padding: 12px 16px; }
body.ermits-marketing main .faq-q__title { margin: 0 !important; font-size: 1rem !important; font-weight: 600 !important; line-height: 1.4 !important; letter-spacing: 0 !important; }
body.ermits-marketing main .faq-q__answer { border: 1px solid var(--shell-border); border-top: 0; border-radius: 0 0 var(--radius-md) var(--radius-md); background: hsl(var(--card)); padding: 12px 16px 14px; }
body.ermits-marketing main .faq-q__answer p { margin: 0 !important; font-size: 15px; line-height: 1.6; color: var(--shell-muted); }

/* Contact page: form + compact sidebar */
body.ermits-marketing main .contact-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; max-width: 1040px; margin: 0 auto 24px; }
@media (min-width: 900px) { body.ermits-marketing main .contact-grid { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; } }
body.ermits-marketing main .contact-form-card { padding: 24px; }
body.ermits-marketing main .contact-form-card select { appearance: auto; }
body.ermits-marketing main .contact-aside { display: grid; gap: 12px; }
body.ermits-marketing main .contact-aside-card { padding: 16px 18px; }
body.ermits-marketing main .contact-aside-title { font-size: 1rem; font-weight: 600; margin: 0 0 8px; color: hsl(var(--foreground)); }
body.ermits-marketing main .contact-aside-card p,
body.ermits-marketing main .contact-links li { font-size: 14px; line-height: 1.5; color: hsl(var(--muted-foreground)); margin: 0; }
body.ermits-marketing main .contact-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
body.ermits-marketing main .contact-links a { color: hsl(var(--primary)); font-weight: 500; }
body.ermits-marketing main .contact-grid { margin-top: 28px; }
body.ermits-marketing main .teams-card { max-width: 760px; margin: 0 auto; padding: 20px 24px; text-align: center; }
body.ermits-marketing main .teams-card h2 { font-size: 1.25rem !important; line-height: 1.3; margin: 0 0 6px !important; }
body.ermits-marketing main .teams-card p { font-size: 15px; margin: 0 0 14px; }
body.ermits-marketing main .intel-card { max-width: 900px; margin: 0 auto; padding: 20px 24px; }
body.ermits-marketing main .intel-card h2 { font-size: 1.25rem !important; margin: 0 0 4px !important; }
body.ermits-marketing main .intel-card > p { margin: 0 0 14px; }
body.ermits-marketing main .intel-card .btn { min-height: 64px; padding: 10px 16px; line-height: 1.3; }
body.cc-risk-review-page .rr-hub-section { margin-top: 24px; }

/* Pricing feature comparison: fit the screen instead of scrolling sideways */
@media (max-width: 900px) {
  body.ermits-marketing main section[aria-label="Feature comparison"] .overflow-x-auto { overflow-x: visible !important; }
  body.ermits-marketing main section[aria-label="Feature comparison"] .modern-card { padding: 16px 10px !important; }
  body.ermits-marketing main section[aria-label="Feature comparison"] table { table-layout: fixed; width: 100%; min-width: 0 !important; }
  body.ermits-marketing main section[aria-label="Feature comparison"] th,
  body.ermits-marketing main section[aria-label="Feature comparison"] td { padding: 8px 3px !important; font-size: 11.5px; overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
  body.ermits-marketing main section[aria-label="Feature comparison"] thead th { font-size: 10.5px; line-height: 1.25; hyphens: manual; overflow-wrap: normal; }
  body.ermits-marketing main section[aria-label="Feature comparison"] th:first-child,
  body.ermits-marketing main section[aria-label="Feature comparison"] td:first-child { width: 30%; padding-left: 6px !important; }
  body.ermits-marketing main section[aria-label="Feature comparison"] td svg { width: 16px; height: 16px; }
}
@media (max-width: 599px) {
  body.ermits-marketing main section[aria-label="Feature comparison"] th:first-child,
  body.ermits-marketing main section[aria-label="Feature comparison"] td:first-child { width: 34%; font-size: 11px; }
  body.ermits-marketing main section[aria-label="Feature comparison"] td:not(:first-child) { font-size: 9.5px; line-height: 1.3; overflow-wrap: normal; word-break: normal; }
  body.ermits-marketing main section[aria-label="Feature comparison"] thead th { font-size: 9.5px; }
}
@media (max-width: 599px) {
  body.ermits-marketing main section[aria-label="Feature comparison"] th:first-child,
  body.ermits-marketing main section[aria-label="Feature comparison"] td:first-child { width: 29%; }
  body.ermits-marketing main section[aria-label="Feature comparison"] td:not(:first-child),
  body.ermits-marketing main section[aria-label="Feature comparison"] thead th { overflow-wrap: break-word !important; hyphens: auto; -webkit-hyphens: auto; }
}
