/* Self-hosted fonts (latin + latin-ext). Do not load from fonts.googleapis.com. */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/outfit-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/outfit-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('fonts/outfit-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('fonts/outfit-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/source-sans-3-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/source-sans-3-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/source-sans-3-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/source-sans-3-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/source-sans-3-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/source-sans-3-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #F5F6F8;
  --surface: #FFFFFF;
  --surface-2: #F8F9FB;
  --card: #FFFFFF;
  --primary: #E31C23;
  --primary-hover: #C4141A;
  --text: #111827;
  --muted: #4B5563;
  --border: #E5E8EC;
  --shadow: 0 8px 24px rgba(17, 24, 39, 0.06);
  --font: 'Source Sans 3', sans-serif;
  --display: 'Outfit', sans-serif;
  --shell: 1120px;
  --gutter: 24px;
  --section-y: 72px;
  --stack: 28px;
  --measure: 40rem;
}

html {
  scroll-behavior: auto;
  /* In-page jumps (skip link, #find, blog heading anchors) land below the sticky header (~68px);
     --fhx-consent-h (filhex-marketing.js) keeps them above the consent bar while it is open. */
  scroll-padding-top: 80px;
  scroll-padding-bottom: var(--fhx-consent-h, 0px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  max-width: 100%;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

/* No double-tap zoom delay on tap targets. */
a,
button,
summary,
.btn {
  touch-action: manipulation;
}

/* <main> (skip link, FocusOnNavigate) and the page h1 (filhex-page-nav.js) take focus only as a reading start point. */
main { outline: none; }
h1[tabindex="-1"]:focus { outline: none; }

/* Fill viewport under the sticky footer so short pages don't leave a bare site-bg strip */
#main {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  width: 100%;
}
#main > :last-child {
  flex: 1 1 auto;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 100;
  padding: 8px 12px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  border-radius: 8px;
}
.skip-link:focus {
  top: 12px;
}

/* Marketing chrome (MainLayout) — light / obilet-inspired */
.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}
.site a { color: var(--primary); }
.site a:hover { color: var(--primary-hover); }
.site a.btn-primary,
.site a.btn-primary:hover { color: #fff; }
.site a.btn-ghost,
.site a.btn-ghost:hover { color: var(--text); }
.site a.logo,
.site a.logo:hover { color: var(--text); }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
  box-sizing: border-box;
}

/* Never let typography helpers shrink the page shell */
.shell.prose,
.shell.contact-grid,
.shell.band-inner,
.shell.hero-inner,
.shell.top-inner,
.shell.foot-inner,
.shell.consent-inner {
  max-width: var(--shell);
}

.top {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}
.top-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  padding-bottom: 12px;
  gap: clamp(12px, 2vw, 28px);
}
.top-inner .logo {
  flex-shrink: 0;
}
.top-inner nav {
  flex: 1 1 auto;
  min-width: 0;
}
.logo {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
  font-size: 1.45rem;
  text-decoration: none;
  line-height: 1;
}
.site .logo { color: var(--text); }
.site .logo:hover { color: var(--text); text-decoration: none; }
.logo-x { color: var(--primary); }
.nav-burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  place-items: center;
  gap: 5px;
  padding: 10px;
  box-sizing: border-box;
}
.nav-burger span {
  display: block;
  height: 2px;
  width: 18px;
  background: var(--text);
}
.top nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.top nav a {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
}
.site .top nav a { color: var(--muted); }
.site .top nav a:hover { color: var(--text); text-decoration: none; }
.nav-cta {
  background: var(--primary) !important;
  color: #fff !important;
  padding: 9px 16px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(227, 28, 35, 0.25);
}
.nav-cta:hover { background: var(--primary-hover) !important; text-decoration: none !important; }
.hero {
  background:
    radial-gradient(ellipse 70% 55% at 92% 8%, rgba(227, 28, 35, 0.12), transparent 55%),
    #FFFFFF;
  border-bottom: 1px solid var(--border);
}
.hero-inner {
  padding-top: var(--section-y);
  padding-bottom: calc(var(--section-y) + 16px);
}
.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 16px;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(1.85rem, 4.4vw, 3.1rem);
  font-weight: 700;
  margin: 0 0 18px;
  letter-spacing: -0.03em;
  line-height: 1.12;
  max-width: min(22ch, 100%);
  color: var(--text);
}
.page-top h1 {
  font-family: var(--display);
  font-size: clamp(1.75rem, 3.8vw, 2.6rem);
  font-weight: 700;
  margin: 0 0 18px;
  letter-spacing: -0.03em;
  line-height: 1.12;
  max-width: none;
  color: var(--text);
}
.lede {
  color: var(--muted);
  font-size: 1.125rem;
  max-width: min(var(--measure), 100%);
  margin: 0 0 28px;
  line-height: 1.55;
}
.page-top .lede {
  max-width: none;
}
.hero-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: min(var(--measure), 100%);
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 100%;
}
.cta-row .btn {
  max-width: 100%;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  padding: 12px 20px;
  border-radius: 10px;
  text-decoration: none !important;
  border: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 2px 10px rgba(227, 28, 35, 0.22); }
.btn-primary:hover { background: var(--primary-hover); color: #fff; }
.btn-sm { padding: 6px 12px; font-size: 0.85rem; border-radius: 8px; }
.btn-ghost {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
}
.site .btn-ghost { color: var(--text); }
.site .btn-ghost:hover { background: var(--surface-2); color: var(--text); border-color: #D1D5DB; }

.page-top {
  padding-top: 56px;
  padding-bottom: 48px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.page-top .lede { margin-bottom: 24px; }

/* Catalog landing (brand / ECU / solution) — tighter hero → body handoff */
.page-top:has(+ .section-alt) {
  padding-bottom: 40px;
}
.page-top + .section-alt {
  padding-top: 48px;
}

/* Stacked content blocks inside gray catalog sections */
.catalog-landing .landing-block + .landing-block {
  margin-top: 36px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}
.catalog-landing .landing-block > h2 {
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.5vw, 1.55rem);
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}
.catalog-landing .landing-block > p {
  margin: 0 0 16px;
  max-width: none;
}
.catalog-landing .landing-block > ul,
.catalog-landing .landing-block > ol {
  margin: 0 0 16px;
  padding-left: 1.25rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: none;
}
.catalog-landing .landing-block .catalog-search {
  margin-top: 4px;
}
.catalog-landing .chip-cloud {
  margin-top: 4px;
}

/* Solution category breakdown for one ECU. Segment widths are real counts, so the
   bar's shape is per-page data rather than decoration. */
.coverage {
  margin: 0 0 20px;
}
.coverage-caption {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 8px;
}
.coverage-track {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  overflow: hidden;
}
.coverage-track svg {
  display: block;
  width: 100%;
  height: 12px;
}
.coverage-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}
.coverage-legend li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}
.coverage-swatch {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-radius: 6px;
  /* Inset rather than a border so the lightest ramp steps stay visible against the
     gray section without shrinking the 10px swatch. */
  box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.18);
}
.coverage-num {
  color: var(--text);
  font-weight: 700;
}

