:root {
  --bg: #eef2ef;
  --surface: #ffffff;
  --surface-2: #f7f8f4;
  --ink: #14211c;
  --muted: #62716b;
  --line: #d8e0da;
  --teal: #128777;
  --teal-dark: #0d665d;
  --blue: #2563eb;
  --amber: #ba7a14;
  --red: #b5473f;
  --shadow: 0 18px 50px rgba(21, 32, 28, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(17, 127, 115, 0.09), rgba(238, 242, 239, 0) 360px),
    var(--bg);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.workspace {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 24px 24px 36px;
}

.topbar,
.brand,
.systemStatus,
.wizardControls,
.breadcrumbWrap,
.railHeader,
.statusItem,
.demoActions,
.browserChrome,
.demoCanvas nav,
.demoCanvas nav div,
.demoHeader,
.aiStepper {
  display: flex;
  align-items: center;
}

.topbar {
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.brand {
  gap: 12px;
}

.brandMark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: #ffffff;
  background: var(--teal-dark);
  border-radius: 8px;
  font-size: 20px;
  font-weight: 900;
}

.brand strong {
  display: block;
  font-size: 16px;
}

.brand small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
}

.systemStatus {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.systemStatus span {
  min-height: 34px;
  padding: 7px 10px;
  color: #22312c;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
}

.wizardShell {
  position: relative;
  padding: 18px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.wizardControls {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 12px;
  max-width: 1120px;
  margin: 0 auto;
}

.wizardControls > button,
.menuButton,
.crumb,
.stepMenu button,
.aiStepper button,
.demoHeader button,
.wizardUrlRow button,
.choiceCard,
.demoActions button,
.demoCanvas nav button {
  min-height: 40px;
  color: #21302b;
  background: #f8faf8;
  border: 1px solid #d5ded7;
  border-radius: 8px;
  font-weight: 850;
}

.wizardControls > button {
  font-size: 24px;
}

.wizardControls > button:disabled,
.aiStepper button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.breadcrumbWrap {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
}

.wizardBreadcrumb {
  display: flex;
  gap: 8px;
  justify-content: center;
  overflow-x: auto;
  padding: 2px;
  scrollbar-width: thin;
}

.crumb {
  flex: 0 0 auto;
  min-width: 108px;
  padding: 0 12px;
  color: #52615b;
  white-space: nowrap;
}

.crumb.done {
  color: var(--teal-dark);
  background: #eef8f4;
  border-color: #bdded5;
}

.crumb.active {
  color: #ffffff;
  background: var(--teal-dark);
  border-color: var(--teal-dark);
}

.stepMenu {
  position: absolute;
  z-index: 10;
  top: 68px;
  left: 50%;
  display: grid;
  width: min(520px, calc(100% - 36px));
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(21, 32, 28, 0.16);
  transform: translateX(-50%);
}

.stepMenu button {
  justify-content: flex-start;
  padding: 0 12px;
}

.stepMenu button.active {
  color: #ffffff;
  background: var(--teal);
  border-color: var(--teal);
}

.progressTrack {
  height: 7px;
  margin: 16px auto 0;
  overflow: hidden;
  background: #e3e9e5;
  border-radius: 8px;
}

.progressTrack span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--blue));
  border-radius: inherit;
  transition: width 240ms ease;
}

.aiQuestionBar {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 14px;
  align-items: flex-start;
  max-width: 1120px;
  min-height: 92px;
  margin: 18px auto 0;
  padding: 18px;
  color: #e9f6f2;
  background: #14231e;
  border: 1px solid #26443b;
  border-radius: 8px;
}

.aiQuestionBar > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  color: #8fd3c7;
  background: rgba(143, 211, 199, 0.1);
  border: 1px solid rgba(143, 211, 199, 0.22);
  border-radius: 8px;
  font-weight: 900;
}

.aiQuestionBar p {
  margin: 3px 0 0;
  color: #f4fbf8;
  font-size: 22px;
  font-weight: 850;
  line-height: 1.3;
}

