/* Landing + Contact Us styles. Extracted unchanged from frontend/src/styles/global.css (only the parts these two pages use). */
/* Global resets + keyframes. Component styling lives inline (see theme.js). */
:root {
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html,
body,
#root {
  height: 100%;
}

body {
  margin: 0;
  background: #eef1f5; /* colors.bgAlt — overridden inline by App once the current landingTheme mode is known, see App.tsx */
  font-family: "Funnel Display", sans-serif; /* fonts.body */
  color: #002442; /* colors.primary */
  -webkit-font-smoothing: antialiased;
  transition: background .4s ease;
}

a {
  color: #1c79ff; /* colors.blue */
}
a:hover {
  color: #002442; /* colors.primary */
}

/* Visible keyboard focus ring (WCAG 2.4.7) — a shape around the element, not
   a color-only cue, so it still reads for keyboard users who don't see color. */
:focus-visible {
  outline: 2px solid #e600cc; /* colors.magenta */
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Custom scrollbar. #cbd2dd here is only the pre-theme fallback (before
   App.tsx's ScrollbarThemeSync mounts, or for old light-only pages) — it
   injects its own <style> tag with the real per-theme color as a hard
   override. See that component for why it rewrites a stylesheet rule
   instead of just a CSS variable. */
.scrollbar::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}
.scrollbar::-webkit-scrollbar-thumb {
  background: #cbd2dd;
  border-radius: 6px;
}
.scrollbar::-webkit-scrollbar-track {
  background: transparent;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes dash {
  to {
    stroke-dashoffset: 0;
  }
}
/* ── Landing page (ScrollytellingPage) ── */
/* Only animated `transform` before, so the corner gradients drifted and
   resized but never actually dimmed — the color read as constantly on
   instead of breathing. Opacity now dips at each transform extreme and
   recovers at rest, so it visibly fades and comes back each cycle. */
@keyframes landingAurora {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  33% {
    transform: translate(6%, -4%) scale(1.15);
    opacity: 0.5;
  }
  66% {
    transform: translate(-5%, 5%) scale(0.95);
    opacity: 0.7;
  }
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
}
/* Shifts the tiled background itself (not the element via `transform`) so
   the loop is seamless — a transform would cyclically uncover the box's own
   edge. */
@keyframes landingDrift {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 0 40px;
  }
}
/* End point is a CSS variable set inline from the measured content height,
   not a fixed distance — the beam is only 120px tall, so a fixed percentage
   would fall short on a taller page. */
@keyframes landingScan {
  from {
    transform: translateY(-120px);
  }
  to {
    transform: translateY(var(--scan-distance, 1080px));
  }
}
@keyframes landingShimmer {
  0%,
  100% {
    opacity: 0.25;
  }
  50% {
    opacity: 0.8;
  }
}
@keyframes landingPulse {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.5);
  }
}

.landing-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(24px, 4vw, 40px);
  align-items: start;
}
.landing-pipeline-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.landing-pipeline-grid > * {
  border-right: 1px solid var(--landing-line, transparent);
}
.landing-pipeline-grid > *:last-child {
  border-right: none;
}
@media (max-width: 900px) {
  .landing-hero-grid {
    grid-template-columns: 1fr;
  }
}
/* Five steps need more room than four: they drop to two columns earlier than the hero does. */
@media (max-width: 1100px) {
  .landing-pipeline-grid > *:nth-child(odd) {
    padding-left: 0 !important;
  }
  .landing-pipeline-grid > *:nth-child(even) {
    padding-right: 0 !important;
  }
  .landing-pipeline-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .landing-pipeline-grid > *:nth-child(2n) {
    border-right: none;
  }
  .landing-pipeline-grid > * {
    border-bottom: 1px solid var(--landing-line, transparent);
  }
}
@media (max-width: 560px) {
  /* With the extra "For Utilities" link the header wraps to three rows on a phone: too tall to keep pinned over the page. */
  .landing-header {
    position: static !important;
  }
  .landing-pipeline-grid > * {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .landing-pipeline-grid {
    grid-template-columns: 1fr;
  }
  .landing-pipeline-grid > * {
    border-right: none;
  }
  .landing-ctas,
  .landing-demo-stats,
  .landing-trust-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Contact page: three channels side by side under the hero, stacked on narrow screens. */
.contact-cells {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.contact-cells > * + * {
  border-left: 1px solid var(--contact-line);
}
.contact-cells > :first-child {
  padding-left: 0 !important;
}
@keyframes chev {
  0%, 100% { opacity: 0.18; transform: translateX(0); }
  50% { opacity: 0.9; transform: translateX(10px); }
}
@media (max-width: 860px) {
  .contact-cells {
    grid-template-columns: 1fr;
  }
  .contact-cells > * + * {
    border-left: none;
    border-top: 1px solid var(--contact-line);
  }
  .contact-cells > * {
    padding-left: 0 !important;
  }
}
@media (max-width: 620px) {
  .contact-chevs {
    display: none !important;
  }
}

