/* luniat — Legora-inspired, with workflow narrative */

:root {
  --bg: #FBFAF7;
  --bg-2: #F0EEE7;
  --bg-card: #FFFFFF;
  --ink: #15140F;
  --ink-2: #2C2A26;
  --ink-3: #6B6862;
  --ink-4: #A8A59B;
  --line: rgba(21, 20, 15, 0.10);
  --line-2: rgba(21, 20, 15, 0.06);
  --tone-1: #EFEBDF;
  --tone-2: #E2E5DA;
  --tone-3: #E8E2D2;
  --tone-4: #E5E0D6;
  --maxw: 1200px;
  --pad: clamp(20px, 4vw, 48px);
  --serif: "Cormorant Garamond", "Tiempos Headline", "Playfair Display", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 16px;
  line-height: 1.5; letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
}
button { font-family: inherit; cursor: pointer; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--ink); color: var(--bg); }
.container { max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 30; background: color-mix(in oklab, var(--bg) 88%, transparent); backdrop-filter: blur(18px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 64px; gap: 24px; }
.nav-mark { width: 14px; height: 14px; position: relative; }
.nav-mark::before, .nav-mark::after { content: ""; position: absolute; background: var(--ink); }
.nav-mark::before { left: 6px; top: 0; width: 2px; height: 14px; }
.nav-mark::after { top: 6px; left: 0; width: 14px; height: 2px; }
.nav-links { display: flex; gap: 28px; font-size: 13.5px; justify-self: center; }
.nav-links a { color: var(--ink); text-decoration: none; }
.nav-links a:hover { color: var(--ink-3); }
.nav-links .has-caret::after { content: "⌄"; font-size: 11px; color: var(--ink-3); margin-left: 2px; }
.nav-right { display: flex; align-items: center; gap: 18px; justify-self: end; }
@media (max-width: 900px) { .nav-links { display: none; } .nav-inner { grid-template-columns: auto 1fr; } }

.btn { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; border-radius: 6px; padding: 8px 14px; border: 1px solid transparent; background: transparent; color: var(--ink); text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn-primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-primary:hover { background: var(--ink-2); }
.btn-ghost { border-color: var(--line); }

/* Hero */
.hero { padding: clamp(80px, 12vw, 160px) 0 clamp(40px, 6vw, 70px); }
.hero-eyebrow { font-size: 11px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 32px; }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 4vw, 52px); line-height: 1.1; letter-spacing: -0.012em; margin: 0; max-width: 26ch; }

/* Three proofs (under hero) — premium gradient stages */
.proofs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 56px; }
@media (max-width: 900px) { .proofs { grid-template-columns: 1fr; } }
.proof { display: flex; flex-direction: column; }
.proof-stage { aspect-ratio: 4/5.4; border-radius: 8px; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 22px; }

