:root {
  --accent: #158158;
  --accent-600: #0F6A47;
  --accent-700: #0A5136;
  --accent-50: #E3F3EC;
  --accent-100: #C7E6D7;
  --accent-tint: rgba(21,129,88,0.08);
  --accent-tint-strong: rgba(21,129,88,0.16);

  /* Secondary — violet / lilac */
  --green: #6B4FEA;
  --green-600: #5A3FD4;
  --green-700: #4630A8;
  --green-50: #F1EDFE;
  --green-100: #E2DAFC;
  --green-tint: rgba(107,79,234,0.10);

  --ink: #0D1B1A;
  --ink-2: #2A3837;
  --ink-3: #55625F;
  --ink-4: #8A938F;
  --ink-5: #B8BEBB;

  --bg: #F6F7F5;
  --surface: #FFFFFF;
  --surface-2: #F1F2EF;
  --surface-3: #E9EBE7;

  --warn: #C96B2F;
  --ok: #2E8A5A;

  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 0 rgba(13,27,26,0.04), 0 1px 2px rgba(13,27,26,0.04);
  --shadow-md: 0 1px 0 rgba(13,27,26,0.04), 0 8px 24px rgba(13,27,26,0.06);
  --shadow-lg: 0 20px 60px rgba(13,27,26,0.10);

  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, Segoe UI, Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SF Mono, Menlo, monospace;

  --pad-x: 56px;
  --pad-y: 40px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
  font-size: 15px;
  line-height: 1.5;
  position: relative;
  overflow-x: hidden;
}
/* atmospheric page tint — two soft auroras, green + violet */
body::before {
  content: "";
  position: fixed; inset: 0;
  background:
    radial-gradient(900px 520px at 8% -10%, rgba(21,129,88,0.12), transparent 60%),
    radial-gradient(820px 520px at 102% 10%, rgba(107,79,234,0.08), transparent 60%),
    radial-gradient(700px 520px at 50% 110%, rgba(21,129,88,0.07), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
body::after {
  /* faint dot grid, snaps the page to 'product' not 'doc' */
  content: "";
  position: fixed; inset: 0;
  background-image: radial-gradient(rgba(13,27,26,0.055) 1px, transparent 1px);
  background-size: 22px 22px;
  background-position: -1px -1px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.5), rgba(0,0,0,0.15) 60%, transparent);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.5), rgba(0,0,0,0.15) 60%, transparent);
  pointer-events: none;
  z-index: 0;
}
.app, .topbar, .ribbon, main.stage, .foot { position: relative; z-index: 1; }

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; color: inherit; }

/* -------- App shell -------- */
/* NOTE: .app flex/column is defined below in the Editorial Panel section */
.app {
  min-height: 100vh;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: rgba(255,255,255,0.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  position: sticky; top: 0; z-index: 5;
}
.topbar::after {
  /* ghost divider via tonal layering, no hard border */
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: linear-gradient(90deg, transparent, rgba(13,27,26,0.06), transparent);
}

.brand {
  display: flex; align-items: center; gap: 12px;
  font-weight: 600; letter-spacing: -0.01em;
}
.brand-mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--green) 100%);
  display: grid; place-items: center;
  color: white; font-weight: 700;
  position: relative;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,0.12);
}
.brand-mark svg { width: 16px; height: 16px; }
.brand-name { font-size: 15px; }
.brand-sub { color: var(--ink-3); font-weight: 400; margin-left: 8px; font-size: 13px; }

.topbar-meta {
  display: flex; align-items: center; gap: 16px;
  color: var(--ink-3); font-size: 13px;
}
.topbar-meta .chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 12px; font-weight: 500;
}
.topbar-meta .dot { width:6px; height:6px; border-radius:50%; background: var(--green); }

