:root {
  --ink: #172033;
  --muted: #637083;
  --paper: #fffdf9;
  --cream: #fff7ed;
  --orange: #ff6234;
  --orange-dark: #d94117;
  --yellow: #ffd166;
  --mint: #a8e6cf;
  --blue: #c9e5ff;
  --border: #dce1e8;
  --shadow: 7px 7px 0 var(--ink);
  --radius: 20px;
  --max-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
  overflow-x: clip;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

button,
textarea,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
textarea:focus-visible,
input:focus-visible {
  outline: 4px solid #63a9ff;
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 12px max(24px, calc((100vw - var(--max-width)) / 2));
  border-bottom: 2px solid var(--ink);
  background: rgb(255 253 249 / 94%);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 900;
  text-decoration: none;
  letter-spacing: -.03em;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: var(--orange);
  color: white;
  box-shadow: 3px 3px 0 var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .77rem;
}

.brand-dot {
  color: var(--orange);
}

.section-nav {
  display: flex;
  align-items: center;
  gap: 3px;
}

.section-nav a {
  padding: 8px 11px;
  border-radius: 9px;
  color: var(--muted);
  font-size: .84rem;
  font-weight: 800;
  text-decoration: none;
}

.section-nav a:hover,
.section-nav a[aria-current="location"] {
  background: var(--ink);
  color: white;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: white;
  color: var(--ink);
  font-size: 1.35rem;
}

.progress-shell {
  position: sticky;
  z-index: 90;
  top: 72px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 8px max(24px, calc((100vw - var(--max-width)) / 2));
  border-bottom: 1px solid var(--border);
  background: rgb(255 253 249 / 94%);
  font-size: .74rem;
  backdrop-filter: blur(14px);
}

.progress-meta {
  display: flex;
  flex: 0 0 145px;
  justify-content: space-between;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.progress-track {
  width: 100%;
  height: 8px;
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: 99px;
  background: white;
}

#progress-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--orange);
  transition: width .35s ease;
}

.workshop-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 88px 24px;
}

.content-section {
  position: relative;
}

.alt-section::before {
  position: absolute;
  z-index: -1;
  inset: 28px -24px;
  background: var(--cream);
  content: "";
}

.hero {
  display: grid;
  min-height: calc(100vh - 111px);
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 72px;
  overflow: hidden;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--orange-dark);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(3.7rem, 8vw, 7.4rem);
  line-height: .86;
  letter-spacing: -.075em;
}

.hero h1 span {
  position: relative;
  color: var(--orange);
}

.hero h1 span::after {
  position: absolute;
  right: 2%;
  bottom: -9px;
  left: 2%;
  height: 10px;
  border-radius: 50%;
  background: var(--yellow);
  content: "";
  transform: rotate(-1deg);
}

.hero-lead {
  max-width: 590px;
  margin: 30px 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 11px 19px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.button-primary {
  background: var(--orange);
  color: white;
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform .15s, box-shadow .15s;
}

.button-primary:hover {
  box-shadow: 2px 2px 0 var(--ink);
  transform: translate(3px, 3px);
}

.button-secondary {
  background: white;
  color: var(--ink);
}

.time-pill {
  color: var(--muted);
  font-size: .86rem;
  font-weight: 700;
}

.hero-visual {
  position: relative;
  padding: 52px 20px;
}

.browser-card {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background: white;
  box-shadow: 14px 14px 0 var(--ink);
  transform: rotate(2deg);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px;
  border-bottom: 2px solid var(--ink);
  background: #f1f3f6;
}

.browser-bar i {
  width: 10px;
  height: 10px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--orange);
}

.browser-bar i:nth-child(2) {
  background: var(--yellow);
}

.browser-bar i:nth-child(3) {
  background: var(--mint);
}

.browser-bar span {
  margin-left: 9px;
  color: var(--muted);
  font-family: ui-monospace, monospace;
  font-size: .65rem;
}

.browser-code {
  display: flex;
  min-height: 290px;
  flex-direction: column;
  justify-content: center;
  padding: 42px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.browser-code strong {
  margin: 8px 0;
  font-size: clamp(1.2rem, 2.4vw, 2rem);
}

.code-muted {
  color: #8f9bad;
}

.code-accent {
  color: var(--orange-dark);
  font-weight: 700;
}

.orbit {
  position: absolute;
  z-index: 3;
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 4px 4px 0 var(--ink);
  font-size: .75rem;
  font-weight: 900;
}

.orbit-one {
  top: 8px;
  left: -7px;
}

.orbit-two {
  top: 36px;
  right: -3px;
  background: var(--blue);
}

.orbit-three {
  right: 24px;
  bottom: 8px;
  background: var(--mint);
}

.section-heading {
  display: grid;
  max-width: 800px;
  grid-template-columns: auto 1fr;
  gap: 20px;
  margin-bottom: 38px;
}

.section-heading h2 {
  margin: 0 0 8px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -.055em;
}

.section-heading p:last-child {
  margin: 0;
  color: var(--muted);
}

.step-number {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: var(--yellow);
  box-shadow: 4px 4px 0 var(--ink);
  font-weight: 950;
}

.concept-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}

