:root {
  --font-body: "Aptos", "Segoe UI Variable Text", "Segoe UI", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: "Aptos Display", "Segoe UI Variable Display", "Aptos", "Segoe UI", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --active-accent: #008f68;
  --active-link-text: var(--chip-text);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: var(--font-body);
  font-optical-sizing: auto;
  font-synthesis: none;
  text-rendering: auto;
  -webkit-font-smoothing: auto;
  letter-spacing: 0;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
h1, h2, h3, .btn, .top-links a {
  font-family: var(--font-display);
}

h1 {
  font-weight: 760 !important;
}

h2,
h3 {
  font-weight: 720 !important;
}

.btn,
.top-links a,
.label,
.portal-title,
.state-pill,
.listing-tag,
.proof-item small,
.market-tab b,
.metric b,
.report-line b {
  font-weight: 700 !important;
}

.site-chrome {
  position: static;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 84px;
  padding: 16px clamp(18px, 4vw, 54px);
  border-bottom: 1px solid var(--chrome-line);
  background: var(--chrome-bg);
  backdrop-filter: blur(24px) saturate(1.15);
}
.site-chrome img { width: 204px; height: auto; }
.top-links { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.top-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--chip-line);
  border-radius: 999px;
  background: var(--chip-bg);
  color: var(--chip-text);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: .02em;
}
.top-links a.active { background: var(--active-bg); color: var(--active-text); border-color: transparent; }
.top-links a,
.btn,
.portal {
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, transform .18s ease;
}
.top-links a:hover,
.btn:hover,
.portal:hover {
  transform: translateY(-1px);
}
a:focus-visible,
.btn:focus-visible,
.rail-button:focus-visible,
.card-link:focus-visible,
.example-rail:focus-visible {
  outline: 3px solid rgba(0,143,104,.26);
  outline-offset: 3px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 13px 20px;
  border: 1px solid var(--button-line);
  border-radius: 8px;
  background: var(--button-bg);
  color: var(--button-text);
  box-shadow: var(--button-shadow);
  font-size: 14px;
  font-weight: 880;
  white-space: nowrap;
}
.btn.primary {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, #008f68, #006b52);
  box-shadow: 0 22px 46px rgba(0,111,82,.24);
}
.btn.ghost { box-shadow: none; }

.portal-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
}
.portal {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 58px;
  border: 1px solid var(--portal-line);
  border-radius: 10px;
  background: var(--portal-bg);
}
.portal img { width: 35px; height: 35px; object-fit: contain; }
.portal.wide img { width: 58px; max-height: 24px; }
.portal.active { border-color: #6fd1b5; box-shadow: inset 0 0 0 1px rgba(0,143,104,.22); }

.footer {
  padding: 36px clamp(18px, 4vw, 54px) 48px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

@media (max-width: 760px) {
  .site-chrome { position: static; align-items: flex-start; flex-direction: column; width: 100%; max-width: 100%; }
  .site-chrome img { width: min(216px, 76vw); }
  .top-links { justify-content: flex-start; width: 100%; }
  .top-links a { flex: 1 1 auto; min-width: 0; white-space: normal; line-height: 1.15; text-align: center; }
  .portal-strip { gap: 7px; }
  .portal { height: 50px; border-radius: 14px; }
  .portal img { width: 29px; height: 29px; }
  .portal.wide img { width: 44px; }
}

/* Shared premium editorial chrome. Keep product controls tactile, make navigation open. */
.site-chrome {
  border-bottom-color: rgba(7, 20, 38, .12);
  background: color-mix(in srgb, var(--chrome-bg) 84%, transparent);
}

.top-links {
  gap: clamp(14px, 2vw, 30px);
}

.top-links a {
  min-height: 42px;
  padding: 9px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  border-top: 2px solid transparent;
  opacity: .74;
}

.top-links a.active {
  color: var(--active-link-text);
  background: transparent;
  border-top-color: var(--active-accent);
  opacity: 1;
}

.top-links a:hover {
  border-top-color: currentColor;
  transform: none;
  opacity: 1;
}

@media (max-width: 760px) {
  .site-chrome {
    gap: 14px;
    padding: 14px 16px 10px;
  }
  .site-chrome img {
    width: min(184px, 58vw);
  }
  .top-links {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 0 8px;
    gap: 18px;
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }
  .top-links::-webkit-scrollbar {
    display: none;
  }
  .top-links a {
    flex: 0 0 auto;
    min-height: 34px;
    font-size: 12px;
    text-align: left;
    white-space: nowrap;
  }
}