/* -------- Recent builds -------- */
.recent-wrap { position: relative; }
.recent-count {
  font-family: var(--font-mono); font-size: 10px;
  padding: 2px 6px; border-radius: 6px;
  background: var(--green-50); color: var(--green-700);
  letter-spacing: 0.04em; font-weight: 600;
}
.recent-panel {
  position: absolute; top: calc(100% + 10px); right: 0;
  width: 360px;
  background: var(--surface);
  border-radius: 14px;
  box-shadow: 0 25px 60px -15px rgba(13,27,26,0.25), 0 0 0 1px rgba(13,27,26,0.04);
  z-index: 40;
  overflow: hidden;
  animation: fadeUp .25s cubic-bezier(.2,.7,.2,1);
}
.recent-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px 10px;
}
.recent-title { font-size: 13px; font-weight: 600; letter-spacing: -0.005em; }
.recent-clear {
  font-size: 11px; color: var(--ink-4); text-transform: uppercase; letter-spacing: 0.06em;
  font-family: var(--font-mono); padding: 4px 8px; border-radius: 6px;
}
.recent-clear:hover { background: var(--surface-2); color: var(--ink-2); }

.recent-empty {
  padding: 28px 20px 32px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.recent-empty-mark {
  width: 48px; height: 48px; border-radius: 14px;
  background: linear-gradient(135deg, var(--accent-50), var(--green-50));
  display: grid; place-items: center; color: var(--accent-700);
  margin-bottom: 4px;
}
.recent-empty-t { font-size: 14px; font-weight: 600; }
.recent-empty-s { font-size: 12.5px; color: var(--ink-4); max-width: 260px; line-height: 1.45; }

.recent-list {
  max-height: 380px; overflow-y: auto;
  padding: 4px 6px 6px;
}
.recent-row {
  display: flex; align-items: center; gap: 6px;
  padding: 4px 6px;
  border-radius: 10px;
  transition: background .15s ease;
}
.recent-row:hover { background: var(--surface-2); }
.recent-row + .recent-row { margin-top: 2px; }
.recent-row-main {
  flex: 1; min-width: 0;
  text-align: left;
  padding: 8px 8px;
  display: flex; flex-direction: column; gap: 2px;
  border-radius: 8px;
}
.recent-company {
  font-size: 13.5px; font-weight: 600; color: var(--ink);
  letter-spacing: -0.005em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.recent-meta { font-size: 11.5px; color: var(--ink-4); }
.recent-side {
  display: flex; flex-direction: column; align-items: flex-end; gap: 4px;
  flex-shrink: 0;
  padding-right: 4px;
}
.recent-when {
  font-family: var(--font-mono); font-size: 10.5px;
  color: var(--ink-4); letter-spacing: 0.02em;
}
.recent-dup {
  font-size: 11px; font-weight: 500;
  padding: 4px 8px; border-radius: 7px;
  background: var(--surface-2); color: var(--ink-3);
  display: inline-flex; align-items: center; gap: 4px;
  transition: all .15s ease;
}
.recent-dup:hover { background: var(--green-50); color: var(--green-700); }

/* -------- Progress ribbon -------- */
.ribbon {
  max-width: 1120px; margin: 0 auto;
  padding: 32px var(--pad-x) 8px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.ribbon-step {
  display: flex; flex-direction: column; gap: 8px;
  padding-top: 14px;
  position: relative;
  cursor: default;
}
.ribbon-step .bar {
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px; border-radius: 2px;
  background: var(--surface-3);
  overflow: hidden;
}
.ribbon-step .bar::after {
  content: ""; position: absolute; inset: 0;
  background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .45s cubic-bezier(.2,.7,.2,1);
}
.ribbon-step.done .bar::after { transform: scaleX(1); }
.ribbon-step.active .bar::after { transform: scaleX(0.5); }

.ribbon-step .n {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-4); letter-spacing: 0.06em;
}
.ribbon-step .t {
  font-size: 13px; font-weight: 500; color: var(--ink-3);
}
.ribbon-step.active .t, .ribbon-step.done .t { color: var(--ink); }
.ribbon-step.active .n { color: var(--accent); }

/* -------- Hero (Step 1 header) -------- */
.hero {
  position: relative;
  margin: 8px 0 28px;
  padding: 36px 40px 32px;
  border-radius: 24px;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(21,129,88,0.16), transparent 55%),
    radial-gradient(120% 140% at 100% 100%, rgba(107,79,234,0.12), transparent 55%),
    linear-gradient(180deg, #fff, #FBFBF8);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.9) inset,
    0 1px 0 rgba(13,27,26,0.04),
    0 30px 60px -30px rgba(13,27,26,0.12);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  /* thin rainbow rule on top */
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--green) 100%);
  opacity: .9;
}
.hero::after {
  /* CC-loop watermark */
  content: "";
  position: absolute; right: -40px; top: 50%; transform: translateY(-50%);
  width: 320px; height: 320px;
  background:
    radial-gradient(closest-side, rgba(21,129,88,0.10), transparent 70%);
  pointer-events: none;
  z-index: -1;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 32px;
  align-items: center;
}
.hero-copy .eyebrow { margin-bottom: 12px; }
.hero-copy .h-display { margin-bottom: 8px; font-size: 42px; }
.hero-copy .h-sub { margin-bottom: 0; }

