@charset "UTF-8";

@font-face {
  font-family: "Outfit";
  src: url("/static/fonts/Outfit-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("/static/fonts/Outfit-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("/static/fonts/Outfit-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("/static/fonts/Outfit-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("/static/fonts/Outfit-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --ek-blue: #007aff;
  --ek-blue-deep: #0062cc;
  --ek-ink: #1a1a1a;
  --ek-ink-deep: #0a0a0b;
  --ek-green: #34c759;
  --ek-amber: #ff9500;
  --ek-red: #fa4242;

  --ek-metro: #009a4c;
  --ek-metro-alt: #e02725;
  --ek-tram: #024f7b;
  --ek-marmaray: #1d3557;
  --ek-ferry: #0e9aa7;
  --ek-minibus: #9b59b6;
  --ek-metrobus: #263679;

  --surface: #ffffff;
  --surface-sunken: #f2f2f7;
  --surface-card: #ffffff;
  --surface-raised: #ffffff;

  --text: #000000;
  --text-soft: rgba(60, 60, 67, 0.6);
  --text-faint: rgba(60, 60, 67, 0.36);
  --text-on-dark: #ffffff;
  --text-on-dark-soft: rgba(235, 235, 245, 0.62);

  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.14);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04), 0 1px 1px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.04);

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 14px;
  --r-xl: 18px;
  --r-2xl: 24px;
  --r-pill: 999px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  --container: 1160px;
  --container-narrow: 760px;

  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --dur: 240ms;
}

:root[data-theme="dark"] {
  --surface: #000000;
  --surface-sunken: #0c0c0e;
  --surface-card: #1c1c1e;
  --surface-raised: #1c1c1e;

  --text: #ffffff;
  --text-soft: rgba(235, 235, 245, 0.62);
  --text-faint: rgba(235, 235, 245, 0.34);

  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.18);
  --shadow-sm: none;
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);

  --ek-blue: #0a84ff;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --surface: #000000;
    --surface-sunken: #0c0c0e;
    --surface-card: #1c1c1e;
    --surface-raised: #1c1c1e;

    --text: #ffffff;
    --text-soft: rgba(235, 235, 245, 0.62);
    --text-faint: rgba(235, 235, 245, 0.34);

    --border: rgba(255, 255, 255, 0.1);
    --border-strong: rgba(255, 255, 255, 0.18);
    --shadow-sm: none;
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);

    --ek-blue: #0a84ff;
  }
}

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

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  font-family: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern" 1;
  overflow-x: hidden;
}

img,
svg,
picture {
  display: block;
  max-width: 100%;
  height: auto;
}

.btn > svg,
.theme-toggle svg,
.eyebrow svg,
.store-badge > svg,
.route-card__walk svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.nav__caret svg {
  width: 100%;
  height: 100%;
}

a {
  color: var(--ek-blue);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

a:hover {
  color: var(--ek-blue-deep);
}

:root[data-theme="dark"] a:hover {
  color: #4da2ff;
}

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

:focus-visible {
  outline: 2px solid var(--ek-blue);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

h1,
h2,
h3,
h4 {
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.4rem, 1.5rem + 4vw, 4.4rem);
}

h2 {
  font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem);
}

h3 {
  font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.6rem);
  letter-spacing: -0.025em;
  line-height: 1.2;
}

h4 {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.35;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ek-blue);
}

.lead {
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  line-height: 1.55;
  color: var(--text-soft);
  max-width: 62ch;
  text-wrap: pretty;
}

.tnum {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-4);
  z-index: 200;
  padding: var(--space-3) var(--space-4);
  background: var(--ek-blue);
  color: #fff;
  border-radius: var(--r-md);
  font-weight: 600;
}

.skip-link:focus {
  top: var(--space-4);
  color: #fff;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding-block: clamp(56px, 4vw + 40px, 104px);
}

.section--sunken {
  background: var(--surface-sunken);
}

.section--tight {
  padding-block: clamp(40px, 3vw + 24px, 72px);
}

.section__head {
  max-width: 720px;
  margin-bottom: var(--space-7);
}

.section__head > * + * {
  margin-top: var(--space-4);
}

.section__head--center {
  margin-inline: auto;
  text-align: center;
}

.section__head--center .lead {
  margin-inline: auto;
}

.section__head--center .eyebrow::before {
  display: none;
}

.grid {
  display: grid;
  gap: var(--space-4);
}

.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.stack > * + * {
  margin-top: var(--space-4);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease),
    background var(--dur) var(--ease);
}

.site-header[data-scrolled="true"] {
  border-bottom-color: var(--border);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  color: var(--text);
  flex-shrink: 0;
}

