:root {
  --ink: #292a25;
  --ink-soft: rgba(41, 42, 37, 0.72);
  --muted: #62645d;
  --muted-light: rgba(41, 42, 37, 0.42);
  --line: rgba(41, 42, 37, 0.13);
  --white: #f7f6f0;
  --green: #eef5ef;
  --green-strong: #dcebe1;
  --shadow: 0 24px 60px rgba(41, 42, 37, 0.09);
  --radius: 6px;
  --max: 1192px;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--white);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  letter-spacing: 0;
  min-height: 100%;
  min-width: 320px;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

button:not(:disabled),
a[href] {
  cursor: pointer;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  background: rgba(247, 246, 240, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.site-header-inner,
.page-container,
.footer-inner,
.footer-bottom {
  width: min(100% - 48px, var(--max));
  margin: 0 auto;
}

.site-header-inner {
  display: grid;
  grid-template-columns: minmax(215px, 1fr) auto minmax(215px, 1fr);
  gap: 24px;
  align-items: center;
  min-height: 70px;
}

.brand-mark,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  width: fit-content;
}

.brand-logo {
  width: 39px;
  height: 39px;
  flex: 0 0 auto;
}

.brand-wordmark {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
  min-width: 0;
}

.brand-mark strong,
.brand-mark small,
.footer-brand h2 {
  display: block;
  margin: 0;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand-mark strong,
.footer-brand h2 {
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.1em;
  font-weight: 700;
}

.brand-mark small {
  margin-top: 5px;
  color: #7b7d74;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.site-nav a {
  transition: color 160ms ease;
}

.site-nav a:hover {
  color: var(--ink);
}

.drawer-head,
.drawer-group p,
.drawer-link-icon,
.drawer-cta {
  display: none;
}

.drawer-body,
.drawer-group,
.drawer-links {
  display: contents;
}

.header-button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.header-button {
  justify-self: end;
  background: var(--ink);
  color: var(--white);
  height: 38px;
  padding: 0 16px;
  font-size: 14px;
}

.button {
  min-height: 38px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 700;
}

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

.button.secondary {
  border: 1px solid rgba(41, 42, 37, 0.28);
  background: rgba(247, 246, 240, 0.6);
}

.header-button:hover,
.button:hover {
  transform: translateY(-1px);
}

.header-button:hover,
.button.primary:hover {
  background: #3a3b35;
  color: var(--white);
}

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

.nav-toggle {
  display: none;
}

.nav-backdrop {
  display: none;
}

.header-spacer {
  height: 70px;
}

.section-green {
  background:
    radial-gradient(circle at 0% 20%, rgba(220, 235, 225, 0.8), rgba(238, 245, 239, 0) 32%),
    linear-gradient(90deg, var(--green), var(--white));
}

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

.hero,
.page-section {
  border-bottom: 1px solid var(--line);
}

.hero {
  display: flex;
  min-height: 650px;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 620px) minmax(390px, 420px);
  gap: 110px;
  align-items: center;
  justify-content: space-between;
  min-height: 0;
  padding: 64px 0;
}

.hero-copy {
  min-width: 0;
  width: 100%;
}

.demo-label {
  width: fit-content;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 720px;
  margin-bottom: 18px;
  color: var(--ink);
  font-size: clamp(42px, 4vw, 54px);
  font-weight: 760;
  line-height: 1.02;
  letter-spacing: 0;
  white-space: nowrap;
}

h2 {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: clamp(42px, 4vw, 54px);
  font-weight: 760;
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 19px;
  font-weight: 740;
  line-height: 1.22;
  letter-spacing: 0;
}

.hero-subhead {
  color: #4c554d;
  font-size: clamp(21px, 1.7vw, 23px);
  font-weight: 680;
  line-height: 1.08;
  white-space: nowrap;
}

.section-subhead {
  color: #4e544b;
  font-size: 22px;
  font-weight: 650;
  line-height: 1.16;
  white-space: nowrap;
}

.page-section p,
.footer-inner p {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.62;
}

.hero-body {
  color: var(--ink-soft);
  max-width: 620px;
  margin-bottom: 32px;
  font-size: 18px;
  line-height: 1.52;
}

.hero-body-lines span {
  display: block;
  white-space: nowrap;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.control-panel {
  position: relative;
  justify-self: end;
  width: 100%;
  border: 1px solid rgba(41, 42, 37, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(247, 246, 240, 0.92), rgba(237, 246, 239, 0.58)),
    var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.control-panel::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(180deg, var(--ink), #6f8a78, rgba(41, 42, 37, 0.34), var(--green-strong), var(--ink));
  content: "";
  pointer-events: none;
}

.panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 28px 24px 34px;
  border-bottom: 1px solid var(--line);
}

.panel-top span,
.panel-top small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.panel-top strong {
  display: block;
  margin-top: 0;
  font-size: 28px;
  line-height: 1.08;
  white-space: nowrap;
}

.panel-top small {
  padding: 8px 10px;
  border: 1px solid rgba(41, 42, 37, 0.14);
  border-radius: 999px;
  background: var(--green);
  white-space: nowrap;
}

.panel-list {
  --axis-x: 40px;
  --panel-progress-top: 30px;
  display: grid;
  overflow: hidden;
  position: relative;
}

.panel-list::before,
.panel-list::after {
  content: "";
  position: absolute;
  bottom: 30px;
  left: calc(var(--axis-x) - 0.5px);
  top: 30px;
  width: 1px;
  pointer-events: none;
}

.panel-list::before {
  background: rgba(41, 42, 37, 0.1);
}

.panel-list::after {
  top: var(--panel-progress-top);
  bottom: auto;
  height: 86px;
  background: linear-gradient(180deg, rgba(111, 138, 120, 0), #6f8a78 24%, #6f8a78 76%, rgba(111, 138, 120, 0));
  transition: top 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.panel-list a {
  position: relative;
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 16px;
  padding: 16px 28px 16px 34px;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
  overflow: hidden;
}

.panel-list a::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(111, 138, 120, 0), rgba(111, 138, 120, 0.13), rgba(111, 138, 120, 0));
  content: "";
  opacity: 0;
  pointer-events: none;
  transform: translateX(-115%);
  transition: opacity 220ms ease, transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.panel-list a:hover::before,
.panel-list a:focus-visible::before,
.panel-list a.is-active::before {
  opacity: 1;
  transform: translateX(0);
}

.panel-list a:focus-visible {
  outline: 2px solid rgba(111, 138, 120, 0.48);
  outline-offset: -2px;
}

.panel-list a:last-child {
  border-bottom: 0;
}

.status {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 12px;
  justify-self: start;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--ink);
}

.status::before {
  position: absolute;
  inset: 0;
  border-radius: 4px;
  background: #6f8a78;
  content: "";
  opacity: 0;
  pointer-events: none;
  transform: scale(0.72);
  transition: opacity 180ms ease, transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.status::after {
  position: relative;
  z-index: 1;
  width: 6px;
  height: 3px;
  border-bottom: 2px solid var(--white);
  border-left: 2px solid var(--white);
  content: "";
  opacity: 0;
  pointer-events: none;
  transform: translateY(-1px) rotate(-45deg) scale(0.4);
  transform-origin: center;
  transition: opacity 180ms ease, transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.panel-list a.is-complete .status::before {
  opacity: 1;
  transform: scale(1);
}

.panel-list a.is-complete .status::after {
  opacity: 1;
  transform: translateY(-1px) rotate(-45deg) scale(1);
}

.status.hold {
  background: #a2b4a6;
}

.status.quiet {
  background: rgba(41, 42, 37, 0.28);
}

.panel-list strong {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
  white-space: nowrap;
}

.panel-list p {
  margin-bottom: 0;
  font-size: 14px;
  line-height: 1.35;
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .panel-list::after,
  .panel-list a::before,
  .status::before,
  .status::after {
    transition: none;
  }

  .status::before {
    opacity: 1;
    transform: scale(1);
  }

  .status::after {
    opacity: 1;
    transform: translateY(-1px) rotate(-45deg) scale(1);
  }
}

.page-section {
  padding: 96px 0;
}

.section-intro {
  width: min(100% - 48px, var(--max));
  margin: 0 auto 36px;
}

.module-grid,
.owner-brief,
.workspace-grid,
.launch-grid,
.flow-layout,
.preview-layout,
.video-layout,
.start-panel {
  width: min(100% - 48px, var(--max));
  margin: 0 auto;
}

.video-layout {
  overflow: hidden;
  border: 1px solid rgba(41, 42, 37, 0.1);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 24px 60px rgba(41, 42, 37, 0.08);
}

.video-player {
  position: relative;
  background: #10110f;
}

.walkthrough-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #10110f;
}

.video-play-button {
  position: absolute;
  inset: 0;
  display: grid;
  width: 100%;
  border: 0;
  background: linear-gradient(180deg, rgba(16, 17, 15, 0), rgba(16, 17, 15, 0.22));
  color: var(--white);
  cursor: pointer;
  place-items: center;
}

.video-play-button span {
  display: block;
  width: clamp(54px, 10vw, 76px);
  height: clamp(54px, 10vw, 76px);
  border: 1px solid rgba(247, 246, 240, 0.72);
  border-radius: 50%;
  background: rgba(41, 42, 37, 0.72);
  box-shadow: 0 18px 42px rgba(16, 17, 15, 0.24);
}

.video-play-button span::before {
  display: block;
  width: 0;
  height: 0;
  margin: 50% 0 0 54%;
  border-bottom: 10px solid transparent;
  border-left: 16px solid currentColor;
  border-top: 10px solid transparent;
  content: "";
  transform: translate(-42%, -50%);
}

.video-play-button:hover span,
.video-play-button:focus-visible span {
  background: rgba(41, 42, 37, 0.86);
}

.video-play-button:focus-visible {
  outline: 2px solid rgba(41, 42, 37, 0.44);
  outline-offset: -4px;
}

.video-player.is-playing .video-play-button {
  display: none;
}

.video-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 18px;
  border-top: 1px solid rgba(41, 42, 37, 0.1);
}

.video-meta p {
  min-width: 0;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 20px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-meta a {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 20px;
  transition: color 160ms ease;
  white-space: nowrap;
}

.video-link-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.75;
}

.video-meta a:hover {
  color: var(--muted);
}

@media (min-width: 760px) {
  .video-meta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 20px;
  }

  .video-meta p {
    max-width: 640px;
  }

  .video-meta a {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}

.owner-brief {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(430px, 0.76fr);
  align-items: start;
  gap: 20px;
  margin-bottom: 18px;
}

.brief-main,
.brief-queue {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(247, 246, 240, 0.62)),
    var(--white);
}

.brief-main {
  display: grid;
  gap: 24px;
  padding: 30px;
}

.brief-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.brief-head span,
.brief-next span,
.brief-signal-grid span,
.brief-queue-head span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}

