/* ==============================================================
   EDITY FLOW — produktsida v6
   Levande gradient-hero, frostad meny, en bakgrund från flödet
   och ner. Kortet är beviset och speglar det riktiga systemet.
   ============================================================== */

:root {
  --bg: #FFFFFF;
  --canvas: #F6F5F1;
  --hairline: #E7E5DF;
  --ink: #1B2026;
  --ink-deep: #0B0E14;
  --white: #FFFFFF;
  --win-bg: #F4F4F1;

  --tint-blue: #E2EAF9;
  --tint-peach: #F8E4CB;
  --tint-mauve: #ECDFF2;
  --tint-sage: #E0EEDC;
  --el-blue: #A9BCE2;
  --el-peach: #E8A96F;
  --el-mauve: #C9A3CF;
  --el-sage: #93C08D;

  --f-red: #DE5B4B;
  --f-orange: #E8933C;
  --f-yellow: #DDB93E;
  --f-green: #4FAE6E;

  --amber-g: linear-gradient(150deg, #F2C49B, #E8A96F);
  --blue-g: linear-gradient(150deg, #CBD7EE, #A9BCE2);
  --mauve-g: linear-gradient(150deg, #E4CBE0, #CFA8CC);
  --gold-g: linear-gradient(135deg, #F9E7BB 0%, #F3CF8C 55%, #EBB35F 100%);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --display: clamp(2.5rem, 5.6vw, 4.6rem);
  --headline: clamp(1.7rem, 3vw, 2.5rem);
  --body: clamp(1.02rem, 1.2vw, 1.16rem);
  --label: clamp(0.7rem, 0.8vw, 0.78rem);

  --shadow: 0 18px 44px -18px rgba(11, 14, 20, 0.20);
  --shadow-soft: 0 10px 30px -14px rgba(11, 14, 20, 0.16);
  --shadow-big: 0 70px 150px -50px rgba(11, 14, 20, 0.35);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; min-height: 100lvh; background: var(--bg); }
body {
  min-height: 100lvh;
  font-family: 'Geist', sans-serif;
  background-color: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  text-wrap: pretty;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
em, i, cite { font-style: normal; }
p, h1, h2, h3, h4 { text-wrap: pretty; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; }

.t-display { font-size: var(--display); font-weight: 600; line-height: 1.04; letter-spacing: -0.026em; text-wrap: balance; }
.t-headline { font-size: var(--headline); font-weight: 600; line-height: 1.14; letter-spacing: -0.018em; text-wrap: balance; }
.t-body { font-size: var(--body); font-weight: 400; line-height: 1.62; }
.t-label { font-size: var(--label); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 clamp(1.2rem, 4vw, 2.5rem); }
.sec { background: var(--bg); padding: clamp(5rem, 11vh, 8rem) 0; }
.sec.canvas { background: var(--canvas); }

.reveal { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: 0.12s; } .reveal.d2 { transition-delay: 0.24s; } .reveal.d3 { transition-delay: 0.36s; }

.rise { opacity: 0; transform: translateY(26px); animation: rise 1s var(--ease) forwards; }
.rise.r2 { animation-delay: 0.18s; } .rise.r3 { animation-delay: 0.36s; } .rise.r4 { animation-delay: 0.54s; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

/* ---------- Frostad glasmeny ---------- */
.topbar {
  position: fixed; top: clamp(0.8rem, 1.6vh, 1.2rem); left: 50%; transform: translateX(-50%); z-index: 80;
  width: min(1120px, calc(100vw - 1.8rem));
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.55rem 0.65rem 0.55rem 1.15rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(22px) saturate(1.6);
  -webkit-backdrop-filter: blur(22px) saturate(1.6);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 14px 44px -16px rgba(11, 14, 20, 0.28);
}
.brand { display: inline-flex; align-items: center; gap: 0.65rem; text-decoration: none; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 10px; background: var(--ink-deep); color: var(--white);
  display: grid; place-items: center;
}
.brand-mark svg { width: 20px; height: 17px; overflow: visible; }
.brand-mark path { stroke-dasharray: 1; stroke-dashoffset: 0; animation: drawE 0.6s var(--ease) backwards; }
.brand-mark path:nth-child(1) { animation-delay: 0.15s; }
.brand-mark path:nth-child(2) { animation-delay: 0.3s; }
.brand-mark path:nth-child(3) { animation-delay: 0.45s; }
.brand-mark path:nth-child(4) { animation-delay: 0.6s; }
.brand-mark path:nth-child(5) { animation-delay: 0.75s; }
@keyframes drawE { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.brand-name { font-family: 'Manrope', 'Geist', sans-serif; font-weight: 700; letter-spacing: -0.01em; font-size: var(--body); color: var(--ink-deep); white-space: nowrap; }
.topright { display: flex; align-items: center; gap: 0.5rem; }

/* ---------- Knappar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border: none; cursor: pointer; text-decoration: none;
  font-size: var(--body); font-weight: 500; border-radius: 999px; padding: 0.8rem 1.5rem;
  transition: transform 0.4s var(--spring), box-shadow 0.4s var(--ease), background 0.4s var(--ease), color 0.4s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-lg { padding: 1rem 2rem; }
.btn-small { padding: 0.6rem 1.1rem; font-size: var(--label); font-weight: 600; letter-spacing: 0.05em; }
.btn-solid { background: var(--ink-deep); color: var(--white); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), var(--shadow-soft); }
.btn-light { background: var(--white); color: var(--ink-deep); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), var(--shadow-soft); }
.btn-ghost {
  background: var(--white); color: var(--ink-deep);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), var(--shadow-soft);
}
.btn-ghost:hover { background: #EDF1F9; }
.topbar .btn { padding: 0.55rem 1.15rem; font-size: var(--label); letter-spacing: 0.06em; font-weight: 600; }
.topbar .btn-ghost { background: transparent; color: var(--ink-deep); box-shadow: none; }
.topbar .btn-ghost:hover { transform: none; background: rgba(11, 14, 20, 0.08); box-shadow: none; }
.topbar .btn-solid { background: var(--ink-deep); color: var(--white); }

/* ---------- Hero: levande gradient ---------- */
.hero {
  position: relative;
  padding: clamp(8rem, 16vh, 11rem) 0 clamp(4.5rem, 9vh, 7rem);
  background: linear-gradient(180deg, #EDF1F9 0%, #F6F5F2 62%, var(--canvas) 100%);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg i {
  position: absolute; border-radius: 999px; filter: blur(70px);
  will-change: transform;
}
.hero-bg .hb1 {
  width: 46vw; height: 46vw; min-width: 420px; min-height: 420px;
  left: -12vw; top: -14vh;
  background: radial-gradient(circle, rgba(169, 188, 226, 0.75) 0%, rgba(169, 188, 226, 0) 68%);
  animation: drift1 14s var(--ease) infinite alternate;
}
.hero-bg .hb2 {
  width: 40vw; height: 40vw; min-width: 380px; min-height: 380px;
  right: -10vw; top: 4vh;
  background: radial-gradient(circle, rgba(242, 196, 155, 0.62) 0%, rgba(242, 196, 155, 0) 68%);
  animation: drift2 17s var(--ease) infinite alternate;
}
.hero-bg .hb3 {
  width: 44vw; height: 44vw; min-width: 400px; min-height: 400px;
  left: 26vw; top: 26vh;
  background: radial-gradient(circle, rgba(201, 163, 207, 0.46) 0%, rgba(201, 163, 207, 0) 68%);
  animation: drift3 20s var(--ease) infinite alternate;
}
.hero-bg .hb4 {
  width: 26vw; height: 26vw; min-width: 260px; min-height: 260px;
  left: 8vw; top: 42vh;
  background: radial-gradient(circle, rgba(147, 192, 141, 0.40) 0%, rgba(147, 192, 141, 0) 68%);
  animation: drift4 12s var(--ease) infinite alternate;
}
@keyframes drift1 { from { transform: translate(0, 0) scale(1); } to { transform: translate(11vw, 9vh) scale(1.22); } }
@keyframes drift2 { from { transform: translate(0, 0) scale(1.14); } to { transform: translate(-10vw, 12vh) scale(0.9); } }
@keyframes drift3 { from { transform: translate(0, 0) scale(0.92); } to { transform: translate(-12vw, -9vh) scale(1.18); } }
@keyframes drift4 { from { transform: translate(0, 0) scale(1); } to { transform: translate(9vw, -7vh) scale(1.25); } }

.hero-inner { position: relative; text-align: center; max-width: 1000px; margin: 0 auto; padding: 0 clamp(1.2rem, 4vw, 2.5rem); }
.hero h1 { color: var(--ink-deep); max-width: 20ch; margin: 0 auto; }
.hero .lede {
  max-width: 66ch; margin: clamp(1.3rem, 2.8vh, 1.9rem) auto 0;
  font-weight: 500; color: var(--ink-deep);
}
.cta-row { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; margin-top: clamp(1.6rem, 4vh, 2.4rem); }

/* ---------- Briefingfönstret ---------- */
.hero-stage { position: relative; width: min(1080px, 94vw); margin: clamp(3rem, 7vh, 4.6rem) auto 0; }
.app-window {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(175deg, #FBFBF9 0%, var(--win-bg) 55%, #EEEEE9 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.9),
    0 1px 0 rgba(255, 255, 255, 0.8),
    0 30px 70px -30px rgba(76, 96, 150, 0.35),
    var(--shadow-big);
  font-size: clamp(8.5px, 0.92vw, 13px);
  text-align: left;
  color: var(--ink);
}
.app-window::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 12% 0%, rgba(169, 188, 226, 0.22) 0%, rgba(169, 188, 226, 0) 70%),
    radial-gradient(50% 45% at 95% 8%, rgba(242, 196, 155, 0.18) 0%, rgba(242, 196, 155, 0) 70%);
}
.app-window::after {
  content: ''; position: absolute; inset: 0; z-index: 5; pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 26%);
}
.win-bar {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 0.55em;
  padding: 1em 1.4em;
  background: var(--white);
  border-bottom: 1px solid var(--hairline);
}
.wdot { width: 0.85em; height: 0.85em; border-radius: 999px; background: #E3E1DA; }
.win-title { margin-left: 0.8em; font-size: 0.78em; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-deep); }
.win-body { position: relative; z-index: 1; display: flex; }
.mk-rail {
  flex: 0 0 auto; width: 11.5em; margin: 1.2em 0 0 1.2em; padding: 1.1em 0.9em;
  background: var(--white); border-radius: 1.4em 1.4em 0 0;
  display: flex; flex-direction: column; gap: 0.5em;
  box-shadow: inset 0 0 0 1px var(--hairline), 0 14px 34px -16px rgba(11, 14, 20, 0.28);
}
.mk-mark {
  width: 2.6em; height: 2.6em; border-radius: 0.8em; background: var(--ink-deep); color: var(--white);
  display: grid; place-items: center; margin: 0 0 0.9em 0.35em;
}
.mk-mark svg { width: 1.5em; height: 1.5em; }
.mk-item {
  display: flex; align-items: center; gap: 0.7em;
  padding: 0.6em 0.8em; border-radius: 0.7em;
  font-size: 0.85em; font-weight: 600; color: var(--ink);
}
.mk-item svg { width: 1.5em; height: 1.5em; stroke: var(--ink); flex: 0 0 auto; }
.mk-item.on { background: var(--tint-blue); color: var(--ink-deep); }
.mk-item.on svg { stroke: var(--ink-deep); }
.mk-main { flex: 1 1 auto; min-width: 0; padding: 1.8em 2.2em 2em; }
.mk-chips { display: flex; gap: 0.6em; flex-wrap: wrap; }
.mk-chip {
  font-size: 0.72em; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--white); color: var(--ink-deep); border-radius: 999px; padding: 0.55em 1em;
  box-shadow: inset 0 0 0 1px var(--hairline);
}
.mk-date { margin-top: 1.5em; font-size: 0.78em; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-deep); }
.mk-title { font-size: 2.6em; font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; color: var(--ink-deep); margin-top: 0.12em; }
.mk-intro { margin-top: 0.8em; font-size: 0.95em; line-height: 1.55; max-width: 62ch; color: var(--ink); }
.mk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1em; margin-top: 1.4em; }
.mk-card {
  background: var(--white); border-radius: 1.1em; padding: 1.1em;
  box-shadow: inset 0 0 0 1px rgba(231, 229, 223, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 10px 26px -12px rgba(11, 14, 20, 0.22);
}
.mk-cardtop { display: flex; align-items: center; justify-content: space-between; gap: 0.6em; margin-bottom: 0.75em; }
.mk-score {
  width: 2.1em; height: 2.1em; border-radius: 999px; display: grid; place-items: center;
  font-weight: 600; font-size: 0.85em; color: var(--ink-deep);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.mk-score.s1 { background: var(--amber-g); }
.mk-score.s2 { background: var(--blue-g); }
.mk-score.s3 { background: var(--mauve-g); }
.mk-tag { font-size: 0.62em; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-deep); background: var(--canvas); border-radius: 999px; padding: 0.45em 0.9em; }
.mk-h { font-size: 0.98em; font-weight: 600; line-height: 1.35; color: var(--ink-deep); }
.mk-by { margin-top: 0.7em; font-size: 0.62em; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); }

.stage-caption {
  margin: clamp(2rem, 4.5vh, 2.8rem) auto 0; max-width: 58ch; text-align: center;
  font-size: var(--label); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-deep);
}

/* ---------- Sektionshuvuden och splittar ---------- */
.sec-head { max-width: 820px; }
.sec-head .t-body { margin-top: 1.2rem; max-width: 62ch; }
.sec-head.center { margin: 0 auto; text-align: center; }
.sec-head.center .t-body { margin-left: auto; margin-right: auto; max-width: 68ch; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.stack > * + * { margin-top: 1.1rem; }
.stack .t-body { max-width: 54ch; }

/* ---------- Flödet: fyra frostade tech-kort ----------
   Kortstil B (2026-08-19): frostat glas, sval accentskala, skugga under.
   Rollback: pastellversionen ligger i _versions/v7-2026-08-18/. */
#flode { position: relative; overflow: hidden; }
.steps { position: relative; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.3rem; margin-top: clamp(2.4rem, 5.5vh, 3.6rem); }
.step {
  position: relative; overflow: hidden;
  min-width: 0; border-radius: 26px; padding: 1.8rem 1.9rem 2rem;
  will-change: transform; transform-origin: center;
  background: color-mix(in srgb, var(--acc) 12%, white);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 30px 56px -26px rgba(15, 25, 55, 0.32);
}
.step > * { position: relative; z-index: 1; }
.step.tint-blue { --acc: #5B82E8; }
.step.tint-peach { --acc: #8B6FE8; }
.step.tint-mauve { --acc: #4FB3D9; }
.step.tint-sage { --acc: #46BFA0; }
.step h3 { margin-top: 1.3rem; font-size: var(--body); font-weight: 600; color: var(--ink-deep); }
.step p { margin-top: 0.5rem; font-size: var(--body); line-height: 1.55; color: var(--ink); max-width: 52ch; }
.step-visual {
  position: relative; height: 7.5rem; border-radius: 18px; overflow: hidden;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8), inset 0 2px 10px -4px color-mix(in srgb, var(--acc) 24%, transparent);
}

/* Bevakar: rubrikrader som strömmar förbi + svepande läslinje */
.ticker { position: absolute; left: 0; display: flex; gap: 0.55rem; width: max-content; animation: slide 14s linear infinite; }
.ticker.t1 { top: 22%; }
.ticker.t2 { top: 45%; }
.ticker.t3 { top: 68%; }
.ticker.t2 { animation-duration: 18s; animation-delay: -6s; }
.ticker.t3 { animation-duration: 16s; animation-delay: -11s; }
.ticker i {
  flex: 0 0 auto; height: 0.85rem; border-radius: 999px;
  background: color-mix(in srgb, var(--acc) 62%, white);
}
.ticker i:nth-child(6n+1) { width: 5.5rem; } .ticker i:nth-child(6n+2) { width: 3.4rem; }
.ticker i:nth-child(6n+3) { width: 6.6rem; } .ticker i:nth-child(6n+4) { width: 4.2rem; }
.ticker i:nth-child(6n+5) { width: 5.8rem; } .ticker i:nth-child(6n+6) { width: 3.8rem; }
@keyframes slide { to { transform: translateX(-50%); } }
.scanline {
  position: absolute; top: 8%; bottom: 8%; width: 2px; border-radius: 999px;
  background: var(--ink-deep);
  box-shadow: 0 0 12px 1px rgba(11, 14, 20, 0.25);
  animation: scan 6s var(--ease) infinite alternate;
}
@keyframes scan { from { left: 12%; } to { left: 86%; } }

/* Bedömer: en story mot fem kriterier */
.v-evaluate { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.9rem; }
.ev-row { width: 70%; background: var(--white); border-radius: 999px; padding: 0.5rem 0.8rem; box-shadow: var(--shadow-soft); }
.ev-bar { display: block; height: 0.7rem; width: 82%; border-radius: 999px; background: color-mix(in srgb, var(--acc) 62%, white); }
.ev-crits { display: flex; gap: 0.55rem; }
.ev-dot { width: 0.85rem; height: 0.85rem; border-radius: 999px; background: var(--white); box-shadow: inset 0 0 0 1.5px var(--acc); animation: crit 4.5s var(--ease) infinite; }
.ev-dot.e1 { animation-delay: 0s; } .ev-dot.e2 { animation-delay: 0.35s; } .ev-dot.e3 { animation-delay: 0.7s; }
.ev-dot.e4 { animation-delay: 1.05s; } .ev-dot.e5 { animation-delay: 1.4s; }
@keyframes crit {
  0%, 8% { background: var(--white); }
  16%, 78% { background: var(--ink-deep); }
  90%, 100% { background: var(--white); }
}
.ev-score {
  width: 2rem; height: 2rem; border-radius: 999px; display: grid; place-items: center;
  font-size: var(--label); font-weight: 600; color: var(--ink-deep); background: var(--amber-g);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), var(--shadow-soft);
}

/* Prioriterar: listan sorterar sig */
.v-rank { display: flex; flex-direction: column; justify-content: center; gap: 0.6rem; padding: 0 1rem; }
.rk-row { display: flex; align-items: center; gap: 0.6rem; background: var(--white); border-radius: 999px; padding: 0.4rem 0.6rem; box-shadow: var(--shadow-soft); }
.rk-row.r1 { animation: swapA 7s var(--ease) infinite; }
.rk-row.r2 { animation: swapB 7s var(--ease) infinite; }
.rk-sc {
  flex: 0 0 auto; width: 1.6rem; height: 1.6rem; border-radius: 999px; display: grid; place-items: center;
  font-size: 0.68rem; font-weight: 600; color: var(--ink-deep);
}
.rk-sc.s1 { background: var(--amber-g); } .rk-sc.s2 { background: var(--blue-g); } .rk-sc.s3 { background: var(--mauve-g); }
.rk-bar { height: 0.6rem; border-radius: 999px; background: color-mix(in srgb, var(--acc) 58%, white); }
.r1 .rk-bar { width: 62%; } .r2 .rk-bar { width: 48%; } .r3 .rk-bar { width: 36%; }
@keyframes swapA { 0%, 18% { transform: translateY(calc(100% + 0.6rem)); } 32%, 100% { transform: translateY(0); } }
@keyframes swapB { 0%, 18% { transform: translateY(calc(-100% - 0.6rem)); } 32%, 100% { transform: translateY(0); } }

/* Förbereder: kortet monteras */
.v-prepare { display: grid; place-items: center; }
.pr-card {
  width: 72%; background: var(--white); border-radius: 14px; padding: 0.9rem;
  display: flex; flex-direction: column; gap: 0.5rem; box-shadow: var(--shadow-soft);
}
.pr-line { display: block; height: 0.6rem; border-radius: 999px; background: var(--canvas); transform-origin: left; animation: grow 5s var(--ease) infinite; }
.pr-line.l1 { width: 88%; background: color-mix(in srgb, var(--acc) 58%, white); }
.pr-line.l2 { width: 70%; animation-delay: 0.3s; }
.pr-line.l3 { width: 78%; animation-delay: 0.6s; }
@keyframes grow { 0% { transform: scaleX(0); } 18%, 88% { transform: scaleX(1); } 100% { transform: scaleX(1); } }
.pr-draft {
  margin-top: 0.2rem; align-self: flex-start;
  font-size: 0.62rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--gold-g); color: var(--ink-deep); border-radius: 999px; padding: 0.45em 0.95em;
  animation: pop 5s var(--spring) infinite;
}
@keyframes pop { 0%, 16% { transform: scale(0); } 26%, 92% { transform: scale(1); } 100% { transform: scale(1); } }

/* ---------- Bruset: tratten röd till grön ---------- */
.funnel {
  background: var(--white); border-radius: 26px; padding: clamp(1.6rem, 3vw, 2.4rem);
  display: flex; flex-direction: column; gap: 1.2rem;
  box-shadow: inset 0 0 0 1px var(--hairline), var(--shadow-soft);
}
.fn-row { display: grid; grid-template-columns: 6.6rem 1fr; column-gap: 1.1rem; align-items: end; }
.fn-count { font-size: var(--headline); font-weight: 600; letter-spacing: -0.02em; line-height: 1; color: var(--ink-deep); text-align: right; white-space: nowrap; }
.fn-track { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.fn-label { font-size: var(--label); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-deep); }
.fn-bar {
  height: 0.85rem; border-radius: 999px; width: var(--w);
  transform-origin: left; transform: scaleX(0); transition: transform 1.1s var(--ease) 0.2s;
}
.f-red .fn-bar { background: var(--f-red); }
.f-orange .fn-bar { background: var(--f-orange); transition-delay: 0.4s; }
.f-yellow .fn-bar { background: var(--f-yellow); transition-delay: 0.6s; }
.f-green .fn-bar { background: var(--f-green); transition-delay: 0.8s; }
.funnel.in .fn-bar { transform: scaleX(1); }
.fn-foot { margin-top: 0.4rem; font-size: var(--body); font-weight: 500; color: var(--ink-deep); }

/* ---------- Kortet ---------- */
.claims { margin-top: 1.8rem; display: flex; flex-direction: column; gap: 1.3rem; }
.claim h3 { font-size: var(--body); font-weight: 600; color: var(--ink-deep); }
.claim p { margin-top: 0.3rem; font-size: var(--body); line-height: 1.55; max-width: 48ch; }

.mini-card {
  position: relative;
  width: min(440px, 100%); margin: 0 auto;
  background: var(--white); border-radius: 20px;
  font-size: clamp(10px, 1.05vw, 13.5px);
  padding: 1.6em 1.7em 1.5em;
  box-shadow: inset 0 0 0 1px var(--hairline), inset 0 1px 0 rgba(255, 255, 255, 0.9), var(--shadow);
}
.mc-bookmark { position: absolute; top: 1.3em; right: 1.4em; }
.mc-bookmark svg { width: 1.5em; height: 1.5em; fill: none; stroke: var(--ink); stroke-width: 1.6; }
.mc-top { display: flex; gap: 1.1em; align-items: flex-start; padding-right: 2.2em; }
.mc-score {
  flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.1em;
  width: 4em; height: 4em; border-radius: 999px; color: var(--ink-deep);
  background: var(--amber-g);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), var(--shadow-soft);
}
.mc-score .num { font-size: 1.35em; font-weight: 600; line-height: 1; }
.mc-score .t-label { letter-spacing: 0.06em; font-size: 0.55em; }
.mc-rubrik { font-size: 1.12em; font-weight: 600; line-height: 1.3; color: var(--ink-deep); }
.mc-alt { margin-top: 0.5em; font-size: 0.85em; line-height: 1.4; color: var(--ink); }
.mc-vinkel { margin-top: 1.2em; background: var(--canvas); border-radius: 12px; padding: 0.95em 1.1em; display: flex; flex-direction: column; gap: 0.3em; }
.mc-vinkel .t-label { color: var(--ink-deep); letter-spacing: 0.1em; font-size: 0.62em; }
.mc-vinkel p { font-size: 0.92em; line-height: 1.5; color: var(--ink); }
.mc-stars { display: flex; flex-wrap: wrap; gap: 0.45em; margin-top: 1em; }
.mc-star {
  display: inline-flex; align-items: center; gap: 0.55em;
  font-size: 0.68em; font-weight: 600; letter-spacing: 0.05em;
  background: var(--white); color: var(--ink-deep);
  border-radius: 999px; padding: 0.5em 0.9em;
  box-shadow: inset 0 0 0 1px var(--hairline);
}
.mc-star .dots { display: inline-flex; gap: 0.3em; }
.mc-star .dots i { width: 0.55em; height: 0.55em; border-radius: 999px; background: var(--white); box-shadow: inset 0 0 0 1.2px var(--ink-deep); }
.mc-star .dots i.on { background: var(--ink-deep); }
.mc-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6em; margin-top: 1em; }
.mc-tile { background: var(--canvas); border-radius: 10px; padding: 0.75em 0.95em; }
.mc-tile .t-label { font-size: 0.6em; letter-spacing: 0.1em; color: var(--ink-deep); }
.mc-tile p { margin-top: 0.25em; font-size: 0.88em; font-weight: 500; color: var(--ink-deep); }
.mc-sources { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5em; margin-top: 1em; }
.mc-sources .t-label { font-size: 0.62em; letter-spacing: 0.1em; color: var(--ink-deep); margin-right: 0.3em; }
.mc-src {
  display: inline-flex; align-items: center; gap: 0.45em;
  font-size: 0.72em; font-weight: 600; color: var(--ink-deep);
  background: var(--white); border-radius: 999px; padding: 0.45em 0.85em;
  box-shadow: inset 0 0 0 1px var(--hairline);
}
.mc-src i { width: 0.6em; height: 0.6em; border-radius: 999px; }
.mc-src i.k1 { background: var(--el-peach); } .mc-src i.k2 { background: var(--el-blue); } .mc-src i.k3 { background: var(--el-mauve); }
.mc-src b { font-weight: 600; }
.mc-draft {
  margin-top: 1em; display: flex; align-items: center; justify-content: space-between; gap: 1em;
  border-radius: 12px; padding: 0.85em 1.05em;
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--hairline);
  font-weight: 600; font-size: 0.92em; color: var(--ink-deep);
}
.mc-draft .chev { font-weight: 600; }
.mc-actions { display: flex; gap: 0.5em; margin-top: 1em; }
.mc-send {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ink-deep); color: var(--white);
  font-size: 0.8em; font-weight: 600; letter-spacing: 0.04em;
  border-radius: 999px; padding: 0.7em 1.3em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.mc-copy {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--canvas); color: var(--ink-deep);
  font-size: 0.8em; font-weight: 600; letter-spacing: 0.04em;
  border-radius: 999px; padding: 0.7em 1.3em;
}
.mc-feedback {
  margin-top: 1.2em; border-radius: 12px; padding: 0.95em 1.1em;
  background: var(--ink-deep);
  display: flex; align-items: center; gap: 0.8em; flex-wrap: wrap;
}
.mc-q { font-size: 0.8em; font-weight: 600; color: var(--white); }
.mc-btns { display: flex; gap: 0.4em; margin-left: auto; }
.mc-btns button {
  border: none; cursor: pointer;
  font-size: 0.72em; font-weight: 600; letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.14); color: var(--white); border-radius: 999px; padding: 0.6em 1.1em;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--spring);
}
.mc-btns button:hover { transform: translateY(-2px); }
.mc-btns button.picked { background: var(--white); color: var(--ink-deep); }
.mc-saved { flex-basis: 100%; font-size: 0.78em; font-weight: 500; color: var(--white); display: none; }
.mc-feedback.done .mc-saved { display: block; animation: rise 0.5s var(--ease); }