.brand:hover {
  color: var(--text);
}

.brand__mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  flex-shrink: 0;
}

.brand__name b {
  font-weight: 800;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  margin-left: auto;
  list-style: none;
  padding: 0;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-soft);
  white-space: nowrap;
  background: none;
  border: 0;
  cursor: pointer;
}

.nav__link:hover {
  color: var(--text);
  background: var(--surface-sunken);
}

.nav__link[aria-current="page"] {
  color: var(--text);
  font-weight: 600;
}

.nav__group {
  position: relative;
}

.nav__caret {
  width: 10px;
  height: 10px;
  transition: transform var(--dur) var(--ease);
}

.nav__group[data-open="true"] .nav__caret {
  transform: rotate(180deg);
}

.nav__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 224px;
  padding: 6px;
  list-style: none;
  margin: 0;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease),
    visibility var(--dur);
}

.nav__group[data-open="true"] .nav__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__menu a {
  display: block;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
}

.nav__menu a:hover {
  background: var(--surface-sunken);
  color: var(--text);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-soft);
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

.theme-toggle:hover {
  background: var(--surface-sunken);
  color: var(--text);
}

.theme-toggle .icon-sun {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

:root[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun {
    display: block;
  }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon {
    display: none;
  }
}

.nav__toggle {
  display: none;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 12px 20px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--dur) var(--ease),
    background var(--dur) var(--ease), border-color var(--dur) var(--ease),
    opacity var(--dur) var(--ease);
}

.btn:active {
  transform: scale(0.97);
}

.btn--primary {
  background: var(--ek-blue);
  color: #fff;
}

.btn--primary:hover {
  background: var(--ek-blue-deep);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}

.btn--ghost:hover {
  background: var(--surface-sunken);
  color: var(--text);
}

.btn--on-dark {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.btn--on-dark:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.btn--lg {
  padding: 15px 26px;
  font-size: 1rem;
}

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 15px;
  border-radius: var(--r-lg);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  line-height: 1.15;
}

.store-badge:hover {
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
}

.store-badge svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.store-badge small {
  display: block;
  font-size: 0.6875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.66);
  letter-spacing: 0.02em;
}

.store-badge strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.store-badge[aria-disabled="true"] {
  opacity: 0.62;
  cursor: default;
}

.store-badges--light .store-badge {
  border-color: var(--border-strong);
  background: var(--surface-card);
  color: var(--text);
}

.store-badges--light .store-badge:hover {
  background: var(--surface-sunken);
  color: var(--text);
}

.store-badges--light .store-badge small {
  color: var(--text-soft);
}

.line-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 26px;
  padding: 0 9px;
  border-radius: var(--r-sm);
  background: var(--ek-ink);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.line-badge--bus { background: var(--ek-blue); }
.line-badge--metrobus { background: var(--ek-metrobus); }
.line-badge--metro { background: var(--ek-metro); }
.line-badge--metro-alt { background: var(--ek-metro-alt); }
.line-badge--tram { background: var(--ek-tram); }
.line-badge--marmaray { background: var(--ek-marmaray); }
.line-badge--ferry { background: var(--ek-ferry); }
.line-badge--minibus { background: var(--ek-minibus); }

.line-badge--lg {
  min-width: 52px;
  height: 34px;
  font-size: 1rem;
  border-radius: var(--r-md);
}

.card {
  padding: var(--space-5);
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

a.card:hover,
.card--interactive:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.card__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--ek-blue) 12%, transparent);
  color: var(--ek-blue);
  margin-bottom: var(--space-4);
}

.card__icon svg {
  width: 21px;
  height: 21px;
}

.card h3,
.card h4 {
  margin-bottom: var(--space-2);
  color: var(--text);
}

.card p {
  color: var(--text-soft);
  font-size: 0.9688rem;
  line-height: 1.55;
}

.mode-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
  padding-left: calc(var(--space-5) + 4px);
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  color: var(--text);
  transition: transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.mode-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--mode-color, var(--ek-blue));
}

.mode-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
  color: var(--text);
}

.mode-card[data-mode="bus"] { --mode-color: var(--ek-blue); }
.mode-card[data-mode="metrobus"] { --mode-color: var(--ek-metrobus); }
.mode-card[data-mode="metro"] { --mode-color: var(--ek-metro); }
.mode-card[data-mode="marmaray"] { --mode-color: var(--ek-marmaray); }
.mode-card[data-mode="ferry"] { --mode-color: var(--ek-ferry); }
.mode-card[data-mode="minibus"] { --mode-color: var(--ek-minibus); }

