:root {
  color-scheme: light;
  --bg: #f6f6f2;
  --paper: #fffefa;
  --paper-strong: #ffffff;
  --ink: #141516;
  --muted: #686c69;
  --soft: #ecece5;
  --line: #d8d8d0;
  --teal: #006b68;
  --teal-soft: #dcebea;
  --coral: #d24d35;
  --coral-soft: #f3ddd7;
  --blue: #245f8e;
  --blue-soft: #dce7f1;
  --gold: #b88719;
  --gold-soft: #f2e6c7;
  --shadow: 0 20px 60px rgb(20 21 22 / 0.12);
  --shadow-tight: 0 12px 32px rgb(20 21 22 / 0.1);
  --radius: 8px;
  --radius-sm: 6px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgb(20 21 22 / 0.035) 1px, transparent 1px),
    linear-gradient(rgb(20 21 22 / 0.035) 1px, transparent 1px),
    var(--bg);
  background-size: 64px 64px;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

.visually-hidden {
  position: fixed;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.deck-hud {
  position: fixed;
  z-index: 20;
  inset: 0 0 auto;
  height: 64px;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(240px, 520px) minmax(120px, 1fr);
  align-items: center;
  gap: 24px;
  padding: 0 28px;
  color: rgb(20 21 22 / 0.78);
  pointer-events: none;
}

.brand-lockup,
.slide-counter,
.progress-wrap {
  display: flex;
  align-items: center;
}

.brand-lockup {
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.brand-mark {
  width: 24px;
  height: 24px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  right: -3px;
  bottom: 2px;
  border-radius: 50%;
  background: var(--coral);
}

.progress-wrap {
  gap: 12px;
  min-width: 0;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.progress-track {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  background: rgb(20 21 22 / 0.12);
}

.progress-track span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--coral), var(--gold));
  transition: width 220ms ease;
}

.slide-counter {
  justify-content: flex-end;
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.deck {
  position: relative;
  width: 100vw;
  height: 100svh;
}

.slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  min-height: 100svh;
  padding: 88px 72px 72px;
  overflow: hidden;
}

.slide-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.slide-inner.wide {
  width: min(1320px, 100%);
}

.slide-inner.narrow {
  width: min(900px, 100%);
}

.hero-slide {
  background: var(--bg);
}

.hero-content {
  width: min(850px, 100%);
}

.cover-layout {
  display: block;
}

.cover-layout .hero-content {
  width: 100%;
}

.cover-session {
  margin: 0 0 22px;
  color: var(--teal);
  font-size: 0.92rem;
  font-weight: 850;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: var(--teal);
  font-size: 0.86rem;
  font-weight: 850;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: currentColor;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 900px;
  margin-bottom: 22px;
  font-size: 5.2rem;
  line-height: 0.96;
  font-weight: 880;
}

h2 {
  max-width: 1000px;
  margin-bottom: 18px;
  font-size: 3.35rem;
  line-height: 1.03;
  font-weight: 870;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.22rem;
  line-height: 1.15;
}

.lead {
  max-width: 900px;
  margin-bottom: 26px;
  color: rgb(20 21 22 / 0.76);
  font-size: 1.3rem;
  line-height: 1.45;
}

.micro {
  color: var(--muted);
  font-size: 0.8rem;
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 40px;
}

.review-layout {
  display: grid;
  gap: 24px;
}

.compact-title {
  margin: 0;
  font-size: 2.1rem;
  line-height: 1.05;
}

.review-board {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: stretch;
  gap: 18px;
}

.review-actions {
  display: grid;
  grid-template-rows: auto auto;
  align-content: start;
  gap: 18px;
}

.review-panel {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgb(255 254 250 / 0.94);
  box-shadow: var(--shadow-tight);
}

.review-source {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 18px;
}

.step-heading {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.step-heading h3 {
  margin-bottom: 7px;
}

.step-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

.review-commands {
  display: grid;
  justify-items: start;
  gap: 10px;
  margin: 20px 0 0 58px;
}

.review-commands .text-button {
  text-decoration: none;
}

.prompt-help {
  max-width: 500px;
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.prompt-reveal {
  position: fixed;
  z-index: 35;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 56px;
  background: rgb(20 21 22 / 0.3);
}

.prompt-reveal[hidden] {
  display: none;
}

.prompt-dialog {
  width: min(640px, 100%);
  max-height: calc(100svh - 112px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.prompt-dialog-head {
  position: sticky;
  z-index: 1;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  padding: 10px 14px 10px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.compact-prompt {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.compact-prompt pre {
  font-size: 0.96rem;
  line-height: 1.5;
}

.review-finish {
  box-shadow: none;
}

.stack {
  display: grid;
  gap: 16px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.card {
  min-height: 126px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgb(255 254 250 / 0.9);
}

.step-card {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: start;
}

.step-number {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--ink);
  color: white;
  font-size: 0.82rem;
  font-weight: 900;
}

.screenshot-link {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow-tight);
}

.screenshot-link img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.screenshot-link span {
  position: absolute;
  right: 12px;
  bottom: 12px;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  font-size: 0.82rem;
  font-weight: 800;
}

.prompt-box,
.answer-box,
.codex-composer {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-strong);
  box-shadow: var(--shadow-tight);
}

.prompt-box {
  padding: 18px;
}

.prompt-box pre {
  margin: 0;
  white-space: pre-wrap;
  color: rgb(20 21 22 / 0.82);
  font: inherit;
  line-height: 1.5;
}

.prompt-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 12px;
}

.prompt-writing {
  display: grid;
  gap: 4px;
}

.text-button,
.choice-button {
  min-height: 40px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  font-weight: 760;
}

.text-button.primary,
.choice-button.is-selected {
  border-color: var(--ink);
  background: var(--ink);
  color: white;
}

.field {
  display: grid;
  gap: 8px;
}

.field label,
.field-label {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 850;
  text-transform: uppercase;
}

.answer-box {
  min-height: 150px;
  resize: none;
  padding: 16px;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.5;
  outline: none;
}

.answer-box.tall {
  min-height: 290px;
}

.answer-box:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgb(0 107 104 / 0.12);
}

.choice-row {
  display: flex;
  gap: 10px;
}

.conditional {
  display: none;
}

.conditional.is-visible {
  display: grid;
}

.section-slide {
  background: var(--ink);
  color: white;
}

.section-slide .eyebrow,
.section-slide .lead {
  color: rgb(255 255 255 / 0.66);
}

.section-slide .eyebrow::before {
  background: var(--coral);
}

.browser-frame {
  overflow: hidden;
  border: 1px solid rgb(20 21 22 / 0.16);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
}

.browser-chrome {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 52px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  background: #f2f2ed;
}

.browser-buttons {
  display: flex;
  gap: 4px;
}

.browser-button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font-weight: 900;
}

.browser-button:hover {
  border-color: var(--line);
  background: white;
}

.browser-address {
  width: 100%;
  min-width: 0;
  height: 36px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--ink);
  font-size: 0.84rem;
}

