/* ==========================================================================
   Cobalt64 - site styles
   Liquid-glass surfaces over a blue wave wallpaper, light + dark.
   ========================================================================== */

:root {
  color-scheme: light dark;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", system-ui, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  /* Light */
  --bg: #e4e1ff;
  --text: #0b1426;
  --text-2: #4b5870;
  --text-3: #7d889c;
  --accent: #0a6cff;
  --accent-hi: #3a8bff;
  --on-accent: #fff;

  --glass: rgba(255, 255, 255, 0.4);
  --glass-strong: rgba(255, 255, 255, 0.66);
  --fill: rgba(255, 255, 255, 0.62);
  --fill-hover: rgba(255, 255, 255, 0.9);
  --hair: rgba(12, 30, 70, 0.09);
  --rim-a: rgba(255, 255, 255, 0.95);
  --rim-b: rgba(255, 255, 255, 0.25);
  --shadow: 0 1px 1px rgba(16, 40, 100, 0.05), 0 12px 40px -8px rgba(16, 48, 120, 0.22);
  --shadow-lg: 0 1px 1px rgba(16, 40, 100, 0.05), 0 30px 80px -20px rgba(16, 48, 120, 0.35);

  --wp-sky-1: #c4bcff;
  --wp-sky-2: #dedbff;
  --wp-sky-3: #eceaff;
  --wp-haze: #ffffff;
  --wp-glow: #a596ff;
  --wp-1a: #93a8ff;
  --wp-1b: #6461f6;
  --wp-2a: #4f7eff;
  --wp-2b: #2b45e0;
  --wp-3a: #2a3fd4;
  --wp-3b: #16209a;
  --wp-depth: #0d1260;
  --wp-rim: #ffffff;

  --s-supported: #22b455;
  --s-launch: var(--accent);
  --s-next: #5e5ce6;
  --s-planned: #8a8f99;
  --s-unsupported: #e5483e;
  --s-notyet: #e07a00;
  --s-unknown: #7d8590;

  --radius: 22px;
  --radius-sm: 14px;
  --nav-h: 52px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0840;
    --text: #f3f6fc;
    --text-2: rgba(226, 233, 246, 0.72);
    --text-3: rgba(226, 233, 246, 0.48);
    --accent: #3d95ff;
    --accent-hi: #63aaff;

    --glass: rgba(26, 22, 78, 0.34);
    --glass-strong: rgba(16, 14, 50, 0.66);
    --fill: rgba(255, 255, 255, 0.055);
    --fill-hover: rgba(255, 255, 255, 0.1);
    --hair: rgba(255, 255, 255, 0.08);
    --rim-a: rgba(255, 255, 255, 0.38);
    --rim-b: rgba(255, 255, 255, 0.04);
    --shadow: 0 1px 1px rgba(0, 0, 0, 0.3), 0 12px 40px -8px rgba(0, 0, 0, 0.55);
    --shadow-lg: 0 1px 1px rgba(0, 0, 0, 0.3), 0 30px 80px -20px rgba(0, 0, 0, 0.7);

    --wp-sky-1: #1a0c96;
    --wp-sky-2: #3626cc;
    --wp-sky-3: #4f43dc;
    --wp-haze: #8f86ff;
    --wp-glow: #5a48ff;
    --wp-1a: #3f66ff;
    --wp-1b: #3b2fd2;
    --wp-2a: #2558f0;
    --wp-2b: #1630b8;
    --wp-3a: #10208f;
    --wp-3b: #070c4c;
    --wp-depth: #02041f;
    --wp-rim: #d6deff;

    --s-supported: #32d74b;
    --s-next: #7d7aff;
    --s-planned: #98989f;
    --s-unsupported: #ff5b52;
    --s-notyet: #ff9f0a;
    --s-unknown: #a1a1aa;
  }
}

