/* The AI Lab brand tokens + base, copied from the marketing site's style.css
   so the adoption site is self-contained (it deploys as its own Static Web App
   with app_location "adoption", which does not include the repo-root CSS). */
:root {
  --teal:        #2DA584;
  --teal-light:  #3DC496;
  --teal-pale:   #edf8f4;
  --navy:        #14212E;
  --navy-mid:    #1e3245;
  --white:       #ffffff;
  --off-white:   #f8fafb;
  --text:        #14212E;
  --text-muted:  #5a7282;
  --faint:       #aab5be;
  --border:      #e2eaef;
  --font: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;
  --pill: 50px;
  --shadow-sm: 0 2px 8px rgba(20,33,46,.08);
  --shadow:    0 6px 24px rgba(20,33,46,.12);
  --shadow-teal: 0 8px 32px rgba(45,165,132,.25);
  --focus-ring: 0 0 0 3px rgba(45,165,132,.15);
  --transition: .25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font);
  background: var(--off-white);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  font-size: 16px;
  padding: 16px 40px;
  border-radius: var(--pill);
  background: var(--teal);
  color: var(--white);
  box-shadow: var(--shadow-teal);
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); background: var(--teal-light); }
.btn:focus-visible { outline: none; box-shadow: var(--shadow-teal), var(--focus-ring); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 10px 22px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--pill);
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}
.chip .dot { width: 4px; height: 4px; border-radius: 50%; background: #cdd8df; }

/* ---- Questionnaire app ------------------------------------------------- */
.stage {
  position: relative; min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 48px 24px; overflow: hidden;
}
.blob {
  position: absolute; top: -200px; right: -160px; width: 560px; height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(45,165,132,.16), rgba(45,165,132,0) 70%);
  pointer-events: none;
}
.stage__inner { position: relative; width: 100%; max-width: 640px; text-align: center; }
.logo { width: 128px; margin-bottom: 36px; }
h1 { font-size: clamp(32px, 5vw, 50px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.08; margin: 16px 0 18px; }
h2.qtext { font-size: clamp(22px, 3.4vw, 30px); font-weight: 800; letter-spacing: -0.01em; line-height: 1.2; margin: 14px 0 26px; }
.lede { font-size: 18px; color: var(--text-muted); margin-bottom: 28px; }
.meta { margin-bottom: 32px; }
.note { margin-top: 16px; font-size: 14px; color: var(--faint); min-height: 18px; }
footer { font-size: 13px; color: var(--faint); text-align: center; padding: 36px 24px 12px; }
/* The questionnaire pins its footer to the bottom of the full-height stage;
   the report/migration pages let it flow normally so it can't overlap content. */
.stage footer { position: absolute; bottom: 20px; padding: 0; }

.eyebrow--area { color: var(--teal); }
.qmeta { display: flex; align-items: center; gap: 16px; margin: 14px 0 6px; }
.counter { font-size: 13px; font-weight: 600; color: var(--text-muted); white-space: nowrap; }
.progress { flex: 1; height: 6px; background: #e9eef1; border-radius: var(--pill); overflow: hidden; }
.progress__fill { height: 100%; background: var(--teal); border-radius: var(--pill); transition: width .35s ease; }

.options { display: flex; flex-direction: column; gap: 12px; text-align: left; }
.option {
  display: flex; align-items: center; gap: 14px; width: 100%; cursor: pointer;
  font-family: inherit; font-size: 16px; color: var(--text); text-align: left;
  background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: 16px 18px; transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.option:hover { border-color: var(--teal-light); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.option--selected { border-color: var(--teal); box-shadow: var(--focus-ring); }
.option__radio {
  flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #cdd8df;
  display: flex; align-items: center; justify-content: center; transition: all var(--transition);
}
.option--selected .option__radio { border-color: var(--teal); background: var(--teal); }
.option__check { width: 9px; height: 9px; border-radius: 50%; background: #fff; }
.option__label { flex: 1; }
.option__score { font-size: 12px; font-weight: 700; color: var(--teal); }
.back { margin-top: 22px; background: none; border: none; cursor: pointer; font-family: inherit; font-size: 14px; font-weight: 600; color: var(--text-muted); }

.capture { text-align: left; }
.fieldrow { display: block; margin-bottom: 16px; }
.fieldrow span { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.fieldrow input, .fieldrow textarea {
  width: 100%; font-family: inherit; font-size: 16px; padding: 13px 16px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm); background: var(--white); color: var(--text);
}
.fieldrow textarea { resize: vertical; }
.fieldrow input:focus, .fieldrow textarea:focus { outline: none; border-color: var(--teal); box-shadow: var(--focus-ring); }
.capture .btn { margin-top: 8px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn--ghost { background: none; color: var(--teal); box-shadow: none; border: 1.5px solid var(--border); }
.btn--ghost:hover { background: var(--teal-pale); }

.result__profile { color: var(--navy); margin-bottom: 12px; }
.stats { display: flex; gap: 16px; justify-content: center; margin: 8px 0 24px; }
.statcard { background: var(--teal-pale); border-radius: var(--radius); padding: 18px 26px; min-width: 120px; }
.statcard__value { font-size: 30px; font-weight: 800; color: var(--navy); }
.statcard__label { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.result__next { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 24px; text-align: left; }
.result__ctas { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* ---- Report page ------------------------------------------------------- */
.page { min-height: 100vh; display: flex; flex-direction: column; align-items: center; padding: 48px 24px 80px; }
.page__inner { width: 100%; max-width: 760px; text-align: center; }
.whereyousit { color: var(--text-muted); font-size: 16px; max-width: 600px; margin: 0 auto 26px; }
.statcard__band { font-size: 12px; font-weight: 700; color: var(--teal); margin-top: 2px; }
.charts { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; margin: 12px 0 28px; }
.chartbox { flex: 1; min-width: 280px; background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 18px; }
.chartbox h3 { font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.legend { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 8px; font-size: 12px; color: var(--text-muted); }
.legend__item { display: inline-flex; align-items: center; gap: 6px; }
.legend__swatch { width: 14px; height: 4px; border-radius: 2px; display: inline-block; }
.areabars { text-align: left; margin: 8px 0 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.areabar__top { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; margin-bottom: 5px; }
.areabar__pct { color: var(--teal); }
.areabar__track { height: 7px; background: #e9eef1; border-radius: var(--pill); overflow: hidden; }
.areabar__fill { height: 100%; background: var(--teal); border-radius: var(--pill); }
.nextmoves { text-align: left; background: var(--teal-pale); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 26px; }
.nextmoves h3 { font-size: 15px; font-weight: 800; margin-bottom: 10px; }
.nextmoves ol { padding-left: 20px; }
.nextmoves li { margin-bottom: 10px; line-height: 1.5; }
.clientnote { font-weight: 600; color: var(--navy); align-self: center; }
@media (max-width: 560px) { .areabars { grid-template-columns: 1fr; } }

/* ---- Migration plan page ---------------------------------------------- */
.tabs { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 28px; }
.tab { font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer; padding: 9px 18px; border-radius: var(--pill); border: 1.5px solid var(--border); background: var(--white); color: var(--text-muted); }
.tab--on { background: var(--navy); color: #fff; border-color: var(--navy); }
.chartbox--center { max-width: 340px; margin: 8px auto 24px; }
.routeq { width: 100%; height: auto; }
.toggle { display: inline-flex; gap: 4px; padding: 4px; background: #eef2f4; border-radius: var(--pill); margin: 6px auto 8px; }
.toggle__btn { font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer; padding: 8px 18px; border: none; background: none; color: var(--text-muted); border-radius: var(--pill); }
.toggle__btn--on { background: var(--white); color: var(--navy); box-shadow: var(--shadow-sm); }
.section { font-size: clamp(20px, 3vw, 26px); font-weight: 800; margin: 30px 0 6px; }
.plantitle { color: var(--text-muted); margin-bottom: 18px; }
.phases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; text-align: left; margin-bottom: 28px; }
.phase { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 18px; }
.phase__when { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--teal); }
.phase__title { font-weight: 800; margin: 6px 0 8px; }
.phase p { font-size: 14px; color: var(--text-muted); line-height: 1.5; }
.mt { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; text-align: left; margin-bottom: 28px; }
.panel { border-radius: var(--radius); padding: 20px 22px; }
.panel h3 { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 12px; }
.panel ul { padding-left: 18px; }
.panel li { margin-bottom: 9px; line-height: 1.5; }
.panel--teal { background: var(--teal-pale); }
.panel--teal h3 { color: var(--teal); }
.panel--amber { background: #fff7ec; }
.panel--amber h3 { color: #E2A53B; }
.sixmonth { background: var(--navy); color: #fff; border-radius: var(--radius-lg); padding: 28px; margin-bottom: 26px; }
.sixmonth .eyebrow { color: var(--teal-light); }
.sixmonth__text { font-size: clamp(18px, 2.4vw, 23px); font-weight: 600; line-height: 1.5; margin-top: 8px; }
.reassess { text-align: center; }
.reassess p { color: var(--text-muted); max-width: 580px; margin: 0 auto 16px; }
@media (max-width: 640px) { .phases, .mt { grid-template-columns: 1fr; } }