/* ---------- Modellen: mörkt glödande panel, inga streck ---------- */
.model-panel {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, #0B0E14 0%, #121A2E 60%, #182342 100%);
  border-radius: 30px; padding: clamp(2rem, 3.6vw, 3rem) clamp(1.6rem, 3vw, 2.4rem);
  display: flex; flex-direction: column; gap: 1.6rem; align-items: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 34px 80px -34px rgba(24, 35, 66, 0.75);
}
.mp-bg { position: absolute; inset: 0; pointer-events: none; }
.mp-bg i { position: absolute; border-radius: 999px; filter: blur(50px); will-change: transform; }
.mp-bg .mb1 {
  width: 22rem; height: 22rem; left: -7rem; top: -9rem;
  background: radial-gradient(circle, rgba(76, 116, 217, 0.5) 0%, rgba(76, 116, 217, 0) 68%);
  animation: drift1 15s var(--ease) infinite alternate;
}
.mp-bg .mb2 {
  width: 18rem; height: 18rem; right: -6rem; bottom: -8rem;
  background: radial-gradient(circle, rgba(232, 169, 111, 0.4) 0%, rgba(232, 169, 111, 0) 68%);
  animation: drift2 18s var(--ease) infinite alternate;
}
.model-panel > * { position: relative; }
.model-panel { gap: 1.2rem; }
.mp-title { color: var(--white); letter-spacing: 0.2em; text-align: center; }
.mp-sub { margin-top: -0.7rem; font-size: var(--body); font-weight: 500; color: var(--white); text-align: center; }
.mp-chips { display: flex; flex-wrap: wrap; gap: 0.55rem; justify-content: center; max-width: 30rem; }
.mp-chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: var(--label); font-weight: 600; letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.10); color: var(--white);
  border-radius: 999px; padding: 0.55rem 1rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.mp-chip svg { width: 1rem; height: 1rem; stroke: var(--white); flex: 0 0 auto; }