.hero-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px rgba(13,27,26,0.05), var(--shadow-sm);
}
.hero-stat {
  padding: 10px 12px;
  border-radius: 11px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px rgba(13,27,26,0.04);
  display: flex; flex-direction: column; gap: 2px;
}
.hero-stat .v {
  font-size: 22px; font-weight: 600; letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.hero-stat .v .unit { font-size: 13px; color: var(--ink-4); font-weight: 500; margin-left: 4px; letter-spacing: 0; }
.hero-stat .k {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink-4); font-weight: 600;
}
.hero-stat.accent { background: linear-gradient(135deg, var(--accent) 0%, var(--green) 160%); color: white; box-shadow: 0 10px 24px -8px rgba(21,129,88,0.45); }
.hero-stat.accent .v, .hero-stat.accent .v .unit, .hero-stat.accent .k { color: white; }
.hero-stat.accent .k { opacity: 0.85; }

/* CC-loop decoration inside hero */
.hero-loop {
  position: absolute; right: 28px; top: 28px;
  width: 72px; height: 72px;
  opacity: 0.35;
  pointer-events: none;
}
.hero-loop svg { width: 100%; height: 100%; }

/* -------- Step header (used on 2/3/4) -------- */
.step-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px;
  padding: 28px 0 8px;
  margin-bottom: 24px;
  position: relative;
}
.step-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), transparent 70%);
  opacity: 0.5;
}
.step-header.green::after {
  background: linear-gradient(90deg, var(--green), transparent 70%);
}
.step-header .h-sub { margin-bottom: 0; }
.step-header-badge {
  flex-shrink: 0;
  padding: 14px 20px;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-sm), inset 0 0 0 1px rgba(13,27,26,0.04);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  min-width: 110px;
}
.step-header-badge .v {
  font-size: 34px; font-weight: 600; letter-spacing: -0.03em;
  color: var(--accent-700);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.step-header-badge .k {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink-4); font-weight: 600;
}
.step-header-badge.green .v { color: var(--green-700); }

/* Card with gradient rail (used on headline cards) */
.card.railed {
  position: relative;
}
.card.railed::before {
  content: "";
  position: absolute; left: 0; top: 20px; bottom: 20px; width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, var(--accent), var(--green));
}
main.stage {
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  padding: 4px var(--pad-x) 120px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.14em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.h-display {
  font-size: 40px; line-height: 1.05; letter-spacing: -0.025em;
  font-weight: 600;
  margin: 0 0 10px;
  color: var(--ink);
  text-wrap: pretty;
}
.h-sub {
  color: var(--ink-3);
  font-size: 16px; max-width: 640px; margin: 0 0 40px;
  text-wrap: pretty;
}

/* -------- Field primitives -------- */
.field {
  display: flex; flex-direction: column; gap: 8px;
}
.field label, .label {
  font-size: 12px; font-weight: 600;
  color: var(--ink-2);
  letter-spacing: 0.02em;
}
.field .hint { font-size: 12px; color: var(--ink-4); }
.req { color: var(--accent); font-weight: 700; margin-left: 2px; }

.input-err, .input.input-err:focus {
  background: #FFF2EE;
  box-shadow: inset 0 0 0 1px #D95A2A, 0 0 0 2px rgba(217,90,42,0.12);
}
.err-msg {
  font-size: 12px; color: #B8471E;
  display: inline-flex; align-items: center; gap: 5px;
}
.err-msg::before {
  content: "";
  width: 4px; height: 4px; border-radius: 50%; background: #D95A2A;
}
.field.err label { color: #B8471E; }

.miss-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 999px;
  background: #FFF2EE; color: #B8471E;
  font-size: 12.5px; font-weight: 500;
  font-family: var(--font-mono);
}
.miss-chip::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: #D95A2A;
}

