/* 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; }

@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
}

.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);
}

@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; }
}

.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)));
  }
}

/* The mobile menu button needs filhex-marketing.js; without scripts the nav is shown as a plain list instead.
   A media query, not <noscript><style>: Blazor enhanced navigation parses pages with scripting off and would
   patch that style into the live <head>, hiding the button after the first in-site link. */
@media (max-width: 800px) and (scripting: none) {
  .top-inner { flex-wrap: wrap; }
  .nav-burger { display: none; }
  .top nav { display: flex; position: static; flex-basis: 100%; box-shadow: none; border-bottom: 0; padding: 0; max-height: none; }
}

@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-optional { font-weight: 400; 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; }
.signup-taken { margin-top: 16px; padding: 16px 18px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); }
.signup-taken p { margin: 0 0 12px; }
.signup-taken .cta-row { margin: 0 0 12px; }
.signup-taken .signup-alt { margin-bottom: 0; }
/* /start — paid-social landing: the signup card sits right under a short hero, so a phone sees the form early. */
.start-top .lede { margin-bottom: 0; }
.start-next { align-items: start; }
.start-pc-line { margin: 22px 0 10px; font-weight: 600; color: var(--text); }
.start-shot { margin: 0; }
.start-shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
@media (max-width: 800px) {
  .start-top { padding-top: 24px; }
  .start-top .page-split { gap: 20px; }
  .start-top .lede { font-size: 1.05rem; }
}

.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; }
