/* ============================================================
   Elcano public site — components & sections
   ============================================================
   Styles for the shared shell (nav, footer, buttons, type) and
   each homepage section, in page order. Every color/effect comes
   from tokens.css — edit tokens to restyle, edit here to relayout.

   Contents
     1. Base
     2. Shared type & buttons
     3. Sticky nav (+ mobile menu)
     4. Page décor (glow bands, sweep rails)
     5. Product glimpses (CSS-only width scaling)
     6. Sections 01–10 in page order
     7. Footer
     8. Motion & reveals
     9. Responsive
   ============================================================ */

/* ===== 1. Base ===== */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-body);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color var(--speed-fast) ease, color var(--speed-fast) ease;
}

h1, h2, h3, .display { font-family: var(--font-display); }
p { line-height: 1.6; }
::selection { background: var(--accent); color: #FFFFFF; }

.page {
  position: relative;
  background: var(--bg);
  min-height: 100vh;
  overflow-x: clip;
  transition: background-color var(--speed-fast) ease;
}

.container {
  max-width: 1536px;
  margin: 0 auto;
  padding-inline: clamp(20px, 6vw, 100px);
}

/* ===== 2. Shared type & buttons ===== */
.h2 {
  font-size: clamp(28px, 5.4vw, 40px);
  line-height: 1.12;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.025em;
  color: var(--text-strong);
}

.h3 {
  font-size: clamp(25px, 4.6vw, 32px);
  line-height: 1.14;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.02em;
  color: var(--text-strong);
}

.lead-xl { font-size: clamp(17.5px, 4.4vw, 21px); line-height: 1.6; color: var(--text-body); margin: 0; }
.lead-lg { font-size: clamp(17px, 4.3vw, 20px); line-height: 1.6; color: var(--text-body); margin: 0; }
.lead    { font-size: clamp(16.5px, 4.2vw, 19px); line-height: 1.6; color: var(--text-body); margin: 0; }

.accent-text { color: var(--accent); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--accent);
  text-transform: uppercase;
}
.eyebrow-sep { color: var(--divider); }

.eyebrow-mono {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--accent);
  text-transform: uppercase;
}

/* Ship-mark bullet lists (bullet SVG lives in the markup) */
.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.check-list li {
  position: relative;
  padding-left: 26px;
  font-size: clamp(15.5px, 3.9vw, 17px);
  line-height: 1.5;
  color: var(--text-body);
}
.check-list .bullet {
  position: absolute;
  left: 0;
  top: 0;
  height: 1.5em;
  width: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.check-list .bullet svg { display: block; fill: var(--accent); }

/* Buttons */
.fleet-primary {
  border: none;
  background: var(--accent-strong);
  color: var(--on-accent);
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 999px;
  font-family: var(--font-body);
  transition: background var(--speed-base) ease;
}
.fleet-primary:hover { background: var(--accent-strong-hover); }
.fleet-primary--lg { padding: 15px 26px; font-size: 16px; }

.fleet-textlink {
  border: none;
  background: none;
  padding: 8px 4px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  color: var(--link);
  gap: 8px;
  transition: color var(--speed-base) ease, gap var(--speed-base) ease;
}
.fleet-textlink:hover { color: var(--text-strong); gap: 14px; }
.fleet-textlink .arrow { font-size: 18px; }

/* ===== 3. Sticky nav ===== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nav-bg-top);
  transition: background var(--speed-nav) ease, backdrop-filter var(--speed-nav) ease;
}
.site-nav[data-scrolled="true"] {
  background: var(--nav-bg-solid);
  backdrop-filter: saturate(120%) blur(10px);
}

.nav-inner {
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 6vw, 100px);
}

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand svg { display: block; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--text-strong);
}

.nav-right { display: flex; align-items: center; gap: clamp(16px, 3vw, 34px); }
.fleet-navlinks { display: flex; align-items: center; gap: 34px; }
.nav-actions { display: flex; align-items: center; gap: 16px; }

.fleet-navlink {
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-strong);
  transition: color var(--speed-base) ease;
}
.fleet-navlink:hover { color: var(--link); }

/* Theme toggle */
.fleet-themetoggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 99px;
  border: none;
  background: none;
  color: var(--text-strong);
  cursor: pointer;
  padding: 0;
  transition: color var(--speed-base) ease;
}
.fleet-themetoggle:hover { color: var(--accent); }
/* dark is the default (no attribute or data-theme="dark") → show the sun */
.fleet-themetoggle .icon-moon { display: none; }
:root[data-theme="light"] .fleet-themetoggle .icon-sun { display: none; }
:root[data-theme="light"] .fleet-themetoggle .icon-moon { display: block; }