/* Premium gradient backdrops mirroring Legora */
.proof-1 .proof-stage {
  background:
    radial-gradient(ellipse 90% 70% at 30% 30%, #E8E8DE 0%, transparent 60%),
    radial-gradient(ellipse 100% 80% at 75% 75%, #B8C4B5 0%, transparent 65%),
    linear-gradient(135deg, #C9D0C0 0%, #9FAA9C 100%);
}
.proof-2 .proof-stage {
  background:
    radial-gradient(ellipse 100% 80% at 25% 20%, #E8EFF8 0%, transparent 60%),
    radial-gradient(ellipse 90% 90% at 80% 80%, #B8C8E0 0%, transparent 65%),
    linear-gradient(135deg, #D0DCEC 0%, #A8BAD0 100%);
}
.proof-3 .proof-stage {
  background:
    radial-gradient(ellipse 100% 70% at 70% 25%, #F4F1EA 0%, transparent 60%),
    radial-gradient(ellipse 90% 90% at 25% 80%, #D8D2C4 0%, transparent 65%),
    linear-gradient(135deg, #E8E3D6 0%, #C2BAA8 100%);
}
.proof-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 30% at 50% 0%, rgba(255,255,255,.4) 0%, transparent 60%);
  pointer-events: none;
}

.proof-meta { padding: 24px 4px 0; }
.proof-meta h3 { font-family: var(--sans); font-weight: 600; font-size: 14px; margin: 0 0 8px; }
.proof-meta p { font-size: 13px; color: var(--ink-2); line-height: 1.55; margin: 0; max-width: 38ch; }

/* Premium mini-cards — soft glass + crisp shadow */
.mini-card {
  width: 86%;
  background: #ffffff;
  border: 0.5px solid rgba(15,15,14,.04);
  border-radius: 14px;
  box-shadow:
    0 1px 2px rgba(15,15,14,.04),
    0 8px 16px -4px rgba(15,15,14,.10),
    0 24px 48px -16px rgba(15,15,14,.18);
  padding: 14px;
  font-size: 11px;
  position: relative;
  z-index: 2;
  transform: translateZ(0);
}
.mini-card-position { position: absolute; }

/* Old style for any leftover usage */
.mini-head { display: flex; justify-content: space-between; align-items: center; padding: 2px 4px 12px; font-weight: 500; font-size: 11px; color: var(--ink-3); letter-spacing: 0.005em; }
.mini-head span:last-child { color: var(--ink-4); font-weight: 400; font-family: var(--mono); font-size: 10px; }

/* === New simple "Document"-style card (matches reference) === */
.mini-head-simple {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
  padding: 2px 4px 10px;
  letter-spacing: -0.005em;
}
.mini-rows-stream {
  height: 158px; /* fits ~7 rows of ~22px */
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.mini-rows-stream .stream-row {
  display: grid;
  grid-template-columns: 14px minmax(0,1fr);
  gap: 9px;
  align-items: center;
  padding: 5px 4px;
  color: var(--ink);
  font-size: 11px;
  flex-shrink: 0;
  height: 22px;
  transition: transform .55s cubic-bezier(.4,.15,.3,1), opacity .35s ease;
}
.mini-rows-stream .stream-row > span:nth-child(2) {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: -0.01em;
}
.mini-rows-stream .stream-row.fade-out { opacity: 0; }
.mini-rows-stream .stream-row.fade-in { opacity: 0; animation: streamRowIn .45s cubic-bezier(.4,.2,.3,1) forwards; }
@keyframes streamRowIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.mini-foot-simple {
  padding: 8px 4px 0;
  font-size: 10px;
  color: var(--ink-4);
  border-top: 1px solid var(--line-2);
  margin-top: 6px;
  font-family: var(--mono);
}
.mini-row { display: grid; grid-template-columns: 14px minmax(0,1fr) auto; gap: 9px; align-items: center; padding: 5px 4px; color: var(--ink); font-size: 11px; }
.mini-row > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--mono); font-size: 10.5px; letter-spacing: -0.01em; }
.mini-row .meta { font-family: var(--mono); font-size: 9.5px; color: var(--ink-3); }
.mini-icon-doc { width: 14px; height: 14px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.mini-foot { padding: 8px 4px 0; font-size: 10px; color: var(--ink-4); border-top: 1px solid var(--line-2); margin-top: 6px; }

/* Proof 2 — search engine, Legora command-palette feel */
.search-input {
  background: rgba(255,255,255,0.96);
  border: 0.5px solid rgba(255,255,255,0.9);
  border-radius: 14px;
  padding: 16px 18px;
  font-size: 12px;
  color: var(--ink-4);
  box-shadow: 0 1px 2px rgba(15,15,14,.04), 0 6px 14px -4px rgba(15,15,14,.10);
  margin-bottom: 10px;
  font-weight: 400;
  letter-spacing: -0.005em;
}
.search-actions {
  display: flex;
  gap: 6px;
  background: rgba(255,255,255,0.96);
  border: 0.5px solid rgba(255,255,255,0.9);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 1px 2px rgba(15,15,14,.04), 0 4px 12px -4px rgba(15,15,14,.08);
  margin-bottom: 4px;
}
.search-action-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 11px; border-radius: 8px;
  font-size: 10.5px; font-weight: 500; color: var(--ink);
  background: transparent;
  white-space: nowrap;
  transition: background .15s;
}
.search-action-btn.active { background: rgba(15,15,14,.06); }
.search-action-btn svg { width: 12px; height: 12px; }
.search-popover {
  background: rgba(255,255,255,1);
  border: 0.5px solid rgba(15,15,14,.05);
  border-radius: 10px;
  padding: 6px 4px;
  box-shadow:
    0 1px 2px rgba(15,15,14,.04),
    0 8px 20px -6px rgba(15,15,14,.14),
    0 20px 40px -16px rgba(15,15,14,.18);
}
.search-pop-label { font-size: 10px; color: var(--ink-3); font-weight: 500; padding: 6px 10px 8px; }
.search-pop-row {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 10px; border-radius: 6px;
  font-size: 11px; color: var(--ink); font-weight: 400;
}
.search-pop-row svg { width: 13px; height: 13px; flex-shrink: 0; }

/* Proof 3 — chatbot widget */
.chat-widget {
  width: 86%;
  background: rgba(255,255,255,0.97);
  border: 0.5px solid rgba(255,255,255,0.85);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(15,15,14,.04), 0 12px 28px -8px rgba(15,15,14,.14), 0 28px 56px -20px rgba(15,15,14,.20);
  overflow: hidden;
  font-size: 11px;
}
.chat-head {
  display: flex; align-items: center; gap: 7px;
  padding: 9px 12px; border-bottom: 0.5px solid var(--line-2);
}
.chat-avatar {
  width: 19px; height: 19px; border-radius: 50%;
  background: linear-gradient(135deg, #2C2A28, #5A5852);
  display: flex; align-items: center; justify-content: center;
  color: white; font-family: var(--serif); font-size: 10px; font-weight: 500;
}
.chat-name { font-weight: 600; font-size: 11px; }
.chat-status { font-size: 9px; color: var(--ink-3); display: flex; align-items: center; gap: 4px; margin-left: auto; }
.chat-status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #2A8E5A; }
.chat-body { padding: 9px 11px; display: flex; flex-direction: column; gap: 6px; min-height: 100px; }
.chat-bubble {
  padding: 6px 10px; border-radius: 11px; font-size: 9.5px; line-height: 1.4; max-width: 88%; word-wrap: break-word; overflow-wrap: break-word;
}
.chat-input {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 11px; border-top: 0.5px solid var(--line-2);
  font-size: 10px; color: var(--ink-4);
}
/* === Proof 2 NEW: Search shell — Legora capsule === */
.search-shell {
  width: 88%;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.search-capsule {
  background: rgba(255,255,255,0.98);
  border: 0.5px solid rgba(15,15,14,.06);
  border-radius: 18px;
  padding: 14px 14px 10px;
  box-shadow: 0 1px 2px rgba(15,15,14,.04), 0 8px 22px -6px rgba(15,15,14,.10), 0 22px 50px -16px rgba(15,15,14,.14);
  display: flex; flex-direction: column; gap: 12px;
  position: relative;
  z-index: 2;
}
.search-capsule-query {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink);
  min-height: 18px;
  letter-spacing: -0.005em;
  padding: 2px 4px;
}
.search-capsule-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  flex-wrap: nowrap;
}

/* Action buttons row */
.search-actions { display: flex; gap: 4px; align-items: center; flex-wrap: nowrap; min-width: 0; }
.search-action-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 9px;
  border-radius: 100px;
  background: transparent;
  border: 0.5px solid rgba(15,15,14,.10);
  font-size: 10px;
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
  flex-shrink: 0;
  font-family: var(--sans);
  cursor: pointer;
}
.search-add-sources {
  background: rgba(15,15,14,.05);
  color: var(--ink);
  border-color: transparent;
}

/* Popover — hidden by default, shown during animation */
.search-popover {
  position: absolute;
  top: calc(100% + 6px);
  left: 8px;
  width: 168px;
  background: #ffffff;
  border: 0.5px solid rgba(15,15,14,.06);
  border-radius: 12px;
  padding: 6px 4px 8px;
  box-shadow:
    0 1px 2px rgba(15,15,14,.04),
    0 10px 24px -6px rgba(15,15,14,.16),
    0 24px 48px -16px rgba(15,15,14,.20);
  z-index: 3;
  opacity: 0;
  transform: translateY(-4px) scale(.98);
  pointer-events: none;
  transition: opacity .25s cubic-bezier(.4,.2,.3,1), transform .25s cubic-bezier(.4,.2,.3,1);
}
.search-popover.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.search-pop-label {
  font-size: 9.5px; color: var(--ink-3); font-weight: 500;
  padding: 4px 11px 6px;
  letter-spacing: 0.01em;
}
.search-pop-row {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px;
  margin: 0 3px;
  border-radius: 6px;
  font-size: 10.5px; color: var(--ink); font-weight: 400;
  transition: background .18s;
}
.search-pop-row.is-hovered {
  background: rgba(15,15,14,.05);
}
.pop-row-icon {
  width: 15px; height: 15px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* Animated mouse cursor — hidden by default */
.search-cursor {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 4;
  pointer-events: none;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.25));
  opacity: 0;
  transition: opacity .25s ease, top .55s cubic-bezier(.45,.05,.25,1), left .55s cubic-bezier(.45,.05,.25,1);
  will-change: top, left;
}
.search-cursor.is-visible { opacity: 1; }

/* Selected source chip - appears after the user "picks" a source */
.search-selected-source {
  position: absolute;
  bottom: -36px;
  left: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: rgba(15,15,14,.06);
  color: var(--ink);
  border-radius: 100px;
  font-size: 10px;
  font-weight: 500;
  font-family: var(--sans);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .3s ease, transform .3s ease;
  z-index: 3;
}
.search-selected-source.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.search-selected-source .src-dot {
  width: 8px; height: 8px; border-radius: 50%;
  flex-shrink: 0;
}
.search-placeholder { opacity: 0.45; }
.search-query-text .caret {
  display: inline-block;
  margin-left: 1px;
  color: var(--ink);
  animation: blink 1s steps(1) infinite;
}

/* Old search-chip styles (kept for compatibility) */
.search-chips { display: flex; gap: 4px; align-items: center; flex-wrap: nowrap; min-width: 0; }
.search-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 7px;
  border-radius: 100px;
  background: transparent;
  border: 0.5px solid rgba(15,15,14,.10);
  font-size: 9.5px;
  font-weight: 500;
  color: var(--ink-2);
  transition: background .25s, color .25s, border-color .25s;
  white-space: nowrap;
  flex-shrink: 0;
}
.search-chip.active {
  background: rgba(15,15,14,.06);
  color: var(--ink);
  border-color: transparent;
}
.search-chip-x {
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  border: 0.5px dashed rgba(15,15,14,.18);
  color: var(--ink-3);
  cursor: pointer;
  flex-shrink: 0;
}
.search-capsule-actions { display: flex; gap: 4px; align-items: center; flex-shrink: 0; }
.search-attach {
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: none;
  color: var(--ink-3);
  cursor: pointer;
}
.search-send {
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--bg);
  border: none;
  cursor: pointer;
}
.search-results {
  background: rgba(255,255,255,0.97);
  border: 0.5px solid rgba(255,255,255,0.9);
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 1px 2px rgba(15,15,14,.04), 0 8px 20px -6px rgba(15,15,14,.12), 0 16px 40px -12px rgba(15,15,14,.16);
  opacity: 0; transform: translateY(-4px);
  transition: opacity .25s, transform .25s;
  min-height: 130px;
}
.search-results.visible { opacity: 1; transform: translateY(0); }
.search-status { display: flex; align-items: center; gap: 8px; padding: 6px 4px; font-size: 10.5px; color: var(--ink-3); }

/* === Answer card (Q&A style) === */
.answer-wrap { display: flex; flex-direction: column; gap: 10px; padding: 4px 4px 2px; }
.answer-headline {
  display: flex; align-items: flex-start; gap: 7px;
  font-size: 12px; font-weight: 600; color: var(--ink); line-height: 1.3;
  letter-spacing: -0.005em;
}
.answer-check { flex-shrink: 0; margin-top: 1px; }
.answer-detail {
  font-size: 10.5px; color: var(--ink-2); line-height: 1.5; padding-left: 18px;
}
.answer-sources {
  display: flex; flex-wrap: wrap; gap: 5px; align-items: center;
  padding-left: 18px; padding-top: 2px;
}
.answer-sources-label { font-size: 9px; color: var(--ink-3); font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; margin-right: 2px; }
.answer-source-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 7px; border-radius: 100px;
  background: rgba(15,15,14,.04);
  font-size: 9.5px; font-family: var(--mono); color: var(--ink-2);
}
.answer-source-dot { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }
.search-results-head { display: flex; justify-content: space-between; padding: 2px 6px 8px; font-size: 10px; color: var(--ink-3); font-weight: 500; }
.search-results-head .results-meta { font-family: var(--mono); }
.search-result-row {
  display: grid; grid-template-columns: 22px 1fr auto; gap: 8px; align-items: center;
  padding: 6px 6px; border-radius: 7px; font-size: 10.5px;
}
.search-result-row:hover { background: rgba(15,15,14,.03); }
.result-thumb { width: 22px; height: 22px; border-radius: 5px; flex-shrink: 0; }
.result-name { font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.result-stock { display: none; }
.result-price { font-family: var(--mono); font-size: 10px; font-weight: 600; color: var(--ink); white-space: nowrap; }

/* === Chat: tall body + product cards === */
.chat-body-tall { min-height: 200px; max-height: 240px; overflow-y: auto; }
.chat-body-tall::-webkit-scrollbar { width: 0; }
.chat-products { display: flex; flex-direction: column; gap: 4px; align-self: stretch; }
.chat-product-mini {
  display: flex; gap: 7px; align-items: center;
  background: rgba(255,255,255,0.7);
  border: 0.5px solid var(--line);
  border-radius: 8px;
  padding: 5px 7px;
  font-size: 9.5px;
}
.chat-product-mini .chat-product-thumb { width: 18px; height: 18px; border-radius: 4px; }
.chat-bubble.user { background: #2C2A28; color: var(--bg); border-bottom-right-radius: 4px; align-self: flex-end; }
.chat-bubble.bot { background: #F2EFE9; color: var(--ink); border-bottom-left-radius: 4px; align-self: flex-start; }
.chat-product {
  display: flex; gap: 8px; align-items: center;
  background: rgba(255,255,255,0.7);
  border: 0.5px solid var(--line);
  border-radius: 9px;
  padding: 6px 8px;
  font-size: 10px;
  align-self: flex-start;
  max-width: 90%;
}
.chat-product-thumb { width: 22px; height: 22px; border-radius: 5px; background: linear-gradient(135deg, #C8A878, #8E7050); flex-shrink: 0; }
.chat-product-info { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.chat-product-name { font-weight: 600; font-size: 9.5px; }
.chat-product-price { color: var(--ink-3); font-family: var(--mono); font-size: 8.5px; }
.chat-input {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-top: 0.5px solid var(--line-2);
  font-size: 10.5px; color: var(--ink-4);
}
.chat-input-field { flex: 1; }
.chat-send { width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 10px; }

/* === Hover-triggered animations === */

/* Proof 1: indexing animation */
.mini-progress { height: 2px; background: rgba(15,15,14,.06); border-radius: 2px; overflow: hidden; margin: 0 4px 2px; }
.mini-progress-fill { height: 100%; background: var(--ink); transition: width .35s cubic-bezier(.4,.2,.3,1); will-change: width; }
.mini-row-anim { transition: opacity .35s cubic-bezier(.4,.2,.3,1), background .35s cubic-bezier(.4,.2,.3,1); opacity: 0.4; will-change: opacity, background; }
.mini-row-anim.loading { opacity: 1; background: rgba(15,15,14,.04); border-radius: 6px; }
.mini-row-anim.done { opacity: 1; }
.mini-row-anim .meta-state { width: 14px; display: flex; justify-content: center; align-items: center; }
.state-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--ink-4); display: inline-block; }
.state-spin { width: 10px; height: 10px; border-radius: 50%; border: 1.4px solid rgba(15,15,14,.15); border-top-color: var(--ink); animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Proof 2: search palette */
.search-input.filled { color: var(--ink); }
.src-chip { display: inline-flex; align-items: center; padding: 1px 7px; background: rgba(15,15,14,.06); border-radius: 100px; font-family: var(--mono); font-size: 9.5px; margin: 0 2px; vertical-align: 1px; }
.src-chip.dark { background: var(--ink); color: var(--bg); }
.search-popover-wrap {
  margin-left: 8%; width: 70%;
  opacity: 0; transform: translateY(-4px) scale(.96);
  transform-origin: top left;
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
  position: relative;
  margin-top: 4px;
}
.search-popover-wrap.visible { opacity: 1; transform: translateY(0) scale(1); }
.search-popover {
  background: rgba(255,255,255,0.98);
  border: 0.5px solid rgba(255,255,255,0.9);
  border-radius: 10px;
  padding: 8px 6px 6px;
  box-shadow: 0 8px 24px -8px rgba(15,15,14,.18), 0 16px 48px -16px rgba(15,15,14,.18);
}
.search-pop-row.hover { background: rgba(15,15,14,.04); }
.search-pop-row.selected { background: rgba(42, 142, 90, 0.10); color: var(--ink); }

.cursor-pointer {
  position: absolute;
  width: 13px; height: 16px;
  pointer-events: none;
  left: 5%; top: 70px;
  opacity: 0;
  transition: opacity .25s, left .55s cubic-bezier(.4,.2,.3,1), top .55s cubic-bezier(.4,.2,.3,1);
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.25));
  z-index: 5;
}
.cursor-pointer.cursor-step-1 { opacity: 1; left: 9%; top: 76px; }
.cursor-pointer.cursor-step-2 { opacity: 1; left: 38%; top: 168px; }
.cursor-pointer.cursor-step-3 { opacity: 1; left: 38%; top: 168px; }

/* Proof 3: chat animations */
.chat-anim-in { animation: chatIn .35s cubic-bezier(.4,.2,.3,1); }
@keyframes chatIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.chat-typing { display: inline-flex !important; gap: 4px; padding: 8px 12px !important; align-items: center; }
.chat-typing span {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--ink-3); opacity: .35;
  animation: typingDot 1s ease-in-out infinite;
}
.chat-typing span:nth-child(2) { animation-delay: .15s; }
.chat-typing span:nth-child(3) { animation-delay: .30s; }
@keyframes typingDot {
  0%, 60%, 100% { opacity: .25; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-2px); }
}
.caret { display: inline-block; margin-left: 1px; color: var(--ink); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Hint that cards are interactive */
.proof-stage { cursor: pointer; }
.proof-stage::before {
  content: "Hovra för att starta";
  position: absolute;
  top: 14px; left: 14px;
  font-size: 9.5px;
  color: rgba(15,15,14,.45);
  font-family: var(--mono);
  letter-spacing: 0.04em;
  background: rgba(255,255,255,.5);
  padding: 3px 7px;
  border-radius: 100px;
  z-index: 1;
  opacity: 1;
  transition: opacity .3s;
  pointer-events: none;
}
.proof-stage:hover::before { opacity: 0; }

/* Workflow visual — the spine of the site */
.spine-section { padding: clamp(80px, 9vw, 140px) 0; border-top: 1px solid var(--line); }
.spine-head { max-width: 56ch; margin-bottom: 56px; }
.spine-head .eyebrow { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500; color: var(--ink-3); margin-bottom: 20px; }
.spine-head h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 4.2vw, 52px); line-height: 1.05; letter-spacing: -0.018em; margin: 0 0 20px; max-width: 22ch; }
.spine-head p { font-size: 16px; color: var(--ink-2); max-width: 52ch; margin: 0; line-height: 1.55; }

.spine {
  display: grid;
  grid-template-columns: 1fr 80px 1fr 80px 1fr;
  gap: 0;
  align-items: stretch;
  background: var(--bg-2);
  border-radius: 14px;
  padding: 36px;
  position: relative;
}
@media (max-width: 1000px) {
  .spine { grid-template-columns: 1fr; gap: 14px; padding: 24px; }
  .spine-arrow { display: none !important; }
}
.spine-col {
  background: var(--bg-card);
  border-radius: 10px;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid var(--line);
}
.spine-col-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
}
.spine-col-title { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.spine-col-num { font-family: var(--mono); font-size: 10px; color: var(--ink-4); }

.spine-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 12px;
  color: var(--ink-2);
  background: var(--bg);
}
.spine-item.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.spine-item .si-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-4); flex-shrink: 0; }
.spine-item.active .si-dot { background: var(--bg); }
.spine-item .si-meta { margin-left: auto; font-family: var(--mono); font-size: 9.5px; color: var(--ink-4); }
.spine-item.active .si-meta { color: color-mix(in oklab, var(--bg) 75%, transparent); }