/* --- Reset ---------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 32px);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

button,
input {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

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

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

code,
kbd {
  font-family: var(--mono);
  font-size: 0.88em;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent);
  outline-offset: 2px;
}

::selection {
  background: color-mix(in srgb, var(--accent) 30%, transparent);
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
}

/* Release-state toggles: <html data-release="coming-soon|available"> */
html[data-release="coming-soon"] [data-when="available"],
html[data-release="available"] [data-when="coming-soon"],
html:not([data-early="available"]) [data-early-when="available"],
html[data-early="available"] [data-early-when="none"] {
  display: none !important;
}

/* --- Wallpaper ------------------------------------------------------------ */

.wallpaper {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.wp-layer {
  position: absolute;
  top: -6%;
  left: -6%;
  width: 112%;
  height: 112%;
  max-width: none;
}

/* Each sheet is rasterised once; motion is a compositor-only transform */
.wp-sheet {
  will-change: transform;
  transform-origin: 50% 100%;
  animation: sway-1 24s ease-in-out infinite alternate;
}

.wp-sheet.s2 {
  animation-name: sway-2;
  animation-duration: 30s;
  animation-delay: -9s;
}

.wp-sheet.s3 {
  animation-name: sway-3;
  animation-duration: 36s;
  animation-delay: -18s;
}

.wallpaper.is-paused .wp-sheet {
  animation-play-state: paused;
}

@keyframes sway-1 {
  from {
    transform: translate3d(-2.5%, 1%, 0) scale(1, 0.97) rotate(-0.6deg);
  }
  to {
    transform: translate3d(2.5%, -1.5%, 0) scale(1.02, 1.04) rotate(0.6deg);
  }
}

@keyframes sway-2 {
  from {
    transform: translate3d(2%, -1%, 0) scale(1.02, 1.03) rotate(0.5deg);
  }
  to {
    transform: translate3d(-2%, 1.5%, 0) scale(1, 0.97) rotate(-0.5deg);
  }
}

@keyframes sway-3 {
  from {
    transform: translate3d(-1.5%, 0.5%, 0) scale(1, 1);
  }
  to {
    transform: translate3d(1.5%, -1%, 0) scale(1.03, 1.05);
  }
}

/* --- Liquid glass ---------------------------------------------------------- */

.glass {
  position: relative;
  background: var(--glass);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  box-shadow: var(--shadow);
  isolation: isolate;
}

.glass.strong {
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(40px) saturate(190%);
  backdrop-filter: blur(40px) saturate(190%);
  box-shadow: var(--shadow-lg);
}

/* Specular rim: bright top-left edge fading to a faint bottom-right edge */
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(150deg, var(--rim-a), var(--rim-b) 38%, transparent 62%, var(--rim-b) 85%, var(--rim-a));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
}

/* --- Navigation ------------------------------------------------------------ */

.nav {
  position: fixed;
  top: 12px;
  left: 50%;
  z-index: 50;
  width: min(1040px, calc(100% - 24px));
  height: var(--nav-h);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px 0 10px;
  border-radius: 999px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  padding: 6px 10px 6px 4px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 16.5px;
  letter-spacing: -0.01em;
}

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-2);
  transition: background-color 0.2s, color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
  background: var(--fill);
}

.nav-links a[aria-current="page"] {
  color: var(--text);
  background: var(--fill);
}

.nav-links svg {
  width: 18px;
  height: 18px;
}

.nav-links .icon-only {
  width: 36px;
  padding: 0;
  justify-content: center;
}

@media (max-width: 560px) {
  .nav-links .hide-sm {
    display: none;
  }

  .brand span {
    font-size: 15.5px;
  }
}

