/* Ransom IT — shared styles */

/* Self-hosted variable fonts (latin), preloaded in each page head so text never swaps typeface */
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 600;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/instrument-sans-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("../fonts/outfit-latin.woff2") format("woff2");
}

/* Cross-fade between pages; the header has its own transition name so it stays still */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
::view-transition-old(root),
::view-transition-new(root) { animation-duration: 160ms; }

:root {
  --ink: #0c2231;
  --ink-2: #133149;
  --ink-line: #234a66;
  --cyan: #1aade4;
  --cyan-hover: #4cc1ec;
  --cyan-strong: #08739f;
  --cyan-soft: #e3f4fb;
  --paper: #f4f7f8;
  --surface: #ffffff;
  --text: #0c2231;
  --muted: #4e5f6b;
  --line: #d6dfe4;
  --on-dark: #e9f2f6;
  --on-dark-muted: #a3b8c6;

  --font-display: "Outfit", "Segoe UI", system-ui, sans-serif;
  --font-body: "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1200px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --header-h: 68px;

  /* Colours that flip in dark mode */
  --row-hover: #fafcfd;
  --btn-dark-bg: var(--ink);
  --btn-dark-fg: #fff;
  --btn-dark-hover: var(--ink-2);
  --selected-bg: var(--ink);
  --selected-fg: #fff;
  --selected-muted: var(--on-dark-muted);

  color-scheme: light;
}

/* Dark theme, set on <html> by the inline head script (saved choice, else system setting).
   Header, heroes, dark sections and footer already use --ink and stay as they are. */
:root[data-theme="dark"] {
  --paper: #07141c;
  --surface: #13293a; /* a step above --ink, so cards and white sections don't merge with dark bands */
  --text: #e6eff4;
  --muted: #9db2bf;
  --line: #264256;
  --cyan-strong: #4fc3ee;
  --cyan-soft: #0f3346;
  --row-hover: #1a3347;
  --btn-dark-bg: #e6eff4;
  --btn-dark-fg: #0c2231;
  --btn-dark-hover: #fff;
  --selected-bg: #e6eff4;
  --selected-fg: #0c2231;
  --selected-muted: #4e5f6b;

  color-scheme: dark;
}

/* Switching theme is instant, with no half-finished hover transitions */
.theme-switching *,
.theme-switching *::before,
.theme-switching *::after { transition: none !important; }

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
[hidden] { display: none !important; }

a {
  color: var(--cyan-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover { text-decoration-thickness: 2px; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); font-weight: 300; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.375rem); font-weight: 400; }
h3 { font-size: 1.3125rem; }
p { margin: 0 0 1em; }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 100;
  padding: 8px 14px;
  border-radius: var(--r-sm);
  background: var(--cyan);
  color: var(--ink);
  font-weight: 600;
}
.skip-link:focus { left: 8px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn-primary { background: var(--cyan); color: var(--ink); }
.btn-primary:hover { background: var(--cyan-hover); }
.btn-ghost { border-color: rgba(233, 242, 246, 0.35); color: var(--on-dark); }
.btn-ghost:hover { border-color: var(--cyan); color: #fff; }
.btn-outline { border-color: var(--line); background: var(--surface); color: var(--text); }
.btn-outline:hover { border-color: var(--cyan-strong); color: var(--cyan-strong); }
.btn-dark { background: var(--btn-dark-bg); color: var(--btn-dark-fg); }
.btn-dark:hover { background: var(--btn-dark-hover); }
.btn-sm { min-height: 38px; padding: 7px 16px; font-size: 0.9375rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  border-bottom: 1px solid var(--ink-line);
  color: var(--on-dark);
  view-transition-name: site-header;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  height: var(--header-h);
}

.logo { order: 1; display: inline-flex; flex-shrink: 0; }
.logo img { width: auto; height: 34px; }
.site-footer .logo img { height: 30px; }

.site-nav {
  order: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

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

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 0;
  border-radius: var(--r-sm);
  background: none;
  color: var(--on-dark);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}
.nav-link:hover { background: var(--ink-2); }
.nav-link[aria-current="page"],
.nav-link.is-current { position: relative; color: #fff; }
.nav-link[aria-current="page"]::after,
.nav-link.is-current::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan);
}

.chev { width: 10px; height: 10px; transition: transform 0.2s; }
.menu-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }

