:root {
  --sky: #0a0e16;
  --panel: #121826;
  --panel-2: #171f30;
  --line: #232b3d;
  --paper: #f2efe7;
  --paper-dim: #e4ddc9;
  --accent: #e4213b;
  --accent-dim: #a81729;
  --crimson: #e4213b;
  --text: #eceff4;
  --text-muted: #8b93a6;
  --ink: #14100c;
  --radius: 4px;
  --max-width: 1120px;
  --sidebar-w: 252px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--sky);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
}

h1, h2, h3, .brand-word, .bp-route, .card h3 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
}

.mono, table, .badge, .eyebrow, .bp-from, .bp-to, .trust-strip {
  font-family: 'IBM Plex Mono', ui-monospace, SFMono-Regular, monospace;
}

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

a {
  color: var(--accent);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

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

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============ App shell ============ */
.app-shell {
  min-height: 100vh;
}

.app-content {
  min-width: 0;
}

@media (min-width: 1024px) {
  .app-shell {
    display: flex;
  }

  .app-content {
    flex: 1;
  }
}

/* ============ Sidebar (desktop) ============ */
.sidebar {
  display: none;
}

@media (min-width: 1024px) {
  .sidebar {
    display: flex;
    flex-direction: column;
    width: var(--sidebar-w);
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    background: var(--panel);
    border-right: 1px solid var(--line);
    padding: 22px 0 18px;
  }

  .app-content {
    max-width: calc(100% - var(--sidebar-w));
  }
}

.sidebar-logo {
  padding: 0 20px 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 10px;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 6px 12px;
}

.sidebar-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}

.sidebar-nav a:hover {
  background: var(--panel-2);
  color: var(--text);
}

.sidebar-nav a[aria-current='page'] {
  background: var(--panel-2);
  color: var(--accent);
}

.sidebar-nav svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.nav-code {
  margin-left: auto;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  opacity: 0.7;
}

.sidebar-foot {
  padding: 14px 20px 0;
  border-top: 1px solid var(--line);
  margin-top: 10px;
  display: grid;
  gap: 12px;
}

/* ============ Top bar (mobile/tablet) ============ */
.topbar {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

@media (min-width: 1024px) {
  .topbar {
    display: none;
  }
}

.topbar .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
}

.nav-toggle {
  background: none;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: var(--radius);
  padding: 7px 11px;
  font-size: 1rem;
  line-height: 1;
}

.mobile-drawer {
  display: none;
  border-top: 1px solid var(--line);
  padding: 14px 16px 18px;
}

.mobile-drawer.open {
  display: block;
}

.mobile-drawer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.mobile-drawer a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  padding: 9px 6px;
  border-radius: var(--radius);
}

.mobile-drawer a:hover {
  background: var(--panel-2);
}

.mobile-drawer svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  flex-shrink: 0;
}

/* ============ Logo ============ */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--text);
}

.logo-mark {
  flex-shrink: 0;
  height: 36px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  display: block;
}

/* ============ Language switch ============ */
.lang-switch {
  display: flex;
  gap: 6px;
}

.lang-switch a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid var(--line);
  padding: 4px 9px;
  border-radius: var(--radius);
  letter-spacing: 0.03em;
}

.lang-switch a[aria-current='true'] {
  color: var(--accent);
  border-color: var(--accent-dim);
}

/* ============ Buttons ============ */
.btn-flat {
  display: inline-block;
  background: var(--accent);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.94rem;
  padding: 12px 22px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  font-family: inherit;
}

.btn-flat:hover {
  background: #ffc450;
}

.btn-flat-sm {
  padding: 8px 16px;
  font-size: 0.84rem;
}

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--text);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 10px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
}

.btn-outline:hover {
  border-color: var(--accent-dim);
  color: var(--accent);
}

/* ============ CTA banner ============ */
.cta-banner {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 240px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  margin: 32px 0;
}

.cta-banner-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, var(--sky) 28%, rgba(10, 14, 22, 0.78) 55%, rgba(10, 14, 22, 0.45) 100%);
}

.cta-banner-content {
  position: relative;
  z-index: 1;
  padding: 34px 32px;
  max-width: 560px;
}

.cta-banner-content h2 {
  margin: 0 0 8px;
  font-size: 1.55rem;
}

.cta-banner-content p {
  margin: 0 0 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.btn-lg {
  padding: 14px 30px;
  font-size: 1rem;
}

/* ============ Hero ============ */
.hero {
  position: relative;
  background: var(--sky);
  border-bottom: 1px solid var(--line);
  padding: 40px 0 36px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(100deg, var(--sky) 42%, rgba(10, 14, 22, 0.72) 68%, rgba(10, 14, 22, 0.42) 100%), var(--hero-bg-image, none);
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 300'%3E%3Cpath d='M10 270 C 110 270, 170 190, 250 130 S 350 50, 380 20' fill='none' stroke='%23E4213B' stroke-width='2' stroke-dasharray='6 8'/%3E%3Ccircle cx='10' cy='270' r='4' fill='%23E4213B'/%3E%3Ccircle cx='210' cy='168' r='3' fill='%23E4213B'/%3E%3Cpath d='M380 20 l-15 1 5 11 -19 -3 -9 15 -3 -21 z' fill='%23E4213B'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right -20px bottom -30px;
  background-size: 420px;
  opacity: 0.3;
  pointer-events: none;
}

.hero .container {
  position: relative;
}

.hero h1 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 700;
  margin: 0 0 14px;
  line-height: 1.18;
  max-width: 780px;
}