.mode-card__top {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.mode-card__glyph {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--mode-color) 12%, transparent);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.mode-card__glyph img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.mode-card__glyph[data-logo="dark"] {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.mode-card__glyph[data-logo="light"] {
  background: var(--mode-color, var(--ek-blue));
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.mode-card__glyph img {
  width: 22px;
  height: 22px;
}

.mode-card h3 {
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}

.mode-card p {
  color: var(--text-soft);
  font-size: 0.9375rem;
  line-height: 1.5;
  flex: 1;
}

.live-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 4px 10px 4px 8px;
  border-radius: var(--r-pill);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  background: var(--surface-sunken);
  color: var(--text-soft);
}

.live-chip__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.live-chip--live {
  background: color-mix(in srgb, var(--ek-green) 14%, transparent);
  color: color-mix(in srgb, var(--ek-green) 78%, #000);
}

:root[data-theme="dark"] .live-chip--live {
  color: var(--ek-green);
}

.live-chip--live .live-chip__dot {
  background: var(--ek-green);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--ek-green) 70%, transparent);
  animation: pulse 2.4s var(--ease) infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ek-green) 60%, transparent); }
  70% { box-shadow: 0 0 0 7px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.hero {
  position: relative;
  background: var(--ek-ink-deep);
  color: var(--text-on-dark);
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% 30% auto -10%;
  height: 620px;
  background: radial-gradient(
    ellipse at 30% 40%,
    rgba(0, 122, 255, 0.22),
    transparent 62%
  );
  z-index: -1;
  pointer-events: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(64px, 7vw, 116px);
}

.hero__eyebrow {
  color: var(--text-on-dark-soft);
}

.hero__eyebrow::before {
  background: var(--ek-blue);
}

.hero h1 {
  margin-top: var(--space-4);
  color: #fff;
}

.hero h1 em {
  font-style: normal;
  color: var(--ek-blue);
}

.hero__lead {
  margin-top: var(--space-5);
  color: var(--text-on-dark-soft);
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.1875rem);
  max-width: 52ch;
}

.hero__cta {
  margin-top: var(--space-6);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  margin-top: var(--space-5);
  font-size: 0.875rem;
  color: var(--text-on-dark-soft);
}

.hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero__meta svg {
  width: 15px;
  height: 15px;
  color: var(--ek-green);
  flex-shrink: 0;
}

.route-card {
  background: var(--surface-card);
  border-radius: var(--r-2xl);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 2px 8px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.route-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border);
}

.route-card__route {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.route-card__route span {
  color: var(--text-faint);
  font-weight: 500;
  padding-inline: 3px;
}

.route-card__total {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.route-card__total small {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-soft);
  letter-spacing: 0;
}

.route-card__strip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: var(--space-3) var(--space-5);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.route-card__strip .sep {
  color: var(--text-faint);
  font-size: 0.75rem;
}

.route-card__walk {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-soft);
}

.route-card__walk svg {
  width: 14px;
  height: 14px;
}

.route-legs {
  padding: var(--space-4) var(--space-5) var(--space-5);
}

.leg {
  position: relative;
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: var(--space-3);
  padding-bottom: var(--space-4);
}

.leg:last-child {
  padding-bottom: 0;
}

.leg__rail {
  position: relative;
  display: flex;
  justify-content: center;
}

.leg__dot {
  position: relative;
  z-index: 2;
  width: 11px;
  height: 11px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--surface-card);
  border: 2.5px solid var(--leg-color, var(--ek-blue));
}

.leg__dot--filled {
  background: var(--leg-color, var(--ek-blue));
}

.leg:not(:last-child) .leg__rail::after {
  content: "";
  position: absolute;
  top: 16px;
  bottom: -6px;
  left: 50%;
  width: 3px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--leg-color, var(--ek-blue));
}

.leg--walk:not(:last-child) .leg__rail::after {
  background: repeating-linear-gradient(
    to bottom,
    var(--text-faint) 0 4px,
    transparent 4px 8px
  );
  width: 2px;
  margin-left: -1px;
}

.leg[data-mode="bus"] { --leg-color: var(--ek-blue); }
.leg[data-mode="metro"] { --leg-color: var(--ek-metro); }
.leg[data-mode="marmaray"] { --leg-color: var(--ek-marmaray); }
.leg[data-mode="ferry"] { --leg-color: var(--ek-ferry); }

.leg__body {
  min-width: 0;
}

.leg__title {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  flex-wrap: wrap;
}

.leg__meta {
  margin-top: 2px;
  font-size: 0.8125rem;
  color: var(--text-soft);
}

.leg__time {
  float: right;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-soft);
  font-variant-numeric: tabular-nums;
}