.concept-grid article {
  padding: 20px;
  border: 2px solid var(--ink);
  border-radius: 16px;
  background: white;
}

.concept-grid article:nth-child(2) {
  background: var(--blue);
}

.concept-grid article:nth-child(3) {
  background: var(--mint);
}

.concept-grid article > span {
  font-size: 1.7rem;
}

.concept-grid h3 {
  display: inline;
  margin: 0 10px;
}

.concept-grid p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: .9rem;
}

.playground {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
}

.panel {
  min-width: 0;
}

.editor-panel {
  border-right: 3px solid var(--ink);
  background: #111827;
}

.panel-bar {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  border-bottom: 2px solid var(--ink);
  background: #ecf0f4;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .76rem;
  font-weight: 800;
}

.text-button,
.copy-button {
  border: 0;
  background: transparent;
  color: var(--orange-dark);
  font-weight: 900;
  cursor: pointer;
}

.text-button:hover,
.copy-button:hover {
  text-decoration: underline;
}

.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #18794e;
  text-transform: uppercase;
}

.live-dot::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #18a566;
  content: "";
  box-shadow: 0 0 0 4px rgb(24 165 102 / 14%);
}

.code-editor {
  display: block;
  width: 100%;
  min-height: 360px;
  resize: vertical;
  padding: 22px;
  border: 0;
  outline-offset: -4px;
  background: #111827;
  color: #e7edf8;
  font: 500 .86rem/1.72 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  tab-size: 2;
}

.preview-panel iframe {
  display: block;
  width: 100%;
  min-height: 360px;
  border: 0;
  background: white;
}

.complete-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 10px 15px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: white;
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

.complete-button span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.complete-button.is-complete {
  background: var(--mint);
}

.complete-button:disabled {
  cursor: not-allowed;
  opacity: .48;
}

.flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}

.flow li:not(.flow-arrow) {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 15px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: white;
  font-weight: 800;
}

.flow b {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  background: var(--orange);
  color: white;
  font-size: .75rem;
}

.flow-arrow {
  font-size: 1.5rem;
  font-weight: 900;
}

.safety-note {
  color: var(--muted);
  font-size: .82rem;
}

.prompt-grid {
  display: grid;
  grid-template-columns: .75fr 1fr 1.25fr;
  gap: 18px;
}

.prompt-card {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  padding: 20px;
  border: 2px solid var(--ink);
  border-radius: 16px;
  background: white;
  box-shadow: 4px 4px 0 var(--ink);
}

.prompt-card.bad {
  background: #fff0f0;
}

.prompt-card.good {
  background: #f0f8ff;
}

.prompt-card.better {
  background: #effbf5;
}

.prompt-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid rgb(23 32 51 / 20%);
  font-size: .75rem;
  font-weight: 950;
  letter-spacing: .12em;
}

.prompt-card p {
  flex: 1;
  font-size: .9rem;
}

.copy-button {
  align-self: flex-start;
  padding: 7px 0;
}

.formula {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
  padding: 18px;
  border: 2px dashed var(--ink);
  border-radius: 15px;
  background: white;
  font-size: .78rem;
  font-weight: 850;
}

.formula span {
  padding: 5px 8px;
  border-radius: 7px;
  background: var(--yellow);
}

.formula span:nth-of-type(even) {
  background: var(--blue);
}

.seo-layout {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 24px;
}

.head-sample {
  overflow-x: auto;
  margin: 0;
  padding: 30px;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background: #111827;
  color: #e7edf8;
  box-shadow: var(--shadow);
  font: 500 .85rem/2 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.head-sample mark {
  border-radius: 3px;
  background: transparent;
  color: inherit;
  transition: background .2s, color .2s;
}

.head-sample mark.is-found {
  background: var(--yellow);
  color: var(--ink);
}

.seo-checks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 22px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: white;
}

.seo-checks legend {
  padding: 0 6px;
  font-weight: 950;
}

.seo-checks label,
.checklist label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 11px;
  cursor: pointer;
}

.seo-checks label:has(input:checked),
.checklist label:has(input:checked) {
  border-color: #29946d;
  background: #effbf5;
}

