/* compass-public-visual-system: uxhc-v1 */
:root {
  color-scheme: light;
  --bg: #f7faf7;
  --paper: #ffffff;
  --panel: #ffffff;
  --ink: #17211f;
  --muted: #5f6f6a;
  --teal: #0f766e;
  --teal-dark: #0b5f59;
  --coral: #d95f43;
  --leaf: #527a39;
  --gold: #d99c2b;
  --line: #d9e5df;
  --soft: #eef6f1;
  --danger: #9f2d20;
  --shadow: 0 18px 50px rgba(23, 33, 31, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(180deg, rgba(15, 118, 110, 0.06), transparent 340px),
    var(--bg);
  color: var(--ink);
  line-height: 1.58;
  letter-spacing: 0;
  max-width: 100%;
  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

header,
main,
footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

header {
  padding: 44px 0 24px;
  display: grid;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand img {
  width: 86px;
  height: 86px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

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

h1 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  font-size: 1.45rem;
  line-height: 1.2;
  margin-bottom: 10px;
}

h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

p {
  margin-bottom: 12px;
}

a {
  color: var(--teal-dark);
  font-weight: 700;
  overflow-wrap: anywhere;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(217, 95, 67, 0.35);
  outline-offset: 3px;
}

.lead {
  max-width: 880px;
  color: var(--muted);
  font-size: 1.18rem;
}

.subtitle {
  max-width: 880px;
  color: var(--ink);
  font-size: 1.18rem;
  font-weight: 800;
  margin-bottom: -4px;
}

.tag,
.status-pill,
.meta-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 10px;
  background: var(--soft);
  color: var(--teal-dark);
  font-size: 0.83rem;
  font-weight: 800;
}

.status-pill.beta {
  color: #fff;
  background: var(--teal);
  border-color: var(--teal);
}

.status-pill.alpha,
.status-pill.early-alpha {
  color: var(--ink);
  background: #fff8e8;
  border-color: #e3c16f;
}

.tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 22px;
  border-bottom: 1px solid var(--line);
}

.tab-nav button {
  appearance: none;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  padding: 12px 15px;
  background: #edf5f0;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.tab-nav button[aria-selected="true"] {
  background: var(--paper);
  color: var(--teal-dark);
  box-shadow: 0 -3px 0 var(--coral) inset;
}

.tab-panel[hidden] {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.tab-panel {
  animation: fade 160ms ease-out;
}

@keyframes fade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

section {
  padding: 20px 0;
  min-width: 0;
}

.section-intro {
  max-width: 840px;
  color: var(--muted);
}

.product-grid,
.info-grid,
.install-grid,
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 18px;
}

.product-card,
.info-block,
.install-block,
.faq-block,
.notice {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 22px;
  box-shadow: var(--shadow);
  max-width: 100%;
  min-width: 0;
}

.product-card {
  display: grid;
  gap: 12px;
  align-content: start;
}

.product-head {
  display: grid;
  gap: 8px;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-actions,
.download-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--teal);
  border-radius: 8px;
  background: var(--teal);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 11px 15px;
  text-decoration: none;
  max-width: 100%;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}

.button.secondary {
  border-color: var(--teal);
  background: var(--teal);
}

.button.ghost,
.button.quiet {
  background: transparent;
  color: var(--teal-dark);
}

.button.disabled,
.button[aria-disabled="true"] {
  background: #e4ebe7;
  border-color: #a9b8b2;
  color: #5e6f68;
  cursor: not-allowed;
}

.download-list {
  display: grid;
  gap: 10px;
  margin-top: 2px;
  min-width: 0;
}

.download-item {
  border-top: 1px solid var(--line);
  padding-top: 10px;
  min-width: 0;
}

.download-item p {
  color: var(--muted);
  font-size: 0.92rem;
}

.download-item code,
.checksum code {
  overflow-wrap: anywhere;
}

.status-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.download-chooser {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
}

.chooser-copy,
.chooser-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.chooser-copy {
  padding: 22px;
  border-left: 4px solid var(--teal);
}

.chooser-copy p:last-child {
  margin-bottom: 0;
}

.eyebrow {
  margin-bottom: 6px;
  color: var(--teal-dark);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.inline-help {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

.chooser-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}

.chooser-item {
  display: grid;
  gap: 6px;
  padding: 16px;
}

.chooser-item span {
  color: var(--muted);
  font-weight: 700;
}

.chooser-item strong {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.notice {
  border-left: 4px solid var(--gold);
  margin: 0 0 18px;
}

.privacy-notice {
  border-left-color: var(--danger);
}

ol,
ul {
  padding-left: 22px;
}

li {
  margin: 0 0 8px;
}

details {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfdfb;
  min-width: 0;
}

summary {
  cursor: pointer;
  font-weight: 800;
  min-height: 44px;
  display: flex;
  align-items: center;
  overflow-wrap: anywhere;
}

footer {
  padding: 28px 0 44px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 720px) {
  header,
  main,
  footer {
    width: min(100% - 24px, 1120px);
  }

  header {
    padding-top: 32px;
  }

  .brand {
    align-items: flex-start;
  }

  .brand img {
    width: 64px;
    height: 64px;
  }

  .tab-nav {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    border-bottom: 0;
  }

  .tab-nav button {
    width: 100%;
    min-height: 48px;
    border-radius: 8px;
    border: 1px solid var(--line);
    text-align: left;
  }

  .product-grid,
  .info-grid,
  .install-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .download-chooser,
  .chooser-grid {
    grid-template-columns: 1fr;
  }

  .product-actions,
  .download-actions {
    align-items: stretch;
  }

  .product-actions .button,
  .download-actions .button,
  .download-item .button,
  .product-card > .button,
  .product-card > .button.disabled {
    width: 100%;
  }
}

@media (max-width: 420px) {
  header,
  main,
  footer {
    width: min(100% - 20px, 1120px);
  }

  .brand {
    display: grid;
  }

  .product-card,
  .info-block,
  .install-block,
  .faq-block,
  .notice,
  .chooser-copy,
  .chooser-item {
    padding: 18px;
  }
}
