/* Teamvo – landningssida */

@font-face { font-family: "Inter Tight"; src: url("../assets/fonts/inter-tight-latin-wght.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../assets/fonts/inter-latin-wght.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../assets/fonts/jetbrains-mono-latin-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../assets/fonts/jetbrains-mono-latin-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  /* Ground */
  --bg: #0A0A0A;
  --bg-1: #111110;
  --bg-2: #171716;
  --bg-3: #1F1F1D;
  --line: rgba(255, 255, 255, .1);
  --line-strong: rgba(255, 255, 255, .18);

  /* Ink */
  --ink: #F7F7F7;
  --ink-2: #A8A8A6;
  --ink-3: #8A8A87;

  /* Accent */
  --mint: #A3F6CB;
  --mint-deep: #2FBF8A;
  --on-mint: #07271A;

  /* The four agents: one family, four tints */
  --a-ordf: #A3F6CB;
  --a-kass: #D2F7A6;
  --a-sekr: #8FEBDD;
  --a-lag: #72E8A8;

  --display: "Inter Tight", "Inter", system-ui, sans-serif;
  --text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --gutter: clamp(16px, 3.2vw, 40px);
  --section: clamp(88px, 11vw, 168px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --radius: 8px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.55 var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
svg { display: block; }
::selection { background: var(--mint); color: var(--on-mint); }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }
.nb { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 8px 14px; background: var(--ink); color: var(--bg); border-radius: 999px; transform: translateY(-200%); }
.skip:focus { transform: none; }

/* Type */
h1, h2, h3 { font-family: var(--display); font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(40px, 6.3vw, 88px); line-height: .98; letter-spacing: -.038em; }
h2 { font-size: clamp(32px, 4.1vw, 56px); line-height: 1.02; letter-spacing: -.032em; }
h3 { font-size: 20px; line-height: 1.2; letter-spacing: -.018em; }
.lede { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }

/* Badge */
.badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--tint, var(--mint));
  color: var(--on-mint);
  font: 500 12px/1.3 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding-inline: 22px;
  border-radius: 999px;
  background: var(--ink); color: var(--bg);
  font: 500 15px/1 var(--text);
  letter-spacing: -.005em;
  white-space: nowrap;
  transition: background-color .2s, transform .35s var(--ease);
}
.btn:hover { background: var(--mint); }
.btn:active { transform: scale(.97); }
.btn-lg { height: 54px; padding-inline: 30px; font-size: 16px; }
.btn-nav { height: 40px; padding-inline: 18px; font-size: 14px; }

/* Top bar */
.topbar {
  padding: 9px var(--gutter);
  background: var(--mint); color: var(--on-mint);
  text-align: center;
  font-size: 13.5px; line-height: 1.4; font-weight: 500;
}
.topbar a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; height: 72px; gap: 40px; }
.nav-logo { display: block; color: var(--ink); flex: none; }
.nav-links { display: flex; gap: 28px; margin-right: auto; }
.nav-links a { font-size: 15px; color: var(--ink-2); transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.only-narrow { display: none; }
.nav-toggle { display: none; position: relative; width: 40px; height: 40px; flex: none; }
.nav-toggle span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--ink); transition: transform .35s var(--ease), top .35s var(--ease); }
.nav-toggle span:first-child { top: 15px; }
.nav-toggle span:last-child { top: 24px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 19.5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 19.5px; transform: rotate(-45deg); }
.mobile-menu { border-top: 1px solid var(--line); background: var(--bg); }
.mobile-menu nav { display: flex; flex-direction: column; padding-block: 12px 20px; }
.mobile-menu a:not(.btn) { padding: 13px 0; font: 600 24px/1.2 var(--display); letter-spacing: -.02em; }
.mobile-menu .btn { margin-top: 14px; height: 50px; }

@media (max-width: 940px) {
  .nav-links { display: none; }
  .nav-inner { height: 64px; gap: 8px; }
  .nav-logo { margin-right: auto; }
  .nav-toggle { display: block; margin-right: -9px; }
  .only-wide { display: none; }
  .only-narrow { display: inline; }
}
@media (max-width: 620px) { .topbar-more { display: none; } }