/* --- Buttons ---------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  white-space: nowrap;
  transition: transform 0.18s ease, background-color 0.2s, box-shadow 0.2s, filter 0.2s;
}

.btn:active {
  transform: scale(0.97);
}

.btn svg {
  width: 19px;
  height: 19px;
  flex: none;
}

.btn.glass:hover {
  background: var(--glass-strong);
}

.btn-tint {
  position: relative;
  color: var(--on-accent);
  background: linear-gradient(180deg, var(--accent-hi), var(--accent));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -1px 0 rgba(0, 0, 0, 0.12),
    0 10px 28px -8px color-mix(in srgb, var(--accent) 70%, transparent);
}

.btn-tint:hover {
  filter: brightness(1.06);
}

.btn-sm {
  height: 38px;
  padding: 0 16px;
  font-size: 14.5px;
}

.btn[aria-disabled="true"] {
  cursor: default;
  opacity: 0.6;
  pointer-events: none;
}

.count {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-3);
}

/* --- Hero ------------------------------------------------------------------ */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: calc(var(--nav-h) + 56px) 16px 120px;
  text-align: center;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.app-icon {
  width: clamp(104px, 14vw, 132px);
  height: auto;
  border-radius: 23%;
  filter: drop-shadow(0 18px 30px rgba(11, 47, 176, 0.35)) drop-shadow(0 2px 4px rgba(11, 47, 176, 0.2));
  margin-bottom: 28px;
  animation: float 7s ease-in-out infinite;
}

@keyframes float {
  50% {
    transform: translateY(-6px);
  }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 9vw, 5.75rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.035em;
}

.hero .subtitle {
  margin-top: 16px;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-weight: 500;
  color: var(--text-2);
  letter-spacing: -0.01em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}

.read-more {
  position: absolute;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 16px 0 18px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text);
}

.read-more svg {
  width: 16px;
  height: 16px;
  animation: nudge 2.4s ease-in-out infinite;
}

@keyframes nudge {
  50% {
    transform: translateY(3px);
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-self: stretch;
    width: 100%;
    max-width: 320px;
    margin-inline: auto;
  }
}

/* --- Sheet (main content window) ------------------------------------------ */

.page {
  padding: 40px 16px 64px;
}

.sheet {
  max-width: 880px;
  margin: 0 auto;
  border-radius: 30px;
  padding: clamp(24px, 5vw, 56px);
}

.sheet + .sheet {
  margin-top: 24px;
}

.block + .block {
  margin-top: clamp(44px, 6vw, 64px);
}

.block-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.block-intro {
  margin-top: 10px;
  color: var(--text-2);
  font-size: 16.5px;
  max-width: 64ch;
  text-wrap: pretty;
}

.block-intro + .block-intro {
  margin-top: 12px;
}

.inline-link {
  color: var(--accent);
  font-weight: 500;
}

.inline-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Inset grouped list (System Settings style) */
.group {
  margin-top: 20px;
  border-radius: var(--radius-sm);
  background: var(--fill);
  overflow: hidden;
}

.group > li,
.group > .row,
.group > details {
  position: relative;
}

.group > li + li::before,
.group > .row + .row::before,
.group > details + details::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 16px;
  height: 1px;
  background: var(--hair);
}

.group.has-icons > li + li::before,
.group.has-icons > .row + .row::before {
  left: 64px;
}

.row {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  padding: 12px 16px;
}

a.row,
button.row {
  width: 100%;
  text-align: left;
  transition: background-color 0.15s;
}

a.row:hover,
button.row:hover {
  background: var(--fill-hover);
}

.row-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  color: #fff;
  border: 0.5px solid rgba(0, 0, 0, 0.08);
  background: linear-gradient(180deg, var(--accent-hi), var(--accent));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.row-icon svg {
  width: 20px;
  height: 20px;
  filter: drop-shadow(0 0.5px 0.5px rgba(0, 0, 0, 0.18));
}