.hero p.lead {
  color: var(--text-muted);
  font-size: 1.03rem;
  max-width: 640px;
  margin: 0 0 22px;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 22px;
}

.badge {
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  padding: 5px 10px;
  border-radius: var(--radius);
}

/* ============ Promo banners ============ */
.promo-banners {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 26px;
}

@media (min-width: 640px) {
  .promo-banners {
    grid-template-columns: 1fr 1fr;
  }
}

.promo-banner {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  text-decoration: none;
  color: var(--text);
  overflow: hidden;
}

.promo-banner .thumb {
  aspect-ratio: 16 / 8;
}

.promo-banner .promo-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.promo-banner .eyebrow {
  text-transform: uppercase;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.promo-banner h3 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.25;
}

.promo-banner .amount {
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* ============ Trust strip ============ */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.76rem;
  letter-spacing: 0.02em;
}

/* ============ Content images ============ */
.content-image {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: var(--sky);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  display: block;
  margin: 22px 0;
}

.card .content-image {
  background: var(--panel);
  margin: 0;
}

.promo-banner .content-image {
  background: var(--panel);
  margin: 0;
}

.hero-visual {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: var(--sky);
  border-radius: 8px;
  border: 1px solid var(--line);
  display: block;
}

/* ============ Content sections ============ */
main {
  padding-bottom: 8px;
}

.section {
  padding-top: 34px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}

.section:last-of-type {
  border-bottom: none;
}

.section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--text);
}

.section h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 22px 0 8px;
}

.section p {
  color: var(--text-muted);
}

.section > p:first-of-type {
  margin-top: 0;
}

.kicker {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent-dim);
  border-radius: var(--radius);
  padding: 3px 9px;
  margin-bottom: 10px;
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 640px) {
  .card-grid.cols-2 {
    grid-template-columns: 1fr 1fr;
  }
  .card-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.card .card-code {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--accent-dim);
  margin-bottom: 8px;
}

.card h3 {
  margin-top: 0;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 1.02rem;
}

.card p {
  font-size: 0.92rem;
  margin-bottom: 8px;
}

.card a {
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
}

/* Departure-board style tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 0.9rem;
  background: var(--panel);
  border: 1px solid var(--line);
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 11px 14px;
  text-align: left;
}

th {
  background: var(--panel-2);
  color: var(--accent);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

td {
  color: var(--text-muted);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
}

tr:last-child td {
  border-bottom: none;
}

.steps {
  margin: 0;
  padding-left: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 10px;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 12px 16px 12px 50px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text-muted);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 700;
  color: var(--accent);
  font-size: 0.9rem;
}

.callout {
  background: var(--panel);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 14px 18px;
  color: var(--text-muted);
  margin: 20px 0;
}

.disclaimer-box {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 20px;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 18px 0;
}

@media (min-width: 640px) {
  .stat-row {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.stat .stat-value {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--accent);
  display: block;
}

.stat .stat-label {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.pros-cons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 18px 0;
}

@media (min-width: 640px) {
  .pros-cons {
    grid-template-columns: 1fr 1fr;
  }
}

.pros-cons > div {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.pros-cons h4 {
  margin: 0 0 10px;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pros-cons.plus h4 {
  color: #5fd68a;
}

.pros-cons.minus h4 {
  color: var(--crimson);
}

.pros-cons ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.pros-cons ul li {
  margin-bottom: 6px;
}

/* ============ Breadcrumbs ============ */
.breadcrumbs {
  padding: 14px 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.breadcrumbs li:not(:last-child)::after {
  content: '/';
  margin-left: 6px;
  color: var(--line);
}

/* ============ FAQ ============ */
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 8px;
  background: var(--panel);
}

.faq-item summary {
  cursor: pointer;
  padding: 14px 18px;
  font-weight: 600;
  list-style: none;
}

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

.faq-item summary::after {
  content: '+';
  float: right;
  color: var(--accent);
}

.faq-item[open] summary::after {
  content: '\2212';
}

.faq-item .faq-answer {
  padding: 0 18px 16px;
  color: var(--text-muted);
}

/* ============ Footer ============ */
.site-footer {
  background: var(--panel);
  border-top: 1px solid var(--line);
  padding: 30px 0 22px;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: space-between;
  margin-bottom: 18px;
}

.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
}

.footer-nav a:hover {
  color: var(--accent);
}

.age-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--accent-dim);
  color: var(--accent);
  border-radius: var(--radius);
  padding: 5px 12px;
  font-weight: 700;
  font-size: 0.8rem;
  font-family: 'IBM Plex Mono', monospace;
}

.footer-disclaimer {
  color: var(--text-muted);
  font-size: 0.78rem;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

/* ============ Sticky mobile CTA ============ */
.sticky-mobile-cta {
  display: none;
}

@media (max-width: 640px) {
  .sticky-mobile-cta {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    padding: 10px 14px;
    background: var(--panel);
    border-top: 1px solid var(--line);
  }

  .sticky-mobile-cta .btn-flat {
    width: 100%;
  }

  body {
    padding-bottom: 62px;
  }
}