.spine-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.spine-arrow::before {
  content: "";
  position: absolute;
  left: 8px; right: 8px;
  height: 1px;
  background: linear-gradient(90deg, var(--ink-4) 0%, var(--ink-4) 100%);
  background-size: 6px 1px;
  background-image: repeating-linear-gradient(90deg, var(--ink-4) 0 3px, transparent 3px 6px);
}
.spine-arrow::after {
  content: "→";
  font-size: 14px;
  color: var(--ink);
  background: var(--bg-2);
  padding: 0 6px;
  position: relative;
  z-index: 1;
}

/* Particle pulse on connectors */
.spine-particle {
  position: absolute;
  top: 50%;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ink);
  transform: translateY(-50%);
  animation: spineFlow 2.4s linear infinite;
}
@keyframes spineFlow {
  0% { left: 0%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

/* Workflows showcase */
.workflows-section { padding: clamp(80px, 9vw, 140px) 0; border-top: 1px solid var(--line); }
.workflows-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (max-width: 800px) { .workflows-grid { grid-template-columns: 1fr; } }
.wf-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 320px;
}
.wf-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}
.wf-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 24px;
  letter-spacing: -0.012em;
  margin: 0;
  line-height: 1.1;
}
.wf-desc { font-size: 13.5px; color: var(--ink-2); line-height: 1.55; margin: 0 0 8px; max-width: 38ch; }
.wf-flow {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 11.5px;
  color: var(--ink-2);
}
.wf-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  background: var(--bg-2);
  border-radius: 100px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.02em;
}
.wf-pill .wf-dot { width: 6px; height: 6px; border-radius: 50%; }
.wf-arrow { color: var(--ink-4); font-size: 11px; }