/* Hamburger + mobile menu */
.fleet-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  color: var(--text-strong);
  cursor: pointer;
  padding: 0;
  border-radius: 8px;
}
.fleet-hamburger .icon-close { display: none; }
.site-nav[data-menu-open="true"] .fleet-hamburger .icon-burger { display: none; }
.site-nav[data-menu-open="true"] .fleet-hamburger .icon-close { display: block; }
.site-nav[data-menu-open="true"] { background: var(--bg); }

.fleet-mobilemenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  flex-direction: column;
  padding: 6px clamp(20px, 6vw, 100px) 18px;
  background: var(--bg);
  border-bottom: 1px solid var(--border-soft);
  box-shadow: 0 18px 40px -24px rgba(26, 11, 30, 0.25);
}
.fleet-mobilelink {
  display: block;
  padding: 15px 2px;
  font-size: 17px;
  font-weight: 500;
  color: var(--text-strong);
  text-decoration: none;
  border-bottom: 1px solid var(--border-soft);
}
.fleet-mobilelink:last-child { border-bottom: none; }

/* ===== 4. Page décor ===== */
.glow-hero {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 150vh;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.glow-footer {
  position: absolute;
  left: 0;
  right: 0;
  top: -840px;
  bottom: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.pulse-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 50% 40%, var(--glow-1) 0%, var(--glow-2) 34%, var(--glow-fade) 66%);
  animation: fleet-pulse 8s ease-in-out infinite;
  transform-origin: center;
}
.pulse-glow--footer {
  background: radial-gradient(120% 80% at 50% 60%, var(--glow-1) 0%, var(--glow-2) 34%, var(--glow-fade) 66%);
}

/* Animated hairline rails (04 Why fleet) */
.rail {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: calc(min(100%, 1536px) - 2 * clamp(20px, 6vw, 100px));
  height: 1px;
  background: var(--rail-track);
  overflow: hidden;
}
.rail--top { top: 0; }
.rail--bottom { bottom: 0; }
.sweep-line {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 38%;
  background: linear-gradient(90deg, transparent 0%, var(--sweep-edge) 38%, var(--sweep-core) 50%, var(--sweep-edge) 62%, transparent 100%);
  animation: fleet-sweep 9s linear infinite;
}
.rail--bottom .sweep-line { animation-direction: reverse; }

/* ===== 5. Product glimpses ===== */
/* Each glimpse is a mock product UI authored at a fixed design size
   (--gw × --gh, in px). The canvas is scaled to its container's width
   with pure CSS: zoom = container-width ÷ design-width, computed via
   the typed-calc division trick tan(atan2(len, len)). No JS involved;
   layout height follows the zoom automatically. */
.glimpse {
  container-type: inline-size;
  width: 100%;
}
.glimpse-canvas {
  position: relative;
  width: var(--gw);
  height: var(--gh);
  zoom: calc(tan(atan2(100cqw, var(--gw))));
  font-family: var(--font-body);
}