.seo-checks input,
.checklist input {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  margin: 2px 0 0;
  accent-color: #17845c;
}

.seo-checks small {
  display: block;
  color: var(--muted);
}

.feedback {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: .82rem;
}

.feedback.success {
  color: #08794e;
  font-weight: 800;
}

.deploy-section {
  padding-bottom: 110px;
}

.deploy-card {
  display: grid;
  grid-template-columns: 1fr .78fr;
  overflow: hidden;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
}

.checklist {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px;
  border-right: 3px solid var(--ink);
}

.checklist code {
  font-size: .82em;
  font-weight: 800;
}

.launch-state {
  display: grid;
  min-height: 410px;
  place-content: center;
  padding: 34px;
  background: var(--cream);
  text-align: center;
}

.launch-state .rocket {
  display: block;
  filter: grayscale(1);
  font-size: 4.7rem;
  opacity: .35;
  transform: translateY(18px) rotate(-10deg);
  transition: .5s ease;
}

.launch-state h3,
.celebration-copy {
  visibility: hidden;
  margin: 4px 0;
  opacity: 0;
}

.launch-state h3 {
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1;
  letter-spacing: -.05em;
}

.launch-state.is-live {
  background-color: var(--yellow);
  background-image: radial-gradient(var(--orange) 1.2px, transparent 1.2px);
  background-size: 16px 16px;
}

.launch-state.is-live .rocket {
  filter: none;
  opacity: 1;
  transform: translateY(0) rotate(0);
}

.launch-state.is-live h3,
.launch-state.is-live .celebration-copy {
  visibility: visible;
  opacity: 1;
}

#deploy-count {
  font-weight: 800;
}

.reset-row {
  margin-top: 28px;
  text-align: center;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 25px max(24px, calc((100vw - var(--max-width)) / 2));
  border-top: 2px solid var(--ink);
  background: var(--ink);
  color: white;
  font-size: .85rem;
}

footer p {
  margin: 0;
}

footer span {
  color: var(--orange);
}

@media (max-width: 880px) {
  .menu-button {
    display: grid;
    place-items: center;
  }

  .section-nav {
    position: absolute;
    top: 72px;
    right: 16px;
    left: 16px;
    display: none;
    padding: 10px;
    border: 2px solid var(--ink);
    border-radius: 14px;
    background: white;
    box-shadow: 5px 5px 0 var(--ink);
  }

  .section-nav.is-open {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }

  .section-nav a {
    text-align: center;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 70px;
  }

  .hero-visual {
    max-width: 610px;
    margin: auto;
  }

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

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

  .prompt-card.better {
    grid-column: 1 / -1;
  }

  .formula {
    flex-wrap: wrap;
  }

  .seo-layout,
  .deploy-card {
    grid-template-columns: 1fr;
  }

  .checklist {
    border-right: 0;
    border-bottom: 3px solid var(--ink);
  }
}

@media (max-width: 650px) {
  html {
    scroll-padding-top: 112px;
  }

  .site-header {
    min-height: 64px;
    padding: 10px 16px;
  }

  .section-nav {
    top: 64px;
    grid-template-columns: repeat(2, 1fr);
  }

  .progress-shell {
    top: 64px;
    gap: 10px;
    padding: 7px 16px;
  }

  .progress-meta {
    flex-basis: 112px;
  }

  .progress-meta span {
    display: none;
  }

  .workshop-section {
    padding: 68px 16px;
  }

  .hero {
    padding-top: 54px;
  }

  .hero h1 {
    font-size: clamp(3.25rem, 18vw, 5.2rem);
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .browser-code {
    min-height: 220px;
    padding: 28px;
  }

  .orbit {
    width: 55px;
    height: 55px;
  }

  .section-heading {
    grid-template-columns: 1fr;
  }

  .step-number {
    width: 46px;
    height: 46px;
  }

  .playground {
    grid-template-columns: 1fr;
    box-shadow: 4px 4px 0 var(--ink);
  }

  .editor-panel {
    border-right: 0;
    border-bottom: 3px solid var(--ink);
  }

  .code-editor,
  .preview-panel iframe {
    min-height: 320px;
  }

  .flow {
    align-items: stretch;
    flex-direction: column;
  }

  .flow li:not(.flow-arrow) {
    justify-content: center;
  }

  .flow-arrow {
    align-self: center;
    transform: rotate(90deg);
  }

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

  .prompt-card.better {
    grid-column: auto;
  }

  .formula b {
    display: none;
  }

  .formula span {
    flex: 1 1 45%;
    text-align: center;
  }

  .head-sample {
    padding: 20px;
    font-size: .7rem;
  }

  footer {
    align-items: center;
    flex-direction: column;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