/* System Settings-style tints */
.row-icon[data-tint="blue"] {
  background: linear-gradient(180deg, #45a0ff, #0a6cff);
}

.row-icon[data-tint="purple"] {
  background: linear-gradient(180deg, #c975f7, #9c3ad6);
}

.row-icon[data-tint="teal"] {
  background: linear-gradient(180deg, #55d3e3, #18a0bb);
}

.row-icon[data-tint="indigo"] {
  background: linear-gradient(180deg, #8583ff, #4f4cd6);
}

.row-icon[data-tint="graphite"] {
  background: linear-gradient(180deg, #a9a9b0, #6c6c74);
}

.row-icon[data-tint="green"] {
  background: linear-gradient(180deg, #5ddc72, #26b048);
}

.row-icon.num {
  font-weight: 650;
  font-size: 15px;
}

.row-body {
  flex: 1;
  min-width: 0;
}

.row-title {
  display: block;
  font-weight: 590;
  font-size: 15.5px;
  letter-spacing: -0.005em;
}

.row-desc {
  display: block;
  margin-top: 2px;
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.5;
}

.row-value {
  flex: none;
  font-size: 15px;
  color: var(--text-2);
  text-align: right;
}

.row-value.mono {
  font-family: var(--mono);
  font-size: 13.5px;
}

.chevron {
  flex: none;
  width: 8px;
  height: 8px;
  margin-left: 2px;
  border-right: 2px solid var(--text-3);
  border-top: 2px solid var(--text-3);
  transform: rotate(45deg);
  opacity: 0.8;
}

/* FAQ rows */
.group details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
  padding: 14px 16px;
  font-weight: 560;
  font-size: 15.5px;
  cursor: pointer;
  list-style: none;
  transition: background-color 0.15s;
}

.group details summary:hover {
  background: var(--fill-hover);
}

.group details summary::-webkit-details-marker {
  display: none;
}

.group details summary::after {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--text-3);
  border-bottom: 2px solid var(--text-3);
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.2s;
}

.group details[open] summary::after {
  transform: translateY(2px) rotate(-135deg);
}

.group details p {
  padding: 0 16px 16px;
  font-size: 15px;
  color: var(--text-2);
  max-width: 68ch;
}

.group details p a {
  color: var(--accent);
}

/* Status badge */
.badge {
  --c: var(--s-planned);
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 13%, transparent);
}

.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.badge[data-status="supported"] {
  --c: var(--s-supported);
}

.badge[data-status="launch"] {
  --c: var(--s-launch);
}

.badge[data-status="next"] {
  --c: var(--s-next);
}

.badge[data-status="planned"] {
  --c: var(--s-planned);
}

.badge[data-status="unsupported"] {
  --c: var(--s-unsupported);
}

.badge[data-status="notyet"] {
  --c: var(--s-notyet);
}

.badge[data-status="unknown"] {
  --c: var(--s-unknown);
}

/* Download row */
.download-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 18px 16px;
}

.download-row img {
  width: 48px;
  height: 48px;
  border-radius: 11px;
}

.download-row .row-body {
  min-width: 180px;
}

.download-row .row-title {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 17px;
}

@media (max-width: 520px) {
  .download-row .btn {
    width: 100%;
  }

  .row {
    flex-wrap: wrap;
  }

  .row-value {
    text-align: left;
  }

  .group.has-icons .row-value {
    padding-left: 48px;
  }
}

/* Footer */
.footer {
  margin-top: clamp(44px, 6vw, 64px);
  padding-top: 24px;
  border-top: 1px solid var(--hair);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  font-size: 13px;
  color: var(--text-3);
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

.footer nav a {
  color: var(--text-2);
}

.footer nav a:hover {
  color: var(--text);
}

.footer p {
  flex-basis: 100%;
  max-width: 72ch;
}

/* --- Check your GPU -------------------------------------------------------- */

.page-head {
  max-width: 640px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 64px) 16px 36px;
  text-align: center;
}

.page-head img {
  width: 76px;
  height: 76px;
  margin: 0 auto 22px;
  border-radius: 18px;
  filter: drop-shadow(0 12px 22px rgba(11, 47, 176, 0.3));
}

.page-head h1 {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 6vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.page-head p {
  margin-top: 12px;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--text-2);
}

.page-head + .page {
  padding-top: 0;
}

/* Segmented control */
.segmented {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 4px;
  border-radius: 999px;
  background: var(--fill);
  box-shadow: inset 0 0 0 1px var(--hair);
}

.segmented button {
  position: relative;
  z-index: 1;
  height: 38px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 560;
  color: var(--text-2);
  transition: color 0.2s;
}

.segmented button[aria-selected="true"] {
  color: var(--text);
}

.segmented .thumb {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc((100% - 8px) / 3);
  border-radius: 999px;
  background: var(--glass-strong);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), 0 4px 14px -4px rgba(0, 0, 0, 0.18), inset 0 1px 0 var(--rim-a);
  transition: transform 0.35s cubic-bezier(0.3, 1.3, 0.5, 1);
}

@media (prefers-color-scheme: dark) {
  .segmented .thumb {
    background: rgba(255, 255, 255, 0.14);
  }
}

@media (max-width: 520px) {
  .segmented button {
    font-size: 13px;
    padding: 0 4px;
  }
}

.pane {
  margin-top: 28px;
}

.pane-text {
  color: var(--text-2);
  font-size: 15.5px;
  max-width: 62ch;
}

.pane-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.field {
  position: relative;
  margin-top: 18px;
}

.field svg {
  position: absolute;
  left: 16px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  color: var(--text-3);
  pointer-events: none;
}

.field input {
  width: 100%;
  height: 52px;
  padding: 0 18px 0 46px;
  border-radius: var(--radius-sm);
  border: 0;
  background: var(--fill);
  box-shadow: inset 0 0 0 1px var(--hair);
  font-size: 16px;
  outline: none;
  transition: box-shadow 0.2s;
}

.field input::placeholder {
  color: var(--text-3);
}

.field input:focus {
  box-shadow: inset 0 0 0 1px var(--hair), 0 0 0 4px color-mix(in srgb, var(--accent) 30%, transparent);
}

.field.mono input {
  font-family: var(--mono);
  font-size: 15px;
}

.hint {
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--text-3);
}