/* Workflow builder visual */
.builder-section { padding: clamp(80px, 9vw, 140px) 0; border-top: 1px solid var(--line); }
.builder-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.5fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 980px) { .builder-grid { grid-template-columns: 1fr; gap: 40px; } }
.builder-copy h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 3.8vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.018em;
  margin: 16px 0 20px;
  max-width: 14ch;
}
.builder-copy p { font-size: 15px; color: var(--ink-2); line-height: 1.6; max-width: 38ch; margin: 0 0 24px; }

.builder-canvas {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  position: relative;
  height: 460px;
  overflow: hidden;
}
.builder-grid-bg {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle, var(--line) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.6;
}
.bnode {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 11.5px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
  box-shadow: 0 4px 12px -4px rgba(15,15,14,.12);
  width: 168px;
}
.bnode-label { font-family: var(--mono); font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.bnode-title { font-weight: 600; font-size: 12px; }
.bnode-meta { font-family: var(--mono); font-size: 9.5px; color: var(--ink-3); }
.bnode.trigger { border-left: 3px solid #2A6E45; }
.bnode.action { border-left: 3px solid #1F70C2; }
.bnode.cond { border-left: 3px solid #C2701F; }
.bnode.output { border-left: 3px solid #6B4A8A; }
.bnode .ports { display: flex; justify-content: space-between; margin-top: 4px; }
.bnode .port { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-4); }

.bline {
  position: absolute;
  z-index: 1;
}

/* CTA */
.cta-section { padding: clamp(80px, 9vw, 140px) 0; border-top: 1px solid var(--line); }
.cta { background: var(--ink); color: var(--bg); border-radius: 12px; padding: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: end; }
@media (max-width: 800px) { .cta { grid-template-columns: 1fr; } }
.cta h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 4vw, 48px); line-height: 1.05; margin: 0; max-width: 18ch; color: var(--bg); }
.cta p { color: color-mix(in oklab, var(--bg) 75%, transparent); margin: 0 0 16px; font-size: 14px; }
.btn-on-dark { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.btn-on-dark-ghost { background: transparent; color: var(--bg); border-color: color-mix(in oklab, var(--bg) 35%, transparent); }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 56px 0 36px; font-size: 13px; color: var(--ink-3); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; margin-bottom: 56px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-brand { font-family: var(--serif); font-size: 22px; letter-spacing: 0.06em; font-weight: 500; color: var(--ink); margin-bottom: 12px; }
.footer-tag { color: var(--ink-3); max-width: 32ch; line-height: 1.5; }
.footer-col h5 { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-3); font-weight: 600; margin: 0 0 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--ink); text-decoration: none; font-size: 14px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-top: 1px solid var(--line); padding-top: 20px; font-size: 11px; letter-spacing: 0.04em; color: var(--ink-4); }

/* ============================================
   AI Analysis section additions
   ============================================ */

.is-hidden { display: none !important; }

/* Problem input section */
.problem-input-section {
  padding: clamp(80px, 9vw, 140px) 0;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}
.problem-input-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.5fr;
  gap: 60px;
  align-items: start;
}
@media (max-width: 980px) { .problem-input-inner { grid-template-columns: 1fr; gap: 32px; } }
.problem-input-text .eyebrow {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-3);
  margin-bottom: 20px;
}
.problem-input-text h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 3.8vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.018em;
  margin: 0 0 20px;
  max-width: 14ch;
}
.problem-input-text p {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.6;
  max-width: 38ch;
}

