 :root {
  --ink: #111817;
  --paper: #f6f8f5;
  --muted: #5e6d68;
  --line: #cbd8d2;
  --panel: #ffffff;
  --deep: #07100f;
  --deep-2: #10201d;
  --aqua: #0c8f85;
  --gold: #b7791f;
  --blue: #245b9a;
  --ok: #327553;
  --radius: 8px;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  color: var(--ink);
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  line-height: 1.5;
  background:
    linear-gradient(180deg, #f9fbf8 0, #eef4f1 360px, #f6f8f5 361px);
}

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

a:hover {
  text-decoration: underline;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 5vw, 60px);
  border-bottom: 1px solid rgba(17, 24, 23, 0.12);
  background: rgba(246, 248, 245, 0.9);
  backdrop-filter: blur(14px);
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.mark span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--aqua);
  font-family: var(--mono);
  font-size: 14px;
}

.mark strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
}

.nav,
.footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
  font-size: 13px;
  color: var(--muted);
}

main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(18px, 5vw, 60px) 64px;
}

.hero {
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 40px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--aqua);
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: 56px;
  line-height: 1;
  font-weight: 720;
}

h2 {
  margin-bottom: 0;
  font-size: 22px;
}

.hero-copy p:last-child {
  max-width: 680px;
  font-size: 19px;
  color: var(--muted);
}

.facts {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.68);
}

.facts div {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 16px;
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
}

.facts div:last-child {
  border-bottom: 0;
}

.facts dt {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

.facts dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.band,
.preview-section {
  padding: 46px 0;
  border-bottom: 1px solid var(--line);
}

.policy-hero {
  min-height: 430px;
}

.policy-doc {
  display: grid;
  gap: 26px;
}

.policy-doc article {
  max-width: 820px;
}

.policy-doc h2 {
  margin-bottom: 8px;
}

.policy-doc p,
.route-grid .channel span {
  color: var(--muted);
}

.route-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.section-head p {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
}

.section-head.compact {
  align-items: center;
}

.small-link {
  color: var(--aqua);
  font-family: var(--mono);
  font-size: 13px;
}

.channel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.channel,
.product-cell {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.channel {
  display: grid;
  gap: 6px;
  padding: 16px;
}

.channel strong {
  font-size: 15px;
}

.channel span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

.channel:nth-child(3n + 1) {
  border-top-color: var(--aqua);
}

.channel:nth-child(3n + 2) {
  border-top-color: var(--gold);
}

.channel:nth-child(3n + 3) {
  border-top-color: var(--blue);
}

.muted {
  color: var(--muted);
}

.product-array {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.product-cell {
  position: relative;
  min-height: 190px;
  padding: 16px;
  border: 0;
  border-radius: 0;
}

.cell-no,
.cell-meta {
  font-family: var(--mono);
  color: var(--muted);
  font-size: 12px;
}

.cell-symbol {
  display: block;
  margin: 28px 0 12px;
  color: var(--aqua);
  font-family: var(--mono);
  font-size: 34px;
}

.product-cell h3 {
  margin-bottom: 8px;
  font-size: 16px;
}

.product-cell p {
  color: var(--muted);
  font-size: 13px;
}

.cell-meta {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-shell {
  position: relative;
  min-height: 480px;
  border: 1px solid var(--deep-2);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--deep);
}

.preview-shell iframe {
  width: 100%;
  height: 680px;
  border: 0;
  background: white;
}

.empty-preview {
  display: grid;
  min-height: 480px;
  place-items: center;
  padding: 24px;
  color: #c8d8d4;
  font-family: var(--mono);
  background:
    linear-gradient(135deg, rgba(12, 143, 133, 0.16), transparent 42%),
    var(--deep);
}

details {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.56);
}

details:last-child {
  border-bottom: 1px solid var(--line);
}

summary {
  cursor: pointer;
  padding: 18px 0;
  font-weight: 700;
}

details p {
  max-width: 820px;
  margin-bottom: 22px;
  white-space: pre-line;
  color: var(--muted);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 24px clamp(18px, 5vw, 60px) 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer strong {
  display: block;
  color: var(--ink);
}

@media (max-width: 760px) {
  .topbar,
  .footer,
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 64px 0 42px;
  }

  h1 {
    font-size: 40px;
  }

  .hero-copy p:last-child {
    font-size: 17px;
  }

  .preview-shell,
  .empty-preview {
    min-height: 360px;
  }

  .preview-shell iframe {
    height: 540px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