/* fill paints the SVG segment, background the legend swatch. */
.coverage-seg-1 { fill: var(--primary); background: var(--primary); }
.coverage-seg-2 { fill: #111827; background: #111827; }
.coverage-seg-3 { fill: #4B5563; background: #4B5563; }
.coverage-seg-4 { fill: #7A828F; background: #7A828F; }
.coverage-seg-5 { fill: #A9B0BA; background: #A9B0BA; }
.coverage-seg-6 { fill: #CBD1D8; background: #CBD1D8; }
.catalog-landing .faq-list {
  margin-top: 4px;
}

/* Balanced two-column page intros (copy + visual) */
.page-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}
.page-copy {
  min-width: 0;
}
.page-visual {
  min-width: 0;
  width: 100%;
}
.page-visual .fx-preview {
  width: 100%;
}

.crumbs {
  margin: 0 0 20px;
  font-size: 0.88rem;
}
.crumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  color: var(--muted);
}
.crumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 10px;
  color: var(--border);
}
.crumbs a { color: var(--muted); font-weight: 600; }
.crumbs a:hover { color: var(--text); }
.crumbs [aria-current="page"] { color: var(--text); font-weight: 700; }
.prose {
  width: 100%;
  max-width: none;
}
.prose h2 {
  font-family: var(--display);
  font-size: 1.35rem;
  margin: 28px 0 10px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-family: var(--display);
  font-size: 1.08rem;
  margin: 22px 0 8px;
}
.prose code {
  font-size: 0.92em;
  padding: 1px 5px;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.prose p, .prose li {
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 14px;
  max-width: none;
}
.prose a { font-weight: 600; }
.prose .flow-list,
.prose .contact-list {
  max-width: none;
}
.prose table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin: 0 0 20px;
  font-size: 0.95rem;
  table-layout: fixed;
}
.prose th,
.prose td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border: 1px solid var(--border);
  color: var(--muted);
  word-break: break-word;
}
.prose th {
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
}
/* Row labels are <th scope="row"> for screen readers; they keep the plain cell look. */
.prose tbody th[scope="row"] {
  background: none;
  color: var(--muted);
  font-weight: 400;
}
/* Blog heading anchors (Markdig auto ids): small gap on top of html's scroll-padding-top. */
.prose :is(h2, h3)[id] {
  scroll-margin-top: 12px;
}

.sales-email {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  color: var(--primary);
  text-decoration: none;
  white-space: nowrap;
}
.sales-email:hover { text-decoration: underline; color: var(--primary-hover, #C4141A); }
.contact-email-line { margin: 0 0 8px; }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr);
  gap: 40px;
  align-items: start;
}
.contact-list {
  margin: 0 0 16px;
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.55;
}
.contact-list li { margin-bottom: 8px; }
.contact-aside h2 {
  font-family: var(--display);
  font-size: 1.15rem;
  margin: 0 0 14px;
}
.contact-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.contact-links a {
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}
.contact-links a:hover { text-decoration: underline; }
.foot-social {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}
.foot-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--border);
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.foot-social a:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: #FFF5F5;
}
.foot-social .social-icon {
  display: block;
}
.contact-social {
  margin: 4px 0 12px;
}

.whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #128C7E;
  text-decoration: none;
  font-weight: 600;
}
.whatsapp-link:hover { color: #075E54; text-decoration: underline; }
.whatsapp-link .wa-icon { flex: 0 0 auto; }

a.btn.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}
a.btn.whatsapp-btn .wa-icon { color: #128C7E; }

.whatsapp-fab-rail {
  position: fixed;
  inset-inline: 0;
  bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  z-index: 35;
  pointer-events: none;
}
.whatsapp-fab-shell {
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
}
.whatsapp-fab {
  position: relative;
  pointer-events: auto;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #25D366;
  color: #fff;
  box-shadow: 0 6px 18px rgba(17, 24, 39, 0.18);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.whatsapp-fab:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(17, 24, 39, 0.22);
}
.whatsapp-fab .wa-icon { width: 26px; height: 26px; }

@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .whatsapp-fab-rail { bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
}

.info-card-h {
  font-family: var(--display);
  font-size: 1.05rem;
  margin: 0 0 8px;
}
.info-card-h a { color: var(--text); }
.info-card-h a:hover { color: var(--primary); }

.consent-bar {
  position: sticky;
  bottom: 0;
  z-index: 40;
  background: #FFFFFF;
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 24px rgba(17, 24, 39, 0.08);
  padding: 16px 0 calc(16px + env(safe-area-inset-bottom, 0px));
}
.consent-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.consent-inner p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 62ch;
  line-height: 1.45;
}
.consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.consent-actions .btn {
  flex: 1 1 auto;
  min-width: 7.5rem;
}

.section {
  padding: var(--section-y) 0;
}
.section-alt {
  background: #EEF0F3;
  border-block: 1px solid var(--border);
}
.section-surface {
  background: var(--surface);
  border-block: 1px solid var(--border);
}
.band {
  background: var(--surface);
  border-block: 1px solid var(--border);
}
.site .band {
  background: #FFFFFF;
  box-shadow: inset 0 1px 0 rgba(227, 28, 35, 0.08);
}
.band-inner {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}
.band-inner .section-lede {
  margin-bottom: 24px;
}

.section h2,
.band-inner h2 {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
  max-width: min(28ch, 100%);
}
.section-lede {
  color: var(--muted);
  margin: 0 0 var(--stack);
  max-width: none;
  font-size: 1.05rem;
  line-height: 1.55;
}
.section-cta { margin: 28px 0 0; }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, 1fr);
  counter-reset: step;
}
.steps li {
  background: var(--card, var(--surface));
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  counter-increment: step;
  position: relative;
  box-shadow: var(--shadow);
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--display);
  font-weight: 800;
  color: var(--primary);
  font-size: 0.85rem;
  margin-bottom: 4px;
}
.steps strong {
  font-family: var(--display);
  font-size: 1.1rem;
}
.steps span { color: var(--muted); font-size: 0.95rem; line-height: 1.45; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.profiles { grid-template-columns: repeat(2, 1fr); }
.info-card {
  background: var(--card, var(--surface));
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 20px;
  box-shadow: var(--shadow);
}
.info-card h3 {
  font-family: var(--display);
  font-size: 1.05rem;
  margin: 0 0 8px;
}
/* Card titles that sit directly under the H1 are <h2> (no skipped level) with the h3 card look. */
.section .info-card-title {
  font-family: var(--display);
  font-size: 1.05rem;
  margin: 0 0 8px;
  letter-spacing: normal;
  max-width: none;
}
.info-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 720px) {
  .compare {
    grid-template-columns: 1fr;
  }
}
.chip-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip-list li {
  border: 1px solid var(--border);
  background: var(--card, var(--surface));
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 600;
}
.chip-list li a {
  color: var(--primary);
  text-decoration: none;
}
.chip-list-emphasis li {
  border-color: rgba(227, 28, 35, 0.35);
  color: var(--text);
  background: #fff;
}

.chip-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.catalog-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
  margin: 0 0 12px;
}

/* Space holder while HomeCatalogStats streams its numbers in. */
.catalog-stats.is-pending { visibility: hidden; }

.catalog-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.catalog-stat-value {
  font-family: var(--display);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.catalog-stat-label {
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.catalog-index-summary {
  margin: 0;
}

.catalog-search {
  margin: 12px 0 16px;
}

.catalog-search-input {
  width: 100%;
  max-width: 28rem;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  background: var(--surface);
  color: var(--text);
}

.catalog-search-input:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-color: var(--primary);
}

.catalog-search-meta {
  margin: 8px 0 0;
  font-size: 0.9rem;
}

/* Brand page ECU filter (filhex-marketing.js [data-chip-filter]): hidden chips must not keep inline-flex. */
.chip-cloud > [hidden] { display: none; }
/* Long chip lists (hundreds of ECUs) skip rendering while off-screen. */
.chip-cloud--long {
  content-visibility: auto;
  contain-intrinsic-size: auto 640px;
}

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

a.sol-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card, var(--surface));
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: var(--shadow);
}

