/* =========================================================
   IR Buddy — MVP1 production stylesheet
   Consolidated from approved design references.
   Palette, robot, card stack, and wizard states preserved.
   ========================================================= */

:root {
  --bg: #fbfbf9;
  --bg-soft: #f3f5f6;
  --text: #0f1720;
  --muted: #60707a;
  --deep-teal: #0c676d;
  --deep-teal-2: #0b555a;
  --light-teal: #90d8d4;
  --navy: #11233c;
  --navy-2: #183357;
  --silver: #d8e0e4;
  --silver-2: #b7c4cb;
  --white: #ffffff;
  --surface: #fbfdfd;
  --surface-alt: #f7fbfb;
  --hairline: rgba(17, 35, 60, 0.08);
  --hairline-strong: rgba(17, 35, 60, 0.12);
  --danger: #9a3b2f;

  --shadow-lg: 0 24px 60px rgba(17, 35, 60, 0.14);
  --shadow-md: 0 14px 34px rgba(17, 35, 60, 0.10);
  --shadow-sm: 0 12px 28px rgba(17, 35, 60, 0.05);

  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'DM Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top center, rgba(144,216,212,0.18), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.mono { font-family: 'DM Mono', ui-monospace, Menlo, Consolas, monospace; }

.page {
  min-height: 100vh;
  padding: 24px 24px 0;
  display: flex;
  flex-direction: column;
}

/* ======== HEADER ======== */
.site-header {
  position: sticky;
  top: 12px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 10px 14px 10px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.82);
  border: 1px solid var(--hairline);
  box-shadow: 0 10px 26px rgba(17,35,60,0.06);
  backdrop-filter: blur(10px);
}
.home-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.01em;
}
.home-link.small { font-size: 0.95rem; }
.home-link .dot {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--deep-teal), var(--navy));
  display: inline-flex; align-items: center; justify-content: center;
  color: white; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.04em;
}
.home-link .logo {
  display: block;
  height: 56px;
  width: auto;
  object-fit: contain;
}
.home-link.small .logo { height: 44px; }
.header-nav {
  display: inline-flex; align-items: center; gap: 4px;
}
.nav-link {
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 14px;
  border-radius: 999px;
  transition: background 160ms ease;
}
.nav-link:hover { background: rgba(12,103,109,0.08); color: var(--deep-teal); }

/* ======== BUTTONS ======== */
.ghost-btn, .primary-btn {
  min-height: 52px;
  border-radius: 999px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  text-decoration: none;
  border: none;
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.ghost-btn {
  color: var(--navy);
  background: rgba(17,35,60,0.05);
}
.ghost-btn:hover { background: rgba(17,35,60,0.10); }
.primary-btn {
  color: white;
  background: linear-gradient(135deg, var(--deep-teal), var(--deep-teal-2));
  box-shadow: 0 16px 30px rgba(12,103,109,0.22);
}
.primary-btn:hover { transform: translateY(-1px); box-shadow: 0 20px 36px rgba(12,103,109,0.28); }
.primary-btn.compact { min-height: 42px; padding: 0 16px; font-size: 0.92rem; }
.primary-btn:disabled, .ghost-btn:disabled {
  opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none;
}
.btn-spinner {
  width: 16px; height: 16px; margin-left: 10px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: white;
  border-radius: 50%;
  display: none;
  animation: spin 700ms linear infinite;
}
.primary-btn.loading .btn-spinner { display: inline-block; }
.primary-btn.loading .btn-label { opacity: 0.75; }
@keyframes spin { to { transform: rotate(360deg); } }

.ghost-pill {
  min-height: 38px;
  border-radius: 999px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy);
  background: rgba(17,35,60,0.05);
  border: 1px solid var(--hairline);
  cursor: pointer;
  font-family: inherit;
}
.ghost-pill:hover { background: rgba(12,103,109,0.08); border-color: rgba(12,103,109,0.2); color: var(--deep-teal); }

/* ======== HERO ======== */
.hero {
  width: min(1180px, 100%);
  margin: 28px auto 0;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 16px;
}
.hero h1 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(2.5rem, 5vw, 4.9rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: var(--navy);
  font-weight: 800;
}
.hero-sub {
  margin: 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.15vw, 1.1rem);
  line-height: 1.55;
}