.route-card__vehicle {
  position: absolute;
  left: 50%;
  top: 16px;
  width: 15px;
  height: 15px;
  margin-left: -7.5px;
  border-radius: 50%;
  background: var(--leg-color, var(--ek-blue));
  border: 2.5px solid var(--surface-card);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--leg-color, var(--ek-blue)) 22%, transparent);
  z-index: 3;
  animation: glide 5.5s var(--ease) infinite;
}

@keyframes glide {
  0%, 8% { transform: translateY(0); opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  92%, 100% { transform: translateY(var(--glide-distance, 58px)); opacity: 0; }
}

.route-card__foot {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  border-top: 1px solid var(--border);
  background: var(--surface-sunken);
  font-size: 0.8125rem;
  color: var(--text-soft);
}

.route-card__foot svg {
  width: 15px;
  height: 15px;
  color: var(--ek-blue);
  flex-shrink: 0;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
}

.stat {
  padding: var(--space-5);
  background: var(--surface-card);
  text-align: center;
}

.stat__value {
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stat__label {
  margin-top: 6px;
  font-size: 0.875rem;
  color: var(--text-soft);
}

.faq {
  border-top: 1px solid var(--border);
}

.faq__item {
  border-bottom: 1px solid var(--border);
}

.faq__item summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) 0;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  cursor: pointer;
  list-style: none;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: "";
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 3px;
  background: currentColor;
  opacity: 0.45;
  transition: transform var(--dur) var(--ease);
  -webkit-mask: var(--icon-plus) center / contain no-repeat;
  mask: var(--icon-plus) center / contain no-repeat;
}

.faq__item[open] summary::after {
  transform: rotate(45deg);
}

.faq__answer {
  padding-bottom: var(--space-5);
  color: var(--text-soft);
  max-width: 74ch;
}

:root {
  --icon-plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14' stroke='%23000' stroke-width='2' stroke-linecap='round' fill='none'/%3E%3C/svg%3E");
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: var(--surface-card);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  min-width: 560px;
}

th,
td {
  padding: var(--space-4);
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

thead th {
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-soft);
  background: var(--surface-sunken);
  white-space: nowrap;
}

tbody th[scope="row"] {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text);
  background: transparent;
  text-transform: none;
  letter-spacing: normal;
  white-space: normal;
}

.table-wrap--cols3 th:nth-child(1) { width: 30%; }
.table-wrap--cols3 th:nth-child(2) { width: 22%; }
.table-wrap--cols3 th:nth-child(3) { width: 48%; }

@media (max-width: 720px) {
  .table-wrap {
    border: 0;
    background: transparent;
    overflow-x: visible;
  }

  .table-wrap table {
    min-width: 0;
  }

  .table-wrap thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .table-wrap tr {
    display: block;
    padding: var(--space-4);
    margin-bottom: var(--space-3);
    background: var(--surface-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
  }

  .table-wrap td,
  .table-wrap tbody th {
    display: block;
    width: auto;
    padding: 0;
    border: 0;
  }

  .table-wrap tbody th[scope="row"] {
    font-size: 1.0625rem;
    margin-bottom: var(--space-3);
  }

  .table-wrap td[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 3px;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-faint);
  }

  .table-wrap td + td {
    margin-top: var(--space-3);
  }
}

tbody tr:last-child td {
  border-bottom: 0;
}

.licence-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: var(--r-sm);
  background: var(--surface-sunken);
  border: 1px solid var(--border);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-soft);
  white-space: nowrap;
}

.callout {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-5);
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  background: var(--surface-sunken);
}

.callout__icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  color: var(--ek-blue);
}

.callout h4 {
  margin-bottom: 6px;
}

.callout p {
  color: var(--text-soft);
  font-size: 0.9375rem;
}

.callout--accent {
  background: color-mix(in srgb, var(--ek-blue) 7%, transparent);
  border-color: color-mix(in srgb, var(--ek-blue) 20%, transparent);
}

.callout--warn {
  background: color-mix(in srgb, var(--ek-amber) 10%, transparent);
  border-color: color-mix(in srgb, var(--ek-amber) 26%, transparent);
}

.callout--warn .callout__icon {
  color: var(--ek-amber);
}

.form {
  display: grid;
  gap: var(--space-4);
}

.form__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-4);
}

.field label {
  display: block;
  margin-bottom: 7px;
  font-size: 0.875rem;
  font-weight: 600;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  background: var(--surface-card);
  font-size: 1rem;
  transition: border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--ek-blue);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ek-blue) 18%, transparent);
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.field__hint {
  margin-top: 6px;
  font-size: 0.8125rem;
  color: var(--text-soft);
}