a.sol-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
}

button.sol-chip,
button.sol-chip-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card, var(--surface));
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: var(--shadow);
  cursor: pointer;
}

button.sol-chip:hover,
button.sol-chip-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.sol-chip-cat {
  margin-left: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Interactive catalog finder (/catalog) */
.catalog-finder-heading {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  line-height: 1.15;
}

.catalog-finder {
  margin-top: 8px;
  max-width: 52rem;
}

.catalog-finder-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.catalog-finder-omni {
  flex: 1 1 16rem;
  max-width: none;
}

.catalog-finder-filters {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px 16px;
  margin: 8px 0 4px;
}

.catalog-finder-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.catalog-finder-field label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.catalog-finder-select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  background: var(--surface);
  color: var(--text);
}

.catalog-finder-select:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-color: var(--primary);
}

.catalog-finder-select:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.catalog-finder-suggestions {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow);
  max-height: 280px;
  overflow: auto;
  overscroll-behavior: contain;
}

/* role="option" rows of the combobox (CatalogFinder); keyboard focus stays in the input (aria-activedescendant). */
.catalog-finder-suggestion {
  display: flex;
  align-items: baseline;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
  color: var(--text);
}

.catalog-finder-suggestion:last-child {
  border-bottom: 0;
}

.catalog-finder-suggestion:hover {
  background: rgba(227, 28, 35, 0.06);
}

/* Active option (arrow keys): tint plus a red edge bar, so it reads without colour alone. */
.catalog-finder-suggestion.is-active {
  background: rgba(227, 28, 35, 0.08);
  box-shadow: inset 3px 0 0 var(--primary);
}

.catalog-finder-suggestion-kind {
  flex: 0 0 auto;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--primary);
  min-width: 4.5rem;
}

.catalog-finder-suggestion-label {
  font-weight: 600;
  font-size: 0.95rem;
}

.catalog-finder-result {
  margin-top: 28px;
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.catalog-finder-result--partial {
  padding-top: 18px;
}

.catalog-finder-result-title {
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 4px 0 8px;
  line-height: 1.2;
}

.catalog-finder-result-lede {
  margin: 0 0 16px;
  max-width: 40rem;
}

.catalog-finder-result-block h4 {
  font-family: var(--display);
  font-size: 0.95rem;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

.catalog-finder-credit {
  margin: 18px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(227, 28, 35, 0.28);
  background: rgba(227, 28, 35, 0.05);
}

.catalog-finder-credit p {
  margin: 0;
  font-size: 0.95rem;
}

.catalog-finder-cta {
  margin-top: 18px;
}

.catalog-finder-trust {
  margin-top: 12px;
}

.catalog-finder-hub {
  margin: 14px 0 0;
  font-size: 0.9rem;
}

.catalog-finder-hub a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.catalog-finder-hub a:hover {
  text-decoration: underline;
}
.solution-groups {
  display: grid;
  gap: 28px;
}
.solution-group h3 {
  font-family: var(--display);
  font-size: 1.05rem;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.flow-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
  counter-reset: flow;
}
.flow-list li {
  counter-increment: flow;
  color: var(--muted);
  padding-left: 36px;
  position: relative;
  line-height: 1.45;
}
.flow-list li::before {
  content: counter(flow, decimal-leading-zero);
  position: absolute;
  left: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.78rem;
  color: var(--primary);
}
/* —— App screenshots (real Filhex.App captures in img/app) —— */
.fx-preview {
  margin: 0;
  min-width: 0;
  max-width: 100%;
}
.fx-shot {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  background: var(--surface);
}
.fx-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1280 / 768;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  background: var(--surface);
}
.how-video { margin: 0 0 32px; }
.prose .fx-preview { margin: 16px 0 28px; }
.fx-caption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}
.fx-walk {
  display: grid;
  gap: 28px;
  margin-top: 8px;
}
.fx-walk-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}
.fx-walk-row.is-flip {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
}
.fx-walk-row .fx-preview {
  width: 100%;
}
.fx-walk-copy h3 {
  font-family: var(--display);
  font-size: 1.15rem;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}
.fx-walk-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  max-width: 42ch;
}
@media (max-width: 960px) {
  .fx-walk-row,
  .fx-walk-row.is-flip {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .fx-walk-row.is-flip .fx-walk-copy { order: -1; }
}

.signup-grant {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: 12px;
  padding: 28px 28px 28px 24px;
  box-shadow: var(--shadow);
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}
.signup-grant-kicker {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
}
.signup-grant h2 {
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
  max-width: none;
}

.pack-pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 960px) {
  .pack-pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .pack-pricing-grid { grid-template-columns: 1fr; }
}

.pack-pricing-card {
  background: var(--card, var(--surface));
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 22px;
  box-shadow: var(--shadow);
}

.pack-pricing-amount {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 12px;
}

.pack-pricing-count {
  font-family: var(--display);
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1;
}

.pack-pricing-unit {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.01em;
}

.pack-pricing-price {
  font-family: var(--display);
  font-size: 1.65rem;
  font-weight: 700;
  margin: 0 0 10px;
}

.pack-pricing-meta {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
}

.pack-pricing-note {
  margin: 18px 0 0;
  font-size: 0.9rem;
}

/* Pack counts, prices and per-File prices line up across the cards. */
.pack-pricing-count,
.pack-pricing-price,
.pack-pricing-per,
.pack-pricing-meta {
  font-variant-numeric: tabular-nums;
}

.signup-grant p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  max-width: min(var(--measure), 100%);
}

.faq-list {
  display: grid;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.faq-list details {
  background: var(--card, var(--surface));
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px 16px;
  box-shadow: var(--shadow);
  min-width: 0;
  overflow: hidden;
}
.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  padding: 14px 0;
  list-style: none;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--primary);
  font-weight: 800;
  line-height: 1.2;
}
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.55;
  max-width: none;
  overflow-wrap: anywhere;
}

.foot {
  margin-top: auto;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
  background: #FFFFFF;
}

/* Short /download: grow last gray band inside the page wrapper */
.download-page {
  display: flex;
  flex-direction: column;
}
.download-page .download-tail {
  flex: 1 1 auto;
}

.foot-inner {
  display: grid;
  gap: 28px;
  padding-top: 40px;
  padding-bottom: 28px;
}
.foot-grid {
  display: grid;
  gap: 28px 32px;
  grid-template-columns: 1fr;
  align-items: start;
}
.foot-col-title {
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0 0 12px;
  line-height: 1.2;
}
.foot-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.site .foot-links a {
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
}
.site .foot-links a:hover {
  color: var(--text);
}
.foot-col-brand .logo-mini {
  margin-bottom: 2px;
}
.foot-brand-lede {
  margin: 10px 0 0;
  max-width: 36ch;
  line-height: 1.5;
}
.foot-brand-cta {
  margin-top: 14px;
}
.foot-brand-contact {
  margin: 14px 0 12px;
  font-size: 0.88rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}
.foot-brand-contact a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  font-size: inherit;
}
.foot-brand-contact a:hover {
  text-decoration: underline;
}
.foot-brand-contact .sales-email {
  font-size: inherit;
  font-weight: 600;
}
.foot-brand-sep {
  color: var(--border);
}
.foot-col-brand .foot-social {
  margin-top: 4px;
}
.foot-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.foot-bar-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}
.site .foot-bar-legal a {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
}
.site .foot-bar-legal a:hover {
  color: var(--text);
}
.foot-bar-copy {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}
.logo-mini {
  font-family: var(--display);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.01em;
  display: inline-block;
  font-size: 1.3rem;
  line-height: 1;
}

