/*
 * eFast — base styles
 * -------------------
 * Colours, fonts and shared building blocks used by every section.
 * Change a colour here and it updates across the whole site.
 */

:root {
  /* Brand colours (taken from the Framer project) */
  --accent: #12c765;        /* eFast green */
  --ink: #0c1712;           /* near-black text */
  --base: #f6faf7;          /* page background */
  --green: #18d76b;
  --mint: #bff3d5;
  --deep: #0f9d55;
  --panel: #0e1512;         /* dark cards and map */
  --on-dark: #f4fff8;       /* text on dark cards */
  --on-accent: #052012;     /* text on green buttons */

  --heading: #101311;       /* page headings */
  --body-grey: #68716b;     /* page paragraphs */
  --eyebrow: #18a958;       /* small green labels above headings */
  --bright: #18d76b;        /* buttons in the menu and hero */
  --text-muted: rgba(12, 23, 18, 0.62);
  --text-soft: rgba(12, 23, 18, 0.55);
  --line: rgba(12, 23, 18, 0.08);

  /* Fonts
   * --font-site:    the Outfit font used for page text in Framer
   * --font-ui:      used inside the interactive blocks (calculator, map, FAQ…)
   * --font-display: used by the stats strip, Pune Pilot and cleaner-city blocks */
  --font-site: "Outfit", "Outfit Placeholder", sans-serif;
  --font-ui: -apple-system, "SF Pro Display", "SF Pro Text", "Inter", system-ui, sans-serif;
  --font-display: -apple-system, "SF Pro Display", "Outfit", "Inter", system-ui, sans-serif;

  /* The easing curve Framer used for almost every transition */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --container: 1120px;
  --gutter: 40px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--base);
  color: var(--ink);
  font-family: var(--font-site);
  font-size: 16px;
  line-height: normal; /* Framer's default; text that needs more sets its own */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- Layout ---------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  position: relative;
  padding: 104px 0;
}

/* A rounded panel that sits inside the page width (hub network, partnership) */
.panel-box {
  max-width: var(--container);
  margin: 0 auto;
  padding: 80px 48px;
  border-radius: 32px;
  background: #f3f7f4;
}

/* Offset anchor jumps so headings aren't hidden under the menu */
section[id] {
  scroll-margin-top: 80px;
}

/* ---------- Section headings ---------- */

.section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 650px;
}

.section-head--center {
  align-items: center;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 1.7px;
  text-transform: uppercase;
  color: var(--eyebrow);
}

.heading {
  font-size: 52px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -2.5px;
  color: var(--heading);
}

.lead {
  max-width: 620px;
  margin-top: 4px;
  font-size: 18px;
  line-height: 1.45;
  color: var(--body-grey);
}

/* ---------- Shared bits ---------- */

.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: live-pulse 1.8s ease-out infinite;
}

@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(18, 199, 101, 0.53); }
  70% { box-shadow: 0 0 0 9px rgba(18, 199, 101, 0); }
  100% { box-shadow: 0 0 0 0 rgba(18, 199, 101, 0); }
}

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

@keyframes fade-up {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Panels that spring open and closed (see js/motion.js) */
.panel {
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.panel.is-open {
  opacity: 1;
}

/* Sliding pill used by the fleet/hub toggle and the FAQ tabs */
.pill-toggle {
  position: relative;
  display: flex;
  gap: 4px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(12, 23, 18, 0.05);
  border: 1px solid rgba(12, 23, 18, 0.06);
}

.pill-toggle__thumb {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 5px;
  width: calc(50% - 5px);
  border-radius: 999px;
  background: var(--ink);
  box-shadow: 0 6px 18px -6px rgba(12, 40, 25, 0.5);
  transition: left 420ms var(--ease);
}

.pill-toggle[data-active="1"] .pill-toggle__thumb {
  left: 50%;
}

.pill-toggle button {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 148px;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: rgba(12, 23, 18, 0.62);
  transition: color 260ms ease;
}

.pill-toggle button[aria-selected="true"] {
  color: #fff;
}

/* ---------- Scroll reveal ----------
 * Add class="reveal" to anything that should fade up as it scrolls into view.
 * Add style="--delay: 120ms" to stagger items.
 */
.reveal {
  opacity: 0;
}

.reveal.is-visible {
  opacity: 1;
  animation: reveal-in 0.7s var(--ease) var(--delay, 0ms) backwards;
}

@keyframes reveal-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
}

/* ---------- Phone (under 1200px, same breakpoint as the Framer site) ---------- */

/* Framer's phone layout keeps the desktop spacing and text sizes for the
   page sections; they simply stack into one column. The section files
   below only change what Framer's phone layout changes. */

@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;
  }

  .reveal {
    opacity: 1;
  }
}

/* If JavaScript is off, show everything instead of waiting for the reveal */
.no-js .reveal {
  opacity: 1;
}

/* ---------- Section spacing (matches the Framer page) ---------- */

.container-wide {
  max-width: var(--container);
  margin: 0 auto;
}

/* Framer nudges these two sections 36px down without moving the rest of the page */
.section--network { padding: 4px 0 128px; top: 36px; }
.section--tight { padding: 28px 0 40px; }
.section--tight .stack { gap: 26px; }
.section--hub { padding: 0; }
.section--intel { padding: 128px 0; top: 36px; }
.section--paths { padding-bottom: 96px; }

.stack--hub { display: flex; flex-direction: column; gap: 34px; }
.heading--hub { font-size: 45px; letter-spacing: -2px; }
.lead--narrow { max-width: 500px; }

/* Small caps label used inside the Pune Pilot and cleaner-city panels */
.component-label {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent);
}

.live-dot--still {
  animation: none;
}