.hp {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0;
  pointer-events: none;
}

.form__status {
  padding: var(--space-4);
  border-radius: var(--r-md);
  font-size: 0.9375rem;
  font-weight: 500;
}

.form__status[data-state="ok"] {
  background: color-mix(in srgb, var(--ek-green) 14%, transparent);
  color: color-mix(in srgb, var(--ek-green) 80%, #000);
}

:root[data-theme="dark"] .form__status[data-state="ok"] {
  color: var(--ek-green);
}

.form__status[data-state="error"] {
  background: color-mix(in srgb, var(--ek-red) 12%, transparent);
  color: var(--ek-red);
}

.form__status[hidden] {
  display: none;
}

.site-footer {
  padding-block: var(--space-8) var(--space-6);
  background: var(--surface-sunken);
  border-top: 1px solid var(--border);
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-6) var(--space-5);
}

.footer__about p {
  margin-top: var(--space-4);
  max-width: 34ch;
  font-size: 0.9375rem;
  color: var(--text-soft);
}

.footer__col h4 {
  margin-bottom: var(--space-4);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.footer__col ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer__col a {
  font-size: 0.9375rem;
  color: var(--text-soft);
}

.footer__col a:hover {
  color: var(--text);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text-soft);
}

.footer__attrib {
  max-width: 62ch;
  font-size: 0.8125rem;
  line-height: 1.55;
}

.route-steps {
  position: relative;
  display: grid;
  gap: 0;
}

.route-steps::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 14px;
  bottom: 14px;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(
    to bottom,
    var(--ek-blue),
    var(--ek-metro) 50%,
    var(--ek-ferry)
  );
}

.route-step {
  position: relative;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: var(--space-5);
  padding-block: var(--space-5);
}

.route-step__dot {
  position: relative;
  z-index: 1;
  width: 20px;
  height: 20px;
  margin-top: 4px;
  margin-left: 7px;
  border-radius: 50%;
  background: var(--surface);
  border: 4px solid var(--step-color, var(--ek-blue));
}

.route-step:nth-child(1) { --step-color: var(--ek-blue); }
.route-step:nth-child(2) { --step-color: var(--ek-metro); }
.route-step:nth-child(3) { --step-color: var(--ek-ferry); }

.route-step h3 {
  margin-bottom: 6px;
}

.route-step p {
  color: var(--text-soft);
  max-width: 60ch;
}

.page-head {
  padding-block: clamp(48px, 5vw, 80px) clamp(32px, 3vw, 48px);
  border-bottom: 1px solid var(--border);
}

.page-head h1 {
  margin-top: var(--space-4);
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.2rem);
}

.page-head .lead {
  margin-top: var(--space-4);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  font-size: 0.8125rem;
  color: var(--text-soft);
  list-style: none;
  padding: 0;
  margin-bottom: var(--space-4);
}

.breadcrumb a {
  color: var(--text-soft);
}

.breadcrumb a:hover {
  color: var(--text);
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 7px;
  color: var(--text-faint);
}

.prose {
  max-width: 72ch;
  font-size: 1.0625rem;
  line-height: 1.7;
}

.prose > * + * {
  margin-top: var(--space-4);
}

.prose h2 {
  margin-top: var(--space-8);
  font-size: clamp(1.4rem, 1.15rem + 1vw, 1.85rem);
  scroll-margin-top: 90px;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin-top: var(--space-6);
  font-size: 1.1875rem;
}

.prose p,
.prose li {
  color: var(--text-soft);
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

.prose ul,
.prose ol {
  padding-left: 1.35em;
  display: grid;
  gap: 10px;
}

.prose li::marker {
  color: var(--text-faint);
}

.prose a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: color-mix(in srgb, var(--ek-blue) 40%, transparent);
}

.prose hr {
  margin-block: var(--space-7);
  border: 0;
  border-top: 1px solid var(--border);
}

.prose blockquote {
  padding: var(--space-4) var(--space-5);
  border-left: 3px solid var(--ek-blue);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  background: var(--surface-sunken);
}

.prose blockquote p {
  color: var(--text);
}

.prose code {
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--surface-sunken);
  border: 1px solid var(--border);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.875em;
  color: var(--text);
}

.doc-meta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: var(--surface-sunken);
  border: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--text-soft);
}

.toc {
  position: sticky;
  top: 88px;
  align-self: start;
  padding: var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: var(--surface-card);
}

.toc h4 {
  margin-bottom: var(--space-3);
  font-size: 0.75rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.toc ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 9px;
}

