/* Mr Lund 22.11: assistent- og dashboard-siderne viser selve produktet – foto + svævende kort. Ingen pastel. */
.ai-band { background: none !important; }

.ais { padding-block: clamp(56px, 8vw, 120px); }
.ais-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 72px); }
.ais-head .h2 { margin: 0 0 14px; }
.ais-head p { color: var(--ink-2); margin: 0; max-width: 56ch; }

.ais-row { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 88px); align-items: center; }
.ais-row + .ais-row { margin-top: clamp(64px, 9vw, 140px); }
.ais-row.flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); }
.ais-row.flip .ais-stage { order: 2; }
.ais-copy .mono { display: block; font: 450 11px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--signal); margin-bottom: 18px; }
.ais-copy h3 { font: 500 clamp(26px, 2.6vw, 40px)/1.08 var(--sans); letter-spacing: -.03em; margin: 0 0 16px; }
.ais-copy p { color: var(--ink-2); margin: 0 0 14px; max-width: 44ch; }
.ais-copy ul { list-style: none; padding: 0; margin: 22px 0 0; border-top: 1px solid var(--line); }
.ais-copy li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--ink-2); display: flex; gap: 12px; }
.ais-copy li::before { content: '→'; color: var(--mute); }

.ais-stage { position: relative; aspect-ratio: 4 / 3; border-radius: 18px; overflow: visible; }
.ais-photo { position: absolute; inset: 0; border-radius: 18px; overflow: hidden; box-shadow: 0 0 0 1px var(--line), 0 50px 100px -50px rgba(0,0,0,.9); }
.ais-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.06); transition: transform 1.6s cubic-bezier(.2,.7,.2,1); }
.ais-stage.on .ais-photo img { transform: scale(1); }
.ais-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.35)); }

/* svævende kort */
.aic { position: absolute; z-index: 2; width: min(330px, 62%); padding: 16px 18px; border-radius: 16px; background: rgba(250, 250, 248, .94); color: #111314; backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); box-shadow: 0 24px 60px -18px rgba(0,0,0,.55), 0 0 0 1px rgba(0,0,0,.06); font-size: 14px; line-height: 1.4;
  opacity: 0; transform: translateY(18px) scale(.97); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.ais-stage.on .aic { opacity: 1; transform: none; }
.aic.dark { background: rgba(14, 16, 17, .9); color: #F2F2F2; box-shadow: 0 24px 60px -18px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.1); }
.aic-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.aic-ico { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #111314; color: #F2F2F2; flex: none; font-size: 14px; }
.aic.dark .aic-ico { background: #F2F2F2; color: #111314; }
.aic-ico.ok { background: #1F8A4C; color: #fff; }
.aic-t { font-weight: 600; font-size: 14px; display: block; }
.aic-s { font: 450 10.5px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; opacity: .55; display: block; margin-top: 2px; }
.aic-live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font: 450 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #1F8A4C; }
.aic-live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: aicPulse 1.4s infinite; }
@keyframes aicPulse { 50% { opacity: .25; } }

/* lydbølge */
.aic-wave { display: flex; align-items: center; gap: 3px; height: 30px; margin: 4px 0 10px; }
.aic-wave i { flex: 1; height: 30%; border-radius: 2px; background: currentColor; opacity: .8; animation: aicWave 1.1s ease-in-out infinite; animation-delay: calc(var(--i) * -.09s); }
@keyframes aicWave { 0%, 100% { height: 18%; } 50% { height: 100%; } }
.ais-stage:not(.on) .aic-wave i { animation-play-state: paused; }

/* udskrift, linje for linje */
.aic-lines { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.aic-lines li { font-size: 13px; opacity: 0; transform: translateY(6px); transition: opacity .5s, transform .5s; }
.aic-lines li.in { opacity: 1; transform: none; }
.aic-lines b { font: 450 10px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; opacity: .5; margin-right: 6px; font-weight: 450; }

/* mail-udkast */
.aic-mail-h { display: grid; gap: 3px; padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px solid rgba(0,0,0,.08); font-size: 12.5px; }
.aic-mail-h span { opacity: .6; }
.aic-typed { min-height: 4.2em; font-size: 13px; }
.aic-typed::after { content: ''; display: inline-block; width: 1.5px; height: 1em; background: currentColor; vertical-align: -2px; margin-left: 1px; animation: aicPulse .9s steps(1) infinite; }
.aic-btns { display: flex; gap: 8px; margin-top: 12px; }
.aic-btn { font: 500 12px/1 var(--sans); padding: 9px 12px; border-radius: 999px; background: #111314; color: #fff; }
.aic-btn.ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); }

/* små notifikationer */
.aic.toast { width: auto; max-width: 78%; padding: 12px 16px 12px 12px; display: flex; align-items: center; gap: 12px; }
.aic.toast .aic-top { margin: 0; }

/* placeringer */
.pos-tl { top: 6%; left: -5%; } .pos-tr { top: 6%; right: -2%; }
.pos-bl { bottom: 7%; left: -5%; } .pos-br { bottom: 7%; right: 3%; }
.pos-ml { top: 38%; left: -5%; } .pos-mr { top: 40%; right: -2%; }

/* dashboard: stort mørkt produktbillede */
.ais-dash { position: relative; margin-top: clamp(20px, 3vw, 40px); }
.ais-dash-frame { border-radius: 16px; overflow: hidden; background: #0E1011; box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 80px 160px -60px rgba(0,0,0,.95); }
.ais-dash-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
.ais-dash-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.16); }
.ais-dash-bar span { margin-left: 12px; font: 450 11px/1 var(--mono); letter-spacing: .06em; color: rgba(255,255,255,.45); }
.ais-dash-frame img { display: block; width: 100%; height: auto; }
.ais-dash .aic { width: min(300px, 40%); }
.ais-dash-cap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 18px; color: var(--mute); font-size: 13px; }

@media (max-width: 860px) {
  .ais-row, .ais-row.flip { grid-template-columns: 1fr; gap: 28px; }
  .ais-row.flip .ais-stage { order: 0; }
  .aic { width: min(270px, 74%); font-size: 13px; padding: 13px 14px; }
  .pos-tl, .pos-ml, .pos-bl { left: 3%; } .pos-tr, .pos-mr, .pos-br { right: 3%; }
  .ais-stage { margin-bottom: 40px; }
  .ais-stage .pos-bl, .ais-stage .pos-br { bottom: -40px; }
  .ais-dash .aic { display: none; }
  .ais-dash .aic.keep { display: flex; position: relative; inset: auto !important; margin: 14px 0 0; max-width: 100%; width: 100%; }
  .ais-stage:not(.ais-dash) { aspect-ratio: 4 / 5; }
  .ais-photo img { object-position: 40% 50%; }
  .ais-row .aic.toast.dark { display: none; }
  .aic { width: min(250px, 72%); }
  .aic-lines li:nth-child(3) { display: none; }
  .aic-wave { height: 20px; margin: 0 0 8px; }
  .aic-btns { display: none; }
  .pos-tr, .pos-tl { top: 4%; }
}
@media (prefers-reduced-motion: reduce) {
  .aic, .ais-photo img, .aic-lines li { transition: none !important; opacity: 1 !important; transform: none !important; }
  .aic-wave i, .aic-live::before, .aic-typed::after { animation: none !important; }
}
