/* ==========================================================================
   Lear Labs — shared design system
   Extracted from the approved Home/Partners designs so every page shares one
   stylesheet. Page markup keeps its inline styles for layout fidelity; this
   file owns the reset, design tokens, hover states, dropdowns, and the
   handful of reusable component classes the templated pages use.
   ========================================================================== */

:root {
  --ink: #14151A;
  --ink-2: #3A3D45;
  --body: #4A4E59;
  --muted: #5B5F6B;
  --faint: #8A8F9C;
  --brand: #2540E0;
  --brand-dark: #1B32B8;
  --line: #E9EBF0;
  --line-2: #ECEEF2;
  --surface: #F5F6F8;
  --panel-dark: #14151A;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Inter Tight', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --maxw: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 88px; }
[hidden] { display: none !important; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: #FFFFFF;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.011em;
  line-height: 1.55;
}
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
::selection { background: #D6DDFB; color: var(--ink); }
img { max-width: 100%; }
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }

@keyframes learFade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* --- Accessibility --- */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: #14151A; color: #FFFFFF; padding: 10px 16px; border-radius: 9px;
  font-size: 14px; font-weight: 600; transition: top .15s ease;
}
.skip-link:focus { top: 12px; color: #FFFFFF; }
:focus-visible { outline: 2px solid #2540E0; outline-offset: 2px; border-radius: 4px; }

/* --- Interactive hover states (converted from the design's style-hover spec) --- */
.nav-item:hover { color:#14151A !important; background:#F5F6F8 !important; }
.btn-outline:hover { background:#F5F6F8 !important; border-color:#C7CAD3 !important; }
.btn-dark:hover { background:#000000 !important; }
.btn-soft:hover { background:#F5F6F8 !important; }
.btn-white:hover { background:#EDEEF2 !important; }
.btn-outline-dark:hover { background:#1A1C22 !important; }
.social:hover { background:#1A1C22 !important; color:#FFFFFF !important; }
.flink:hover { color:#FFFFFF !important; }
.card-sol:hover { border-color:#C7CAD3 !important; box-shadow:0 20px 40px -28px rgba(20,21,26,0.25); }
.card-prod:hover { border-color:#C7CAD3 !important; }
.card-case:hover { box-shadow:0 28px 56px -32px rgba(20,21,26,0.3); }
.mega-link:hover { color:#2540E0 !important; }

/* --- Header and disclosure navigation --- */
.announcement { background: var(--ink); color: #EDEEF2; font-size: 13px; letter-spacing: .01em; }
.announcement-inner { max-width: var(--maxw); margin: auto; padding: 9px 40px; display: flex; align-items: center; justify-content: center; gap: 12px; }
.announcement-label { font: 11px var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: #8E93D6; }
.announcement-text { color: #B9BCC9; }
.announcement a { color: #FFF; font-weight: 500; white-space: nowrap; }
#site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line-2); }
.header-inner { max-width: var(--maxw); margin: auto; padding: 0 40px; min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; white-space: nowrap; color: var(--ink); font: 700 19px var(--font-display); letter-spacing: -.02em; }
/* Logo lockup: one SVG symbol that inherits the surrounding text colour, so it reads on light and dark backgrounds. */
.brand-logo { display: block; width: 79px; height: 37px; fill: currentColor; }
.footer-logo { display: block; width: 92px; height: 43px; color: #FFF; fill: currentColor; }
.mainnav { display: flex; align-items: center; justify-content: center; flex: 1; gap: 4px; }
.nav-item { display: flex; align-items: center; gap: 6px; font: 500 15px var(--font-sans); color: var(--ink-2); padding: 12px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; text-align: left; white-space: nowrap; min-height: 44px; }
.nav-item.is-active, .nav-trigger[aria-expanded="true"] { color: var(--ink); background: #F0F2FB; }
.nav-chevron { flex-shrink: 0; transition: transform .18s ease; }
[aria-expanded="true"] > .nav-chevron { transform: rotate(180deg); }
.nav-trigger, .nav-toggle, .mobile-nav-contact { display: none; }
.nav-ready .nav-trigger { display: flex; }
.nav-ready .nav-fallback { display: none; }
.header-actions { display: flex; align-items: center; flex-shrink: 0; gap: 10px; }
.contact-btn { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 500; color: var(--ink); padding: 9px 16px; border: 1px solid #DADCE3; border-radius: 9px; }
.nav-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; font-size: 15px; font-weight: 600; color: #FFF; background: var(--ink); padding: 10px 18px; border-radius: 9px; white-space: nowrap; }
.nav-cta:hover { color: #FFF; }
.nav-toggle { align-items: center; justify-content: center; gap: 12px; min-height: 44px; padding: 10px 12px; border: 1px solid #DADCE3; border-radius: 9px; background: #FFF; color: var(--ink); font: 500 14px var(--font-sans); cursor: pointer; }
.nav-toggle-icon { position: relative; width: 18px; height: 14px; }
.nav-toggle-icon > span { position: absolute; left: 0; top: 3px; height: 1.5px; width: 18px; background: currentColor; transition: transform .18s ease; }
.nav-toggle-icon > span:last-child { top: 9px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon > span:first-child { transform: translateY(3px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon > span:last-child { transform: translateY(-3px) rotate(-45deg); }
.mega {
  position:absolute; top:100%; left:0; right:0;
  background:#FFFFFF;
  border-top:1px solid #ECEEF2;
  border-bottom:1px solid #ECEEF2;
  box-shadow:0 28px 56px -28px rgba(20,21,26,0.22);
  max-height: var(--nav-available-height, calc(100dvh - 68px));
  overflow-y: auto;
  overscroll-behavior: contain;
  z-index:40;
}
.mega-inner > * { min-width: 0; }
/* Flat multi-column industry list inside the Industries mega menu */
.mega-cols { column-count: 4; column-gap: 32px; }
.mega-cols > a { break-inside: avoid; }

@media (max-width: 1100px) {
  .announcement-inner { flex-wrap: wrap; gap: 4px 10px; text-align: center; }
  .header-inner { flex-wrap: wrap; gap: 0 20px; padding-top: 12px; padding-bottom: 12px; }
  .header-actions { display: none; }
  .nav-ready .nav-toggle { display: inline-flex; margin-left: auto; }
  .mainnav { order: 3; flex: 0 0 100%; align-items: stretch; justify-content: flex-start; flex-direction: column; gap: 0; padding: 16px 0; }
  .mainnav > * { flex-shrink: 0; }
  .nav-ready .mainnav { display: none; position: absolute; top: 100%; left: 0; right: 0; margin: 0; padding: 12px 40px 28px; background: #FFF; border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -28px rgba(20,21,26,.3); max-height: var(--nav-available-height, calc(100dvh - 68px)); overflow-y: auto; overscroll-behavior: contain; }
  .is-menu-open .mainnav { display: flex; }
  .nav-group, .mainnav > .nav-item { border-bottom: 1px solid var(--line); }
  .nav-item { width: 100%; justify-content: space-between; padding: 16px 12px; white-space: normal; }
  .mega { position: static; max-height: none; overflow: visible; border: 0; box-shadow: none; }
  .mega-inner { grid-template-columns: 1fr !important; padding: 20px 12px 28px !important; gap: 24px !important; }
  .mega-cols { column-count: 2; column-gap: 24px; }
  .mega-featured { padding: 22px !important; }
  .mega-work-grid { grid-template-columns: 1fr !important; gap: 4px !important; }
  .mega-link { min-height: 44px; }
  .mobile-nav-contact { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 24px 12px 0; font-size: 14px; }
}

/* --- Reusable layout helpers used by the templated pages --- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 40px; }
.section { padding: 104px 0; }
.section--tight { padding: 88px 0; }
.section-head { max-width: 720px; margin-bottom: 52px; }
.eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brand); margin-bottom: 16px; }
.h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(32px,3.6vw,46px); line-height: 1.06; letter-spacing: -0.03em; margin: 0 0 18px; }
.lead { font-size: 18px; line-height: 1.6; color: var(--body); margin: 0; }
.hero-grid > *, .grid-2 > *, .grid-3 > *, .grid-4 > *, .split-2 > *, .footer-grid > * { min-width: 0; }
.outcome-stat { overflow-wrap: anywhere; }
.wrap-row { flex-wrap: wrap; gap: 10px 16px; }
.faq-summary { gap: 16px; }
.faq-summary > span { flex-shrink: 0; }

/* --- Responsive layer (the source designs were desktop-only) --- */
@media (max-width: 960px){
  .hero-grid{ grid-template-columns:1fr !important; gap:40px !important; }
  .grid-4{ grid-template-columns:repeat(2,1fr) !important; }
  .footer-grid{ grid-template-columns:repeat(2,1fr) !important; gap:32px 40px !important; }
  .logo-grid{ grid-template-columns:repeat(3,1fr) !important; gap:20px !important; }
  .split-2{ grid-template-columns:1fr !important; }
  .grid-3{ grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
}
@media (max-width: 760px){
  .grid-3{ grid-template-columns:1fr !important; }
  .grid-2{ grid-template-columns:1fr !important; }
  .grid-4{ grid-template-columns:repeat(2,1fr) !important; }
  .section{ padding: 72px 0; }
}
@media (max-width: 560px){
  .announcement-inner { padding: 10px 20px; font-size: 12px; gap: 6px; }
  .announcement-label { display: none; }
  .announcement-text { flex-basis: 100%; }
  .header-inner { padding-left: 20px; padding-right: 20px; }
  .header-actions > .nav-cta { display: none; }
  .nav-ready .mainnav { padding-left: 20px; padding-right: 20px; }
  .mega-cols { column-count: 1; }
  .page-container { padding-left: 20px !important; padding-right: 20px !important; }
  .hero-grid { padding-top: 56px !important; padding-bottom: 56px !important; }
  .cta-panel { padding: 36px 24px !important; }
  .outcome-row { flex-direction: column; align-items: flex-start !important; gap: 8px !important; }
  .outcome-stat { min-width: 0 !important; }
  main h1, main h2, main h3 { overflow-wrap: anywhere; }
  main a { overflow-wrap: anywhere; }
  .footer-grid{ grid-template-columns:1fr !important; }
  .logo-grid{ grid-template-columns:repeat(2,1fr) !important; }
  .grid-4{ grid-template-columns:1fr !important; }
  .container{ padding: 0 22px; }
}

/* --- Respect a reduced-motion preference --- */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Shared chrome follows the homepage visual direction across the site. */
.announcement { background: #EEF1FC; }
.announcement-text, .announcement a { color: #1B32B8; }
.announcement-label { display: none; }
.header-inner { max-width: 1440px; padding-inline: 56px; min-height: 80px; }
.contact-btn { display: none; }
.nav-cta { border-radius: 999px; font-weight: 500; padding-inline: 22px; }
footer .page-container { max-width: 1440px !important; padding-inline: 56px !important; }
@media (max-width: 1100px) {
  .header-inner { min-height: 72px; }
  .nav-ready .mainnav { padding-inline: 56px; }
}
@media (max-width: 960px) {
  .header-inner, .nav-ready .mainnav { padding-inline: 40px; }
  footer .page-container { padding-inline: 40px !important; }
}
@media (max-width: 760px) {
  .header-inner, .nav-ready .mainnav { padding-inline: 20px; }
  .announcement-inner { padding-block: 8px; font-size: 11px; gap: 1px 8px; }
  .announcement-text { flex-basis: auto; }
  .announcement a { min-height: 24px; display: inline-flex; align-items: center; }
  footer .page-container { padding-inline: 20px !important; }
}

/* Lead form. It sits on the blue contact band, so fields are light outlines on blue. */
.home-contact-inner.has-form, .e-contact-grid.has-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: start; gap: 72px; }
.has-form > div:first-child > h2 + p { margin-top: 28px; }
.has-form > div:first-child > p:last-child { margin-bottom: 0; }
.lead-form, .lead-grid > * { min-width: 0; }
.lead-form { --lead-line: rgba(255,255,255,.38); color: #FFF; font-family: var(--font-sans); }
.lead-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.lead-field { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.lead-wide { grid-column: 1 / -1; }
.lead-field label { font-size: 13px; font-weight: 500; color: #E2E7FF; letter-spacing: 0; }
.lead-field label span { color: #B9C3FA; font-weight: 400; }
.lead-form input, .lead-form select, .lead-form textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--lead-line); border-radius: 10px;
  background: rgba(255,255,255,.08); color: #FFF; font: 400 15px/1.4 var(--font-sans); letter-spacing: -0.006em;
  transition: border-color .15s, background .15s; -webkit-appearance: none; appearance: none;
}
.lead-form textarea { resize: vertical; min-height: 116px; }
.lead-form select {
  padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='m3 4.5 3 3 3-3' stroke='%23FFFFFF' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center;
}
.lead-form select option { color: var(--ink); background: #FFF; }
.lead-form input:hover, .lead-form select:hover, .lead-form textarea:hover { border-color: rgba(255,255,255,.6); }
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { outline: none; border-color: #FFF; background: rgba(255,255,255,.14); box-shadow: 0 0 0 3px rgba(255,255,255,.22); }
.lead-form input:user-invalid, .lead-form textarea:user-invalid { border-color: #FFC9C9; box-shadow: 0 0 0 3px rgba(255,120,120,.28); }
.lead-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 24px; }
.lead-submit {
  display: inline-flex; align-items: center; gap: 18px; min-height: 50px; padding: 14px 24px; border: 1px solid #FFF; border-radius: 999px;
  background: #FFF; color: var(--ink); font: 500 14px/1.4 var(--font-sans); cursor: pointer; transition: background .2s, border-color .2s, opacity .2s;
}
.lead-submit:hover { background: #E7EBFF; border-color: #E7EBFF; }
.lead-submit:disabled { opacity: .6; cursor: progress; }
.lead-submit:focus-visible { outline: 2px solid #FFF; outline-offset: 3px; }
.lead-note { margin: 0; font-size: 13px; color: #C9D1FF; }
.lead-status { margin: 14px 0 0; font-size: 14px; color: #E2E7FF; min-height: 1px; }
.lead-status:empty { margin: 0; }
.lead-status.is-error { color: #FFFFFF; background: rgba(160,20,40,.35); border: 1px solid rgba(255,200,200,.5); border-radius: 10px; padding: 10px 14px; }
.lead-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.lead-done { padding: 32px; border: 1px solid var(--lead-line); border-radius: 14px; background: rgba(255,255,255,.08); }
.lead-done:focus { outline: none; }
.lead-done h3 { margin: 0 0 8px; font: 600 24px/1.2 var(--font-display); letter-spacing: -.02em; color: #FFF; }
.lead-done p { margin: 0; font-size: 16px; color: #E2E7FF; }
@media (max-width: 960px) {
  .home-contact-inner.has-form, .e-contact-grid.has-form { grid-template-columns: minmax(0, 1fr); gap: 36px; }
}
@media (max-width: 560px) {
  .lead-grid { grid-template-columns: 1fr; }
  .lead-submit { width: 100%; justify-content: center; }
}
@media (max-width: 760px) {
  .brand-logo { width: 71px; height: 33px; }
}