/* décor layers (glow + dot grid) extend a little past the canvas */
.glimpse-glow {
  position: absolute;
  top: -16%;
  left: 14%;
  width: 76%;
  height: 84%;
  background: radial-gradient(closest-side, var(--glow-glimpse), rgba(89, 86, 213, 0) 72%);
  pointer-events: none;
}
.glimpse-dots {
  position: absolute;
  inset: -7% -9%;
  background-image: radial-gradient(var(--dot-grid) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.32;
  pointer-events: none;
  mask-image: radial-gradient(120% 90% at 50% 42%, #000 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 42%, #000 40%, transparent 80%);
}

/* per-glimpse design sizes (px at authoring scale) */
.glimpse--hero   { --gw: 844px; --gh: 521px; }
.glimpse--q1     { --gw: 544px; --gh: 305px; max-width: min(620px, 64vh); }
.glimpse--q2     { --gw: 560px; --gh: 371px; max-width: min(620px, 64vh); }
.glimpse--q3     { --gw: 856px; --gh: 448px; max-width: min(780px, 70vh); }
.glimpse--origin { --gw: 600px; --gh: 387px; }

/* 03·Q3 window positions on the shared canvas */
.q3-approval { top: 76px; left: 0; }
.glimpse--q3 .q3-secondary { top: 0; left: 488px; }

/* retheme the hardcoded SVG strokes inside glimpse mock-UIs */
.glimpse-canvas svg[stroke="#5956D5"] { stroke: var(--accent); }
.glimpse-canvas svg[stroke="#9AA0B4"] { stroke: var(--text-secondary); }

/* ===== 6. Sections ===== */

/* --- 01 Hero --- */
.hero {
  background: transparent;
  position: relative;
  z-index: 1;
  min-height: 100svh;
  margin-top: -66px; /* sits underneath the sticky nav */
  display: flex;
  align-items: center;
}
.hero-inner {
  width: 100%;
  padding-block: clamp(64px, 9vh, 120px);
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: clamp(26px, 4vh, 40px);
}
.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: flex-start;
  max-width: 860px;
}
.hero-title {
  font-size: clamp(36px, 5.2vw, 64px);
  line-height: 1.06;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.025em;
  color: var(--text-strong);
}
.hero-sub { max-width: 640px; }
.hero-ctas { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
/* the mock-up spans the container, sharing the copy's left/right edges
   (the full-bleed breakout was dropped once JS scaling made the canvas
   actually fill this width) */
.hero-visual { width: 100%; min-width: 0; }

/* --- 02 Problem --- */
.problem { position: relative; z-index: 1; }
.problem .container { padding-block: clamp(84px, 12vw, 152px); }
.problem-inner {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
  text-align: center;
}
.problem-inner .h2 { text-wrap: balance; }
.problem-inner .lead-xl { max-width: 740px; text-wrap: pretty; }

/* --- 03 Three questions --- */
.questions { position: relative; z-index: 1; }
.questions .container { padding-block: clamp(96px, 12vh, 150px); }
.q3-intro { max-width: 900px; }
.q3-intro .h2 { text-wrap: pretty; }
.q3-stack {
  display: flex;
  flex-direction: column;
  gap: clamp(96px, 13vh, 160px);
  margin-top: clamp(80px, 11vh, 140px);
}
.q3-row {
  display: flex;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  flex-wrap: wrap;
  scroll-margin-top: 90px;
}
.q3-copy {
  flex: 1 1 440px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
}
.q3-num { font-size: 14px; font-weight: 600; letter-spacing: 0.2em; color: var(--accent); }
.q3-copy .lead { max-width: 560px; }
.q3-visual {
  flex: 1 1 460px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.q3-close {
  max-width: 900px;
  margin: clamp(80px, 11vh, 140px) 0 0;
}
.q3-close .display {
  font-family: var(--font-display);
  font-size: clamp(21px, 4.6vw, 26px);
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text-strong);
  text-wrap: pretty;
}

/* --- 04 Why fleet --- */
.whyfleet { position: relative; z-index: 1; overflow: hidden; }
.whyfleet .container { padding-block: clamp(80px, 11vw, 140px); }
.whyfleet-head { display: flex; flex-direction: column; gap: 20px; max-width: 820px; margin-bottom: 72px; }
.whyfleet-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px 56px;
}
.feature { display: flex; gap: 20px; align-items: center; }
.feature-icon {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--icon-tile);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.feature-icon svg { color: var(--accent); }
.feature-body { display: flex; flex-direction: column; gap: 8px; }
.feature-title { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--text-strong); }
.feature-body p { font-size: 16px; line-height: 1.55; color: var(--text-body); margin: 0; }