@media (min-width: 640px) {
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
  .foot-col-brand {
    grid-column: 1 / -1;
  }
}

@media (min-width: 900px) {
  .foot-grid {
    grid-template-columns: 1.25fr 1fr 1fr 1fr;
  }
  .foot-col-brand {
    grid-column: auto;
  }
}

.site .auth-wrap {
  background: linear-gradient(180deg, #FFF5F5 0%, var(--bg) 45%);
}
.site .auth-card {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}

.admin-shell {
  display: flex;
  min-height: 100vh;
  background: #F3F4F6;
  color: var(--text);
}
.admin-sidebar {
  position: sticky;
  top: 0;
  align-self: flex-start;
  width: 248px;
  flex-shrink: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: #111827;
  color: #E5E7EB;
  z-index: 40;
  overflow: auto;
}
.admin-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 16px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.admin-sidebar .admin-brand {
  font-family: var(--display);
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.05em;
  font-size: 1.05rem;
}
.admin-sidebar .admin-label {
  background: rgba(227, 28, 35, 0.2);
  color: #FCA5A5;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 7px;
  border-radius: 6px;
}
.admin-sidebar-hint { padding: 12px 16px; font-size: 0.88rem; }
.admin-sidebar-nav {
  flex: 1;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.admin-nav-section {
  border-radius: 8px;
}
.admin-nav-section-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #9CA3AF;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
}
.admin-nav-section-toggle:hover,
.admin-nav-section.is-current .admin-nav-section-toggle {
  color: var(--surface-2);
  background: rgba(255, 255, 255, 0.04);
}
.admin-nav-section .admin-dd-caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.65;
  transition: transform 0.15s ease;
}
.admin-nav-section.is-open .admin-dd-caret { transform: rotate(180deg); }
.admin-nav-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 4px 6px;
}
.admin-nav-links a {
  display: block;
  padding: 8px 10px 8px 12px;
  border-radius: 8px;
  color: #D1D5DB;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}
.admin-nav-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}
.admin-nav-links a.is-active {
  color: #fff;
  background: rgba(227, 28, 35, 0.35);
}
.admin-sidebar-foot {
  margin-top: auto;
  padding: 12px 12px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.admin-sidebar-home {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  color: #D1D5DB;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
}
.admin-sidebar-home:hover,
.admin-sidebar-home.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}
.admin-sidebar .admin-signout {
  width: 100%;
  margin: 0;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 8px 12px;
  font: inherit;
  font-weight: 600;
  color: #D1D5DB;
  cursor: pointer;
}
.admin-sidebar .admin-signout:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}
.admin-mobile-toggle {
  display: none;
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 45;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 8px;
  padding: 8px 12px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(17, 24, 39, 0.12);
}
.admin-dd-backdrop {
  position: fixed;
  inset: 0;
  z-index: 35;
  background: rgba(17, 24, 39, 0.4);
}
.admin-frame {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.admin-content {
  flex: 1;
  width: 100%;
  min-width: 0;
}
.admin,
.admin.admin-wide {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 24px 28px 40px;
  box-sizing: border-box;
}
.admin-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin: 16px 0 20px;
}
.admin-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 16px;
  margin-top: 8px;
}
.admin-panel-title {
  margin: 0;
  padding: 12px 14px 0;
  font-size: 0.95rem;
}
.admin-home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 22px;
}
.admin-home-card {
  display: block;
  padding: 18px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.admin-home-card:hover {
  border-color: #CBD5E1;
  box-shadow: 0 6px 18px rgba(17, 24, 39, 0.06);
}
.admin-home-card strong {
  display: block;
  margin: 4px 0 6px;
  font-size: 1.05rem;
}
.admin-home-card p { margin: 0; font-size: 0.88rem; }
.admin-home-kicker {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.admin h1 { font-family: var(--display); margin-top: 0; font-size: 1.55rem; }
.admin h2 { font-family: var(--display); font-size: 1.15rem; margin: 28px 0 12px; }
.admin label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin: 12px 0 6px;
}
.admin .token, .admin input {
  width: 100%;
  max-width: 520px;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
}
.admin .row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
  margin: 0 0 8px;
}
.admin .row input { max-width: 220px; width: auto; }
.admin-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.92rem;
  margin: 0;
  background: var(--surface);
}
.admin-table th, .admin-table td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
}
.admin-table th {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1;
}
.admin-table tbody tr {
  transition: background 0.12s ease;
}
.admin-table tbody tr:hover td {
  background: var(--surface-2);
}
.admin-table tbody tr:last-child td {
  border-bottom: none;
}
.admin-table tr.is-selected td { background: #FFF5F5; }
.admin-table tr.is-selected { outline: none; }
.admin-table tr.is-clickable { cursor: pointer; }
.admin-table .num { font-variant-numeric: tabular-nums; font-weight: 600; }

.admin-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
  margin-top: 14px;
}
.admin-panel-scroll {
  max-height: calc(100vh - 280px);
  min-height: 280px;
  overflow: auto;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 14px 0 0;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.admin-toolbar .search {
  flex: 1;
  min-width: 220px;
  max-width: none;
  width: auto;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  font: inherit;
}
.admin-toolbar select {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  font: inherit;
}
.admin-meta {
  margin: 10px 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}
.admin-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 0.88rem;
  color: var(--muted);
}
.admin-pager .pager-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.admin-pager .btn-sm {
  padding: 6px 12px;
  font-size: 0.85rem;
}

.admin-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: #EEF2F7;
  color: #374151;
}
.admin-badge.is-ok { background: #D1FAE5; color: #065F46; }
.admin-badge.is-warn { background: #FEF3C7; color: #92400E; }
.admin-badge.is-off { background: #F3F4F6; color: #6B7280; }
.admin-badge.is-err { background: #FEE2E2; color: #991B1B; }
.admin-badge.is-live { background: #DBEAFE; color: #1E40AF; }

.admin-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.45);
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  animation: admin-fade 0.15s ease;
}
.admin-modal {
  width: min(720px, 100%);
  max-height: min(90vh, 960px);
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 24px 48px rgba(17, 24, 39, 0.18);
  padding: 22px 24px 20px;
  animation: admin-rise 0.18s ease;
}
.admin-modal.admin-modal-wide {
  width: min(960px, 100%);
}
.admin-modal-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}
.admin-modal-head h2 {
  font-family: var(--display);
  font-size: 1.3rem;
  margin: 0;
  flex: 1;
}
.admin-modal-close {
  border: 1px solid var(--border);
  background: transparent;
  border-radius: 8px;
  width: 34px;
  height: 34px;
  cursor: pointer;
  font: inherit;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--muted);
}
.admin-modal-close:hover { color: var(--text); border-color: var(--muted); }
.admin-modal .admin-table { margin-top: 12px; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.admin-modal label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin: 12px 0 6px;
}
.admin-modal input:not([type="checkbox"]),
.admin-modal select {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
}
.admin-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

@keyframes admin-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes admin-rise {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.admin .err { color: var(--primary); font-weight: 600; }
.admin .ok { color: #059669; font-weight: 600; }
.admin .small { font-size: 0.88rem; }
.admin .check { display: flex; align-items: center; gap: 8px; text-transform: none; letter-spacing: 0; font-size: 0.95rem; margin-top: 12px; }
.admin input[type="checkbox"],
.admin input[type="radio"] {
  width: auto;
  max-width: none;
  padding: 0;
  margin: 0;
  flex: 0 0 auto;
  accent-color: var(--primary);
}
.admin .ok-inline { color: #059669; font-weight: 700; }
.admin .err-inline { color: var(--primary); font-weight: 700; }

@media (max-width: 960px) {
  .admin-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    transform: translateX(-105%);
    transition: transform 0.18s ease;
    box-shadow: 8px 0 28px rgba(17, 24, 39, 0.25);
  }
  .admin-sidebar.is-mobile-open {
    transform: translateX(0);
  }
  .admin-mobile-toggle { display: inline-flex; }
  .admin,
  .admin.admin-wide {
    padding: 64px 16px 32px;
  }
  .admin-panel-scroll {
    max-height: calc(100vh - 320px);
  }
}
.provider-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 8px; }
.provider-chip {
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  display: grid;
  gap: 4px;
  min-width: 200px;
  font: inherit;
}
.provider-chip.is-selected { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.provider-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 22px;
  margin: 16px 0;
}
.provider-card h2 { font-family: var(--display); margin: 0 0 8px; font-size: 1.35rem; }
.provider-card h3 { font-family: var(--display); margin: 0 0 8px; font-size: 1.05rem; }
.provider-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 16px;
}
.provider-grid label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin: 12px 0 6px;
}
.provider-grid input[type="text"],
.provider-grid input[type="password"],
.provider-grid input[type="number"],
.provider-grid input:not([type]) {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
}
.muted { color: var(--muted); }
.mono { font-family: ui-monospace, Consolas, monospace; font-size: 0.85rem; }

