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

:root {
  --chalk: #eceef1;
  --chalk-deep: #dfe2e7;
  --ink: #161b26;
  --slate: #5f6878;
  --glass: #0f1e2e;
  --cue: #f2c14e;
  --tally: #e5352b;

  --display: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", "Verdana", system-ui, sans-serif;

  --gutter: clamp(20px, 5vw, 72px);
  --max: 1240px;
}

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

body {
  margin: 0;
  background: var(--chalk);
  color: var(--ink);
  font: 400 1.125rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--cue);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
p { margin: 0; max-width: 62ch; }

main > section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(56px, 9vw, 120px) var(--gutter) 0;
}

/* The on-air light: the one red thing on the page. */
.tally {
  display: inline-block;
  width: 0.6em;
  height: 0.6em;
  border-radius: 50%;
  background: var(--tally);
  box-shadow: 0 0 0 0.18em rgba(229, 53, 43, 0.18);
}

/* ============ Top bar ============ */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px var(--gutter);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.125rem;
  text-decoration: none;
}
.wordmark .by { font-weight: 500; color: var(--slate); }
.topbar-link {
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid currentColor;
  padding-bottom: 1px;
}
.topbar-link:hover { color: var(--slate); }

/* ============ Hero ============ */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
main > .hero { padding-top: clamp(24px, 5vw, 64px); }

.hero h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.75rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.lede {
  margin-top: 24px;
  font-size: 1.1875rem;
  color: #2c3342;
  max-width: 44ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
  margin-top: 36px;
}
.cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 26px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}
.cta:hover { background: #262e3e; }
.cta:active { transform: translateY(1px); }
.cta-quiet { font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* ============ Demo prompter ============ */
.demo { margin: 0; }

.glass {
  --guide: 38%;
  position: relative;
  height: clamp(300px, 38vw, 440px);
  overflow: hidden;
  border-radius: 18px;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0) 38%),
    var(--glass);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 30px 60px -30px rgba(15, 30, 46, 0.55);
  /* Fade the text out at the top and bottom edges, like a real hood. */
  -webkit-mask-image: linear-gradient(transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(transparent, #000 14%, #000 86%, transparent);
}

.roll {
  padding: 0 clamp(28px, 5vw, 64px) 0 clamp(52px, 7vw, 88px);
  color: #f4f6f8;
  font: 700 clamp(1.5rem, 2.6vw, 2.25rem)/1.45 var(--body);
  will-change: transform;
}
.roll p { margin: 0 0 0.9em; max-width: none; }

.cue {
  position: absolute;
  left: 0;
  right: 0;
  top: var(--guide);
  height: calc(clamp(1.5rem, 2.6vw, 2.25rem) * 1.45);
  background: rgba(242, 193, 78, 0.1);
  pointer-events: none;
}
.cue::before {
  content: "";
  position: absolute;
  left: clamp(18px, 3vw, 36px);
  top: 50%;
  border: 9px solid transparent;
  border-left: 13px solid var(--cue);
  border-right: 0;
  transform: translateY(-50%);
}

.demo-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 16px;
  font-size: 0.9375rem;
}
.demo-controls button {
  min-height: 40px;
  padding: 0 16px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: 700 0.9375rem var(--body);
  cursor: pointer;
}
.demo-controls button:hover { background: var(--chalk-deep); }
.demo-controls button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.speed { display: inline-flex; align-items: center; gap: 6px; }
.speed button { width: 40px; padding: 0; font-size: 1.125rem; }
.speed output { min-width: 2.5ch; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.unit { color: var(--slate); }
.demo-hint { color: var(--slate); }

/* ============ Steps ============ */
.steps ol {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px 32px;
  margin: 48px 0 0;
  padding: 0;
}
.steps li {
  counter-increment: step;
  padding-top: 20px;
  border-top: 2px solid var(--ink);
}
.steps li::before {
  content: counter(step);
  display: block;
  margin-bottom: 18px;
  font: 800 3.5rem/1 var(--display);
  letter-spacing: -0.04em;
  color: var(--ink);
}
.steps h3 { margin-bottom: 10px; }
.steps p { font-size: 1rem; color: #2c3342; }

/* ============ Backgrounds ============ */
.backdrops {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.backdrops-copy p { margin-top: 18px; color: #2c3342; }

.swatches {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
}
.swatches li {
  position: relative;
  display: flex;
  align-items: flex-end;
  aspect-ratio: 16 / 10;
  padding: 14px 16px;
  border-radius: 12px;
  overflow: hidden;
  color: #fff;
  font-weight: 700;
  font-size: 0.9375rem;
}
/* Sample prompter line across each swatch. */
.swatches li::after {
  content: "And here's where it gets good.";
  position: absolute;
  left: 16px;
  right: 16px;
  top: 38%;
  font: 700 clamp(0.95rem, 1.5vw, 1.2rem)/1.3 var(--body);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}
.sw-color { background: var(--glass); }
.sw-image {
  background:
    linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)),
    radial-gradient(circle at 75% 30%, #ffd9a0 0 9%, transparent 10%),
    linear-gradient(180deg, #e98a5b 0%, #b5527a 45%, #3b2d5c 46%, #1d2440 100%);
}
.sw-video {
  background:
    linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    repeating-linear-gradient(100deg, #1f5f6b 0 18%, #2c7f86 18% 30%, #174a55 30% 52%);
}
.sw-video::before {
  content: "";
  position: absolute;
  right: 16px;
  bottom: 16px;
  border: 8px solid transparent;
  border-left: 12px solid rgba(255, 255, 255, 0.85);
  border-right: 0;
}
.sw-cam {
  background:
    linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)),
    radial-gradient(ellipse 18% 26% at 50% 52%, #c99b7c 98%, transparent 100%),
    radial-gradient(ellipse 36% 30% at 50% 108%, #33415c 98%, transparent 100%),
    linear-gradient(160deg, #8a95a5, #4b5566);
}
.sw-cam::before {
  content: "";
  position: absolute;
  right: 16px;
  bottom: 18px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--tally);
}

/* ============ Keys ============ */
.keys dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 32px;
  margin: 40px 0 0;
}
.keys dl > div { display: flex; align-items: center; gap: 16px; }
.keys dt { display: flex; gap: 6px; flex-shrink: 0; }
.keys dd { margin: 0; }
kbd {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border: 1.5px solid var(--ink);
  border-bottom-width: 4px;
  border-radius: 8px;
  background: #fff;
  font: 700 1rem var(--body);
}

/* ============ Privacy ============ */
main > .privacy {
  max-width: none;
  margin-top: clamp(64px, 10vw, 128px);
  padding: clamp(56px, 8vw, 104px) var(--gutter);
  background: var(--glass);
  color: #f4f6f8;
}
.privacy-inner { max-width: calc(var(--max) - 2 * var(--gutter)); margin: 0 auto; }
.privacy p { margin: 18px 0 36px; color: #c3cad5; max-width: 56ch; }
.privacy .cta { background: #fff; color: var(--ink); }
.privacy .cta:hover { background: var(--chalk-deep); }

/* ============ Footer ============ */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px var(--gutter) 36px;
  font-size: 0.9375rem;
  color: var(--slate);
}

/* ============ Responsive ============ */
@media (max-width: 960px) {
  .hero,
  .backdrops { grid-template-columns: minmax(0, 1fr); }
  .steps ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .keys dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .steps ol,
  .keys dl,
  .swatches { grid-template-columns: minmax(0, 1fr); }
  .demo-hint,
  .topbar-link { display: none; }
}