.detected {
  margin-top: 18px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--fill);
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-2);
  word-break: break-word;
}

.detected b {
  display: block;
  margin-bottom: 2px;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* How to find your device ID */
.howto {
  margin-top: 16px;
}

.howto summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: 14.5px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

.howto summary::-webkit-details-marker {
  display: none;
}

.howto summary::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.2s;
}

.howto[open] summary::after {
  transform: translateY(1px) rotate(-135deg);
}

.howto .group {
  margin-top: 14px;
}

.howto .row {
  align-items: flex-start;
}

.howto code {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--fill-hover);
  color: var(--text);
  font-size: 12.5px;
  word-break: break-all;
}

/* Result card */
.result {
  margin-top: 28px;
  padding: 22px;
  border-radius: 20px;
  background: var(--fill);
  box-shadow: inset 0 0 0 1px var(--hair);
  animation: pop 0.35s cubic-bezier(0.3, 1.3, 0.5, 1);
}

@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.98) translateY(6px);
  }
}

.result-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.result-icon {
  --c: var(--s-planned);
  flex: none;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: #fff;
  background: var(--c);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 8px 20px -6px var(--c);
}

.result-icon svg {
  width: 26px;
  height: 26px;
}

.result-icon[data-status="supported"] {
  --c: var(--s-supported);
}

.result-icon[data-status="launch"] {
  --c: var(--s-launch);
}

.result-icon[data-status="next"] {
  --c: var(--s-next);
}

.result-icon[data-status="unsupported"] {
  --c: var(--s-unsupported);
}

.result-icon[data-status="notyet"] {
  --c: var(--s-notyet);
}

.result-icon[data-status="unknown"] {
  --c: var(--s-unknown);
}

.result-title {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.result-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-top: 6px;
  font-size: 14px;
  color: var(--text-3);
}

.result-text {
  margin-top: 16px;
  color: var(--text-2);
  font-size: 15.5px;
  max-width: 64ch;
}

.result .group {
  background: var(--fill-hover);
}

.result .pane-actions {
  margin-top: 18px;
}

