/**
 * OTTOs Auto — v4B phone-hero (homepage)
 * Acceptance: «Telefonen føles som AI i lommen, ikke som et dashboard.»
 * Page type: DM Sans + Instrument Serif (already on the page; regular face below).
 * Phone type: system UI — device chrome, not a third brand font.
 * Tokens live on .phone-hero / .v4b-story so sitewide --green/--amber/--ink stay put.
 */

@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("instrumentserif-latin.woff2") format("woff2");
}

.phone-hero,
.v4b-story {
  --ink: #1a1814;
  --muted-wood: #6b6358;
  --cream: #f4efe6;
  --paper: #faf7f2;
  --wood: #2a241c;
  --wood-mid: #3d3428;
  --lede: #b8a890;
  --pill-border: #4a4030;
  --line-wood: #3a3428;
  --green: #00a884;
  --green-soft: #5dcd8a;
  --wa-bg: #0b141a;
  --wa-panel: #1f2c34;
  --wa-in: #202c33;
  --wa-out: #005c4b;
  --wa-text: #e9edef;
  --wa-meta: #8696a0;
  --amber: #e8a84a;
  --bezel: #1c1c1e;
  --bezel-rim: #3a3a3c;
  --from-sofie: #53bdeb;
  --from-karl: #c5a8ff;
  --from-otto: #5dcd8a;
  --from-mette: #ff8fab;
  --from-nils: #f5c26b;
  --from-pris: #e8a84a;
  --from-you: #8ed4b8;
  --font-page-sans: "DM Sans", system-ui, sans-serif;
  --font-page-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-phone: "SF Pro Text", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

/* —— Page around the phone: warm desk —— */
.phone-hero {
  position: relative;
  display: block;
  min-height: 0;
  padding: 36px 20px 28px;
  overflow: hidden;
  background: var(--wood);
  color: var(--cream);
  font-family: var(--font-page-sans);
  -webkit-font-smoothing: antialiased;
}
.phone-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(93, 205, 138, 0.07) 0%, transparent 55%),
    linear-gradient(180deg, #3a3024 0%, #2a241c 45%, #1e1810 100%);
  pointer-events: none;
}
.phone-hero .hero-inner {
  position: relative;
  z-index: 1;
  order: 0;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0;
  display: grid;
  gap: 36px;
  align-items: center;
}
@media (min-width: 900px) {
  .phone-hero {
    padding: 48px 28px 40px;
    min-height: 0;
  }
  .phone-hero .hero-inner {
    grid-template-columns: 1fr minmax(300px, 360px);
    gap: 48px 56px;
    padding: 12px 12px 8px;
    display: grid;
    min-height: 0;
    align-items: center;
  }
}

.phone-hero .hero-copy {
  position: relative;
  z-index: 1;
  max-width: none;
  text-align: center;
}
.phone-hero .hero-copy::before { content: none; }
@media (min-width: 900px) {
  .phone-hero .hero-copy {
    text-align: left;
    max-width: 28rem;
  }
  .phone-hero .hero-copy::before { content: none; }
}

.phone-hero .eyebrow {
  display: inline-block;
  gap: 0;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-soft);
  margin-bottom: 14px;
  font-weight: 600;
}
.phone-hero .eyebrow::before {
  content: none;
  width: 0;
  height: 0;
  box-shadow: none;
  background: none;
}

.phone-hero h1 {
  font-family: var(--font-page-serif);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(1.75rem, 4.2vw, 2.55rem);
  color: #f5efe6;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  max-width: 16em;
}
@media (max-width: 899px) {
  .phone-hero h1 { margin-left: auto; margin-right: auto; }
}

.phone-hero .lede {
  font-size: 1.05rem;
  color: var(--lede);
  max-width: 34ch;
  margin: 0 auto 22px;
  line-height: 1.55;
}
@media (min-width: 900px) {
  .phone-hero .lede { margin-left: 0; }
}

.phone-hero .hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 28px;
}
@media (min-width: 900px) {
  .phone-hero .hero-pills { justify-content: flex-start; }
}
.phone-hero .pill {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: #c8b8a0;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--pill-border);
  padding: 6px 11px;
  border-radius: 999px;
}

.phone-hero .cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
}
@media (min-width: 900px) {
  .phone-hero .cta-row { justify-content: flex-start; }
}

