:root {
  --steel-50: #eef1f4;
  --steel-100: #e2e7ec;
  --steel-200: #d3d9e0;
  --steel-300: #c3cbd4;
  --ink: #141b26;
  --ink-soft: #4f5966;
  --navy: #1b2738;
  --navy-mid: #142031;
  --navy-deep: #0b111b;
  --line-dark: rgba(255, 255, 255, 0.1);
  --text-dark: #c9d1dc;
  --text-dark-soft: #9aa6b5;
  --brass: #d98a1e;
  --brass-light: #ffd98a;
  --brass-ink: #8a520c;
  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --text: "Instrument Sans", system-ui, -apple-system, sans-serif;
  --measure: 34rem;
  --ease-draw: cubic-bezier(0.2, 0.9, 0.25, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--steel-50);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brass-ink); text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap { width: min(74rem, 100% - 2.5rem); margin-inline: auto; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: inherit;
  text-decoration: none;
  font: 800 1.55rem/1 var(--display);
  letter-spacing: 0.02em;
}
.brand img { width: 2.25rem; height: 2.25rem; }
.site-nav { display: flex; gap: 1.5rem; font-size: 0.95rem; }
.site-nav a { color: inherit; text-decoration: none; opacity: 0.85; }
.site-nav a:hover, .site-nav a[aria-current] { opacity: 1; text-decoration: underline; }

kbd {
  display: inline-block;
  min-width: 1.9em;
  padding: 0.08em 0.5em;
  border-radius: 0.42em;
  border: 1px solid var(--steel-300);
  border-bottom-width: 3px;
  background: #fff;
  color: var(--ink);
  font: 600 0.88em/1.45 var(--text);
  text-align: center;
}
.dark kbd {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.07);
  color: #f4f6f9;
}

.dark {
  background:
    radial-gradient(80rem 40rem at 78% 0%, rgba(217, 138, 30, 0.09), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #f4f6f9;
}

.hero { overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 3.5rem;
  align-items: center;
  padding-block: 2.5rem 6rem;
}
.hero h1 {
  margin: 0 0 1.5rem;
  font: 800 clamp(3.75rem, 9.5vw, 7.75rem)/0.86 var(--display);
  letter-spacing: -0.005em;
  text-wrap: balance;
}
.lede { margin: 0 0 2.25rem; max-width: 29rem; font-size: 1.2rem; color: var(--text-dark); }

.store-note {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem 1.2rem 0.85rem 1rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.04);
  color: #f4f6f9;
  font-weight: 600;
  line-height: 1.25;
}
.store-note small { display: block; font-weight: 400; color: var(--text-dark-soft); }

.get-app { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; }
.store-badge { display: inline-block; line-height: 0; border-radius: 0.7rem; }
.store-badge img { height: 3rem; width: auto; }
.get-app-note { color: var(--text-dark-soft); }