/* GPU list on the check page */
.gpu-list .row {
  min-height: 56px;
}

.gpu-list .row-desc {
  font-size: 13.5px;
}

.gpu-list .row-desc code {
  font-size: 12.5px;
}

@media (max-width: 520px) {
  .gpu-list .row {
    flex-wrap: nowrap;
  }
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

/* --- Reveal ---------------------------------------------------------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* --- Fallbacks ------------------------------------------------------------- */

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass {
    background: var(--glass-strong);
  }

  .glass.strong {
    background: var(--bg);
  }
}

@media (prefers-reduced-transparency: reduce) {
  .glass,
  .glass.strong {
    background: var(--bg);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Check page: device ID form + list headings */
.pci-form .field {
  flex: 1;
  min-width: 200px;
  margin-top: 0;
}

.list-heading {
  margin: 28px 0 0 4px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-2);
}

.list-heading + .group {
  margin-top: 10px;
}

/* --- Early access panel ---------------------------------------------------- */

.early-access {
  position: relative;
  margin-top: 22px;
  padding: 20px;
  border-radius: 18px;
  background:
    radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, #a77bff 22%, transparent), transparent 60%),
    radial-gradient(120% 140% at 100% 100%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 60%),
    var(--fill-hover);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 28%, transparent);
}

.ea-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ea-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(160deg, #b07bff, #5b5bff 55%, #2f6bff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 6px 16px -6px rgba(91, 91, 255, 0.7);
}

.ea-icon svg {
  width: 21px;
  height: 21px;
}

.ea-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.ea-sub {
  display: block;
  font-size: 13px;
  color: var(--text-3);
}

.ea-text {
  margin-top: 12px;
  font-size: 15px;
  color: var(--text-2);
  max-width: 62ch;
}

.early-access .pane-actions {
  margin-top: 16px;
}

/* --- Installer --------------------------------------------------------------- */

.installer {
  max-width: 1040px;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.steps-nav {
  position: sticky;
  top: calc(var(--nav-h) + 28px);
}

.steps-nav ol {
  display: grid;
  gap: 2px;
}

.steps-nav button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  text-align: left;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-2);
  transition: background-color 0.15s, color 0.15s;
}

.steps-nav button:hover {
  background: var(--fill);
  color: var(--text);
}

.steps-nav button[aria-current="step"] {
  background: var(--fill-hover);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--hair);
}

.step-num {
  flex: none;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 12.5px;
  font-weight: 650;
  color: var(--text-2);
  box-shadow: inset 0 0 0 1.5px var(--hair);
  background: var(--fill);
}

.step-num svg {
  display: none;
  width: 14px;
  height: 14px;
}

button[aria-current="step"] .step-num {
  color: #fff;
  background: linear-gradient(180deg, var(--accent-hi), var(--accent));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.is-done .step-num {
  color: #fff;
  background: linear-gradient(180deg, #5ddc72, #26b048);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.is-done .step-num .n {
  display: none;
}

.is-done .step-num svg {
  display: block;
}

.steps-progress {
  height: 4px;
  border-radius: 999px;
  background: var(--fill);
  box-shadow: inset 0 0 0 1px var(--hair);
  overflow: hidden;
}

.steps-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-hi), var(--accent));
  transition: width 0.45s cubic-bezier(0.3, 1, 0.5, 1);
}

.step-count {
  margin-top: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-3);
}

.step + .step {
  margin-top: 48px;
}

.step-title {
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  outline: none;
}

/* With JS, show one step at a time */
.js .installer .step {
  display: none;
  margin-top: 0;
}

.js .installer .step.is-current {
  display: block;
  animation: step-in 0.35s cubic-bezier(0.3, 1, 0.5, 1);
}

@keyframes step-in {
  from {
    opacity: 0;
    transform: translateX(10px);
  }
}

.step-controls {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--hair);
}

.step-controls .btn {
  min-width: 112px;
}