.flagship {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-top: 48px;
  padding: 32px 36px;
  border-radius: 16px;
  background-color: var(--surface-alt);
}

/* --- 05 Who it's for --- */
.who { background: var(--bg); position: relative; z-index: 1; }
.who .container { padding-block: clamp(80px, 11vw, 140px); }
.who-inner { max-width: 880px; display: flex; flex-direction: column; gap: 28px; align-items: flex-start; }
.who-inner .h2 { text-wrap: pretty; }
.who-inner .lead-lg { padding-right: clamp(0px, 5vw, 64px); }

.agent-row {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  align-items: center;
  margin-top: 8px;
}
.agent-chip {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 14px;
  color: var(--text-body);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 40px;
  cursor: pointer;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.agent-chip:hover {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 2px rgba(124, 121, 220, 0.07), 0 3px 9px rgba(89, 86, 213, 0.1);
  transform: translateY(-1px);
}
.agent-chip--featured {
  border-color: var(--chip-feature-border);
  color: var(--accent);
  background-color: var(--chip-feature-bg);
  padding-block: 6px;
  font-weight: 500;
}
.agent-chip--featured .agent-chip-name { font-size: 16px; font-family: var(--font-display); font-weight: 700; }
.agent-chip--more {
  border: 1px dashed var(--chip-feature-border);
  border-radius: 999px;
  width: 38px;
  height: 38px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
}
.agent-chip img { display: block; }

/* --- 06 Origin story --- */
.origin { position: relative; z-index: 1; background-color: var(--surface-alt); }
.origin .container { padding-block: clamp(80px, 11vw, 140px); }
.origin-grid { display: flex; gap: clamp(44px, 6.5vw, 88px); align-items: center; flex-wrap: wrap; }
.origin-visual { flex: 1 1 380px; display: flex; order: 0; }
.origin-copy {
  flex: 1 1 440px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
}
.origin-copy .h2 { text-wrap: pretty; }
.origin-copy .lead-lg { max-width: 560px; }
.origin-copy .fleet-textlink { padding: 8px 0 0; }

/* --- 07 Proof --- */
.proof { background: var(--bg); position: relative; z-index: 1; }
.proof .container { padding-block: clamp(80px, 11vw, 140px); }
.proof-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
  margin-bottom: 64px;
}

/* Flat partner/tool logos re-tinted to a neutral gray per theme.
   Dark (default): light periwinkle-gray; light theme: mid slate. */
.logo-tint {
  filter: brightness(0) saturate(100%) invert(72%) sepia(11%) saturate(285%) hue-rotate(182deg) brightness(91%) contrast(88%);
}
:root[data-theme="light"] .logo-tint {
  filter: brightness(0) saturate(100%) invert(45%) sepia(9%) saturate(715%) hue-rotate(182deg) brightness(94%) contrast(85%);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.stat-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 44px 36px;
  border-radius: 16px;
  background-color: var(--surface-alt);
}
.stat-value {
  font-family: var(--font-display);
  font-size: clamp(40px, 9vw, 56px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent);
}
.stat-label { font-size: 16px; font-weight: 600; color: var(--text-strong); }
.stat-sub { font-size: 14px; line-height: 1.5; color: var(--text-secondary); text-wrap: pretty; }

