/*
  The product website: hero, home sections, blog, About and Contact. Built on the brand layer in site.css: mostly white, thin borders, soft
  shadows, blue for actions, orange only for one highlight at a time. Motion is CSS, driven by site-motion.js, and stops for people who
  prefer reduced motion (see the end of this file and site.css).
*/

:root {
  --site-text: #15243A;
  --site-border: #E5EAF1;
  --site-blue-bright: #3D8BFF;
  --site-shadow-sm: 0 1px 2px rgba(7, 27, 53, 0.05);
  --site-shadow: 0 10px 30px rgba(7, 27, 53, 0.07);
  --site-shadow-lg: 0 24px 60px rgba(7, 27, 53, 0.12);
  --site-radius-lg: 1.5rem;
  --site-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Header and navigation ---------- */
.topbar { transition: box-shadow 0.25s ease; }
.topbar.is-scrolled { box-shadow: 0 6px 24px rgba(7, 27, 53, 0.08); }
.site-menu-button { flex: none; }

.public-nav a.is-active { color: var(--brand-blue); border-bottom-color: var(--brand-blue); }

@media (min-width: 992px) {
  .public-nav.collapse:not(.show) { display: block; }
  /* On wide screens the menu sits in the middle of the page, under the header. */
  /* "safe" keeps the first items reachable if the menu is ever wider than the window; older browsers use the plain value. */
  .public-nav ul { justify-content: center; justify-content: safe center; }
}

@media (max-width: 991.98px) {
  .public-nav { box-shadow: 0 12px 24px rgba(7, 27, 53, 0.08); }
  .public-nav ul { flex-direction: column; gap: 0; overflow: visible; padding-block: 0.5rem 0.75rem; }
  .public-nav a { border-bottom: 0; border-left: 3px solid transparent; padding: 0.7rem 0.875rem; border-radius: 0 0.5rem 0.5rem 0; }
  .public-nav a[aria-current="page"], .public-nav a.is-active { border-left-color: var(--brand-blue); background: var(--tint); }
}

/* Full-width pages manage their own containers. */
.site-flow { padding: 0; }

/* ---------- Hero ---------- */
.site-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60rem 30rem at 85% 10%, rgba(61, 139, 255, 0.10), transparent 60%),
    radial-gradient(40rem 24rem at 0% 100%, rgba(8, 102, 245, 0.06), transparent 60%),
    var(--surface);
  border-bottom: 1px solid var(--site-border);
  color: var(--site-text);
}
.site-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4.5rem) 1rem 4.5rem;
}
@media (min-width: 992px) {
  .site-hero__inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); padding-inline: 1.75rem; min-height: min(46rem, calc(100vh - 7rem)); }
}
.site-hero__title { color: var(--brand-navy); font-size: clamp(2.25rem, 5.4vw, 4rem); font-weight: 800; line-height: 1.04; letter-spacing: -0.035em; margin: 0 0 1rem; }
.site-hero .hero-lead { font-size: clamp(1.0625rem, 1.6vw, 1.25rem); max-width: 36rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.site-hero__search .search-bar { max-width: 36rem; }
.site-hero__search .search-bar-secondary { max-width: 36rem; }
.site-hero__points { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; list-style: none; padding: 0; margin: 1.5rem 0 0; color: var(--text-muted); font-weight: 550; font-size: 0.9375rem; }
.site-hero__points li::before { content: ""; display: inline-block; width: 0.5rem; height: 0.5rem; margin-right: 0.5rem; border-radius: 50%; background: var(--brand-blue); vertical-align: 0.1em; }

/* The name, with its Os as the blinking eyes, rising letter by letter. */
.site-wordmark { margin: 0 0 1.25rem; font-size: clamp(1.75rem, 4.2vw, 3rem); font-weight: 800; line-height: 1; letter-spacing: 0.02em; }
.site-wordmark__name { display: inline-flex; align-items: center; flex-wrap: nowrap; }
.site-wordmark__letter { display: inline-block; animation: site-letter-in 0.7s var(--site-ease) both; }
.site-wordmark__letter--navy { color: var(--brand-navy); }
.site-wordmark__letter--blue { color: var(--brand-blue); }
.site-wordmark__gap { display: inline-block; width: 0.32em; }
.ba-eyes--hero { --ba-eye-size: 0.86em; --ba-eye-glow: 0 0 14px rgba(8, 102, 245, 0.45); margin: 0 0.04em; animation: site-eyes-in 0.8s var(--site-ease) 0.55s both; }
.site-wordmark__name > :nth-child(1) { animation-delay: 0.05s; }
.site-wordmark__name > :nth-child(2) { animation-delay: 0.1s; }
.site-wordmark__name > :nth-child(3) { animation-delay: 0.15s; }
.site-wordmark__name > :nth-child(5) { animation-delay: 0.25s; }
.site-wordmark__name > :nth-child(6) { animation-delay: 0.3s; }
.site-wordmark__name > :nth-child(7) { animation-delay: 0.35s; }
.site-wordmark__name > :nth-child(8) { animation-delay: 0.4s; }
.site-wordmark__name > :nth-child(10) { animation-delay: 0.6s; }
.site-wordmark__name > :nth-child(11) { animation-delay: 0.65s; }
@keyframes site-letter-in { from { opacity: 0; transform: translateY(0.45em); } to { opacity: 1; transform: none; } }
@keyframes site-eyes-in { from { opacity: 0; transform: scale(0.4); } 70% { transform: scale(1.08); } to { opacity: 1; transform: none; } }

.site-reveal-1, .site-reveal-2, .site-reveal-3, .site-reveal-4, .site-reveal-5 { animation: site-fade-up 0.8s var(--site-ease) both; }
.site-reveal-1 { animation-delay: 0.7s; }
.site-reveal-2 { animation-delay: 0.8s; }
.site-reveal-3 { animation-delay: 0.9s; }
.site-reveal-4 { animation-delay: 1s; }
.site-reveal-5 { animation-delay: 1.1s; }
@keyframes site-fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.site-hero__scene { position: relative; margin: 0; animation: site-fade-up 1s var(--site-ease) 0.4s both; }
.hero-scene { display: block; width: 100%; height: auto; max-width: 40rem; margin-inline: auto; filter: drop-shadow(0 30px 50px rgba(7, 27, 53, 0.12)); }
.site-hero__caption, .site-figure-label { margin-top: 0.5rem; text-align: center; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }

.hero-route-line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: hero-draw 2.2s var(--site-ease) 0.6s forwards; }
.hero-route-flow { animation: hero-flow 1.6s linear infinite; }
.hero-pulse { transform-box: fill-box; transform-origin: center; animation: hero-pulse 2.4s ease-out infinite; }
.hero-pulse--late { animation-delay: 1.2s; }
.hero-ripple { transform-box: fill-box; transform-origin: center; animation: hero-pulse 2.8s ease-out infinite; }
.hero-signal path { animation: hero-signal 1.6s ease-in-out infinite; }
.hero-signal .hero-signal__outer { animation-delay: 0.3s; }
.hero-chip__dot { animation: hero-blink 1.8s ease-in-out infinite; }
@keyframes hero-draw { to { stroke-dashoffset: 0; } }
@keyframes hero-flow { to { stroke-dashoffset: -20; } }
@keyframes hero-pulse { from { transform: scale(0.4); opacity: 0.8; } to { transform: scale(2.2); opacity: 0; } }
@keyframes hero-signal { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }
@keyframes hero-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.site-hero__scroll { position: absolute; left: 50%; bottom: 1rem; transform: translateX(-50%); display: none; flex-direction: column; align-items: center; gap: 0.375rem; color: var(--text-muted); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; }
.site-hero__scroll:hover { color: var(--brand-blue); }
.site-hero__mouse { position: relative; width: 1.375rem; height: 2.125rem; border: 2px solid currentColor; border-radius: 1rem; }
.site-hero__mouse::after { content: ""; position: absolute; left: 50%; top: 0.375rem; width: 0.25rem; height: 0.5rem; margin-left: -0.125rem; border-radius: 0.25rem; background: var(--brand-blue); animation: hero-wheel 1.8s ease-in-out infinite; }
@keyframes hero-wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(0.625rem); } }
@media (min-width: 992px) and (min-height: 700px) { .site-hero__scroll { display: flex; } }