.auth-wrap {
  min-height: calc(100vh - 140px);
  display: grid;
  place-items: center;
  padding: 40px 24px;
  background: linear-gradient(180deg, #FFF5F5 0%, var(--bg) 45%);
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px 28px;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.06);
}
.auth-card .brand-sm {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0.04em;
  margin: 0 0 8px;
}
.auth-card h1 {
  font-family: var(--display);
  font-size: 1.6rem;
  margin: 0 0 8px;
}
.auth-card label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin: 14px 0 6px;
}
.auth-card input {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
}
.auth-card .btn-block { width: 100%; margin-top: 20px; }
.auth-card .center { text-align: center; margin-top: 18px; }
.auth-card .err { color: var(--primary); font-weight: 600; margin: 0 0 12px; }
.auth-card .field-error { margin: 6px 0 0; font-size: 0.88rem; }
.auth-card .field-hint { margin: 6px 0 0; font-size: 0.85rem; }
.auth-card p[tabindex="-1"]:focus { outline: none; }
.auth-card input[aria-invalid="true"] { border-color: var(--primary); }
.auth-card .ok { color: #059669; font-weight: 600; margin: 0 0 12px; }

#blazor-error-ui {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--primary);
  color: #fff;
  padding: 12px;
}

@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .compare,
  .page-split,
  .contact-grid { grid-template-columns: 1fr; }
  .page-split { gap: 28px; }
}

@media (max-width: 800px) {
  :root { --gutter: 16px; --section-y: 56px; }
  .shell { padding-inline: var(--gutter); }
  .hero-inner { padding-top: 56px; padding-bottom: 64px; }
  .section { padding: var(--section-y) 0; }
  .band-inner { padding-top: var(--section-y); padding-bottom: var(--section-y); }
  .page-top { padding-top: 40px; padding-bottom: 36px; }
  .page-top:has(+ .section-alt) { padding-bottom: 28px; }
  .page-top + .section-alt { padding-top: 40px; }
  .catalog-landing .landing-block + .landing-block {
    margin-top: 28px;
    padding-top: 28px;
  }
  .steps, .card-grid, .profiles { grid-template-columns: 1fr; }
  .cta-row .btn { width: 100%; }
  .consent-inner { flex-direction: column; align-items: stretch; }
  .consent-actions { width: 100%; }
  /* Three choices stack full width rather than 2+1: refusing must be exactly as easy
     to reach as accepting, and an odd row would leave one option looking primary. */
  .consent-actions .btn { flex: 1 1 100%; }
  .nav-burger { display: grid; }
  .top { position: sticky; }
  .top-inner { position: relative; }
  .top nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #FFFFFF;
    border-bottom: 1px solid var(--border);
    padding: 8px 16px 16px;
    box-shadow: 0 12px 24px rgba(17, 24, 39, 0.08);
    /* Short screens / landscape: the open menu scrolls on its own instead of running off-screen. */
    max-height: calc(100vh - 67px);
    max-height: calc(100dvh - 67px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .top nav a {
    padding: 10px 4px;
    border-bottom: 1px solid var(--border);
  }
  .top nav .nav-cta {
    margin-top: 10px;
    text-align: center;
    border-bottom: none;
  }
  .nav-burger[aria-expanded="true"] ~ nav { display: flex; }
  /* Focused fields and in-page jumps stay above the fixed mobile CTA bar (and the consent bar while it is open). */
  html {
    scroll-padding-bottom: max(var(--fhx-consent-h, 0px), calc(80px + env(safe-area-inset-bottom, 0px)));
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Enhanced page navigation */
#fhx-nav-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 10000;
  pointer-events: none;
  overflow: hidden;
  background: transparent;
}

#fhx-nav-progress::after {
  content: "";
  display: block;
  height: 100%;
  width: 40%;
  background: var(--primary);
  animation: fhx-nav-indeterminate 0.9s ease-in-out infinite;
}

#fhx-nav-status {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10001;
  margin: 0;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(17, 24, 39, 0.08);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
}

html.fhx-navigating #fhx-nav-status:not(:empty) {
  opacity: 1;
}

html.fhx-navigating .site {
  opacity: 0.55;
  transition: opacity 0.12s ease;
  pointer-events: none;
  user-select: none;
}

html.fhx-navigating #main {
  min-height: 40vh;
}

@keyframes fhx-nav-indeterminate {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}

@media (prefers-reduced-motion: reduce) {
  #fhx-nav-progress::after {
    animation: none;
    width: 100%;
    opacity: 0.85;
  }

  html.fhx-navigating .site,
  #fhx-nav-status {
    transition: none;
  }
}

/* ========== Homepage product landing (light theme) ========== */
.home-landing {
  --home-shell-visual: 1fr;
}

.home-hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, var(--home-shell-visual));
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.hero--product {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 65% 50% at 95% 0%, rgba(227, 28, 35, 0.1), transparent 55%),
    #FFFFFF;
  border-bottom: 1px solid var(--border);
}

.hero--product::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.045;
  background-image:
    linear-gradient(rgba(17, 24, 39, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 24, 39, 0.35) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000 20%, transparent 90%);
}

.hero--product .hero-inner {
  position: relative;
  z-index: 1;
  padding-top: clamp(48px, 8vh, 80px);
  padding-bottom: clamp(56px, 9vh, 96px);
}

.home-hero-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.35rem, 6vw, 4.25rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  margin: 0 0 20px;
  max-width: none;
  color: var(--text);
}

.home-hero-line {
  display: block;
}

.home-hero-line--accent {
  color: var(--primary);
}

.home-hero-lede {
  font-size: 1.15rem;
  max-width: 36ch;
  margin-bottom: 28px;
}

.home-hero-cta {
  margin-bottom: 4px;
}
.blog-empty {
  margin: 8px 0 20px;
  font-size: 1.05rem;
}

.blog-grid {
  margin-top: 8px;
}

