:root {
  --paper: #f4f0e6;
  --paper-deep: #e8dfcc;
  --ink: #23231f;
  --graphite: #4a4a43;
  --soft: #756f63;
  --navy: #24435d;
  --navy-soft: rgba(36, 67, 93, 0.14);
  --rule: rgba(35, 35, 31, 0.18);
  --shadow: rgba(35, 31, 24, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper-deep);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(90deg, rgba(36, 67, 93, 0.05) 1px, transparent 1px),
    linear-gradient(0deg, rgba(36, 67, 93, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.65), transparent 32%),
    var(--paper-deep);
  background-size: 38px 38px, 38px 38px, auto, auto;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.45;
  background-image:
    repeating-linear-gradient(98deg, rgba(35, 35, 31, 0.035) 0, rgba(35, 35, 31, 0.035) 1px, transparent 1px, transparent 9px);
  mix-blend-mode: multiply;
}

a {
  color: var(--navy);
}

.hero {
  padding: 0;
}

.sheet {
  width: 100%;
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  border: 0;
  box-shadow: none;
  position: relative;
  overflow: hidden;
}

.sheet::before,
.sheet::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-color: var(--navy-soft);
  border-style: solid;
}

.sheet::before {
  inset: clamp(16px, 3vw, 34px);
  border-width: 1px;
  z-index: 2;
}

.sheet::after {
  width: 240px;
  height: 240px;
  right: -70px;
  top: -70px;
  border-width: 1px;
  transform: rotate(18deg);
}

.topline {
  position: absolute;
  left: clamp(22px, 5vw, 72px);
  right: clamp(22px, 5vw, 72px);
  top: clamp(18px, 4vw, 34px);
  z-index: 4;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 0 0 18px;
  border-bottom: 1px solid var(--rule);
  color: var(--soft);
  font-family: "Courier New", monospace;
  font-size: 12px;
  text-transform: uppercase;
}

.brand {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}

.hero-grid {
  position: relative;
  z-index: 3;
  display: block;
  min-height: 100vh;
  padding: clamp(112px, 16vh, 150px) clamp(22px, 5vw, 72px) clamp(34px, 6vw, 72px);
}

.hero-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(244, 240, 230, 0.99) 0%, rgba(244, 240, 230, 0.95) 35%, rgba(244, 240, 230, 0.38) 52%, rgba(244, 240, 230, 0.04) 78%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: 100%;
  min-width: 0;
  max-width: min(480px, 34vw);
}

.eyebrow,
.kicker {
  margin: 0 0 14px;
  color: var(--navy);
  font-family: "Courier New", monospace;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 20px;
  font-size: clamp(46px, 7vw, 84px);
  line-height: 0.95;
  letter-spacing: 0;
  max-width: 680px;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.04;
  letter-spacing: 0;
}

p {
  color: var(--graphite);
  font-size: 18px;
  line-height: 1.58;
}

.lede {
  color: var(--ink);
  font-size: clamp(20px, 2.3vw, 27px);
  line-height: 1.28;
}

.signup {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr auto;
  gap: 10px;
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}

.signup,
.signup label {
  min-width: 0;
}

label span {
  display: block;
  margin-bottom: 6px;
  color: var(--soft);
  font-family: "Courier New", monospace;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(35, 35, 31, 0.32);
  border-radius: 2px;
  color: var(--ink);
  font: 16px Georgia, "Times New Roman", serif;
}

input:focus {
  outline: 2px solid rgba(36, 67, 93, 0.24);
  border-color: var(--navy);
}

button {
  align-self: end;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid var(--navy);
  border-radius: 2px;
  background: var(--navy);
  color: #fffaf0;
  cursor: pointer;
  font: 700 13px "Courier New", monospace;
  text-transform: uppercase;
}

button:hover {
  background: #1b3449;
}

.trap {
  position: absolute;
  left: -9999px;
}

.microcopy {
  margin-top: 12px;
  color: var(--soft);
  font-size: 14px;
}