.toc a {
  font-size: 0.9063rem;
  color: var(--text-soft);
  line-height: 1.4;
  display: block;
}

.toc a:hover {
  color: var(--text);
}

.doc-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: clamp(32px, 4vw, 64px);
  align-items: start;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 620ms var(--ease), transform 620ms var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.hero__inner > * > .anim {
  animation: rise 760ms var(--ease) backwards;
}

.hero__inner .anim:nth-child(1) { animation-delay: 40ms; }
.hero__inner .anim:nth-child(2) { animation-delay: 100ms; }
.hero__inner .anim:nth-child(3) { animation-delay: 160ms; }
.hero__inner .anim:nth-child(4) { animation-delay: 220ms; }
.hero__inner .anim:nth-child(5) { animation-delay: 280ms; }

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

.entity-head {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-3);
}
.entity-head h1 {
  margin: 0;
}
.entity-head__sub {
  margin: 6px 0 0;
  color: var(--text-soft);
  font-size: 1.0625rem;
}

.fact-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-5);
}
.fact {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 104px;
  padding: 10px 14px;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.fact__value {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.fact__label {
  font-size: 0.75rem;
  color: var(--text-soft);
}

.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.line-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 7px 12px 7px 8px;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  color: inherit;
  text-decoration: none;
  transition: border-color var(--dur) var(--ease),
    background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.line-chip:hover {
  border-color: var(--border-strong);
  background: var(--surface-raised);
  transform: translateY(-1px);
}
.line-chip > .line-badge {
  min-width: 34px;
  height: 22px;
  font-size: 0.75rem;
}
.line-chip__name {
  overflow: hidden;
  max-width: 30ch;
  padding-left: 4px;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.line-chip__meta {
  color: var(--text-soft);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}

.line-group {
  margin-bottom: var(--space-6);
}
.line-group__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 var(--space-3);
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}
.line-group__count {
  padding: 2px 8px;
  background: var(--surface-sunken);
  border-radius: var(--r-pill);
  color: var(--text-soft);
  font-size: 0.75rem;
  font-weight: 600;
}

.direction {
  margin-bottom: var(--space-6);
}
.direction__title {
  margin: 0 0 var(--space-4);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  font-size: 1.0625rem;
}

.stop-list {
  position: relative;
  margin: 0;
  padding: 0 0 0 22px;
  list-style: none;
}
.stop-list::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 5px;
  width: 2px;
  border-radius: 2px;
  background: var(--border-strong);
}
.stop-list__item {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  padding: 7px 0;
}
.stop-list__dot {
  position: absolute;
  top: 13px;
  left: -21px;
  width: 10px;
  height: 10px;
  border: 2px solid var(--ek-blue);
  border-radius: 50%;
  background: var(--surface);
}
.stop-list__item:first-child .stop-list__dot,
.stop-list__item:last-child .stop-list__dot {
  background: var(--ek-blue);
}
.stop-list__name {
  color: inherit;
  font-weight: 500;
  text-decoration: none;
}
a.stop-list__name:hover {
  color: var(--ek-blue);
  text-decoration: underline;
}
.stop-list__meta {
  color: var(--text-faint);
  font-size: 0.8125rem;
}

.kv {
  display: grid;
  grid-template-columns: minmax(120px, auto) 1fr;
  gap: 8px var(--space-4);
  margin: var(--space-4) 0 0;
}
.kv dt {
  color: var(--text-soft);
  font-size: 0.875rem;
}
.kv dd {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 500;
}

.note {
  margin-top: var(--space-4);
  color: var(--text-soft);
  font-size: 0.875rem;
  line-height: 1.6;
}

.inline-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
}
.inline-nav a {
  padding: 6px 0;
  color: var(--ek-blue);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}
.inline-nav a:hover {
  text-decoration: underline;
}