.brief-head h3 {
  margin: 8px 0 0;
  font-size: 30px;
  line-height: 1.08;
}

.brief-head strong {
  flex: 0 0 auto;
  padding: 8px 10px;
  border: 1px solid rgba(41, 42, 37, 0.14);
  border-radius: 999px;
  background: var(--green);
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.brief-main p {
  max-width: 760px;
  margin: 0;
  font-size: 17px;
}

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

.brief-signal-grid div {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(238, 245, 239, 0.55);
}

.brief-signal-grid strong {
  font-size: 30px;
  line-height: 1;
}

.brief-next {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.brief-next strong {
  font-size: 20px;
  line-height: 1.24;
}

.brief-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.brief-queue {
  display: grid;
}

.brief-queue-head,
.brief-queue article {
  display: grid;
  align-items: center;
  grid-template-columns: 92px minmax(0, 1fr) 64px;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.brief-queue-head {
  min-height: 72px;
  background: rgba(238, 245, 239, 0.44);
}

.brief-queue-head strong {
  grid-column: 2 / 4;
  font-size: 22px;
  line-height: 1.1;
}

.brief-queue article:last-child {
  border-bottom: 0;
}

.brief-chip,
.brief-queue small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  border: 1px solid rgba(41, 42, 37, 0.16);
  border-radius: 999px;
  background: rgba(247, 246, 240, 0.82);
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.brief-chip {
  background: var(--green);
}

.brief-queue strong {
  display: block;
  margin-bottom: 4px;
  font-size: 17px;
  line-height: 1.15;
  white-space: nowrap;
}

.brief-queue p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.module-grid article,
.workspace-grid article,
.launch-grid article {
  display: grid;
  align-content: start;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(247, 246, 240, 0.58)),
    var(--white);
  padding: 26px;
}

.module-grid p,
.workspace-grid p,
.launch-grid p {
  margin-bottom: 0;
}

.card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.card-icon {
  display: inline-flex;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(185, 215, 192, 0.78);
  border-radius: var(--radius);
  background: var(--green);
  color: var(--ink);
}

.card-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.card-head h3,
.card-head strong {
  min-width: 0;
  margin: 0;
}

.card-lines,
.flow-lines,
.workspace-lines {
  line-height: 1.48;
}

.card-lines span,
.flow-lines span,
.workspace-lines span {
  display: block;
  white-space: nowrap;
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.section-title-row h2 {
  margin-bottom: 0;
}

.repo-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.section-body {
  max-width: 910px;
  margin: 16px 0 0;
}

.section-body-lines {
  display: grid;
  gap: 0;
}

.section-body-lines span {
  display: block;
  white-space: nowrap;
}

.start-body-lines {
  display: grid;
  gap: 0;
}

.start-body-lines span {
  display: block;
  white-space: nowrap;
}

.page-section,
.workflow-section {
  scroll-margin-top: 70px;
}

.workflow-layout,
.website-workflow-layout {
  display: grid;
  width: min(100% - 48px, var(--max));
  margin: 0 auto;
  gap: clamp(34px, 5vw, 72px);
  align-items: center;
}

.workflow-layout {
  grid-template-columns: minmax(300px, 0.54fr) minmax(0, 1fr);
}

.workflow-layout.reverse {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.54fr);
}

.workflow-layout.reverse .workflow-copy {
  order: 2;
}

.website-workflow-layout {
  align-items: stretch;
  grid-template-columns: minmax(0, 1fr) 390px;
}

.workflow-copy {
  min-width: 0;
}

.workflow-copy h2 {
  margin-bottom: 14px;
  white-space: nowrap;
}

.codex-bar strong {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}

.codex-window {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(41, 42, 37, 0.08);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 18px 48px rgba(41, 42, 37, 0.06);
}

.inline-codex {
  margin: 28px 0 22px;
}

.codex-bar {
  display: none;
}

.codex-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #6f8a78;
  box-shadow: 16px 0 0 #b6beb5, 32px 0 0 rgba(41, 42, 37, 0.22);
  flex: 0 0 auto;
}

.codex-bar strong {
  margin-left: 34px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.codex-body {
  display: grid;
  gap: 46px;
  padding: 34px;
  background: var(--white);
}

.prompt-row,
.response-card {
  border-radius: 8px;
}

.prompt-row {
  display: grid;
  gap: 8px;
  justify-self: end;
  width: fit-content;
  max-width: min(76%, 610px);
  margin: 0;
  padding: 12px 14px;
  border: 0;
  border-radius: 13px;
  background: #f0f0f0;
  color: var(--ink);
}

.prompt-row p {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.response-card {
  display: grid;
  gap: 14px;
  max-width: 100%;
  overflow: visible;
  background: transparent;
}

.response-status {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 450;
  letter-spacing: 0;
  line-height: 1.3;
  text-transform: none;
}

.response-status span:last-child {
  color: rgba(41, 42, 37, 0.46);
  font-size: 14px;
}

.response-divider {
  height: 1px;
  background: rgba(41, 42, 37, 0.1);
}

.markdown-preview {
  display: grid;
  gap: 13px;
  padding: 0;
}

.markdown-preview + .markdown-preview {
  padding-top: 10px;
  border-top: 1px solid rgba(41, 42, 37, 0.1);
}

.markdown-preview h3 {
  margin: 2px 0 0;
  font-size: 15px;
  line-height: 1.25;
}

.markdown-preview p,
.markdown-preview li {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.52;
}

.markdown-preview p {
  margin: 0;
}

.markdown-preview ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
}

.codex-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.35;
  table-layout: fixed;
}

.codex-table th,
.codex-table td {
  padding: 8px 8px 8px 4px;
  border-bottom: 1px solid rgba(41, 42, 37, 0.1);
  text-align: left;
  vertical-align: top;
}

.codex-table th {
  color: var(--ink);
  font-weight: 780;
}

.codex-table td {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.codex-checklist {
  gap: 8px;
  padding-left: 0;
  list-style: none;
}

.codex-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.codex-check {
  position: relative;
  top: 3px;
  display: inline-grid;
  width: 16px;
  height: 16px;
  box-sizing: border-box;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #d1d1d1;
  border-radius: 2px;
  background: var(--white);
}

.codex-check.checked {
  border-color: #d6d6d6;
  background: #d8d8d8;
}

.codex-check.checked::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 8px;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  content: "";
  transform: translate(-50%, -58%) rotate(45deg);
}

.two-col-preview {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.artifact-rail {
  display: grid;
  gap: 8px;
}

.artifact-rail.compact {
  display: grid;
  gap: 7px;
  padding-top: 2px;
}

.artifact-rail span {
  display: block;
  width: fit-content;
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: 4px 8px;
  border: 0;
  border-radius: 7px;
  background: #f1f1f1;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.28;
}

.codex-file-stack {
  display: grid;
  gap: 12px;
  margin-top: 2px;
}

.codex-file-card,
.codex-change-card {
  border: 1px solid rgba(41, 42, 37, 0.1);
  border-radius: 10px;
  background: var(--white);
}

.codex-file-card,
.codex-change-main {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
}

.codex-file-icon {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #f2f2f2;
}

.codex-file-icon::before {
  position: absolute;
  inset: 11px 13px;
  border: 1px solid rgba(41, 42, 37, 0.56);
  border-radius: 3px;
  content: "";
}

.codex-file-icon::after {
  position: absolute;
  top: 17px;
  left: 16px;
  width: 9px;
  height: 1px;
  background: rgba(41, 42, 37, 0.56);
  box-shadow: 0 4px 0 rgba(41, 42, 37, 0.42);
  content: "";
}

.codex-file-icon.edit::before {
  inset: 12px;
}

.codex-file-card strong,
.codex-change-card strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  font-weight: 760;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.codex-file-card span,
.codex-change-card span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.codex-file-action {
  padding: 6px 10px;
  border: 1px solid rgba(41, 42, 37, 0.1);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}

.codex-file-card .codex-file-action,
.codex-change-card .codex-file-action {
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
}

.codex-change-card b,
.codex-change-card i {
  font-style: normal;
  font-weight: 680;
}

.codex-change-card b {
  color: #0a9f3f;
}

.codex-change-card i {
  color: #d12f2f;
}

.codex-details-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
  padding: 0 12px;
  border-top: 1px solid rgba(41, 42, 37, 0.1);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.2;
}

.codex-details-row span {
  width: 7px;
  height: 7px;
  border-right: 1px solid rgba(41, 42, 37, 0.5);
  border-bottom: 1px solid rgba(41, 42, 37, 0.5);
  transform: rotate(45deg);
}

.approval-strip {
  margin: 4px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.52;
}

.compact-response {
  border: 1px solid rgba(41, 42, 37, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.48);
}

.compact-response {
  display: grid;
  gap: 12px;
  margin: 28px 0;
  padding: 18px;
}

.compact-response strong {
  font-size: 17px;
  line-height: 1.2;
}

.compact-response ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

.compact-response li {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.4;
}

.flow-layout,
.preview-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1fr);
  gap: 72px;
  align-items: start;
}

