@font-face {
  font-family: Ubuntu;
  src: url("/assets/fonts/ubuntu-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Ubuntu;
  src: url("/assets/fonts/ubuntu-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Ubuntu;
  src: url("/assets/fonts/ubuntu-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Ubuntu Mono";
  src: url("/assets/fonts/ubuntu-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Ubuntu Mono";
  src: url("/assets/fonts/ubuntu-mono-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --font-ubuntu: "Ubuntu", ui-sans-serif, system-ui, sans-serif;
  --font-ubuntu-mono: "Ubuntu Mono", ui-monospace, monospace;
  --font-sans: var(--font-ubuntu);
  --font-mono: var(--font-ubuntu-mono);
  --font-heading: var(--font-ubuntu);
  --ink: #0b0b0c;
  --ink-elev: #161618;
  --ink-high: #1c1c1f;
  --paper: #f4f0e6;
  --paper-deep: #f6f3ec;
  --paper-muted: #e8e2d4;
  --champagne: #c4a574;
  --bronze: #8f7344;
  --sage: #8a9a86;
  --bg: var(--ink);
  --fg: var(--paper);
  --elev: var(--ink-elev);
  --muted: color-mix(in srgb, var(--fg) 64%, transparent);
  --line: color-mix(in srgb, var(--fg) 12%, transparent);
  --btn-fg: var(--ink);
  --radius: 24px;
  --max: 1240px;
  --nav-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: light) {
  html:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: var(--paper-deep);
    --fg: #1a1916;
    --elev: #ebe6da;
    --muted: color-mix(in srgb, #1a1916 62%, transparent);
    --line: color-mix(in srgb, #1a1916 12%, transparent);
    --btn-fg: var(--paper);
  }
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: var(--paper-deep);
  --fg: #1a1916;
  --elev: #ebe6da;
  --muted: color-mix(in srgb, #1a1916 62%, transparent);
  --line: color-mix(in srgb, #1a1916 12%, transparent);
  --btn-fg: var(--paper);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: var(--ink);
  --fg: var(--paper);
  --elev: var(--ink-elev);
  --muted: color-mix(in srgb, var(--paper) 64%, transparent);
  --line: color-mix(in srgb, var(--paper) 12%, transparent);
  --btn-fg: var(--ink);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font-sans);
  background:
    radial-gradient(1200px 700px at 82% -8%, color-mix(in srgb, var(--champagne) 18%, transparent), transparent 55%),
    radial-gradient(900px 520px at -8% 8%, color-mix(in srgb, var(--sage) 10%, transparent), transparent 50%),
    var(--bg);
  color: var(--fg);
  line-height: 1.6;
  font-size: clamp(16px, 1.05vw, 18px);
}

a { color: inherit; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--champagne);
  color: var(--ink);
  padding: 0.75rem 1rem;
  z-index: 40;
}
.skip:focus { left: 1rem; top: 1rem; }

.wrap {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

@media (min-width: 1440px) {
  :root { --max: 1360px; }
}

.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(20px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--line);
  transition: min-height 220ms var(--ease);
}
.nav.is-compact { min-height: 64px; }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-height: 56px;
  flex: 0 0 auto;
}
.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
  object-position: center;
}
.brand span {
  font-family: var(--font-heading);
  font-size: 1.12rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  line-height: 1;
  transform: translateY(1px);
}
.nav-toggle {
  display: none;
  min-width: 56px;
  min-height: 56px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle-bars {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 18px;
  height: 12px;
}
.nav-toggle-bars i {
  display: block;
  height: 1.5px;
  border-radius: 99px;
  background: var(--fg);
}
.nav-panel {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  justify-content: flex-end;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-links a {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  text-decoration: none;
  color: var(--muted);
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--fg); }
.nav-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
}
.tool {
  position: relative;
}
.tool > summary {
  list-style: none;
  min-height: 56px;
  min-width: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  cursor: pointer;
  color: var(--muted);
}
.tool > summary::-webkit-details-marker { display: none; }
.tool[open] > summary { color: var(--fg); border-color: var(--champagne); }
.tool-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 200px;
  background: var(--elev);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 8px;
  box-shadow: 0 24px 60px color-mix(in srgb, #000 28%, transparent);
  z-index: 40;
}
.tool-menu a,
.tool-menu button {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  padding: 0 12px;
  border: 0;
  background: transparent;
  text-decoration: none;
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
}
.tool-menu a:hover,
.tool-menu button:hover,
.tool-menu a[aria-current="page"],
.tool-menu button[aria-pressed="true"] {
  background: color-mix(in srgb, var(--champagne) 14%, transparent);
}

.btn, .btn-ghost {
  min-height: 56px;
  min-width: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 18px;
  text-decoration: none;
  font-weight: 500;
  border: 0;
  cursor: pointer;
  transition: transform 220ms var(--ease), background 220ms var(--ease);
}
.btn {
  background: var(--champagne);
  color: var(--ink);
}
.btn-ghost {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--fg);
}
.btn:hover, .btn-ghost:hover { transform: translateY(-1px); }
.btn-nav { padding: 0 18px; }

.eyebrow {
  font-family: var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--champagne);
  font-weight: 700;
  margin: 0 0 16px;
}
h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 18px;
}
h1 { font-size: clamp(2.8rem, 7.2vw, 6.4rem); max-width: 13ch; }
h2 { font-size: clamp(2rem, 3.6vw, 3.6rem); max-width: 18ch; }
h3 { font-size: 1.45rem; }
.lede {
  max-width: 38rem;
  font-size: clamp(1.08rem, 1.5vw, 1.32rem);
  color: var(--muted);
  margin: 0;
}
.lede-wide { max-width: 44rem; }
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero {
  min-height: calc(100svh - var(--nav-h));
  display: grid;
  align-items: center;
  padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 8vw, 120px);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.hud {
  background: var(--elev);
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: clamp(20px, 2.4vw, 36px);
  box-shadow: 0 40px 80px color-mix(in srgb, #000 28%, transparent);
  container-type: inline-size;
  container-name: hud;
}
.hud-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 20px;
  gap: 12px;
}
.hud-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.tile {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px 18px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 84px;
  min-width: 0;
  opacity: 0;
  animation: rise 0.7s var(--ease) forwards;
}
.tile .who {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
  line-height: 1.2;
}
.tile .who .name {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tile .who small {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--champagne);
  font-weight: 500;
}
.tile:nth-child(1) { animation-delay: 0.08s; }
.tile:nth-child(2) { animation-delay: 0.16s; }
.tile:nth-child(3) { animation-delay: 0.24s; }
.tile:nth-child(4) { animation-delay: 0.32s; }
.tile.sel {
  border-color: var(--champagne);
  background: color-mix(in srgb, var(--champagne) 12%, transparent);
}
.score {
  font-family: var(--font-mono);
  font-size: clamp(1.85rem, 2.4vw, 2.5rem);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  flex-shrink: 0;
}

.band {
  padding: clamp(72px, 9vw, 128px) 0;
}
.band-alt {
  background: color-mix(in srgb, var(--elev) 72%, transparent);
  border-block: 1px solid var(--line);
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.split.reverse > :first-child { order: 2; }
.prose p {
  color: var(--muted);
  margin: 0 0 1.1rem;
  max-width: 40rem;
}
.icon-row {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}
.icon-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  align-items: start;
}
.icon-item .icon-wrap { margin-top: 2px; }
.icon {
  width: 28px;
  height: 28px;
  display: block;
  margin: 0;
  overflow: visible;
  stroke: var(--champagne);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-wrap {
  width: 56px;
  height: 56px;
  border: 1px solid var(--line);
  border-radius: 16px;
  display: grid;
  place-items: center;
  place-content: center;
  line-height: 0;
  flex: 0 0 auto;
  background: color-mix(in srgb, var(--champagne) 8%, transparent);
}
.steps .icon-wrap { margin-bottom: 0; }
.step-mark {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  min-height: 56px;
}
.step-num {
  font-family: var(--font-mono);
  color: var(--champagne);
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: -0.03em;
  min-width: 2.1ch;
}
.theme-glyph {
  width: 22px;
  height: 22px;
  display: block;
  overflow: visible;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
}
.steps li {
  background: var(--elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px 32px;
  min-height: 220px;
}

.game-stack { display: grid; gap: clamp(18px, 2vw, 28px); margin-top: 40px; }
.game-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  background: var(--elev);
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: clamp(24px, 3vw, 40px);
  min-height: 220px;
  transition: transform 220ms var(--ease), border-color 220ms var(--ease);
}
.game-panel:hover {
  transform: translateY(-2px);
  border-color: var(--champagne);
}
.game-panel:nth-child(even) { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
.game-panel:nth-child(even) .game-copy { order: 2; }
.kicker {
  font-family: var(--font-mono);
  color: var(--champagne);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.game-visual {
  min-height: 160px;
  border-radius: 22px;
  border: 1px solid var(--line);
  padding: 20px;
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--champagne) 16%, transparent), transparent 42%),
    var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.keypad-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(56px, 1fr));
  gap: 10px;
  width: 100%;
  max-width: 288px;
  margin-inline: auto;
  justify-content: center;
  justify-items: stretch;
  flex: 0 0 auto;
}
.keypad-preview.is-combo {
  grid-template-columns: repeat(3, minmax(72px, 1fr));
  max-width: 320px;
}
.key {
  font-family: var(--font-mono);
  min-height: 56px;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-variant-numeric: tabular-nums;
  text-align: center;
  padding: 6px 4px;
  font-size: 0.82rem;
  line-height: 1.15;
}
.keypad-preview:not(.is-combo) .key {
  font-size: 1.15rem;
  aspect-ratio: 1;
}
.key.accent { border-color: var(--champagne); color: var(--champagne); }