/* ======== ROBOT ======== */
.robot-wrap {
  position: relative;
  width: 270px;
  height: 210px;
  display: grid;
  place-items: center;
}
.glow {
  position: absolute;
  inset: auto 24px 8px 24px;
  height: 48px;
  background: radial-gradient(ellipse at center, rgba(12,103,109,0.16), rgba(12,103,109,0.03) 70%, transparent 78%);
  filter: blur(10px);
}
.robot {
  position: relative;
  width: 212px;
  height: 220px;
  animation: float 4.8s ease-in-out infinite;
  filter: drop-shadow(0 22px 26px rgba(17,35,60,0.12));
}
.robot-v2 .thruster-ring {
  position: absolute;
  left: 44px; right: 44px; bottom: 6px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(17,35,60,0.18), rgba(17,35,60,0.03));
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.28);
}
.robot-v2 .thruster-ring:after {
  content: '';
  position: absolute;
  left: 18px; right: 18px; top: 5px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(144,216,212,0.15), rgba(144,216,212,0.5), rgba(144,216,212,0.15));
}
.robot-v2 .antenna {
  position: absolute;
  width: 6px; height: 26px; top: 4px;
  background: linear-gradient(180deg, #8ea1aa, #6c818d);
  border-radius: 999px;
}
.robot-v2 .antenna:after {
  content: '';
  position: absolute;
  width: 14px; height: 14px;
  left: -4px; top: -8px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #e5fffd, #8ee1db 58%, #48bdb6 100%);
  box-shadow: 0 0 16px rgba(144,216,212,0.45);
}
.robot-v2 .antenna-left { left: 64px; transform: rotate(-12deg); }
.robot-v2 .antenna-right { right: 64px; transform: rotate(12deg); }
.robot-v2 .head-shell {
  position: absolute;
  left: 28px; right: 28px; top: 14px;
  height: 96px;
  border-radius: 30px;
  background: radial-gradient(circle at 30% 18%, rgba(255,255,255,0.96), rgba(255,255,255,0.88) 26%, rgba(230,238,242,0.98) 58%, rgba(205,218,224,1) 100%);
  border: 3px solid #7b909b;
  box-shadow: inset -10px -12px 18px rgba(101,123,135,0.14), inset 10px 10px 14px rgba(255,255,255,0.72), 0 8px 16px rgba(17,35,60,0.06);
}
.robot-v2 .head-rim {
  position: absolute; inset: 5px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255,255,255,0.55), rgba(255,255,255,0));
  pointer-events: none;
}
.robot-v2 .face-screen {
  position: absolute; inset: 10px 10px 12px;
  border-radius: 24px;
  background: linear-gradient(180deg, #16314f, #0d2136 68%, #132b44 100%);
  border: 2px solid rgba(126,157,171,0.35);
  overflow: hidden;
}
.robot-v2 .face-screen:before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,0.18), transparent 36% 64%, rgba(124,233,225,0.08));
}
.robot-v2 .eye {
  position: absolute;
  width: 40px; height: 30px;
  top: 50%;
  border-radius: 18px 18px 10px 10px;
  transform: translateY(-50%);
  background:
    radial-gradient(circle at 50% 24%, rgba(244,255,254,0.26), transparent 34%),
    repeating-linear-gradient(180deg, #e7fffd 0 1px, #b8fff8 1px 2px, #63f3e9 2px 3px, #1fd5ca 3px 4px, #0e8e94 4px 5px);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.16), 0 0 16px rgba(47,225,210,0.30);
  image-rendering: pixelated;
  overflow: hidden;
}
.robot-v2 .eye:before {
  content: '';
  position: absolute;
  inset: 4px 6px 5px 6px;
  border-radius: 14px 14px 8px 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.18), transparent 38%),
    repeating-linear-gradient(180deg, #f4fffe 0 1px, #c4fff9 1px 2px, #74f7ee 2px 3px, #25d6cd 3px 4px, #10979a 4px 5px);
  opacity: 0.98;
}
.robot-v2 .eye:after {
  content: '';
  position: absolute;
  left: 7px; right: 7px; bottom: 4px;
  height: 4px;
  border-radius: 4px;
  background: rgba(0,52,56,0.38);
}
.robot-v2 .eye-left { left: 30%; transform: translate(-50%, -50%); }
.robot-v2 .eye-right { left: 70%; transform: translate(-50%, -50%); }
.robot-v2 .neck {
  position: absolute;
  left: 91px; top: 112px;
  width: 26px; height: 14px;
  border-radius: 10px;
  background: linear-gradient(180deg, #8ca1aa, #6f828c);
}
.robot-v2 .torso {
  position: absolute;
  left: 62px; right: 62px; top: 120px;
  height: 88px;
  border-radius: 30px 30px 40px 40px;
  background: radial-gradient(circle at 34% 18%, rgba(255,255,255,0.98), rgba(255,255,255,0.9) 24%, rgba(231,238,241,0.98) 60%, rgba(205,219,225,1) 100%);
  border: 3px solid #7b909b;
  box-shadow: inset -12px -14px 18px rgba(108,127,138,0.14), inset 10px 10px 14px rgba(255,255,255,0.72), 0 8px 18px rgba(17,35,60,0.06);
}
.robot-v2 .torso:after {
  content: '';
  position: absolute;
  left: 14px; right: 14px; top: 20px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(17,35,60,0.06), rgba(144,216,212,0.36), rgba(17,35,60,0.06));
}
.robot-v2 .arm {
  position: absolute;
  width: 44px; height: 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, #8ea1aa, #6b808b);
  top: 118px;
}
.robot-v2 .arm-left { left: 52px; top: 162px; width: 26px; transform: rotate(68deg); }
.robot-v2 .arm-right { right: 16px; transform: rotate(-24deg); width: 50px; top: 146px; }
.robot-v2 .hand {
  position: absolute;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: linear-gradient(160deg, #f5f8fa, #c8d6dd);
  border: 2px solid #7b909b;
}
.robot-v2 .hand-right { right: 38px; top: 136px; }
.robot-v2 .tablet {
  position: absolute;
  width: 56px; height: 76px;
  right: 0px; top: 116px;
  border-radius: 14px;
  background: linear-gradient(165deg, #13253f, #1d3f63);
  border: 3px solid #738894;
  transform: rotate(16deg);
  box-shadow: 0 12px 22px rgba(17,35,60,0.18), inset 0 0 0 2px rgba(255,255,255,0.05);
}
.robot-v2 .tablet:before {
  content: '';
  position: absolute; inset: 7px;
  border-radius: 9px;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(144,216,212,0.08));
}
.robot-v2 .tablet-cam {
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  top: 6px; left: 50%; margin-left: -3px;
  background: rgba(143,216,212,0.75);
  box-shadow: 0 0 8px rgba(143,216,212,0.35);
}
.robot-v2 .tablet-lines {
  position: absolute;
  left: 14px; right: 14px; top: 20px; bottom: 14px;
  background:
    linear-gradient(rgba(143,216,212,0.9), rgba(143,216,212,0.9)) top/100% 3px no-repeat,
    linear-gradient(rgba(143,216,212,0.55), rgba(143,216,212,0.55)) 0 16px/70% 3px no-repeat,
    linear-gradient(rgba(143,216,212,0.4), rgba(143,216,212,0.4)) 0 32px/86% 3px no-repeat,
    linear-gradient(rgba(143,216,212,0.28), rgba(143,216,212,0.28)) 0 48px/54% 3px no-repeat;
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

/* Compact robot (step 6) */
.compact-robot { transform: scale(0.86); transform-origin: right center; }
.robot-float .robot-wrap { width: 230px; height: 220px; }
.robot-float .glow { inset: auto 28px 8px 28px; }
.robot-float .robot { transform: scale(0.92); transform-origin: center center; }

/* ======== CANVAS / STAGE / CARDS ======== */
.canvas {
  width: min(1180px, 100%);
  margin: 26px auto 0;
}
.stage {
  position: relative;
  min-height: 360px;
  border-radius: 38px;
  padding: 22px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(17,35,60,0.06);
  box-shadow: 0 22px 60px rgba(17,35,60,0.08);
  overflow: hidden;
  backdrop-filter: blur(8px);
  transition: min-height 300ms ease;
}
.stage[data-mode="home"] { min-height: 360px; padding: 26px; }
.stage[data-mode="wizard"] { min-height: 760px; padding: 22px; }

.transition-note {
  position: absolute;
  right: 22px; top: 22px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(17,35,60,0.05);
  color: var(--navy);
  font-size: 0.88rem;
  font-weight: 700;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 260ms ease, transform 260ms ease;
  pointer-events: none;
  z-index: 5;
}
.stage[data-mode="wizard"] .transition-note { opacity: 1; transform: translateY(0); }

.hero-ghost {
  position: absolute;
  left: 50%; transform: translateX(-50%);
  top: 28px;
  width: min(1040px, calc(100% - 40px));
  display: grid;
  justify-items: center;
  opacity: 0;
  transition: opacity 280ms ease, transform 320ms ease;
  pointer-events: none;
}
.hero-ghost h2 {
  margin: 0; text-align: center;
  font-size: clamp(2.3rem, 4.5vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: var(--navy);
  max-width: 10ch;
  font-weight: 800;
}
.stage[data-mode="wizard"] .hero-ghost {
  opacity: 0.14;
  transform: translateX(-50%) translateY(-18px) scale(0.96);
}

.robot-float {
  position: absolute;
  right: 44px;
  top: 60px;
  width: 230px;
  height: 230px;
  display: none;
  place-items: center;
  pointer-events: none;
  z-index: 4;
}
.stage[data-mode="wizard"] .robot-float { display: grid; }

.cards-shell {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.12fr 1fr;
  gap: 22px;
  align-items: stretch;
  width: 100%;
  transition: grid-template-columns 320ms ease;
}
.stage[data-mode="wizard"] .cards-shell {
  grid-template-columns: 0.44fr 2.28fr 0.44fr;
  align-items: start;
}

.card {
  position: relative;
  min-height: 310px;
  border-radius: 34px;
  padding: 30px 28px;
  color: white;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform 220ms ease, box-shadow 220ms ease, opacity 300ms ease, filter 300ms ease, min-height 320ms ease, background 320ms ease, color 320ms ease, border 320ms ease, padding 320ms ease;
  isolation: isolate;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
}
.card:focus-visible { outline: 3px solid var(--deep-teal); outline-offset: 3px; }
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 70px rgba(17,35,60,0.16);
}
.card:before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0));
  z-index: -1;
}
.card:after {
  content: '';
  position: absolute;
  width: 180px; height: 180px;
  border-radius: 50%;
  right: -40px; bottom: -40px;
  background: rgba(255,255,255,0.10);
  filter: blur(1px);
  z-index: -1;
}
.card.small { min-height: 286px; }
.card.deep { background: linear-gradient(165deg, #0a5960, #0d7178); }
.card.light {
  background: linear-gradient(165deg, #8fe0da, #68c8c1);
  color: #0d2136;
}
.card.navy { background: linear-gradient(160deg, #0f2038, #183357); }

.eyebrow {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.8;
}
.title {
  font-size: clamp(1.7rem, 2.4vw, 2.7rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 8ch;
  font-weight: 800;
  color: inherit;
}
.arrow {
  width: 56px; height: 56px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(10px);
  font-size: 1.3rem; font-weight: 700;
  border: 1px solid rgba(255,255,255,0.18);
  align-self: flex-start;
}
.card.light .arrow {
  background: rgba(255,255,255,0.56);
  border-color: rgba(13,33,54,0.08);
}

.stage[data-mode="wizard"] .card.deep,
.stage[data-mode="wizard"] .card.navy {
  opacity: 0.14;
  transform: scale(0.96) translateY(12px);
  filter: blur(1px);
  pointer-events: none;
}
.stage[data-mode="wizard"] #centerCard {
  min-height: 620px;
  border-radius: 36px;
  padding: 28px;
  background: linear-gradient(180deg, #ffffff, #f7fbfb 100%);
  color: var(--navy);
  box-shadow: 0 28px 70px rgba(17,35,60,0.14);
  border: 1px solid var(--hairline);
  cursor: default;
  text-align: left;
  display: block;
}
.stage[data-mode="wizard"] #centerCard:hover { transform: none; }
.stage[data-mode="wizard"] #centerCard:before { display: none; }
.stage[data-mode="wizard"] #centerCard:after { display: none; }
.stage[data-mode="wizard"] #centerCard .card-collapsed-content { display: none; }

/* ======== WIZARD ======== */
.wizard-header { margin-bottom: 14px; }
.wizard-title { max-width: none; font-size: clamp(1.9rem, 2.6vw, 2.8rem); margin-top: 4px; }
.wizard-header .eyebrow { color: var(--deep-teal); opacity: 1; }

.expanded-shell {
  display: grid;
  gap: 22px;
}
.expanded-shell[hidden] { display: none !important; }
/* Global safety: any element with [hidden] should actually be hidden,
   even when other rules assign it display:grid/flex. */
[hidden] { display: none !important; }

.progress-wrap { display: grid; gap: 10px; }
.progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}
.progress-track {
  height: 12px;
  border-radius: 999px;
  background: #deeaec;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--deep-teal), #7fd6d1);
  transition: width 320ms ease;
}

.step-panel { display: grid; gap: 20px; }

.step-card {
  width: 100%;
  border-radius: 26px;
  border: 1px solid var(--hairline);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.prompt-card {
  padding: 28px 28px 24px;
  display: grid; gap: 10px;
}
.step-label {
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.prompt-card h2 {
  margin: 0;
  font-size: clamp(1.7rem, 2.5vw, 2.35rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--navy);
  font-weight: 800;
}
.prompt-card p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
  max-width: 64ch;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 26px;
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.panel-heading, .panel h2, .panel h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--navy);
  font-weight: 700;
}
.panel p { margin: 0; color: var(--muted); line-height: 1.5; }

.wizard-grid {
  display: grid;
  grid-template-columns: 1.28fr 0.9fr;
  gap: 20px;
}

.field-grid {
  margin-top: 4px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.input-el {
  min-height: 54px;
  border-radius: 18px;
  border: 1px solid rgba(17,35,60,0.10);
  background: white;
  padding: 0 16px;
  color: var(--navy);
  font-weight: 600;
  font-family: inherit;
  font-size: 1rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
  transition: border-color 160ms ease, box-shadow 160ms ease;
  width: 100%;
}
.input-el:focus {
  outline: none;
  border-color: var(--deep-teal);
  box-shadow: 0 0 0 3px rgba(12,103,109,0.18);
}
.input-el::placeholder { color: #8a98a1; font-weight: 500; }
.input-el[aria-invalid="true"] { border-color: var(--danger); }
.inline-error {
  font-size: 0.85rem;
  color: var(--danger);
  font-weight: 600;
}

.mini-card {
  display: grid; gap: 10px;
  padding: 16px;
  border-radius: 20px;
  background: linear-gradient(180deg, #f5fbfb, #eef7f8);
  border: 1px solid rgba(12,103,109,0.10);
}
.mini-card strong { font-size: 0.96rem; color: var(--navy); }
.mini-card span { color: var(--muted); font-size: 0.95rem; line-height: 1.45; }

.checklist { display: grid; gap: 10px; margin-top: 14px; }
.check {
  display: flex; gap: 10px; align-items: flex-start;
  color: var(--navy); font-weight: 600;
}
.check i {
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(12,103,109,0.12);
  color: var(--deep-teal);
  display: inline-flex; align-items: center; justify-content: center;
  font-style: normal; font-size: 0.9rem; flex: none;
  margin-top: 1px;
}

/* ======== STEP 2 — sample tiles ======== */
.option-card { padding: 22px; }
.clean-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
  width: 100%;
}
.sample-tile {
  min-height: 240px;
  border-radius: 24px;
  padding: 20px;
  text-align: left;
  border: 1px solid var(--hairline);
  background: linear-gradient(180deg, #ffffff, #f7fbfb);
  box-shadow: 0 12px 24px rgba(17,35,60,0.05);
  display: grid;
  align-content: start;
  gap: 14px;
  cursor: pointer;
  font-family: inherit;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}
.sample-tile:hover:not([disabled]) { transform: translateY(-2px); box-shadow: 0 18px 30px rgba(17,35,60,0.08); border-color: rgba(12,103,109,0.2); }
.sample-tile.active {
  border-color: rgba(12,103,109,0.24);
  background: linear-gradient(180deg, #f4fdfc, #ebf8f7);
  box-shadow: 0 18px 34px rgba(12,103,109,0.10);
}
.sample-tile.muted {
  background: linear-gradient(180deg, #fcfcfc, #f4f6f7);
  opacity: 0.86;
  cursor: not-allowed;
}
.sample-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 30px;
  width: fit-content;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-family: 'DM Mono', monospace;
}
.sample-badge.active { background: rgba(12,103,109,0.12); color: var(--deep-teal); }
.sample-badge.muted { background: rgba(17,35,60,0.07); color: var(--muted); }
.sample-tile strong {
  font-size: 1.5rem; letter-spacing: -0.03em; color: var(--navy); font-weight: 800;
}
.sample-tile p {
  margin: 0; color: var(--muted);
  font-size: 0.98rem; line-height: 1.52;
}

/* ======== STEP 3 — criteria chip rows ======== */
.criteria-card { padding: 22px; }
.criteria-grid { display: grid; gap: 22px; }
.criteria-block { display: grid; gap: 10px; }
.block-label {
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--navy);
}
.chip-row {
  display: flex; flex-wrap: wrap; gap: 10px;
}
.chip {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--hairline-strong);
  background: white;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
  transition: background 160ms ease, border 160ms ease, color 160ms ease, transform 160ms ease;
}
.chip:hover { border-color: rgba(12,103,109,0.35); color: var(--deep-teal); }
.chip.active {
  background: linear-gradient(180deg, #0c676d, #0b555a);
  border-color: transparent;
  color: white;
  box-shadow: 0 10px 22px rgba(12,103,109,0.22);
}
.chip.active:hover { color: white; }

/* ======== STEP 4 — chip builder ======== */
.builder-card { padding: 22px; }
.compact-builder { padding: 22px 26px; }
.builder-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.builder-head.single-line { flex-wrap: wrap; }
.builder-head h3, .builder-head h4 {
  margin: 4px 0 0;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--navy);
  font-weight: 700;
}
.stack-head { flex-direction: column; align-items: flex-start; }

.builder-layout {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 20px;
}
.builder-main { display: grid; gap: 18px; }

.selected-area {
  padding: 16px 18px;
  background: linear-gradient(180deg, #fcfefe, #f5fafa);
  border: 1px dashed rgba(12,103,109,0.22);
  border-radius: 20px;
  display: grid;
  gap: 10px;
}
.selected-label {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.selected-chips {
  display: flex; flex-wrap: wrap; gap: 10px;
}
.selected-chips:empty { display: none; }
.selected-chip {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 36px;
  padding: 4px 6px 4px 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, #0c676d, #0a565b);
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
}
.selected-chip button {
  border: none;
  background: rgba(255,255,255,0.18);
  color: white;
  width: 26px; height: 26px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.selected-chip button:hover { background: rgba(255,255,255,0.28); }
.empty-selected-copy {
  color: var(--muted);
  font-size: 0.95rem;
}
.selected-area.has-chips .empty-selected-copy { display: none; }

.builder-palette {
  display: flex; flex-wrap: wrap; gap: 10px;
}
.palette-chip {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--hairline-strong);
  background: white;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.93rem;
  font-family: inherit;
  cursor: pointer;
  transition: background 160ms ease, border 160ms ease, color 160ms ease;
}
.palette-chip:hover { border-color: rgba(12,103,109,0.35); color: var(--deep-teal); background: rgba(12,103,109,0.04); }
.palette-chip.active-palette {
  background: rgba(12,103,109,0.1);
  border-color: rgba(12,103,109,0.35);
  color: var(--deep-teal);
}
.palette-chip.has-selection {
  border-color: rgba(12,103,109,0.55);
  color: var(--deep-teal);
}
.palette-chip.has-selection:after {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--deep-teal);
  margin-left: 8px;
  vertical-align: middle;
}

.selection-tray {
  border-radius: 22px;
  background: linear-gradient(180deg, #fbfdfd, #f3f9f9);
  border: 1px solid var(--hairline-strong);
  padding: 18px;
  display: grid;
  gap: 14px;
}
.tray-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
}
.tray-head h4 {
  margin: 4px 0 0;
  font-size: 1.05rem;
  color: var(--navy);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.tray-head-actions {
  display: flex; gap: 10px; align-items: center;
}
.tray-search {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--hairline-strong);
  background: white;
  color: var(--navy);
  font-family: inherit;
  font-size: 0.9rem;
  min-width: 180px;
}
.tray-search:focus { outline: none; border-color: var(--deep-teal); box-shadow: 0 0 0 3px rgba(12,103,109,0.18); }
.tray-options {
  display: flex; flex-wrap: wrap; gap: 10px;
  max-height: 360px;
  overflow-y: auto;
  padding-right: 4px;
}
.tray-options-section {
  width: 100%;
  display: grid;
  gap: 8px;
  margin-top: 4px;
}
.tray-section-label {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}
.tray-section-chips { display: flex; flex-wrap: wrap; gap: 10px; }

.tray-chip {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--hairline-strong);
  background: white;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.9rem;
  font-family: inherit;
  cursor: pointer;
  transition: background 160ms ease, border 160ms ease, color 160ms ease;
  text-align: left;
}
.tray-chip:hover { border-color: rgba(12,103,109,0.35); color: var(--deep-teal); }
.tray-chip.active {
  background: linear-gradient(180deg, #0c676d, #0a565b);
  border-color: transparent;
  color: white;
}
.tray-chip.active:hover { color: white; }

.freeform-box {
  padding: 16px 18px;
  background: white;
  border: 1px solid var(--hairline-strong);
  border-radius: 20px;
  display: grid;
  gap: 8px;
}
.freeform-input {
  border: none;
  outline: none;
  width: 100%;
  min-height: 54px;
  resize: vertical;
  color: var(--navy);
  font-family: inherit;
  font-weight: 600;
  font-size: 1rem;
  background: transparent;
  padding: 6px 0 0;
}
.freeform-input::placeholder { color: #8a98a1; font-weight: 500; }

.builder-side { display: grid; }
.side-card {
  border-radius: 22px;
  background: linear-gradient(180deg, #f5fbfb, #ecf5f5);
  border: 1px solid rgba(12,103,109,0.10);
  padding: 20px;
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 160px;
}
.side-card h4 {
  margin: 4px 0 6px;
  font-size: 1.1rem;
  color: var(--navy);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.side-card p {
  margin: 0;
  color: var(--navy);
  font-size: 0.98rem;
  line-height: 1.55;
}
.logic-hint {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 6px;
}

/* ======== STEP 5 ======== */
.summary-card { padding: 22px 24px; display: grid; gap: 12px; }
.summary-head h3 { margin: 4px 0 0; font-size: 1.15rem; color: var(--navy); font-weight: 700; letter-spacing: -0.01em; }
.summary-copy {
  background: linear-gradient(180deg, #fbfdfd, #f4f9f9);
  border: 1px solid var(--hairline);
  padding: 14px 16px;
  border-radius: 16px;
  color: var(--navy);
  font-size: 0.98rem;
  line-height: 1.55;
}
.study-card { padding: 22px; }
.field-block { display: grid; gap: 10px; }
.field-block.full-width { width: 100%; }
.field-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 0.01em;
}
.textarea-input, .textarea-shell {
  min-height: 160px;
  border-radius: 18px;
  border: 1px solid var(--hairline-strong);
  padding: 16px;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--navy);
  background: white;
  width: 100%;
  resize: vertical;
  font-weight: 500;
}
.textarea-input::placeholder { color: #8a98a1; }
.textarea-input:focus { outline: none; border-color: var(--deep-teal); box-shadow: 0 0 0 3px rgba(12,103,109,0.18); }

/* ======== STEP 6 — processing ======== */
.processing-card { padding: 28px; }
.processing-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: center;
}
.processing-copy h2 {
  margin: 6px 0 10px;
  font-size: clamp(1.7rem, 2.5vw, 2.35rem);
  letter-spacing: -0.03em;
  color: var(--navy);
  font-weight: 800;
}
.processing-copy p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}
.status-stack { display: grid; gap: 10px; margin-bottom: 14px; }
.status-line {
  display: flex; gap: 10px; align-items: center;
  color: var(--navy);
  font-weight: 600;
}
.status-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--deep-teal);
  box-shadow: 0 0 0 4px rgba(12,103,109,0.15);
  animation: pulse 1.6s ease-in-out infinite;
}
.status-line:nth-child(2) .status-dot { animation-delay: 0.3s; }
.status-line:nth-child(3) .status-dot { animation-delay: 0.6s; }
@keyframes pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.12); }
}
.delivery-note {
  margin-top: 6px;
  padding: 14px 16px;
  background: linear-gradient(180deg, #f5fbfb, #ebf6f6);
  border: 1px solid rgba(12,103,109,0.14);
  border-radius: 16px;
  color: var(--navy);
  font-weight: 700;
}
.processing-robot-wrap { display: grid; place-items: center; }

.error-panel {
  margin-top: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  background: #fff7f5;
  border: 1px solid rgba(154,59,47,0.24);
  color: #5b1d13;
  display: grid;
  gap: 8px;
}
.error-panel strong { color: var(--danger); }
.error-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }

/* ======== FOOTER ACTIONS ======== */
.footer-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-top: 4px;
}
.action-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.small-caption { color: var(--muted); font-size: 0.9rem; max-width: 56ch; }

/* ======== STATS STRIP ======== */
.stats-strip {
  width: min(1180px, 100%);
  margin: 44px auto 0;
  border-radius: 28px;
  background: linear-gradient(180deg, #ffffff, #f6fafa);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-sm);
  padding: 18px 22px;
}
.stats-inner {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  align-items: center;
}
.stat {
  display: grid;
  gap: 4px;
  padding: 10px 6px;
  border-left: 1px solid var(--hairline);
}
.stat:first-child { border-left: none; }
.stat-num {
  font-family: 'DM Mono', monospace;
  font-size: 1.55rem;
  color: var(--navy);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.stat-label {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

/* ======== GENERIC SECTION ======== */
.section {
  width: 100%;
  padding: 72px 24px;
  margin: 0;
}
.section.alt-surface {
  background: linear-gradient(180deg, #ffffff, #eef6f6 100%);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  margin-top: 32px;
}
.section-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}
.section-title {
  margin: 10px 0 10px;
  font-size: clamp(2rem, 3.4vw, 3rem);
  letter-spacing: -0.03em;
  color: var(--navy);
  font-weight: 800;
}
.section-sub {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.55;
  max-width: 66ch;
}
.navy-eyebrow { color: var(--navy); opacity: 1; }
.teal-eyebrow { color: var(--deep-teal); opacity: 1; }

/* ======== HOW IT WORKS ======== */
.how-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.how-step {
  padding: 24px;
  background: white;
  border: 1px solid var(--hairline);
  border-radius: 22px;
  display: grid; gap: 10px;
  box-shadow: var(--shadow-sm);
  align-content: start;
}
.how-step-num {
  font-family: 'DM Mono', monospace;
  font-size: 0.9rem;
  color: var(--deep-teal);
  font-weight: 500;
  letter-spacing: 0.06em;
}
.how-step h3 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--navy);
  font-weight: 800;
  letter-spacing: -0.01em;
}
.how-step p { margin: 0; color: var(--muted); line-height: 1.55; font-size: 0.98rem; }

/* ======== SAMPLE REPORT ======== */
.sample-report-card {
  background: white;
  border: 1px solid var(--hairline);
  border-radius: 28px;
  padding: 26px;
  box-shadow: var(--shadow-md);
  display: grid;
  gap: 22px;
}
.sample-report-head {
  display: flex; justify-content: space-between; gap: 16px;
  align-items: flex-start;
}
.mono-badge {
  display: inline-flex; align-items: center;
  font-family: 'DM Mono', monospace;
  font-size: 0.78rem;
  color: var(--deep-teal);
  background: rgba(12,103,109,0.08);
  padding: 5px 10px;
  border-radius: 999px;
  letter-spacing: 0.06em;
  width: fit-content;
}
.sample-report-title {
  margin: 10px 0 0;
  font-size: clamp(1.2rem, 1.6vw, 1.6rem);
  color: var(--navy);
  font-weight: 800;
  letter-spacing: -0.02em;
  max-width: 48ch;
}
.feas-badge {
  font-family: 'DM Mono', monospace;
  font-size: 0.82rem;
  padding: 8px 14px;
  border-radius: 999px;
  letter-spacing: 0.06em;
  font-weight: 500;
}
.feas-good { background: rgba(12,103,109,0.10); color: var(--deep-teal); }
.sample-report-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 22px;
}
.ir-block {
  background: linear-gradient(180deg, #fbfdfd, #f3f9f9);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  padding: 20px;
}
.ir-label {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.ir-row { display: flex; gap: 18px; align-items: baseline; margin-bottom: 16px; flex-wrap: wrap; }
.ir-num { display: grid; gap: 4px; }
.ir-tag {
  font-family: 'DM Mono', monospace;
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ir-val {
  font-family: 'DM Mono', monospace;
  font-size: 1.6rem;
  color: var(--navy);
  font-weight: 500;
}
.ir-num.big .ir-val { font-size: 2.4rem; color: var(--deep-teal); }
.confidence { display: grid; gap: 8px; margin-top: 8px; }
.confidence-label {
  font-size: 0.85rem; color: var(--muted);
  font-weight: 700; letter-spacing: 0.04em;
}
.confidence-label .mono { color: var(--deep-teal); font-weight: 500; }
.confidence-track {
  height: 10px; border-radius: 999px;
  background: #deeaec; overflow: hidden;
}
.confidence-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--deep-teal), #7fd6d1);
  border-radius: 999px;
}
.breakdown {
  display: grid; gap: 8px; align-content: start;
}
.breakdown-row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 10px 14px;
  background: #fbfdfd;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  font-weight: 600;
  color: var(--navy);
}
.breakdown-row .mono {
  font-size: 0.8rem;
  color: var(--deep-teal);
  font-weight: 500;
  letter-spacing: 0.04em;
}
.sample-report-warning {
  padding: 14px 16px;
  background: linear-gradient(180deg, #fff8ec, #fff1d9);
  border: 1px solid rgba(156, 108, 20, 0.18);
  border-radius: 16px;
  color: #4a360f;
  font-size: 0.95rem;
  line-height: 1.55;
}
.sample-report-warning strong { color: #6b4c10; }

/* ======== METHODOLOGY ======== */
.source-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.source-card {
  padding: 24px;
  border-radius: 22px;
  background: white;
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-sm);
  display: grid; gap: 12px;
  align-content: start;
}
.tier-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.8rem;
  padding: 5px 10px;
  border-radius: 999px;
  width: fit-content;
  letter-spacing: 0.06em;
}
.tier-1 .tier-label { background: rgba(12,103,109,0.12); color: var(--deep-teal); }
.tier-2 .tier-label { background: rgba(17,35,60,0.08); color: var(--navy); }
.tier-3 .tier-label { background: rgba(17,35,60,0.06); color: var(--muted); }
.source-card h3 {
  margin: 0; font-size: 1.2rem;
  letter-spacing: -0.02em; color: var(--navy); font-weight: 800;
}
.source-card ul {
  margin: 0; padding: 0; list-style: none;
  display: grid; gap: 6px;
  color: var(--muted); font-size: 0.98rem;
}
.source-card ul li {
  padding-left: 16px;
  position: relative;
}
.source-card ul li:before {
  content: '•';
  position: absolute; left: 4px;
  color: var(--deep-teal);
  font-weight: 700;
}
.method-line {
  margin-top: 28px;
  padding: 18px 22px;
  border-radius: 20px;
  background: linear-gradient(180deg, #fbfdfd, #f3f9f9);
  border: 1px solid var(--hairline);
  color: var(--navy);
  font-size: 1rem;
  line-height: 1.55;
}
.method-line strong { color: var(--deep-teal); }

/* ======== FOOTER ======== */
.site-footer {
  width: 100%;
  margin-top: 48px;
  padding: 36px 24px 20px;
  background: linear-gradient(180deg, transparent, #f1f5f6);
  border-top: 1px solid var(--hairline);
}
.footer-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1.6fr;
  gap: 32px;
  align-items: start;
}
.footer-left { display: grid; gap: 12px; }
.footer-mission { color: var(--muted); max-width: 40ch; line-height: 1.55; margin: 0; }
.footer-right { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.footer-col { display: grid; gap: 8px; }
.footer-head {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 6px;
}
.footer-col a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.98rem;
}
.footer-col a:hover { color: var(--deep-teal); }
.footer-bar {
  width: min(1180px, 100%);
  margin: 28px auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
  display: flex; justify-content: space-between; gap: 12px;
  color: var(--muted);
  font-size: 0.88rem;
}
.footer-bar .small { font-size: 0.8rem; }

/* ======== RESPONSIVE ======== */
@media (max-width: 1100px) {
  .how-grid { grid-template-columns: repeat(2, 1fr); }
  .source-grid { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat { border-left: none; border-top: 1px solid var(--hairline); padding-top: 14px; }
  .stat:nth-child(-n+2) { border-top: none; padding-top: 10px; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 920px) {
  .site-header {
    border-radius: 26px;
    padding: 10px 12px;
    flex-wrap: wrap;
  }
  .header-nav .nav-link { display: none; }
  .hero { margin-top: 20px; }
  .cards-shell { grid-template-columns: 1fr; gap: 14px; }
  .card, .card.small { min-height: 180px; }
  .stage { padding: 18px; }
  .stage[data-mode="wizard"] .cards-shell { grid-template-columns: 1fr; }
  .stage[data-mode="wizard"] .card.deep,
  .stage[data-mode="wizard"] .card.navy { display: none; }
  .stage[data-mode="wizard"] .hero-ghost { display: none; }
  .stage[data-mode="wizard"] .robot-float { display: none; }
  .stage[data-mode="wizard"] #centerCard { min-height: 620px; padding: 22px; }

  .wizard-grid { grid-template-columns: 1fr; }
  .field-grid { grid-template-columns: 1fr; }
  .footer-actions { flex-direction: column; align-items: stretch; }
  .action-buttons { justify-content: stretch; }
  .action-buttons .ghost-btn, .action-buttons .primary-btn { flex: 1; }
  .clean-grid { grid-template-columns: 1fr; }
  .sample-tile { min-height: 180px; }
  .criteria-grid { gap: 18px; }
  .builder-layout { grid-template-columns: 1fr; }
  .processing-grid { grid-template-columns: 1fr; }
  .processing-robot-wrap { display: none; }
  .sample-report-head { flex-direction: column; }
  .sample-report-grid { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: 1fr; }
  .site-footer { padding: 28px 18px 18px; }
  .footer-right { grid-template-columns: 1fr 1fr; }
  .footer-bar { flex-direction: column; text-align: center; }
}

@media (max-width: 520px) {
  .hero h1 { font-size: 2.4rem; }
  .title { font-size: 1.6rem; }
  .prompt-card h2 { font-size: 1.55rem; }
  .stats-inner { grid-template-columns: 1fr; }
  .stat { border-top: 1px solid var(--hairline); padding-top: 14px; }
  .stat:first-child { border-top: none; padding-top: 10px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .robot, .status-dot { animation: none; }
  * { transition-duration: 0.01ms !important; }
}