.hero-art {
  margin: 0;
  position: absolute;
  inset: 0;
  z-index: 1;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.hero-art::before {
  content: "";
  display: none;
}

.hero-copy::after {
  content: "01 / working notes";
  position: absolute;
  left: calc(100% + 24px);
  top: 68px;
  color: var(--navy);
  font: 700 12px "Courier New", monospace;
  text-transform: uppercase;
  transform: rotate(-90deg);
  transform-origin: left top;
}

.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border: 0;
  filter: contrast(1.02) saturate(0.92);
  transform: scale(1.08);
  transform-origin: left top;
}

.mobile-art {
  display: none;
}

.detail-band {
  border-top: 1px solid rgba(35, 35, 31, 0.2);
  padding: clamp(28px, 5vw, 58px) clamp(18px, 4vw, 48px);
}

.detail-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.detail-grid article {
  background: rgba(244, 240, 230, 0.86);
  padding: clamp(22px, 4vw, 34px);
}

.detail-grid p:last-child {
  margin-bottom: 0;
}

.thanks-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.thanks-card {
  width: min(620px, 100%);
  padding: clamp(28px, 6vw, 56px);
  background: var(--paper);
  border: 1px solid var(--rule);
  box-shadow: 0 28px 70px var(--shadow);
}

.thanks-card h1 {
  font-size: clamp(44px, 8vw, 72px);
}

.thanks-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
}

.primary-link {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 18px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-family: "Courier New", monospace;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.sop-page {
  min-height: 100vh;
  padding: clamp(92px, 13vh, 132px) clamp(18px, 5vw, 72px) clamp(36px, 6vw, 72px);
}

.sop-topline {
  position: absolute;
}

.sop-shell {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(22px, 5vw, 54px);
  align-items: start;
  min-width: 0;
}

.sop-intro h1 {
  margin: 0 0 24px;
  font-size: clamp(44px, 7vw, 76px);
  line-height: 0.95;
}

.sop-intro p {
  max-width: 560px;
}

.sop-panel,
.sop-workspace {
  min-width: 0;
  background: rgba(244, 240, 230, 0.9);
  border: 1px solid var(--rule);
  box-shadow: 0 24px 60px var(--shadow);
}

.sop-lead-form,
.sop-message-form {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 4vw, 34px);
}

.sop-lead-form label,
.sop-message-form label {
  display: grid;
  gap: 8px;
}

.sop-lead-form span,
.sop-message-form span {
  color: var(--soft);
  font-family: "Courier New", monospace;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.sop-lead-form input,
.sop-message-form textarea {
  width: 100%;
  border: 1px solid var(--rule);
  background: rgba(255, 252, 244, 0.76);
  color: var(--ink);
  font: inherit;
  font-size: 18px;
  padding: 13px 14px;
}

.sop-message-form textarea {
  min-height: 128px;
  resize: vertical;
}

.sop-voice-bar {
  display: grid;
  gap: 8px;
}

.sop-record-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 68px;
  padding: 16px 22px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-size: 20px;
  font-weight: 800;
}

.sop-record-button.is-recording {
  background: #8d2b20;
  border-color: #8d2b20;
}

.sop-record-button.is-unavailable {
  opacity: 0.52;
}

.sop-record-dot {
  width: 13px;
  height: 13px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(255, 252, 244, 0.16);
}

.sop-record-button.is-recording .sop-record-dot {
  animation: sop-pulse 1.1s ease-in-out infinite;
}

.sop-voice-status {
  min-height: 24px;
  margin: 0;
  color: var(--soft);
  font-size: 14px;
  line-height: 1.35;
}

@keyframes sop-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(0.68);
    opacity: 0.72;
  }
}

.sop-chat {
  height: min(48vh, 460px);
  min-height: 320px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(18px, 3vw, 26px);
  border-bottom: 1px solid var(--rule);
}

.sop-bubble {
  max-width: 82%;
  padding: 13px 15px;
  border: 1px solid var(--rule);
  background: rgba(255, 252, 244, 0.82);
  line-height: 1.45;
}

.sop-bubble-user {
  align-self: flex-end;
  background: rgba(36, 67, 93, 0.1);
}

