/* ===== Couch Rush page ===== */

:root {
  --wood: #d9903f;
  --wood-dark: #b8702a;
  --wood-light: #f0b26a;
  --chalk: #f5efe3;
  --chalk-blue: #7fc4ea;
  --chalk-pink: #f39ac9;
  --cream: #fff7ec;
}

body.cr { background: var(--cream); }

.cr .nav { background: rgba(43, 35, 80, 0.86); border-bottom-color: #1c1738; }
.cr .nav-brand, .cr .nav-links a { color: #fff; }
.cr .nav-links a:hover { color: var(--yellow); }
.cr .nav-links a.nav-cta { color: var(--ink); border-color: #1c1738; box-shadow: 0 3px 0 #1c1738; }
.cr .nav-links a.nav-cta:hover { color: var(--ink); }

/* ---------- hero ---------- */

.cr-hero {
  position: relative;
  min-height: min(100svh, 920px);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  isolation: isolate;
}

.cr-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.cr-hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(43,35,80,0.55) 0%, rgba(43,35,80,0) 30%, rgba(43,35,80,0) 45%, rgba(43,35,80,0.82) 100%),
    linear-gradient(90deg, rgba(43,35,80,0.5), transparent 55%),
    radial-gradient(ellipse at 20% 100%, rgba(43,35,80,0.6), transparent 60%);
  pointer-events: none;
}

.cr-hero-inner {
  position: relative;
  z-index: 2;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 7rem clamp(1.25rem, 5vw, 3rem) clamp(4.5rem, 9vh, 7rem);
}

.cr-kicker {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 100%;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1rem;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--yellow);
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  padding: 0.3rem 1rem;
  box-shadow: 0 3px 0 var(--ink);
  transform: rotate(-1.5deg);
}

.cr-hero-pause {
  position: absolute;
  left: clamp(1.25rem, 5vw, 3rem);
  bottom: clamp(1.6rem, 4vh, 2.6rem);
  z-index: 3;
  font: 700 0.78rem/1 var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(43,35,80,0.55);
  border: 2px solid rgba(255,255,255,0.8);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  cursor: pointer;
  min-height: 44px;
}

.cr-hero-pause:hover { background: rgba(43,35,80,0.85); }

.cr-kicker .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 3px rgba(255,93,93,0.35); animation: pulse 1.6s ease-in-out infinite; }

.cr-title {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 0.86;
  margin: 0;
  font-size: clamp(4.2rem, 15vw, 11.5rem);
  letter-spacing: -0.01em;
  color: #fff;
  text-shadow:
    0 2px 0 rgba(0,0,0,0.12),
    0 10px 30px rgba(20, 12, 50, 0.45);
}

.cr-title-line { display: block; }

.cr-title-rush {
  color: var(--yellow);
  position: relative;
  width: fit-content;
  transform: rotate(-2.5deg);
  transform-origin: left bottom;
  padding-right: 0.08em;
}

.cr-title-rush::after {
  content: "";
  position: absolute;
  left: 0.02em;
  right: 0.06em;
  bottom: -0.02em;
  height: 0.16em;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20" preserveAspectRatio="none"><path d="M0 12 Q 12 2 25 12 T 50 12 T 75 12 T 100 12" fill="none" stroke="%23f5efe3" stroke-width="7" stroke-linecap="round"/></svg>') repeat-x;
  background-size: 0.7em 100%;
  opacity: 0.95;
}

.cr-tagline {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.35rem, 3vw, 2.1rem);
  line-height: 1.2;
  margin: 1.4rem 0 1.8rem;
  max-width: 22em;
  text-shadow: 0 2px 12px rgba(20, 12, 50, 0.5);
}

.cr-tagline em { font-style: normal; color: var(--yellow); }

.cr-hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }

.cr-hero .btn-ghost { background: rgba(255,255,255,0.92); }

/* little toy cars driving along the bottom edge */

.cr-hero-cars { position: absolute; left: 0; right: 0; bottom: 1.1rem; height: 26px; z-index: 2; pointer-events: none; overflow: hidden; }

