:root {
  color-scheme: light;
  --bg: #f7f9fc;
  --surface: #ffffff;
  --surface-alt: #eef3f8;
  --text: #101828;
  --muted: #536174;
  --line: #d8e0ea;
  --blue: #0050f2;
  --blue-dark: #003cae;
  --green: #19b86a;
  --yellow: #e0a31f;
  --orange: #ed762f;
  --red: #e73e52;
  --shadow: 0 18px 45px rgba(28, 43, 66, 0.12);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
input,
select {
  font: inherit;
  letter-spacing: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(216, 224, 234, 0.86);
  background: rgba(247, 249, 252, 0.92);
  backdrop-filter: blur(16px);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 800;
}

.brand-link img {
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 80, 242, 0.18);
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.site-nav a,
.locale-links a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  padding: 8px 10px;
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.site-nav a:hover,
.locale-links a:hover,
.locale-links a[aria-current="page"] {
  background: var(--surface-alt);
  color: var(--text);
}

.locale-links {
  display: flex;
  gap: 2px;
  justify-content: flex-end;
}

.hero-section,
.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  gap: clamp(22px, 5vw, 64px);
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(30px, 5vw, 58px) clamp(18px, 4vw, 32px) 34px;
}

.hero-copy,
.page-hero > div:first-child {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: 52px;
  line-height: 1.03;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.14;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 19px;
}

.hero-intro,
.page-hero p,
.body-copy p,
.download-band p,
.text-page p {
  color: var(--muted);
  font-size: 18px;
}

.hero-intro {
  max-width: 660px;
  margin: 18px 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
}

.button-primary {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
  box-shadow: 0 12px 28px rgba(0, 80, 242, 0.22);
}

.button-primary:hover {
  background: var(--blue-dark);
}

.button-secondary {
  background: var(--surface);
  color: var(--text);
}

.button-secondary:hover {
  border-color: #b9c6d6;
}

.stat-list {
  display: grid;
  gap: 10px;
  max-width: 720px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.stat-list li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
}

.stat-list li::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
}

.planner-panel {
  width: 100%;
  border: 1px solid rgba(216, 224, 234, 0.92);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 18px;
}

.planner-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.planner-header img {
  border-radius: 8px;
}

.planner-header h2 {
  font-size: 22px;
}

.planner-panel > picture,
.link-card > picture,
.route-card > picture {
  display: block;
  width: 100%;
}

.planner-visual,
.link-card-visual,
.route-card-visual {
  display: block;
  width: 100%;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  background: #eaf2fb;
}

.planner-visual {
  height: clamp(220px, 24vw, 320px);
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.planner-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.planner-form label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.planner-form input,
.planner-form select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdff;
  color: var(--text);
  padding: 9px 10px;
}

.planner-form .button {
  grid-column: span 2;
}

.preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.preset-button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-alt);
  color: var(--text);
  padding: 7px 9px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.preset-button:hover {
  border-color: #b6c5d7;
  background: #e7eef6;
}

.risk-board {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.9fr;
  gap: 12px;
  margin-top: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.risk-board div {
  min-width: 0;
}

.risk-board span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.risk-board strong {
  display: block;
  margin-top: 4px;
  font-size: 15px;
}

.risk-pill {
  width: fit-content;
  border-radius: 999px;
  padding: 4px 8px;
  color: #fff;
  font-size: 13px;
}

.risk-low {
  background: var(--green);
}

.risk-moderate {
  background: var(--yellow);
  color: #2a1f00;
}

.risk-high {
  background: var(--orange);
}

.risk-veryHigh {
  background: var(--red);
}

.risk-bg-low {
  background: var(--green);
}

.risk-bg-moderate {
  background: var(--yellow);
}

.risk-bg-high {
  background: var(--orange);
}

.risk-bg-veryHigh {
  background: var(--red);
}

.risk-timeline {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 6px;
  margin-top: 16px;
}

.risk-timeline span {
  display: block;
  height: 10px;
  border-radius: 999px;
}

.bar-low {
  background: var(--green);
}

.bar-moderate {
  background: var(--yellow);
}

.bar-high {
  background: var(--orange);
}

.demo-summary {
  margin: 14px 0 0;
  color: var(--muted);
}

.hero-section .demo-summary,
.hero-section .segment-list {
  display: none;
}

.segment-list {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.segment-list li {
  border-left: 3px solid var(--blue);
  padding-left: 10px;
  color: var(--text);
  font-weight: 700;
}

.section-block {
  max-width: 1180px;
  margin: 0 auto;
  padding: 44px clamp(18px, 4vw, 32px);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 20px;
}

.feature-grid,
.link-grid,
.route-grid,
.advice-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.feature-item,
.link-card,
.route-card,
.advice-card,
details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.feature-item {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 132px;
  padding: 16px;
}

.feature-item span {
  width: 24px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--green), var(--yellow));
}

