:root {
  color-scheme: light;
  --ink: #101411;
  --muted: #5d675f;
  --soft-text: #7a837d;
  --line: #d9e1d8;
  --paper: #f8faf7;
  --panel: #ffffff;
  --soft: #edf4ec;
  --mint: #bff4d8;
  --blue: #b8dcff;
  --lemon: #f4ff9d;
  --coral: #ffb59e;
  --shadow: 0 24px 70px rgba(27, 36, 28, 0.12);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(16, 20, 17, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(16, 20, 17, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, #fbfcf8 0%, var(--paper) 42%, #eef7f0 100%);
  background-size: 56px 56px, 56px 56px, auto;
  color: var(--ink);
  font-family: "Work Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

.sr-only {
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

.chat-page {
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(135deg, #ffffff 0%, #f7fbff 48%, #fbfcff 100%);
  background-size: 42px 42px, 42px 42px, auto;
  color: #0b1020;
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100svh;
  overflow: hidden;
  position: relative;
}

.chat-page::before {
  animation: chat-scan 8s ease-in-out infinite;
  background: linear-gradient(90deg, transparent, rgba(107, 224, 255, 0.5), transparent);
  content: "";
  height: 1px;
  left: 0;
  position: fixed;
  right: 0;
  top: 18%;
  z-index: 0;
}

.chat-page::after {
  background:
    linear-gradient(90deg, rgba(191, 244, 216, 0.16), transparent 28%),
    linear-gradient(270deg, rgba(255, 181, 158, 0.13), transparent 32%);
  bottom: 0;
  content: "";
  left: 0;
  pointer-events: none;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 0;
}

.chat-page button,
.chat-page textarea {
  font: inherit;
}

.chat-page a,
.chat-page button {
  cursor: pointer;
}

.chat-page h1,
.chat-page h2,
.chat-page h3,
.chat-page .chat-brand,
.chat-page .mini-label {
  font-family: "Space Grotesk", "DM Sans", sans-serif;
}

.chat-app {
  display: grid;
  grid-template-rows: 58px minmax(0, 1fr);
  min-height: 100svh;
  padding: 12px;
  position: relative;
  z-index: 1;
}

.chat-topbar,
.chat-topbar-actions,
.chat-brand,
.agent-pill,
.ghost-action,
.send-icon-button,
.preview-toolbar,
.preview-meta,
.typing-dots {
  align-items: center;
  display: flex;
}

.chat-topbar {
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
  border-radius: 8px;
  justify-content: space-between;
  min-width: 0;
  padding: 0 12px;
}

.chat-brand {
  color: #0b1020;
  font-weight: 800;
  gap: 10px;
  letter-spacing: 0;
}

.chat-topbar-actions {
  gap: 8px;
}

.agent-pill {
  background: #eefaff;
  border: 1px solid #c1eaff;
  border-radius: 8px;
  color: #16445d;
  font-size: 0.76rem;
  font-weight: 800;
  min-height: 34px;
  padding: 0 10px;
  white-space: nowrap;
}

.agent-pill::before {
  animation: agent-pulse 1.7s ease-in-out infinite;
  background: #14b8a6;
  border-radius: 999px;
  content: "";
  height: 7px;
  margin-right: 8px;
  width: 7px;
}

.agent-pill.error {
  background: #fff1ed;
  border-color: #ffc9bb;
  color: #943015;
}

.agent-pill.error::before {
  background: #f97316;
}

.ghost-action {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 8px;
  color: #0b1020;
  font-size: 0.84rem;
  font-weight: 800;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
  white-space: nowrap;
}

.ghost-action:hover {
  background: #f4ff9d;
  border-color: #0b1020;
}

.ghost-action[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.48;
  pointer-events: none;
}

.chat-workspace {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(360px, 0.86fr) minmax(420px, 1.14fr);
  height: calc(100svh - 82px);
  min-height: 0;
  padding-top: 12px;
}

.conversation-panel {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 0;
  position: relative;
}

.conversation-scroll {
  align-content: end;
  display: grid;
  gap: 18px;
  overflow-y: auto;
  padding: 38px clamp(6px, 2vw, 18px) 18px;
  scroll-behavior: smooth;
}

.message-row {
  align-items: flex-start;
  animation: message-rise 220ms ease-out both;
  display: flex;
  gap: 10px;
  max-width: 92%;
}

.message-row.from-user {
  flex-direction: row-reverse;
  justify-self: end;
}

.message-avatar {
  background: #0b1020;
  border: 1px solid #0b1020;
  border-radius: 8px;
  color: #ffffff;
  display: grid;
  flex: 0 0 30px;
  font-size: 0.74rem;
  font-weight: 900;
  height: 30px;
  place-items: center;
  width: 30px;
}

.from-agent .message-avatar {
  background: linear-gradient(135deg, #0b1020 0 38%, #bff4d8 38% 64%, #b8dcff 64% 100%);
  color: transparent;
}

.message-bubble {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  box-shadow: 0 18px 52px rgba(15, 23, 42, 0.08);
  min-width: 0;
  padding: 13px 14px;
}

.message-bubble p {
  color: #1f2937;
  line-height: 1.55;
  margin: 0;
  white-space: pre-wrap;
}

.from-user .message-bubble {
  background: #0b1020;
  border-color: #0b1020;
  box-shadow: 0 18px 52px rgba(15, 23, 42, 0.16);
}

.from-user .message-bubble p {
  color: #ffffff;
}

.composer {
  align-items: flex-end;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) 42px;
  margin: 0 clamp(0px, 1vw, 10px) 2px;
  padding: 10px;
}

.composer:focus-within {
  border-color: #0b1020;
}

.composer textarea {
  background: transparent;
  border: 0;
  color: #0b1020;
  line-height: 1.45;
  max-height: 150px;
  min-height: 42px;
  outline: 0;
  overflow-y: auto;
  padding: 10px 2px 8px 4px;
  resize: none;
  width: 100%;
}

.composer textarea::placeholder {
  color: #64748b;
}

.send-icon-button {
  background: #0b1020;
  border: 1px solid #0b1020;
  border-radius: 8px;
  color: #ffffff;
  height: 42px;
  justify-content: center;
  transition: background-color 180ms ease, transform 180ms ease;
  width: 42px;
}

.send-icon-button:hover {
  background: #233047;
}

.send-icon-button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.send-icon-button svg {
  height: 22px;
  width: 22px;
}

.preview-panel {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.1);
  display: grid;
  grid-template-rows: 58px minmax(0, 1fr) auto;
  min-height: 0;
  overflow: hidden;
}

.preview-toolbar {
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
  justify-content: space-between;
  min-width: 0;
  padding: 0 12px;
}

.preview-toolbar strong {
  color: #0b1020;
  display: block;
  font-family: "Space Grotesk", "DM Sans", sans-serif;
  font-size: 1.02rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-label {
  color: #64748b;
  display: block;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  margin-bottom: 2px;
  text-transform: uppercase;
}

.preview-frame-wrap {
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(15, 23, 42, 0.045) 1px, transparent 1px),
    #eff8fb;
  background-size: 28px 28px, 28px 28px, auto;
  min-height: 0;
  overflow: hidden;
  padding: 12px;
  position: relative;
}

.preview-frame {
  animation: canvas-in 260ms ease-out both;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 8px;
  height: 100%;
  min-height: 520px;
  width: 100%;
}

.preview-empty {
  align-content: center;
  background: rgba(255, 255, 255, 0.74);
  border: 1px dashed rgba(15, 23, 42, 0.2);
  border-radius: 8px;
  color: #475569;
  display: grid;
  height: 100%;
  justify-items: center;
  min-height: 520px;
  padding: 28px;
  text-align: center;
}

.preview-empty p {
  line-height: 1.55;
  margin: 16px 0 0;
  max-width: 280px;
}

.preview-meta {
  border-top: 1px solid rgba(15, 23, 42, 0.1);
  flex-wrap: wrap;
  gap: 7px;
  padding: 10px 12px;
}

.preview-meta span {
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  color: #334155;
  font-size: 0.76rem;
  font-weight: 800;
  max-width: 100%;
  overflow: hidden;
  padding: 7px 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.typing-dots {
  gap: 5px;
  height: 22px;
}

.typing-dots span {
  animation: typing-dot 900ms ease-in-out infinite;
  background: #64748b;
  border-radius: 999px;
  height: 6px;
  width: 6px;
}

.typing-dots span:nth-child(2) {
  animation-delay: 120ms;
}

.typing-dots span:nth-child(3) {
  animation-delay: 240ms;
}

@keyframes chat-scan {
  0%, 100% { opacity: 0.18; transform: translateY(0); }
  50% { opacity: 0.74; transform: translateY(210px); }
}

@keyframes agent-pulse {
  0%, 100% { opacity: 0.4; transform: scale(0.78); }
  50% { opacity: 1; transform: scale(1); }
}

@keyframes message-rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes canvas-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes typing-dot {
  0%, 100% { opacity: 0.28; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-4px); }
}

@media (max-width: 960px) {
  .chat-page {
    overflow: auto;
  }

  .chat-app {
    min-height: 100svh;
  }

  .chat-workspace {
    grid-template-columns: 1fr;
    height: auto;
  }

  .conversation-panel {
    min-height: calc(100svh - 82px);
  }

  .preview-panel {
    min-height: 680px;
  }
}

@media (max-width: 560px) {
  .chat-app {
    padding: 8px;
  }

  .chat-topbar {
    min-height: 54px;
  }

  .agent-pill {
    max-width: 132px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .chat-workspace {
    gap: 8px;
    height: auto;
    padding-top: 8px;
  }

  .conversation-scroll {
    gap: 14px;
    padding: 22px 0 14px;
  }

  .message-row {
    max-width: 100%;
  }

  .message-avatar {
    flex-basis: 28px;
    height: 28px;
    width: 28px;
  }

  .message-bubble {
    padding: 12px;
  }

  .composer {
    grid-template-columns: minmax(0, 1fr) 40px;
    margin-inline: 0;
    padding: 8px;
  }

  .send-icon-button {
    height: 40px;
    width: 40px;
  }

  .preview-panel {
    min-height: 620px;
  }

  .preview-frame,
  .preview-empty {
    min-height: 500px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .chat-page::before,
  .agent-pill::before,
  .message-row,
  .preview-frame,
  .typing-dots span {
    animation: none !important;
  }
}

.builder-page {
  background:
    linear-gradient(90deg, rgba(9, 9, 11, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(9, 9, 11, 0.04) 1px, transparent 1px),
    linear-gradient(135deg, #ffffff 0%, #f6fbff 44%, #f8faf7 100%);
  background-size: 48px 48px, 48px 48px, auto;
  color: #09090b;
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100svh;
  overflow-x: hidden;
}

.builder-page h1,
.builder-page h2,
.builder-page h3,
.builder-page .brand,
.builder-page .mini-label,
.builder-page .eyebrow {
  font-family: "Space Grotesk", "DM Sans", sans-serif;
}

.builder-shell {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(360px, 0.42fr) minmax(0, 0.58fr);
  min-height: 100svh;
  padding: 14px;
}

.builder-chat,
.builder-canvas {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(9, 9, 11, 0.12);
  border-radius: var(--radius);
  box-shadow: 0 20px 70px rgba(15, 23, 42, 0.11);
  min-width: 0;
}

.builder-chat {
  display: grid;
  grid-template-rows: auto auto minmax(220px, 1fr) auto;
  max-height: calc(100svh - 28px);
  overflow: hidden;
}

.builder-chat-head,
.canvas-toolbar,
.chat-actions,
.canvas-actions {
  align-items: center;
  display: flex;
}

.builder-chat-head,
.canvas-toolbar {
  border-bottom: 1px solid rgba(9, 9, 11, 0.11);
  gap: 14px;
  justify-content: space-between;
  min-height: 66px;
  padding: 0 16px;
}

.builder-status {
  background: #e9f8ff;
  border: 1px solid #beddf5;
  border-radius: var(--radius);
  color: #143247;
  font-size: 0.76rem;
  font-weight: 850;
  padding: 8px 10px;
  text-transform: uppercase;
  white-space: nowrap;
}

.builder-status.error {
  background: #fff1ed;
  border-color: #ffc9bb;
  color: #9f2f17;
}

.builder-intro {
  border-bottom: 1px solid rgba(9, 9, 11, 0.09);
  padding: 22px 16px 18px;
}

.builder-intro h1 {
  font-size: clamp(2.25rem, 6vw, 4.8rem);
  letter-spacing: 0;
  line-height: 0.9;
  margin-bottom: 16px;
}

.builder-intro p:last-child {
  color: #475569;
  line-height: 1.56;
  margin-bottom: 0;
}

.chat-thread {
  display: grid;
  gap: 10px;
  overflow-y: auto;
  padding: 16px;
}

.chat-message {
  border: 1px solid rgba(9, 9, 11, 0.1);
  border-radius: var(--radius);
  max-width: 88%;
  padding: 12px;
}

.chat-message span {
  color: #64748b;
  display: block;
  font-size: 0.72rem;
  font-weight: 900;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.chat-message p {
  color: #172033;
  line-height: 1.52;
  margin: 0;
  white-space: pre-wrap;
}

.chat-message.is-agent {
  background: #f8fbff;
}

.chat-message.is-user {
  background: #111827;
  justify-self: end;
}

.chat-message.is-user span,
.chat-message.is-user p {
  color: #ffffff;
}

.chat-composer {
  border-top: 1px solid rgba(9, 9, 11, 0.1);
  display: grid;
  gap: 10px;
  padding: 14px;
}

.chat-composer textarea {
  background: #ffffff;
  border: 1px solid rgba(9, 9, 11, 0.18);
  border-radius: var(--radius);
  color: #09090b;
  min-height: 92px;
  outline: 0;
  padding: 13px 14px;
  resize: vertical;
  width: 100%;
}

.chat-composer textarea::placeholder {
  color: #64748b;
}

.chat-actions {
  flex-wrap: wrap;
  gap: 8px;
}

.quick-chip,
.send-button,
.canvas-actions button,
.canvas-actions a {
  align-items: center;
  border: 1px solid rgba(9, 9, 11, 0.18);
  border-radius: var(--radius);
  display: inline-flex;
  font-weight: 850;
  justify-content: center;
  min-height: 40px;
  padding: 0 12px;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.quick-chip {
  background: #f8fafc;
  color: #334155;
}

.quick-chip:hover,
.canvas-actions button:hover,
.canvas-actions a:hover {
  background: #f4ff9d;
  border-color: #09090b;
  color: #09090b;
}

.send-button {
  background: #09090b;
  border-color: #09090b;
  color: #ffffff;
  margin-left: auto;
}

.send-button:hover {
  background: #253041;
}

.quick-chip:disabled,
.send-button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.builder-canvas {
  display: grid;
  grid-template-rows: auto minmax(420px, 1fr) auto;
  min-height: calc(100svh - 28px);
  overflow: hidden;
}

.canvas-toolbar strong {
  display: block;
  font-family: "Space Grotesk", "DM Sans", sans-serif;
  font-size: 1.2rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.canvas-actions {
  gap: 8px;
}

.canvas-actions button,
.canvas-actions a {
  background: #ffffff;
  color: #09090b;
}

.canvas-actions a[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.55;
  pointer-events: none;
}

.canvas-frame-wrap {
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    #eef7fb;
  background-size: 34px 34px, 34px 34px, auto;
  min-height: 0;
  overflow: hidden;
  padding: 16px;
  position: relative;
}

.canvas-frame {
  background: #ffffff;
  border: 1px solid rgba(9, 9, 11, 0.15);
  border-radius: var(--radius);
  height: 100%;
  min-height: 520px;
  width: 100%;
}

.canvas-empty {
  align-content: center;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(9, 9, 11, 0.12);
  border-radius: var(--radius);
  display: grid;
  height: 100%;
  justify-items: center;
  min-height: 520px;
  padding: 24px;
  text-align: center;
}

.canvas-empty h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.95;
  margin: 18px 0 12px;
}

.canvas-empty p {
  color: #475569;
  line-height: 1.55;
  max-width: 460px;
}

.canvas-summary {
  border-top: 1px solid rgba(9, 9, 11, 0.1);
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 14px;
}

.canvas-summary div {
  background: #f8fafc;
  border: 1px solid rgba(9, 9, 11, 0.1);
  border-radius: var(--radius);
  min-width: 0;
  padding: 12px;
}

.canvas-summary span {
  color: #64748b;
  display: block;
  font-size: 0.72rem;
  font-weight: 900;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.canvas-summary b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-header {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(248, 250, 247, 0.86);
  border-bottom: 1px solid var(--line);
  display: flex;
  height: 72px;
  justify-content: space-between;
  left: 0;
  padding: 0 clamp(18px, 6%, 58px);
  position: sticky;
  right: 0;
  top: 0;
  z-index: 10;
}

.brand,
.nav-links,
.prompt-shell,
.chip-row,
.proof-strip,
.console-topbar,
.console-head,
.site-sim-nav,
.site-actions,
.tag-row,
footer {
  align-items: center;
  display: flex;
}

.brand {
  font-family: Outfit, "Work Sans", sans-serif;
  font-weight: 800;
  gap: 10px;
  letter-spacing: 0;
}

.brand-mark {
  background:
    linear-gradient(135deg, var(--ink) 0 38%, var(--mint) 38% 62%, var(--blue) 62% 100%);
  border: 1px solid var(--ink);
  display: inline-block;
  height: 18px;
  width: 18px;
}

.nav-links {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 650;
  gap: 24px;
}

.nav-links a,
.header-action,
.primary-button,
.plans-grid a,
footer a {
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

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

.header-action,
.primary-button,
.plans-grid a {
  align-items: center;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  color: var(--panel);
  display: inline-flex;
  font-weight: 750;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
}

.header-action:hover,
.primary-button:hover,
.plans-grid a:hover {
  background: #263026;
  transform: translateY(-2px);
}

.hero {
  display: grid;
  gap: 46px;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.9fr);
  margin: 0 auto;
  max-width: 1440px;
  min-height: calc(100svh - 72px);
  padding: 58px clamp(18px, 6%, 58px) 52px;
}

.hero-copy {
  align-self: center;
  max-width: 820px;
}

.eyebrow,
.mini-label,
.card-kicker,
.journey-grid span,
.prep-grid span,
.plans-grid span {
  color: var(--muted);
  font-family: Outfit, "Work Sans", sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 16px;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  font-family: Outfit, "Work Sans", sans-serif;
  letter-spacing: 0;
}

h1 {
  font-size: 5.8rem;
  line-height: 0.9;
  margin-bottom: 26px;
  max-width: 900px;
}

h2 {
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 18px;
}

h3 {
  font-size: 1.25rem;
  line-height: 1.18;
  margin-bottom: 10px;
}

.hero-lede {
  color: var(--muted);
  font-size: 1.22rem;
  line-height: 1.56;
  max-width: 760px;
}

.prompt-card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(16, 20, 17, 0.18);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 30px 0 20px;
  padding: 14px;
}

.prompt-card label {
  color: var(--muted);
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  margin: 2px 2px 10px;
}

.prompt-shell {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  gap: 10px;
  padding: 8px;
}

.prompt-shell input {
  background: transparent;
  border: 0;
  color: var(--ink);
  flex: 1;
  min-height: 54px;
  min-width: 0;
  outline: 0;
  padding: 0 12px;
}

.prompt-shell input::placeholder {
  color: var(--soft-text);
}

.prompt-shell button:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

.prompt-shell button {
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  color: var(--panel);
  font-weight: 800;
  min-height: 54px;
  padding: 0 18px;
  transition: background-color 180ms ease, transform 180ms ease;
  white-space: nowrap;
}

.prompt-shell button:hover {
  background: #263026;
  transform: translateY(-1px);
}

.chip-row {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.chip {
  background: #f7faf4;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  min-height: 38px;
  padding: 0 12px;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.chip:hover,
.chip.active {
  background: var(--lemon);
  border-color: var(--ink);
  color: var(--ink);
  transform: translateY(-1px);
}

.contact-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 14px;
}

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

.field span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.field input,
.field textarea {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  min-height: 44px;
  min-width: 0;
  outline: 0;
  padding: 11px 12px;
  width: 100%;
}

.field textarea {
  resize: vertical;
}

.full-field {
  margin-top: 10px;
}

.form-status {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.45;
  margin: 12px 2px 0;
  min-height: 1.3em;
}

.form-status.error {
  color: #a4361e;
}

.form-status.success {
  color: #116144;
}

.proof-strip {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  flex-wrap: wrap;
  gap: 0;
  overflow: hidden;
}

.proof-strip span {
  background: rgba(255, 255, 255, 0.68);
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
  min-height: 44px;
  padding: 12px 16px;
}

.proof-strip span:last-child {
  border-right: 0;
}

.launch-console {
  align-self: center;
  background:
    linear-gradient(135deg, rgba(191, 244, 216, 0.78), rgba(255, 255, 255, 0.95) 40%, rgba(184, 220, 255, 0.56)),
    var(--panel);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 0;
  overflow: hidden;
}

.console-topbar {
  background: var(--ink);
  color: var(--panel);
  gap: 8px;
  min-height: 46px;
  padding: 0 14px;
}

.window-dot {
  background: var(--panel);
  border-radius: 999px;
  display: block;
  height: 8px;
  opacity: 0.76;
  width: 8px;
}

.console-topbar strong {
  font-size: 0.78rem;
  margin-left: auto;
}

.console-body {
  padding: 18px;
}

.console-head {
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 16px;
}

.console-head h2 {
  font-size: 1.8rem;
  margin-bottom: 0;
  overflow-wrap: anywhere;
}

.mini-label {
  margin-bottom: 8px;
}

.status-pill {
  background: var(--mint);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 850;
  padding: 8px 10px;
  white-space: nowrap;
}

.site-sim {
  background: var(--panel);
  border: 1px solid rgba(16, 20, 17, 0.18);
  border-radius: var(--radius);
  overflow: hidden;
}

.site-sim-nav {
  border-bottom: 1px solid var(--line);
  gap: 10px;
  min-height: 54px;
  padding: 0 14px;
}

.site-sim-nav span {
  align-items: center;
  background: var(--ink);
  border-radius: var(--radius);
  color: var(--panel);
  display: inline-flex;
  font-family: Outfit, "Work Sans", sans-serif;
  font-weight: 850;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.site-sim-nav strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-sim-nav b {
  background: var(--lemon);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.68rem;
  margin-left: auto;
  padding: 6px 8px;
}

.site-sim-hero {
  background:
    linear-gradient(90deg, rgba(255, 181, 158, 0.36), transparent 42%),
    linear-gradient(180deg, #f9fbf6, #eef7f0);
  min-height: 238px;
  padding: 22px;
}

.site-sim-hero p {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.site-sim-hero h3 {
  font-size: 2rem;
  max-width: 440px;
  overflow-wrap: anywhere;
}

.site-actions {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.site-actions span {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 800;
  padding: 10px 12px;
}

.console-metrics {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 12px;
}

.console-metrics div {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(16, 20, 17, 0.14);
  border-radius: var(--radius);
  min-height: 102px;
  padding: 12px;
}

.console-metrics span {
  color: var(--soft-text);
  display: block;
  font-family: Outfit, "Work Sans", sans-serif;
  font-size: 0.72rem;
  font-weight: 850;
  margin-bottom: 14px;
}

.console-metrics b {
  display: block;
  font-family: Outfit, "Work Sans", sans-serif;
  margin-bottom: 6px;
}

.console-metrics p {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
  margin-bottom: 0;
}

.results-section,
.journey-section,
.prepares-section,
.plans-section,
.faq-section,
.final-cta {
  margin: 0 auto;
  max-width: var(--max);
  padding: 72px 18px;
}

.section-heading {
  margin-bottom: 28px;
  max-width: 780px;
}

.section-heading.compact {
  max-width: 680px;
}

.section-heading p,
.result-card p,
.journey-grid p,
.prep-grid p,
.human-section p,
.plans-grid p,
.faq-list p,
.final-cta p {
  color: var(--muted);
  line-height: 1.62;
}

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

.result-card,
.journey-grid article,
.prep-grid article,
.plans-grid article {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(16, 20, 17, 0.14);
  border-radius: var(--radius);
  min-width: 0;
  padding: 20px;
}

.result-card.wide {
  grid-column: span 2;
}

.card-kicker {
  display: block;
  margin-bottom: 16px;
}

.mini-browser {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 8px;
  margin-top: 22px;
  padding: 14px;
}

.mini-browser div {
  background: var(--soft);
  border-radius: var(--radius);
  height: 12px;
}

.mini-browser div:first-child {
  background: var(--mint);
  width: 55%;
}

.mini-browser div:nth-child(2) {
  width: 88%;
}

.mini-browser div:nth-child(3) {
  width: 72%;
}

.domain-stack,
.clean-list {
  display: grid;
  gap: 10px;
}

.domain-stack span,
.tag-row span {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 750;
  padding: 10px 12px;
  overflow-wrap: anywhere;
}

.tag-row {
  flex-wrap: wrap;
  gap: 8px;
}

.clean-list {
  color: var(--muted);
  list-style: none;
  margin: 0;
  padding: 0;
}

.clean-list li {
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.clean-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.journey-grid,
.prep-grid,
.plans-grid {
  display: grid;
  gap: 14px;
}

.journey-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.prep-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.human-section {
  align-items: center;
  background:
    linear-gradient(90deg, rgba(191, 244, 216, 0.92), rgba(255, 255, 255, 0.84), rgba(184, 220, 255, 0.68));
  border-block: 1px solid var(--line);
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.7fr);
  margin: 40px 0;
  padding: 58px clamp(18px, 6%, 58px);
}

.human-section h2 {
  max-width: 720px;
}

.human-section p {
  font-size: 1.05rem;
  margin-bottom: 0;
}

.plans-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.plans-grid article {
  display: flex;
  flex-direction: column;
  min-height: 280px;
}

.featured-plan {
  background: var(--lemon);
  border-color: var(--ink);
}

.plans-grid p {
  flex: 1;
}

.plans-grid a {
  margin-top: 18px;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(16, 20, 17, 0.14);
  border-radius: var(--radius);
  padding: 0 18px;
}

.faq-list summary {
  cursor: pointer;
  font-family: Outfit, "Work Sans", sans-serif;
  font-weight: 760;
  list-style: none;
  padding: 18px 0;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  float: right;
  font-weight: 800;
}

.faq-list details[open] summary::after {
  content: "-";
}

.faq-list p {
  margin-bottom: 18px;
}

.final-cta {
  text-align: center;
}

.final-cta h2 {
  margin-left: auto;
  margin-right: auto;
  max-width: 820px;
}

.final-cta p {
  margin-left: auto;
  margin-right: auto;
  max-width: 660px;
}

.primary-button {
  margin-top: 12px;
}

footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 750;
  justify-content: space-between;
  padding: 22px clamp(18px, 6%, 58px);
}

footer p {
  margin: 0;
}

.admin-page {
  background:
    linear-gradient(90deg, rgba(16, 20, 17, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(16, 20, 17, 0.04) 1px, transparent 1px),
    #f8faf7;
}

.admin-shell {
  margin: 0 auto;
  max-width: 1180px;
  padding: 32px 18px 72px;
}

.admin-hero {
  align-items: end;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 24px;
}

.admin-hero h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  margin-bottom: 14px;
}

.admin-hero p {
  color: var(--muted);
  line-height: 1.55;
  max-width: 680px;
}

.admin-card,
.lead-card,
.mail-card,
.mail-empty,
.mail-toolbar {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(16, 20, 17, 0.14);
  border-radius: var(--radius);
  box-shadow: 0 16px 42px rgba(27, 36, 28, 0.08);
  padding: 18px;
}

.admin-card label {
  color: var(--muted);
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.lead-list,
.mail-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.lead-head,
.mail-head,
.mail-toolbar {
  align-items: start;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.lead-head {
  margin-bottom: 18px;
}

.lead-head span,
.mail-head span,
.mail-toolbar span,
.mail-empty span {
  background: var(--lemon);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 850;
  margin-bottom: 10px;
  padding: 7px 9px;
  text-transform: uppercase;
}

.mail-card.unread {
  border-color: rgba(16, 20, 17, 0.32);
  box-shadow: 0 18px 50px rgba(27, 36, 28, 0.12);
}

.mail-toolbar {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(191, 244, 216, 0.45), rgba(184, 220, 255, 0.25)),
    rgba(255, 255, 255, 0.9);
}

.mail-toolbar h2,
.mail-empty h2 {
  font-size: 1.7rem;
  margin: 0;
}

.mail-toolbar button,
.mail-actions button {
  align-items: center;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  color: var(--panel);
  display: inline-flex;
  font-weight: 850;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.mail-toolbar button:hover,
.mail-actions button:hover {
  background: var(--lemon);
  color: var(--ink);
}

.mail-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mail-actions button:last-child {
  background: var(--panel);
  color: var(--ink);
}

.mail-head h2,
.lead-head h2 {
  font-size: 2rem;
  margin-bottom: 8px;
  overflow-wrap: anywhere;
}

.lead-head p,
.mail-head p,
.mail-empty p,
.lead-grid p,
.brief-block p,
.brief-block li,
.mail-preview {
  color: var(--muted);
  line-height: 1.55;
}

.mail-preview {
  margin: 14px 0;
}

.mail-body {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
}

.mail-body summary {
  cursor: pointer;
  font-weight: 850;
}

.mail-body pre {
  color: var(--ink);
  font: 0.92rem/1.6 "Work Sans", system-ui, sans-serif;
  margin: 14px 0 0;
  max-height: 420px;
  overflow: auto;
  white-space: pre-wrap;
}

.lead-head select {
  background: var(--panel);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  min-height: 44px;
  padding: 0 12px;
}

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

.lead-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.lead-actions button,
.lead-actions a {
  align-items: center;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  color: var(--panel);
  display: inline-flex;
  font-weight: 850;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
}

.lead-actions a {
  background: var(--panel);
  color: var(--ink);
}

.lead-actions button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.lead-actions span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.agent-panel {
  background:
    linear-gradient(90deg, rgba(244, 255, 157, 0.28), rgba(255, 255, 255, 0.94), rgba(191, 244, 216, 0.34));
  border: 1px solid rgba(16, 20, 17, 0.16);
  border-radius: var(--radius);
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px;
}

.research-panel {
  background:
    linear-gradient(90deg, rgba(184, 220, 255, 0.34), rgba(255, 255, 255, 0.96), rgba(244, 255, 157, 0.26));
  border: 1px solid rgba(16, 20, 17, 0.16);
  border-radius: var(--radius);
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px;
}

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

.research-head b,
.research-evidence-grid b {
  display: block;
  font-family: Outfit, "Work Sans", sans-serif;
  margin-bottom: 8px;
}

.research-head p,
.research-evidence-grid li,
.research-status {
  color: var(--muted);
  line-height: 1.52;
}

.research-head p {
  margin-bottom: 0;
}

.research-head span {
  background: var(--blue);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 850;
  padding: 8px 10px;
  text-transform: uppercase;
  white-space: nowrap;
}

.research-console {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(220px, 0.62fr) minmax(0, 1.38fr);
}

.research-source,
.research-edit-grid label {
  display: grid;
  gap: 7px;
}

.research-source span,
.research-edit-grid span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.research-source textarea,
.research-edit-grid input,
.research-edit-grid textarea {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  min-height: 42px;
  min-width: 0;
  outline: 0;
  padding: 10px 11px;
  resize: vertical;
  width: 100%;
}

.research-source textarea {
  min-height: 100%;
}

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

.research-edit-grid .wide {
  grid-column: span 1;
}

.research-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.research-actions button {
  align-items: center;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  color: var(--panel);
  display: inline-flex;
  font-weight: 850;
  justify-content: center;
  min-height: 40px;
  padding: 0 12px;
}

.research-actions button:nth-child(2) {
  background: var(--panel);
  color: var(--ink);
}

.research-actions button:disabled {
  cursor: wait;
  opacity: 0.68;
}

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

.research-evidence-grid div {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
}

.research-evidence-grid ul {
  margin: 0;
  padding-left: 18px;
}

.research-status {
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
  font-weight: 750;
  margin: 0;
  padding-top: 10px;
}

.research-status.error {
  color: #a4361e;
}

.research-status.success {
  color: #116144;
}

.agent-panel b,
.agent-review-grid b {
  display: block;
  font-family: Outfit, "Work Sans", sans-serif;
  margin-bottom: 8px;
}

.agent-panel p,
.agent-review-grid li,
.agent-decisions {
  color: var(--muted);
  line-height: 1.52;
}

.agent-panel p {
  margin-bottom: 0;
}

.agent-review-head {
  align-items: start;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.agent-review-head span {
  background: var(--lemon);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 850;
  padding: 8px 10px;
  text-transform: uppercase;
  white-space: nowrap;
}

.agent-summary {
  font-weight: 750;
}

.agent-preview-grid,
.agent-review-grid {
  display: grid;
  gap: 10px;
}

.agent-preview-grid {
  grid-template-columns: 1.25fr 0.75fr;
}

.agent-review-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.agent-preview-grid div,
.agent-review-grid div {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
}

.agent-preview-grid small {
  color: var(--soft-text);
  display: block;
  font-size: 0.72rem;
  font-weight: 850;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.agent-preview-grid h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  overflow-wrap: anywhere;
}

.agent-review-grid ul {
  margin: 0;
  padding-left: 18px;
}

.agent-decisions {
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  font-weight: 750;
  padding-top: 10px;
}

.agent-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.agent-actions button {
  align-items: center;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  color: var(--panel);
  display: inline-flex;
  font-weight: 850;
  justify-content: center;
  min-height: 40px;
  padding: 0 12px;
}

.agent-actions button:first-child:not(:only-child) {
  background: var(--panel);
  color: var(--ink);
}

.agent-actions button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.agent-status {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 750;
}

.agent-status.error {
  color: #a4361e;
}

.agent-status.success {
  color: #116144;
}

.domain-panel {
  background:
    linear-gradient(90deg, rgba(191, 244, 216, 0.42), rgba(255, 255, 255, 0.92), rgba(184, 220, 255, 0.36));
  border: 1px solid rgba(16, 20, 17, 0.16);
  border-radius: var(--radius);
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(240px, 0.9fr) minmax(280px, 1.1fr);
  margin-bottom: 16px;
  padding: 14px;
}

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

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

.domain-field input {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  min-height: 44px;
  min-width: 0;
  outline: 0;
  padding: 0 12px;
  width: 100%;
}

.domain-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.domain-actions button,
.domain-actions a {
  align-items: center;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  color: var(--panel);
  display: inline-flex;
  font-weight: 850;
  justify-content: center;
  min-height: 40px;
  padding: 0 12px;
}

.domain-actions .secondary-domain,
.domain-actions a {
  background: var(--panel);
  color: var(--ink);
}

.domain-actions button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.domain-status {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 750;
  grid-column: 1 / -1;
  line-height: 1.45;
  margin: 0;
  overflow-wrap: anywhere;
}

.domain-status.error {
  color: #a4361e;
}

.domain-status.success {
  color: #116144;
}

.lead-grid div,
.brief-block {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
}

.lead-grid b,
.brief-block b {
  display: block;
  font-family: Outfit, "Work Sans", sans-serif;
  margin-bottom: 8px;
}

.lead-grid p,
.brief-block p {
  margin-bottom: 0;
  overflow-wrap: anywhere;
}

.brief-block ul {
  margin: 0;
  padding-left: 18px;
}

@media (max-width: 1120px) {
  .builder-shell {
    grid-template-columns: 1fr;
  }

  .builder-chat,
  .builder-canvas {
    max-height: none;
    min-height: auto;
  }

  .builder-canvas {
    grid-template-rows: auto minmax(520px, 70svh) auto;
  }

  h1 {
    font-size: 4.65rem;
  }

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

  .launch-console {
    align-self: stretch;
  }

  .journey-grid,
  .prep-grid,
  .plans-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-grid,
  .lead-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .builder-shell {
    padding: 10px;
  }

  .builder-chat-head,
  .canvas-toolbar {
    align-items: stretch;
    flex-direction: column;
    min-height: 0;
    padding: 14px;
  }

  .builder-intro h1 {
    font-size: 2.7rem;
  }

  .chat-message {
    max-width: 100%;
  }

  .send-button {
    margin-left: 0;
    width: 100%;
  }

  .quick-chip {
    flex: 1 1 100%;
  }

  .canvas-actions {
    width: 100%;
  }

  .canvas-actions button,
  .canvas-actions a {
    flex: 1;
  }

  .builder-canvas {
    grid-template-rows: auto minmax(460px, 68svh) auto;
  }

  .canvas-frame-wrap {
    padding: 10px;
  }

  .canvas-summary {
    grid-template-columns: 1fr;
  }

  .site-header {
    height: auto;
    min-height: 66px;
  }

  .nav-links {
    display: none;
  }

  h1 {
    font-size: 3.25rem;
    line-height: 0.95;
  }

  h2 {
    font-size: 2.2rem;
  }

  .hero {
    padding-top: 34px;
  }

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

  .prompt-shell button {
    white-space: normal;
  }

  .proof-strip span {
    flex: 1 1 50%;
  }

  .console-metrics,
  .result-grid,
  .journey-grid,
  .prep-grid,
  .plans-grid,
  .human-section,
  .contact-grid,
  .lead-grid,
  .research-console,
  .research-edit-grid,
  .research-evidence-grid,
  .agent-preview-grid,
  .agent-review-grid,
  .domain-panel {
    grid-template-columns: 1fr;
  }

  .result-card.wide {
    grid-column: auto;
  }

  .site-sim-hero h3 {
    font-size: 1.55rem;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .admin-hero,
  .lead-head,
  .mail-head,
  .mail-toolbar,
  .agent-review-head {
    align-items: stretch;
    flex-direction: column;
  }

  .mail-actions {
    width: 100%;
  }

  .mail-actions button,
  .mail-toolbar button {
    flex: 1;
  }
}

@media (max-width: 430px) {
  h1 {
    font-size: 2.8rem;
  }

  .hero-lede {
    font-size: 1.04rem;
  }

  .header-action {
    padding: 0 12px;
  }

  .prompt-card,
  .console-body,
  .result-card,
  .journey-grid article,
  .prep-grid article,
  .plans-grid article {
    padding: 14px;
  }

  .chip {
    flex: 1 1 100%;
  }
}

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