.car {
  position: absolute;
  bottom: 6px;
  width: 34px;
  height: 16px;
  border-radius: 6px 9px 4px 4px;
  border: 2.5px solid var(--ink);
  animation: drive 9s linear infinite;
  opacity: 0.95;
}

.car::before, .car::after {
  content: "";
  position: absolute;
  bottom: -7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink);
}

.car::before { left: 3px; }
.car::after { right: 3px; }

.car-red    { background: var(--coral);  animation-delay: 0s; }
.car-green  { background: var(--teal);   animation-delay: -2.2s; }
.car-purple { background: var(--purple); animation-delay: -4.6s; }
.car-yellow { background: var(--yellow); animation-delay: -6.9s; }

@keyframes drive {
  from { left: -60px; }
  to { left: calc(100% + 60px); }
}

.cr-scroll {
  position: absolute;
  right: clamp(1.25rem, 5vw, 3rem);
  bottom: clamp(1.6rem, 4vh, 2.6rem);
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2.5px solid #fff;
  display: grid;
  place-items: center;
  animation: bob 1.8s ease-in-out infinite;
}

.cr-scroll span {
  width: 10px;
  height: 10px;
  border-right: 2.5px solid #fff;
  border-bottom: 2.5px solid #fff;
  transform: translateY(-3px) rotate(45deg);
}

@keyframes bob { 50% { translate: 0 6px; } }

/* ---------- generic section bits ---------- */

.cr-section { padding: clamp(3.5rem, 8vw, 6.5rem) 1.5rem; }
.cr-inner { max-width: 1100px; margin: 0 auto; }

.cr-h2 {
  text-wrap: balance;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  font-weight: 600;
  max-width: 24em;
  margin-bottom: 0.7em;
}

.cr-h2-center { margin-left: auto; margin-right: auto; text-align: center; }
.cr-h2-center .h2-tag { margin-left: auto; margin-right: auto; }

.cr-sub { color: var(--ink-soft); margin: -0.4rem 0 2rem; }

/* ---------- pitch ---------- */

.cr-pitch { text-align: center; padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }

.cr-lede {
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  line-height: 1.55;
  max-width: 40em;
  margin: 0 auto 2.4rem;
  color: var(--ink-soft);
}

.cr-lede strong { color: var(--ink); font-family: var(--font-display); font-weight: 600; }

.cr-stats {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.cr-stats li {
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 18px;
  padding: 0.7rem 1.3rem;
  min-width: 150px;
  box-shadow: 0 5px 0 var(--ink);
  display: grid;
  gap: 0.1rem;
}

.cr-stats li:nth-child(odd) { transform: rotate(-1.2deg); }
.cr-stats li:nth-child(even) { transform: rotate(1.2deg); }

.cr-stats b { font-family: var(--font-display); font-size: 2rem; line-height: 1; color: var(--coral); }
.cr-stats li:nth-child(2) b { color: var(--blue); }
.cr-stats li:nth-child(3) b { color: var(--purple); }
.cr-stats li:nth-child(4) b { color: #1a9b8d; }
.cr-stats span { font-size: 0.85rem; font-weight: 700; color: var(--ink-soft); }

/* ---------- how it plays ---------- */

.cr-how { background: var(--ink); color: #f4f1ff; }
.cr-how .cr-h2 { color: #fff; }

.cr-how-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
  margin-top: 1rem;
}

.cr-sim-wrap { position: sticky; top: 5rem; }

.cr-sim-frame {
  position: relative;
  border: 3px solid #1c1738;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 8px 10px 0 var(--yellow), 8px 10px 0 3px #1c1738;
  background: var(--wood);
}

.cr-sim { display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; }

.cr-sim-status {
  position: absolute;
  right: 1rem;
  bottom: 0.9rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--ink);
  background: var(--chalk);
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  padding: 0.2rem 0.75rem;
}

.cr-sim-label {
  position: absolute;
  left: 1rem;
  top: 0.9rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--chalk);
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  padding: 0.2rem 0.75rem;
  transform: rotate(-2deg);
}

.cr-sim-cap { color: #b7b0dd; font-size: 0.92rem; margin: 1rem 0 0; }

.cr-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.6rem; }

.cr-steps li { display: grid; grid-template-columns: 48px 1fr; gap: 1rem; align-items: start; }

.cr-step-n {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--yellow);
  border: 2.5px solid #1c1738;
  box-shadow: 0 3px 0 #1c1738;
  transform: rotate(-4deg);
}