.input, .select {
  appearance: none;
  background: var(--surface-2);
  border: 0;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--ink);
  transition: background .15s ease, box-shadow .15s ease;
  width: 100%;
  outline: none;
}
.input::placeholder { color: var(--ink-4); }
.input:hover, .select:hover { background: var(--surface-3); }
.input:focus, .select:focus {
  background: #fff;
  box-shadow: 0 0 0 2px var(--accent-tint-strong), inset 0 0 0 1px var(--accent);
}
.select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M2 4 L6 8 L10 4' fill='none' stroke='%23556' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

/* segmented */
.seg {
  display: inline-flex; gap: 4px; padding: 4px;
  background: var(--surface-2);
  border-radius: 12px;
}
.seg button {
  padding: 8px 14px; border-radius: 9px;
  font-size: 13px; font-weight: 500;
  color: var(--ink-3); transition: all .15s ease;
}
.seg button[aria-pressed="true"] {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.seg button:hover:not([aria-pressed="true"]) { color: var(--ink); }
.seg button[aria-pressed="true"] span { color: rgba(255,255,255,0.78) !important; }

/* -------- Form layout -------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 24px;
  max-width: 780px;
}
.form-grid .full { grid-column: 1 / -1; }

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px 32px;
  box-shadow: var(--shadow-sm);
}

/* -------- Use-case grid -------- */
.uc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 8px;
}
.uc {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  cursor: pointer;
  transition: transform .18s cubic-bezier(.2,.7,.2,1), box-shadow .18s ease, background .18s ease;
  display: flex; flex-direction: column; gap: 12px;
  min-height: 168px;
  box-shadow: var(--shadow-sm);
  user-select: none;
}
.uc:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.uc .uc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.uc .uc-title { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.uc .uc-desc { font-size: 13px; color: var(--ink-3); line-height: 1.45; }
.uc .uc-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: auto;
}
.uc .tag {
  font-family: var(--font-mono); font-size: 10.5px;
  padding: 4px 7px; border-radius: 6px;
  background: var(--green-50);
  color: var(--green-700);
  text-transform: uppercase; letter-spacing: 0.04em;
}
.uc .check {
  width: 22px; height: 22px; border-radius: 8px;
  background: var(--surface-2);
  display: grid; place-items: center;
  color: transparent;
  transition: all .15s ease;
  flex-shrink: 0;
}
.uc.selected {
  background: var(--accent-50);
  box-shadow: 0 0 0 2px var(--accent), var(--shadow-md);
}
.uc.selected .tag { background: white; color: var(--accent-700); }
.uc.selected .check {
  background: var(--accent); color: white;
}
.uc.disabled { opacity: 0.55; cursor: not-allowed; background: var(--surface-2); box-shadow: none; }
.uc.disabled:hover { transform: none; box-shadow: none; }
.uc .soon {
  position: absolute; top: 12px; right: 12px;
  font-family: var(--font-mono); font-size: 10px;
  padding: 3px 7px; border-radius: 6px;
  background: var(--ink); color: white;
  letter-spacing: 0.06em; text-transform: uppercase;
}

