/*
 * diametheus.css: what the Diametheus pages need beyond site.css. Tokens and scales only:
 * no new colours, sizes or shadows.
 */

/* ---------- Demo video: show the variant matching the theme ---------- */

.diametheus-demo--light { display: none; }
:root[data-theme="light"] .diametheus-demo--dark { display: none; }
:root[data-theme="light"] .diametheus-demo--light { display: block; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .diametheus-demo--dark { display: none; }
  :root:not([data-theme="dark"]) .diametheus-demo--light { display: block; }
}

.diametheus-hero-media { margin: 0; aspect-ratio: 16 / 10; }
.diametheus-hero-media video { height: 100%; object-fit: cover; }
.diametheus-how-media { margin: var(--s-8) 0 0; aspect-ratio: 16 / 10; }
.diametheus-how-media video { height: 100%; object-fit: cover; }

/* ---------- Proof figures ---------- */

.diametheus-proof { gap: var(--s-5); }
.diametheus-proof__figure {
  font-size: var(--t-36); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1;
  color: var(--text-1);
}
.diametheus-proof__figure span[aria-hidden] { color: var(--accent-400); }
.card .diametheus-proof__figure { color: var(--text-1); }
@media (min-width: 900px) { .diametheus-proof__figure { font-size: var(--t-48); } }

/* ---------- Downloads ---------- */

.diametheus-downloads { align-items: start; }
.diametheus-os { gap: var(--s-4); }
.diametheus-os__head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); }
.diametheus-os__head h3 { font-size: var(--t-24); }
.diametheus-os__main { width: 100%; white-space: normal; text-align: center; }
.diametheus-os__main svg { width: 20px; height: 20px; flex: none; }
.diametheus-os.is-detected { order: -1; border-color: var(--accent-500); box-shadow: 0 0 0 1px var(--accent-500), var(--shadow-4); }

.diametheus-installers { list-style: none; display: grid; gap: var(--s-1); }
.diametheus-installers li {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--s-1) var(--s-3);
  padding-block: var(--s-2); border-top: 1px solid var(--line);
}
.diametheus-installers a { font-weight: 500; }
.diametheus-installers__group { display: grid; gap: var(--s-2); }
.diametheus-installers__group h4 { font-weight: 600; }

.diametheus-commands summary { cursor: pointer; font-size: var(--t-14); font-weight: 600; color: var(--text-2); }
.diametheus-commands ul { list-style: none; display: grid; gap: var(--s-3); margin-top: var(--s-3); }
.diametheus-commands li { display: grid; gap: var(--s-1); }
.diametheus-commands code {
  display: block; overflow-x: auto; white-space: nowrap; padding: var(--s-2) var(--s-3);
  border-radius: var(--radius-control); background: var(--surface-2); color: var(--text-1); font-size: var(--t-12);
}

.diametheus-download-meta { margin-top: var(--s-6); margin-bottom: var(--s-2); }

.hero .button svg { width: 20px; height: 20px; }
.cta-band .button svg, .page-hero .button svg { width: 20px; height: 20px; }

/* ---------- Pricing ---------- */

.diametheus-pricing__group {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-2) var(--s-4);
  margin: var(--s-7) 0 var(--s-5); font-size: var(--t-20);
}
.diametheus-pricing__group:first-of-type { margin-top: 0; }
.diametheus-pricing__group .quiet { font-weight: 400; }
.price-card h4 { font-size: var(--t-24); }
.diametheus-price__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-2); }
.diametheus-price { display: grid; gap: var(--s-2); }
.diametheus-price s { color: var(--text-2); }
.price-card .check-list { align-content: start; }
.price-card form { display: grid; }
@media (min-width: 900px) { .diametheus-price-grid--team { grid-template-columns: repeat(3, 1fr); } }

.diametheus-pricing__notes { display: grid; gap: var(--s-2); margin-top: var(--s-7); max-width: var(--width-text); color: var(--text-2); }

/* ---------- Release notes ---------- */

.diametheus-releases { display: grid; gap: var(--s-8); }
.diametheus-release { display: grid; gap: var(--s-5); max-width: 960px; }
.diametheus-release__head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); }
.diametheus-release__head h2 { font-size: var(--t-30); }
.diametheus-release__version { font-size: var(--t-20); }
.diametheus-release__items { padding-left: var(--s-5); display: grid; gap: var(--s-2); color: var(--text-2); }

/* .tag sets display, which would override the hidden attribute on the "Your computer" label. */
[data-detected-label][hidden] { display: none; }