.prices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 40px;
}
.price-card {
  background: var(--elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.price-card.featured { border-color: var(--champagne); }
.price {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  margin: 4px 0 8px;
}
.badge {
  color: var(--champagne);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.faq {
  display: grid;
  gap: 0;
  margin-top: 32px;
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.25rem;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  width: 10px;
  height: 10px;
  margin-top: -4px;
  border-right: 1.5px solid var(--champagne);
  border-bottom: 1.5px solid var(--champagne);
  transform: rotate(45deg);
  flex: 0 0 auto;
}
.faq details[open] summary::after { transform: rotate(225deg); }
.faq p {
  color: var(--muted);
  margin: 0 0 24px;
  max-width: 46rem;
}

.close {
  text-align: center;
}
.close .lede { margin-inline: auto; }
.close .actions { justify-content: center; }

.product-frame {
  background: var(--elev);
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: 28px;
  min-height: 280px;
}
.product-frame.is-stage .kicker { margin: 0; }
.bars {
  display: grid;
  gap: 20px;
  width: 100%;
}
.bar-row {
  display: grid;
  gap: 10px;
}
.bar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 28px;
}
.bar-track {
  height: 8px;
  border-radius: 99px;
  background: var(--line);
  overflow: hidden;
}
.bar-track span {
  display: block;
  height: 100%;
  background: var(--champagne);
  border-radius: 99px;
}

.legal, .article {
  padding: clamp(48px, 6vw, 88px) 0 96px;
}
.legal .prose, .article .prose { max-width: 42rem; }
.crumb {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  margin-bottom: 28px;
  min-height: 56px;
}
.crumb a { color: var(--muted); min-height: 56px; display: inline-flex; align-items: center; }

.footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 56px;
  color: var(--muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 28px;
}
.footer a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  text-decoration: none;
}
.footer .langs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.footer .langs a[aria-current="page"] { color: var(--fg); }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 640ms var(--ease), transform 640ms var(--ease);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (max-width: 1099px) {
  :root { --max: 960px; }
  .prices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 719px) {
  .wrap, .nav-inner { width: min(100% - 32px, var(--max)); }
  .nav-toggle { display: inline-flex; }
  .nav-panel {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 12px 16px 20px;
    background: color-mix(in srgb, var(--bg) 94%, transparent);
    border-bottom: 1px solid var(--line);
  }
  .nav.is-open .nav-panel { display: flex; }
  .nav-links, .nav-tools { flex-direction: column; align-items: stretch; margin: 0; }
  .nav-tools .btn { width: 100%; }
  .tool-menu { position: static; box-shadow: none; }
  .hero { min-height: 0; padding-top: 40px; }
  h1 { font-size: clamp(2.4rem, 12vw, 3.4rem); }
  .hero-grid, .split, .game-panel, .game-panel:nth-child(even), .footer-grid,
  .prices, .steps {
    grid-template-columns: 1fr;
  }
  .game-panel:nth-child(even) .game-copy { order: 0; }
  .tile { padding: 14px 16px; min-height: 76px; }
  .score { font-size: 1.85rem; }
  .steps li { min-height: 0; }
}

@media (min-width: 1440px) {
  .hero-grid { gap: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .btn-ghost, .game-panel, .reveal, .tile, .nav { transition: none; animation: none; }
  .tile { opacity: 1; }
  .reveal { opacity: 1; transform: none; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