.hero-textarea-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  transition: border-color 0.2s;
  box-shadow: 0 1px 2px rgba(15,15,14,.04), 0 4px 12px -4px rgba(15,15,14,.06);
}
.hero-textarea-row:focus-within {
  border-color: var(--ink);
}
.hero-textarea-row textarea {
  width: 100%;
  border: none;
  outline: none;
  font-size: 15px;
  background: transparent;
  font-family: inherit;
  color: var(--ink);
  resize: vertical;
  line-height: 1.5;
  min-height: 70px;
}
.hero-textarea-row textarea::placeholder { color: var(--ink-3); }
.hero-textarea-row button {
  align-self: flex-start;
}

.hero-hint {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 14px;
}
.hero-error {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #991B1B;
  padding: 14px 18px;
  border-radius: 10px;
  margin-top: 16px;
  font-size: 14px;
}
.hero-alt-cta {
  margin-top: 20px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
}
.hero-alt-cta a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.hero-input-row {
  display: flex;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 6px 6px 6px 18px;
  align-items: center;
  margin-top: 14px;
  transition: border-color 0.2s;
}
.hero-input-row:focus-within { border-color: var(--ink); }
.hero-input-row input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  background: transparent;
  font-family: inherit;
  color: var(--ink);
  padding: 12px 0;
}
.hero-input-row input::placeholder { color: var(--ink-3); }
.hero-input-row button {
  background: var(--ink);
  color: var(--bg);
  border: none;
  padding: 12px 22px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}

/* Loading */
.loading {
  text-align: center;
  padding: 120px 0;
}
.loading-text {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ink-2);
  margin-bottom: 28px;
  transition: opacity 0.3s;
}
.loading-spinner {
  width: 36px;
  height: 36px;
  border: 2px solid var(--line);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  margin: 0 auto;
}

