/**
 * OTTO — living phone · in-phone chrome (www homepage v4B hero) · palette C
 * Source: Brand palette-c-ready/phone/phone-chrome.css (2026-10-07). Values unchanged.
 * Web: every selector scoped to .phone-hero (INTEGRATION §5.5) — .lp-armed → .phone-hero.lp-armed.
 * Homepage no longer loads phone-hero.css (that file stays for /forhandlere/brugtvogn/), so there are
 * no float-thread / double-tilt / variable-height leftovers to fight here.
 * Device UI = system font. Only transform/opacity animate. Fixed phone size = no CLS.
 */
.phone-hero .lp-phone-scope {
  --wa-bg: #0b141a;
  --wa-panel: #1f2c34;
  --wa-in: #202c33;
  --wa-out: #005c4b;
  --wa-text: #e9edef;
  --wa-meta: #8696a0;
  --wa-green: #00a884;
  --wa-green-soft: #5dcd8a;
  --ask: #e39a78;            /* «Kun dig» = palette C --phone-only-you */
  --ask-dim: rgba(227, 154, 120, 0.12);
  --bezel: #1c1c1e;
  --bezel-rim: #3a3a3c;
  --from-sofie: #53bdeb;
  --from-karl: #c5a8ff;
  --from-otto: #5dcd8a;
  --from-mette: #ff8fab;
  --from-nils: #f5c26b;
  --from-lars: #8eb4c8;
  --from-you: #8ed4b8;
  --font-phone: "SF Pro Text", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --phone-w: 340px;
  --screen-h: 680px;
}

.phone-hero .phone {
  position: relative;
  width: var(--phone-w);
  max-width: 100%;
  background: var(--bezel);
  border-radius: 44px;
  padding: 11px;
  font-family: var(--font-phone);
  /* Soft shadow for cream plate — warm ink, no black slab, no glow */
  box-shadow:
    0 0 0 1px var(--bezel-rim),
    0 0 0 3px #0a0a0a,
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 40px 70px -28px rgba(26, 22, 18, 0.42),
    0 18px 32px -18px rgba(26, 22, 18, 0.30);
}
.phone-hero .phone::before, .phone-hero .phone::after {
  content: "";
  position: absolute;
  background: #2c2c2e;
  border-radius: 2px;
}
.phone-hero .phone::before { width: 3px; height: 56px; left: -3px; top: 110px; box-shadow: 0 72px 0 #2c2c2e, 0 110px 0 #2c2c2e; }
.phone-hero .phone::after { width: 3px; height: 72px; right: -3px; top: 140px; }

.phone-hero .phone-screen {
  position: relative;
  height: var(--screen-h);           /* fixed = reserved, no CLS */
  background: var(--wa-bg);
  border-radius: 36px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  contain: layout paint;
}
.phone-hero .dynamic-island {
  position: absolute; top: 10px; left: 50%;
  width: 102px; height: 30px; margin-left: -51px;
  background: #000; border-radius: 20px; z-index: 8;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.phone-hero .phone-status {
  background: var(--wa-panel);
  padding: 48px 22px 4px 28px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--wa-text); font-weight: 600; letter-spacing: -0.01em;
}
.phone-hero .phone-status .clock { display: inline-block; width: 3.2em; font-variant-numeric: tabular-nums; }
.phone-hero .phone-status .right { display: flex; gap: 6px; align-items: center; font-size: 11px; }
.phone-hero .sig { display: inline-flex; gap: 1.5px; align-items: flex-end; height: 11px; }
.phone-hero .sig i { display: block; width: 3px; background: var(--wa-text); border-radius: 1px; }
.phone-hero .sig i:nth-child(1) { height: 3px; } .phone-hero .sig i:nth-child(2) { height: 5px; }
.phone-hero .sig i:nth-child(3) { height: 8px; } .phone-hero .sig i:nth-child(4) { height: 11px; }
.phone-hero .batt { width: 22px; height: 11px; border: 1.5px solid var(--wa-text); border-radius: 3px; position: relative; margin-left: 1px; }
.phone-hero .batt::before { content: ""; position: absolute; right: -4px; top: 2.5px; width: 2px; height: 4px; background: var(--wa-text); border-radius: 0 1px 1px 0; }
.phone-hero .batt::after { content: ""; position: absolute; left: 1.5px; top: 1.5px; bottom: 1.5px; width: 70%; background: var(--wa-text); border-radius: 1px; }