/* ---------- Scroll reveal ---------- */
.motion-ready .reveal-pending { transition: opacity 0.7s var(--site-ease), transform 0.7s var(--site-ease); }
.motion-ready .reveal-pending:not(.is-visible) { opacity: 0; transform: translateY(28px); }
.feature-grid > .reveal-pending:nth-child(2), .risk-grid > .reveal-pending:nth-child(2), .article-grid > .reveal-pending:nth-child(2) { transition-delay: 0.08s; }
.feature-grid > .reveal-pending:nth-child(3), .risk-grid > .reveal-pending:nth-child(3), .article-grid > .reveal-pending:nth-child(3) { transition-delay: 0.16s; }
.feature-grid > .reveal-pending:nth-child(4), .risk-grid > .reveal-pending:nth-child(4) { transition-delay: 0.24s; }
.feature-grid > .reveal-pending:nth-child(5) { transition-delay: 0.32s; }
.feature-grid > .reveal-pending:nth-child(6) { transition-delay: 0.4s; }

/* ---------- Sections ---------- */
.site-section { padding: clamp(3.5rem, 8vw, 6rem) 0; background: var(--surface); color: var(--site-text); scroll-margin-top: 6.5rem; }
.site-section--muted { background: var(--surface-muted); border-block: 1px solid var(--site-border); }
.site-section .container-xxl { padding-inline: 1rem; }
@media (min-width: 992px) { .site-section .container-xxl { padding-inline: 1.75rem; } }
.site-section__header { max-width: 46rem; margin: 0 auto 2.75rem; text-align: center; }
.site-kicker { color: var(--brand-blue); font-weight: 700; font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.625rem; }
.site-section__title { color: var(--brand-navy); font-size: clamp(1.75rem, 3.4vw, 2.625rem); font-weight: 750; line-height: 1.12; letter-spacing: -0.025em; margin-bottom: 0.875rem; }
.site-section__lead { color: var(--text-muted); font-size: 1.125rem; line-height: 1.6; }
.site-actions { display: flex; flex-wrap: wrap; gap: 0.625rem; margin-top: 1.5rem; }