.transit-search {
  display: flex;
  gap: var(--space-2);
}
.transit-search input {
  flex: 1;
  min-width: 0;
  padding: 13px 16px;
  background: var(--surface-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  color: inherit;
  font: inherit;
}
.transit-search input:focus-visible {
  border-color: var(--ek-blue);
  outline: 2px solid color-mix(in srgb, var(--ek-blue) 35%, transparent);
  outline-offset: 1px;
}

.result-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-4);
}
.result {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: 13px 16px;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: inherit;
  text-decoration: none;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.result:hover {
  border-color: var(--border-strong);
  transform: translateX(2px);
}
.mode--bus { --mode-color: var(--ek-blue); }
.mode--metrobus { --mode-color: var(--ek-metrobus); }
.mode--metro { --mode-color: var(--ek-metro); }
.mode--metro-alt { --mode-color: var(--ek-metro-alt); }
.mode--tram { --mode-color: var(--ek-tram); }
.mode--marmaray { --mode-color: var(--ek-marmaray); }
.mode--ferry { --mode-color: var(--ek-ferry); }
.mode--minibus { --mode-color: var(--ek-minibus); }
.mode--ilce { --mode-color: var(--text-soft); }

.result__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: var(--r-sm);
  background: var(--mode-color, var(--ek-blue));
  color: #fff;
}
.result__icon svg {
  width: 20px;
  height: 20px;
}
.result__badge {
  flex-shrink: 0;
  margin-left: auto;
  padding: 3px 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--mode-color, var(--ek-blue)) 12%, transparent);
  color: var(--mode-color, var(--text-soft));
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.result__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.result__name {
  font-weight: 600;
}
.result__meta {
  color: var(--text-soft);
  font-size: 0.8125rem;
}

.route-pair {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
  color: inherit;
  text-decoration: none;
  transition: border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.route-pair:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.route-pair__track {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--space-3);
  min-width: 0;
}
.route-pair__track::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 4px;
  width: 2px;
  border-radius: 2px;
  background: var(--ek-blue);
  opacity: 0.4;
}
.route-pair__stop {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.route-pair__dot {
  position: relative;
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border: 2px solid var(--ek-blue);
  border-radius: 50%;
  background: var(--surface-card);
}
.route-pair__label {
  overflow: hidden;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.route-pair__stop:last-child .route-pair__dot {
  background: var(--ek-blue);
}
.route-pair__go {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: var(--r-pill);
  background: var(--surface-sunken);
  color: var(--ek-blue);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}
.route-pair__go svg {
  width: 18px;
  height: 18px;
}
.route-pair:hover .route-pair__go {
  background: var(--ek-blue);
  color: var(--text-on-dark);
  transform: translateX(2px);
}

.origin-list {
  overflow: hidden;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
}
.origin + .origin {
  border-top: 1px solid var(--border);
}
.origin__summary {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  cursor: pointer;
  list-style: none;
  transition: background var(--dur) var(--ease);
}
.origin__summary::-webkit-details-marker {
  display: none;
}
.origin__summary:hover,
.origin[open] .origin__summary {
  background: var(--surface-sunken);
}
.origin__dot {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border: 2px solid var(--ek-blue);
  border-radius: 50%;
  background: var(--surface-card);
  transition: background var(--dur) var(--ease);
}
.origin[open] .origin__dot {
  background: var(--ek-blue);
}
.origin__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.origin__name {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.origin__desc {
  overflow: hidden;
  color: var(--text-soft);
  font-size: 0.8125rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.origin__count {
  flex-shrink: 0;
  padding: 3px 10px;
  background: var(--surface-sunken);
  border-radius: var(--r-pill);
  color: var(--text-soft);
  font-size: 0.75rem;
  font-weight: 600;
}
.origin[open] .origin__count {
  background: var(--surface-card);
}
.origin__summary::after {
  content: "";
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  background: currentColor;
  opacity: 0.4;
  transition: transform var(--dur) var(--ease);
  -webkit-mask: var(--icon-caret) center / contain no-repeat;
  mask: var(--icon-caret) center / contain no-repeat;
}
.origin[open] .origin__summary::after {
  transform: rotate(180deg);
}
.origin__panel {
  padding: var(--space-2) var(--space-5) var(--space-5) 46px;
}
.dest-list {
  margin: 0;
  padding: 0;
  columns: 4;
  column-gap: var(--space-5);
  list-style: none;
}
.dest-list li {
  break-inside: avoid;
}
.dest-list a {
  display: block;
  padding: 6px 0;
  color: var(--text-soft);
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}
.dest-list a:hover {
  color: var(--ek-blue);
  text-decoration: underline;
}

:root {
  --icon-caret: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
}

@media (max-width: 1024px) {
  .dest-list {
    columns: 3;
  }
}

@media (max-width: 720px) {
  .dest-list {
    columns: 2;
  }
  .origin__panel {
    padding-left: var(--space-5);
  }
  .origin__count {
    display: none;
  }
}

@media (max-width: 640px) {
  .entity-head {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }
  .fact {
    flex: 1;
    min-width: 88px;
  }
  .line-chip__name {
    max-width: 18ch;
  }
  .kv {
    grid-template-columns: 1fr;
    gap: 2px var(--space-3);
  }
  .kv dd {
    margin-bottom: 10px;
  }
  .transit-search {
    flex-direction: column;
  }
  .result__badge {
    padding: 2px 7px;
    font-size: 0.625rem;
    letter-spacing: 0.03em;
  }
  .result {
    gap: var(--space-3);
  }
}

.app-promo {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: flex;
  justify-content: center;
  padding: 0 12px calc(12px + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
}

.app-promo[hidden] {
  display: none;
}

.app-promo__card {
  pointer-events: auto;
  position: relative;
  width: 100%;
  max-width: 440px;
  padding: 18px 18px 14px;
  border-radius: var(--r-2xl);
  border: 1px solid var(--border-strong);
  background: var(--surface-card);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(calc(100% + 24px));
  transition: transform 420ms var(--ease), opacity 260ms ease;
}

.app-promo[data-open="true"] .app-promo__card {
  opacity: 1;
  transform: none;
}

.app-promo__close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--text-faint);
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

.app-promo__close:hover {
  background: var(--surface-sunken);
  color: var(--text-soft);
}

.app-promo__close svg {
  width: 16px;
  height: 16px;
}

.app-promo__head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-right: 28px;
}

.app-promo__icon {
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  border-radius: 13px;
  border: 1px solid var(--border-strong);
}

.app-promo__eyebrow {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.app-promo__title {
  margin-top: 3px;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.022em;
}

.app-promo__list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.app-promo__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--text-soft);
}

.app-promo__list strong {
  font-weight: 600;
  color: var(--text);
}

.app-promo__bullet {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: var(--r-pill);
  background: var(--surface-sunken);
  color: var(--text-soft);
}

.app-promo__bullet svg {
  width: 15px;
  height: 15px;
}

.app-promo__bullet--live {
  background: color-mix(in srgb, var(--ek-green) 14%, transparent);
  color: var(--ek-green);
}

.app-promo__cta {
  width: 100%;
  margin-top: 18px;
  padding: 13px 20px;
}

.app-promo__cta:hover {
  color: #fff;
}

.app-promo__glyph svg {
  width: 18px;
  height: 18px;
}

.app-promo__later {
  width: 100%;
  margin-top: 4px;
  padding: 10px 0 2px;
  border: 0;
  background: transparent;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-faint);
  cursor: pointer;
  transition: color var(--dur) var(--ease);
}

.app-promo__later:hover {
  color: var(--text-soft);
}

.app-promo__for-ios,
.app-promo__for-android {
  display: none;
}

.app-promo[data-platform="ios"] .app-promo__for-ios,
.app-promo[data-platform="android"] .app-promo__for-android {
  display: inline;
}

.app-promo[data-platform="ios"] .app-promo__glyph.app-promo__for-ios,
.app-promo[data-platform="android"] .app-promo__glyph.app-promo__for-android {
  display: inline-flex;
}

@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;
    transform: none;
  }
  .route-card__vehicle {
    display: none;
  }
  .app-promo__card {
    transform: none;
  }
}

