:root {
  color-scheme: light;
  --ink: #282530;
  --muted: #575260;
  --slate: #5e5970;
  --red: #b81922;
  --red-hover: #991319;
  --pale: #f3f1f5;
  --green: #236346;
  --green-pale: #e9f4ed;
  --amber: #7d520e;
  --amber-pale: #fff5e4;
  --error: #a7242c;
  --error-pale: #fceeee;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font: 15px/1.45 Arial, Helvetica, sans-serif;
}
a { color: inherit; }
a:focus-visible { outline: 3px solid #645a83; outline-offset: 4px; }
p, dl { margin: 0; }
h1, h2, h3 { margin: 0; line-height: 1.15; }

.site-width { width: min(1100px, calc(100% - 32px)); margin-inline: auto; }
.site-header iframe, .site-footer iframe { display: block; margin-inline: auto; border: 0; }
.site-header { padding-top: 8px; }
.site-footer { margin-top: 22px; }
.compact-navigation { display: none; }
.skip-link {
  position: fixed;
  z-index: 1;
  inset: 12px auto auto 12px;
  transform: translateY(-150%);
  background: #fff;
  color: var(--ink);
  padding: 8px 14px;
}
.skip-link:focus { transform: none; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 24%);
  background: #423d51;
  color: #fff;
}
.hero-copy { align-self: center; padding: clamp(22px, 3vw, 34px); }
.eyebrow {
  color: var(--slate);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .10em;
  text-transform: uppercase;
}
.hero .eyebrow { color: #ffd0d1; }
.hero h1 {
  margin: 5px 0 8px;
  font-size: clamp(29px, 4vw, 40px);
  letter-spacing: -.035em;
}
.hero p:not(.eyebrow) { max-width: 74ch; color: #f0edf4; }
.hero .hero-lead { margin-bottom: 5px; font-size: clamp(16px, 2vw, 19px); font-weight: 700; }
.hero-art {
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 24px;
  background-color: #eeecf2;
}
.hero-art img { display: block; width: min(100%, 192px); height: auto; }
.download-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.button {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 6px 13px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}
.button-primary { background: var(--green); color: #fff; }
.button-primary[href]:hover { background: #164d34; }
.button[aria-disabled="true"] { background: #e4e1e8; color: var(--muted); cursor: default; }
.button-sign-in { background: var(--red); color: #fff; }
.button-sign-in:hover { background: var(--red-hover); }

.release-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 14px;
  margin-top: 12px;
  padding: 8px 12px;
  border-left: 4px solid var(--green);
  background: var(--green-pale);
  color: var(--green);
  font-size: 14px;
}
.release-status:has(.state-pending) { border-color: var(--amber); background: var(--amber-pale); color: var(--amber); }
.release-status:has(.state-error) { border-color: var(--error); background: var(--error-pale); color: var(--error); }
#serviceStatus { display: inline-flex; align-items: center; gap: 8px; }
#serviceStatus::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

.access-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 14px;
  margin-top: 12px;
}
.card { min-width: 0; padding: clamp(16px, 2vw, 23px); background: var(--pale); }
.installer-card { scroll-margin-top: 16px; background: #f7f6f8; }
.card-heading { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; }
.card-heading h2 { font-size: clamp(19px, 2.2vw, 23px); letter-spacing: -.025em; }
.badge {
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.release-badge { display: none; color: var(--green); background: var(--green-pale); }
main:has(.state-success) .release-badge { display: inline-block; }
.private-badge { color: #50495f; background: #e6e2ec; }
.release-metadata {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 12px;
  margin-top: 14px;
  padding: 6px 0;
}
.release-metadata dt { color: var(--muted); font-size: 13px; }
.release-metadata dd { margin: 3px 0 0; font-size: 14px; }
.release-metadata dd { font-weight: 700; }
.download-actions > span { color: var(--muted); font-size: 13px; }
.account-card p:not(.eyebrow) { margin-top: 6px; color: var(--muted); font-size: 14px; }
.account-card .button { margin-top: 8px; }
.account-card .pairing-hint { font-size: 13px; }

.scope { margin-top: 17px; }
.scope h2 { margin-bottom: 9px; font-size: 19px; }
.scope-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.scope-grid article { padding: 12px 15px; background: #f7f6f8; }
.scope-grid h3 { margin: 0 0 3px; font-size: 15px; }
.scope-grid p { color: var(--muted); font-size: 14px; }

@media (min-width: 1121px) and (max-height: 850px) {
  .hero-copy { padding-block: 15px; }
  .hero-art { padding-block: 8px; }
  .release-status { margin-top: 8px; padding-block: 6px; }
  .access-grid { margin-top: 8px; }
  .card { padding-block: 12px; }
  .release-metadata { margin-top: 9px; }
  .download-actions { margin-top: 7px; }
  .scope { margin-top: 11px; }
  .scope h2 { margin-bottom: 6px; }
  .scope-grid article { padding-block: 7px; }
  .site-footer { margin-top: 7px; }
}

@media (max-width: 1120px) {
  .site-header iframe, .site-footer iframe { display: none; }
  .compact-navigation { display: block; padding: 10px 0 14px; }
  .compact-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
  .compact-brand img { width: 82px; height: auto; }
  .compact-brand small { display: block; color: var(--muted); }
  .compact-navigation nav { display: flex; flex-wrap: wrap; gap: 3px 14px; margin-top: 5px; font-size: 13px; }
  .compact-navigation nav a { padding-block: 3px; text-decoration: none; }
  .compact-navigation nav a:hover, .compact-navigation nav [aria-current] { color: var(--red); }
  .site-footer .compact-navigation small { display: block; margin-top: 8px; color: var(--muted); }
}

@media (max-width: 860px) {
  .access-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-art { grid-row: 1; padding: 15px; }
  .hero-art img { width: 125px; }
  .hero h1 { font-size: clamp(29px, 8vw, 42px); }
  .release-metadata { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scope-grid { grid-template-columns: 1fr; gap: 8px; }
}

@media (min-width: 1121px) and (min-height: 950px) {
  .fit-page {
    display: grid;
    min-height: min(100vh, 1080px);
    min-height: min(100svh, 1080px);
    grid-template-rows: auto minmax(min-content, 1fr) auto;
  }
  .fit-page > main {
    display: grid;
    grid-template-rows: minmax(193px, max-content) minmax(min-content, 1.35fr) minmax(min-content, 1fr);
    gap: 14px;
    margin-top: 8px;
  }
  .fit-page > main > * { margin-top: 0; }
  .fit-page > .site-footer { margin-top: 16px; padding-bottom: 24px; }
  .fit-page .hero-copy { padding-block: 15px; }
  .fit-page .hero p { max-width: none; }
  .fit-page .hero-art img { width: min(100%, 144px); }
  .fit-page .product-actions, .fit-page .scope {
    display: grid;
    grid-template-rows: auto minmax(min-content, 1fr);
  }
  .fit-page .product-actions { gap: 10px; }
  .fit-page :is(.release-status, .access-grid) { margin-top: 0; }
}