.stage {
  position: relative;
  aspect-ratio: 16 / 11;
  border-radius: 1.1rem;
  background:
    radial-gradient(60% 70% at 30% 20%, rgba(98, 126, 168, 0.35), transparent 70%),
    radial-gradient(50% 60% at 85% 90%, rgba(217, 138, 30, 0.16), transparent 70%),
    #121b29;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 2.5rem 5rem -1.5rem rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
  cursor: crosshair;
  touch-action: none;
  user-select: none;
}
.stage-bar {
  position: absolute;
  inset: 0 0 auto;
  height: 1.6rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-inline: 0.9rem;
  background: rgba(10, 15, 24, 0.55);
  font-size: 0.72rem;
  color: var(--text-dark-soft);
}
.stage-bar b { color: #f4f6f9; font-weight: 600; }
.stage-bar .holster-mark { margin-left: auto; width: 0.85rem; height: 0.85rem; }

.win {
  position: absolute;
  border-radius: 0.6rem;
  background: linear-gradient(180deg, #273347, #1f2a3b);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 1rem 2rem -1rem rgba(0, 0, 0, 0.55);
  transition: transform 0.4s var(--ease-draw), background 0.3s, border-color 0.3s;
}
.win::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background:
    radial-gradient(circle at 0.75rem 50%, #ff5f57 0.22rem, transparent 0.26rem),
    radial-gradient(circle at 1.45rem 50%, #febc2e 0.22rem, transparent 0.26rem),
    radial-gradient(circle at 2.15rem 50%, #28c840 0.22rem, transparent 0.26rem);
  opacity: 0.8;
}
.win-back { left: 6%; top: 18%; width: 46%; height: 52%; }
.win-mid { right: 7%; top: 26%; width: 42%; height: 46%; }
.win-front {
  left: 22%;
  top: 38%;
  width: 52%;
  height: 52%;
  background: linear-gradient(180deg, #33415a, #29354a);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 1.5rem 3rem -1rem rgba(0, 0, 0, 0.7);
}
.win-front.is-raised { transform: translateY(-0.4rem); }
.win-title {
  position: absolute;
  top: 0.2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-dark);
}
.win-accent {
  position: absolute;
  left: 1rem;
  right: 1rem;
  top: 2.4rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--accent, rgba(255, 255, 255, 0.15));
  transition: background 0.3s;
}
.win-lines {
  position: absolute;
  left: 1rem;
  right: 35%;
  top: 3.6rem;
  height: 3.2rem;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.09) 0 0.3rem, transparent 0.3rem 0.85rem);
  border-radius: 0.2rem;
}

.ring-layer {
  position: absolute;
  left: 50%;
  top: 54%;
  width: 62%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%) scale(0.72);
  opacity: 0;
  transition: transform 0.2s var(--ease-draw), opacity 0.16s;
  pointer-events: none;
}
.ring-layer.is-open { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.ring-layer svg { width: 100%; height: 100%; overflow: visible; }
.disc { fill: rgba(12, 18, 28, 0.62); stroke: rgba(255, 255, 255, 0.14); }
.sector { fill: rgba(255, 255, 255, 0.04); stroke: rgba(255, 255, 255, 0.1); transition: fill 0.12s, stroke 0.12s; }
.sector.is-on { fill: rgba(217, 138, 30, 0.3); stroke: var(--brass); stroke-width: 1.5; }
.sector.is-target { stroke: rgba(255, 217, 138, 0.55); stroke-dasharray: 4 4; }
.tile { transition: transform 0.16s var(--ease-draw); transform-box: fill-box; transform-origin: center; }
.tile.is-on { transform: scale(1.18); }
.tile-ring { fill: none; stroke: var(--brass-light); stroke-width: 3; opacity: 0; transition: opacity 0.12s; }
.tile.is-on .tile-ring { opacity: 1; }
.twelve { fill: var(--brass); }

.ring-label {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: rgba(8, 12, 19, 0.85);
  font-weight: 600;
  font-size: clamp(0.72rem, 1.6vw, 0.92rem);
  white-space: nowrap;
  color: #f4f6f9;
}
.ring-label:empty { display: none; }
.ring-label.is-time { color: var(--brass-light); font-variant-numeric: tabular-nums; }

.keypress {
  position: absolute;
  right: 4%;
  bottom: 6%;
  display: flex;
  gap: 0.35rem;
  opacity: 0;
  transform: translateY(0.4rem);
  transition: opacity 0.15s, transform 0.15s;
  font-size: 0.85rem;
}
.keypress.is-on { opacity: 1; transform: none; }
.mousepress { align-items: center; padding: 0.3rem 0.6rem; border-radius: 0.5rem; background: rgba(11, 17, 27, 0.7); border: 1px solid rgba(255, 255, 255, 0.16); color: #f4f6f9; font-weight: 600; }
.mousepress svg { width: 0.8rem; height: 1.1rem; }

.cursor {
  position: absolute;
  left: 0;
  top: 0;
  width: 1.15rem;
  height: 1.15rem;
  transition: transform 0.55s var(--ease-draw);
  pointer-events: none;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6));
}
.cursor.is-flick { transition-duration: 0.24s; }
.cursor.is-hidden { opacity: 0; }
.cursor.is-click { filter: drop-shadow(0 0 0.3rem var(--brass-light)) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6)); }