.sop-bubble-error {
  border-color: rgba(145, 49, 35, 0.35);
  color: #7b2b20;
}

.sop-doc-link {
  align-self: flex-start;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  padding: 11px 13px;
  font-weight: 700;
  text-decoration: none;
}

.sop-draft {
  border-top: 1px solid var(--rule);
  padding: clamp(18px, 3vw, 26px);
}

.sop-draft-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.sop-draft pre {
  overflow-x: auto;
  white-space: pre-wrap;
  margin: 12px 0 0;
  font-family: "Courier New", monospace;
  font-size: 14px;
  line-height: 1.45;
}

.is-hidden {
  display: none !important;
}

@media (max-width: 920px) {
  .sheet {
    min-height: 100vh;
  }

  .hero-grid,
  .detail-grid,
  .sop-shell {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    padding-top: 112px;
    min-height: 100vh;
  }

  .hero-copy {
    max-width: min(520px, 74vw);
  }

  .signup {
    grid-template-columns: 1fr;
    width: 100%;
  }

  button {
    width: 100%;
  }

  .sop-page {
    padding-top: 112px;
  }

  .sop-bubble {
    max-width: 100%;
  }
}

@media (max-width: 560px) {
  .hero {
    padding: 0;
  }

  .sheet {
    border-left: 0;
    border-right: 0;
  }

  .sheet::before {
    display: none;
  }

  .sheet::after {
    display: none;
  }

  .hero-grid {
    padding-left: 24px;
    padding-right: 24px;
    padding-top: 96px;
    padding-bottom: 28px;
    min-height: auto;
  }

  .hero-copy {
    width: min(342px, calc(100dvw - 48px));
    max-width: min(342px, calc(100dvw - 48px));
  }

  .hero-grid::before {
    background:
      linear-gradient(180deg, rgba(244, 240, 230, 0.98) 0%, rgba(244, 240, 230, 0.98) 100%);
  }

  .hero-art {
    display: none;
  }

  .hero-copy::after {
    display: none;
  }

  .signup {
    width: min(342px, calc(100dvw - 48px));
    max-width: min(342px, calc(100dvw - 48px));
  }

  .mobile-art {
    display: block;
    margin: 20px 0 24px;
    width: min(342px, calc(100dvw - 48px));
    aspect-ratio: 9 / 8;
    overflow: hidden;
    border: 1px solid rgba(35, 35, 31, 0.2);
    background: rgba(255, 250, 240, 0.32);
  }

  .mobile-art img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 72%;
    filter: contrast(1.02) saturate(0.92);
  }

  .topline {
    display: block;
  }

  .topline span {
    display: block;
    margin-top: 6px;
  }

  h1 {
    max-width: 100%;
    font-size: 34px;
    line-height: 1.02;
    overflow-wrap: break-word;
  }

  p {
    font-size: 16px;
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .sop-page {
    padding-left: 24px;
    padding-right: 24px;
  }

  .sop-shell,
  .sop-intro {
    width: min(342px, calc(100vw - 48px));
    max-width: min(342px, calc(100vw - 48px));
    min-width: 0;
  }

  .sop-shell {
    margin-left: 0;
    margin-right: 0;
  }

  .sop-intro h1 {
    max-width: 100%;
    font-size: 34px;
    line-height: 1.03;
    overflow-wrap: break-word;
  }

  .sop-panel,
  .sop-workspace,
  .sop-lead-form,
  .sop-message-form {
    width: min(342px, calc(100vw - 48px));
    max-width: min(342px, calc(100vw - 48px));
  }

  .lede {
    font-size: 18px;
  }

  .hero-art::before {
    display: none;
  }
}

/* SOP Extractor: progressive process room */
.sop-shell-progressive {
  display: block;
  width: min(1380px, 100%);
}

.sop-intro-progressive {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.7fr);
  gap: 24px clamp(32px, 7vw, 96px);
  align-items: end;
  padding: 0 0 clamp(30px, 5vw, 52px);
}

.sop-intro-progressive h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(46px, 6.2vw, 88px);
  letter-spacing: -0.055em;
  line-height: 0.92;
}