.aiQuestionBar i {
  display: inline-block;
  width: 9px;
  height: 1.1em;
  margin-left: 4px;
  vertical-align: -0.17em;
  background: #8fd3c7;
  animation: blink 780ms steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.wizardStage {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 236px;
  gap: 18px;
  align-items: flex-start;
  margin-top: 18px;
}

.contextRail,
.statusRail,
.stageCard {
  min-width: 0;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(21, 32, 28, 0.06);
}

.contextRail,
.statusRail {
  padding: 16px;
}

.stageCard {
  min-height: 620px;
  padding: 22px;
}

.railHeader {
  gap: 8px;
  margin-bottom: 14px;
  color: #20302a;
}

.contextRail dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.contextRail div {
  padding-bottom: 11px;
  border-bottom: 1px solid #e2e8e3;
}

.contextRail div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.contextRail dt {
  color: var(--amber);
  font-size: 12px;
  font-weight: 900;
}

.contextRail dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  color: #26352f;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.35;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.siteStep,
.choiceStep,
.aiStep,
.demoStep {
  display: grid;
  gap: 20px;
}

.siteStep {
  max-width: 820px;
  margin: 0 auto;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

.siteStep h1,
.stageTitle h1,
.demoHeader h1 {
  margin: 0;
  max-width: 820px;
  font-size: 38px;
  line-height: 1.08;
}

.siteStep p,
.demoHeader p {
  max-width: 760px;
  margin: 10px 0 0;
  color: #4d5d57;
  line-height: 1.55;
}

.siteStep label {
  color: #2d3d36;
  font-size: 13px;
  font-weight: 900;
}

.wizardUrlRow {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) 132px;
  gap: 10px;
  align-items: center;
  min-height: 62px;
  padding: 10px 10px 10px 16px;
  background: #f8faf7;
  border: 1px solid #cfd8d1;
  border-radius: 8px;
}

.wizardUrlRow input {
  min-width: 0;
  height: 42px;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
}

.wizardUrlRow button,
.primaryStepButton,
.demoHeader button,
.demoActions button,
.demoCanvas nav button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #ffffff;
  background: var(--teal-dark);
  border-color: var(--teal-dark);
}

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

.choiceCard {
  position: relative;
  display: grid;
  min-height: 172px;
  align-content: flex-start;
  gap: 9px;
  padding: 16px;
  text-align: left;
  color: #26352f;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.choiceCard:hover,
.choiceCard.selected {
  background: #eef8f4;
  border-color: #8ccdc1;
  transform: translateY(-2px);
}

.choiceCard .meta {
  width: fit-content;
  padding: 4px 8px;
  color: var(--amber);
  background: #fff8e7;
  border: 1px solid #ead8a5;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 900;
}

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

.choiceCard p {
  margin: 0;
  color: #52615b;
  font-size: 14px;
  line-height: 1.42;
}

.choiceCard .check {
  position: absolute;
  right: 12px;
  bottom: 12px;
  color: var(--teal-dark);
}

.loadingState {
  display: grid;
  min-height: 420px;
  place-items: center;
  align-content: center;
  gap: 12px;
  text-align: center;
}

.loader {
  width: 32px;
  height: 32px;
  border: 3px solid #cfe5df;
  border-top-color: var(--teal-dark);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loadingState strong {
  font-size: 22px;
}

.loadingState p {
  max-width: 520px;
  margin: 0;
  color: #52615b;
  line-height: 1.5;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.aiQuestionCard {
  display: grid;
  gap: 16px;
  padding: 20px;
  background: #f8faf8;
  border: 1px solid #d6dfd8;
  border-radius: 8px;
}

.aiQuestionCard div {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: flex-start;
}

.aiQuestionCard span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--amber);
  background: #fff8e7;
  border: 1px solid #ead8a5;
  border-radius: 8px;
  font-weight: 900;
}

.aiQuestionCard strong {
  font-size: 26px;
  line-height: 1.25;
}

.aiQuestionCard textarea {
  min-height: 180px;
  padding: 14px;
  resize: vertical;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid #cfd8d1;
  border-radius: 8px;
  outline-color: var(--teal);
}

.aiStepper {
  justify-content: space-between;
  gap: 12px;
}

.aiStepper > div {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.aiStepper > div button {
  width: 12px;
  height: 12px;
  min-height: 12px;
  padding: 0;
  background: #cfdbd4;
  border: 0;
  border-radius: 50%;
}

.aiStepper > div button.active {
  background: var(--teal-dark);
}

.aiStepper button {
  padding: 0 14px;
}

.demoHeader {
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.demoHeader button {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 14px;
}

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

.scoreStack {
  display: grid;
  gap: 10px;
}

.wizardScore {
  padding: 12px;
  background: #f8faf8;
  border: 1px solid #dbe2dc;
  border-radius: 8px;
}

.wizardScore div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 900;
}

.wizardMeter {
  display: block;
  height: 8px;
  overflow: hidden;
  background: #e0e7e1;
  border-radius: 8px;
}

.wizardMeter i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--blue));
  border-radius: inherit;
}

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