/* Results */
.results {
  padding: 100px 0;
  max-width: 960px;
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}
.results-header { text-align: center; margin-bottom: 64px; }
.results-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  margin-bottom: 16px;
}
.results-title {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.018em;
  font-weight: 400;
  margin-bottom: 18px;
}
.results-title em { font-style: italic; }
.results-sub { font-size: 15px; color: var(--ink-2); }
.analyzed-url {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  background: var(--bg-2);
  padding: 6px 14px;
  border-radius: 8px;
  margin-top: 18px;
  color: var(--ink-2);
  border: 1px solid var(--line);
}
.suggestion-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 48px;
}
.suggestion {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px;
}
.suggestion-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  margin-bottom: 14px;
  letter-spacing: 0.05em;
}
.suggestion-title {
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
  font-weight: 500;
  line-height: 1.15;
}
.lager {
  margin-bottom: 16px;
  padding-left: 18px;
  border-left: 2px solid var(--line);
}
.lager-label {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.lager-text {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.6;
}
.lager-observation { border-left-color: var(--ink); }
.lager-observation .lager-label { color: var(--ink); }

.suggestion-meta {
  display: flex;
  gap: 32px;
  padding-top: 22px;
  margin-top: 8px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.suggestion-meta-item {
  font-size: 12px;
  color: var(--ink-2);
}
.suggestion-meta-item strong {
  display: block;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  margin-top: 4px;
}

.cta-block {
  background: var(--ink);
  color: var(--bg);
  border-radius: 12px;
  padding: 48px;
  text-align: center;
}
.cta-block h3 {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.2;
  margin-bottom: 14px;
  font-weight: 400;
}
.cta-block h3 em { font-style: italic; }
.cta-block p {
  color: color-mix(in oklab, var(--bg) 75%, transparent);
  font-size: 14px;
  margin-bottom: 28px;
}
.reset-link {
  display: block;
  text-align: center;
  margin-top: 32px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
  text-decoration: none;
  cursor: pointer;
}
.reset-link:hover { color: var(--ink); }

/* Page header for sub-pages */
.page-header {
  padding: clamp(80px, 12vw, 160px) 0 clamp(40px, 6vw, 70px);
}
.page-header-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 28px;
}
.page-header h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 4vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.012em;
  margin: 0 0 24px;
  max-width: 26ch;
}
.page-header-lead {
  font-size: 17px;
  color: var(--ink-2);
  line-height: 1.55;
  max-width: 60ch;
  margin: 0;
}

/* Manual jobs (exempel) */
.manual-jobs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: clamp(40px, 6vw, 70px) 0 clamp(80px, 9vw, 140px);
}
@media (max-width: 800px) { .manual-jobs-grid { grid-template-columns: 1fr; } }
.manual-job-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px;
}
.manual-job-num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  margin-bottom: 14px;
  text-transform: uppercase;
}
.manual-job-title {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.012em;
  margin: 0 0 20px;
  font-weight: 400;
  line-height: 1.15;
}
.manual-job-block {
  padding: 14px 16px;
  border-radius: 8px;
  margin-bottom: 10px;
}
.manual-job-block-label {
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  margin-bottom: 6px;
  font-weight: 600;
}
.manual-job-block-text {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.55;
}
.manual-job-before {
  background: var(--bg-2);
  border-left: 2px solid var(--ink-4);
}
.manual-job-after {
  background: var(--tone-2);
  border-left: 2px solid #2A6E45;
}
.manual-job-after .manual-job-block-label { color: #2A6E45; }
.manual-job-after .manual-job-block-text { color: var(--ink); font-weight: 500; }

/* Process steps */
.process-list {
  padding: clamp(40px, 6vw, 70px) 0 clamp(80px, 9vw, 140px);
  border-top: 1px solid var(--line);
}
.process-step {
  display: grid;
  grid-template-columns: 80px 1fr 200px;
  gap: 40px;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.process-step:first-child { border-top: 1px solid var(--line); }
@media (max-width: 800px) {
  .process-step { grid-template-columns: 1fr; gap: 12px; }
}
.process-num {
  font-family: var(--serif);
  font-size: 48px;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
}
.process-content h4 {
  font-family: var(--serif);
  font-size: 24px;
  margin: 0 0 10px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.process-content p {
  font-size: 14px;
  color: var(--ink-2);
  margin: 0;
  line-height: 1.6;
  max-width: 56ch;
}
.process-time {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  text-align: right;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
@media (max-width: 800px) { .process-time { text-align: left; } }

/* Insights cards (tankar) */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: clamp(40px, 6vw, 70px) 0 clamp(80px, 9vw, 140px);
}
@media (max-width: 800px) { .insights-grid { grid-template-columns: 1fr; } }
.insight-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px 28px;
}
.insight-meta {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-3);
  margin-bottom: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.insight-title {
  font-family: var(--serif);
  font-size: 22px;
  margin: 0 0 12px;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.insight-text {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.65;
  margin: 0;
}

/* Contact options */
.contact-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: clamp(40px, 6vw, 70px) 0;
}
@media (max-width: 800px) { .contact-options { grid-template-columns: 1fr; } }
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 40px 36px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s;
}
.contact-card:hover { border-color: var(--ink); }
.contact-card.primary {
  background: var(--ink);
  color: var(--bg);
}
.contact-card-tag {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  margin-bottom: 18px;
  font-weight: 600;
}
.contact-card.primary .contact-card-tag { color: color-mix(in oklab, var(--bg) 60%, transparent); }
.contact-card h3 {
  font-family: var(--serif);
  font-size: 28px;
  margin: 0 0 14px;
  font-weight: 400;
  letter-spacing: -0.012em;
  line-height: 1.15;
}
.contact-card p {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.6;
  margin: 0 0 24px;
  flex: 1;
}
.contact-card.primary p { color: color-mix(in oklab, var(--bg) 75%, transparent); }
.contact-card-cta {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: var(--ink);
}
.contact-card.primary .contact-card-cta { color: var(--bg); }

/* Service cards (losningar) */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: clamp(40px, 6vw, 70px) 0 clamp(80px, 9vw, 140px);
}
@media (max-width: 800px) { .services-grid { grid-template-columns: 1fr; } }
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 36px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s;
}
.service-card:hover { border-color: var(--ink); }
.service-card-num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  margin-bottom: 14px;
  text-transform: uppercase;
}
.service-card h3 {
  font-family: var(--serif);
  font-size: 24px;
  margin: 0 0 12px;
  font-weight: 400;
  letter-spacing: -0.012em;
  line-height: 1.15;
}
.service-card p {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.6;
  margin: 0 0 24px;
  flex: 1;
}
.service-card-cta {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: var(--ink);
}