.flow-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.flow-list li {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 22px;
  align-items: start;
  padding: 22px 0;
  border-top: 1px solid rgba(41, 42, 37, 0.13);
}

.flow-list span {
  font-size: 18px;
  font-weight: 850;
}

.flow-list p {
  margin-bottom: 0;
}

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

.workspace-grid strong {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 18px;
  line-height: 1.1;
}

.preview-layout {
  align-items: center;
  gap: clamp(48px, 5vw, 72px);
  grid-template-columns: minmax(0, 1fr) 390px;
  justify-content: stretch;
  width: min(100% - 48px, var(--max));
}

.preview-copy {
  align-self: center;
}

.preview-copy > p:not(.section-subhead) {
  margin-bottom: 0;
}

.website-summary {
  display: grid;
  gap: 0;
}

.website-summary span {
  display: block;
  white-space: nowrap;
}

.website-feature-list {
  border-top: 1px solid rgba(41, 42, 37, 0.14);
  display: grid;
  list-style: none;
  margin: 30px 0 28px;
  padding: 0;
}

.website-feature-list li {
  align-items: baseline;
  border-bottom: 1px solid rgba(41, 42, 37, 0.14);
  display: grid;
  gap: 18px;
  grid-template-columns: 92px minmax(0, 1fr);
  padding: 18px 0;
}