.mp-rows { display: flex; flex-direction: column; gap: 0.6rem; width: min(430px, 100%); margin-top: 0.3rem; }
.mp-row {
  display: flex; align-items: center; gap: 0.85rem;
  border-radius: 16px; padding: 0.85rem 1.05rem;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}
.mp-row.lead {
  background: rgba(76, 116, 217, 0.34);
  box-shadow: inset 0 0 0 1.5px rgba(122, 156, 233, 0.7), 0 16px 38px -16px rgba(0, 0, 0, 0.6);
}
.mp-ava {
  flex: 0 0 auto; width: 2.3rem; height: 2.3rem; border-radius: 0.75rem;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.18); color: var(--white);
}
.mp-row.lead .mp-ava { background: #4C74D9; box-shadow: 0 0 22px 2px rgba(122, 156, 233, 0.5); }
.mp-ava svg { width: 1.25rem; height: 1.25rem; }
.mp-who { flex: 1 1 auto; min-width: 0; }
.mp-name { font-size: var(--body); font-weight: 600; color: var(--white); line-height: 1.25; }
.mp-meta { margin-top: 0.15rem; font-size: var(--label); font-weight: 500; letter-spacing: 0.03em; color: var(--white); }
.mp-num { flex: 0 0 auto; font-size: var(--headline); font-weight: 600; letter-spacing: -0.02em; line-height: 1; color: var(--white); }
.mp-row.lead .mp-num { color: #A9C2F5; }
.mp-spark { flex: 0 0 auto; width: clamp(4.4rem, 8vw, 6.2rem); height: auto; }
.mp-spark .line { stroke: rgba(255, 255, 255, 0.55); stroke-width: 2.4; stroke-linecap: round; }
.mp-spark .dot { fill: rgba(255, 255, 255, 0.75); }
.mp-row.lead .mp-spark .line { stroke: #7A9CE9; filter: drop-shadow(0 0 6px rgba(122, 156, 233, 0.8)); }
.mp-row.lead .mp-spark .dot { fill: #A9C2F5; }
.mp-foot { font-size: var(--body); font-weight: 500; color: var(--white); text-align: center; max-width: 34ch; }

/* ---------- Radarn: två paneler i rad ---------- */
.radar-split { align-items: stretch; margin-top: clamp(2.2rem, 5vh, 3.2rem); }
.radar-split > .reveal { display: flex; }
.radar-split > .reveal > * { flex: 1 1 auto; }
.radar-panel {
  background: linear-gradient(165deg, #0D1424 0%, #121B31 100%);
  border-radius: 26px; padding: clamp(1.4rem, 2.6vw, 2rem);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10), inset 0 0 0 1px rgba(255, 255, 255, 0.06), var(--shadow);
  font-size: clamp(11px, 1.05vw, 15px);
  display: flex; flex-direction: column;
}
.radar-panel .radar-field { flex: 0 0 auto; }
.rp-head { display: flex; align-items: center; gap: 0.8em; flex-wrap: wrap; }
.live-dot { width: 0.72em; height: 0.72em; border-radius: 999px; background: #4FAE6E; position: relative; flex: 0 0 auto; }
.live-dot::after { content: ''; position: absolute; inset: -5px; border-radius: 999px; border: 2px solid #4FAE6E; animation: livepulse 2s var(--ease) infinite; }
@keyframes livepulse { 0% { transform: scale(0.5); opacity: 1; } 100% { transform: scale(1.4); opacity: 0; } }
.rp-title { font-size: 0.92em; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--white); }
.rp-sub { margin-top: 0.7em; font-size: 0.95em; font-weight: 500; line-height: 1.45; color: var(--white); }
.rp-legend { margin-left: auto; display: flex; gap: 1.1em; flex-wrap: wrap; }
.rp-legend span { display: inline-flex; align-items: center; gap: 0.5em; font-size: 0.92em; font-weight: 600; color: var(--white); }
.rp-legend i { width: 0.95em; height: 0.95em; border-radius: 999px; }
.dot-no { background: #5B82E8; } .dot-dk { background: #E8705F; } .dot-fi { background: #3FBA8E; }
.radar-field {
  position: relative; margin: 1.4em auto 0; width: min(100%, 24em); aspect-ratio: 1;
  border-radius: 999px;
  background:
    radial-gradient(circle, transparent 0 32%, rgba(255, 255, 255, 0.12) 32% 32.6%, transparent 32.6% 55%, rgba(255, 255, 255, 0.12) 55% 55.6%, transparent 55.6% 78%, rgba(255, 255, 255, 0.12) 78% 78.6%, transparent 78.6%),
    radial-gradient(circle at 50% 50%, #1A2440 0%, #101828 70%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.10);
}
.radar-sweep {
  position: absolute; inset: 0; border-radius: 999px;
  background: conic-gradient(from 0deg, rgba(122, 156, 233, 0.30) 0deg, transparent 55deg);
  animation: sweep 11s linear infinite;
}
@keyframes sweep { to { transform: rotate(360deg); } }
.radar-field b {
  position: absolute; width: 0.9em; height: 0.9em; border-radius: 999px;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px -1px rgba(122, 156, 233, 0.45);
}
.radar-field b.hot { animation: hotpulse 2.4s var(--ease) infinite; }
@keyframes hotpulse { 0%, 100% { box-shadow: 0 0 10px -1px rgba(122, 156, 233, 0.45); } 50% { box-shadow: 0 0 0 8px rgba(122, 156, 233, 0.22), 0 0 14px 0 rgba(122, 156, 233, 0.6); } }

.watch-panel {
  background: linear-gradient(165deg, #0D1424 0%, #121B31 100%);
  border-radius: 26px; padding: clamp(1.4rem, 2.6vw, 2rem);
  display: flex; flex-direction: column; gap: 1rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10), inset 0 0 0 1px rgba(255, 255, 255, 0.06), var(--shadow);
  font-size: clamp(11px, 1.05vw, 15px);
}
.wl-count { margin-left: auto; font-size: 0.92em; font-weight: 600; color: var(--white); }
.wl-rows { display: flex; flex-direction: column; margin-top: 0.4em; }
.wl-row {
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; column-gap: 1.2em;
  padding: 0.95em 1em; border-radius: 14px;
  background: #1A2440;
}
.wl-row + .wl-row { margin-top: 0.45em; }
.wl-term { display: inline-flex; align-items: center; gap: 0.6em; font-size: 1em; font-weight: 600; color: var(--white); }
.wl-spark { display: inline-flex; align-items: flex-end; gap: 0.28em; height: 1.4em; }
.wl-spark i { width: 0.42em; height: var(--h); border-radius: 999px; background: var(--el-blue); }
.wl-state { font-size: 0.78em; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--white); min-width: 7.5em; text-align: right; }
.wl-row.hit { background: #223052; box-shadow: inset 0 0 0 1px rgba(122, 156, 233, 0.45); }
.wl-row.hit .wl-spark i { background: #7A9CE9; }
.wl-row.hit .wl-state { color: #9DDA92; }
.wl-pulse { position: relative; width: 0.6em; height: 0.6em; border-radius: 999px; background: #7A9CE9; }
.wl-pulse::after { content: ''; position: absolute; inset: -4px; border-radius: 999px; border: 2px solid #7A9CE9; animation: livepulse 2s var(--ease) infinite; }
.wl-add {
  display: flex; gap: 0.8em; align-items: center;
  border-radius: 14px; padding: 0.95em 1em; margin-top: auto;
  background: #16203A;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}
.wl-plus {
  flex: 0 0 auto; width: 1.8em; height: 1.8em; border-radius: 999px;
  background: #E7EAF2; display: grid; place-items: center;
}
.wl-plus svg { width: 0.95em; height: 0.95em; stroke: var(--ink-deep); stroke-width: 2.4; stroke-linecap: round; fill: none; }
.wl-add-text { font-size: 0.95em; font-weight: 500; color: var(--white); }

/* ---------- Utforska ett riktigt kort ---------- */
.mc-explore {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  margin: 1.1rem auto 0; border: none; cursor: pointer;
  background: var(--canvas); color: var(--ink-deep);
  font-size: var(--label); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.7rem 1.3rem; border-radius: 999px;
  box-shadow: var(--shadow-soft);
  transition: background 0.3s var(--ease), box-shadow 0.4s var(--ease), transform 0.4s var(--spring);
}
.mc-explore svg { width: 0.85rem; height: 0.85rem; stroke: var(--ink-deep); stroke-width: 2; fill: none; transition: transform 0.4s var(--spring); }
.mc-explore:hover { transform: translateY(-2px); background: #EDF1F9; box-shadow: var(--shadow); }
.mc-explore:hover svg { transform: translateX(3px); }

/* ---------- Modalen: ett riktigt kort ---------- */
body.modal-open { overflow: hidden; }
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: clamp(0.8rem, 3vh, 2rem); }
.modal[hidden] { display: none !important; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(11, 14, 20, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0; transition: opacity 0.32s var(--ease);
}
.modal.show .modal-backdrop { opacity: 1; }
.modal-shell {
  position: relative; width: min(760px, 100%); max-height: min(88vh, 88lvh);
  overflow-y: auto; overscroll-behavior: contain;
  background: var(--canvas); border-radius: 24px;
  padding: clamp(1.2rem, 2.5vw, 2rem);
  box-shadow: var(--shadow-big);
  opacity: 0; transform: translateY(26px) scale(0.98);
  transition: opacity 0.32s var(--ease), transform 0.32s var(--ease);
}
.modal.show .modal-shell { opacity: 1; transform: translateY(0) scale(1); }
.modal-close {
  position: sticky; top: 0; float: right; z-index: 5;
  width: 2.4rem; height: 2.4rem; border-radius: 999px; border: none; cursor: pointer;
  background: var(--ink-deep); color: var(--white);
  display: grid; place-items: center;
  transition: transform 0.4s var(--spring);
}
.modal-close:hover { transform: rotate(90deg); }
.modal-close svg { width: 1rem; height: 1rem; stroke: var(--white); stroke-width: 2; fill: none; }
.modal-note {
  font-size: var(--label); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-deep); margin: 0.5rem 0 1rem; max-width: 40ch;
}
.real-card {
  background: var(--white); border-radius: 18px;
  padding: clamp(1.3rem, 2.4vw, 1.9rem);
  font-size: clamp(11px, 1.05vw, 14px);
  box-shadow: inset 0 0 0 1px var(--hairline), var(--shadow-soft);
}
.rc-head { display: flex; gap: 1.1em; align-items: flex-start; }
.rc-score {
  flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.1em;
  width: 4.2em; height: 4.2em; border-radius: 999px; color: var(--ink-deep);
  background: var(--blue-g);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), var(--shadow-soft);
}
.rc-score .num { font-size: 1.4em; font-weight: 600; line-height: 1; }
.rc-score .t-label { letter-spacing: 0.06em; font-size: 0.55em; }
.rc-rubrik { font-size: 1.3em; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; color: var(--ink-deep); }
.rc-alt { margin-top: 0.5em; font-size: 0.9em; line-height: 1.45; color: var(--ink); }
.rc-vinkel { margin-top: 1.2em; background: var(--canvas); border-radius: 12px; padding: 1em 1.15em; display: flex; flex-direction: column; gap: 0.35em; }
.rc-vinkel .t-label { color: var(--ink-deep); letter-spacing: 0.1em; font-size: 0.62em; }
.rc-vinkel p { font-size: 0.95em; line-height: 1.55; color: var(--ink); }
.rc-stars { display: flex; flex-wrap: wrap; gap: 0.45em; margin-top: 1em; }
.rc-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6em; margin-top: 1em; }
.rc-tile { background: var(--canvas); border-radius: 10px; padding: 0.85em 1em; }
.rc-tile .t-label { font-size: 0.6em; letter-spacing: 0.1em; color: var(--ink-deep); }
.rc-tile p { margin-top: 0.3em; font-size: 0.88em; line-height: 1.5; color: var(--ink); }
.rc-sources { display: flex; flex-direction: column; gap: 0.45em; margin-top: 1em; }
.rc-sources .t-label { font-size: 0.62em; letter-spacing: 0.1em; color: var(--ink-deep); }
.rc-src {
  display: flex; align-items: center; gap: 0.7em;
  text-decoration: none; font-size: 0.82em; font-weight: 500; color: var(--ink);
  background: var(--canvas); border-radius: 10px; padding: 0.65em 0.9em;
  transition: background 0.3s var(--ease);
}
.rc-src:hover { background: var(--tint-blue); }
.rc-src i { flex: 0 0 auto; width: 0.6em; height: 0.6em; border-radius: 999px; }
.rc-src i.k1 { background: var(--el-peach); } .rc-src i.k2 { background: var(--el-blue); } .rc-src i.k3 { background: var(--el-mauve); }
.rc-src span { flex: 1 1 auto; min-width: 0; }
.rc-src b { flex: 0 0 auto; font-weight: 600; color: var(--ink-deep); white-space: nowrap; }
.rc-draft-wrap { margin-top: 1em; border-radius: 12px; background: var(--white); box-shadow: inset 0 0 0 1px var(--hairline); }
.rc-draft-wrap summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1em;
  padding: 0.9em 1.1em;
  font-weight: 600; font-size: 0.95em; color: var(--ink-deep);
}
.rc-draft-wrap summary::-webkit-details-marker { display: none; }
.rc-draft-wrap .chev { transition: transform 0.3s var(--ease); }
.rc-draft-wrap[open] .chev { transform: rotate(90deg); }
.rc-draft { padding: 0.4em 1.2em 1.2em; }
.rc-draft h4 { font-size: 1.1em; font-weight: 600; line-height: 1.3; color: var(--ink-deep); margin-bottom: 0.8em; }
.rc-draft p { font-size: 0.92em; line-height: 1.6; color: var(--ink); margin-top: 0.75em; }
.rc-draft a { color: #1A56DB; text-decoration: underline; text-underline-offset: 2px; font-weight: 500; }
.rc-draft a:hover { color: #0E3FA9; }
.rc-draft .rc-sub { font-weight: 600; letter-spacing: 0.06em; color: var(--ink-deep); margin-top: 1.2em; }
.rc-draft .rc-note { font-weight: 500; color: var(--ink-deep); background: var(--canvas); border-radius: 10px; padding: 0.8em 1em; margin-top: 1.2em; }
.rc-actions { display: flex; gap: 0.5em; margin-top: 1em; }
.real-card .mc-feedback { margin-top: 1em; }

/* ---------- Pris: två fristående kort ---------- */
.price-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.2rem, 2.5vw, 2rem);
  margin-top: clamp(2.2rem, 5vh, 3.2rem);
  align-items: stretch;
}
.price-card {
  display: flex; flex-direction: column;
  background: var(--white); border-radius: 30px;
  padding: clamp(1.8rem, 3.2vw, 2.7rem);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), var(--shadow);
}
.price-card.dark {
  background:
    radial-gradient(circle at 88% 4%, rgba(76, 116, 217, 0.30) 0%, rgba(76, 116, 217, 0) 52%),
    linear-gradient(160deg, #0B0E14 0%, #131A2C 55%, #1A2340 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10), var(--shadow-big);
}
.price-card .kind { color: var(--ink-deep); letter-spacing: 0.16em; }
.amount-row { display: flex; align-items: baseline; gap: 0.8rem; margin-top: 1.1rem; }
.amount { font-size: var(--display); font-weight: 600; line-height: 1; letter-spacing: -0.02em; color: var(--ink-deep); font-variant-numeric: tabular-nums; }
.amount-meta { font-size: var(--body); font-weight: 500; color: var(--ink-deep); }
.price-card .per { margin-top: 0.9rem; font-size: var(--body); line-height: 1.55; color: var(--ink); max-width: 38ch; }
.price-card.dark .kind, .price-card.dark .amount, .price-card.dark .amount-meta, .price-card.dark .per { color: var(--white); }

.plan { margin-top: clamp(1.4rem, 3vh, 1.9rem); margin-bottom: 1.8rem; display: flex; flex-direction: column; }
.plan-row {
  display: grid; grid-template-columns: 6.6rem 1fr; column-gap: 1.2rem; align-items: start;
  padding: 0.9rem 0;
}
.plan-row + .plan-row { border-top: 1px solid var(--hairline); }
.pl-day {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: var(--label); font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--ink-deep); background: var(--canvas); border-radius: 999px;
  padding: 0.5em 0; margin-top: 0.1rem;
  font-variant-numeric: tabular-nums;
}
.plan-row p { font-size: var(--body); line-height: 1.5; color: var(--ink); }
.price-note {
  margin-top: auto;
  font-size: var(--body); font-weight: 500; color: var(--ink-deep); line-height: 1.55;
  background: var(--tint-sage); border-radius: 14px; padding: 1rem 1.2rem;
}

.run-list { margin-top: clamp(1.4rem, 3vh, 1.9rem); margin-bottom: 1.8rem; display: flex; flex-direction: column; }
.run-row { display: flex; align-items: center; gap: 0.95rem; padding: 0.9rem 0; }
.run-row + .run-row { border-top: 1px solid rgba(255, 255, 255, 0.10); }
.run-row::before { content: ''; width: 0.5rem; height: 0.5rem; border-radius: 999px; background: #7A9CE9; flex: 0 0 auto; box-shadow: 0 0 8px 0 rgba(122, 156, 233, 0.55); }
.run-row p { font-size: var(--body); font-weight: 500; color: var(--white); line-height: 1.5; }
.terms { margin-top: auto; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.terms span {
  font-size: var(--label); font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--white); background: #223052; border-radius: 999px; padding: 0.65em 1.1em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* ---------- Avslut: gradientkortet ---------- */
.closing-card {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, #0B0E14 0%, #131A2C 55%, #1A2340 100%);
  border-radius: 32px; padding: clamp(3rem, 7vw, 5.5rem) clamp(1.5rem, 5vw, 4rem);
  text-align: center; color: var(--white);
  box-shadow: var(--shadow-big);
}
.cc-bg { position: absolute; inset: 0; pointer-events: none; }
.cc-bg i { position: absolute; border-radius: 999px; filter: blur(60px); will-change: transform; }
.cc-bg .cb1 {
  width: 34rem; height: 34rem; left: -10rem; top: -14rem;
  background: radial-gradient(circle, rgba(76, 116, 217, 0.45) 0%, rgba(76, 116, 217, 0) 68%);
  animation: drift1 24s var(--ease) infinite alternate;
}
.cc-bg .cb2 {
  width: 30rem; height: 30rem; right: -9rem; bottom: -14rem;
  background: radial-gradient(circle, rgba(232, 169, 111, 0.35) 0%, rgba(232, 169, 111, 0) 68%);
  animation: drift2 30s var(--ease) infinite alternate;
}
.closing-card > h2, .closing-card > p, .closing-card > .cta-row { position: relative; }
.closing-card .t-display, .closing-card .t-body { color: #F2F0EC; }
.closing-card .t-display { max-width: 18ch; margin: 0 auto; }
.closing-card .t-body { max-width: 52ch; margin: 1.4rem auto 0; }
.closing-card .cta-row { margin-top: 2.4rem; }

footer { background: var(--canvas); padding: 2.5rem 0 3rem; }
.footrow { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footrow p, .footrow a { font-size: var(--body); color: var(--ink); }
.footrow a { text-decoration: none; font-weight: 500; color: var(--ink-deep); }
.footrow a:hover { text-decoration: underline; }

/* ---------- Login-sidan ---------- */
.login-page { min-height: 100lvh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 6rem 1.2rem 3rem; background: var(--canvas); }
.login-card {
  width: min(440px, 100%); background: var(--white);
  border-radius: 28px; padding: 2.5rem 2.2rem;
  box-shadow: inset 0 0 0 1px var(--hairline), var(--shadow-big);
}
.login-card .brand-mark { background: var(--ink-deep); color: var(--white); margin-bottom: 1.3rem; }
.login-card h1 { font-size: var(--headline); font-weight: 600; letter-spacing: -0.018em; color: var(--ink-deep); text-wrap: balance; }
.login-card > p { margin-top: 0.6rem; font-size: var(--body); line-height: 1.55; }
.field { margin-top: 1.3rem; }
.field label { display: block; font-size: var(--label); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-deep); margin-bottom: 0.5rem; }
.field input {
  width: 100%; font-family: inherit; font-size: var(--body); color: var(--ink-deep);
  background: var(--canvas); border: none; border-radius: 14px; padding: 0.95rem 1.1rem;
  outline: none; transition: box-shadow 0.3s var(--ease);
}
.field input:focus { box-shadow: 0 0 0 2px var(--ink-deep); }
.login-card .btn { width: 100%; margin-top: 1.4rem; }
.login-msg { display: none; margin-top: 1rem; font-size: var(--body); line-height: 1.5; color: var(--ink-deep); }
.login-msg.show { display: block; }
.login-note { margin-top: 1.6rem; font-size: var(--label); font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-deep); }

/* ---------- Undersida: Så lär sig AI:n ---------- */
.subpage { padding-top: clamp(8rem, 16vh, 11rem); }
.subpage .sec-head { margin-bottom: clamp(2rem, 5vh, 3rem); }

/* ---------- Responsivt ---------- */
@media (max-width: 1100px) {
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .price-grid { grid-template-columns: 1fr; }
  .mk-grid { grid-template-columns: repeat(2, 1fr); }
  .mk-grid .mk-card:nth-child(3) { display: none; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .topbar .btn-solid { display: none; }
  .topbar .nav-ai { display: none; }
  .rc-tiles { grid-template-columns: 1fr; }
  .rc-head { flex-direction: column; }
  .win-body { height: clamp(360px, 52vh, 480px); }
  .mk-rail { width: 4.6em; padding: 1.1em 0; align-items: center; }
  .mk-rail .mk-item span:last-child { display: none; }
  .mk-rail .mk-item { padding: 0.5em; }
  .mk-mark { margin: 0 0 0.9em; }
}
@media (max-width: 640px) {
  .mp-spark { display: none; }
  .mk-rail { display: none; }
  .mk-main { padding: 1.6em 1.4em 0; }
  .mk-grid { grid-template-columns: 1fr; }
  .mk-grid .mk-card:nth-child(2) { display: none; }
  .mk-chips .mk-chip:nth-child(n+3) { display: none; }
  .fn-count { font-size: var(--body); }
  .fn-row { grid-template-columns: 3.2rem 1fr; }
  .mc-top { flex-direction: column; }
}

/* Rubriktest 2 (?type=a/b/c/d): fyra riktningar för rubrikerna.
   a = Newsreader i Lassie-grönt (Simons mockup-font och -färg)
   b = Geist kvar, men sektionsrubriker i det gröna
   c = Bricolage Grotesque: livligare grotesk med karaktär
   d = Newsreader i bläck (fonten utan färgen)
   Noto Serif Display-testet (?serif=1) avfärdat och borttaget. */
html.type-a .t-display, html.type-a .t-headline,
html.type-d .t-display, html.type-d .t-headline {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.012em;
}
html.type-a .t-display { line-height: 1.08; }
html.type-d .t-display { line-height: 1.08; }
html.type-a .t-headline, html.type-a .t-display { color: #3D7A4A; }
html.type-b .t-headline, html.type-b .t-display { color: #3D7A4A; }
html.type-c .t-display, html.type-c .t-headline {
  font-family: 'Bricolage Grotesque', 'Geist', sans-serif;
  letter-spacing: -0.022em;
}
html.type-a .closing-card .t-display, html.type-b .closing-card .t-display { color: #F2F0EC; }

/* QA-läget (?qa=1): platta ut animationer för screenshots. */
html.qa .rise, html.qa .reveal { animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; }
html.qa .ticker, html.qa .scanline, html.qa .ev-dot, html.qa .rk-row, html.qa .pr-line, html.qa .pr-draft, html.qa .radar-sweep, html.qa .live-dot::after, html.qa .radar-field b.hot, html.qa .hero-bg i, html.qa .cc-bg i, html.qa .mp-bg i, html.qa .wl-pulse::after, html.qa .brand-mark path { animation: none !important; }
html.qa .fn-bar { transform: scaleX(1); transition: none; }
html.qa .pr-line, html.qa .pr-draft { transform: none; }
html.qa .radar-sweep { transform: rotate(200deg); }
html.qa .modal-backdrop, html.qa .modal-shell { transition: none; }
html.qa { scroll-behavior: auto; }

@media (prefers-reduced-motion: reduce) {
  .rise, .reveal { opacity: 1; transform: none; animation: none; transition: none; }
  .ticker, .scanline, .ev-dot, .rk-row, .pr-line, .pr-draft, .radar-sweep, .live-dot::after, .radar-field b.hot, .hero-bg i, .cc-bg i, .mp-bg i, .wl-pulse::after, .brand-mark path { animation: none !important; }
  .fn-bar { transform: scaleX(1); transition: none; }
  .brand .ef-mid { d: path('M7 12h14'); }
  html { scroll-behavior: auto; }
}
