/* Leading Edge Group transition site. Tokens from the LEG brand, structure from the IBG site. */
:root {
  --le-yellow: #fdb525;
  --le-yellow-deep: #e9a212;
  --le-red: #dc1e35;
  --le-red-text: #c4172c;
  --le-red-deep: #b8172c;
  --le-ink: #100d16;
  --le-grey: #63656a;
  --le-light: #eef3f7;
  --le-white: #ffffff;
  --le-rule: rgba(16, 13, 22, 0.12);
  --le-ink-soft: #2a2533;
  --le-yellow-wash: #fff6dd;
  --font: "Poppins", "Poppins Fallback", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --max: 1140px;
  --radius: 12px;
}

/* Metric-matched fallback so text does not reflow when Poppins loads (values from Fontaine for Poppins over Arial). */
@font-face {
  font-family: "Poppins Fallback";
  src: local("Arial");
  size-adjust: 112.1577%;
  ascent-override: 93.7669%;
  descent-override: 31.2556%;
  line-gap-override: 8.9302%;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 122px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--le-ink);
  background: var(--le-white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--le-ink); }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 0.6em; font-weight: 600; }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }

.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;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--le-ink); color: var(--le-white); padding: 0.6rem 1rem; border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--le-red); outline-offset: 3px; }
.section--red :focus-visible, .cta-band--red :focus-visible, .callout--red :focus-visible,
.contact-card--red :focus-visible, .site-footer :focus-visible { outline-color: var(--le-white); }

.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.container--narrow { max-width: 760px; }

/* Header */
.site-header { border-bottom: 3px solid var(--le-red); background: var(--le-white); position: sticky; top: 0; z-index: 50; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 104px; }
.site-header__brand img { height: 72px; width: auto; }
@media (max-width: 480px) { .site-header__brand img { height: 48px; } }
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1px solid var(--le-rule); border-radius: 8px; background: transparent; cursor: pointer;
}
.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after {
  content: ""; display: block; width: 22px; height: 2px; background: var(--le-ink); position: relative; transition: transform .2s;
}
.nav-toggle__bar::before { position: absolute; top: -7px; }
.nav-toggle__bar::after { position: absolute; top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { transform: translateY(-7px) rotate(-45deg); }
.site-nav {
  display: none; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--le-white); border-bottom: 1px solid var(--le-rule); padding: 1rem 1.25rem 1.5rem;
}
.site-nav[data-open="true"] { display: block; }
.site-nav__list { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-direction: column; gap: 0.25rem; }
.site-nav__list a { display: block; padding: 0.6rem 0; text-decoration: none; font-weight: 500; }
.site-nav__list a:hover { color: var(--le-red); }
.site-nav__cta { white-space: nowrap; }
@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .site-nav { display: flex; position: static; border: 0; padding: 0; align-items: center; gap: 1.5rem; }
  .site-nav__list { flex-direction: row; gap: 1.5rem; margin: 0; }
  .site-nav__list a { white-space: nowrap; }
}

/* Buttons and links */
.btn {
  display: inline-block; padding: 0.8rem 1.4rem; border-radius: 999px; font-weight: 600;
  text-decoration: none; border: 2px solid transparent; transition: background .15s, color .15s, border-color .15s;
}
.btn--primary { background: var(--le-yellow); color: var(--le-ink); }
.btn--primary:hover { background: var(--le-yellow-deep); }
.btn--ghost { border-color: var(--le-ink); color: var(--le-ink); background: transparent; }
.btn--ghost:hover { background: var(--le-ink); color: var(--le-white); }
.btn--dark { background: var(--le-ink); color: var(--le-white); }
.btn--dark:hover { background: var(--le-ink-soft); }
.text-link { font-weight: 600; color: var(--le-red-text); text-decoration: none; }
.text-link::after { content: " \2192"; }
.text-link:hover { text-decoration: underline; }
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.74rem; font-weight: 600;
  color: var(--le-white); background: var(--le-red); padding: 0.35em 0.75em; border-radius: 4px; margin-bottom: 1rem;
}
.lead { font-size: 1.15rem; color: var(--le-grey); max-width: 60ch; }