.sop-intro-lede {
  margin: 0;
  color: var(--graphite);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.45;
}

.sop-promise {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sop-promise span,
.sop-live-mark,
.sop-ready-seal {
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 7px 11px;
  color: var(--soft);
  font-family: "Courier New", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sop-start-card {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(26px, 5vw, 72px);
  padding: clamp(26px, 5vw, 54px);
  background: rgba(248, 245, 236, 0.94);
}

.sop-overline,
.sop-start-business span,
.sop-contact-grid span,
.sop-answer-label {
  color: var(--soft);
  font-family: "Courier New", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sop-overline { margin: 0 0 10px; }
.sop-start-copy h2 { margin: 0 0 14px; font-size: clamp(30px, 4vw, 48px); line-height: 1; }
.sop-start-copy p:last-child { margin: 0; color: var(--soft); }
.sop-lead-form { padding: 0; }
.sop-start-business span { display: flex; justify-content: space-between; }
.sop-start-business small { font: inherit; color: #9a9385; }
.sop-lead-form input,
.sop-message-form textarea {
  border-radius: 3px;
  outline: 0;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.sop-lead-form input:focus,
.sop-message-form textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(36, 67, 93, 0.1);
}
.sop-primary-action,
.sop-send-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 54px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
}
.sop-contact-details { border-top: 1px solid var(--rule); padding-top: 14px; }
.sop-contact-details summary { cursor: pointer; font-weight: 700; }
.sop-contact-details summary span { display: block; margin-top: 4px; color: var(--soft); font-size: 14px; font-weight: 400; }
.sop-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding-top: 18px; }
.sop-contact-grid label:last-child { grid-column: 1 / -1; }
.sop-start-status { grid-column: 1 / -1; min-height: 20px; margin: 0; color: #7b2b20; }

.sop-progressive-workspace {
  background: rgba(247, 243, 233, 0.96);
  border: 1px solid var(--rule);
  box-shadow: 0 32px 90px rgba(35, 31, 24, 0.18);
}
.sop-workspace-head {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 0.55fr);
  gap: 24px;
  align-items: end;
  padding: 22px clamp(20px, 3vw, 34px);
  border-bottom: 1px solid var(--rule);
}
.sop-workspace-head h2 { margin: 0; font-size: clamp(25px, 3vw, 38px); }
.sop-progress-meta { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 8px; color: var(--soft); font: 700 11px "Courier New", monospace; text-transform: uppercase; }
.sop-progress-meta button { width: auto; padding: 0; border: 0; background: transparent; color: var(--soft); text-decoration: underline; }
.sop-progress { height: 5px; overflow: hidden; background: var(--paper-deep); }
.sop-progress span { display: block; width: 0; height: 100%; background: var(--navy); transition: width 450ms cubic-bezier(.2,.8,.2,1); }
.sop-workspace-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr); min-height: 690px; }
.sop-conversation { display: flex; min-width: 0; flex-direction: column; border-right: 1px solid var(--rule); }
.sop-section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 22px; border-bottom: 1px solid var(--rule); }
.sop-section-head h3 { margin: 0; font-size: 18px; }
.sop-section-head > span:not(.sop-live-mark) { color: var(--soft); font: 11px "Courier New", monospace; text-transform: uppercase; }
.sop-live-mark { padding: 5px 9px; }
.sop-live-mark i { display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: #59795a; }
.sop-chat { flex: 1; height: 420px; min-height: 390px; background: rgba(255,255,255,.18); }
.sop-bubble { border-radius: 2px 12px 12px 12px; box-shadow: 0 4px 16px rgba(35,31,24,.04); }
.sop-bubble-user { border-radius: 12px 2px 12px 12px; }
.sop-message-form { padding: 18px 22px 20px; border-top: 1px solid var(--rule); }
.sop-message-form textarea { min-height: 104px; padding: 14px; font-size: 17px; }
.sop-composer-actions { display: grid; grid-template-columns: auto minmax(170px, .45fr); justify-content: end; gap: 10px; }
.sop-record-button { width: auto; min-height: 48px; padding: 0 16px; border-color: var(--rule); background: transparent; color: var(--ink); font-size: 14px; }
.sop-send-button { min-height: 48px; }
.sop-voice-status { min-height: 18px; font-size: 13px; }

.sop-process-mirror { min-width: 0; background: rgba(232, 223, 204, 0.27); }
.sop-frame-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--rule); border-bottom: 1px solid var(--rule); }
.sop-frame-item { min-height: 104px; padding: 15px 17px; background: rgba(247,243,233,.96); }
.sop-frame-item span { display: block; margin-bottom: 8px; color: var(--soft); font: 10px "Courier New", monospace; letter-spacing: .06em; text-transform: uppercase; }
.sop-frame-item strong { display: block; color: #979083; font-size: 15px; line-height: 1.35; }
.sop-frame-item.is-confirmed strong { color: var(--ink); }
.sop-map-block,
.sop-gap-block { padding: 22px; }
.sop-gap-block { border-top: 1px solid var(--rule); background: rgba(145,49,35,.035); }
.sop-map-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 15px; }
.sop-map-heading h4 { margin: 0; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; }
.sop-map-heading span { color: var(--soft); font: 11px "Courier New", monospace; }
.sop-stage-list,
.sop-gap-list { margin: 0; padding: 0; list-style: none; }
.sop-stage { position: relative; display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 0 0 20px; }
.sop-stage:not(:last-child)::after { content: ""; position: absolute; left: 14px; top: 31px; bottom: 2px; border-left: 1px solid var(--rule); }
.sop-stage-index { position: relative; z-index: 1; display: grid; place-items: center; width: 29px; height: 29px; border: 1px solid var(--rule); border-radius: 50%; background: var(--paper); color: var(--soft); font: 10px "Courier New", monospace; }
.sop-stage-executable .sop-stage-index { border-color: var(--navy); background: var(--navy); color: white; }
.sop-stage-heading { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.sop-stage-heading strong { font-size: 15px; }
.sop-stage-heading span { color: var(--soft); font: 9px "Courier New", monospace; text-transform: uppercase; }
.sop-stage p { margin: 5px 0 0; color: var(--soft); font-size: 14px; line-height: 1.35; }
.sop-stage-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.sop-stage-meta span { padding: 3px 6px; border: 1px solid var(--rule); color: var(--soft); font: 9px "Courier New", monospace; letter-spacing: .03em; text-transform: uppercase; }
.sop-branch-list { display: grid; gap: 6px; margin-top: 10px; }
.sop-branch-list > div { display: grid; grid-template-columns: 96px 1fr; gap: 8px; padding: 7px 8px; border-left: 2px solid var(--navy); background: rgba(18,45,68,.05); }
.sop-branch-list strong { color: var(--navy); font: 700 9px "Courier New", monospace; text-transform: uppercase; }
.sop-branch-list span { color: var(--soft); font-size: 12px; line-height: 1.35; }
.sop-empty-state { padding: 22px; border: 1px dashed var(--rule); color: var(--soft); font-size: 14px; text-align: center; }
.sop-gap-list { display: grid; gap: 8px; }
.sop-gap-list li { position: relative; padding: 10px 12px 10px 29px; border: 1px solid rgba(145,49,35,.16); background: rgba(255,255,255,.34); font-size: 14px; }
.sop-gap-list li::before { content: "?"; position: absolute; left: 10px; color: #8d2b20; font: 700 12px "Courier New", monospace; }
.sop-generate-action { width: 100%; margin-top: 12px; padding: 12px 14px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); font: 700 11px "Courier New", monospace; text-transform: uppercase; }

.sop-output-workspace { padding: clamp(24px, 4vw, 42px); border-top: 1px solid var(--rule); background: var(--ink); color: var(--paper); }
.sop-output-workspace > header { display: flex; justify-content: space-between; align-items: start; gap: 22px; margin-bottom: 26px; }
.sop-output-workspace h2 { margin: 0; font-size: clamp(30px, 4vw, 48px); }
.sop-ready-seal { border-color: rgba(244,240,230,.35); color: var(--paper); }
.sop-output-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(244,240,230,.18); border: 1px solid rgba(244,240,230,.18); }
.sop-output-card { min-height: 220px; padding: 22px; background: #2b2b26; }
.sop-output-card > span { color: #aaa292; font: 11px "Courier New", monospace; }
.sop-output-card h3 { margin: 35px 0 8px; font-size: 22px; }
.sop-output-card p { color: #c8c0b0; font-size: 15px; }
.sop-output-card button,
.sop-artifact-links a,
.sop-artifact-links button { display: inline-flex; width: auto; margin-top: 12px; padding: 9px 11px; border: 1px solid rgba(244,240,230,.34); background: transparent; color: var(--paper); text-decoration: none; font: 700 11px "Courier New", monospace; text-transform: uppercase; }
.sop-artifact-links { display: flex; flex-wrap: wrap; gap: 7px; }
.sop-artifact-links a.is-primary { background: var(--paper); color: var(--ink); }
.sop-output-workspace .sop-draft { margin-top: 22px; border: 1px solid rgba(244,240,230,.2); background: #20201d; }
.sop-output-workspace .sop-draft pre { max-height: 520px; overflow: auto; color: #e6dfd0; }
.sop-delivery-form { display: grid; grid-template-columns: minmax(160px,.55fr) minmax(220px,.8fr) auto; gap: 14px; align-items: end; margin-top: 22px; padding: 18px; border: 1px solid rgba(244,240,230,.2); }
.sop-delivery-form div { display: grid; gap: 4px; }
.sop-delivery-form > div { grid-column: 1 / -1; }
.sop-delivery-form div span, .sop-delivery-form label span { color: #c8c0b0; font-size: 13px; }
.sop-delivery-form label { display: grid; gap: 6px; }
.sop-delivery-form input { min-height: 42px; border-color: rgba(244,240,230,.3); background: #20201d; color: var(--paper); }
.sop-delivery-form .sop-consent { grid-column: 1 / -1; display: flex; align-items: center; gap: 9px; }
.sop-delivery-form .sop-consent input { width: 17px; min-height: 17px; margin: 0; accent-color: var(--paper); }
.sop-delivery-form button { min-height: 42px; padding: 0 14px; border: 1px solid var(--paper); background: var(--paper); color: var(--ink); font: 700 11px "Courier New", monospace; text-transform: uppercase; }
.sop-delivery-form p { grid-column: 1 / -1; margin: 0; color: #c8c0b0; font-size: 13px; }

@media (max-width: 980px) {
  .sop-intro-progressive,
  .sop-start-card,
  .sop-workspace-head { grid-template-columns: 1fr; }
  .sop-workspace-grid { grid-template-columns: 1fr; }
  .sop-conversation { border-right: 0; border-bottom: 1px solid var(--rule); }
  .sop-process-mirror { min-height: auto; }
  .sop-output-grid { grid-template-columns: 1fr; }
  .sop-output-card { min-height: 180px; }
}

@media (max-width: 560px) {
  .sop-page { padding: 96px 16px 28px; }
  .sop-shell-progressive,
  .sop-intro-progressive,
  .sop-progressive-workspace,
  .sop-start-card,
  .sop-lead-form,
  .sop-message-form { width: 100%; max-width: none; }
  .sop-intro-progressive h1 { font-size: 41px; }
  .sop-intro-lede { font-size: 17px; }
  .sop-start-card { padding: 22px 18px; }
  .sop-contact-grid,
  .sop-frame-grid { grid-template-columns: 1fr; }
  .sop-contact-grid label:last-child { grid-column: auto; }
  .sop-composer-actions { grid-template-columns: 1fr 1.4fr; }
  .sop-record-button,
  .sop-send-button { width: 100%; }
  .sop-chat { min-height: 360px; height: 52vh; }
  .sop-workspace-head,
  .sop-section-head,
  .sop-message-form { padding-left: 16px; padding-right: 16px; }
  .sop-output-workspace { padding: 26px 16px; }
  .sop-delivery-form { grid-template-columns: 1fr; }
}