.stage-caption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 1rem 0.25rem 0;
  font-size: 0.9rem;
  color: var(--text-dark-soft);
}
.stage-caption b { color: var(--brass-light); font-weight: 600; font-variant-numeric: tabular-nums; }

section { padding-block: 6rem; }
.section-head { display: grid; gap: 1rem; margin-bottom: 3rem; max-width: 40rem; }
section h2 {
  margin: 0;
  font: 800 clamp(2.6rem, 5.5vw, 4.25rem)/0.92 var(--display);
  text-wrap: balance;
}
.section-head p { margin: 0; color: var(--ink-soft); font-size: 1.15rem; }
.dark .section-head p { color: var(--text-dark); }

.band { background: #fff; border-block: 1px solid var(--steel-200); }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
  counter-reset: step;
}
.steps li { counter-increment: step; padding-top: 1.25rem; border-top: 2px solid var(--ink); }
.steps li::before {
  content: counter(step);
  display: block;
  font: 800 4rem/0.9 var(--display);
  color: var(--brass-ink);
  margin-bottom: 0.75rem;
}
.steps h3 { margin: 0 0 0.45rem; font-size: 1.2rem; }
.steps p { margin: 0; color: var(--ink-soft); }

.facts {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
}
.facts div { padding-top: 1rem; border-top: 2px solid var(--ink); }
.facts svg { width: 1.6rem; height: 1.6rem; color: var(--brass-ink); margin-bottom: 0.6rem; }
.facts dt { font-weight: 700; font-size: 1.1rem; }
.facts dd { margin: 0.35rem 0 0; color: var(--ink-soft); }