/* Hero fill is product green. Crisis teal stays outside this band. */
.phone-hero a.btn-soft {
  display: inline-block;
  background: var(--green);
  color: #0b141a;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 12px 22px;
  border-radius: 10px;
  min-height: 44px;
  line-height: 1.2;
  box-shadow: none;
  transition: background 0.15s ease;
  font-family: var(--font-page-sans);
}
.phone-hero a.btn-soft:hover { background: var(--green-soft); transform: none; }
.phone-hero .cta-note {
  font-size: 0.78rem;
  color: #8a8070;
}

/* —— Phone (device chrome). Class .phone is shared with #eksempler reels — reset those rules here. —— */
.phone-hero .phone-stage {
  display: flex;
  justify-content: center;
  perspective: 1200px;
  font-family: var(--font-phone);
  padding: 8px 6px 18px;
}

.phone-hero .phone {
  width: 100%;
  max-width: 340px;
  aspect-ratio: auto;
  background: var(--bezel);
  border-radius: 44px;
  padding: 11px;
  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 28px 70px rgba(0, 0, 0, 0.55),
    0 8px 20px rgba(0, 0, 0, 0.35);
  position: relative;
  font-family: var(--font-phone);
  color: var(--wa-text);
}
@media (min-width: 900px) {
  .phone-hero .phone {
    transform: rotateY(-4deg) rotateX(2deg);
    transition: transform 0.4s ease;
  }
  .phone-hero .phone:hover { transform: rotateY(0deg) rotateX(0deg); }
}
@media (prefers-reduced-motion: reduce) {
  .phone-hero .phone { transform: none !important; transition: none !important; }
}

.phone-hero .phone::before,
.phone-hero .phone::after {
  content: "";
  position: absolute;
  background: #2c2c2e;
  border-radius: 2px;
  inset: auto;
}
.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;
  left: auto;
  bottom: auto;
  background: #2c2c2e;
}
.phone-hero .phone video,
.phone-hero .phone img {
  position: static;
  inset: auto;
  width: auto;
  height: auto;
  object-fit: unset;
}

.phone-hero .phone-screen {
  background: var(--wa-bg);
  border-radius: 36px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 640px;
  max-height: 700px;
}

.phone-hero .dynamic-island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 102px;
  height: 30px;
  background: #000;
  border-radius: 20px;
  z-index: 6;
  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;
  font-family: var(--font-phone);
}
.phone-hero .phone-status .right {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 11px;
  color: var(--wa-text);
  font-weight: 600;
}
.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;
  font-style: normal;
}
.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;
  box-sizing: border-box;
}
.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;
}
.phone-hero .back-chev {
  color: var(--green);
  font-size: 1.55rem;
  line-height: 1;
  padding: 4px 2px 4px 4px;
  flex-shrink: 0;
  font-weight: 300;
}
.phone-hero .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--green-soft), #1f7a4e);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.78rem;
  color: #0b141a;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(93, 205, 138, 0.22);
}
.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(--green-soft);
  border-radius: 50%;
  margin-right: 4px;
  vertical-align: middle;
}
.phone-hero .head-actions {
  display: flex;
  gap: 14px;
  color: var(--green);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  padding-right: 2px;
}

.phone-hero .thread {
  flex: 1;
  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");
  padding: 12px 8px 10px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  font-family: var(--font-phone);
}

.phone-hero .day-sep {
  text-align: center;
  margin: 8px 0 12px;
  clear: both;
}
.phone-hero .day-sep span {
  display: inline-block;
  background: #1a2830;
  color: var(--wa-meta);
  font-size: 0.66rem;
  padding: 4px 10px;
  border-radius: 7px;
  letter-spacing: 0.02em;
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.phone-hero .msg {
  max-width: 88%;
  margin-bottom: 3px;
  clear: both;
}
.phone-hero .msg.agent { float: left; }
.phone-hero .msg.you { float: right; }
.phone-hero .msg.tight { margin-top: -1px; }

.phone-hero .msg .bubble {
  padding: 7px 9px 4px;
  border-radius: 8px;
  font-size: 0.84rem;
  line-height: 1.4;
  position: relative;
  word-wrap: break-word;
  box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.18);
}
.phone-hero .msg.agent .bubble {
  background: var(--wa-in);
  color: var(--wa-text);
  border-top-left-radius: 2px;
}
.phone-hero .msg.you .bubble {
  background: var(--wa-out);
  color: var(--wa-text);
  border-top-right-radius: 2px;
}
.phone-hero .msg.agent.first .bubble { border-top-left-radius: 8px; }
.phone-hero .msg.you.first .bubble { border-top-right-radius: 8px; }

.phone-hero .msg .from {
  font-size: 0.64rem;
  font-weight: 700;
  margin-bottom: 2px;
  letter-spacing: 0.01em;
}
.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-pris { color: var(--from-pris); }
.phone-hero .msg.you .from { color: var(--from-you); }