.site-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; align-items: center; }
@media (min-width: 992px) {
  .site-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 4rem; }
  .site-split--reverse > :first-child { order: 2; }
}
.site-split__text { max-width: 36rem; }

.site-checklist { list-style: none; padding: 0; margin: 1.25rem 0 1.5rem; display: grid; gap: 0.625rem; }
.site-checklist li { position: relative; padding-left: 2rem; }
.site-checklist li::before { content: "\2713"; position: absolute; left: 0; top: 0.0625rem; width: 1.375rem; height: 1.375rem; border-radius: 50%; background: var(--tint); color: var(--tint-text); font-size: 0.75rem; font-weight: 800; line-height: 1.375rem; text-align: center; }

.site-glyph { width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* Feature cards */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 1.25rem; }
.feature-card { background: var(--surface); border: 1px solid var(--site-border); border-radius: 1.25rem; padding: 1.5rem; box-shadow: var(--site-shadow-sm); transition: transform 0.3s var(--site-ease), box-shadow 0.3s var(--site-ease), border-color 0.3s ease; }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--site-shadow); border-color: #D3DFF0; }
.feature-card h3 { font-size: 1.125rem; color: var(--brand-navy); margin: 0 0 0.5rem; }
.feature-card p { color: var(--text-muted); margin: 0; }
.feature-card__icon { display: inline-flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; border-radius: 0.875rem; background: linear-gradient(135deg, var(--brand-blue), var(--site-blue-bright)); color: #FFFFFF; margin-bottom: 1rem; box-shadow: 0 8px 18px rgba(8, 102, 245, 0.25); }

/* 2D illustration */
.state-legend { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.map-2d { margin: 0; }
.map-2d svg { display: block; width: 100%; height: auto; border-radius: var(--site-radius-lg); border: 1px solid var(--site-border); box-shadow: var(--site-shadow-lg); background: var(--surface); }
.map-2d__halo { transform-box: fill-box; transform-origin: center; animation: hero-pulse 2s ease-out infinite; }

/* 3D illustration */
.tilt-demo { --tilt: 50deg; --turn: -20deg; --lift: 0.83; }
.tilt-demo__stage { --tilt: 50deg; --turn: -20deg; --lift: 0.83; position: relative; perspective: 1100px; aspect-ratio: 1 / 0.82; display: flex; align-items: center; justify-content: center; border-radius: var(--site-radius-lg); background: linear-gradient(180deg, #F3F7FD, #FFFFFF); border: 1px solid var(--site-border); overflow: hidden; cursor: grab; touch-action: none; user-select: none; }
.tilt-demo__stage.is-dragging { cursor: grabbing; }
.tilt-demo__plane { position: relative; width: min(62%, 22rem); aspect-ratio: 1; transform-style: preserve-3d; transform: rotateX(var(--tilt)) rotateZ(var(--turn)); transition: transform 0.6s var(--site-ease); }
.tilt-demo__stage.is-dragging .tilt-demo__plane { transition: none; }
.tilt-demo__plane > svg { display: block; width: 100%; height: 100%; border-radius: 1.5rem; box-shadow: 0 30px 50px rgba(7, 27, 53, 0.16); }
.tilt-demo__bus { position: absolute; left: 50%; top: 52%; width: 3.25rem; height: 1.75rem; transform-style: preserve-3d; transform: translate(-50%, -50%); }
.tilt-demo__bus-body { position: absolute; inset: 0; border-radius: 0.5rem; background: linear-gradient(180deg, var(--site-blue-bright) 0 28%, var(--brand-blue) 28% 100%); box-shadow: inset 0 -4px 0 rgba(7, 27, 53, 0.25); transform-origin: 50% 100%; transform: rotateX(calc(var(--lift) * -90deg)) translateZ(0); }
.tilt-demo__bus-body::before { content: ""; position: absolute; left: 12%; right: 12%; top: 34%; height: 28%; border-radius: 0.2rem; background: repeating-linear-gradient(90deg, #E6F0FF 0 22%, transparent 22% 28%); }
.tilt-demo__bus-body::after { content: ""; position: absolute; left: 0; right: 30%; bottom: 22%; height: 0.1875rem; background: var(--brand-orange); }
.tilt-demo__bus-shadow { position: absolute; left: 5%; right: 5%; bottom: -0.25rem; height: 0.75rem; border-radius: 50%; background: rgba(7, 27, 53, 0.2); filter: blur(2px); }
.tilt-demo__pin { position: absolute; left: 50%; top: -2.25rem; width: 1.25rem; height: 1.25rem; margin-left: -0.625rem; border-radius: 50% 50% 50% 0; background: var(--brand-navy); transform: rotate(-45deg); box-shadow: 0 0 0 0.3125rem rgba(8, 102, 245, 0.2); animation: tilt-bob 2.4s ease-in-out infinite; }
.tilt-demo__pin::after { content: ""; position: absolute; inset: 0.3125rem; border-radius: 50%; background: var(--brand-orange); }
@keyframes tilt-bob { 0%, 100% { top: -2.25rem; } 50% { top: -2.625rem; } }
.tilt-demo__controls { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin-top: 1rem; }
.tilt-demo__range { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; font-weight: 600; color: var(--text-muted); }
.tilt-demo__range input { width: 8rem; accent-color: var(--brand-blue); }
.btn-outline-primary[aria-pressed="true"] { background: var(--brand-blue); color: #FFFFFF; }

/* Cameras */
.camera-showcase { margin: 0; }
.camera-showcase__screen { position: relative; border-radius: var(--site-radius-lg); overflow: hidden; border: 0.625rem solid var(--brand-navy); box-shadow: var(--site-shadow-lg); background: var(--brand-navy); }
.camera-showcase__screen svg { display: block; width: 100%; height: auto; }
.camera-showcase__lanes rect { transform-box: fill-box; transform-origin: center; animation: camera-lane 1.2s linear infinite; }
.camera-showcase__lanes rect:nth-child(2) { animation-delay: -0.4s; }
.camera-showcase__lanes rect:nth-child(3) { animation-delay: -0.8s; }
@keyframes camera-lane { from { transform: translateY(-30px) scale(0.6); opacity: 0; } 30% { opacity: 1; } to { transform: translateY(30px) scale(1.3); opacity: 0; } }
.camera-showcase__badge { position: absolute; display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.25rem 0.625rem; border-radius: 999px; background: rgba(7, 27, 53, 0.78); color: #FFFFFF; font-size: 0.75rem; font-weight: 600; }
.camera-showcase__badge--rec { top: 0.75rem; left: 0.75rem; }
.camera-showcase__badge--rec span { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: #2FD27A; animation: hero-blink 1.6s ease-in-out infinite; }
.camera-showcase__badge--time { right: 0.75rem; bottom: 0.75rem; }
.camera-showcase__thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.625rem; margin-top: 0.875rem; }
.camera-showcase__thumb { display: flex; flex-direction: column; gap: 0.125rem; padding: 0.625rem 0.75rem; border-radius: 0.875rem; background: var(--surface); border: 1px solid var(--site-border); font-weight: 650; font-size: 0.875rem; color: var(--brand-navy); }
.camera-showcase__thumb small { font-weight: 500; color: var(--text-muted); font-size: 0.75rem; }
.camera-showcase__thumb--locked { border-style: dashed; background: transparent; }

/* Road safety */
.risk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 1rem; }
.risk-card { --risk: var(--brand-success); --bars: 1; position: relative; background: var(--surface); border: 1px solid var(--site-border); border-top: 4px solid var(--risk); border-radius: 1.25rem; padding: 1.5rem; box-shadow: var(--site-shadow-sm); }
.risk-card h3 { font-size: 1.25rem; margin: 0.875rem 0 0.375rem; color: var(--brand-navy); }
.risk-card p { margin: 0; color: var(--text-muted); }
.risk-card--medium { --risk: #C98A12; }
.risk-card--high { --risk: #E67C00; }
.risk-card--critical { --risk: var(--brand-error); }
.risk-card__meter { display: flex; align-items: flex-end; gap: 0.25rem; height: 1.5rem; }
.risk-card__meter i { width: 0.5rem; border-radius: 0.125rem; background: #E3E9F2; }
.risk-card__meter i:nth-child(1) { height: 25%; }
.risk-card__meter i:nth-child(2) { height: 50%; }
.risk-card__meter i:nth-child(3) { height: 75%; }
.risk-card__meter i:nth-child(4) { height: 100%; }
.risk-card--low .risk-card__meter i:nth-child(-n+1),
.risk-card--medium .risk-card__meter i:nth-child(-n+2),
.risk-card--high .risk-card__meter i:nth-child(-n+3),
.risk-card--critical .risk-card__meter i:nth-child(-n+4) { background: var(--risk); }
.risk-card--critical.is-visible { animation: risk-glow 2.4s ease-in-out 0.6s 2; }
@keyframes risk-glow { 50% { box-shadow: 0 0 0 6px rgba(220, 53, 69, 0.12); } }

/* Safety alert workflow, on a navy panel inside a white section. */
.site-section--navy .container-xxl { background: var(--brand-navy); color: #DCE6F5; border-radius: 2rem; padding-block: clamp(2.5rem, 6vw, 4rem); position: relative; overflow: hidden; }
.site-section--navy .container-xxl::before { content: ""; position: absolute; inset: auto -10% -60% auto; width: 36rem; height: 36rem; border-radius: 50%; background: radial-gradient(circle, rgba(61, 139, 255, 0.22), transparent 70%); pointer-events: none; }
.site-section--navy .site-section__title { color: #FFFFFF; }
.site-section--navy .site-section__lead { color: #B9C8DE; }
.site-section--navy :focus-visible { outline-color: var(--site-blue-bright); }
.site-kicker--light { color: var(--site-blue-bright); }
.workflow { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
@media (min-width: 576px) { .workflow { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 992px) { .workflow { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .workflow { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.workflow__step { position: relative; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 1.25rem; padding: 1.25rem; }
.workflow__step h3 { color: #FFFFFF; font-size: 1.0625rem; margin: 0.75rem 0 0.375rem; }
.workflow__step p { margin: 0; color: #B9C8DE; font-size: 0.9375rem; }
.workflow__number { display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--brand-blue); color: #FFFFFF; font-weight: 800; }
.workflow.is-visible .workflow__step { animation: workflow-step 0.7s var(--site-ease) both; }
.workflow.is-visible .workflow__step:nth-child(2) { animation-delay: 0.15s; }
.workflow.is-visible .workflow__step:nth-child(3) { animation-delay: 0.3s; }
.workflow.is-visible .workflow__step:nth-child(4) { animation-delay: 0.45s; }
.workflow.is-visible .workflow__step:nth-child(5) { animation-delay: 0.6s; }
.workflow.is-visible .workflow__step:nth-child(3) .workflow__number { animation: workflow-alert 2.4s ease-in-out 1s 3; }
@keyframes workflow-step { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes workflow-alert { 50% { background: var(--brand-orange); color: var(--brand-navy); box-shadow: 0 0 0 8px rgba(255, 138, 0, 0.2); } }
.workflow__note { position: relative; margin: 1.75rem 0 0; color: #DCE6F5; font-weight: 550; }

/* Passenger journey and the phone */
.journey { list-style: none; counter-reset: journey; padding: 0; margin: 1.25rem 0 1.25rem; display: grid; gap: 0.875rem; }
.journey li { counter-increment: journey; position: relative; padding-left: 2.75rem; color: var(--text-muted); }
.journey li strong { color: var(--brand-navy); }
.journey li::before { content: counter(journey); position: absolute; left: 0; top: -0.125rem; width: 1.875rem; height: 1.875rem; border-radius: 50%; border: 2px solid var(--brand-blue); color: var(--brand-blue); font-weight: 800; font-size: 0.875rem; line-height: 1.625rem; text-align: center; }
.journey li:not(:last-child)::after { content: ""; position: absolute; left: 0.875rem; top: 1.875rem; bottom: -0.875rem; width: 2px; background: var(--tint); }
.phone { margin: 0; display: flex; flex-direction: column; align-items: center; }
.phone__frame { position: relative; width: min(18rem, 80vw); aspect-ratio: 9 / 18.5; padding: 0.75rem; border-radius: 2.75rem; background: var(--brand-navy); box-shadow: var(--site-shadow-lg), inset 0 0 0 2px #1E3A63; animation: phone-float 6s ease-in-out infinite; }
.phone__notch { position: absolute; top: 1.125rem; left: 50%; width: 5rem; height: 1.125rem; margin-left: -2.5rem; border-radius: 1rem; background: var(--brand-navy); z-index: 2; }
.phone__screen { display: flex; flex-direction: column; height: 100%; border-radius: 2.125rem; overflow: hidden; background: var(--surface); }
.phone__search { display: flex; align-items: center; gap: 0.5rem; margin: 2.5rem 0.875rem 0.625rem; padding: 0.5rem 0.75rem; border-radius: 0.75rem; border: 1px solid var(--site-border); color: var(--text-muted); font-size: 0.6875rem; }
.phone__search span { width: 0.75rem; height: 0.75rem; border-radius: 50%; border: 2px solid var(--text-muted); }
.phone__map { flex: 1 1 auto; min-height: 0; }
.phone__map svg { display: block; width: 100%; height: 100%; }
.phone__sheet { display: grid; gap: 0.5rem; padding: 0.875rem; border-top: 1px solid var(--site-border); border-radius: 1rem 1rem 0 0; box-shadow: 0 -6px 16px rgba(7, 27, 53, 0.06); }
.phone__sheet .tracking-pill { justify-self: start; font-size: 0.75rem; }
.phone__line { height: 0.5rem; width: 55%; border-radius: 0.25rem; background: #E8EEF6; }
.phone__line--wide { width: 80%; background: #DCE6F3; }
.phone__stops { display: flex; gap: 0.375rem; }
.phone__stops i { flex: 1; height: 0.375rem; border-radius: 0.25rem; background: var(--tint); }
.phone__stops i:first-child, .phone__stops i:nth-child(2) { background: var(--brand-blue); }
@keyframes phone-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Agency showcase */
.agency-features { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: 0.75rem; }
.agency-features li { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 0.75rem; padding: 0.75rem 1rem; border: 1px solid var(--site-border); border-radius: 0.875rem; background: var(--surface); color: var(--text-muted); }
.agency-features strong { color: var(--brand-navy); }
@media (max-width: 479.98px) { .agency-features li { grid-template-columns: minmax(0, 1fr); gap: 0.125rem; } }
.console { margin: 0; }
.console__bar { display: flex; align-items: center; gap: 0.375rem; padding: 0.625rem 0.875rem; background: #EEF2F8; border: 1px solid var(--site-border); border-bottom: 0; border-radius: 1.125rem 1.125rem 0 0; }
.console__bar i { width: 0.625rem; height: 0.625rem; border-radius: 50%; background: #CBD5E3; }
.console__bar span { margin-left: 0.75rem; font-size: 0.75rem; font-weight: 600; color: var(--text-muted); }
.console__body { display: grid; grid-template-columns: 9rem minmax(0, 1fr); background: var(--surface); border: 1px solid var(--site-border); border-radius: 0 0 1.125rem 1.125rem; box-shadow: var(--site-shadow-lg); overflow: hidden; }
.console__nav { display: flex; flex-direction: column; gap: 0.375rem; padding: 1rem 0.75rem; border-right: 1px solid var(--site-border); }
.console__nav b { font-size: 0.625rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); margin-top: 0.375rem; }
.console__nav span { height: 0.625rem; border-radius: 0.25rem; background: #EEF2F8; }
.console__nav span.is-on { background: var(--tint); box-shadow: inset 3px 0 0 var(--brand-blue); }
.console__main { display: grid; gap: 0.75rem; padding: 1rem; }
.console__tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; }
.console__tiles span { height: 3rem; border-radius: 0.625rem; border: 1px solid var(--site-border); background: linear-gradient(90deg, #F4F7FB, #FFFFFF); }
.console__map svg { display: block; width: 100%; height: auto; }
.console__rows { display: grid; gap: 0.375rem; }
.console__rows span { height: 0.625rem; border-radius: 0.25rem; background: #F0F3F8; }
.console__rows span:nth-child(2) { width: 80%; }
.console__rows span:nth-child(3) { width: 60%; }
@media (max-width: 479.98px) { .console__body { grid-template-columns: minmax(0, 1fr); } .console__nav { display: none; } }

/* About band on the home page */
.about-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding: clamp(1.75rem, 4vw, 3rem); border-radius: 2rem; border: 1px solid var(--site-border); background: linear-gradient(135deg, #FFFFFF, #F1F6FF); box-shadow: var(--site-shadow); }
.about-band > div:first-child { max-width: 44rem; }
.about-band__actions { display: flex; flex-wrap: wrap; gap: 0.625rem; }

/* ---------- Articles and blog ---------- */
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); gap: 1.25rem; }
.article-grid--list { grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); }
.article-card { position: relative; display: flex; flex-direction: column; gap: 0.5rem; background: var(--surface); border: 1px solid var(--site-border); border-radius: 1.25rem; padding: 1.5rem; box-shadow: var(--site-shadow-sm); transition: transform 0.3s var(--site-ease), box-shadow 0.3s var(--site-ease), border-color 0.3s ease; }
.article-card:hover, .article-card:focus-within { transform: translateY(-4px); box-shadow: var(--site-shadow); border-color: #C8D8F0; }
.article-card__category { align-self: flex-start; color: var(--tint-text); background: var(--tint); border-radius: 999px; padding: 0.1875rem 0.75rem; font-size: 0.75rem; font-weight: 700; text-decoration: none; }
a.article-card__category:hover { color: var(--brand-blue-dark); }
.article-card__title { font-size: 1.1875rem; line-height: 1.3; margin: 0.25rem 0 0; }
.article-card__title a { color: var(--brand-navy); text-decoration: none; }
.article-card__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.article-card__title a:hover { color: var(--brand-blue); }
.article-card__summary { color: var(--text-muted); margin: 0; flex: 1 1 auto; }
.article-card__meta { color: var(--text-muted); font-size: 0.8125rem; margin: 0.25rem 0 0; }

.site-breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0.25rem; list-style: none; padding: 0; margin: 0 0 1rem; font-size: 0.875rem; color: var(--text-muted); }
.site-breadcrumb li + li::before { content: "/"; margin-right: 0.375rem; color: #A9B6C8; }
.site-breadcrumb a { color: var(--text-muted); text-decoration: none; }
.site-breadcrumb a:hover { color: var(--brand-blue); text-decoration: underline; }
.site-breadcrumb [aria-current="page"] { color: var(--site-text); font-weight: 550; overflow-wrap: anywhere; }

.blog-hero { margin-bottom: 2rem; padding: clamp(1.75rem, 4vw, 2.75rem); border-radius: 1.5rem; border: 1px solid var(--site-border); background: radial-gradient(40rem 18rem at 100% 0%, rgba(61, 139, 255, 0.10), transparent 70%), var(--surface); }
.blog-hero h1 { color: var(--brand-navy); font-size: clamp(1.875rem, 4vw, 2.75rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 0.75rem; overflow-wrap: anywhere; }
.blog-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; align-items: start; }
@media (min-width: 992px) { .blog-layout { grid-template-columns: minmax(0, 1fr) 18.5rem; } .blog-aside { position: sticky; top: 7.5rem; } }
.blog-aside { display: grid; gap: 1.25rem; }
.blog-search, .blog-categories { background: var(--surface); border: 1px solid var(--site-border); border-radius: 1.25rem; padding: 1.25rem; }
.blog-aside__heading { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.75rem; }
.blog-categories ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.125rem; }
.blog-categories a { display: flex; justify-content: space-between; gap: 0.5rem; padding: 0.5rem 0.625rem; border-radius: 0.625rem; color: var(--site-text); text-decoration: none; font-weight: 550; font-size: 0.9375rem; }
.blog-categories a span { color: var(--text-muted); font-weight: 600; font-size: 0.8125rem; }
.blog-categories a:hover { background: var(--surface-muted); }
.blog-categories a.is-current { background: var(--tint); color: var(--tint-text); }
.blog-pager { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: 2rem; }
.blog-pager ol { display: flex; gap: 0.25rem; list-style: none; padding: 0; margin: 0; }
.blog-pager ol a { display: inline-flex; align-items: center; justify-content: center; min-width: 2.25rem; height: 2.25rem; border-radius: 0.625rem; border: 1px solid var(--site-border); color: var(--site-text); text-decoration: none; font-weight: 600; }
.blog-pager ol a.is-current { background: var(--brand-blue); border-color: var(--brand-blue); color: #FFFFFF; }

.article { background: var(--surface); border: 1px solid var(--site-border); border-radius: 1.5rem; padding: clamp(1.5rem, 4vw, 3rem); min-width: 0; }
.article__header { border-bottom: 1px solid var(--site-border); padding-bottom: 1.5rem; margin-bottom: 1.75rem; }
.article__header h1 { color: var(--brand-navy); font-size: clamp(1.875rem, 4vw, 2.625rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.12; margin: 0.75rem 0; overflow-wrap: anywhere; }
.article__summary { font-size: 1.1875rem; color: var(--text-muted); line-height: 1.55; }
.article__body { max-width: 44rem; font-size: 1.0625rem; line-height: 1.75; color: var(--site-text); }
.article__body h2 { font-size: 1.375rem; color: var(--brand-navy); margin: 2rem 0 0.625rem; }
.article__body p { margin-bottom: 1.125rem; }
.article__body ul { margin: -0.375rem 0 1.25rem; padding-left: 1.25rem; }
.article__body li { margin-bottom: 0.375rem; }
.article__body li::marker { color: var(--brand-blue); }
.article__footer { border-top: 1px solid var(--site-border); margin-top: 2rem; padding-top: 1.5rem; }
.article__tags { display: flex; flex-wrap: wrap; gap: 0.375rem; list-style: none; padding: 0; margin: 0; }
.article__tags a { display: inline-block; padding: 0.25rem 0.75rem; border-radius: 999px; border: 1px solid var(--site-border); color: var(--text-muted); font-size: 0.8125rem; font-weight: 600; text-decoration: none; }
.article__tags a:hover { border-color: var(--brand-blue); color: var(--brand-blue); }

/* ---------- About and Contact pages ---------- */
.about-grid, .contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: 1.25rem; }
.about-grid .panel { border-radius: 1.25rem; padding: 1.75rem; }
.contact-card { display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; background: var(--surface); border: 1px solid var(--site-border); border-radius: 1.25rem; padding: 1.75rem; box-shadow: var(--site-shadow-sm); }
.contact-card h2 { color: var(--brand-navy); }
.contact-card p { color: var(--text-muted); flex: 1 1 auto; }

/* ---------- Map demo page ---------- */
.demo-banner { background: var(--notice); color: var(--notice-text); border: 1px solid var(--brand-orange-dark); border-radius: 0.875rem; padding: 0.75rem 1rem; font-weight: 500; }
.demo-start { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 20rem; padding: 2rem; border-radius: 1.25rem; border: 1px dashed var(--border-input); background: linear-gradient(180deg, #FFFFFF, #F3F7FD); }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--site-border); padding: 3.5rem 0 1.5rem; font-size: 0.9375rem; }
.site-footer .container-xxl { padding-inline: 1rem; }
@media (min-width: 992px) { .site-footer .container-xxl { padding-inline: 1.75rem; } }
.site-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); gap: 2rem; }
.site-footer__brand { grid-column: 1 / -1; max-width: 22rem; }
@media (min-width: 1200px) { .site-footer__grid { grid-template-columns: 1.6fr repeat(4, 1fr); } .site-footer__brand { grid-column: auto; } }
.site-footer__name { font-weight: 800; letter-spacing: 0.04em; color: var(--brand-blue); font-size: 1.25rem; margin-bottom: 0.25rem; }
.site-footer__bus { color: var(--brand-navy); }
.site-footer__tagline { color: var(--brand-navy); font-weight: 650; margin-bottom: 0.5rem; }
.site-footer__heading { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand-navy); margin-bottom: 0.875rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.site-footer a { color: var(--text-muted); text-decoration: none; }
.site-footer a:hover { color: var(--brand-blue); text-decoration: underline; }
.site-footer__contact { display: grid; gap: 0.375rem; margin: 1rem 0 0; font-style: normal; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--site-border); color: var(--text-muted); font-size: 0.875rem; }

/* ---------- Reduced motion: still, fully visible, nothing hidden waiting for a scroll. ---------- */
@media (prefers-reduced-motion: reduce) {
  .motion-ready .reveal-pending:not(.is-visible) { opacity: 1; transform: none; }
  .hero-route-line { stroke-dashoffset: 0; }
  .tilt-demo__plane { transition: none; }
  .phone__frame, .tilt-demo__pin { animation: none; }
  /* Looping animations would flicker under site.css's near-zero durations, so they are switched off outright. */
  .hero-route-flow, .hero-pulse, .hero-ripple, .hero-signal path, .hero-chip__dot, .site-hero__mouse::after, .map-2d__halo,
  .camera-showcase__lanes rect, .camera-showcase__badge--rec span, .workflow__number { animation: none !important; }
  .hero-pulse, .hero-ripple { opacity: 0.3; }
}