/* -------- Accordion -------- */
.acc-list { display: flex; flex-direction: column; gap: 12px; }
.acc {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.acc-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  width: 100%;
  text-align: left;
}
.acc-head .l {
  display: flex; align-items: center; gap: 14px;
}
.acc-head .idx {
  font-family: var(--font-mono); font-size: 11px;
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--accent-50); color: var(--accent-700);
  display: grid; place-items: center; font-weight: 600;
}
.acc-head .t { font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.acc-head .s { font-size: 12.5px; color: var(--ink-4); margin-top: 2px; }
.acc-head .chev {
  width: 18px; height: 18px; color: var(--ink-4);
  transition: transform .2s ease;
}
.acc.open .acc-head .chev { transform: rotate(180deg); color: var(--ink); }

.acc-body {
  padding: 0 24px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.acc-body .col-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink-4); font-weight: 600;
  margin-bottom: 10px;
}
.component-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.component-list li {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  background: var(--surface-2);
  border-radius: 9px;
  font-size: 13px;
}
.component-list li .ic {
  width: 18px; height: 18px; border-radius: 5px;
  background: var(--accent-tint);
  display: grid; place-items: center;
  color: var(--accent-700);
  flex-shrink: 0;
}
.component-list li .kind {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--ink-4); margin-left: auto;
  text-transform: uppercase; letter-spacing: 0.05em;
}

.name-fields { display: flex; flex-direction: column; gap: 14px; }

/* -------- Review -------- */
.review-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 20px;
}
.review-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px 26px;
  box-shadow: var(--shadow-sm);
}
.kv-row {
  display: grid; grid-template-columns: 140px 1fr;
  padding: 10px 0;
  font-size: 14px;
}
.kv-row + .kv-row { box-shadow: inset 0 1px 0 rgba(13,27,26,0.04); }
.kv-row .k { color: var(--ink-4); font-size: 12.5px; }
.kv-row .v { color: var(--ink); font-weight: 500; }

.build-summary {
  background: linear-gradient(180deg, var(--accent-50), #fff 80%);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.build-summary .num {
  font-size: 56px; line-height: 1; letter-spacing: -0.04em;
  font-weight: 600; color: var(--accent-700);
}
.build-summary .num .slash { color: var(--ink-4); font-weight: 400; margin: 0 6px; }

.deploy-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 22px 24px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  box-shadow: var(--shadow-sm);
}
.deploy-opt {
  padding: 16px; border-radius: 11px;
  background: var(--surface-2);
  cursor: pointer;
  transition: all .15s ease;
  display: flex; flex-direction: column; gap: 4px;
}
.deploy-opt:hover { background: var(--surface-3); }
.deploy-opt.selected { background: var(--green-50); box-shadow: inset 0 0 0 1.5px var(--green); }
.deploy-opt .t { font-weight: 600; font-size: 13.5px; }
.deploy-opt .d { font-size: 12px; color: var(--ink-3); }
.deploy-opt .meta { font-family: var(--font-mono); font-size: 10px; color: var(--ink-4); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px; }

/* -------- Footer actions -------- */
.foot {
  position: sticky; bottom: 0;
  background: linear-gradient(180deg, transparent, var(--bg) 40%);
  padding: 20px 32px 24px;
  display: flex; justify-content: center;
  z-index: 4;
}
.foot-inner {
  max-width: 1120px;
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  background: var(--surface);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
}
.foot-left { display: flex; align-items: center; gap: 14px; color: var(--ink-3); font-size: 13px; }
.foot-right { display: flex; align-items: center; gap: 10px; }