.strategyStack div {
  padding: 13px;
  background: #f8faf8;
  border: 1px solid #dbe2dc;
  border-radius: 8px;
}

.strategyStack span,
.demoSections span {
  color: var(--amber);
  font-size: 12px;
  font-weight: 900;
}

.strategyStack p {
  margin: 8px 0 0;
  color: #46554f;
  font-size: 13px;
  line-height: 1.42;
}

.browserFrame {
  overflow: hidden;
  background: #dfe5e0;
  border: 1px solid #cbd5ce;
  border-radius: 8px;
}

.browserChrome {
  gap: 7px;
  min-height: 38px;
  padding: 0 12px;
  background: #edf1ed;
  border-bottom: 1px solid #cbd5ce;
}

.browserChrome span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.browserChrome span:nth-child(1) {
  background: #cf5f58;
}

.browserChrome span:nth-child(2) {
  background: #d9a63d;
}

.browserChrome span:nth-child(3) {
  background: #4e9b72;
}

.browserChrome p {
  flex: 1;
  min-width: 0;
  margin: 0 0 0 8px;
  overflow: hidden;
  color: #5a6762;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.demoCanvas {
  padding: 22px;
  background: #fbfcfa;
}

.demoCanvas nav {
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
}

.demoCanvas nav strong {
  font-size: 16px;
}

.demoCanvas nav div {
  gap: 14px;
  color: #5a6862;
  font-size: 13px;
  font-weight: 750;
}

.demoCanvas nav button {
  min-height: 34px;
  padding-inline: 12px;
  font-size: 12px;
}

.demoHero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(220px, 0.75fr);
  gap: 22px;
  align-items: stretch;
  padding: 26px;
  background: #eef5f1;
  border: 1px solid #d3e3d9;
  border-radius: 8px;
}

.demoHero h3 {
  margin: 0;
  max-width: 600px;
  font-size: 34px;
  line-height: 1.08;
}

.demoHero p {
  max-width: 680px;
  margin: 12px 0 0;
  color: #4b5a55;
  line-height: 1.55;
}

.demoActions {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.demoActions button {
  min-height: 40px;
  padding: 0 14px;
}

.demoActions button:nth-child(2) {
  color: var(--teal-dark);
  background: #ffffff;
  border-color: #c4d6cf;
}

.demoSignalBox {
  display: grid;
  align-content: flex-start;
  gap: 10px;
  padding: 16px;
  background: #ffffff;
  border: 1px solid #d3e1d8;
  border-radius: 8px;
}

.demoSignalBox span {
  padding: 10px;
  color: #2c3d36;
  background: #f8faf7;
  border-left: 3px solid var(--teal);
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.35;
}

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

.demoSections div {
  min-height: 132px;
  padding: 14px;
  background: #ffffff;
  border: 1px solid #d8e0da;
  border-radius: 8px;
}

.demoSections strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
}

.demoSections p {
  margin: 8px 0 0;
  color: #53615c;
  font-size: 13px;
  line-height: 1.45;
}

.statusList {
  display: grid;
  gap: 9px;
}

.statusItem {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 9px;
  min-height: 38px;
  color: #5b6963;
}

.statusItem span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: #6d7c76;
  background: #f7faf8;
  border: 1px solid #d8e0db;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
}