/* Hero */
.hero { position: relative; overflow: clip; text-align: center; padding-bottom: clamp(56px, 7vw, 96px); }
.hero-art {
  position: absolute;
  top: clamp(16px, 3vh, 36px);
  left: 50%;
  width: min(104vh, 860px, 96vw);
  aspect-ratio: 499 / 393;
  transform: translateX(-50%);
  isolation: isolate;
  -webkit-mask-image: linear-gradient(to bottom, #000 26%, rgba(0, 0, 0, .46) 46%, rgba(0, 0, 0, .14) 66%, transparent 86%);
          mask-image: linear-gradient(to bottom, #000 26%, rgba(0, 0, 0, .46) 46%, rgba(0, 0, 0, .14) 66%, transparent 86%);
}
.hero-art svg { width: 100%; height: 100%; overflow: visible; }
.grain { mix-blend-mode: overlay; opacity: .8; }
.strip-drift { transform: translateY(calc(var(--off) * var(--drift, 0) * 1px)); }
.js .strip { animation: strip-in 1.5s var(--ease) both; animation-delay: calc(var(--i) * 70ms + 120ms); }
@keyframes strip-in {
  from { transform: translateY(calc(var(--off) * 1.6px)); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.hero-copy { position: relative; padding-top: clamp(150px, min(30vh, 38vw), 300px); }
.hero h1 { font-size: clamp(30px, min(3.4vw, 7.2vh), 50px); line-height: 1; letter-spacing: -.033em; }
.hero-lede { max-width: 520px; margin: 18px auto 0; font-size: clamp(15px, 1.08vw, 16px); line-height: 1.55; color: var(--ink-2); text-wrap: balance; }
.hero-actions { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 26px; }
.hero .btn-lg { width: auto; height: 44px; padding-inline: 24px; font-size: 14.5px; }
.hero-note { font-size: 13px; color: var(--ink-2); }

/* Particle hero */
:root { --nav-h: 73px; --top-h: 37px; }
.particles { display: none; position: fixed; left: 0; top: 0; width: 100%; height: 100lvh; z-index: 0; pointer-events: none; }
.has-particles .particles { display: block; }
/* Opacity, not visibility: the Tanken illustration reuses this SVG's clip paths,
   and clip paths stop working when their shapes have visibility: hidden. */
.has-particles .hero-art { opacity: 0; pointer-events: none; }
main, .footer { position: relative; z-index: 1; }
.topbar { position: relative; z-index: 2; }
.hero-copy > :not(.hero-art) { position: relative; }
.loader { display: none; position: fixed; inset: 0; z-index: 200; place-items: center; background: var(--bg); color: var(--ink); transition: opacity .5s ease; }
.is-loading .loader { display: grid; }
.loader.out { opacity: 0; }
.pin .hero-track { height: calc(100svh - var(--nav-h) - var(--top-h) + 100svh); }
.pin .hero {
  position: sticky; top: var(--nav-h);
  height: calc(100svh - var(--nav-h) - var(--top-h));
  display: flex; flex-direction: column; justify-content: center;
  padding-bottom: 0;
}
.pin .overview { margin-top: clamp(32px, 4vw, 64px); }

/* Section scaffolding */
.section { padding-block: var(--section); }
.section-head h2 { margin-top: 20px; max-width: 820px; }
.section-head .lede { margin-top: 18px; max-width: 620px; }

/* Reveal on scroll: content only hides when the script is running */
.js [data-r] { opacity: 0; transform: translateY(20px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--d, 0) * 70ms); }
.js [data-r].in { opacity: 1; transform: none; }

/* Concept label */
.concept {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 10px 5px 8px;
  border-radius: 999px;
  background: var(--bg-3);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font: 500 11px/1.2 var(--mono);
  letter-spacing: .04em;
  white-space: nowrap;
}
.concept::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--mint); }
.stage { position: relative; }
.stage > .concept { position: absolute; z-index: 3; top: -12px; left: 20px; }

/* Concept overview (hero) */
.overview { padding-bottom: 0; margin-top: clamp(-8px, 1vw, 16px); }
.app {
  display: grid; grid-template-columns: 224px minmax(0, 1fr) minmax(0, 380px);
  border-radius: 12px; border: 1px solid var(--line-strong);
  background: var(--bg-1); overflow: hidden;
  font-size: 13.5px; line-height: 1.4;
}
.app-side { padding: 18px 12px; background: #0D0D0C; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.app-club { display: flex; align-items: center; gap: 10px; padding: 6px 8px 16px; font-weight: 600; }
.app-club svg { color: var(--mint); flex: none; }
.app-nav li { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 6px; color: var(--ink-2); }
.app-nav svg { width: 15px; height: 15px; flex: none; }
.app-nav .on { background: var(--bg-3); color: var(--ink); }
.app-nav .count { margin-left: auto; min-width: 20px; padding: 1px 6px; border-radius: 99px; background: var(--mint); color: var(--on-mint); font: 500 11px/1.4 var(--mono); text-align: center; transition: transform .4s var(--ease); }
.app-label { padding: 22px 8px 6px; font: 500 11px/1 var(--mono); letter-spacing: .06em; color: var(--ink-3); text-transform: uppercase; }
.app-agents li { display: flex; align-items: center; gap: 10px; padding: 6px 8px; color: var(--ink-2); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); flex: none; transition: background-color .4s; }
.app-agents li[data-busy="true"] { color: var(--ink); }
.app-agents li[data-busy="true"] .dot { background: var(--mint); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 4px rgba(163, 246, 203, .18); } }