.browser-preview {
  position: relative;
  height: min(67vh, 650px);
  background: #f4f4ef;
}

.browser-webview {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: white;
}

.browser-frame.is-refreshing .browser-webview {
  opacity: 0.45;
}

.browser-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  margin-top: 14px;
}

.browser-external {
  flex: none;
  text-decoration: none;
}

.codex-composer {
  overflow: hidden;
  background: #1d1d1d;
  color: white;
}

.composer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 0 14px;
  border-bottom: 1px solid rgb(255 255 255 / 0.1);
  color: rgb(255 255 255 / 0.68);
  font-size: 0.82rem;
  font-weight: 750;
}

.codex-input {
  width: 100%;
  min-height: 330px;
  resize: none;
  padding: 22px;
  border: 0;
  background: transparent;
  color: white;
  font-size: 1.05rem;
  line-height: 1.55;
  outline: none;
}

.codex-input::placeholder {
  color: rgb(255 255 255 / 0.38);
}

.composer-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-top: 1px solid rgb(255 255 255 / 0.1);
}

.composer-hint {
  color: rgb(255 255 255 / 0.45);
  font-size: 0.78rem;
}

.copy-prompt-action {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgb(255 255 255 / 0.7);
  font-size: 0.8rem;
  font-weight: 750;
}

.send-button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: white;
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 900;
}

.deck-controls {
  position: fixed;
  z-index: 25;
  right: 24px;
  bottom: 22px;
  display: flex;
  gap: 8px;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgb(20 21 22 / 0.16);
  border-radius: 999px;
  background: rgb(255 254 250 / 0.92);
  color: var(--ink);
  box-shadow: 0 8px 22px rgb(20 21 22 / 0.08);
  font-size: 1.25rem;
  font-weight: 800;
}

.icon-button.small {
  width: 36px;
  height: 36px;
  box-shadow: none;
}

.overview-dialog {
  width: min(850px, calc(100vw - 40px));
  max-height: min(720px, calc(100svh - 80px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.overview-dialog::backdrop {
  background: rgb(20 21 22 / 0.35);
}

.overview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px;
  max-height: calc(100svh - 170px);
  overflow: auto;
  padding: 18px;
}

.overview-tile {
  min-height: 90px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: white;
  text-align: left;
}

.overview-tile strong {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.overview-tile small {
  color: var(--muted);
}

.overview-tile.is-current {
  border-color: var(--teal);
  background: var(--teal-soft);
}

.toast {
  position: fixed;
  z-index: 40;
  left: 50%;
  bottom: 28px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  font-size: 0.84rem;
  font-weight: 750;
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 1020px) {
  .deck-hud {
    grid-template-columns: 1fr auto;
  }

  .progress-wrap {
    display: none;
  }

  .slide {
    padding: 82px 32px 72px;
    overflow-y: auto;
  }

  h1 {
    font-size: 3.5rem;
  }

  h2 {
    font-size: 2.5rem;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .review-board {
    grid-template-columns: 1fr;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .browser-preview {
    height: 520px;
  }
}

@media (max-width: 680px) {
  body {
    overflow: auto;
  }

  .deck {
    height: auto;
    min-height: 100svh;
  }

  .deck-hud {
    height: 56px;
    padding: 0 16px;
  }

  .brand-lockup span:last-child {
    display: none;
  }

  .slide {
    position: relative;
    min-height: 100svh;
    padding: 72px 18px 80px;
  }

  .hero-content {
    width: 100%;
  }

  .review-layout {
    gap: 18px;
  }

  .review-panel {
    padding: 18px;
  }

  .review-commands {
    margin-left: 0;
  }

  .prompt-reveal {
    padding: 12px;
  }

  .prompt-dialog {
    max-height: calc(100svh - 24px);
  }

  .compact-title {
    font-size: 2rem;
  }

  h1 {
    font-size: 2.7rem;
  }

  h2 {
    font-size: 2.05rem;
  }

  .lead {
    font-size: 1.08rem;
  }

  .browser-chrome {
    grid-template-columns: auto 1fr auto;
  }

  .browser-preview {
    height: 420px;
  }

  .copy-prompt-action span {
    display: none;
  }

  .deck-controls {
    top: 8px;
    right: auto;
    bottom: auto;
    left: 50%;
    gap: 5px;
    transform: translateX(-50%);
  }

  .deck-controls .icon-button {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
}