/* Sections */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--light { background: var(--le-light); }
.section--dark { background: var(--le-ink); color: var(--le-white); }
.section--dark a:not(.btn) { color: var(--le-white); }
.section--red { background: var(--le-red); color: var(--le-white); }
.section--red a:not(.btn) { color: var(--le-white); }
.section--red .eyebrow { background: var(--le-white); color: var(--le-red-text); }
.section--red .stats dd { color: var(--le-white); }
.section--red .stats dt { opacity: 1; }
.hero { padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 4rem); border-bottom: 6px solid var(--le-yellow); }
.hero h1 { max-width: 20ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0 0; }
.hero__grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .hero__grid { grid-template-columns: 1.25fr 1fr; } }
.hero__panel {
  text-align: center; padding: 1rem 0;
  display: flex; flex-direction: column; align-items: center; gap: 1.5rem;
}
.hero__panel-logo { width: auto; max-width: 100%; }
.hero__panel-logo--leg { height: 104px; }
.hero__panel-logo--ibg { height: 76px; }
.hero__panel-label { margin: 0; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.8rem; font-weight: 600; color: var(--le-grey); }
@media (max-width: 899px) { .hero__panel-logo--leg { height: 72px; } .hero__panel-logo--ibg { height: 56px; } }

.grid { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .grid--2, .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 640px) and (max-width: 959px) { .grid--3 > :last-child { grid-column: 1 / -1; } }
.card { background: var(--le-white); border: 1px solid var(--le-rule); border-radius: var(--radius); padding: 1.5rem; }
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.section--light .card { border-color: transparent; }
.card--accent { border-top: 5px solid var(--le-yellow); }
.card--red { border-top: 5px solid var(--le-red); }
.section--light .card--accent { border-top-color: var(--le-yellow); }
.section--light .card--red { border-top-color: var(--le-red); }
.card__meta { font-size: 0.85rem; color: var(--le-grey); margin: 0 0 0.5rem; }

.stats { display: grid; gap: 1.5rem; margin: 0; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats dt { order: 2; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.8; }
.stats dd { order: 1; margin: 0; font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 700; color: var(--le-yellow); line-height: 1; }
.stats > div { display: flex; flex-direction: column; gap: 0.5rem; }

.pill-list { list-style: none; padding: 0; margin: 1.5rem 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.pill-list li { background: var(--le-white); border: 1px solid var(--le-rule); border-radius: 999px; padding: 0.45rem 1rem; font-weight: 500; }
.split { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1.2fr 1fr; } }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; padding: 1.5rem; background: var(--le-white); border-radius: var(--radius); border: 1px solid var(--le-rule); }
.steps li::before { content: "0" counter(step); display: block; font-weight: 700; color: var(--le-red-text); margin-bottom: 0.5rem; }
.steps h3 { font-size: 1.05rem; }

.table-wrap { overflow-x: auto; margin: 1.5rem 0; }
.compare { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 0.95rem; }
.compare th, .compare td { padding: 0.8rem 0.9rem; border-bottom: 1px solid var(--le-rule); text-align: left; vertical-align: top; }
.compare thead th { background: var(--le-light); font-weight: 600; }
.compare .is-ibg { background: var(--le-yellow-wash); font-weight: 600; }
.compare caption { text-align: left; caption-side: bottom; font-size: 0.85rem; color: var(--le-grey); padding-top: 0.75rem; }

.faq details { border-top: 1px solid var(--le-rule); padding: 0.25rem 0; }
.faq details:last-child { border-bottom: 1px solid var(--le-rule); }
.faq summary { cursor: pointer; font-weight: 600; padding: 0.9rem 2rem 0.9rem 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 0.75rem; font-size: 1.4rem; color: var(--le-red-text); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--le-grey); padding-bottom: 0.75rem; }
.faq h3 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--le-red-text); margin-top: 2.5rem; }

.cta-band { background: var(--le-yellow); padding: clamp(3rem, 7vw, 5rem) 0; text-align: center; }
.cta-band h2 { max-width: 26ch; margin-inline: auto; text-wrap: balance; }
.cta-band p { max-width: 55ch; margin-inline: auto; }
.cta-band__alt { margin-top: 1rem; font-size: 0.95rem; }
.cta-band__alt a { font-weight: 600; }
.cta-band--red { background: var(--le-red); color: var(--le-white); }
.cta-band--red a:not(.btn) { color: var(--le-white); }