.app-main { padding: 22px 0 0; min-width: 0; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.app-title { padding: 0 22px 16px; }
.app-title strong { display: block; font: 600 20px/1.2 var(--display); letter-spacing: -.02em; }
.app-title span { color: var(--ink-2); }
.queue { border-top: 1px solid var(--line); }
.q-row {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 14px; align-items: center;
  padding: 14px 22px; border-bottom: 1px solid var(--line);
  transition: background-color .35s;
}
.q-row::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--mint); transform: scaleY(0); transition: transform .45s var(--ease); }
.q-row.sel { background: var(--bg-2); }
.q-row.sel::before { transform: none; }
.q-agent { grid-column: 1; font-size: 12.5px; color: var(--ink-2); }
.q-task { grid-column: 1; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-status { grid-column: 2; grid-row: 1 / 3; display: grid; justify-items: end; }
.q-status span {
  grid-area: 1 / 1;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px; border-radius: 99px;
  font-size: 12px; font-weight: 500; white-space: nowrap;
  opacity: 0; transform: translateY(5px);
  transition: opacity .35s, transform .45s var(--ease);
}
.q-status .s-working { color: var(--ink-2); background: var(--bg-3); }
.q-status .s-draft { color: var(--on-mint); background: var(--mint); }
.q-status .s-ok { color: var(--mint); background: rgba(163, 246, 203, .12); }
.q-row[data-state="working"] .s-working,
.q-row[data-state="draft"] .s-draft,
.q-row[data-state="ok"] .s-ok { opacity: 1; transform: none; }

.app-next { padding: 2px 22px 18px; margin-top: auto; }
.app-next .app-label { padding: 18px 0 10px; }
.app-next ul { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.app-next li { display: grid; gap: 1px; padding: 10px 12px; border-radius: 6px; background: var(--bg-2); }
.app-next b { font-weight: 500; }
.app-next span { color: var(--ink-2); font-size: 12.5px; }
.app-doc { padding: 22px; display: flex; flex-direction: column; min-width: 0; background: var(--bg-2); }
.doc-meta { font-size: 12.5px; color: var(--ink-2); }
.doc-title { margin-top: 2px; font: 600 18px/1.25 var(--display); letter-spacing: -.015em; }
.doc-body { margin-top: 16px; flex: 1; color: #CFCFCC; }
.doc-body p + p { margin-top: 10px; }
.doc-swap { transition: opacity .3s, transform .45s var(--ease); }
.doc-swap.out { opacity: 0; transform: translateY(6px); }
.doc-swap { flex: 1; }
.doc-body .doc-refs { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-2); }
.doc-actions { display: flex; gap: 8px; margin-top: 20px; }
.ui-btn { display: inline-flex; align-items: center; justify-content: center; height: 34px; padding-inline: 14px; border-radius: 6px; font-size: 13px; font-weight: 500; }
.ui-btn.primary { background: var(--mint); color: var(--on-mint); transition: transform .2s var(--ease), background-color .2s; }
.ui-btn.primary.press { transform: scale(.95); background: #7FE6B0; }
.ui-btn.ghost { border: 1px solid var(--line-strong); color: var(--ink-2); }

@media (max-width: 1100px) {
  .app { grid-template-columns: minmax(0, 1fr) minmax(0, 340px); }
  .app-side { display: none; }
}
@media (max-width: 760px) {
  .app { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .app-main { border-right: 0; }
  .app-doc { border-top: 1px solid var(--line); min-height: 232px; }
  .stage > .concept { left: 12px; }
}

/* Vardagen idag */
.everyday .section-head { margin-bottom: clamp(36px, 4vw, 56px); }
.marquee {
  display: grid; gap: 14px; overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
}
.m-track { display: flex; gap: 14px; width: max-content; }
.js .m-track { animation: slide var(--t, 70s) linear infinite; }
.js .m-track.rev { animation-direction: reverse; }
.marquee:hover .m-track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(calc(-50% - 7px)); } }
.m-group { display: flex; gap: 14px; }
.m-card {
  width: 320px; flex: none;
  padding: 20px 22px 18px;
  border-radius: var(--radius); background: var(--bg-1); border: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: space-between; gap: 22px;
}
.m-card p { font-size: 16px; line-height: 1.4; color: var(--ink); text-wrap: pretty; }
.m-card span { display: inline-flex; align-items: center; gap: 8px; font: 400 12px/1 var(--mono); color: var(--ink-2); }
.m-card span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--tint); }