.pull-quote {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  text-align: center;
}
.pull-quote blockquote {
  font-family: var(--font-display);
  font-size: clamp(22px, 5vw, 30px);
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text-strong);
  margin: 0;
  text-wrap: pretty;
}
.pull-quote figcaption { display: flex; align-items: center; gap: 14px; }
.quote-avatar {
  width: 44px;
  height: 44px;
  border: 1px dashed var(--placeholder-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 500;
  color: var(--text-secondary);
}
.quote-attribution { font-size: 15px; color: var(--text-secondary); text-align: left; }

/* --- 08 Security model --- */
.security { background: var(--bg); position: relative; z-index: 1; }
.security .container { padding-block: clamp(80px, 11vw, 140px); }
.security-head { max-width: 940px; display: flex; flex-direction: column; gap: 20px; }
.security-head .lead { max-width: 780px; }

.spec-grid {
  margin-top: 72px;
  display: grid;
  gap: 0 64px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.spec-grid > div { border-top: 1px solid var(--border-soft); }
.spec-grid > div:nth-child(-n+3) { border-top: none; }
.spec-item { display: flex; flex-direction: column; gap: 11px; padding: 34px 0; }
.spec-tag {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--spec-tag);
  background: var(--chip-bg);
  border-radius: 6px;
  padding: 4px 9px;
  letter-spacing: 0.01em;
}
.spec-title {
  font-family: var(--font-display);
  font-size: clamp(17px, 4vw, 19px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-strong);
}
.spec-item p { font-size: 14.5px; line-height: 1.6; color: var(--text-body); margin: 0; }

/* --- 09 Built by Elcano --- */
.elcano { background: var(--bg); position: relative; z-index: 1; }
.elcano .container { padding-block: clamp(80px, 11vw, 140px); }
.elcano-head { max-width: 940px; display: flex; flex-direction: column; gap: 20px; }
.elcano-head .lead { max-width: 820px; }

.elcano-pkg {
  margin-top: 72px;
  border: 1.5px solid var(--accent);
  background: linear-gradient(180deg, var(--pkg-tint-1), var(--pkg-tint-2)), var(--pkg-base);
  border-radius: 16px;
  padding: clamp(18px, 2.6vw, 30px);
  box-shadow: 0 0 0 4px var(--pkg-ring), var(--pkg-shadow);
}
.elcano-pkg-title { text-align: center; margin: 4px 0 clamp(20px, 2.6vw, 30px); }
.elcano-pkg-title span {
  font-family: var(--font-display);
  font-size: clamp(19px, 2.4vw, 26px);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text-strong);
}
.elcano-pkg-row { display: flex; gap: clamp(14px, 1.8vw, 22px); align-items: stretch; }
.elcano-panel {
  flex: 1 1 0;
  border: 1px solid var(--border-soft);
  background: var(--surface-elevated);
  border-radius: 12px;
  padding: clamp(16px, 2vw, 24px);
}
.elcano-panel--adds { flex: 1 1 0; border: none; background: none; padding: clamp(16px, 2vw, 24px); }
.elcano-panel-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
  text-transform: uppercase;
  text-align: center;
  margin-bottom: clamp(18px, 2vw, 24px);
}
.elcano-panel-label--accent { color: var(--accent); }
.elcano-tiles {
  display: grid;
  gap: clamp(20px, 2.4vw, 28px) 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.elcano-tile { display: flex; flex-direction: column; gap: 10px; align-items: center; text-align: center; }
.elcano-tile-icon {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--icon-tile);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.elcano-tile-icon--adds { background: var(--pkg-add-tile); }
.elcano-tile-label { font-size: 13.5px; font-weight: 600; line-height: 1.4; color: var(--text-strong); max-width: 190px; }
.elcano-plus-seam { flex: none; display: flex; align-items: center; }
.plus-badge {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--chip-feature-border);
  background: var(--surface-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 17px;
  font-weight: 600;
}

/* --- 10 Contact --- */
.contact { background: var(--bg); position: relative; z-index: 1; }
.contact .container { padding-block: clamp(80px, 11vw, 140px); }
.contact-grid { display: flex; gap: clamp(48px, 7vw, 96px); flex-wrap: wrap; }
.contact-main { flex: 1 1 480px; display: flex; flex-direction: column; gap: 14px; }
.contact-main .h2 { margin-bottom: 6px; }
.contact-main .lead { margin-bottom: 18px; max-width: 540px; }
.contact-cta { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 8px; }
.contact-mail {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--speed-base) ease;
}
.contact-mail:hover { color: var(--accent); }
.contact-mail:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.contact-aside {
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-top: 84px;
}
.contact-aside-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--accent);
  text-transform: uppercase;
}
.contact-aside .check-list { gap: 18px; }
.contact-aside .check-list li { color: var(--text-strong); }