.cr-steps li:nth-child(2) .cr-step-n { background: var(--coral); color: #fff; transform: rotate(5deg); }
.cr-steps li:nth-child(3) .cr-step-n { background: var(--teal); transform: rotate(-6deg); }
.cr-steps li:nth-child(4) .cr-step-n { background: var(--blue); color: #fff; transform: rotate(3deg); }

.cr-steps h3 { font-size: 1.3rem; font-weight: 600; margin: 0.35rem 0 0.3rem; color: #fff; }
.cr-steps p { margin: 0; color: #cdc7ef; }
.cr-steps b { color: var(--yellow); }

/* ---------- screenshots ---------- */

.cr-shots { background: var(--bg-alt); }

.cr-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-flow: dense;
  align-items: start;
  gap: 1.4rem;
}

.shot {
  position: relative;
  display: block;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 14px;
  padding: 8px 8px 2.2rem;
  box-shadow: 0 8px 0 -3px rgba(43, 35, 80, 0.16);
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.2s, box-shadow 0.2s;
}

.shot:nth-child(3n+1) { transform: rotate(-0.8deg); }
.shot:nth-child(3n+2) { transform: rotate(0.6deg); }
.shot:nth-child(3n)   { transform: rotate(-0.4deg); }

.shot:hover, .shot:focus-visible { transform: rotate(0) translateY(-6px) scale(1.01); box-shadow: 0 16px 0 -6px rgba(43, 35, 80, 0.2); z-index: 1; outline: none; }

.shot-wide { grid-column: span 2; grid-row: span 2; }
.shot-wide ~ .shot-wide { grid-column: 2 / span 2; }

.shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  background: var(--wood);
}

.shot-cap {
  position: absolute;
  left: 8px;
  bottom: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.shot-cap::before { content: "→ "; color: var(--coral); }

/* ---------- the track ---------- */

.cr-track {
  color: var(--chalk);
  background:
    repeating-linear-gradient(90deg, rgba(0,0,0,0) 0 118px, rgba(60, 30, 5, 0.12) 118px 121px),
    linear-gradient(180deg, var(--wood-light), var(--wood) 45%, #cf8535);
  position: relative;
}


.cr-track-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.cr-track { color: var(--ink); }
.cr-track .cr-h2 { color: var(--ink); }
.cr-track-copy p { color: var(--ink); font-size: 1.08rem; }

.cr-track-list { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: 0.85rem; }
.cr-track-list li { display: grid; grid-template-columns: 22px 1fr; gap: 0.8rem; align-items: start; color: var(--ink); }
.cr-track-list b { color: #1c1738; }

.sw { display: inline-block; width: 22px; height: 22px; border-radius: 6px; border: 2.5px solid rgba(60, 30, 5, 0.55); margin-top: 0.15rem; }
.sw-white { background: var(--chalk); }
.sw-blue { background: var(--chalk-blue); }
.sw-pink { background: var(--chalk-pink); }
.sw-brick { background: linear-gradient(135deg, var(--coral) 50%, var(--blue) 50%); }

.cr-plan {
  margin: 0;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 14px;
  padding: 8px 8px 0.5rem;
  box-shadow: 0 10px 0 -3px rgba(60, 30, 5, 0.35);
  transform: rotate(1deg);
}

.cr-plan img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; }

.cr-plan figcaption, .cr-strip figcaption {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  font-size: 0.95rem;
  padding: 0.5rem 0.2rem 0;
}

.cr-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.cr-strip figure {
  margin: 0;
  background: #fff;
  border: 2.5px solid var(--ink);
  border-radius: 10px;
  padding: 5px 5px 0.3rem;
  box-shadow: 0 6px 0 -2px rgba(60, 30, 5, 0.35);
}

.cr-strip figure:nth-child(odd) { transform: rotate(-1.5deg); }
.cr-strip figure:nth-child(even) { transform: rotate(1.5deg); }
.cr-strip img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; }
.cr-strip figcaption { font-size: 0.8rem; text-align: center; }

/* ---------- controls ---------- */

.cr-ctl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.4rem;
  margin-top: 2rem;
}

.cr-ctl {
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow);
  text-align: center;
}

.cr-ctl-key { display: flex; justify-content: center; gap: 0.5rem; margin-bottom: 0.9rem; }

.cr-ctl-key span {
  display: grid;
  place-items: center;
  min-width: 48px;
  height: 48px;
  padding: 0 0.6rem;
  border-radius: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--ink);
  background: var(--bg-alt);
  border: 2.5px solid var(--ink);
  box-shadow: 0 4px 0 var(--ink);
}