/* Tanken */
.tanken .section-head h2 { max-width: none; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: clamp(40px, 5vw, 64px); }
.step { position: relative; padding: clamp(24px, 2.6vw, 36px); padding-top: 28px; background: var(--bg-1); border-radius: var(--radius); display: flex; flex-direction: column; min-height: 340px; }
.step-art { height: 72px; width: auto; align-self: flex-start; overflow: visible; }
.step-art.step-check { height: 58px; margin-block: 7px; }
.step-n { margin-top: auto; padding-top: 44px; font: 500 12px/1 var(--mono); color: var(--ink-2); letter-spacing: .04em; }
.step h3 { margin-top: 12px; font-size: clamp(20px, 1.9vw, 24px); line-height: 1.15; letter-spacing: -.022em; }
.step p { margin-top: 10px; color: var(--ink-2); text-wrap: pretty; }

/* Agent grid */
.agent-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(40px, 5vw, 64px);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.agent-grid li + li { border-left: 1px solid var(--line); }
.agent-grid a { display: flex; flex-direction: column; height: 100%; padding: 28px 24px 30px; transition: background-color .25s; }
.agent-grid a:hover { background: var(--bg-1); }
.agent-grid a:focus-visible { outline-offset: -4px; }
.icon { width: 26px; height: 26px; fill: none; stroke: var(--tint); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.agent-grid h3 { margin-top: 36px; }
.agent-grid p { margin-top: 10px; color: var(--ink-2); font-size: 15px; line-height: 1.5; text-wrap: pretty; }

/* Agent sections */
.agent { padding-block: clamp(64px, 7.5vw, 112px); }
.agent-grid-2 { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.agent-flip .agent-grid-2 { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.agent-flip .agent-copy { order: 2; }
.agent-copy h2 { margin-top: 20px; font-size: clamp(32px, 3.5vw, 48px); }
.agent-copy .lede { margin-top: 18px; max-width: 480px; }
.points { margin-top: 26px; display: grid; gap: 10px; color: var(--ink); font-size: 15.5px; }
.points li { position: relative; padding-left: 24px; text-wrap: pretty; }
.points li::before { content: ""; position: absolute; left: 1px; top: .72em; width: 12px; height: 2px; border-radius: 1px; background: var(--tint, var(--mint)); }

.panel { border-radius: 12px; background: var(--bg-1); border: 1px solid var(--line); font-size: 13.5px; line-height: 1.4; }
.panel-wrap .concept { top: -12px; }
.plan-club { color: var(--ink-3); font-weight: 400; }
.pill { display: inline-flex; padding: 3px 9px; border-radius: 99px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.pill-ok { color: var(--mint); background: rgba(163, 246, 203, .12); }
.pill-go { color: var(--ink); background: var(--bg-3); }
.pill-warn { color: var(--on-mint); background: var(--mint); }

/* Played once when a stage comes into view. The end state is the default,
   so the content is complete without the script and with reduced motion. */
.js .stage:not(.play) .plan-tree li { opacity: 0; transform: translateX(-10px); }
.plan-tree li { transition: opacity .7s var(--ease), transform .7s var(--ease), background-color .4s; transition-delay: calc(var(--n) * 160ms + 200ms); }
.js .stage:not(.play) .plan-bar i { transform: scaleX(0); }
.plan-bar i { transition: transform 1.2s var(--ease) .3s; }
.js .stage:not(.play) .plan-tip { opacity: 0; transform: translateY(18px); }
.plan-tip { transition: opacity .8s var(--ease) 1.1s, transform .8s var(--ease) 1.1s; }

/* Ordförande: plan */
.plan { padding: 22px 22px 0; display: flex; flex-direction: column; margin-bottom: 44px; }
.plan-head, .ledger-head { display: flex; justify-content: space-between; gap: 12px; font-weight: 500; color: var(--ink-2); }
.plan-goal { margin-top: 18px; padding: 16px 18px; background: var(--bg-2); border-radius: var(--radius); }
.plan-kicker { font-size: 12.5px; color: var(--ink-2); }
.plan-title { margin-top: 2px; font: 600 clamp(17px, 1.6vw, 20px)/1.2 var(--display); letter-spacing: -.018em; }
.plan-bar { height: 4px; margin-top: 14px; border-radius: 2px; background: var(--bg-3); overflow: hidden; }
.plan-bar i { display: block; width: 33.333%; height: 100%; background: var(--mint); transform-origin: left; }
.plan-tree { position: relative; margin: 6px 0 0 18px; padding-left: 18px; border-left: 1px solid var(--line-strong); }
.plan-tree li { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 12px 12px; border-radius: 6px; margin-top: 4px; }
.plan-tree li::before { content: ""; position: absolute; left: -18px; top: 50%; width: 18px; height: 1px; background: var(--line-strong); }
.plan-tree .focus { background: var(--bg-2); }
.p-no { font: 400 12px/1 var(--mono); color: var(--ink-2); }
.p-txt { font-weight: 500; }
.plan-tip {
  position: relative; z-index: 2;
  margin: 14px -1px -44px auto; width: min(420px, 92%);
  padding: 16px 18px; border-radius: var(--radius);
  background: var(--bg-3); border: 1px solid var(--line-strong);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .55);
}
.tip-who { font-size: 12.5px; color: var(--mint); font-weight: 500; }
.tip-txt { margin-top: 4px; font-size: 14.5px; line-height: 1.4; }
.tip-actions { display: flex; gap: 8px; margin-top: 12px; }

/* Kassör: ledger */
.ledger { padding: 22px 22px 18px; }
.l-row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) 148px; gap: 16px; align-items: center; padding: 13px 0; border-top: 1px solid var(--line); }
.l-cols { margin-top: 16px; padding-block: 0 9px; border-top: 0; font-size: 12px; color: var(--ink-3); }
.l-cols + .l-row { border-top: 1px solid var(--line); }
.l-name { font-weight: 500; }
.l-bar { display: block; height: 8px; border-radius: 4px; background: var(--bg-3); overflow: hidden; }
.l-bar i { display: block; height: 100%; width: calc(var(--v) * 100%); background: var(--tint); border-radius: 4px; transform-origin: left; transition: transform 1.3s var(--ease) .15s; }
.js .stage:not(.play) .l-bar i { transform: scaleX(0); }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.num b { font-weight: 500; }
.num small { margin-left: 6px; font-size: 12px; color: var(--ink-3); }
.l-total { border-top: 1px solid var(--line-strong); }
.l-total .l-name, .l-total .num b { font-weight: 600; }
.ledger-note { display: flex; align-items: flex-start; gap: 12px; margin-top: 10px; padding: 14px 16px; border-radius: var(--radius); background: var(--bg-2); transition: opacity .8s var(--ease) 1s, transform .8s var(--ease) 1s; }
.ledger-note p { font-size: 14px; }
.js .stage:not(.play) .ledger-note { opacity: 0; transform: translateY(12px); }

/* Sekreterare: paper */
.minutes { display: grid; grid-template-columns: 196px minmax(0, 1fr); overflow: hidden; height: 500px; }
.agenda { padding: 22px 20px; display: flex; flex-direction: column; }
.agenda-title { font-size: 12.5px; color: var(--ink-2); font-weight: 500; }
.agenda ol { margin-top: 10px; display: grid; gap: 2px; }
.agenda li { position: relative; padding: 7px 0 7px 22px; color: var(--ink); }
.agenda li::before { content: ""; position: absolute; left: 0; top: 11px; width: 12px; height: 12px; border-radius: 50%; background: var(--tint); transition: transform .5s var(--ease), background-color .4s; transition-delay: calc(var(--n) * 420ms + 300ms); }
.js .stage:not(.play) .agenda li::before { background: var(--bg-3); transform: scale(.7); }
.folders { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; }
.folders .agenda-title { width: 100%; margin-bottom: 4px; }
.folders span { padding: 4px 9px; border-radius: 5px; background: var(--bg-3); font-size: 12.5px; color: #CFCFCC; }
.paper { background: #F4F4F0; color: #16160F; margin: 22px 22px -30px 0; padding: 26px 28px 40px; border-radius: 6px 6px 0 0; overflow: hidden; }
.paper-tag { display: inline-block; padding: 2px 8px; border-radius: 99px; background: #DAD9D1; font-size: 11.5px; font-weight: 500; }
.paper-title { margin-top: 12px; font: 600 22px/1.15 var(--display); letter-spacing: -.02em; }
.paper-sub { color: #5B5B52; font-size: 13px; margin-top: 2px; }
.paper-item { margin-top: 15px; transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--n) * 420ms + 300ms); }
.paper-item b { font-weight: 600; font-size: 13.5px; }
.paper-item p { color: #3C3C34; margin-top: 1px; }
.js .stage:not(.play) .paper-item { opacity: 0; transform: translateY(8px); }

/* Lagledare: week */
.agent-band { position: relative; background: var(--bg-1); margin-block: clamp(32px, 4vw, 56px); padding-block: clamp(72px, 8vw, 120px); overflow: clip; }
.agent-band::before { content: ""; position: absolute; left: 50%; top: 0; width: min(900px, 100%); height: 420px; transform: translateX(-50%); background: radial-gradient(ellipse at top, rgba(114, 232, 168, .13), transparent 68%); pointer-events: none; }
.agent-stack { position: relative; grid-template-columns: minmax(0, 1fr); gap: clamp(36px, 4vw, 56px); }
.agent-copy-wide { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 5vw, 72px); align-items: end; }
.agent-copy-wide h2 { max-width: 640px; }
.agent-copy-wide .lede { margin-top: 0; }
.agent-band .panel { background: #0D0D0C; }
.week { padding: 20px 20px 20px; }
.week-head, .week-row { display: grid; grid-template-columns: 56px repeat(7, minmax(0, 1fr)); gap: 8px; align-items: stretch; }
.week-head { padding-bottom: 12px; font-size: 12.5px; color: var(--ink-2); }
.week-row { padding-block: 8px; border-top: 1px solid var(--line); }
.week-team { grid-column: 1; grid-row: 1; align-self: center; font-weight: 600; }
.ev { grid-row: 1; grid-column: calc(var(--c) + 1); padding: 11px 12px; border-radius: 6px; background: var(--bg-3); display: grid; gap: 1px; min-height: 66px; align-content: center; }
.ev b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev > span { color: var(--ink-2); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.ev em { display: none; font-style: normal; }
.ev-soft { background: transparent; box-shadow: inset 0 0 0 1px var(--line-strong); }
.ev-match { background: var(--mint); color: var(--on-mint); }
.ev-match > span { color: var(--on-mint); }
.roll { display: inline-grid; height: 1.4em; overflow: hidden; vertical-align: bottom; }
.roll i { font-style: normal; grid-area: 1 / 1; transition: transform .7s var(--ease) 1s, opacity .4s 1s; }
.roll i:first-child { transform: translateY(-110%); opacity: 0; }
.js .stage:not(.play) .roll i:first-child { transform: none; opacity: 1; }
.js .stage:not(.play) .roll i:last-child { transform: translateY(110%); opacity: 0; }
.week-msg { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 12px; padding: 16px 18px; border-radius: var(--radius); background: var(--bg-2); transition: opacity .8s var(--ease) 1.6s, transform .8s var(--ease) 1.6s; }
.week-msg .tip-actions { margin-top: 0; flex: none; }
.js .stage:not(.play) .week-msg { opacity: 0; transform: translateY(14px); }

/* Tillsammans */
.say { margin-top: 28px; display: grid; gap: 6px; font: 400 clamp(17px, 1.6vw, 20px)/1.4 var(--mono); color: var(--ink-2); }
.say-you { color: var(--mint); font-weight: 500; }
.org { padding: clamp(28px, 4vw, 48px) clamp(16px, 3vw, 36px); display: grid; justify-items: center; }
.org-row { position: relative; display: grid; gap: 10px; width: 100%; }
.org-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 460px; }
.org-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.org-node { position: relative; padding: 13px 8px; border-radius: var(--radius); background: var(--bg-3); text-align: center; }
.org-node b { font-weight: 500; }
.org-agent { display: grid; justify-items: center; gap: 8px; background: var(--bg-2); padding: 16px 6px; }
.org-agent i { width: 8px; height: 8px; border-radius: 50%; background: var(--tint); }
.org-hub { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; margin-block: 44px; padding: 14px 22px; border-radius: 999px; background: var(--mint); color: var(--on-mint); }
.org-hub b { font-weight: 600; font-size: 15px; white-space: nowrap; }
/* Connectors between the rows */
.org-3::after, .org-4::before { content: ""; position: absolute; height: 1px; background: var(--line-strong); }
.org-3::after { bottom: -22px; left: calc(100% / 6); right: calc(100% / 6); }
.org-4::before { top: -22px; left: 12.5%; right: 12.5%; }
.org-3 .org-node::after { content: ""; position: absolute; left: 50%; bottom: -22px; width: 1px; height: 22px; background: var(--line-strong); }
.org-4 .org-node::before { content: ""; position: absolute; left: 50%; top: -22px; width: 1px; height: 22px; background: var(--line-strong); }
.org-hub::before, .org-hub::after { content: ""; position: absolute; left: 50%; width: 1px; height: 22px; background: var(--line-strong); }
.org-hub::before { top: -22px; }
.org-hub::after { bottom: -22px; }
.org-node, .org-hub { transition: opacity .7s var(--ease), transform .7s var(--ease); }
.org-3 .org-node { transition-delay: .1s; }
.org-hub { transition-delay: .35s; }
.org-4 .org-node { transition-delay: .6s; }
.js .org-wrap:not(.play) .org-node, .js .org-wrap:not(.play) .org-hub { opacity: 0; transform: translateY(10px); }

/* Om oss */
.about-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.about-text .section-head { margin-bottom: clamp(24px, 3vw, 36px); }
.about-text p { font-size: clamp(17px, 1.45vw, 20px); line-height: 1.55; max-width: 640px; text-wrap: pretty; }
.about-text p + p { margin-top: 18px; color: var(--ink-2); }
.founders { display: flex; flex-wrap: wrap; gap: 14px 36px; margin-top: 36px; }
.founders li { display: flex; align-items: center; gap: 12px; }
.avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--bg-3); font: 500 13px/1 var(--mono); color: var(--mint); }
.founders b { display: block; font-weight: 600; font-size: 15.5px; line-height: 1.3; }
.founders small { color: var(--ink-2); font-size: 13.5px; }
.status { padding: clamp(24px, 2.6vw, 34px); border-radius: var(--radius); background: var(--bg-1); }
.status-title { font: 600 clamp(20px, 1.9vw, 24px)/1.18 var(--display); letter-spacing: -.02em; text-wrap: balance; }
.status-sub { margin-top: 10px; color: var(--ink-2); }
.track { margin-top: 26px; display: grid; }
.track li { position: relative; padding: 0 0 22px 26px; }
.track li:last-child { padding-bottom: 0; }
.track li::before { content: ""; position: absolute; left: 0; top: 6px; width: 11px; height: 11px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ink-3); background: var(--bg-1); z-index: 1; }
.track li::after { content: ""; position: absolute; left: 5px; top: 8px; bottom: -6px; width: 1px; background: var(--line-strong); }
.track li:last-child::after { display: none; }
.track .now::before { background: var(--mint); box-shadow: none; }
.track b { display: block; font-weight: 500; line-height: 1.35; }
.track small { color: var(--ink-2); font-size: 13.5px; }

/* Frågor */
.faq-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.faq-head { position: sticky; top: 112px; }
.faq-head h2 { margin-top: 20px; }
.faq-list { border-bottom: 1px solid var(--line); }
details { border-top: 1px solid var(--line); }
summary {
  position: relative; list-style: none; cursor: pointer;
  padding: 22px 44px 22px 0;
  font: 500 clamp(17px, 1.5vw, 20px)/1.3 var(--display); letter-spacing: -.012em;
  transition: color .2s;
}
summary::-webkit-details-marker { display: none; }
summary:hover { color: var(--mint); }
summary::before, summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 15px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease); }
summary::after { transform: rotate(90deg); }
details[open] summary::after { transform: rotate(0deg); }
details p { padding: 0 44px 24px 0; max-width: 640px; color: var(--ink-2); text-wrap: pretty; }
details::details-content { block-size: 0; overflow: hidden; transition: block-size .45s var(--ease), content-visibility .45s allow-discrete; }
details[open]::details-content { block-size: auto; }
@supports (interpolate-size: allow-keywords) { :root { interpolate-size: allow-keywords; } }