.website-feature-list span {
  color: var(--ink);
  font-size: 15px;
  font-weight: 850;
  line-height: 1.45;
}

.website-feature-list p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
  margin: 0;
  white-space: nowrap;
}

.browser-frame {
  border: 1px solid rgba(41, 42, 37, 0.16);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 30px 72px rgba(41, 42, 37, 0.11);
  color: inherit;
  display: block;
  overflow: hidden;
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.browser-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #b6beb5;
  flex: 0 0 auto;
}

.browser-url {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  flex: 1;
  margin-left: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browser-open {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 800;
  height: 30px;
  justify-content: center;
  padding: 0 12px;
}

.website-preview-card {
  align-self: start;
  display: flex;
  flex-direction: column;
  justify-self: center;
  height: 870px;
  min-height: 0;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
  width: min(100%, 390px);
}

.website-preview-card:hover {
  border-color: rgba(41, 42, 37, 0.34);
  box-shadow: 0 34px 78px rgba(41, 42, 37, 0.14);
}

.website-preview-embed {
  --frontsmith-preview-height: 100%;
  background: var(--white);
  display: block;
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
  width: 100%;
}

.start-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(280px, 0.38fr);
  gap: 56px;
  align-items: center;
}

.start-panel p {
  max-width: 740px;
}