/* ===== 7. Footer ===== */
.site-footer { background: var(--bg); color: var(--text-body); position: relative; z-index: 1; }
.footer-inner {
  padding-block: clamp(56px, 9vw, 80px) 48px;
  position: relative;
  z-index: 1;
}
.footer-top {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-mail { font-size: 15px; color: var(--text-secondary); text-decoration: none; }
.footer-nav { display: flex; gap: 32px; flex-wrap: wrap; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.footer-copy { font-size: 13px; color: var(--text-secondary); }
.footer-social { display: flex; gap: 10px; }
.fleet-footlink {
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.16s ease;
}
.fleet-footlink:hover { color: var(--accent-2); }
.fleet-footlink svg { display: block; }

/* ===== 8. Motion & reveals ===== */
@keyframes fleet-sweep {
  from { transform: translateX(-110%); }
  to { transform: translateX(260%); }
}
@keyframes fleet-pulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.92; transform: scale(1.12); }
}

/* Fade-up reveals — armed only when JS is running (html.js), so the
   page renders complete with scripts disabled. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--speed-reveal) var(--ease-reveal), transform var(--speed-reveal) var(--ease-reveal);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sweep-line, .pulse-glow { animation: none !important; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ===== keyboard focus visibility ===== */
.fleet-navlink:focus-visible,
.fleet-textlink:focus-visible,
.fleet-footlink:focus-visible,
.fleet-mobilelink:focus-visible,
.brand:focus-visible,
.footer-mail:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
.fleet-primary:focus-visible,
.fleet-hamburger:focus-visible,
.fleet-themetoggle:focus-visible,
.agent-chip:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ===== 9. Responsive ===== */
@media (max-width: 1280px) {
  .elcano-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  .fleet-navlinks { display: none; }
  .fleet-hamburger { display: inline-flex; }
  .site-nav[data-menu-open="true"] .fleet-mobilemenu { display: flex; }
}

@media (max-width: 980px) {
  .spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
  .spec-grid > div { border-top: 1px solid var(--border-soft); }
  .spec-grid > div:nth-child(-n+2) { border-top: none; }
  .elcano-pkg-row { flex-direction: column; }
  .elcano-pkg-row > .elcano-plus-seam { align-self: center; }
}

@media (max-width: 860px) {
  /* phones: don't vertically center the hero in a full viewport — start the
     copy right under the nav (66px of it sits over the hero via margin-top) */
  .hero { min-height: 0; align-items: flex-start; }
  .hero-inner { padding-top: calc(66px + clamp(20px, 5vw, 40px)); padding-bottom: clamp(48px, 9vw, 72px); }
  .whyfleet-grid { grid-template-columns: 1fr; gap: 32px; }
  .stat-grid { grid-template-columns: 1fr; }
  .agent-row { flex-wrap: wrap; }
  .contact-aside { padding-top: 0; }
  .origin-visual { order: 2; }
  /* the secondary Q3 panel is dropped and the canvas crops to the
     approval card so the glimpse stays legible at phone widths */
  .q3-secondary { display: none; }
  .glimpse--q3 { --gw: 472px; --gh: 333px; }
  .q3-approval { top: 0; }
}

@media (max-width: 620px) {
  .spec-grid { grid-template-columns: 1fr; }
  .spec-grid > div { border-top: 1px solid var(--border-soft); padding: 28px 0; }
  .spec-grid > div:nth-child(1) { border-top: none; }
}

@media (max-width: 420px) {
  .site-nav .fleet-primary { padding: 10px 14px; font-size: 13px; }
}