.phone-hero .msg .time {
  display: inline-block;
  float: right;
  margin: 4px 0 0 10px;
  font-size: 0.6rem;
  color: var(--wa-meta);
  white-space: nowrap;
}
.phone-hero .msg .check { color: #53bdeb; margin-left: 1px; letter-spacing: -1px; }

.phone-hero .msg.done .bubble { border-left: 2.5px solid var(--green-soft); }
.phone-hero .msg.ask .bubble {
  border-left: 2.5px solid var(--amber);
  box-shadow: 0 0 0 1px rgba(232, 168, 74, 0.18), 0 1px 0.5px rgba(0, 0, 0, 0.18);
}

.phone-hero .msg .badge {
  display: inline-block;
  font-size: 0.56rem;
  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(--green-soft);
}
.phone-hero .msg.ask .badge {
  background: rgba(232, 168, 74, 0.18);
  color: var(--amber);
}

.phone-hero .clear { clear: both; height: 6px; }
.phone-hero .clear.sm { height: 3px; }

.phone-hero .composer-wrap {
  background: var(--wa-panel);
  border-top: 1px solid #2a3942;
  padding-bottom: 6px;
}
.phone-hero .composer {
  padding: 8px 10px 6px;
  display: flex;
  gap: 8px;
  align-items: flex-end;
}
.phone-hero .composer input {
  flex: 1;
  background: #2a3942;
  border: 0;
  border-radius: 22px;
  padding: 10px 15px;
  color: var(--wa-text);
  font-size: 0.88rem;
  font-family: inherit;
  outline: none;
  min-width: 0;
}
.phone-hero .composer input::placeholder { color: var(--wa-meta); }
.phone-hero .composer button {
  background: var(--green);
  color: #0b141a;
  border: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-weight: 800;
  cursor: default;
  font-size: 1.05rem;
  flex-shrink: 0;
  font-family: inherit;
  padding: 0;
}

.phone-hero .home-ind {
  width: 120px;
  height: 4px;
  background: rgba(255, 255, 255, 0.28);
  border-radius: 3px;
  margin: 4px auto 8px;
}

@media (max-width: 899px) {
  .phone-hero .phone { max-width: min(360px, 100%); border-radius: 40px; padding: 10px; }
  .phone-hero .phone-screen { border-radius: 32px; min-height: 580px; max-height: 74vh; }
  .phone-hero .hero-copy { margin-bottom: 4px; }
}
@media (max-width: 420px) {
  .phone-hero { padding: 20px 12px 16px; }
  .phone-hero .phone { max-width: 100%; border-radius: 36px; }
  .phone-hero .phone-screen { min-height: 540px; max-height: 80vh; }
}

/* Narrative strip — not a feature grid. Same desk as the phone. */
.v4b-story {
  max-width: none;
  margin: 0;
  padding: 8px 24px 56px;
  text-align: center;
  background: var(--wood);
  font-family: var(--font-page-sans);
  color: var(--cream);
  border-bottom: 1px solid #2a2418;
}
.v4b-story .v4b-story-inner {
  max-width: 720px;
  margin: 0 auto;
}
.v4b-story blockquote {
  font-family: var(--font-page-serif);
  font-size: clamp(1.25rem, 2.8vw, 1.5rem);
  font-style: italic;
  font-weight: 400;
  color: #d4c4ac;
  line-height: 1.45;
  margin: 0 0 28px;
}
.v4b-story .story-grid {
  display: grid;
  gap: 14px;
  text-align: left;
}
@media (min-width: 640px) {
  .v4b-story .story-grid { grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
}
.v4b-story .story-card {
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--line-wood);
  border-radius: 12px;
  padding: 18px 16px;
}
.v4b-story .story-card .n {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-soft);
  margin-bottom: 8px;
  font-weight: 700;
}
.v4b-story .story-card p {
  font-size: 0.88rem;
  color: var(--lede);
  line-height: 1.45;
}
.v4b-story .story-card strong { color: #f0e8dc; font-weight: 600; }
.v4b-story .calm-note {
  max-width: 520px;
  margin: 36px auto 0;
  padding: 18px 20px;
  background: rgba(0, 0, 0, 0.22);
  border-left: 3px solid var(--green-soft);
  border-radius: 0 8px 8px 0;
  text-align: left;
  font-size: 0.92rem;
  color: var(--lede);
}
.v4b-story .calm-note strong { color: #f0e8dc; }