.buy { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem; }
.buy-option { display: flex; flex-direction: column; align-items: flex-start; padding-top: 1.25rem; border-top: 2px solid var(--ink); }
.buy-option h3 { margin: 0; font-size: 1.2rem; }
.buy-option p { margin: 0 0 1.5rem; max-width: 30rem; color: var(--ink-soft); }
.buy-option .price { margin: 0.4rem 0 1rem; color: var(--ink); font-size: 1.15rem; }
.price b { margin-right: 0.2rem; font: 800 4.5rem/0.9 var(--display); color: var(--brass-ink); }
.buy-option .buy-note { margin: 1rem 0 0; font-size: 0.92rem; }
.button {
  display: inline-flex;
  align-items: center;
  height: 3rem;
  padding: 0 1.6rem;
  border: 0;
  border-radius: 0.7rem;
  background: var(--brass);
  color: var(--navy-deep);
  font: 700 1.05rem/1 var(--text);
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: var(--brass-light); color: var(--navy-deep); }
.get-app-direct { color: var(--brass-light); font-weight: 600; }
.get-app-direct:hover { color: #fff; }
.finale p a { color: var(--brass-light); }

.finale { text-align: center; overflow: hidden; }
.finale .cylinder { width: min(16rem, 60vw); height: auto; margin: 0 auto 2rem; display: block; will-change: transform; }
.finale h2 { margin-bottom: 1.25rem; }
.finale p { margin: 0 auto 2rem; max-width: 30rem; color: var(--text-dark); }
.finale .get-app { justify-content: center; margin-bottom: 1.5rem; }

.page { padding-block: 3rem 6rem; }
.thanks-steps { margin-bottom: 1rem; }
.thanks-steps .button { margin-top: 1.25rem; }
.key-field { display: flex; gap: 0.75rem; max-width: 44rem; }
.key-field input {
  flex: 1;
  min-width: 0;
  height: 3rem;
  padding: 0 1rem;
  border: 1px solid var(--steel-300);
  border-radius: 0.7rem;
  background: #fff;
  color: var(--ink);
  font: 600 0.95rem/1 var(--text);
  font-variant-numeric: tabular-nums;
}
.key-status { min-height: 1.6em; margin: 0.5rem 0 0; color: var(--ink-soft); }
.page h1 { margin: 0 0 0.5rem; font: 800 clamp(3.25rem, 8vw, 5.5rem)/0.9 var(--display); }
.page .meta { color: var(--ink-soft); margin: 0 0 3rem; font-size: 1.1rem; }
.page h2 { margin: 3rem 0 0.75rem; font: 700 1.75rem/1.05 var(--display); letter-spacing: 0.01em; }
.page p, .page li { max-width: var(--measure); }
.page ul { padding-left: 1.2rem; }
.page code { font-size: 0.92em; background: var(--steel-100); padding: 0.05em 0.35em; border-radius: 0.3em; }
.faq { margin: 0; display: grid; gap: 0.25rem; }
.faq div { padding-block: 1.4rem; border-top: 1px solid var(--steel-300); max-width: 44rem; }
.faq dt { font-weight: 700; font-size: 1.1rem; }
.faq dd { margin: 0.4rem 0 0; color: var(--ink-soft); }
.contact-card {
  margin-top: 1rem;
  padding: 1.5rem 1.75rem;
  border-radius: 1rem;
  background: var(--navy-mid);
  color: #f4f6f9;
  max-width: 40rem;
}
.contact-card a { color: var(--brass-light); }
.contact-card p { margin: 0 0 0.6rem; }
.contact-card p:last-child { margin: 0; color: var(--text-dark-soft); }

.site-footer {
  padding-block: 2.5rem;
  border-top: 1px solid var(--steel-300);
  color: var(--ink-soft);
  font-size: 0.9rem;
}
.dark + .site-footer { border-top: 0; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.site-footer nav { display: flex; gap: 1.25rem; }
.site-footer a { color: inherit; }
.site-footer .more-apps { display: block; padding-bottom: 2.5rem; margin-bottom: 2.5rem; border-bottom: 1px solid var(--steel-300); }
.more-apps h2 { margin: 0 0 1.25rem; font: 700 1.5rem/1.05 var(--display); letter-spacing: 0.01em; color: var(--ink); }
.more-apps h2 a { color: var(--brass-ink); }
.more-apps h2 a:hover { color: var(--ink); }
.more-apps ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.app-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  height: 100%;
  padding: 1rem;
  border-radius: 0.9rem;
  border: 1px solid var(--steel-200);
  background: #fff;
  text-decoration: none;
  line-height: 1.35;
  transition: border-color 0.15s, transform 0.15s var(--ease-draw), box-shadow 0.15s;
}
.app-card:hover { color: inherit; border-color: var(--brass); transform: translateY(-2px); box-shadow: 0 0.6rem 1.2rem -0.8rem rgba(20, 27, 38, 0.35); }
.app-card:focus-visible { border-radius: 0.9rem; }
.app-card img { width: 2.5rem; height: 2.5rem; flex: none; border-radius: 22.5%; }
.app-card b { display: block; color: var(--ink); font-weight: 700; font-size: 1rem; }
.app-card span span { color: var(--ink-soft); }

@media (max-width: 56rem) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); padding-block: 1.5rem 4rem; gap: 2.5rem; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .more-apps ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .buy { grid-template-columns: minmax(0, 1fr); }
  .key-field { flex-direction: column; }
  section { padding-block: 4rem; }
}
@media (max-width: 34rem) {
  .facts { grid-template-columns: minmax(0, 1fr); }
  .app-card { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
  .stage-bar span:not(:first-child) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

.cookie-notice {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: min(30rem, calc(100% - 2rem));
  padding: 0.85rem 0.85rem 0.85rem 1.2rem;
  border: 1px solid var(--line-dark);
  border-radius: 0.7rem;
  background: var(--navy-deep);
  color: var(--text-dark);
  font-size: 0.92rem;
  line-height: 1.45;
}
.cookie-notice p { margin: 0; }
.cookie-notice a { color: var(--brass-light); }
.cookie-notice a:hover { color: #fff; }
.cookie-notice button {
  flex: none;
  height: 2.4rem;
  padding: 0 1rem;
  border: 0;
  border-radius: 0.5rem;
  background: var(--brass);
  color: var(--navy-deep);
  font: 700 0.92rem/1 var(--text);
  cursor: pointer;
}
.cookie-notice button:hover { background: var(--brass-light); }
@media print { .cookie-notice { display: none; } }