/* Sub-steps */
.substeps {
  counter-reset: sub;
  margin-top: 22px;
  display: grid;
  gap: 18px;
}

.substeps > li {
  counter-increment: sub;
  position: relative;
  padding-left: 40px;
  min-height: 26px;
}

.substeps > li::before {
  content: counter(sub);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 650;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 13%, transparent);
}

.substeps p {
  color: var(--text-2);
  font-size: 15.5px;
  padding-top: 1px;
}

.substeps p b,
.block-intro b {
  color: var(--text);
  font-weight: 600;
}

.substeps p + p,
.substeps .code + p {
  margin-top: 8px;
}

.installer code,
.pane-text code {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--fill-hover);
  color: var(--text);
  font-size: 0.86em;
}

kbd {
  display: inline-block;
  padding: 0 6px;
  border-radius: 6px;
  background: var(--fill-hover);
  box-shadow: inset 0 -1px 0 var(--hair), inset 0 0 0 1px var(--hair);
  font-family: var(--font);
  font-size: 0.85em;
  color: var(--text);
}

/* Code blocks with copy button */
.code {
  position: relative;
  display: block;
  margin-top: 10px;
  border-radius: 12px;
  background: color-mix(in srgb, #0b1030 88%, transparent);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.code pre {
  margin: 0;
  padding: 14px 76px 14px 16px;
  overflow-x: auto;
  color: #e7ebff;
  font-size: 13px;
  line-height: 1.6;
}

.installer .code code {
  padding: 0;
  background: none;
  color: inherit;
  font-size: inherit;
}

.copy {
  position: absolute;
  top: 9px;
  right: 9px;
  height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: #e7ebff;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  transition: background-color 0.15s;
}

.copy:hover {
  background: rgba(255, 255, 255, 0.18);
}

.copy.is-copied {
  color: #fff;
  background: #26b048;
}

/* Callout */
.callout {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  padding: 14px 16px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 20%, transparent);
  font-size: 14.5px;
  color: var(--text-2);
}

.callout svg {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  color: var(--accent);
}

/* Checklist with macOS-style checkboxes */
.checklist .row {
  cursor: pointer;
}

.checklist input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.check {
  flex: none;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: var(--fill-hover);
  box-shadow: inset 0 0 0 1.5px var(--hair), 0 1px 1px rgba(0, 0, 0, 0.06);
  transition: background-color 0.15s, box-shadow 0.15s;
}

.check::after {
  content: "";
  width: 10px;
  height: 5px;
  margin-top: -2px;
  border-left: 2.2px solid #fff;
  border-bottom: 2.2px solid #fff;
  transform: rotate(-45deg) scale(0.4);
  opacity: 0;
  transition: transform 0.2s cubic-bezier(0.3, 1.5, 0.5, 1), opacity 0.15s;
}

.checklist input:checked + .check {
  background: linear-gradient(180deg, var(--accent-hi), var(--accent));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.checklist input:checked + .check::after {
  opacity: 1;
  transform: rotate(-45deg) scale(1);
}

.checklist input:focus-visible + .check {
  outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent);
  outline-offset: 2px;
}

.checklist .row:hover {
  background: var(--fill-hover);
}

/* Code inside a troubleshooting row */
.row-body .code {
  margin-top: 10px;
}

/* Done screen */
.step-done {
  text-align: center;
  padding: 24px 0 8px;
}

.done-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(180deg, #5ddc72, #26b048);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 12px 28px -10px #26b048;
}

.done-icon svg {
  width: 36px;
  height: 36px;
}

.step-done .block-intro {
  margin-inline: auto;
}

.step-done .pane-actions {
  justify-content: center;
}

.page-note {
  max-width: 640px;
  margin: 20px auto 0;
  text-align: center;
  font-size: 13.5px;
  color: var(--text-2);
}

.steps-main {
  min-width: 0;
}

.installer :not(pre) > code {
  overflow-wrap: anywhere;
}

@media (max-width: 820px) {
  .installer {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .steps-nav {
    display: none;
  }
}
