:root {
  color-scheme: light;
  --canvas: #f4f8f5;
  --paper: #ffffff;
  --ink: #17221d;
  --muted: #54635c;
  --line: #d4dfd7;
  --forest: #075e4d;
  --blue: #28638d;
  --coral: #a74635;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-size: 16px; line-height: 1.65; }
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: 4px; }
button { font: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
h2 { font-size: 34px; line-height: 1.4; font-weight: 700; }
h3 { font-size: 20px; line-height: 1.5; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--coral); outline-offset: 5px; }
.visually-hidden, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: absolute; top: 12px; left: 20px; z-index: 2; padding: 8px 16px; background: var(--paper); }
.site-header, .site-footer, .feature-inner, .compact-inner { width: min(1080px, calc(100% - 48px)); margin-inline: auto; }
.site-header { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 20px; font-weight: 750; text-decoration: none; flex-shrink: 0; }
.brand img { object-fit: contain; }
nav { display: flex; align-items: center; gap: 24px; }
nav a, .footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 600; }

.hero {
  position: relative;
  height: min(660px, calc(100svh - 140px));
  min-height: 480px;
  padding: 206px 24px 0;
  background-image: url('/images/brand-hero-20260908.png');
  background-size: 1000px auto;
  background-position: center top;
  background-repeat: no-repeat;
  text-align: center;
}
.hero-copy { position: relative; max-width: 680px; margin-inline: auto; }
.eyebrow { color: var(--forest); font-size: 14px; font-weight: 650; margin-bottom: 12px; }
.hero h1 { margin-bottom: 8px; font-size: 80px; line-height: 1.1; font-weight: 750; }
.hero-tagline { font-size: 30px; font-weight: 650; line-height: 1.4; margin-bottom: 12px; }
.lede { color: var(--muted); font-size: 18px; line-height: 1.6; }
.download-actions { position: relative; display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 22px; }
.download-link, .retry-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 10px 22px;
  border: 1px solid var(--forest);
  border-radius: 6px;
  background: var(--forest);
  color: #fff;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  transition: transform 140ms cubic-bezier(0.23, 1, 0.32, 1), background-color 140ms ease;
}
.download-link { min-width: 206px; }
.download-link img { filter: brightness(0) invert(1); }
.download-link.is-disabled { opacity: 0.65; cursor: not-allowed; pointer-events: none; }
.retry-button { position: absolute; left: calc(50% + 115px); min-width: 82px; padding: 10px 12px; background: transparent; color: var(--forest); border-color: var(--line); }
.download-link:active, .retry-button:active { transform: scale(0.98); }
.release-status { min-height: 42px; margin-top: 10px; color: var(--muted); font-size: 14px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.hero noscript p { font-size: 14px; color: var(--muted); }

.feature-band { padding: 70px 0; border-top: 1px solid var(--line); }
.widget-band { padding-top: 48px; }
.feature-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 80px; }
.feature-copy { max-width: 440px; }
.feature-copy h2 { margin-bottom: 22px; }
.feature-copy > p:not(.eyebrow) { color: var(--muted); font-size: 18px; }
.feature-copy > p + p { margin-top: 16px; }
.feature-copy > p.feature-note { font-size: 14px; }
.feature-copy h2 span { display: block; }
.reverse .feature-copy { grid-column: 2; grid-row: 1; }
.reverse .product-image { grid-column: 1; grid-row: 1; }
.product-image { width: 100%; max-width: 350px; margin-inline: auto; min-width: 0; }
.product-image > a { display: block; border-radius: 8px; }
.product-image img { width: 100%; height: auto; border-radius: 8px; }
.product-image figcaption { margin-top: 14px; color: var(--muted); font-size: 13px; text-align: center; line-height: 1.65; }
.desktop-image { max-width: 330px; }
.timetable-image { max-width: 350px; }
.map-image { max-width: 332px; }
.utility-image { max-width: 540px; }
.timetable-band { background: var(--paper); }
.map-band { background: #f0f6f9; }
.map-band .eyebrow { color: var(--blue); }
.utility-band { background: #faf8f5; }
.utility-band .eyebrow { color: var(--coral); }

.trust-band, .update-band { padding: 60px 0; border-top: 1px solid var(--line); }
.compact-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; }
.compact-inner h2 { font-size: 28px; margin-bottom: 18px; }
.compact-inner p:not(.eyebrow) { max-width: 460px; color: var(--muted); }
.text-link { display: inline-flex; min-height: 44px; align-items: center; color: var(--forest); margin-top: 12px; font-weight: 600; }
.update-band { background: var(--paper); }
.release-notes { min-width: 0; }
.release-notes ul { color: var(--muted); padding-left: 21px; margin: 16px 0 24px; }
.release-notes li + li { margin-top: 7px; }
.release-notes ul:empty { display: none; }
.checksum-details { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 8px; }
.checksum-details summary { min-height: 44px; align-content: center; cursor: pointer; color: var(--muted); font-size: 14px; }
.checksum-details p { margin-top: 12px; font-size: 14px; }
.checksum-label { display: block; color: var(--muted); margin-top: 10px; font-size: 12px; }
.checksum-details code { display: block; margin-top: 6px; overflow-wrap: anywhere; font-size: 13px; line-height: 1.8; user-select: all; }
.site-footer { display: flex; justify-content: space-between; gap: 24px; padding: 30px 0 40px; }
.site-footer p { margin-top: 8px; font-size: 14px; color: var(--muted); }
.footer-links { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer-links a { font-size: 14px; }
.legal-page { width: min(760px, calc(100% - 40px)); min-height: calc(100svh - 140px); margin-inline: auto; padding: 64px 0; }
.legal-page h1 { font-size: 36px; line-height: 1.35; margin-bottom: 28px; }
.legal-page h2 { font-size: 24px; margin: 30px 0 14px; }
.legal-page p, .legal-page li { color: var(--muted); margin-bottom: 14px; }

@media (hover: hover) and (pointer: fine) {
  nav a:hover, .footer-links a:hover, .text-link:hover { color: var(--forest); text-decoration: underline; }
  .download-link:hover { background: #064a3d; }
  .retry-button:hover { background: #e4ede6; }
}

@media (max-width: 760px) {
  .site-header, .site-footer, .feature-inner, .compact-inner { width: calc(100% - 36px); }
  .site-header { min-height: 64px; }
  .brand { font-size: 18px; }
  nav { gap: 18px; }
  nav a { font-size: 14px; }
  .hero { height: min(540px, calc(100svh - 136px)); min-height: 430px; padding: 176px 18px 0; background-size: 840px auto; }
  .hero h1 { font-size: 52px; }
  .hero-tagline { font-size: 26px; margin-bottom: 12px; }
  .hero .eyebrow { font-size: 13px; margin-bottom: 10px; }
  .lede { max-width: 380px; font-size: 16px; margin-inline: auto; }
  .download-actions { margin-top: 18px; }
  .release-status { font-size: 13px; }
  .retry-button { position: static; min-width: 72px; }
  .feature-band { padding: 48px 0; }
  .widget-band { padding-top: 32px; }
  .feature-inner, .compact-inner { grid-template-columns: 1fr; gap: 30px; }
  .feature-copy { max-width: 540px; margin-inline: auto; width: 100%; }
  .feature-copy h2 { font-size: 28px; margin-bottom: 16px; }
  .feature-copy > p:not(.eyebrow) { font-size: 17px; }
  .reverse .feature-copy, .reverse .product-image { grid-column: auto; grid-row: auto; }
  .product-image { max-width: 344px; }
  .utility-image { max-width: 540px; }
  .trust-band, .update-band { padding: 44px 0; }
  .compact-inner { gap: 18px; }
  .compact-inner h2 { font-size: 26px; }
  .site-footer { display: block; }
  .footer-links { margin-top: 20px; gap: 18px; }
}

@media (max-width: 380px) {
  nav { gap: 12px; }
  .hero h1 { font-size: 46px; }
  .hero-tagline { font-size: 24px; }
  .hero .lede { font-size: 15px; }
  .download-link { min-width: 190px; padding-inline: 14px; }
  .download-actions { gap: 8px; }
}

@media (max-height: 800px) and (min-width: 761px) {
  .hero { padding-top: 150px; background-size: 700px auto; }
  .hero h1 { font-size: 64px; }
  .hero-tagline { font-size: 26px; margin-bottom: 8px; }
  .hero .eyebrow { margin-bottom: 8px; }
  .hero .lede { font-size: 17px; }
  .hero .download-actions { margin-top: 14px; }
  .hero .release-status { margin-top: 8px; min-height: 24px; }
}

@media (max-height: 660px) and (max-width: 760px) {
  .hero { padding-top: 120px; background-size: 560px auto; }
  .hero h1 { font-size: 44px; }
  .hero-tagline { font-size: 22px; margin-bottom: 8px; }
  .hero .eyebrow { margin-bottom: 8px; }
  .hero .lede { font-size: 15px; }
  .hero .download-actions { margin-top: 16px; }
  .hero .release-status { min-height: 24px; margin-top: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .download-link, .retry-button { transition: none; }
  .download-link:active, .retry-button:active { transform: none; }
}