.has-menu { position: relative; }

.submenu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 260px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: 0 16px 40px rgba(12, 34, 49, 0.28);
}
.has-menu.is-open .submenu { display: block; }

.submenu a {
  display: block;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}
.submenu a:hover { background: var(--cyan-soft); }
.submenu small { display: block; color: var(--muted); font-size: 0.8125rem; font-weight: 400; }

.nav-toggle {
  order: 4;
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--ink-line);
  border-radius: 999px;
  background: none;
  color: var(--on-dark);
  cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; margin: auto; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.theme-toggle {
  order: 3;
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--ink-line);
  border-radius: 999px;
  background: none;
  color: var(--on-dark);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.theme-toggle:hover { border-color: var(--cyan); color: #fff; }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun,
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
.no-js .theme-toggle { display: none; }

/* ---------- Hero (home) ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--on-dark);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  padding-block: clamp(40px, 6vw, 72px);
}

.hero h1 {
  max-width: 13ch;
  color: #fff;
  font-size: clamp(2.6rem, 5.8vw, 4.5rem);
  line-height: 1.04;
}

/* The headline cities swap for random others (main.js). Each city gets its own
   line, so a longer name never rewraps the heading or moves the page below. */
@media (prefers-reduced-motion: no-preference) {
  .js .hero .cycle { display: inline-grid; }
  .js .hero .cycle:first-child { display: grid; }
}
.cycle > * { grid-area: 1 / 1; }
.cycle .is-entering { animation: word-in 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }
.cycle .is-leaving { animation: word-out 0.45s ease-in forwards; }

@keyframes word-in { from { opacity: 0; transform: translateY(0.5em); filter: blur(6px); } }
@keyframes word-out { to { opacity: 0; transform: translateY(-0.5em); filter: blur(6px); } }

.hero .lede {
  max-width: 46ch;
  color: var(--on-dark-muted);
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-block: 28px 40px;
}

.city-list-label {
  margin: 0 0 10px;
  color: var(--on-dark-muted);
  font-size: 0.9375rem;
}

.city-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.city-btn {
  padding: 7px 15px;
  border: 1px solid var(--ink-line);
  border-radius: 999px;
  background: transparent;
  color: var(--on-dark);
  font: inherit;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}
.city-btn:hover { border-color: var(--cyan); color: #fff; }
.city-btn[aria-pressed="true"] { border-color: #fff; background: #fff; color: var(--ink); }

/* ---------- Network map ---------- */

.map {
  justify-self: end;
  width: 100%;
  max-width: 540px;
  margin: 0;
}

.map-canvas {
  position: relative;
  aspect-ratio: 900 / 1080;
}
.map-canvas img,
.map-canvas svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.map-overlay .halo {
  fill: var(--cyan);
  opacity: 0.2;
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity 0.2s, transform 0.2s;
}
.map-overlay .core { fill: var(--cyan); }

.map-overlay text {
  fill: var(--on-dark);
  font-family: var(--font-body);
  font-size: 23px;
  font-weight: 500;
  paint-order: stroke;
  stroke: var(--ink);
  stroke-width: 6px;
  stroke-linejoin: round;
}

.map-overlay .pop { cursor: pointer; }
.map-overlay .pop.is-active .halo { opacity: 0.45; transform: scale(1.7); }
.map-overlay .pop.is-active text { fill: #fff; font-weight: 600; }

/* Locations light up west to east, once per visit (index.html adds .intro) */
.intro .map-overlay .pop {
  animation: pop-in 0.45s ease-out backwards;
  animation-delay: calc(var(--i) * 130ms + 250ms);
}
.intro .map-overlay .halo {
  animation: ping 1.4s ease-out backwards;
  animation-delay: calc(var(--i) * 130ms + 250ms);
}

@keyframes pop-in { from { opacity: 0; } }
@keyframes ping {
  0% { opacity: 0.8; transform: scale(0.3); }
  60% { opacity: 0.35; transform: scale(2.2); }
  100% { opacity: 0.2; transform: scale(1); }
}

.map-readout {
  min-height: 3.4em;
  margin-top: 12px;
  color: var(--on-dark-muted);
  font-size: 0.9375rem;
}
.map-readout strong { display: block; color: #fff; font-weight: 600; }

/* ---------- Inner page hero ---------- */

.page-hero {
  padding-block: clamp(44px, 6vw, 80px) clamp(36px, 5vw, 60px);
  background: var(--ink);
  color: var(--on-dark);
}
.page-hero h1 { max-width: 20ch; color: #fff; }
.page-hero .lede {
  max-width: 62ch;
  margin: 0;
  color: var(--on-dark-muted);
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
}
/* Every inner page gets the same band height: room for a one-line title and a
   two-line intro (two and three lines on phones), with the text sitting at the bottom */
.page-hero .container {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: calc(clamp(2.25rem, 5vw, 3.5rem) * 1.65 + clamp(1.0625rem, 1.5vw, 1.1875rem) * 3.2);
}
@media (max-width: 560px) {
  .page-hero .container {
    min-height: calc(clamp(2.25rem, 5vw, 3.5rem) * 2.8 + clamp(1.0625rem, 1.5vw, 1.1875rem) * 4.8);
  }
}

/* ---------- Sections ---------- */

.section { padding-block: clamp(56px, 8vw, 96px); }
.section.flush-top { padding-top: 0; }
.section-white { background: var(--surface); border-block: 1px solid var(--line); }
.section-dark { background: var(--ink); color: var(--on-dark); }
.section-dark h2, .section-dark h3 { color: #fff; }

.section-head { max-width: 62ch; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head > :last-child { margin-bottom: 0; }
.section-head p { color: var(--muted); font-size: 1.125rem; }
.section-dark .section-head p { color: var(--on-dark-muted); }
.page-hero a:not(.btn),
.section-dark a:not(.btn) { color: var(--cyan); }

.faq-answer ol { padding-left: 1.3em; }
.faq-answer li + li { margin-top: 0.3em; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.muted { color: var(--muted); }
.facts-block { margin-top: clamp(40px, 6vw, 72px); }
.stack > * + * { margin-top: 16px; }

/* ---------- Product line-up (home) ---------- */

.lineup {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.lineup-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr) 12rem;
  gap: 12px 40px;
  align-items: center;
  padding: 30px 8px;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.15s;
}
.lineup-item:hover { background: var(--surface); }
.lineup-item h3 { margin: 0; font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 400; }
.lineup-item h3 a { color: inherit; text-decoration: none; }
.lineup-item h3 a::after { content: ""; position: absolute; inset: 0; }
.lineup-item h3 a:focus-visible { outline: none; }
.lineup-item:has(a:focus-visible) { outline: 3px solid var(--cyan); outline-offset: -3px; }
.lineup-item p { margin: 0; color: var(--muted); }

.lineup-price { text-align: right; white-space: nowrap; }

.price-from { margin-right: 4px; color: var(--muted); font-size: 0.9375rem; }
.price-amount {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.price-unit { color: var(--muted); font-size: 0.9375rem; }

/* ---------- Facts ---------- */

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid var(--ink-line);
}
.fact {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  padding: 24px 24px 24px 0;
  border-bottom: 1px solid var(--ink-line);
}
.fact dt { color: var(--on-dark-muted); font-size: 0.9375rem; }
.fact dd {
  margin: 0 0 4px;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 300;
  font-variant-numeric: tabular-nums;
}

/* ---------- Check lists ---------- */

.checklist {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.checklist li { position: relative; padding-left: 30px; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.42em;
  width: 13px;
  height: 7px;
  border-left: 2px solid var(--cyan-strong);
  border-bottom: 2px solid var(--cyan-strong);
  transform: rotate(-45deg);
}
.section-dark .checklist li::before,
.package-premium .checklist li::before { border-color: var(--cyan); }
.checklist strong { color: inherit; }

/* ---------- CTA band ---------- */

.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(28px, 4vw, 48px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.cta-band h2 { margin: 0 0 0.3em; font-size: clamp(1.5rem, 2.6vw, 1.875rem); }
.cta-band p { max-width: 58ch; margin: 0; color: var(--muted); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- VPS: plans header ---------- */

.plans-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 40px;
  margin-bottom: 24px;
}
.plans-head h2 { margin-bottom: 0.25em; }
.plans-head p { max-width: 62ch; margin: 0; color: var(--muted); }

.pill-note {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.875rem;
  white-space: nowrap;
}

.city-picker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 24px;
  padding: 0;
  border: 0;
}
.city-picker legend {
  float: left;
  margin-right: 8px;
  padding: 0;
  font-size: 0.9375rem;
  font-weight: 600;
}
.no-js .city-picker { display: none; }

.city-option { position: relative; }
.city-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.city-option span {
  display: inline-block;
  padding: 7px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.9375rem;
  cursor: pointer;
}
.city-option span:hover { border-color: var(--cyan-strong); }
.city-option input:checked + span { border-color: var(--selected-bg); background: var(--selected-bg); color: var(--selected-fg); }
.city-option input:focus-visible + span { outline: 3px solid var(--cyan); outline-offset: 2px; }
.city-option input:disabled + span {
  border-style: dashed;
  color: var(--muted);
  cursor: not-allowed;
}
.city-option input:disabled + span:hover { border-color: var(--line); }
.city-option small { font-size: 0.75rem; color: var(--muted); }

/* ---------- VPS: plans ---------- */

.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.plan {
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
/* One card title style for plans, packages and contact routes */
.plan h3,
.package h3,
.route h2 { font-size: 1.5rem; font-weight: 500; }

.plan h3 { margin: 0; }
.plan-sku { margin: 2px 0 18px; color: var(--muted); font-size: 0.8125rem; }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 20px; }
.plan-price .price-amount { font-size: 2.5rem; font-weight: 400; }

.spec-list {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.spec-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
}
.spec-list li span:first-child { color: var(--muted); }
.spec-list li span:last-child { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.plan .btn { margin-top: auto; }

.footnote { max-width: 80ch; margin: 20px 0 0; color: var(--muted); font-size: 0.875rem; }

/* ---------- Colocation packages ---------- */

.packages {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.package {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3.5vw, 40px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.package h3 { margin: 0; }
.package-desc { min-height: 3.2em; margin: 4px 0 20px; color: var(--muted); }
.package .plan-price { margin-bottom: 4px; }
.package .plan-price .price-amount { font-size: 3rem; font-weight: 300; }
.package .gst { margin: 0 0 24px; color: var(--muted); font-size: 0.875rem; }
.package .checklist { margin-bottom: 32px; }
.package .btn { margin-top: auto; }

.package-premium { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
:root[data-theme="dark"] .package-premium { border-color: var(--cyan-strong); }
.package-premium h3 { color: #fff; }
.package-premium .package-desc,
.package-premium .gst,
.package-premium .price-from,
.package-premium .price-unit { color: var(--on-dark-muted); }

.checklist li.is-absent { color: var(--muted); }
.checklist li.is-absent::before {
  top: 0.75em;
  width: 12px;
  height: 0;
  border-left: 0;
  border-bottom: 2px solid var(--line);
  transform: none;
}

/* ---------- City / datacentre grid ---------- */

.city-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.city-card { padding: 20px 22px; background: var(--surface); }
.city-card h3 { margin: 0; font-size: 1.1875rem; }
.city-card .country { margin: 0 0 10px; color: var(--muted); font-size: 0.8125rem; }
.city-card ul { margin: 0; padding: 0; list-style: none; font-size: 0.9375rem; }
.city-card li + li { margin-top: 4px; }

/* ---------- FAQ ---------- */

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.faq-nav { position: sticky; top: calc(var(--header-h) + 24px); }
.faq-nav ul { margin: 0; padding: 0; list-style: none; }
.faq-nav a { display: block; padding: 6px 0; color: var(--text); text-decoration: none; }
.faq-nav a:hover { color: var(--cyan-strong); }

.faq-group + .faq-group { margin-top: 56px; }
.faq-group > h2 { font-size: 1.75rem; }

.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-of-type { border-top: 1px solid var(--line); }
.faq-item summary {
  position: relative;
  padding: 18px 44px 18px 0;
  font-size: 1.0625rem;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq-item summary:hover { color: var(--cyan-strong); }
.faq-answer { max-width: 70ch; padding-bottom: 22px; color: var(--muted); }
.faq-answer > :last-child { margin-bottom: 0; }

/* ---------- Contact ---------- */

.contact-routes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.route {
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.route p { color: var(--muted); }
.route-actions { display: grid; justify-items: start; gap: 14px; margin-top: auto; padding-top: 8px; }
.route-email { margin: 0; font-weight: 600; }

.prose ol { padding-left: 1.3em; }

.link-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.link-list a {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
}
.link-list a span:first-child { font-weight: 600; }
.link-list a span:last-child { color: var(--muted); font-size: 0.9375rem; }
.link-list a:hover span:first-child { color: var(--cyan-strong); }

.details { display: grid; gap: 16px; margin: 0; }
.details div { display: grid; gap: 2px; }
.details dt { color: var(--muted); font-size: 0.875rem; }
.details dd { margin: 0; font-size: 1.125rem; font-weight: 600; }

/* ---------- Prose ---------- */

.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.8em; font-size: 1.625rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: 0.6em; }
.prose li::marker { color: var(--cyan-strong); }
.meta { color: var(--muted); font-size: 0.9375rem; }

/* ---------- Footer ---------- */

.site-footer {
  padding-block: 56px 28px;
  background: var(--ink);
  color: var(--on-dark-muted);
  font-size: 0.9375rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.footer-brand p { max-width: 34ch; margin: 14px 0 0; }

.site-footer h2 {
  margin: 0 0 12px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0;
}
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li + li { margin-top: 8px; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--cyan); text-decoration: underline; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--ink-line);
  font-size: 0.875rem;
}
.footer-bottom p { margin: 0; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-bottom li + li { margin-top: 0; }

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .city-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1000px) {
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .js .nav-toggle { display: inline-flex; }
  .theme-toggle { margin-left: auto; width: 44px; height: 44px; }

  .js .site-nav {
    display: none;
    position: fixed;
    inset: var(--header-h) 0 0 0;
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    margin: 0;
    padding: 16px var(--gutter) 28px;
    background: var(--ink);
    border-bottom: 1px solid var(--ink-line);
  }
  .js .site-nav.is-open { display: flex; }

  .no-js .header-inner { height: auto; flex-wrap: wrap; padding-block: 12px; }
  .no-js .site-nav { flex-wrap: wrap; }

  .js .nav-list { flex-direction: column; }
  .js .nav-link { width: 100%; justify-content: space-between; padding: 12px 8px; font-size: 1.0625rem; }
  .js .nav-link[aria-current="page"]::after,
  .js .nav-link.is-current::after { left: 0; right: auto; top: 12px; bottom: 12px; width: 3px; height: auto; }

  .js .submenu {
    position: static;
    min-width: 0;
    margin: 4px 0 8px;
    background: var(--ink-2);
    border-color: transparent;
    box-shadow: none;
  }
  .js .submenu a { color: var(--on-dark); }
  .js .submenu a:hover { background: var(--ink-line); }
  .js .submenu small { color: var(--on-dark-muted); }

  .header-cta { align-self: flex-start; margin-left: 8px; }

  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero .map { justify-self: center; max-width: 440px; }
}

@media (max-width: 860px) {
  .split,
  .faq-layout,
  .packages,
  .contact-routes { grid-template-columns: minmax(0, 1fr); }

  .faq-nav { position: static; }

  .plans { grid-template-columns: minmax(0, 1fr); max-width: 520px; }

  .lineup-item { grid-template-columns: minmax(0, 1fr) auto; }
  .lineup-item p { grid-column: 1 / -1; grid-row: 2; }

  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .city-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .city-grid { grid-template-columns: minmax(0, 1fr); }
  .lineup-price { text-align: left; }
  .lineup-item { grid-template-columns: minmax(0, 1fr); }
  .lineup-item p { grid-row: auto; }
  .hero-actions .btn { flex: 1 1 auto; }
  .map-overlay text { font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .intro .map-overlay .pop,
  .intro .map-overlay .halo { animation: none; }
}