/* Section title generic */
.section-eyebrow {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-3);
  margin-bottom: 20px;
}
.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 4.2vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.018em;
  margin: 0;
  max-width: 22ch;
}

/* ============================================================
   Hero CTAs (Se demo + Boka samtal)
   ============================================================ */
.hero-ctas {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.btn-demo-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ============================================================
   Demo section
   ============================================================ */
.demo-section {
  padding: 80px 0 100px;
  background:
    radial-gradient(ellipse 70% 50% at 80% 10%, rgba(244, 241, 234, 0.7) 0%, transparent 60%),
    radial-gradient(ellipse 60% 60% at 10% 90%, rgba(216, 210, 196, 0.4) 0%, transparent 60%),
    var(--bg, #FBFAF7);
}
.demo-section .container {
  max-width: 1100px;
  text-align: center;
}
.demo-section-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.018em;
  margin-top: 16px;
  margin-bottom: 12px;
  color: #15140F;
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
}
.demo-section-sub {
  font-size: 16px;
  color: #6B6862;
  max-width: 38ch;
  margin: 0 auto 48px;
  line-height: 1.5;
}

.demo-stage-wrapper {
  max-width: 880px;
  margin: 0 auto;
  position: relative;
}
.demo-stage {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #FBFAF7;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  box-shadow:
    0 4px 8px rgba(0,0,0,.06),
    0 24px 60px -16px rgba(0,0,0,.18);
}

.demo-scene {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}
.demo-scene.is-active { opacity: 1; }

.demo-scene-hero {
  background: linear-gradient(135deg, #FBFAF7 0%, #F0EEE7 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 32px;
}
.demo-hero-mark {
  width: 24px; height: 24px;
  position: relative; display: inline-block;
  margin-bottom: 18px;
  opacity: 0; transform: translateY(8px);
}
.demo-scene-hero.is-active .demo-hero-mark {
  animation: demo-fade-up 0.6s 0.2s forwards ease;
}
.demo-hero-mark::before, .demo-hero-mark::after {
  content: ""; position: absolute; background: #15140F;
}
.demo-hero-mark::before { left: 11px; top: 0; width: 2px; height: 24px; }
.demo-hero-mark::after { top: 11px; left: 0; width: 24px; height: 2px; }
.demo-hero-name {
  font-size: 22px; font-weight: 500;
  letter-spacing: -0.015em;
  margin-bottom: 28px;
  opacity: 0; transform: translateY(8px);
}
.demo-scene-hero.is-active .demo-hero-name {
  animation: demo-fade-up 0.6s 0.4s forwards ease;
}
.demo-hero-headline {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 400; line-height: 1.05;
  letter-spacing: -0.018em;
  text-align: center; max-width: 18ch;
  color: #15140F;
  opacity: 0; transform: translateY(8px);
  margin: 0;
}
.demo-scene-hero.is-active .demo-hero-headline {
  animation: demo-fade-up 0.7s 0.7s forwards ease;
}
.demo-hero-sub {
  font-size: 14px; color: #6B6862;
  margin-top: 16px; text-align: center;
  max-width: 32ch;
  opacity: 0; transform: translateY(8px);
}
.demo-scene-hero.is-active .demo-hero-sub {
  animation: demo-fade-up 0.7s 1.0s forwards ease;
}
@keyframes demo-fade-up {
  to { opacity: 1; transform: translateY(0); }
}

.demo-app-shell { display: flex; height: 100%; }
.demo-app-rail {
  width: 52px;
  background: #F0EEE7;
  border-right: 1px solid rgba(21,20,15,0.08);
  display: flex; flex-direction: column;
  align-items: center; padding: 16px 0; gap: 14px;
}
.demo-rail-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #6B6862;
}
.demo-rail-icon.is-active {
  background: rgba(15,15,14,0.06); color: #15140F;
}
.demo-rail-icon svg { width: 16px; height: 16px; }
.demo-rail-mark {
  width: 14px; height: 14px; position: relative;
}
.demo-rail-mark::before, .demo-rail-mark::after {
  content: ""; position: absolute; background: #E84C3D;
}
.demo-rail-mark::before { left: 6px; top: 0; width: 2px; height: 14px; }
.demo-rail-mark::after { top: 6px; left: 0; width: 14px; height: 2px; }
.demo-app-main {
  flex: 1;
  display: flex; flex-direction: column;
  overflow: hidden; position: relative;
}
.demo-app-topbar {
  height: 44px;
  border-bottom: 1px solid rgba(21,20,15,0.08);
  display: flex; align-items: center;
  padding: 0 18px;
  font-size: 13px; color: #2C2A26; font-weight: 500;
}

.demo-upload-area {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 0 32px; position: relative;
}
.demo-upload-zone {
  width: 100%; max-width: 460px;
  border: 2px dashed rgba(15,15,14,0.15);
  border-radius: 14px;
  padding: 32px 24px;
  text-align: center;
  background: white;
  transition: all 0.4s ease;
}
.demo-upload-zone.is-dragover {
  border-color: #15140F;
  background: rgba(15,15,14,0.02);
  transform: scale(1.02);
}
.demo-upload-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: #F0EEE7;
  display: inline-flex;
  align-items: center; justify-content: center;
  margin-bottom: 12px;
  color: #2C2A26;
}
.demo-upload-icon svg { width: 18px; height: 18px; }
.demo-upload-title {
  font-size: 14px; font-weight: 600;
  color: #15140F; margin-bottom: 4px;
}
.demo-upload-sub {
  font-size: 12px; color: #6B6862;
}
.demo-floating-pdf {
  position: absolute;
  background: white;
  border-radius: 8px;
  padding: 8px 12px;
  display: flex; align-items: center;
  gap: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,.05), 0 12px 28px -6px rgba(0,0,0,.18);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px; color: #2C2A26;
  pointer-events: none; opacity: 0;
}
.demo-pdf-icon { width: 14px; height: 16px; }
.demo-uploaded-files {
  width: 100%; max-width: 460px;
  margin-top: 14px;
  display: flex; flex-direction: column;
  gap: 6px;
  opacity: 0; transition: opacity 0.4s ease;
}
.demo-uploaded-files.is-visible { opacity: 1; }
.demo-uploaded-file {
  background: white;
  border: 1px solid rgba(21,20,15,0.08);
  border-radius: 8px;
  padding: 8px 12px;
  display: flex; align-items: center;
  gap: 10px; font-size: 12px;
}
.demo-uploaded-file-name {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  color: #15140F; flex: 1;
}
.demo-uploaded-file-status {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #2A8E5A; color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px;
}
.demo-uploaded-file-progress {
  width: 70px; height: 4px;
  background: rgba(15,15,14,0.08);
  border-radius: 2px; overflow: hidden;
}
.demo-uploaded-file-progress::after {
  content: ""; display: block;
  height: 100%; background: #15140F; width: 0%;
}
.demo-uploaded-file.is-done .demo-uploaded-file-progress::after {
  width: 100%; transition: width 1.6s ease;
}

