:root {
  --bg: #050505;
  --ink: #f3f3f3;
  --muted: #8a8a8a;
  --line: #2a2a2a;
  --lime: #d6ff3c;
  --lime-2: #b6e020;
  color-scheme: dark;
  font-family: Archivo, "Avenir Next", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  overflow-x: clip;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { display: block; width: 100%; height: 100%; }
.transport > button svg,
.chapters-open svg { fill: currentColor; }
#back svg path,
#forward svg path { fill: none; stroke: currentColor; }

.flip {
  display: block;
  border: 0;
  padding: 0;
  background: none;
  perspective: 1400px;
  height: min(48dvh, 460px);
  aspect-ratio: 1288 / 2024;
  margin: 0 auto;
}
.flip-inner {
  display: grid;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.flip.is-flipped .flip-inner { transform: rotateY(180deg); }
.face {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  backface-visibility: hidden;
  box-shadow: 0 18px 40px rgb(0 0 0 / 55%);
}
.face.back { transform: rotateY(180deg); }

.stage {
  min-height: 100dvh;
  max-width: 460px;
  margin: 0 auto;
  display: grid;
  align-content: center;
  gap: 18px;
  padding: calc(16px + env(safe-area-inset-top)) 22px calc(14px + env(safe-area-inset-bottom));
}

.now { text-align: center; }
.now h1 {
  margin: 0;
  font-family: Anton, "Arial Black", Impact, sans-serif;
  font-weight: 400;
  font-size: clamp(1.8rem, 7vw, 2.4rem);
  letter-spacing: 0.01em;
  line-height: 0.95;
  text-transform: uppercase;
}
.now p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.scrub { display: grid; gap: 8px; }
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  margin: 0;
  border-radius: 99px;
  background: linear-gradient(to right, var(--lime) var(--p, 0%), #2c2c2c var(--p, 0%));
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 0;
}
input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 0;
}
.time {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.transport {
  display: grid;
  grid-template-columns: 1fr 1fr 1.3fr 1fr 1fr;
  align-items: center;
  justify-items: center;
}
.transport button {
  width: 48px;
  height: 48px;
  border: 0;
  padding: 10px;
  background: none;
}
.transport .play {
  width: 76px;
  height: 76px;
  padding: 22px;
  border-radius: 50%;
  background: var(--lime);
  color: #111;
}
.transport .play .icon-pause { display: none; }
.transport .play.is-playing .icon-play { display: none; }
.transport .play.is-playing .icon-pause { display: block; }

.speed {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.speed button {
  border: 0;
  background: #161616;
  color: var(--muted);
  padding: 9px 0;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}
.speed button.on {
  background: var(--lime);
  color: #111;
}

.chapters-open {
  justify-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-top: 1px solid var(--line);
  background: none;
  padding: 14px 0 4px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.78rem;
}
.chapters-open svg { width: 18px; height: 18px; }

.scrim {
  position: fixed;
  inset: 0;
  background: rgb(0 0 0 / 55%);
}
.scrim[hidden] { display: none; }
.drawer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  max-height: min(78dvh, 720px);
  display: flex;
  flex-direction: column;
  background: #101010;
  border-radius: 22px 22px 0 0;
  transform: translateY(105%);
  transition: transform 0.32s cubic-bezier(0.2, 0.85, 0.2, 1);
  padding-bottom: env(safe-area-inset-bottom);
}
.drawer.open { transform: translateY(0); }
.handle {
  flex: none;
  width: 100%;
  border: 0;
  background: none;
  padding: 16px 22px 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--lime);
}
.handle::before {
  content: "";
  display: block;
  width: 42px;
  height: 4px;
  margin: 0 auto 12px;
  border-radius: 99px;
  background: #3a3a3a;
}
ol {
  list-style: none;
  margin: 0;
  padding: 0 0 12px;
  overflow: auto;
}
li button {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: inherit;
  padding: 14px 22px;
  display: grid;
  grid-template-columns: 4.6rem 1fr;
  gap: 10px;
  align-items: baseline;
  cursor: pointer;
}
li button span {
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.04em;
}
li button strong {
  font-weight: 700;
  letter-spacing: -0.01em;
}
li.current button {
  background: #181808;
}
li.current button span,
li.current button strong { color: var(--lime); }

.landing {
  --type: "Courier Prime", "Courier New", Courier, monospace;
  width: min(1140px, 100%);
  margin: 0 auto;
  padding: calc(18px + env(safe-area-inset-top)) 28px 88px;
  position: relative;
}
.landing::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -18%;
  top: -220px;
  width: min(1280px, 145%);
  height: 1180px;
  background:
    radial-gradient(circle at 42% 46%, rgb(170 255 120 / 90%) 0%, rgb(70 230 90 / 55%) 16%, transparent 42%),
    radial-gradient(circle at 40% 48%, #2fbf55 0%, #147a34 34%, transparent 68%);
  filter: blur(8px);
  pointer-events: none;
}
.hero {
  display: grid;
  grid-template-columns: minmax(280px, 1.08fr) minmax(300px, 0.92fr);
  gap: 8px 20px;
  align-items: center;
}
.still { margin: 0; }
.still img {
  width: 100%;
  height: auto;
  display: block;
}

.pitch h1 {
  margin: 10px 0 0;
  font-family: Anton, "Arial Black", Impact, sans-serif;
  font-weight: 400;
  font-size: clamp(4rem, 7.4vw, 6.6rem);
  line-height: 0.82;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.pitch h1 em {
  font-style: normal;
  color: var(--lime);
}
.kicker, .by {
  margin: 0;
  color: var(--lime);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.by { color: var(--ink); margin-top: 14px; }
.login {
  margin-top: 26px;
  display: grid;
  gap: 12px;
  padding: 20px 18px 18px;
  background: #0c0c0c;
  border: 1px solid #2a2a2a;
  box-shadow: 8px 8px 0 var(--lime);
}
.hint {
  margin: 0 0 6px;
  color: var(--ink);
  font-family: var(--type);
  font-size: 1.02rem;
  line-height: 1.55;
}
.amazon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 4px;
  padding: 10px 14px;
  background: #fff;
  color: #111;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}
.amazon img { width: 92px; height: auto; display: block; }

.blurb {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 28px;
  padding-top: 36px;
  border-top: 1px solid #2a2a2a;
}
.blurb .mark {
  margin: 4px 0 0;
  font-family: Anton, Impact, sans-serif;
  font-size: 1.7rem;
  line-height: 0.85;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--lime);
}
.blurb .copy {
  margin: 0;
  max-width: 68ch;
  font-family: var(--type);
  font-size: 1.05rem;
  line-height: 1.7;
  color: #e8e8e8;
}

.reviews {
  margin-top: 56px;
  display: grid;
  gap: 26px;
}
.rating {
  display: grid;
  grid-template-columns: auto minmax(200px, 380px) minmax(160px, 1fr);
  gap: 12px 36px;
  align-items: center;
}
.quotes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.quotes li {
  display: grid;
  gap: 14px;
  align-content: start;
  margin: 0;
  padding: 18px 16px 20px;
  background: #101010;
  border-top: 3px solid var(--lime);
}
.quotes img {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px var(--lime);
}
.quotes .who {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin: 0;
}
.quotes .who strong {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.quotes .who span {
  color: var(--lime);
  letter-spacing: 0.08em;
  flex: none;
}
.quotes .meta {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.quotes .rtitle {
  margin: 12px 0 0;
  font-weight: 700;
  line-height: 1.3;
}
.quotes blockquote {
  margin: 10px 0 0;
  color: #e4e4e4;
  font-family: var(--type);
  font-size: 0.98rem;
  line-height: 1.55;
}
.quotes blockquote::before {
  content: "“";
  display: block;
  font-family: Anton, Impact, sans-serif;
  font-size: 2.8rem;
  line-height: 0.7;
  color: var(--lime);
}
.score {
  display: flex;
  align-items: center;
  gap: 14px;
}
.score strong {
  font-family: Anton, Impact, sans-serif;
  font-size: 4rem;
  font-weight: 400;
  line-height: 0.8;
}
.stars {
  margin: 0;
  color: var(--lime);
  letter-spacing: 0.12em;
  font-size: 1.1rem;
}
.score p:last-child { margin: 2px 0 0; color: var(--muted); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.75rem; }
.bars { display: grid; gap: 6px; }
.bars div { display: grid; grid-template-columns: 1rem 1fr 2.4rem; gap: 8px; align-items: center; font-size: 0.75rem; font-weight: 700; color: var(--muted); }
.bars i {
  display: block;
  height: 8px;
  background: linear-gradient(to right, var(--lime) var(--w), #222 var(--w));
}
.rating-copy { display: grid; gap: 8px; align-content: center; }
.review-note {
  margin: 0;
  color: var(--ink);
  font-family: var(--type);
  font-size: 0.95rem;
  line-height: 1.45;
}
.review-link { color: var(--lime); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.78rem; }

@media (max-width: 800px) {
  .landing::before {
    left: -55vw;
    top: -28vh;
    width: 150vw;
    height: 150vw;
  }
  .hero {
    grid-template-columns: minmax(112px, 34%) minmax(0, 1fr);
    gap: 16px 8px;
    align-items: center;
  }
  .pitch { display: contents; }
  .still { grid-column: 1; grid-row: 1; }
  .titles { grid-column: 2; grid-row: 1; min-width: 0; }
  .still img { max-width: none; width: 100%; margin: 0; }
  .pitch h1 { font-size: clamp(1.85rem, 8.6vw, 2.55rem); }
  .kicker { font-size: 0.68rem; letter-spacing: 0.14em; }
  .by { margin-top: 8px; font-size: 0.68rem; letter-spacing: 0.12em; }
  .login { grid-column: 1 / -1; margin-top: 4px; box-shadow: 5px 5px 0 var(--lime); }
  .blurb { grid-template-columns: 1fr; gap: 12px; }
  .rating { grid-template-columns: 1fr; }
  .quotes { grid-template-columns: 1fr; }
}
label {
  justify-self: stretch;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
input[type="password"] {
  justify-self: stretch;
  width: 100%;
  border: 0;
  border-bottom: 2px solid #f3f3f3;
  background: #050505;
  color: var(--ink);
  padding: 12px 10px;
  outline: none;
  font-size: 1.15rem;
  letter-spacing: 0.12em;
}
input[type="password"]:focus { border-bottom-color: var(--lime); }
button.primary {
  justify-self: stretch;
  border: 0;
  background: var(--lime);
  color: #111;
  padding: 16px 18px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.error { margin: 0; color: var(--lime); font-weight: 700; }