.btn {
  padding: 12px 20px;
  border-radius: 11px;
  font-weight: 500;
  font-size: 14px;
  transition: all .15s ease;
  display: inline-flex; align-items: center; gap: 8px;
  letter-spacing: -0.005em;
}
.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 1px 0 rgba(255,255,255,0.2) inset, 0 6px 14px rgba(21,129,88,0.25);
}
.btn-primary:hover { background: var(--accent-600); transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,0.2) inset, 0 10px 22px rgba(21,129,88,0.3); }
.btn-primary:disabled { background: var(--ink-5); cursor: not-allowed; box-shadow: none; transform: none; color: #fff; }

.btn-ghost { color: var(--ink-2); padding: 12px 14px; }
.btn-ghost:hover { background: var(--surface-2); }

.btn-sec {
  background: var(--surface-2);
  color: var(--ink);
}
.btn-sec:hover { background: var(--surface-3); }

.count-pill {
  font-family: var(--font-mono); font-size: 11px;
  padding: 5px 9px; border-radius: 7px;
  background: var(--surface-2); color: var(--ink-3);
  letter-spacing: 0.04em;
}

/* logo row */
.logo-row { display: flex; gap: 12px; align-items: flex-start; }
.logo-preview {
  width: 64px; height: 64px; border-radius: 12px;
  background: var(--surface-2);
  display: grid; place-items: center;
  overflow: hidden; flex-shrink: 0;
}
.logo-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
.logo-placeholder {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--ink-4); letter-spacing: 0.1em;
}

/* suggested pill on use-case cards */
.uc .suggested-pill {
  position: absolute; top: 12px; right: 12px;
  font-family: var(--font-mono); font-size: 10px;
  padding: 3px 7px; border-radius: 6px;
  background: var(--accent);
  color: white;
  letter-spacing: 0.06em; text-transform: uppercase;
  font-weight: 600;
}
.uc.selected .suggested-pill { top: 12px; right: 46px; }

/* -------- Use-case card "Watch" button -------- */
.uc-watch {
  position: absolute; bottom: 12px; right: 12px;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 9px; border-radius: 7px;
  background: var(--ink); color: white;
  font-size: 11px; font-weight: 500;
  font-family: var(--font-mono); letter-spacing: 0.02em;
  opacity: 0; transform: translateY(4px);
  transition: opacity .15s ease, transform .15s ease, background .15s ease;
  cursor: pointer;
  z-index: 2;
}
.uc:hover .uc-watch { opacity: 1; transform: translateY(0); }
.uc-watch:hover { background: var(--accent-700); }
.uc-watch.watched { background: var(--green-50); color: var(--green-700); opacity: 1; transform: none; }
.uc-watch.watched:hover { background: var(--green-100); }
.uc.selected .uc-watch { opacity: 1; transform: none; background: var(--surface); color: var(--ink); }
.uc.selected .uc-watch:hover { background: var(--accent); color: white; }

/* video modal */
.video-modal {
  background: var(--surface); border-radius: 18px;
  padding: 20px; width: 780px; max-width: 95vw;
  box-shadow: var(--shadow-lg);
}
.video-modal-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; margin-bottom: 14px;
}
.video-frame {
  position: relative; width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 12px; overflow: hidden;
}
.video-frame iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}

/* color swatch input */
.color-field { display: flex; gap: 10px; align-items: center; }
.color-swatch {
  width: 40px; height: 40px; border-radius: 10px;
  flex-shrink: 0; overflow: hidden; position: relative;
  background: var(--surface-2);
}
.color-swatch input[type=color] {
  position: absolute; inset: -4px; width: calc(100% + 8px); height: calc(100% + 8px);
  border: none; padding: 0; cursor: pointer; background: none;
}

/* -------- Upload / drop zone -------- */
.drop {
  display: flex; align-items: center; gap: 16px;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: background .15s ease, box-shadow .15s ease;
}
.drop::before {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius);
  pointer-events: none;
  background: repeating-linear-gradient(-45deg, transparent 0 8px, var(--accent-tint) 8px 9px);
  opacity: 0; transition: opacity .15s ease;
}
.drop.drag::before { opacity: 1; }
.drop.drag { background: var(--accent-50); }
.drop.done { background: linear-gradient(180deg, var(--accent-50), var(--surface) 90%); }
.drop-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--accent-tint); color: var(--accent-700);
  display: grid; place-items: center; flex-shrink: 0;
}
.drop-body { flex: 1; min-width: 0; }
.drop-title { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }
.drop-sub { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.drop-file { font-family: var(--font-mono); font-size: 12.5px; color: var(--accent-700); }
.drop-actions { display: flex; gap: 6px; align-items: center; position: relative; z-index: 1; }
.drop-actions .btn { padding: 9px 13px; font-size: 13px; }
.drop-error { color: var(--warn); font-size: 13px; margin-top: -4px; margin-bottom: 14px; }

.import-evidence {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}
.import-evidence .col-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink-4); font-weight: 600; margin-bottom: 10px;
}
.evidence-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
}
.ev { background: var(--surface-2); border-radius: 9px; padding: 8px 11px; }
.ev-k { font-size: 11px; color: var(--ink-4); text-transform: uppercase; letter-spacing: 0.05em; }
.ev-v { font-size: 13px; font-weight: 500; color: var(--ink); margin-top: 2px; word-break: break-word; }