.contact-card { background: var(--le-light); border-radius: var(--radius); padding: 1.75rem; }
.contact-card address { font-style: normal; line-height: 1.8; }
.contact-card a { font-weight: 600; }
.contact-card--red { background: var(--le-red); color: var(--le-white); }
.contact-card--red h2, .contact-card--red h3 { color: var(--le-white); }
.contact-card--red a:not(.btn) { color: var(--le-white); }
.contact-card--red .btn--ghost { border-color: var(--le-white); color: var(--le-white); }
.contact-card--red .btn--ghost:hover { background: var(--le-white); color: var(--le-red-text); }

/* History timeline */
.timeline { list-style: none; padding: 0; margin: 2rem 0 0; border-left: 3px solid var(--le-yellow); }
.timeline li { position: relative; padding: 0 0 1.75rem 1.5rem; }
.timeline li::before { content: ""; position: absolute; left: -9px; top: 0.45rem; width: 15px; height: 15px; border-radius: 50%; background: var(--le-red); border: 3px solid var(--le-white); }
.timeline time { display: block; font-weight: 700; color: var(--le-red-text); margin-bottom: 0.25rem; }
.timeline p { margin: 0; color: var(--le-grey); }
.timeline--compact li { padding-bottom: 1.1rem; }
.timeline--compact p { font-size: 0.95rem; }

/* Included / not included and benefits comparison */
.two-col { display: grid; gap: 1.5rem; }
@media (min-width: 800px) { .two-col { grid-template-columns: 1fr 1fr; } }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { padding: 0.5rem 0 0.5rem 1.9rem; position: relative; border-bottom: 1px solid var(--le-rule); }
.check-list li::before { content: "\2713"; position: absolute; left: 0.2rem; color: var(--le-ink); font-weight: 700; }

/* Who-are-you router */
.router { display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .router { grid-template-columns: repeat(3, 1fr); } }
.router__card { display: flex; flex-direction: column; border-top: 5px solid var(--le-yellow); }
.router__card p { flex: 1; color: var(--le-grey); }
.router__card .text-link { margin-top: auto; }

/* Supplier logo marquee */
.marquee { overflow: hidden; margin-top: 1.5rem; position: relative; }
.marquee::before, .marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 60px; z-index: 1; pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--le-white), rgba(255,255,255,0)); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--le-white), rgba(255,255,255,0)); }
.marquee__track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.marquee:hover .marquee__track, .marquee:focus-within .marquee__track { animation-play-state: paused; }
.logo-strip { list-style: none; padding: 0 3.25rem 0 0; margin: 0; display: flex; align-items: center; gap: 3.25rem; flex: none; }
.logo-strip li { display: flex; align-items: center; justify-content: center; height: 64px; }
.logo-strip img { height: 48px; width: auto; max-width: 160px; object-fit: contain; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; }
  .marquee__track .logo-strip[aria-hidden="true"] { display: none; }
  .logo-strip { flex-wrap: wrap; justify-content: center; gap: 1.25rem 2.5rem; }
  .marquee::before, .marquee::after { display: none; }
}

/* Category groups and tiles */
.cat-layout { display: grid; gap: 1.5rem; margin-top: 2rem; }
@media (min-width: 960px) { .cat-layout { grid-template-columns: 1.6fr 1fr; align-items: stretch; } }
.cat-groups { display: grid; gap: 1rem; grid-template-rows: 1fr 1fr; }
.cat-group { border-radius: var(--radius); padding: 1.1rem 1.1rem 1.25rem; background: var(--le-white); border: 1px solid var(--le-rule); display: flex; flex-direction: column; }
.cat-group--core { background: var(--le-yellow); border-color: var(--le-yellow); }
.cat-group__title { margin: 0 0 0.85rem; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; color: var(--le-ink); }
.cat-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; grid-template-columns: repeat(2, 1fr); flex: 1; }
@media (min-width: 640px) { .cat-grid { grid-template-columns: repeat(4, 1fr); } }
.cat-tile { background: var(--le-white); border: 1px solid var(--le-rule); border-radius: 10px; padding: 0.95rem 0.85rem; display: flex; flex-direction: column; justify-content: center; gap: 0.5rem; min-height: 96px; }
.cat-tile svg { width: 26px; height: 26px; stroke: var(--le-ink); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cat-tile strong { font-size: 0.95rem; line-height: 1.2; }
.cat-tile--core { border-color: rgba(16, 13, 22, 0.08); }
.callout { border-radius: var(--radius); padding: 1.75rem; }
.callout--red { background: var(--le-red); color: var(--le-white); }
.callout--red h3 { color: var(--le-white); margin-top: 0; }
.callout--red p { color: var(--le-white); }
.callout--red .btn--ghost { border-color: var(--le-white); color: var(--le-white); }
.callout--red .btn--ghost:hover { background: var(--le-white); color: var(--le-red-text); }
.callout--red .eyebrow { background: var(--le-white); color: var(--le-red-text); }
.callout__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }

/* Store brand badges */
.brand-badges { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .brand-badges { grid-template-columns: 1fr 1fr; } }
.brand-badge { background: var(--le-white); border: 1px solid var(--le-rule); border-left: 6px solid var(--le-yellow); border-radius: 0 var(--radius) var(--radius) 0; padding: 1.1rem 1.2rem; }
.brand-badge__mark { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--le-grey); }
.brand-badge__name { display: block; font-size: 1.35rem; font-weight: 700; line-height: 1.1; }
.brand-badge p { margin: 0.5rem 0 0; font-size: 0.9rem; color: var(--le-grey); }
.section--red .lead { color: var(--le-white); }

/* Footer */
.site-footer { background: var(--le-ink); color: var(--le-white); padding: 3rem 0 1.5rem; margin-top: 0; border-top: 6px solid var(--le-red); }
.site-footer a { color: var(--le-white); }
.site-footer__grid { display: grid; gap: 2rem; }
@media (min-width: 960px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1.4fr; } }
.site-footer__grid img { height: 56px; width: auto; }
.site-footer__note { color: rgba(255,255,255,0.75); margin: 1rem 0; }
.site-footer__ibg { background: var(--le-white); padding: 0.6rem 0.9rem; border-radius: 8px; height: 68px !important; }
.site-footer__leg { background: var(--le-white); padding: 0.6rem 0.9rem; border-radius: 8px; height: 68px !important; width: auto; }
.site-footer nav ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.4rem; }
.site-footer nav a { text-decoration: none; }
.site-footer nav a:hover { color: var(--le-yellow); }
.site-footer address { font-style: normal; line-height: 1.8; }
.site-footer__legal { border-top: 1px solid rgba(255,255,255,0.15); margin-top: 2.5rem; padding-top: 1.25rem; font-size: 0.85rem; color: rgba(255,255,255,0.7); }
.site-footer__legal a { color: rgba(255,255,255,0.85); }

/* Utilities */
.mt-2 { margin-top: 2rem; }
.prose { max-width: 72ch; }
.prose h2 { margin-top: 2.5rem; }

/* Sticky footer, address wrapping, inner-page polish */
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
.prose address { font-style: normal; line-height: 1.8; }
.contact-card address a, .site-footer address a, .prose address a { overflow-wrap: anywhere; }
.contact-card h2 { font-size: 1.35rem; }
.check-list--past li::before { content: "\2022"; color: var(--le-grey); }
.table-wrap { position: relative; }
@media (max-width: 700px) { .table-wrap::before { content: "Scroll sideways to compare \2192"; display: block; font-size: 0.8rem; color: var(--le-grey); padding-bottom: 0.5rem; } }

/* Long email addresses must never force horizontal scroll on small screens */
a[href^="mailto:"] { overflow-wrap: anywhere; }

/* Pre-launch polish */
.section > .container > p, .hero > .container > p, .hero__text > p { max-width: 72ch; }
@media (min-width: 640px) and (max-width: 899px) { .router { grid-template-columns: repeat(2, 1fr); } .router__card:last-child { grid-column: 1 / -1; } }
@media (max-width: 560px) { .logo-strip img { height: 34px; max-width: 110px; } .logo-strip { gap: 2rem; padding-right: 2rem; } .marquee::before, .marquee::after { width: 28px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.timeline li:last-child { padding-bottom: 0; }
.compare .is-ibg { min-width: 96px; }

/* Paragraphs that follow a lead read as part of the intro: same grey, size between lead and body */
.hero__text > p:not(.lead), .section > .container > .lead + p, .section > .container > .lead + p + p { color: var(--le-grey); font-size: 1.05rem; max-width: 66ch; }