.statusItem.done {
  color: var(--teal-dark);
  font-weight: 850;
}

.statusItem.done span {
  color: var(--teal-dark);
  background: #eef8f4;
  border-color: #bdded5;
}

.statusItem p {
  margin: 0;
  font-size: 14px;
}

.miniInsight {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding: 12px;
  color: #35534b;
  background: #eef8f4;
  border: 1px solid #cce5de;
  border-radius: 8px;
}

.miniInsight p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}

.errorText {
  margin: 0;
  color: var(--red);
  font-size: 14px;
  font-weight: 800;
}

@media (max-width: 1180px) {
  .wizardStage {
    grid-template-columns: 1fr;
  }

  .contextRail,
  .statusRail {
    display: none;
  }

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

@media (max-width: 760px) {
  .workspace {
    padding: 14px;
  }

  .topbar,
  .aiStepper,
  .demoHeader,
  .demoCanvas nav,
  .demoCanvas nav div {
    align-items: stretch;
    flex-direction: column;
  }

  .wizardShell {
    padding: 12px;
  }

  .wizardControls {
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    gap: 8px;
  }

  .breadcrumbWrap {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .wizardBreadcrumb {
    justify-content: flex-start;
  }

  .crumb {
    min-width: 94px;
  }

  .aiQuestionBar {
    grid-template-columns: 1fr;
    min-height: 132px;
    padding: 14px;
  }

  .aiQuestionBar > span {
    width: 74px;
  }

  .aiQuestionBar p {
    font-size: 19px;
  }

  .stageCard {
    min-height: 0;
    padding: 16px;
  }

  .siteStep h1,
  .stageTitle h1,
  .demoHeader h1 {
    font-size: 29px;
  }

  .wizardUrlRow {
    grid-template-columns: 24px minmax(0, 1fr);
  }

  .wizardUrlRow button {
    grid-column: 1 / -1;
  }

  .choiceGrid,
  .demoLayout,
  .strategyStack,
  .demoSections,
  .demoHero {
    grid-template-columns: 1fr;
  }

  .choiceCard {
    min-height: 142px;
  }

  .aiQuestionCard div {
    grid-template-columns: 1fr;
  }

  .aiQuestionCard strong {
    font-size: 20px;
  }

  .aiStepper button,
  .demoHeader button {
    width: 100%;
  }

  .stepMenu {
    grid-template-columns: 1fr;
    top: 60px;
  }
}

/* Private app shell */
.authPage {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(145deg, rgba(18, 135, 119, 0.14), rgba(37, 99, 235, 0.06) 44%, rgba(238, 242, 239, 0) 74%),
    var(--bg);
}

.loginCard {
  width: min(440px, 100%);
  padding: 28px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(216, 224, 218, 0.95);
  border-radius: 10px;
  box-shadow: 0 28px 80px rgba(20, 33, 28, 0.14);
}

.loginBrand,
.loginIntro,
.loginForm,
.accountPanel,
.passwordForm {
  display: grid;
}

.loginBrand {
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-bottom: 34px;
}

.loginBrand strong,
.loginBrand small {
  display: block;
}

.loginBrand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
}

.loginIntro {
  gap: 4px;
  margin-bottom: 22px;
}

.loginIntro h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.05;
}

.loginForm {
  gap: 10px;
}

.loginForm label {
  color: #26352f;
  font-size: 13px;
  font-weight: 900;
}

.loginForm input,
.passwordForm input {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  color: var(--ink);
  background: #fbfcfa;
  border: 1px solid #cfd8d1;
  border-radius: 8px;
  outline-color: var(--teal);
}

.loginForm button,
.passwordForm button,
.topbarButton {
  min-height: 42px;
  padding: 0 14px;
  color: #ffffff;
  background: #0d665d;
  border: 1px solid #0d665d;
  border-radius: 8px;
  font-weight: 850;
}

.loginForm button {
  margin-top: 8px;
}

.loginForm button:disabled,
.passwordForm button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.formMessage {
  min-height: 18px;
  margin: 2px 0 0;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
}