/* -------- Tweaks panel -------- */
.tweaks {
  position: fixed; right: 20px; bottom: 96px;
  width: 280px;
  background: var(--surface);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(13,27,26,0.15);
  z-index: 20;
  padding: 16px;
  font-size: 13px;
  display: flex; flex-direction: column; gap: 14px;
}
.tweaks h4 { margin: 0; font-size: 13px; font-weight: 600; }
.tweaks .row { display: flex; flex-direction: column; gap: 6px; }
.tweaks .row > .rlabel { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-4); font-weight: 600; }
.tweaks .swatches { display: flex; gap: 6px; flex-wrap: wrap; }
.tweaks .sw { width: 24px; height: 24px; border-radius: 8px; cursor: pointer; box-shadow: inset 0 0 0 2px transparent; }
.tweaks .sw.active { box-shadow: inset 0 0 0 2px var(--ink), 0 0 0 2px white; }
.tweaks input[type="range"] { accent-color: var(--accent); }
.tweaks-close { position: absolute; top: 10px; right: 10px; color: var(--ink-4); padding: 4px; }

/* -------- Modal (build running) -------- */
.modal-shade {
  position: fixed; inset: 0; background: rgba(13,27,26,0.45);
  z-index: 50; display: grid; place-items: center;
  backdrop-filter: blur(6px);
}
.modal {
  background: var(--surface); border-radius: 18px;
  padding: 32px; width: 480px;
  box-shadow: var(--shadow-lg);
}
.modal h3 { margin: 0 0 8px; font-size: 20px; letter-spacing: -0.02em; }
.modal p { color: var(--ink-3); font-size: 14px; margin: 0 0 20px; }
.build-log {
  font-family: var(--font-mono); font-size: 12px;
  background: var(--ink); color: #CFEAE5;
  padding: 16px; border-radius: 10px;
  max-height: 280px; overflow: auto;
  line-height: 1.65;
}
.build-log .muted { color: #85A69E; }
.build-log .dim { color: #394848; }
.build-log .pulse { color: #B6CAC6; }
.build-log .ok { color: #7EE2B7; }

/* -------- Modal head + progress ring -------- */
.modal-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 20px; margin-bottom: 18px;
}
.modal-head h3 { margin: 0; font-size: 20px; letter-spacing: -0.02em; }
.build-progress-ring {
  position: relative; width: 48px; height: 48px; flex-shrink: 0;
}
.build-progress-num {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 10.5px;
  color: var(--ink-3); font-weight: 600;
  letter-spacing: -0.02em;
}

/* -------- Toast -------- */
.toast {
  position: fixed; bottom: 100px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 12px 20px;
  background: var(--ink); color: white;
  border-radius: 12px;
  font-size: 13px; font-weight: 500;
  box-shadow: 0 20px 50px rgba(13,27,26,0.25);
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease, transform .3s cubic-bezier(.2,.7,.2,1);
  z-index: 60;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }

/* animations */
.fade-enter { animation: fadeUp .35s cubic-bezier(.2,.7,.2,1); }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.pop { animation: pop .25s ease; }
@keyframes pop {
  0% { transform: scale(.94); }
  60% { transform: scale(1.03); }
  100% { transform: scale(1); }
}

/* -------- Editorial Panel + two-column stage -------- */
:root { --topbar-h: 65px; }

.app { display: flex; flex-direction: column; }

.stage-wrap {
  display: flex;
  flex: 1;
  align-items: stretch;
  min-height: calc(100vh - var(--topbar-h));
}

.ed-panel {
  width: 320px;
  min-width: 320px;
  background: var(--accent-700);
  color: white;
  position: sticky;
  top: var(--topbar-h);
  height: calc(100vh - var(--topbar-h));
  overflow: hidden;
  flex-shrink: 0;
}

.ed-panel-inner {
  padding: 40px 28px 32px;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
  gap: 0;
}

/* keep all children above the art blobs */
.ed-panel-inner > * { position: relative; z-index: 1; }

.ed-top { flex-shrink: 0; margin-bottom: 28px; }

.ed-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 14px;
}

.ed-headline {
  font-family: "Fraunces", Georgia, serif;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: white;
  margin: 0 0 12px;
}

.ed-headline em {
  font-style: italic;
  color: rgba(255,255,255,0.82);
}

.ed-body {
  font-size: 13px;
  color: rgba(255,255,255,0.62);
  line-height: 1.6;
  margin: 0;
}

/* Step nav */
.ed-steps {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.ed-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 9px;
  border-radius: 9px;
  transition: background .15s ease, opacity .15s ease;
}

.ed-step.done    { opacity: 0.6; }
.ed-step.active  { background: rgba(255,255,255,0.11); opacity: 1; }
.ed-step.upcoming{ opacity: 0.38; }
.ed-step.clickable { cursor: pointer; }
.ed-step.clickable:hover { background: rgba(255,255,255,0.07); opacity: 0.85; }

.ed-step-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.35);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: transparent;
  transition: all .15s ease;
}