/* Hero illustration above a post body. The artwork is drawn on --bg, which is
   lighter than the gray section behind it, so the border turns that edge into a
   deliberate frame instead of a stray light rectangle. width/height come from the
   file, and width:100% + height:auto keeps the reserved box at the right ratio. */
.post-hero {
  margin: 0 0 28px;
}

/* Byline under a post's lede and the date on hub cards: visible freshness for
   readers and crawlers, matching the Article JSON-LD dates. */
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.post-meta--card {
  margin-top: 10px;
  font-size: 0.82rem;
}

/* Capped rather than full-bleed: at shell width a 3:2 illustration is ~700px tall
   and pushes the whole article below the fold. The artwork carries its own margin,
   so it still reads clearly at this size. */
.post-hero img {
  display: block;
  width: 100%;
  max-width: 720px;
  height: auto;
  margin-inline: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
}

.blog-card-thumb {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
}

.home-trust {
  margin-top: 16px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.home-section-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.75rem, 3.6vw, 2.65rem);
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin: 0 0 14px;
}

.btn-cta {
  gap: 8px;
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.btn-cta .btn-arrow {
  display: inline-block;
  transition: transform 0.18s ease;
}

.btn-cta:hover {
  transform: translateY(-1px);
}

.btn-cta:hover .btn-arrow {
  transform: translateX(3px);
}

.site a.btn-cta:hover {
  text-decoration: none;
}

/* --- Hero app screenshot (real capture, HeroAppShot) --- */
.hero-shot {
  margin: 0;
  width: 100%;
  min-width: 0;
}
.hero-shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 14px 36px rgba(17, 24, 39, 0.08);
  background: var(--surface);
}
.hero-shot figcaption {
  margin-top: 12px;
  font-size: 0.92rem;
}
.hero-shot figcaption a { font-weight: 600; }

@media (max-width: 1100px) {
  .home-hero-split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  }}

@media (max-width: 960px) {
  .home-hero-split {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .home-hero-split .page-copy { order: 0; }
  .home-hero-split .page-visual { order: 1; }
  .hero-shot { max-width: 560px; }}

@media (max-width: 560px) {
  .home-hero-title {
    font-size: clamp(2.1rem, 11vw, 2.75rem);
  }}

/* ---------- Homepage conversion: start steps, ECU check, signup link, mobile CTA bar ---------- */

.ecu-check-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 40rem;
  margin: 0 0 24px;
}
.ecu-check-form .catalog-search-input {
  flex: 1 1 18rem;
  max-width: none;
  padding: 12px 14px;
  font-size: 1rem;
}
.home-ecu-stats {
  max-width: 40rem;
}
.home-ecu-note {
  margin: 12px 0 0;
  font-size: 0.9rem;
}
@media (max-width: 800px) {
  .ecu-check-form .btn { width: 100%; }
}

/* "Create your free Workspace online" line under Store buttons (SignupLink). */
.signup-link-line {
  margin: 14px 0 0;
  font-size: 0.95rem;
  color: var(--muted);
}
.signup-link-line a { font-weight: 600; white-space: nowrap; }