.feature-item p {
  margin: 0;
  color: var(--muted);
  font-weight: 650;
}

.link-card,
.route-card {
  min-height: 180px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 16px;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.route-card,
.hub-card {
  gap: 0;
  overflow: hidden;
  padding: 0;
}

.route-card {
  min-height: auto;
}

.route-card-body,
.hub-card-body {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  padding: 16px;
}

.link-card-visual,
.route-card-visual {
  border-bottom: 1px solid var(--line);
}

.link-card:hover,
.route-card:hover {
  transform: translateY(-2px);
  border-color: #b8c5d6;
  box-shadow: 0 14px 30px rgba(28, 43, 66, 0.1);
}

.link-card span {
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.link-card p,
.route-card p {
  margin: 0;
  color: var(--muted);
}

.link-card small {
  color: var(--muted);
  font-weight: 850;
}

.route-card small {
  color: var(--muted);
  font-weight: 750;
}

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

.advice-card {
  display: grid;
  gap: 9px;
  align-content: start;
  min-height: 172px;
  padding: 18px;
}

.advice-card span {
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.advice-card p {
  margin: 0;
  color: var(--muted);
}

.risk-dot {
  width: 13px;
  height: 13px;
  border-radius: 999px;
}

.two-column {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 34px;
}

.body-copy {
  min-width: 0;
}

.plain-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding-left: 22px;
  color: var(--muted);
  font-size: 17px;
}

.metric-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.metric-row span {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 7px 10px;
  color: var(--muted);
  font-weight: 800;
}

.faq-list {
  display: grid;
  gap: 10px;
}

details {
  padding: 16px;
}

summary {
  cursor: pointer;
  font-weight: 850;
}

details p {
  margin: 10px 0 0;
  color: var(--muted);
}

.download-band {
  max-width: 1180px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 34px auto 60px;
  border: 1px solid #c4d2e3;
  border-radius: var(--radius);
  background: #eaf2fb;
  padding: 24px clamp(18px, 4vw, 28px);
}

.download-band div {
  max-width: 760px;
}

.download-band p {
  margin: 10px 0 0;
}

.text-page {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(42px, 7vw, 90px) clamp(18px, 4vw, 32px) 80px;
}

.text-page h1 {
  font-size: 46px;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: start;
  border-top: 1px solid var(--line);
  background: #111827;
  color: #f8fafc;
  padding: 28px clamp(18px, 4vw, 56px);
}

.site-footer p {
  max-width: 840px;
  margin: 8px 0 0;
  color: #cbd5e1;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.site-footer a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  padding: 6px 9px;
  color: #e2e8f0;
}

.site-footer a:hover {
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero-section,
  .page-hero {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 42px;
  }

  .feature-grid,
  .link-grid,
  .route-grid,
  .advice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .two-column {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .site-header {
    position: static;
    gap: 10px;
  }

  .brand-link span {
    font-size: 15px;
  }

  .locale-links a {
    padding: 7px 8px;
    font-size: 12px;
  }

  .site-nav a {
    font-size: 13px;
  }

  .hero-section,
  .page-hero {
    padding-top: 28px;
  }

  h1 {
    font-size: 34px;
    line-height: 1.08;
  }

  h2 {
    font-size: 25px;
  }

  .hero-intro,
  .page-hero p,
  .body-copy p,
  .download-band p,
  .text-page p {
    font-size: 16px;
  }

  .planner-form,
  .risk-board {
    grid-template-columns: 1fr;
  }

  .planner-visual {
    height: 190px;
  }

  .planner-form .button {
    grid-column: auto;
  }

  .feature-grid,
  .link-grid,
  .route-grid,
  .advice-grid {
    grid-template-columns: 1fr;
  }

  .link-card,
  .route-card {
    min-height: auto;
  }

  .download-band,
  .site-footer {
    display: grid;
    grid-template-columns: 1fr;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}