.start-actions {
  display: grid;
  gap: 12px;
  justify-self: end;
  width: min(100%, 330px);
}

.site-footer {
  background: var(--white);
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: grid;
  gap: 44px;
  padding: 48px 0;
  width: min(100% - 32px, var(--max));
}

.footer-mark {
  height: 18px;
  width: 18px;
}

.footer-brand {
  gap: 10px;
}

.footer-brand h2 {
  color: var(--ink);
  font-size: 16px;
  font-weight: 760;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}

.footer-inner p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.5;
  margin: 14px 0 0;
  max-width: none;
}

.footer-links {
  display: grid;
  gap: 28px;
}

.footer-links h3 {
  color: var(--muted-light);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

.footer-links ul {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: var(--ink-soft);
  font-size: 14px;
  transition: color 160ms ease;
}

.footer-links a:hover {
  color: var(--ink);
}

.footer-bottom {
  margin: 0 auto;
  padding: 18px 0;
  width: min(100% - 32px, var(--max));
}

.footer-bottom p {
  color: var(--muted-light);
  font-size: 13px;
  margin: 0;
}

@media (min-width: 760px) {
  .footer-inner {
    align-items: start;
    grid-template-columns: minmax(220px, 1fr) max-content;
    width: min(100% - 48px, var(--max));
  }

  .footer-bottom {
    width: min(100% - 48px, var(--max));
  }

  .footer-links {
    gap: clamp(52px, 7vw, 96px);
    grid-template-columns: repeat(2, max-content);
    justify-self: end;
    text-align: left;
  }
}

@media (max-width: 860px) {
  body {
    overflow-x: hidden;
  }

  .page-section {
    padding: 72px 0;
  }

  .site-header-inner,
  .page-container,
  .section-intro,
  .module-grid,
  .owner-brief,
  .workspace-grid,
  .launch-grid,
  .flow-layout,
  .preview-layout,
  .workflow-layout,
  .website-workflow-layout,
  .video-layout,
  .start-panel,
  .footer-inner,
  .footer-bottom {
    width: calc(100% - 32px);
    max-width: var(--max);
  }

  .site-header-inner {
    display: flex;
    justify-content: space-between;
    padding: 0;
  }

  .hero-copy,
  .control-panel,
  .owner-brief,
  .brief-main,
  .brief-queue,
  .module-grid article,
  .workspace-grid article,
  .launch-grid article,
  .browser-frame {
    min-width: 0;
    max-width: 100%;
  }

  .header-button {
    display: none;
  }

  .brand-mark strong,
  .brand-mark small {
    max-width: calc(100vw - 120px);
  }

  .nav-toggle {
    align-items: center;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
    display: inline-flex;
    flex-direction: column;
    height: 42px;
    justify-content: center;
    padding: 0;
    position: relative;
    width: 42px;
    z-index: 50;
  }

  .nav-toggle span {
    background: currentColor;
    display: block;
    height: 2px;
    margin: 3px 0;
    transition: opacity 160ms ease, transform 160ms ease;
    width: 18px;
  }

  .nav-active .nav-toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .nav-active .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .nav-active .nav-toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .site-nav {
    align-items: stretch;
    background: var(--white);
    border-right: 1px solid var(--line);
    box-shadow: 20px 0 60px rgba(41, 42, 37, 0.12);
    display: flex;
    flex-direction: column;
    gap: 0;
    height: 100svh;
    justify-content: flex-start;
    max-width: 360px;
    padding: 0;
    position: fixed;
    left: 0;
    top: 0;
    transform: translateX(-100%);
    transition: transform 180ms ease;
    width: min(360px, calc(100vw - 28px));
    z-index: 60;
  }

  .site-nav.open {
    transform: translateX(0);
  }

  .drawer-head {
    align-items: center;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    min-height: 70px;
    padding: 0 16px;
  }

  .drawer-head .brand-mark {
    border: 0;
    min-height: 0;
    padding: 0;
  }

  .drawer-close {
    align-items: center;
    background: rgba(255, 255, 255, 0.34);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
    display: inline-flex;
    flex: 0 0 auto;
    height: 38px;
    justify-content: center;
    padding: 0;
    position: relative;
    width: 38px;
  }

  .drawer-close span {
    background: currentColor;
    height: 2px;
    position: absolute;
    width: 18px;
  }

  .drawer-close span:first-child {
    transform: rotate(45deg);
  }

  .drawer-close span:last-child {
    transform: rotate(-45deg);
  }

  .drawer-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 28px;
    justify-content: space-between;
    min-height: 0;
    overflow-y: auto;
    padding: 22px 16px;
  }

  .drawer-group {
    display: grid;
    gap: 12px;
  }

  .drawer-group p {
    color: var(--muted-light);
    display: block;
    font-size: 12px;
    font-weight: 780;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .drawer-links {
    display: grid;
    gap: 8px;
  }

  .site-nav a {
    align-items: center;
    border: 1px solid transparent;
    min-height: 48px;
    display: flex;
    font-size: 15px;
    font-weight: 650;
    gap: 12px;
    justify-content: flex-start;
    padding: 0 14px;
    border-radius: var(--radius);
    transition: background 160ms ease, border-color 160ms ease;
  }

  .drawer-link-icon {
    align-items: center;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
    display: inline-flex;
    flex: 0 0 auto;
    height: 30px;
    justify-content: center;
    width: 30px;
  }

  .drawer-link-icon svg {
    fill: none;
    height: 16px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    width: 16px;
  }

  .site-nav a:hover {
    background: var(--green);
    border-color: var(--line);
  }

  .drawer-cta {
    display: grid;
    gap: 10px;
  }

  .drawer-cta .button {
    justify-content: center;
    width: 100%;
  }

  .nav-backdrop {
    background: rgba(41, 42, 37, 0.18);
    border: 0;
    display: block;
    height: 100svh;
    left: 0;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    right: 0;
    top: 0;
    transition: opacity 180ms ease;
    z-index: 55;
  }

  .nav-open .nav-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .hero-grid,
  .owner-brief,
  .flow-layout,
  .preview-layout,
  .video-layout,
  .workflow-layout,
  .workflow-layout.reverse,
  .website-workflow-layout,
  .start-panel {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .workflow-layout.reverse .workflow-copy {
    order: 0;
  }

  .workflow-copy h2 {
    white-space: normal;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 54px;
  }

  .hero-grid {
    min-height: auto;
    padding: 54px 0;
  }

  h1 {
    font-size: 46px;
    white-space: normal;
  }

  h2 {
    font-size: 36px;
  }

  .hero-subhead,
  .section-subhead {
    font-size: 22px;
    overflow-wrap: normal;
    white-space: normal;
  }

  .video-section .section-subhead {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero-body,
  .page-section p {
    overflow-wrap: anywhere;
  }

  .hero-copy {
    width: 100%;
    max-width: calc(100vw - 32px);
    overflow: hidden;
  }

  .hero-subhead {
    display: block;
    width: 100%;
    max-width: calc(100vw - 32px);
    font-size: clamp(16px, 4.1vw, 18px);
    line-height: 1.16;
    text-wrap: balance;
    white-space: normal !important;
  }

  .hero-body {
    max-width: calc(100vw - 32px);
  }

  .hero-body-lines {
    display: grid;
    gap: 0;
  }

  .hero-body-lines span {
    display: block;
    text-align: left;
    text-align-last: auto;
    white-space: normal !important;
  }

  .section-body-lines span {
    white-space: normal;
  }

  .start-body-lines span {
    white-space: normal;
  }

  h1,
  .hero-subhead,
  .hero-body,
  .section-subhead,
  .panel-top strong,
  .panel-list strong,
  .panel-list p {
    max-width: 100%;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .panel-top {
    flex-wrap: wrap;
  }

  .panel-top strong {
    font-size: 26px;
    white-space: normal;
  }

  .panel-top small {
    display: none;
  }

  .panel-list {
    --axis-x: 26px;
  }

  .panel-list a {
    grid-template-columns: 12px 1fr;
    padding: 20px;
  }

  .panel-list a > div {
    min-width: 0;
  }

  .panel-list p {
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .brief-head {
    flex-direction: column;
  }

  .brief-head h3 {
    font-size: 27px;
  }

  .brief-main {
    min-height: 0;
    padding: 24px;
  }

  .brief-signal-grid,
  .brief-queue-head,
  .brief-queue article {
    grid-template-columns: 1fr;
  }

  .brief-queue article {
    align-items: start;
  }

  .brief-queue-head,
  .brief-queue article {
    padding: 20px;
  }

  .brief-queue-head strong {
    grid-column: auto;
  }

  .brief-queue strong,
  .brief-queue p {
    white-space: normal;
  }

  .card-lines span,
  .flow-lines span,
  .workspace-lines span {
    white-space: normal;
  }

  .section-title-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .module-grid,
  .workspace-grid,
  .launch-grid,
  .start-panel,
  .footer-links {
    grid-template-columns: 1fr;
  }

  .start-actions {
    justify-self: stretch;
    width: 100%;
  }

  .flow-list li {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .preview-layout {
    justify-content: stretch;
    width: calc(100% - 32px);
    max-width: var(--max);
  }

  .codex-body {
    gap: 30px;
    padding: 18px;
  }

  .prompt-row,
  .compact-response {
    padding: 14px;
  }

  .prompt-row {
    justify-self: stretch;
    width: 100%;
    max-width: 100%;
  }

  .prompt-row p,
  .markdown-preview p,
  .markdown-preview li,
  .codex-table,
  .codex-table th,
  .codex-table td {
    font-size: 13px;
  }

  .markdown-preview p,
  .markdown-preview li {
    overflow-wrap: anywhere;
  }

  .codex-table th,
  .codex-table td {
    padding-right: 4px;
  }

  .codex-file-card,
  .codex-change-main {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }

  .codex-file-icon {
    width: 34px;
    height: 34px;
  }

  .codex-file-action {
    grid-column: 2;
    justify-self: start;
  }

  .two-col-preview {
    grid-template-columns: 1fr;
  }

  .website-preview-embed {
    --frontsmith-preview-height: 560px;
    flex: 0 0 auto;
    height: 560px;
  }
}

@media (max-width: 620px) {
  h1 {
    font-size: 36px;
    line-height: 1.03;
  }

  h2 {
    font-size: 30px;
    line-height: 1.1;
  }

  .hero-subhead,
  .section-subhead {
    font-size: 19px;
  }

  .video-section .section-intro {
    margin-bottom: 24px;
  }

  .video-section .section-subhead {
    font-size: clamp(17px, 4.35vw, 19px);
  }

  .video-meta {
    gap: 10px;
    padding: 14px 16px;
  }

  .hero-subhead {
    font-size: clamp(16px, 4.1vw, 18px);
    overflow: visible;
    text-wrap: wrap;
    white-space: normal !important;
  }

  .hero-copy {
    overflow: visible;
  }

  .hero-body-lines {
    display: grid;
  }

  .hero-body-lines span {
    display: block;
    white-space: normal !important;
  }

  .brand-logo {
    height: 34px;
    width: 34px;
  }

  .brand-mark small {
    display: none;
  }

  .button {
    width: 100%;
  }

  .website-summary {
    display: block;
  }

  .website-summary span {
    display: inline;
    white-space: normal;
  }

  .website-feature-list li {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 16px 0;
  }

  .website-preview-card {
    height: auto;
    margin-top: 0;
    min-height: 0;
    justify-self: stretch;
    width: 100%;
  }

  .footer-inner {
    padding: 46px 0 30px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 36px;
  }
}
