.ai-scan-section {
  padding: clamp(5rem, 9vw, 9rem) max(5vw, 1.25rem);
  background: #f3f4f8;
  color: #09090c;
}
.ai-scan-layout {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.ai-scan-intro { position: sticky; top: 7rem; }
.ai-scan-intro h2 { margin: .6rem 0 1rem; max-width: 12ch; font-size: clamp(2.6rem, 5vw, 5rem); line-height: .96; letter-spacing: -.055em; }
.ai-scan-intro > p:last-child { max-width: 34rem; color: #595a63; font-size: 1.05rem; line-height: 1.65; }
.ai-scan-shell {
  padding: clamp(1.35rem, 3vw, 2.4rem);
  border-radius: 28px;
  background: #09090c;
  color: #fff;
  box-shadow: 0 28px 80px rgba(12, 17, 34, .16);
}
.problem-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .65rem;
  margin: 0 0 2rem;
  padding: 0 0 1.4rem;
  border-bottom: 1px solid #292a32;
  list-style: none;
}
.problem-steps li { color: #666975; font-size: .72rem; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; }
.problem-steps span { display: block; margin-bottom: .2rem; color: #494b55; }
.problem-steps .is-active { color: #fff; }
.problem-steps .is-active span { color: #8190ff; }
.problem-steps .is-complete { color: #9da4d9; }
.problem-steps .is-complete span::after { content: " ✓"; color: #55e6a5; }
.ai-scan-form, .problem-followup { display: grid; gap: 1.2rem; }
.ai-scan-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.ai-scan-field { display: grid; gap: .5rem; }
.ai-scan-field label { color: #aeb1bc; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.ai-scan-field input,
.ai-scan-field select,
.ai-scan-field textarea {
  width: 100%;
  border: 1px solid #30313a;
  border-radius: 13px;
  background: #15161b;
  color: #fff;
  font: inherit;
  padding: .9rem 1rem;
  outline: none;
}
.ai-scan-field textarea { min-height: 9rem; resize: vertical; line-height: 1.5; }
.problem-followup textarea { min-height: 6rem; }
.ai-scan-field input:focus,
.ai-scan-field select:focus,
.ai-scan-field textarea:focus { border-color: #6f82ff; box-shadow: 0 0 0 3px rgba(95, 116, 255, .18); }
.ai-scan-form .button, .problem-followup .button { justify-self: start; border: 0; }
.ai-scan-note { margin: 0; color: #888b96; font-size: .8rem; }
.ai-scan-results { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid #292a32; outline: none; }
.ai-scan-results[hidden] { display: none; }
.problem-team-intro > span,
.proposal-head > div > span { color: #8190ff; font-size: .7rem; font-weight: 800; letter-spacing: .12em; }
.problem-team-intro h3,
.proposal-head h3 { margin: .35rem 0 .65rem; font-size: clamp(1.7rem, 3.4vw, 2.8rem); line-height: 1.04; letter-spacing: -.04em; }
.problem-team-intro p { margin: 0 0 1.5rem; color: #aeb1bc; }
.problem-team-intro strong { color: #fff; }
.expert-question {
  display: grid;
  grid-template-columns: 3.4rem 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1rem;
  border: 1px solid #292a32;
  border-radius: 17px;
  background: #121318;
}
.expert-question > span,
.expert-card > span {
  display: inline-flex;
  justify-content: center;
  padding: .32rem .45rem;
  border: 1px solid rgba(129,144,255,.45);
  border-radius: 999px;
  color: #aeb8ff;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .08em;
}
.scan-error { margin: 0; padding: 1rem; border-radius: 12px; background: #2b1518; color: #ffbdc4; }
.proposal-head { display: grid; grid-template-columns: 1.2fr .8fr; gap: 2rem; align-items: end; margin-bottom: 1.5rem; }
.proposal-head p { margin: 0; color: #aeb1bc; font-size: .9rem; }
.expert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.expert-card { padding: 1rem; border: 1px solid #2a2b33; border-radius: 17px; background: #121318; }
.expert-card > span { width: max-content; }
.expert-card h4 { margin: 1rem 0 .4rem; font-size: .92rem; }
.expert-card p { margin: 0; color: #aeb1bc; font-size: .78rem; line-height: 1.55; }
.proposal-roles { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin-top: .7rem; }
.proposal-roles > div { padding: 1rem; border-radius: 16px; background: #1a1b22; }
.proposal-roles span, .proposal-estimate span { color: #8190ff; font-size: .67rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.proposal-roles p { margin: .45rem 0 0; color: #d7d8df; font-size: .84rem; }
.proposal-estimate { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 1.5rem; overflow: hidden; border: 1px solid #30313a; border-radius: 16px; background: #30313a; }
.proposal-estimate > div { display: grid; gap: .35rem; padding: 1rem; background: #121318; }
.proposal-estimate strong { font-size: .95rem; }
.estimate-note { margin: .65rem 0 1.5rem; color: #838691; font-size: .72rem; }
.proposal-plan { margin: 0; padding: 0; list-style: none; border-top: 1px solid #292a32; }
.proposal-plan li { display: grid; grid-template-columns: 2rem 1fr; gap: .8rem; padding: .9rem 0; border-bottom: 1px solid #292a32; }
.proposal-plan li > span { color: #8190ff; font-size: .7rem; font-weight: 800; }
.proposal-plan p { margin: 0; color: #d7d8df; font-size: .84rem; }
.proposal-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }
.problem-restart { padding: .55rem 0; border: 0; border-bottom: 1px solid #777b88; color: #b8bac3; background: transparent; font: inherit; font-size: .82rem; cursor: pointer; }
.problem-restart:hover { color: #fff; }
@media (max-width: 920px) {
  .ai-scan-layout { grid-template-columns: 1fr; }
  .ai-scan-intro { position: static; }
  .expert-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .ai-scan-form-grid, .proposal-head, .proposal-roles, .proposal-estimate { grid-template-columns: 1fr; }
  .problem-steps { gap: .35rem; }
  .problem-steps li { font-size: .62rem; }
  .expert-question { grid-template-columns: 1fr; }
  .expert-question > span { width: max-content; }
}

/* Dark product studio */
.ai-scan-section {
  border-top: 1px solid rgba(255,255,255,.07);
  border-bottom: 1px solid rgba(255,255,255,.07);
  color: #fff;
  background:
    radial-gradient(circle at 16% 20%, rgba(91,92,255,.17), transparent 31%),
    linear-gradient(180deg, #0e1018 0%, #0a0b10 100%);
}
.ai-scan-intro h2 { color: #fff; }
.ai-scan-intro .eyebrow { color: #8e91ff; }
.ai-scan-intro > p:last-child { color: rgba(255,255,255,.6); }
.ai-scan-shell {
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(7,8,12,.92);
  box-shadow: 0 36px 90px rgba(0,0,0,.36);
}

/* Personal specialist chooser */
.scan-website-field { max-width: 30rem; }
.specialist-picker {
  display: grid;
  gap: .9rem;
  min-width: 0;
  margin: .15rem 0 0;
  padding: 0;
  border: 0;
}
.specialist-picker legend {
  padding: 0;
  color: #f5f6fb;
  font-size: .83rem;
  font-weight: 800;
  letter-spacing: .03em;
}
.specialist-picker > p {
  margin: -.5rem 0 .15rem;
  color: #8f929e;
  font-size: .8rem;
  line-height: 1.5;
}
.specialist-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .65rem;
}
.specialist-card {
  position: relative;
  display: grid;
  grid-template-columns: 3.15rem minmax(0, 1fr);
  gap: .72rem;
  align-items: center;
  min-height: 7.2rem;
  padding: .85rem;
  overflow: hidden;
  border: 1px solid #2c2e39;
  border-radius: 18px;
  background: linear-gradient(145deg, #171922, #101117);
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.specialist-card:hover { transform: translateY(-2px); border-color: #51556b; }
.specialist-card:has(input:checked) {
  border-color: #7482ff;
  background: linear-gradient(145deg, rgba(91,92,255,.2), #11131b 70%);
  box-shadow: 0 0 0 2px rgba(101,116,255,.13), 0 18px 36px rgba(0,0,0,.22);
}
.specialist-card:has(input:checked)::after {
  content: '✓';
  position: absolute;
  top: .55rem;
  right: .62rem;
  display: grid;
  width: 1.15rem;
  height: 1.15rem;
  place-items: center;
  border-radius: 999px;
  background: #6d78ff;
  color: #fff;
  font-size: .65rem;
  font-weight: 900;
}
.specialist-card:has(input:focus-visible) { outline: 3px solid rgba(116,130,255,.36); outline-offset: 2px; }
.specialist-card input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.specialist-copy { display: grid; min-width: 0; }
.specialist-copy > span { color: #909cff; font-size: .58rem; font-weight: 900; letter-spacing: .12em; }
.specialist-copy strong { margin-top: .12rem; color: #fff; font-size: 1rem; }
.specialist-copy small { margin-top: .08rem; color: #c8cad4; font-size: .71rem; font-weight: 700; line-height: 1.2; }
.specialist-copy em { margin-top: .38rem; color: #777b88; font-size: .62rem; font-style: normal; line-height: 1.25; }
.specialist-avatar {
  --avatar-bg: #353a5c;
  --avatar-skin: #d6a27f;
  --avatar-hair: #241c22;
  --avatar-shirt: #6d78ff;
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 3.15rem;
  height: 3.15rem;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 50%;
  background: radial-gradient(circle at 34% 25%, rgba(255,255,255,.2), transparent 28%), var(--avatar-bg);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.04), 0 8px 18px rgba(0,0,0,.24);
}
.specialist-avatar::before {
  content: '';
  position: absolute;
  z-index: 2;
  top: .62rem;
  left: 50%;
  width: 1.28rem;
  height: 1.42rem;
  transform: translateX(-50%);
  border-radius: 48% 48% 45% 45%;
  background: var(--avatar-skin);
  box-shadow: inset 0 .32rem 0 -.08rem var(--avatar-hair);
}
.specialist-avatar::after {
  content: '';
  position: absolute;
  z-index: 1;
  top: .5rem;
  left: 50%;
  width: 1.55rem;
  height: 1.15rem;
  transform: translateX(-50%);
  border-radius: 55% 55% 38% 38%;
  background: var(--avatar-hair);
}
.specialist-avatar > i {
  position: absolute;
  left: 50%;
  bottom: -.34rem;
  width: 2.45rem;
  height: 1.62rem;
  transform: translateX(-50%);
  border-radius: 52% 52% 0 0;
  background: var(--avatar-shirt);
}
.avatar-maya { --avatar-bg: #26325c; --avatar-skin: #c98d6c; --avatar-hair: #1b1721; --avatar-shirt: #6976ff; }
.avatar-mikkel { --avatar-bg: #264f4d; --avatar-skin: #e1b08b; --avatar-hair: #6b422d; --avatar-shirt: #31a69a; }
.avatar-sofie { --avatar-bg: #54385c; --avatar-skin: #f0c3a0; --avatar-hair: #c47c42; --avatar-shirt: #aa65c8; }
.avatar-felix { --avatar-bg: #263b55; --avatar-skin: #8a5b43; --avatar-hair: #17191e; --avatar-shirt: #4a8fd6; }
.avatar-nora { --avatar-bg: #4f4630; --avatar-skin: #d6a37f; --avatar-hair: #34201a; --avatar-shirt: #d29b45; }
.specialist-preview {
  display: grid;
  grid-template-columns: 3.7rem minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(125,138,255,.38);
  border-radius: 20px;
  background: linear-gradient(105deg, rgba(91,92,255,.2), rgba(20,22,31,.84) 68%);
}
.specialist-preview .specialist-avatar { width: 3.7rem; height: 3.7rem; }
.specialist-preview > div { display: grid; }
.specialist-preview > div > span,
.specialist-conversation-profile > div > span { color: #929dff; font-size: .62rem; font-weight: 900; letter-spacing: .12em; }
.specialist-preview strong { margin-top: .16rem; color: #fff; font-size: .95rem; }
.specialist-preview p { margin: .28rem 0 0; color: #aeb1bc; font-size: .78rem; line-height: 1.45; }
.problem-specialist-intro { margin-bottom: 1.5rem; }
.specialist-conversation-profile {
  display: grid;
  grid-template-columns: 4.1rem minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid rgba(125,138,255,.32);
  border-radius: 20px;
  background: linear-gradient(115deg, rgba(91,92,255,.18), #11131a 72%);
}
.specialist-conversation-profile .specialist-avatar { width: 4.1rem; height: 4.1rem; }
.specialist-conversation-profile h3 { margin: .16rem 0 .22rem; font-size: 1.15rem; letter-spacing: -.02em; }
.specialist-conversation-profile p { margin: 0; color: #aeb1bc; font-size: .79rem; line-height: 1.5; }
.specialist-focus { margin: .9rem 0 0; color: #aeb1bc; font-size: .82rem; }
.specialist-focus strong { color: #fff; }

@media (max-width: 760px) {
  .specialist-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .specialist-options { grid-template-columns: 1fr; }
  .specialist-card { min-height: 6.4rem; }
  .specialist-preview, .specialist-conversation-profile { grid-template-columns: 3.3rem minmax(0, 1fr); }
  .specialist-preview .specialist-avatar, .specialist-conversation-profile .specialist-avatar { width: 3.3rem; height: 3.3rem; }
}