.phone-hero .chat-head {
  background: var(--wa-panel);
  padding: 8px 12px 11px 8px;
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid #2a3942;
  position: relative; z-index: 3;
}
.phone-hero .back-chev { color: var(--wa-green); font-size: 1.35rem; line-height: 1; padding: 4px 2px 4px 4px; font-weight: 300; }
.phone-hero .avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(145deg, var(--wa-green-soft), #1f7a4e);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.78rem; color: #0b141a; flex-shrink: 0;
}
.phone-hero .chat-head .meta { flex: 1; min-width: 0; }
.phone-hero .chat-head .meta strong { display: block; color: var(--wa-text); font-size: 0.92rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phone-hero .chat-head .meta span { font-size: 0.7rem; color: var(--wa-meta); }
.phone-hero .online-dot { display: inline-block; width: 7px; height: 7px; background: var(--wa-green-soft); border-radius: 50%; margin-right: 4px; vertical-align: middle; }
.phone-hero .head-actions { display: flex; gap: 14px; color: var(--wa-green); flex-shrink: 0; padding-right: 4px; }
.phone-hero .head-actions svg { width: 18px; height: 18px; display: block; }

/* Thread — fixed viewport; inner list moves with transform only */
.phone-hero .thread {
  position: relative;
  flex: 1;
  overflow: hidden;
  background-color: var(--wa-bg);
  background-image:
    radial-gradient(ellipse at 20% 10%, rgba(0, 168, 132, 0.04) 0%, transparent 40%),
    url("data:image/svg+xml,%3Csvg width='48' height='48' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 12h6M28 32h10M16 28h4' stroke='%231a2830' stroke-width='1' fill='none' opacity='0.6'/%3E%3C/svg%3E");
}
.phone-hero .thread-inner {
  position: absolute; left: 0; right: 0; top: 0;
  padding: 12px 8px 12px;
  display: flex; flex-direction: column;
  will-change: transform;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.phone-hero .day-sep { text-align: center; margin: 6px 0 10px; }
.phone-hero .day-sep span {
  display: inline-block; background: #1a2830; color: var(--wa-meta);
  font-size: 0.66rem; padding: 4px 10px; border-radius: 7px; font-weight: 500;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.phone-hero .msg { max-width: 88%; margin-bottom: 6px; position: relative; }
.phone-hero .msg.agent { align-self: flex-start; }
.phone-hero .msg.you { align-self: flex-end; }
.phone-hero .msg .bubble {
  padding: 7px 9px 5px; border-radius: 8px;
  font-size: 0.82rem; line-height: 1.38;
  position: relative; overflow-wrap: break-word;
  box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.18);
  color: var(--wa-text);
}
.phone-hero .msg.agent .bubble { background: var(--wa-in); border-top-left-radius: 2px; }
.phone-hero .msg.you .bubble { background: var(--wa-out); border-top-right-radius: 2px; }
.phone-hero .msg .from { font-size: 0.64rem; font-weight: 700; margin-bottom: 2px; }
.phone-hero .msg .from .role { font-weight: 500; opacity: 0.85; }
.phone-hero .from-sofie { color: var(--from-sofie); } .phone-hero .from-karl { color: var(--from-karl); }
.phone-hero .from-otto { color: var(--from-otto); } .phone-hero .from-mette { color: var(--from-mette); }
.phone-hero .from-nils { color: var(--from-nils); } .phone-hero .from-lars { color: var(--from-lars); } .phone-hero .msg.you .from { color: var(--from-you); }
.phone-hero .msg .time { display: block; text-align: right; margin-top: 2px; font-size: 0.6rem; color: var(--wa-meta); white-space: nowrap; }
.phone-hero .msg .check { color: #53bdeb; margin-left: 2px; letter-spacing: -1px; }
.phone-hero .msg.done .bubble { border-left: 2.5px solid var(--wa-green-soft); }
.phone-hero .msg.ask .bubble { border-left: 2.5px solid var(--ask); box-shadow: 0 0 0 1px var(--ask-dim), 0 1px 0.5px rgba(0, 0, 0, 0.18); }
.phone-hero .msg .badge {
  display: inline-block; font-size: 0.55rem; letter-spacing: 0.05em; text-transform: uppercase;
  font-weight: 700; padding: 1px 5px; border-radius: 3px; margin-bottom: 3px;
}
.phone-hero .msg.done .badge { background: rgba(93, 205, 138, 0.15); color: var(--wa-green-soft); }
.phone-hero .msg.ask .badge { background: var(--ask-dim); color: var(--ask); }

/* Car tile — neutral silhouette + model name (no car renders, no photos of dealer stock) */
.phone-hero .car {
  display: flex; align-items: center; gap: 9px;
  margin: 6px 0 2px; padding: 6px; border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.phone-hero .car-tile {
  width: 56px; height: 38px; flex-shrink: 0; border-radius: 6px;
  background: #2a3942; display: flex; align-items: center; justify-content: center;
}
.phone-hero .car-tile svg { width: 46px; height: 21px; display: block; }
.phone-hero .car-meta { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.phone-hero .car-meta b { font-size: 0.74rem; font-weight: 600; color: var(--wa-text); }
.phone-hero .car-meta small { font-size: 0.62rem; color: var(--wa-meta); }

/* Typing bubble («skriver…») */
.phone-hero .typing {
  position: absolute; left: 8px; top: 0;
  background: var(--wa-in); border-radius: 8px; border-top-left-radius: 2px;
  padding: 8px 11px 7px; display: flex; flex-direction: column; gap: 3px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.18s ease;
  box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.18);
}
.phone-hero .typing .who { font-size: 0.6rem; color: var(--wa-meta); }
.phone-hero .typing .dots { display: flex; gap: 4px; height: 8px; align-items: center; }
.phone-hero .typing .dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--wa-meta); display: block; animation: lp-dot 1s infinite ease-in-out; }
.phone-hero .typing .dots i:nth-child(2) { animation-delay: 0.15s; }
.phone-hero .typing .dots i:nth-child(3) { animation-delay: 0.3s; }
.phone-hero .typing.on { opacity: 1; }
@keyframes lp-dot { 0%, 60%, 100% { transform: translateY(0); opacity: 0.45; } 30% { transform: translateY(-3px); opacity: 1; } }

/* Notification banner (iOS-like) */
.phone-hero .notif {
  position: absolute; z-index: 9; left: 8px; right: 8px; top: 46px;
  display: flex; gap: 10px; align-items: center;
  padding: 10px 12px; border-radius: 18px;
  background: #f6f3ee;
  color: #1a1612;
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.5);
  transform: translateY(-140%); opacity: 0;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s ease;
}
.phone-hero .notif.on { transform: translateY(0); opacity: 1; }
.phone-hero .notif .app {
  width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
  background: linear-gradient(145deg, var(--wa-green-soft), #1f7a4e);
  color: #0b141a; font-weight: 800; font-size: 0.7rem;
  display: flex; align-items: center; justify-content: center;
}
.phone-hero .notif .txt { min-width: 0; flex: 1; line-height: 1.25; }
.phone-hero .notif .row { display: flex; justify-content: space-between; font-size: 0.66rem; color: #6b6560; }
.phone-hero .notif strong { display: block; font-size: 0.8rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.phone-hero .composer-wrap { background: var(--wa-panel); border-top: 1px solid #2a3942; padding-bottom: 4px; position: relative; z-index: 3; }
.phone-hero .composer { padding: 8px 10px 6px; display: flex; gap: 8px; align-items: center; }
.phone-hero .composer .field {
  flex: 1; background: #2a3942; border-radius: 22px; padding: 10px 15px;
  color: var(--wa-meta); font-size: 0.84rem;
}
.phone-hero .composer .send {
  background: var(--wa-green); color: #0b141a; width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-weight: 800; flex-shrink: 0;
}
.phone-hero .home-ind { width: 120px; height: 4px; background: rgba(255, 255, 255, 0.28); border-radius: 3px; margin: 4px auto 6px; }

/* Pending (JS-armed only, so no-JS shows full thread) */
.phone-hero.lp-armed .msg.pending { opacity: 0; transform: translateY(8px); }
.phone-hero.lp-armed .msg { transition: opacity 0.32s ease, transform 0.32s ease; }

@media (prefers-reduced-motion: reduce) {
  .phone-hero .thread-inner, .phone-hero .msg, .phone-hero .notif, .phone-hero .typing { transition: none !important; }
  .phone-hero .typing .dots i { animation: none; }
}