.demo-chat-area {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 32px 32px 24px;
}
.demo-chat-greeting {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 32px; font-weight: 400;
  color: #15140F; text-align: center;
  margin: 0 0 4px; letter-spacing: -0.012em;
}
.demo-chat-greeting-sub {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 22px; color: #A8A59B;
  text-align: center;
  margin-bottom: 36px; letter-spacing: -0.01em;
}
.demo-chat-input {
  width: 100%; max-width: 520px;
  background: white;
  border: 1px solid rgba(21,20,15,0.08);
  border-radius: 18px;
  padding: 14px 14px 12px;
  box-shadow: 0 1px 2px rgba(15,15,14,0.04), 0 8px 18px -4px rgba(15,15,14,0.10);
}
.demo-chat-input-text {
  min-height: 24px; color: #15140F;
  font-size: 14px; line-height: 1.5; padding: 4px;
}
.demo-chat-input-cursor {
  display: inline-block;
  width: 2px; height: 18px;
  background: #15140F; vertical-align: middle;
  animation: demo-blink 0.8s steps(1) infinite;
}
@keyframes demo-blink { 50% { opacity: 0; } }
.demo-chat-input-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 6px; margin-top: 10px;
}
.demo-chat-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 12px;
  border: 1px solid rgba(15,15,14,0.10);
  border-radius: 999px;
  font-size: 12px; font-weight: 500;
  color: #15140F; background: white;
}
.demo-chat-pill svg { width: 10px; height: 10px; }
.demo-chat-send {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #15140F; color: white;
  display: flex; align-items: center; justify-content: center;
}
.demo-chat-send svg { width: 12px; height: 12px; }

.demo-answer-area {
  flex: 1; overflow-y: auto;
  padding: 28px 36px;
}
.demo-question-bubble {
  background: #15140F; color: white;
  padding: 10px 16px;
  border-radius: 16px 16px 4px 16px;
  font-size: 14px; max-width: 80%;
  margin-left: auto; margin-bottom: 24px;
  line-height: 1.5;
}
.demo-answer-text {
  font-size: 14px; line-height: 1.7;
  color: #15140F; max-width: 580px;
}
.demo-answer-cursor {
  display: inline-block;
  width: 2px; height: 16px;
  background: #15140F;
  vertical-align: -3px; margin-left: 2px;
  animation: demo-blink 0.8s steps(1) infinite;
}
.demo-source-chips {
  margin-top: 16px; padding-top: 12px;
  border-top: 1px solid rgba(21,20,15,0.08);
  display: flex; align-items: center;
  gap: 8px; flex-wrap: wrap;
  opacity: 0; transition: opacity 0.4s ease 0.2s;
}
.demo-source-chips.is-visible { opacity: 1; }
.demo-source-label-tiny {
  font-size: 10px; color: #A8A59B;
  text-transform: uppercase; letter-spacing: 0.08em;
  font-weight: 500; margin-right: 4px;
}
.demo-source-chip {
  display: inline-flex; align-items: center;
  gap: 6px; padding: 4px 10px 4px 4px;
  border: 1px solid rgba(21,20,15,0.08);
  border-radius: 999px; background: white;
  font-size: 11px; color: #2C2A26;
}
.demo-source-chip-icon {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, #C2B388 0%, #8E7B4F 100%);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 8px; font-weight: 600;
  font-family: "JetBrains Mono", ui-monospace, monospace;
}

.demo-scene-outro {
  background: linear-gradient(135deg, #15140F 0%, #2C2A26 100%);
  color: white;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 32px;
}
.demo-outro-mark {
  width: 24px; height: 24px;
  position: relative; margin-bottom: 16px;
}
.demo-outro-mark::before, .demo-outro-mark::after {
  content: ""; position: absolute; background: white;
}
.demo-outro-mark::before { left: 11px; top: 0; width: 2px; height: 24px; }
.demo-outro-mark::after { top: 11px; left: 0; width: 24px; height: 2px; }
.demo-outro-name {
  font-size: 22px; font-weight: 500;
  margin-bottom: 32px;
}
.demo-outro-headline {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(24px, 4.5vw, 36px);
  font-weight: 400; line-height: 1.15;
  max-width: 22ch; margin: 0 0 28px;
}
.demo-outro-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  background: white; color: #15140F;
  border-radius: 999px;
  font-size: 14px; font-weight: 500;
}
.demo-outro-cta svg { width: 12px; height: 12px; }
.demo-outro-tag {
  margin-top: 24px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.1em;
}

.demo-replay-btn {
  position: absolute;
  bottom: 16px; right: 16px;
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(21,20,15,0.08);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 12px; color: #15140F;
  cursor: pointer;
  display: flex; align-items: center; gap: 6px;
  z-index: 100;
  box-shadow: 0 4px 12px -2px rgba(0,0,0,0.1);
  opacity: 0; transition: opacity 0.4s ease;
  font-family: inherit;
}
.demo-replay-btn:hover { background: white; }
.demo-replay-btn.is-visible { opacity: 1; }

.demo-progress {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(0,0,0,0.04);
  z-index: 200;
}
.demo-progress-fill {
  height: 100%; background: #15140F;
  width: 0%; transition: width 0.1s linear;
}

@media (max-width: 700px) {
  .demo-section { padding: 60px 0 80px; }
  .demo-stage { aspect-ratio: 4 / 3.4; }
  .demo-app-rail { width: 42px; }
  .demo-app-topbar { height: 36px; padding: 0 14px; font-size: 12px; }
  .demo-upload-area, .demo-chat-area { padding-left: 16px; padding-right: 16px; }
  .demo-answer-area { padding: 18px 18px; }
  .demo-question-bubble { font-size: 13px; }
  .demo-answer-text { font-size: 13px; }
}