.ed-step.done .ed-step-dot {
  background: rgba(255,255,255,0.22);
  border-color: transparent;
  color: white;
}

.ed-step.active .ed-step-dot {
  background: white;
  border-color: transparent;
  color: var(--accent-700);
}

.ed-step-text { display: flex; align-items: baseline; gap: 7px; }

.ed-step-n {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.45);
}

.ed-step.active .ed-step-n   { color: rgba(255,255,255,0.8); }
.ed-step.done   .ed-step-n   { color: rgba(255,255,255,0.55); }

.ed-step-t {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.82);
}

.ed-step.upcoming .ed-step-t { color: rgba(255,255,255,0.45); }

/* Progress + aside at the bottom */
.ed-progress {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
  flex-shrink: 0;
}

.ed-progress-label {
  font-size: 11.5px;
  color: rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  gap: 5px;
}

.ed-progress-label b { color: rgba(255,255,255,0.82); font-weight: 600; }
.ed-company { color: rgba(255,255,255,0.38); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 120px; }

.ed-aside {
  font-size: 11.5px;
  color: rgba(255,255,255,0.38);
  margin-top: 10px;
  line-height: 1.5;
  font-style: italic;
  flex-shrink: 0;
}

/* Decorative blobs */
.ed-art {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.ed-art-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
}

.ed-art-blob-1 {
  width: 260px; height: 260px;
  background: rgba(107,79,234,0.28);
  top: -80px; right: -80px;
}

.ed-art-blob-2 {
  width: 200px; height: 200px;
  background: rgba(21,129,88,0.35);
  bottom: 40px; left: -60px;
}

.ed-art-blob-3 {
  width: 150px; height: 150px;
  background: rgba(255,255,255,0.05);
  bottom: 160px; right: -30px;
}

.ed-art-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.055) 1px, transparent 1px);
  background-size: 20px 20px;
}

/* Right content pane when editorial panel is present */
.stage-wrap main.stage {
  flex: 1;
  min-width: 0;
  max-width: none;
  padding-left: 52px;
  padding-right: 52px;
}

/* Responsive: collapse panel on narrow viewports */
@media (max-width: 860px) {
  .ed-panel { display: none; }
  .stage-wrap main.stage { padding-left: var(--pad-x); padding-right: var(--pad-x); }
}