@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: var(--space-7);
  }
  .route-card {
    max-width: 460px;
  }
  .doc-layout {
    grid-template-columns: 1fr;
  }
  .toc {
    position: static;
  }
}

@media (max-width: 860px) {
  .nav__toggle {
    display: grid;
  }

  .nav__links {
    position: fixed;
    inset: 64px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: var(--space-4) var(--space-5) var(--space-6);
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    max-height: calc(100dvh - 64px);
    overflow-y: auto;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease),
      visibility var(--dur);
  }

  .nav[data-open="true"] .nav__links {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav__link {
    justify-content: space-between;
    width: 100%;
    padding: 12px 10px;
    font-size: 1rem;
  }

  .nav__menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    border-left: 2px solid var(--border);
    border-radius: 0;
    margin-left: 10px;
    padding: 0 0 6px 8px;
    display: none;
  }

  .nav__group[data-open="true"] .nav__menu {
    display: block;
  }

  .nav__actions {
    margin-left: auto;
  }

  .nav__actions .btn {
    display: none;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }
  .container {
    padding-inline: var(--space-4);
  }
  .section {
    padding-block: 52px;
  }
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer__about {
    grid-column: 1 / -1;
  }
  .route-card__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .btn--lg {
    width: 100%;
  }
  .hero__cta .store-badges {
    width: 100%;
  }
  .store-badge {
    flex: 1;
    min-width: 150px;
  }
  .app-promo {
    padding-inline: 8px;
  }
  .app-promo__card {
    padding: 16px 16px 12px;
  }
  .app-promo__icon {
    width: 48px;
    height: 48px;
  }
}

@media print {
  .site-header,
  .site-footer,
  .hero__cta,
  .theme-toggle {
    display: none !important;
  }
  body {
    color: #000;
    background: #fff;
  }
  .prose {
    max-width: none;
  }
}