/* Final */
.final { position: relative; background: var(--bg-1); padding-block: clamp(96px, 11vw, 160px); text-align: center; overflow: clip; }
.final-inner { display: flex; flex-direction: column; align-items: center; }
.final h2 { margin-top: 20px; max-width: 880px; font-size: clamp(36px, 5vw, 68px); line-height: 1; letter-spacing: -.035em; }
.final .lede { margin-top: 22px; max-width: 620px; }
.final-actions { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-top: 34px; }
.final-actions p { font-size: 15px; color: var(--ink-2); }
.final-actions p a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); transition: color .2s, text-decoration-color .2s; }
.final-actions p a:hover { color: var(--mint); text-decoration-color: currentColor; }

/* Footer */
.footer { padding-top: clamp(56px, 6vw, 80px); overflow: hidden; }
.footer-top { display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr)); gap: 32px; }
.footer-note { max-width: 380px; color: var(--ink-2); font-size: 15px; text-wrap: pretty; }
.footer-col p { font-size: 13.5px; color: var(--ink-3); }
.footer-col ul { margin-top: 10px; display: grid; gap: 7px; font-size: 15px; }
.footer-col a { transition: color .2s; }
.footer-col a:hover { color: var(--mint); }
.footer-logo { width: 100%; height: auto; margin-top: clamp(40px, 6vw, 80px); margin-bottom: clamp(8px, 1.4vw, 20px); color: #1B1B1A; }

/* Responsive */
@media (max-width: 1100px) {
  .agent-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .agent-grid li:nth-child(3) { border-left: 0; }
  .agent-grid li:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 980px) {
  .agent-grid-2, .about-grid, .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .agent-flip .agent-grid-2 { grid-template-columns: minmax(0, 1fr); }
  .agent-flip .agent-copy { order: 0; }
  .agent-copy .lede { max-width: 620px; }
  .agent-copy-wide { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .faq-head { position: static; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step { min-height: 0; }
  .step-n { padding-top: 28px; }
}
@media (max-width: 880px) {
  .week-head { display: none; }
  .week-row { grid-template-columns: minmax(0, 1fr); gap: 6px; padding-block: 10px; }
  .week-row:first-child { border-top: 0; }
  .week-team { grid-row: auto; padding-bottom: 2px; }
  .ev { grid-column: 1; grid-row: auto; min-height: 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 12px; }
  .ev em { display: inline; }
}
@media (max-width: 760px) {
  .week-msg { flex-direction: column; align-items: flex-start; gap: 12px; }
  .week-msg .tip-actions { margin-top: 0; }
  .l-row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; }
  .l-bar { grid-column: 1 / -1; grid-row: 2; }
  .l-cols { display: none; }
  .l-row:nth-child(3) { border-top: 0; margin-top: 8px; }
  .num small { display: none; }
  .ledger { padding: 20px 16px 16px; }
  .plan { padding: 20px 14px 0; }
  .plan-tree { margin-left: 8px; padding-left: 12px; }
  .plan-tree li { grid-template-columns: minmax(0, 1fr) auto; padding: 10px; gap: 2px 8px; }
  .plan-tree li::before { left: -12px; width: 12px; }
  .p-no { grid-column: 1; }
  .p-txt { grid-column: 1; }
  .plan-tree .pill { grid-column: 2; grid-row: 1 / 3; }
  .plan-tip { width: calc(100% - 8px); }
  .minutes { grid-template-columns: minmax(0, 1fr); height: auto; }
  .agenda ol, .folders { display: none; }
  .agenda { padding: 18px 16px 2px; }
  .agenda-title { display: none; }
  .paper { margin: 14px 14px -24px; height: 400px; padding: 22px 20px 30px; }
  .org { padding-inline: 12px; }
  .org-3 { max-width: none; }
  .org-node { padding-inline: 4px; font-size: 13px; }
  .org-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .org-4::before { left: 25%; right: 25%; }
  .org-4 .org-node:nth-child(n + 3)::before { display: none; }
  .org-hub { padding: 12px 16px; }
  .org-hub b { font-size: 14px; }
  .footer-top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-note { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .hero-art {
    width: 108vw;
    -webkit-mask-image: linear-gradient(to bottom, #000 22%, rgba(0, 0, 0, .32) 44%, rgba(0, 0, 0, .1) 62%, transparent 80%);
            mask-image: linear-gradient(to bottom, #000 22%, rgba(0, 0, 0, .32) 44%, rgba(0, 0, 0, .1) 62%, transparent 80%);
  }
  .hero-copy { padding-top: 34vw; }
  .agent-grid { grid-template-columns: minmax(0, 1fr); }
  .agent-grid li + li { border-left: 0; border-top: 1px solid var(--line); }
  .agent-grid h3 { margin-top: 20px; }
  .agent-grid a { padding: 22px 20px 24px; }
}
@media (max-width: 480px) {
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .btn-lg { width: 100%; max-width: 340px; padding-inline: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
}