.passwordForm + .formMessage {
  color: #0d665d;
}

.topbarButton {
  background: #14231e;
  border-color: #14231e;
}

.topbarButton.ghost {
  color: #26352f;
  background: #ffffff;
  border-color: #d5ded7;
}

.accountPanel {
  width: min(720px, 100%);
  margin: 0 0 14px auto;
  grid-template-columns: minmax(170px, 0.8fr) minmax(0, 2fr);
  gap: 18px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 18px 44px rgba(20, 33, 28, 0.1);
}

.accountPanel h2 {
  margin: 0;
  font-size: 24px;
}

.passwordForm {
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  gap: 10px;
  align-items: center;
}

.passwordForm + .formMessage {
  grid-column: 2 / -1;
}

.workspace {
  width: min(1220px, 100%);
  padding-top: 18px;
}

.topbar {
  padding: 12px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(216, 224, 218, 0.92);
  border-radius: 10px;
  backdrop-filter: blur(14px);
}

.brandMark {
  background: linear-gradient(145deg, #0d665d, #2563eb);
}

.wizardShell {
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 26px 80px rgba(20, 33, 28, 0.1);
}

.wizardControls,
.aiQuestionBar {
  max-width: 1020px;
}

.wizardStage {
  grid-template-columns: minmax(0, 1020px);
  justify-content: center;
}

.contextRail,
.statusRail,
.miniInsight {
  display: none;
}

.stageCard {
  min-height: 560px;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 18px 58px rgba(20, 33, 28, 0.08);
}

.aiQuestionBar {
  min-height: 76px;
  padding: 16px 18px;
  background: linear-gradient(135deg, #111c19, #17342d);
  border-radius: 12px;
}

.aiQuestionBar p {
  font-size: 20px;
}

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

.choiceCard {
  min-height: 124px;
  padding: 16px;
  background: #fbfcfa;
}

.choiceCard p {
  display: none;
}

.choiceCard strong {
  font-size: 18px;
}

.choiceCard .meta {
  color: #0d665d;
  background: #eef8f4;
  border-color: #cfe8e0;
}

.choiceCard:hover,
.choiceCard.selected {
  background: #f2fbf8;
  box-shadow: 0 12px 28px rgba(18, 135, 119, 0.1);
}

.siteStep {
  min-height: 430px;
  align-content: center;
}

.siteStep h1,
.stageTitle h1,
.demoHeader h1 {
  font-size: 44px;
}

.siteStep p {
  max-width: 520px;
}

.wizardUrlRow {
  min-height: 68px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(207, 216, 209, 0.45);
}

.aiQuestionCard {
  padding: 24px;
  background: #fbfcfa;
  border-radius: 12px;
}

.aiQuestionCard strong {
  max-width: 860px;
}

.aiQuestionCard textarea {
  min-height: 150px;
}

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

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

.strategyStack {
  display: none;
}

.browserFrame {
  border-radius: 12px;
  box-shadow: 0 22px 60px rgba(20, 33, 28, 0.12);
}

.demoCanvas {
  padding: 26px;
}

.demoHero {
  background:
    linear-gradient(135deg, rgba(18, 135, 119, 0.14), rgba(37, 99, 235, 0.08)),
    #f8fbf8;
  border-radius: 12px;
}

.demoHero h3 {
  font-size: 42px;
}

.demoSections div,
.demoSignalBox {
  border-radius: 10px;
}

@media (max-width: 980px) {
  .choiceGrid,
  .scoreStack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .accountPanel,
  .passwordForm {
    grid-template-columns: 1fr;
  }

  .passwordForm + .formMessage {
    grid-column: 1;
  }
}

@media (max-width: 760px) {
  .loginCard,
  .stageCard {
    padding: 18px;
  }

  .systemStatus {
    justify-content: stretch;
  }

  .systemStatus span,
  .topbarButton {
    width: 100%;
  }

  .choiceGrid,
  .scoreStack {
    grid-template-columns: 1fr;
  }

  .siteStep h1,
  .stageTitle h1,
  .demoHeader h1,
  .demoHero h3 {
    font-size: 30px;
  }
}