/* /signup — web signup form; success panel replaces it after the API accepts the Workspace. */
.signup-split { align-items: start; }
.signup-steps { margin: 0 0 18px; }
.signup-card {
  padding: 26px 24px 22px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #FFFFFF;
  box-shadow: var(--shadow);
  max-width: 30rem;
  width: 100%;
}
.signup-title {
  margin: 0 0 16px;
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
.signup-title[tabindex="-1"]:focus { outline: none; }
.signup-label {
  display: block;
  margin: 14px 0 6px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}
.signup-input {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  font-size: 1rem; /* 16px+: no zoom-on-focus on iOS */
  background: #FFFFFF;
  color: var(--text);
}
.signup-input:focus {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
  border-color: var(--primary);
}
.signup-hint { margin: 6px 0 0; font-size: 0.85rem; color: var(--muted); }
.signup-consent {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 16px 0 0;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--muted);
  cursor: pointer;
}
.signup-consent input { margin: 2px 0 0; flex: none; width: 18px; height: 18px; }
.signup-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.signup-submit { width: 100%; margin-top: 18px; }
/* Busy state keeps the button focusable (aria-disabled, not disabled) so keyboard focus is not dropped. */
.signup-submit[aria-busy="true"] { opacity: 0.75; cursor: progress; }
.signup-input[aria-invalid="true"] { border-color: var(--primary); }
.signup-field-error {
  margin: 6px 0 0;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--primary);
}
.signup-status { margin: 12px 0 0; font-size: 0.92rem; line-height: 1.4; }
/* Live regions stay in the DOM; an empty one takes no space. */
.signup-status:empty { margin: 0; }
.signup-status.ok { color: #047857; font-weight: 600; }
.signup-status.err { color: var(--primary); font-weight: 600; }
.signup-alt { margin: 14px 0 0; font-size: 0.9rem; }
.signup-done .flow-list { margin: 12px 0 18px; }
.link-button {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: var(--primary);
  text-decoration: underline;
  cursor: pointer;
}
.link-button:disabled,
.link-button[aria-disabled="true"] { opacity: 0.6; cursor: default; }

.mobile-cta-bar {
  display: none;
}
@media (max-width: 800px) {
  .mobile-cta-bar {
    display: block;
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 30;
    background: #FFFFFF;
    border-top: 1px solid var(--border);
    box-shadow: 0 -8px 24px rgba(17, 24, 39, 0.08);
    padding: 10px 0 calc(10px + env(safe-area-inset-bottom, 0px));
    transform: translateY(110%);
    transition: transform 0.2s ease;
  }
  .mobile-cta-bar.is-visible { transform: none; }
  .mobile-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  .mobile-cta-text {
    font-family: var(--display);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text);
  }
  .mobile-cta-inner .btn { flex: none; width: auto; }
  /* Keep the footer's last lines reachable above the fixed bar. */
  .site:has(.mobile-cta-bar) .foot { padding-bottom: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  .mobile-cta-bar { transition: none; }
}

/* ---------- Offer-led homepage, risk reversal, pricing cards, download facts ---------- */

/* The offer headline is longer than the old brand line, so it runs smaller. */
.home-hero-title--offer {
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  line-height: 1.02;
}

.home-steps {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.home-steps li {
  display: grid;
  align-content: start;
  gap: 8px;
}
.home-steps img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 8px;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 14px 36px rgba(17, 24, 39, 0.08);
  background: #fff;
}
.home-steps strong {
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.home-steps span:last-child {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}
@media (max-width: 960px) {
  .home-steps { grid-template-columns: 1fr; max-width: 560px; }
}

.risk-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 14px;
}
.risk-list li {
  position: relative;
  padding: 18px 18px 18px 46px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.risk-list li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 21px;
  width: 14px;
  height: 8px;
  border-left: 2.5px solid var(--primary);
  border-bottom: 2.5px solid var(--primary);
  transform: rotate(-45deg);
}
.risk-list strong {
  display: block;
  font-family: var(--display);
  font-size: 1rem;
  margin: 0 0 4px;
  color: var(--text);
}
.risk-list span {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.45;
}

.store-trust {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 0;
  font-size: 0.88rem;
  color: var(--muted);
}
.store-trust li + li::before {
  content: "·";
  margin: 0 10px;
}

.pack-pricing-card {
  position: relative;
}
.pack-pricing-card.is-best {
  border-color: rgba(227, 28, 35, 0.45);
  border-width: 2px;
}
.pack-pricing-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.pack-pricing-per {
  margin: -4px 0 10px;
  font-weight: 700;
  color: var(--primary);
  font-size: 0.95rem;
}
.pack-pricing-included {
  margin: 18px 0 0;
  font-weight: 700;
  color: var(--text);
}

.download-facts {
  margin: 14px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}
.help-line {
  margin: 18px 0 0;
  font-size: 0.95rem;
  color: var(--muted);
}

/* ---------- Language switcher (nav dropdown + footer list) ---------- */
.lang-switch {
  position: relative;
}
.lang-switch > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 4px 2px;
}
.lang-switch > summary:hover { color: var(--text); }
.lang-globe { flex: none; }
.lang-switch > summary::-webkit-details-marker { display: none; }
.lang-switch > summary::after { content: " ▾"; font-size: 0.75em; }
.lang-switch[open] > summary { color: var(--text); }
.lang-switch ul {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 50;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  min-width: 9rem;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.lang-switch li a,
.lang-switch li span {
  display: block;
  padding: 7px 14px;
  font-size: 0.92rem;
  white-space: nowrap;
}
.lang-switch li span { color: var(--text); font-weight: 700; }
.foot-lang {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 0.85rem;
}
.foot-lang a { color: var(--muted); }
.foot-lang-current { color: var(--text); font-weight: 600; }
@media (max-width: 800px) {
  .lang-switch { border-bottom: 1px solid var(--border); padding: 8px 4px; }
  .lang-switch > summary { display: inline-block; }
  .lang-switch ul { position: static; box-shadow: none; border: 0; padding: 4px 0 0; }
  .top nav .lang-switch li a { border-bottom: 0; padding: 6px 4px; }
}

/* ---------- Top bar: page links | actions ---------- */
.nav-sep {
  width: 1px;
  height: 22px;
  background: var(--border);
  margin: 0 2px;
}
.site .top nav a.nav-secondary {
  color: var(--text);
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.site .top nav a.nav-secondary:hover { border-color: #D1D5DB; background: var(--surface-2); }
@media (max-width: 800px) {
  .nav-sep { display: none; }
  .site .top nav a.nav-secondary {
    margin-top: 10px;
    text-align: center;
  }
}

/* ---------- Store badge, inline links, section spacing helpers ---------- */

/* Official "Get it from Microsoft" artwork (StoreBadge) — keep its proportions, no extra frame. */
.store-badge {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  border-radius: 6px;
}
.store-badge img {
  display: block;
  width: auto;
  height: 48px;
}
.store-badge:hover img { opacity: 0.9; }

/* Red is for actions and the brand: links inside running text are ink with a red underline. */
:where(.prose, .lede, .section-lede, .help-line, .muted, .faq-list) a:not(.btn):not(.chip):not(.store-badge) {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(227, 28, 35, 0.55);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
:where(.prose, .lede, .section-lede, .help-line, .muted, .faq-list) a:not(.btn):not(.chip):not(.store-badge):hover {
  color: var(--primary-hover);
  text-decoration-color: currentColor;
}

.section-note { margin-top: 16px; }
.section-followup { margin-top: 28px; }
.section-intro { margin-bottom: 28px; }

/* ===== Platform console toolkit (2026-10): sortable headers, chips, KPIs, global search, compact nav ===== */
.admin-table th.sortable { cursor: pointer; user-select: none; white-space: nowrap; }
.admin-table th.sortable:hover { color: var(--text); }
.admin-table th.sortable .sort-ind::after { content: "\2195"; opacity: 0.35; margin-left: 6px; font-size: 0.85em; }
.admin-table th.sortable.is-asc .sort-ind::after { content: "\2191"; opacity: 1; color: var(--primary); }
.admin-table th.sortable.is-desc .sort-ind::after { content: "\2193"; opacity: 1; color: var(--primary); }
.admin-table tbody tr.is-kbd td { box-shadow: inset 3px 0 0 var(--primary); background: var(--surface-2); }
html.admin-compact .admin-table th, html.admin-compact .admin-table td { padding: 6px 10px; font-size: 0.86rem; }
html.admin-compact .admin-table .admin-badge { font-size: 0.7rem; padding: 2px 6px; }

.admin-head-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.admin-toolbar .btn.is-on, .admin-presets .btn.is-on, .admin-window-tabs .btn.is-on { background: var(--primary); color: #fff; border-color: var(--primary); }
.admin-toolbar input[type="date"] { padding: 9px 10px; border: 1px solid var(--border); border-radius: 8px; background: #fff; font: inherit; }

.admin-searchbox { position: relative; flex: 1; min-width: 220px; display: flex; }
.admin-searchbox .search { width: 100%; padding-right: 34px; }
.admin-searchbox-clear { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; font-size: 1.1rem; color: var(--muted); cursor: pointer; padding: 4px 8px; }
.admin-searchbox-clear:hover { color: var(--primary); }

.admin-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0 0; }
.admin-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 10px; border-radius: 999px; background: #EEF2F7; color: #374151; font-size: 0.82rem; font-weight: 600; }
.admin-chip-x { border: 0; background: transparent; cursor: pointer; color: #6B7280; font-size: 1rem; line-height: 1; padding: 0 4px; }
.admin-chip-x:hover { color: var(--primary); }
.admin-chip-clear { border: 0; background: transparent; color: var(--primary); font: inherit; font-size: 0.82rem; font-weight: 600; cursor: pointer; }

.admin-presets { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.admin-presets .btn { padding: 5px 10px; font-size: 0.82rem; }

.admin-row-actions { white-space: nowrap; position: relative; }
.admin-row-actions .btn + .btn { margin-left: 4px; }
.admin-row-menu { position: absolute; right: 8px; top: calc(100% - 6px); z-index: 20; min-width: 180px; background: #fff; border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 12px 30px rgba(17, 24, 39, 0.15); padding: 6px; display: flex; flex-direction: column; }
.admin-row-menu a, .admin-row-menu button { display: block; width: 100%; text-align: left; padding: 7px 10px; border: 0; border-radius: 6px; background: transparent; color: var(--text); text-decoration: none; font: inherit; font-size: 0.86rem; cursor: pointer; }
.admin-row-menu a:hover, .admin-row-menu button:hover { background: var(--surface-2); }
.admin-row-menu button.is-danger { color: #991B1B; }
.admin-note-icon { margin-left: 6px; color: var(--primary); font-size: 0.85em; cursor: help; }
.admin-note { white-space: pre-wrap; }
.admin-note-editor textarea { width: 100%; min-height: 90px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; font: inherit; resize: vertical; }

.admin-section-title { margin: 20px 0 0; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 700; }
.admin-window-tabs { display: flex; gap: 6px; margin-top: 14px; flex-wrap: wrap; }
.admin-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-top: 10px; }
.admin-kpi { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; text-decoration: none; color: inherit; box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04); }
a.admin-kpi:hover { border-color: var(--primary); }
.admin-kpi-label { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); font-weight: 700; }
.admin-kpi-value { display: block; font-family: var(--display); font-size: 1.7rem; font-weight: 800; line-height: 1.1; margin-top: 4px; }
.admin-kpi-sub { display: block; font-size: 0.8rem; color: var(--muted); margin-top: 4px; }
.admin-kpi.is-warn .admin-kpi-value { color: #B45309; }
.admin-kpi.is-err .admin-kpi-value { color: #991B1B; }
.admin-kpi.is-ok .admin-kpi-value { color: #047857; }
.admin-quick-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.admin-quick-links a { padding: 7px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); text-decoration: none; color: var(--text); font-size: 0.86rem; font-weight: 600; }
.admin-quick-links a:hover { border-color: var(--primary); }

.admin-gsearch { position: relative; padding: 10px 10px 0; }
.admin-gsearch-input { width: 100%; padding: 9px 12px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.06); color: #fff; font: inherit; font-size: 0.9rem; }
.admin-gsearch-input::placeholder { color: #9CA3AF; }
.admin-gsearch-input:focus { outline: none; border-color: rgba(227, 28, 35, 0.7); background: rgba(255, 255, 255, 0.1); }
.admin-gsearch-menu { position: absolute; left: 10px; right: 10px; top: calc(100% + 4px); background: #fff; color: var(--text); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 12px 30px rgba(17, 24, 39, 0.25); z-index: 60; max-height: 70vh; overflow: auto; }
.admin-gsearch-group { padding: 8px 10px 2px; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 700; }
.admin-gsearch-item { display: flex; justify-content: space-between; gap: 10px; width: 100%; padding: 8px 10px; border: 0; background: transparent; text-align: left; color: inherit; font: inherit; font-size: 0.86rem; cursor: pointer; }
.admin-gsearch-item:hover, .admin-gsearch-item.is-cursor { background: var(--surface-2); }
.admin-gsearch-item .muted { font-size: 0.78rem; }
.admin-gsearch-empty { padding: 12px; font-size: 0.85rem; color: var(--muted); }

.admin-views { position: relative; }
.admin-views-menu { position: absolute; right: 0; top: calc(100% + 4px); min-width: 240px; background: #fff; border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 12px 30px rgba(17, 24, 39, 0.15); z-index: 30; padding: 6px; }
.admin-views-row { display: flex; align-items: center; gap: 6px; }
.admin-views-row a { flex: 1; padding: 7px 8px; border-radius: 6px; text-decoration: none; color: inherit; font-size: 0.86rem; }
.admin-views-row a:hover { background: var(--surface-2); }
.admin-views-save { width: 100%; margin-top: 4px; }

.admin-nav-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: #D1D5DB; text-decoration: none; font-size: 0.9rem; font-weight: 600; }
.admin-nav-item:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.admin-nav-item.is-active { color: #fff; background: rgba(227, 28, 35, 0.35); }
.admin-nav-item svg { width: 18px; height: 18px; flex-shrink: 0; opacity: 0.85; }
.admin-nav-group { margin-top: 4px; }
.admin-nav-group-title { display: flex; align-items: center; gap: 10px; padding: 8px 10px 3px; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: #9CA3AF; }
.admin-nav-group-title svg { width: 16px; height: 16px; opacity: 0.7; }
.admin-nav-sub { display: flex; flex-direction: column; gap: 1px; }
.admin-nav-sub a { display: block; position: relative; padding: 6px 10px 6px 30px; border-radius: 8px; color: #D1D5DB; text-decoration: none; font-size: 0.86rem; font-weight: 600; }
.admin-nav-sub a::before { content: ""; position: absolute; left: 16px; top: 50%; width: 5px; height: 5px; border-radius: 50%; background: rgba(255, 255, 255, 0.25); transform: translateY(-50%); }
.admin-nav-sub a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.admin-nav-sub a.is-active { color: #fff; background: rgba(227, 28, 35, 0.35); }
.admin-nav-sub a.is-active::before { background: #FCA5A5; }
.admin-sidebar-keys { margin: 0; font-size: 0.72rem; color: #6B7280; text-align: center; }
.admin-pager .pager-actions select { padding: 6px 8px; border: 1px solid var(--border); border-radius: 6px; background: #fff; font: inherit; font-size: 0.85rem; }
.admin-prevnext { display: inline-flex; gap: 6px; margin-left: 10px; }

/* ===== Platform overview (2026-10-15): period bar, deltas, mini charts, funnel ===== */
.ov-period { justify-content: space-between; }
.ov-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.ov-range { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ov-range label { display: inline-flex; gap: 6px; align-items: center; font-size: 0.85rem; color: var(--muted); font-weight: 600; }
.ov-range input[type="date"] { padding: 6px 8px; border: 1px solid var(--border); border-radius: 8px; background: #fff; font: inherit; }
.ov-delta { display: block; margin-top: 4px; font-size: 0.8rem; font-weight: 700; }
.ov-delta .muted { font-weight: 500; }
.ov-delta.is-up-good { color: #047857; }
.ov-delta.is-up-bad { color: #B91C1C; }
.ov-delta.is-flat { color: var(--muted); }
.ov-charts { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-top: 10px; }
.mini-chart { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px 10px; }
.mini-chart figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.mini-chart-title { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); font-weight: 700; }
.mini-chart-total { font-family: var(--display); font-weight: 800; font-size: 1.15rem; color: var(--text); }
.mini-chart-plot { position: relative; }
.mini-chart svg { display: block; width: 100%; height: 110px; }
.mini-chart-bar { fill: #4B5563; transition: fill 0.12s ease; }
.mini-chart-bar.is-hover { fill: var(--primary); }
.mini-chart-hit { fill: transparent; }
.mini-chart-base { stroke: var(--border); stroke-width: 1; vector-effect: non-scaling-stroke; }
.mini-chart-tip { position: absolute; top: -6px; transform: translate(-50%, -100%); background: #111827; color: #fff; border-radius: 6px; padding: 4px 8px; font-size: 0.78rem; white-space: nowrap; pointer-events: none; }
.mini-chart-tip span { color: #D1D5DB; }
.mini-chart-axis { display: flex; justify-content: space-between; margin-top: 4px; font-size: 0.72rem; color: var(--muted); }
.ov-table { margin-top: 10px; }
.ov-table summary { cursor: pointer; font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.ov-split { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 14px; margin-top: 20px; align-items: start; }
@media (max-width: 960px) { .ov-split { grid-template-columns: 1fr; } }
.ov-split .admin-panel { margin-top: 0; }
.ov-funnel-list { list-style: none; margin: 0; padding: 4px 14px 10px; display: flex; flex-direction: column; gap: 6px; }
.ov-funnel-row { display: grid; grid-template-columns: 130px minmax(0, 1fr) 150px; gap: 10px; align-items: center; padding: 4px 6px; border-radius: 8px; color: inherit; text-decoration: none; font-size: 0.88rem; }
.ov-funnel-row:hover { background: var(--surface-2); }
.ov-funnel-label { font-weight: 600; }
.ov-funnel-track { height: 12px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.ov-funnel-bar { display: block; height: 100%; min-width: 2px; background: #4B5563; border-radius: 4px; }
.ov-funnel-row:hover .ov-funnel-bar { background: var(--primary); }
.ov-funnel-num { text-align: right; font-variant-numeric: tabular-nums; }
.ov-facts { margin: 0; padding: 4px 14px 12px; display: flex; flex-direction: column; gap: 8px; }
.ov-facts > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 10px; align-items: baseline; font-size: 0.88rem; }
.ov-facts dt { color: var(--muted); font-weight: 600; }
.ov-facts dd { margin: 0; }
.ov-facts a { font-weight: 700; color: var(--text); }
.ov-facts a.ov-warn, a.ov-warn { color: #B45309; }
.ov-feed { list-style: none; margin: 0; padding: 2px 14px 12px; display: flex; flex-direction: column; gap: 6px; max-height: 380px; overflow: auto; }
.ov-feed li { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 0.86rem; padding: 4px 0; border-bottom: 1px solid var(--border); }
.ov-feed li:last-child { border-bottom: 0; }
.ov-feed-time { min-width: 64px; color: var(--muted); font-size: 0.8rem; }
.ov-feed a { font-weight: 600; color: var(--text); }
td.ov-warn { color: #B45309; font-weight: 700; }