.cr-ctl-key .key-a, .cr-ctl-key .key-b { border-radius: 50%; }

.cr-ctl h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.3rem; }
.cr-ctl p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }

/* ---------- playtest ---------- */

.cr-cta { background: var(--bg-alt); }

.cr-cta-card {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 4vw, 2.8rem);
  box-shadow: 8px 10px 0 var(--teal), 8px 10px 0 3px var(--ink);
}

.cr-cta-card p { color: var(--ink-soft); max-width: 40em; }
.cr-cta-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 1.4rem; }

.cr-cta-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }

.cr-cta-facts li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 2px dashed rgba(43, 35, 80, 0.2);
  padding-bottom: 0.6rem;
}

.cr-cta-facts b { flex-shrink: 0; white-space: nowrap; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); padding-top: 0.2rem; }
.cr-cta-facts span { font-weight: 700; text-align: right; }

/* ---------- lightbox ---------- */

.cr-lightbox[hidden] { display: none; }

.cr-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(20, 14, 45, 0.92);
  display: grid;
  place-items: center;
  padding: 1rem;
}

.cr-lightbox figure { margin: 0; max-width: min(1400px, 96vw); text-align: center; }
.cr-lightbox img { max-width: 100%; max-height: 82vh; border-radius: 12px; border: 3px solid #fff; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.cr-lightbox figcaption { color: #f4f1ff; font-weight: 600; margin-top: 0.9rem; font-size: 1.02rem; }

.cr-lightbox button {
  position: absolute;
  font: 700 2rem/1 var(--font-display);
  color: var(--ink);
  background: var(--yellow);
  border: 2.5px solid var(--ink);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  cursor: pointer;
  box-shadow: 0 3px 0 var(--ink);
}

.cr-lb-close { top: 1rem; right: 1rem; }
.cr-lb-prev { left: 1rem; top: 50%; translate: 0 -50%; }
.cr-lb-next { right: 1rem; top: 50%; translate: 0 -50%; }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .cr-how-grid, .cr-track-grid, .cr-cta-card { grid-template-columns: 1fr; }
  .cr-sim-wrap { position: static; }
  .cr-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cr-gallery .shot-wide, .cr-gallery .shot-wide ~ .shot-wide { grid-column: 1 / span 2; grid-row: auto; }
}

@media (max-width: 600px) {
  .cr-gallery { grid-template-columns: 1fr; }
  .cr-gallery .shot-wide, .cr-gallery .shot-wide ~ .shot-wide { grid-column: auto; grid-row: auto; }
  .cr-stats li { flex: 1 1 calc(50% - 0.5rem); min-width: 0; }
  .cr-kicker .dot, .cr-kicker .kicker-2 { display: none; }
  .cr-sim-status { font-size: 0.75rem; }
  .cr-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cr-hero-inner { padding-top: 5.5rem; }
  .cr-lb-prev { left: 0.4rem; }
  .cr-lb-next { right: 0.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  .car, .cr-scroll, .cr-hero-pause {
  position: absolute;
  left: clamp(1.25rem, 5vw, 3rem);
  bottom: clamp(1.6rem, 4vh, 2.6rem);
  z-index: 3;
  font: 700 0.78rem/1 var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(43,35,80,0.55);
  border: 2px solid rgba(255,255,255,0.8);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  cursor: pointer;
  min-height: 44px;
}

.cr-hero-pause:hover { background: rgba(43,35,80,0.85); }

.cr-kicker .dot { animation: none; }
}
