/* sharectl – konceptsajt */

:root {
  --paper: #ffffff;
  --mist: #f5f5f7;
  --ink: #1d1d1f;
  --graphite: #6e6e73;
  --night: #000000;
  --tile: #1c1c1e;
  --tile-line: #2c2c2e;
  --night-text: #f5f5f7;
  --night-muted: #a1a1a6;
  --link: #0066cc;
  --link-night: #2997ff;

  /* Färgen tillhör människorna: bara avatarer och deras innehåll får färg. */
  --amber: #f5a524;
  --sky: #3ba8f5;
  --leaf: #2fbf71;
  --violet: #9b6cf5;
  --rose: #f25c7a;

  --font: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --spring: cubic-bezier(.2, .9, .25, 1.12);

  --wrap: min(980px, calc(100% - 32px));
  --wrap-wide: min(1200px, calc(100% - 32px));
  --wrap-mid: min(1100px, calc(100% - 32px));
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 48px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }

.icon { width: 1em; height: 1em; fill: currentColor; flex: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; z-index: 100; left: 16px; top: -64px;
  padding: 10px 18px; border-radius: 999px;
  background: var(--link); color: #fff; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--link-night); outline-offset: 3px; border-radius: 6px; }

/* ---------- Navigering ---------- */

.nav {
  position: sticky; top: 0; z-index: 50; height: 48px;
  background: rgba(0, 0, 0, .78);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  color: var(--night-text);
}
.nav-inner {
  width: var(--wrap); height: 100%; margin-inline: auto;
  display: flex; align-items: center; gap: 28px;
}
.wordmark {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 20px; font-weight: 700; letter-spacing: -.035em; text-decoration: none;
}
.wordmark .icon { font-size: 20px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: 13px; }
.nav-links a { color: #d2d2d7; text-decoration: none; transition: color .2s; }
.nav-links a:hover { color: #fff; }
.nav-links a[aria-current="page"] { color: #fff; }
.nav-pill {
  padding: 5px 14px; border-radius: 999px;
  background: #0071e3; color: #fff;
  font-size: 13px; font-weight: 500; text-decoration: none;
  transition: background-color .2s;
}
.nav-pill:hover { background: #0077ed; }

/* ---------- Hero ---------- */

.hero {
  overflow: hidden;
  padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 5vw, 64px);
  background: var(--night);
  color: var(--night-text);
  text-align: center;
}
.hero-text { width: var(--wrap); margin-inline: auto; }
.hero-product {
  margin-bottom: 14px;
  font-size: clamp(19px, 2vw, 24px); font-weight: 600; letter-spacing: -.02em;
}
.hero-title {
  font-size: clamp(44px, 8.4vw, 112px);
  line-height: .96;
  font-weight: 700;
  letter-spacing: -.04em;
}
.hero-lead, .caption-title, .caption-text, .open-head p, .halves-head p, .half-lead, h2 { text-wrap: balance; }
.body, .open-grid p { text-wrap: pretty; }
.nowrap { white-space: nowrap; }
.hero-lead {
  max-width: 34ch;
  margin: 28px auto 0;
  font-size: clamp(20px, 2.3vw, 28px);
  line-height: 1.22;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--night-muted);
}

.hero-cue { display: inline-block; margin-top: 36px; font-size: 17px; color: var(--link-night); text-decoration: none; }
.hero-cue:hover { text-decoration: underline; }

/* ---------- Berättelsen: scrollstyrd, ett steg i taget ---------- */

.story {
  position: relative;
  margin-top: -1px; /* ingen vit skarv mot hero när höjden hamnar mellan två pixlar */
  height: calc(var(--steps, 7) * 75vh + 100vh);
  height: calc(var(--steps, 7) * 75svh + 100svh);
  background: var(--night);
  color: var(--night-text);
}
.story-sticky {
  position: sticky; top: 48px;
  height: calc(100vh - 48px);
  height: calc(100svh - 48px);
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: 12px 16px 20px;
  overflow: hidden;
  text-align: center;
}
.stage { position: relative; flex: none; overflow: hidden; }
.canvas { position: absolute; left: 0; top: 0; transform-origin: 0 0; text-align: left; }
.world { position: absolute; left: 0; top: 0; transform-origin: 0 0; transition: transform 1.1s var(--ease); }
.wires { position: absolute; left: 0; top: 0; overflow: visible; }

/* Allt i scenen dyker upp först när ett steg tar in det. Det som inte hör till steget tonas ner. */
.world [data-el] {
  --on: 0; --focus: 1;
  position: absolute;
  opacity: calc(var(--on) * var(--focus));
  transform: translateY(calc((1 - var(--on)) * 22px)) scale(var(--s, 1));
  transform-origin: 0 0;
  transition: opacity .7s var(--ease), transform .9s var(--spring), border-color .6s var(--ease), box-shadow .6s var(--ease);
}
.s-box [data-el="sandbox"],
.s-showIndex [data-el="index"],
.s-showAgent [data-el="agent"],
.s-showPhone [data-el="phone"],
.s-status [data-el="status"],
.s-chat [data-el="chat"] { --on: 1; }
.canvas[data-focus] [data-el] { --focus: .28; }
.canvas[data-focus~="sandbox"] [data-el="sandbox"],
.canvas[data-focus~="index"] [data-el="index"],
.canvas[data-focus~="agent"] [data-el="agent"],
.canvas[data-focus~="phone"] [data-el="phone"],
.canvas[data-focus~="chat"] [data-el="chat"] { --focus: 1; }

.wire {
  --on: 0; --focus: 1;
  fill: none; stroke: #3a3a3c; stroke-width: 1.5;
  opacity: calc(var(--on) * var(--focus));
  transition: stroke .7s var(--ease), opacity .7s var(--ease);
}
.wire.ghost { stroke: none; }
.wire[data-wire="followAgent"] { stroke: #636366; stroke-width: 2; stroke-linecap: round; stroke-dasharray: .5 8; }
.s-wire1 .wire[data-wire="sandboxIndex"],
.s-showAgent .wire[data-wire="followAgent"],
.s-showAgent .wire[data-wire="indexAgent"],
.s-showAgent .wire[data-wire="agentPhone"] { --on: 1; }
.s-wire1 .wire[data-wire="sandboxIndex"] { stroke: #636366; }
.s-gather .wire[data-wire="indexAgent"],
.s-gather .wire[data-wire="agentPhone"] { stroke: #8e8e93; }
.s-gather .wire[data-wire="followAgent"] { stroke: #d2d2d7; }
.s-direct .wire[data-wire="followAgent"] { stroke: var(--amber); }
.canvas[data-focus] .wire { --focus: .25; }
.canvas[data-focus~="w-sandboxIndex"] .wire[data-wire="sandboxIndex"],
.canvas[data-focus~="w-followAgent"] .wire[data-wire="followAgent"],
.canvas[data-focus~="w-agentPhone"] .wire[data-wire="agentPhone"] { --focus: 1; }

/* Noder */
.node {
  display: grid; place-items: center;
  border: 1px solid var(--tile-line); border-radius: 30px;
  background: var(--tile);
}
.node-label {
  position: absolute; top: calc(100% + 12px); left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 14px; font-weight: 600; letter-spacing: -.01em;
  color: #6e6e73;
  transition: color .6s var(--ease);
}

.avatar {
  --c: var(--graphite);
  display: inline-grid; place-items: center; flex: none;
  width: 2.1em; height: 2.1em; border-radius: 50%;
  background: var(--c); color: #fff;
  font-weight: 700; line-height: 1; letter-spacing: 0;
}
.c-amber { --c: var(--amber); }
.c-sky { --c: var(--sky); }
.c-leaf { --c: var(--leaf); }
.c-violet { --c: var(--violet); }
.c-rose { --c: var(--rose); }

.faces { display: inline-flex; flex: none; }
.faces .avatar { box-shadow: 0 0 0 2px var(--ring, var(--tile)); }
.faces .avatar + .avatar { margin-left: -.55em; }

.idx { display: grid; gap: 7px; width: 44px; }
.idx i { display: block; height: 5px; border-radius: 3px; background: #3a3a3c; }
.idx i:nth-child(3) { width: 72%; }
.idx i:nth-child(4) { width: 86%; }
.idx .idx-new {
  height: 0; margin-bottom: -7px; opacity: 0;
  background: var(--amber);
  transition: height .5s var(--spring), margin .5s var(--spring), opacity .4s var(--ease);
}
.s-listed .idx-new { height: 5px; margin-bottom: 0; opacity: 1; }
.s-index .node-index { border-color: #636366; }
.s-index .node-index .node-label { color: var(--night-text); }

.node-agent .icon { font-size: 40px; fill: #48484a; transition: fill .6s var(--ease); }
.s-agent .node-agent {
  border-color: rgba(255, 255, 255, .6);
  box-shadow: 0 0 0 8px rgba(255, 255, 255, .06), 0 0 80px rgba(255, 255, 255, .16);
}
.s-agent .node-agent .icon { fill: #fff; }
.s-agent .node-agent .node-label { color: var(--night-text); }
.s-learned .node-agent { animation: learn 1s var(--ease); }
@keyframes learn {
  40% { box-shadow: 0 0 0 14px rgba(242, 92, 122, .16), 0 0 90px rgba(242, 92, 122, .3); }
}

/* Agenten berättar vad den gör medan den letar */
.agent-status { display: grid; place-items: center; }
.st {
  grid-area: 1 / 1;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; border-radius: 999px;
  background: #2c2c2e; color: var(--night-text);
  font-size: 14px; font-weight: 600; white-space: nowrap;
  opacity: 0; transform: translateY(6px) scale(.96);
  transition: opacity .3s var(--ease), transform .45s var(--spring);
}
.st .icon { font-size: 13px; }
.st-1 .icon, .st-2 .icon { animation: seek 1.1s var(--ease) infinite; }
.st-3 { background: rgba(47, 191, 113, .18); color: #4cd68a; }
.st-4 { background: #fff; color: var(--ink); }
.s-q1 .st-1, .s-q2 .st-2, .s-q3 .st-3, .s-q4 .st-4 { opacity: 1; transform: none; }
@keyframes seek { 50% { opacity: .35; } }

/* Saga pratar med sin agent, som publicerar åt henne */
.pub-chat { display: flex; flex-direction: column; justify-content: center; gap: 10px; font-size: 14px; line-height: 1.35; }
.pub-chat p {
  max-width: 88%; padding: 10px 14px; border-radius: 18px;
  opacity: 0; transform: translateY(8px) scale(.96);
  transition: opacity .35s var(--ease), transform .5s var(--spring);
}
.pc-me { align-self: flex-end; border-bottom-right-radius: 6px; background: #0a84ff; color: #fff; }
.pc-agent { align-self: flex-start; display: flex; gap: 7px; border-bottom-left-radius: 6px; background: #2c2c2e; color: var(--night-text); }
.pc-agent .icon { flex: none; font-size: 12px; margin-top: 3px; fill: var(--amber); }
.s-say1 .pc-me, .s-say2 .pc-agent { opacity: 1; transform: none; }
.is-narrow .pub-chat { font-size: 13px; gap: 8px; }

/* Sagas sandbox */
.sandbox {
  padding: 18px; border-radius: 28px;
  background: var(--tile); border: 1px solid var(--tile-line);
  color: var(--night-text);
}
.s-saga [data-el="sandbox"] {
  border-color: rgba(245, 165, 36, .8);
  box-shadow: 0 0 0 8px rgba(245, 165, 36, .12), 0 0 70px rgba(245, 165, 36, .2);
}
.sb-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.sb-head .avatar { font-size: 18px; }
.sb-head b { display: block; font-size: 17px; letter-spacing: -.02em; }
.sb-head p span { display: block; font-size: 12.5px; color: #86868b; }
.sb-file {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  margin-top: 8px; padding: 12px; border-radius: 16px;
  background: #2c2c2e;
  opacity: 0; transform: translateY(-30px) scale(.94);
  transition: opacity .5s var(--ease), transform .7s var(--spring);
}
.s-file1 .sb-file[data-n="1"],
.s-file2 .sb-file[data-n="2"],
.s-file3 .sb-file[data-n="3"] { opacity: 1; transform: none; }
.s-chips .sb-file[data-n="3"] { opacity: .5; }
.sb-thumb { display: block; width: 56px; height: 42px; overflow: hidden; border-radius: 9px; }
.sb-thumb svg { display: block; width: 100%; height: 100%; }
.thumb-pie { background: linear-gradient(135deg, #f7c6d2, #d9607f); }
.thumb-photo { background: linear-gradient(180deg, #8ec9f5, #fbe2c4 70%, #cdb98f); }
.sb-file b { display: block; font-size: 14px; line-height: 1.25; }
.sb-file p span { display: block; font-size: 12px; color: #86868b; }
.sb-chip {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 700;
  opacity: 0; transform: scale(.6);
  transition: opacity .35s var(--ease), transform .5s var(--spring);
}
.sb-chip .icon { font-size: 10px; }
.s-chips .sb-chip { opacity: 1; transform: none; }
.s-chips .sb-file[data-n="2"] .sb-chip { transition-delay: .12s; }
.s-chips .sb-file[data-n="3"] .sb-chip { transition-delay: .24s; }
.chip-paid { background: rgba(245, 165, 36, .18); color: var(--amber); }
.chip-free { background: rgba(47, 191, 113, .18); color: #4cd68a; }
.chip-private { background: #3a3a3c; color: #aeaeb2; }

/* Paket som rör sig längs ledningarna */
.packet { position: absolute; left: 0; top: 0; pointer-events: none; will-change: transform, opacity; }
.packet-tag {
  width: 30px; height: 12px; border-radius: 6px;
  background: var(--amber);
  box-shadow: 0 0 18px rgba(245, 165, 36, .7);
}
.packet-dot { width: 9px; height: 9px; border-radius: 50%; background: #8e8e93; }
.packet-query {
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: #fff; color: var(--ink);
  box-shadow: 0 0 18px rgba(255, 255, 255, .55);
}
.packet-query svg { width: 13px; height: 13px; }
.packet-ask { width: 28px; height: 16px; border-radius: 8px 8px 8px 3px; background: #0a84ff; box-shadow: 0 0 18px rgba(10, 132, 255, .7); }
.packet-reject { width: 30px; height: 12px; border-radius: 6px; background: #48484a; }
.packet-content {
  overflow: hidden; width: 46px; height: 32px; border-radius: 8px;
  box-shadow: 0 0 0 2px #fff, 0 0 28px rgba(245, 165, 36, .6);
}
.packet-content svg { display: block; width: 100%; height: 100%; }
.packet-heart { width: 22px; height: 22px; color: var(--rose); filter: drop-shadow(0 0 10px rgba(242, 92, 122, .8)); }
.packet-heart svg { display: block; width: 100%; height: 100%; fill: currentColor; }

/* Telefonen */
.phone {
  padding: 9px;
  border-radius: 54px;
  background: linear-gradient(150deg, #4a4a4e 0%, #1c1c1e 35%, #2c2c2e 70%, #48484a 100%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .14), 0 40px 80px rgba(0, 0, 0, .6);
}
.screen {
  position: relative; height: 100%; overflow: hidden;
  border-radius: 45px;
  background: #000; color: var(--ink);
  font-size: 12.5px; line-height: 1.35; letter-spacing: -.01em;
}
.island {
  position: absolute; z-index: 9; top: 10px; left: 50%;
  width: 82px; height: 24px; margin-left: -41px; border-radius: 12px;
  background: #000;
}
.status {
  display: flex; justify-content: space-between; align-items: center;
  height: 44px; padding: 4px 26px 0 30px;
  background: #000; color: #fff;
  font-size: 13px; font-weight: 600;
}
.battery {
  width: 23px; height: 11px; padding: 1.5px;
  border: 1.5px solid rgba(255, 255, 255, .5); border-radius: 3.5px;
}
.battery i { display: block; width: 72%; height: 100%; border-radius: 1.5px; background: #fff; }

/* Utgåvan: agenten formger en sida, inte en lista */
.edition { min-height: calc(100% - 44px); background: #fff; }
.ed-mast { padding: 0 16px 11px; background: #000; color: var(--night-text); text-align: center; }
.ed-date { font-size: 10.5px; font-weight: 600; color: #8e8e93; }
.ed-hello { margin-top: 2px; font-size: 25px; font-weight: 700; line-height: 1.1; letter-spacing: -.035em; }
.ed-intro { display: grid; min-height: 26px; margin-top: 4px; font-size: 11px; line-height: 1.3; color: #a1a1a6; }
.ed-intro span { grid-area: 1 / 1; transition: opacity .4s var(--ease); }
.ed-done { opacity: 0; }
.s-feed .ed-wait { opacity: 0; }
.s-feed .ed-done { opacity: 1; }
.rules { display: flex; justify-content: center; gap: 6px; min-height: 21px; margin-top: 6px; }
.rules span {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 999px;
  background: #1c1c1e; color: var(--night-text); box-shadow: inset 0 0 0 1px #2c2c2e;
  font-size: 10.5px; font-weight: 600;
  opacity: 0; transform: scale(.6);
  transition: background-color .5s var(--ease), color .5s var(--ease), opacity .3s var(--ease), transform .5s var(--spring);
}
.rules .icon { font-size: 9px; }
.s-rules .rules span { opacity: 1; transform: none; }
.s-rules .rules span + span { transition-delay: .1s; }
.s-gather .rules span { background: #fff; color: var(--ink); }

.ed-body { display: grid; padding: 10px 14px; }
.ed-skel, .ed-content { grid-area: 1 / 1; min-width: 0; }
.ed-skel { transition: opacity .4s var(--ease); }
.ed-skel i { display: block; border-radius: 6px; background: #efeff2; }
.ed-skel .sk-big { height: 84px; border-radius: 14px; margin-top: 18px; }
.ed-skel .sk-line { height: 10px; margin-top: 10px; }
.ed-skel .sk-short { width: 55%; }
.sk-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
.sk-row i { height: 84px; border-radius: 12px; }
.s-gather .ed-skel i {
  background: linear-gradient(90deg, #efeff2 0%, #fafafc 50%, #efeff2 100%);
  background-size: 200% 100%;
  animation: shimmer 1.2s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }
.s-feed .ed-skel { opacity: 0; }

/* Blocken läggs ut ett i taget när agenten är klar */
.ed-in {
  opacity: 0; transform: translateY(12px);
  transition: opacity .5s var(--ease) calc(var(--d) * .18s + .1s), transform .6s var(--spring) calc(var(--d) * .18s + .1s);
}
.s-feed .ed-in { opacity: 1; transform: none; }
.ed-kick { margin-bottom: 5px; font-size: 10.5px; font-weight: 700; color: #b26a00; }
.card-thumb { position: relative; height: 84px; overflow: hidden; border-radius: 14px; }
.card-thumb > svg {
  display: block; width: 100%; height: 100%;
  filter: blur(7px) saturate(.7); transform: scale(1.2);
  transition: filter .9s var(--ease), transform .9s var(--ease);
}
.s-delivered .card-thumb > svg { filter: none; transform: none; }
.card-lock {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 11px 5px 9px; border-radius: 999px;
  background: rgba(0, 0, 0, .55); color: #fff; font-size: 12px; font-weight: 600;
  transition: opacity .4s var(--ease);
}
.s-delivered .card-lock { opacity: 0; }
.verified {
  position: absolute; left: 8px; bottom: 8px;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px 3px 6px; border-radius: 999px;
  background: rgba(255, 255, 255, .92); color: #1d7f49;
  font-size: 10.5px; font-weight: 600;
  opacity: 0; transform: scale(.7); transform-origin: left bottom;
  transition: opacity .4s var(--ease), transform .5s var(--spring);
}
.s-verified .verified { opacity: 1; transform: none; }
.ed-title { margin-top: 7px; font-size: 16px; font-weight: 700; line-height: 1.15; letter-spacing: -.02em; }
.ed-by { display: flex; align-items: center; gap: 5px; margin-top: 4px; font-size: 11px; font-weight: 600; }
.ed-by .avatar { font-size: 7.5px; }
.ed-by .faces .avatar { font-size: 6.5px; --ring: #fff; }
.ed-why { margin-left: auto; font-weight: 500; color: #86868b; }
.ed-sec { margin-top: 10px; padding-top: 8px; border-top: 1px solid #e8e8ed; font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.ed-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.ed-tile { position: relative; min-width: 0; padding: 6px 6px 8px; border-radius: 12px; background: var(--mist); }
.tile-thumb { display: block; height: 40px; border-radius: 8px; }
.thumb-anchor { background: linear-gradient(180deg, #a9d2f0 0 52%, #3a7db3 52% 100%); position: relative; }
.thumb-anchor::after {
  content: ""; position: absolute; left: 50%; top: 10px; width: 14px; height: 18px; margin-left: -7px;
  border: 2.5px solid #fff; border-top: 0; border-radius: 0 0 9px 9px;
}
.thumb-boat { background: linear-gradient(180deg, #d9e6ef 0 60%, #7a8d9c 60% 100%); position: relative; }
.thumb-boat::after {
  content: ""; position: absolute; left: 50%; bottom: 12px; width: 22px; height: 18px; margin-left: -10px;
  background: #fff; clip-path: polygon(0 100%, 45% 0, 45% 100%, 100% 100%, 52% 20%, 52% 100%);
}
.ed-t { margin-top: 6px; font-size: 11.5px; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
.ed-tile .ed-by { margin-top: 3px; font-size: 10px; }
.heart {
  position: absolute; right: 8px; top: 8px;
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: rgba(255, 255, 255, .9); color: #8e8e93;
}
.heart .icon { font-size: 14px; }
.heart .h-fill {
  position: absolute; left: 5px; top: 5px; color: var(--rose);
  opacity: 0; transform: scale(.3);
  transition: opacity .2s var(--ease), transform .5s var(--spring);
}
.s-liked .heart .h-fill { opacity: 1; transform: none; }
.hidden-note {
  display: flex; align-items: center; gap: 6px;
  margin-top: 8px; font-size: 10.5px; color: #86868b;
}
.ed-end {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  margin-top: 8px; padding: 7px; border-radius: 10px; background: var(--mist);
  font-size: 11px; font-weight: 600; color: var(--graphite);
}
.ed-end .icon { color: var(--leaf); }

.ask {
  position: absolute; z-index: 5; left: 10px; right: 10px; bottom: 14px;
  display: grid; grid-template-columns: 16px 1fr 30px; gap: 8px; align-items: center;
  padding: 7px 7px 7px 12px; border-radius: 22px;
  background: #f2f2f7;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .14), 0 0 0 .5px rgba(0, 0, 0, .06);
  transform: translateY(160%);
  transition: transform .6s var(--spring);
}
.s-ask .ask { transform: none; }
.ask-icon { font-size: 14px; color: var(--ink); }
.ask-text { display: grid; font-size: 12.5px; line-height: 1.25; }
.ask-text span { grid-area: 1 / 1; transition: opacity .3s var(--ease); }
.ask-placeholder { color: #8e8e93; }
.ask-typed { color: var(--ink); font-weight: 600; opacity: 0; }
.s-typed .ask-placeholder { opacity: 0; }
.s-typed .ask-typed { opacity: 1; }
.ask-send {
  position: relative; display: grid; place-items: center; overflow: hidden;
  width: 30px; height: 30px; border-radius: 50%;
  background: #0a84ff; color: #fff; font-size: 15px;
}
.ask-send .tap { background: rgba(255, 255, 255, .45); }
.s-tapsend .ask-send .tap { animation: tap .65s var(--ease); }

.banner {
  position: absolute; z-index: 6; left: 8px; right: 8px; top: 46px;
  display: grid; grid-template-columns: 32px 1fr; gap: 10px; align-items: center;
  padding: 10px 12px; border-radius: 20px;
  background: #f2f2f7;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .18), 0 0 0 .5px rgba(0, 0, 0, .08);
  transform: translateY(-150%);
  transition: transform .7s var(--spring);
}
.s-learned .banner { transform: none; }
.banner-icon {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px;
  background: #000; color: #fff; font-size: 16px;
}
.banner-top { display: flex; justify-content: space-between; }
.banner-top span { color: #86868b; }

.scrim {
  position: absolute; z-index: 7; inset: 0;
  background: rgba(0, 0, 0, .3); opacity: 0;
  transition: opacity .5s var(--ease);
}
.s-sheet .scrim, .s-fsheet .scrim { opacity: 1; }
.sheet {
  position: absolute; z-index: 8; left: 7px; right: 7px; bottom: 7px;
  padding: 8px 18px 18px; border-radius: 38px;
  background: #fff;
  transform: translateY(112%);
  transition: transform .7s var(--spring);
}
.s-sheet .sheet-buy, .s-fsheet .sheet-follow { transform: none; }

.sheet-follow .sheet-title { margin-bottom: 6px; }
.follow-row {
  display: grid; grid-template-columns: 38px 1fr auto; gap: 10px; align-items: center;
  padding: 10px 0; border-top: 1px solid #ececf0;
}
.follow-row > .avatar { font-size: 16px; }
.follow-row .faces { --ring: #fff; }
.follow-row .faces .avatar { font-size: 8px; }
.follow-row b { display: block; font-size: 13.5px; }
.follow-row p span { font-size: 11.5px; color: var(--graphite); }
.follow-btn {
  position: relative; display: grid; place-items: center;
  min-width: 76px; height: 30px; padding: 0 12px; overflow: hidden; border-radius: 999px;
  background: #0a84ff; color: #fff; font-size: 13px; font-weight: 600;
  transition: background-color .35s var(--ease), color .35s var(--ease);
}
.s-f1 .follow-btn[data-n="1"],
.s-f2 .follow-btn[data-n="2"] { background: #e8e8ed; color: var(--ink); }
.sheet-note { display: flex; align-items: center; gap: 5px; margin-top: 10px; font-size: 11px; color: #86868b; }
.grabber { display: block; width: 36px; height: 5px; margin: 0 auto 12px; border-radius: 3px; background: #d1d1d6; }
.sheet-from { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--graphite); }
.sheet-from .avatar { font-size: 8px; }
.sheet-title { margin: 4px 0 12px; font-size: 19px; font-weight: 700; line-height: 1.15; letter-spacing: -.02em; }
.sheet-row { display: flex; justify-content: space-between; padding: 7px 0; border-top: 1px solid #ececf0; }
.sheet-row span { color: var(--graphite); }
.sheet-bar { display: block; height: 5px; margin: -1px 0 8px; overflow: hidden; border-radius: 3px; background: #e8e8ed; }
.sheet-bar i { display: block; width: 80%; height: 100%; border-radius: 3px; background: var(--ink); }
.sheet-btn {
  position: relative; display: grid; place-items: center;
  height: 46px; margin-top: 12px; overflow: hidden; border-radius: 15px;
  background: #000; color: #fff; font-size: 15px; font-weight: 600;
  transition: background-color .4s var(--ease);
}
.sheet-btn > span:not(.tap),
.follow-btn > span:not(.tap) {
  grid-area: 1 / 1; display: inline-flex; align-items: center; gap: 5px;
  transition: opacity .3s var(--ease), transform .45s var(--spring);
}
.btn-done { opacity: 0; transform: scale(.8); }
.s-approved .sheet-btn { background: var(--leaf); }
.s-approved .sheet-btn .btn-idle,
.s-f1 .follow-btn[data-n="1"] .btn-idle,
.s-f2 .follow-btn[data-n="2"] .btn-idle { opacity: 0; transform: scale(.8); }
.s-approved .sheet-btn .btn-done,
.s-f1 .follow-btn[data-n="1"] .btn-done,
.s-f2 .follow-btn[data-n="2"] .btn-done { opacity: 1; transform: none; }
.tap {
  position: absolute; left: 50%; top: 50%;
  width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%;
  background: rgba(255, 255, 255, .4); opacity: 0; pointer-events: none;
}
.follow-btn .tap, .heart .tap { background: rgba(10, 132, 255, .3); }
.heart .tap { background: rgba(242, 92, 122, .35); }
.s-tap .sheet-btn .tap,
.s-tapf1 .follow-btn[data-n="1"] .tap,
.s-tapf2 .follow-btn[data-n="2"] .tap,
.s-taph .heart .tap { animation: tap .65s var(--ease); }
@keyframes tap {
  0% { opacity: 0; transform: scale(.4); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: scale(2.4); }
}

/* Smal layout för berättelsen */
.is-narrow .node { border-radius: 22px; }
.is-narrow .node-agent .icon { font-size: 30px; }
.is-narrow .idx { width: 34px; gap: 6px; }
.is-narrow .idx i:not(.idx-new) { height: 4px; }
.is-narrow .idx .idx-new { margin-bottom: -6px; }
.is-narrow.s-listed .idx .idx-new { height: 4px; margin-bottom: 0; }
.is-narrow .node-label { top: calc(100% + 8px); font-size: 12px; }
.is-narrow .st { padding: 5px 10px; font-size: 11.5px; gap: 5px; }
.is-narrow .st .icon { font-size: 11px; }
.is-narrow .sandbox { padding: 12px 12px 10px; border-radius: 22px; }
.is-narrow .sb-head { gap: 8px; margin-bottom: 6px; }
.is-narrow .sb-head .avatar { font-size: 12px; }
.is-narrow .sb-head b { font-size: 14px; }
.is-narrow .sb-head p span { display: none; }
.is-narrow .sb-file { grid-template-columns: 34px minmax(0, 1fr) auto; gap: 8px; margin-top: 5px; padding: 5px 6px; border-radius: 11px; }
.is-narrow .sb-thumb { width: 34px; height: 24px; border-radius: 6px; }
.is-narrow .sb-file b { font-size: 12px; }
.is-narrow .sb-file p span { display: none; }
.is-narrow .sb-chip { padding: 2px 8px; font-size: 11px; }

/* Bildtext och kontroller */
.caption {
  flex: none;
  max-width: 640px; min-height: 132px;
  margin: 22px auto 0;
  padding-inline: 8px;
  transition: opacity .22s var(--ease);
}
.caption.is-swapping { opacity: 0; }
.caption-title { font-size: clamp(28px, 3.4vw, 44px); font-weight: 700; line-height: 1.05; letter-spacing: -.035em; }
.caption-text { margin-top: 10px; font-size: clamp(16px, 1.5vw, 20px); line-height: 1.4; color: var(--night-muted); }

.controls { flex: none; display: flex; justify-content: center; align-items: center; margin-top: 4px; }
.steps { display: flex; gap: 4px; }
.steps button {
  display: flex; flex-direction: column; align-items: stretch; gap: 8px;
  min-width: 64px; padding: 10px 8px;
  border: 0; border-radius: 10px; background: none;
  font-size: 14px; font-weight: 600; color: #86868b;
  cursor: pointer; transition: color .3s;
}
.steps button:hover, .steps button[aria-current] { color: var(--night-text); }
.track { display: block; height: 3px; overflow: hidden; border-radius: 2px; background: #333336; }
.fill { display: block; height: 100%; background: var(--night-text); transform: scaleX(0); transform-origin: left; }

/* ---------- Ståndpunkt ---------- */

.statement { padding: clamp(100px, 14vw, 180px) 0 clamp(56px, 7vw, 96px); }
.statement-title {
  width: var(--wrap); max-width: 920px; margin-inline: auto;
  font-size: clamp(30px, 4.4vw, 56px);
  line-height: 1.1; font-weight: 700; letter-spacing: -.03em;
  text-align: center;
}

/* I dag jämfört med sharectl */
.compare { width: var(--wrap); max-width: 920px; margin: clamp(48px, 6vw, 80px) auto 0; }
.compare-head, .compare-row { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.compare-head { padding-bottom: 14px; font-size: 17px; font-weight: 600; color: var(--graphite); }
.compare-head span:last-child { color: var(--ink); }
.compare-row {
  padding: 22px 0; border-top: 1px solid rgba(0, 0, 0, .1);
  font-size: clamp(18px, 2vw, 26px); line-height: 1.25; font-weight: 600; letter-spacing: -.02em;
}
.compare-row span:first-child { color: #a1a1a6; }

/* Inte ett flöde, en utgåva */
.edition-show { padding: clamp(40px, 6vw, 80px) 0 clamp(72px, 9vw, 120px); }
.es-head { width: var(--wrap); margin-inline: auto; text-align: center; }
.es-head h2 { font-size: clamp(40px, 6vw, 80px); line-height: 1.02; font-weight: 700; letter-spacing: -.045em; }
.es-head p { max-width: 32em; margin: 18px auto 0; font-size: clamp(19px, 1.8vw, 24px); line-height: 1.35; color: var(--graphite); text-wrap: balance; }
.browser {
  width: var(--wrap-mid); margin: clamp(48px, 6vw, 72px) auto 0; overflow: hidden;
  border-radius: 18px; border: 1px solid #d2d2d7; background: var(--paper);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .12);
}
.ex { position: relative; }
html.js .browser.is-collapsed .ex { max-height: var(--cut, 1480px); overflow: hidden; }
html.js .browser.is-collapsed .ex::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 240px;
  background: linear-gradient(rgba(255, 255, 255, 0), #fff 85%); pointer-events: none;
}
.es-more { display: none; justify-content: center; margin-top: 28px; }
html.js .es-more { display: flex; }
.es-toggle {
  padding: 12px 24px; border: 0; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: 17px; font-weight: 600; cursor: pointer;
  transition: background-color .2s;
}
.es-toggle:hover { background: #000; }
.es-preview { position: relative; height: clamp(520px, 64vw, 860px); overflow: hidden; background: var(--paper); }
.es-preview iframe { position: absolute; left: 0; top: 0; border: 0; transform-origin: 0 0; pointer-events: none; }
.es-preview::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 200px;
  background: linear-gradient(rgba(255, 255, 255, 0), #fff 80%); pointer-events: none;
}
.es-open { position: absolute; inset: 0; z-index: 2; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 32px; }
.es-open span {
  padding: 12px 24px; border-radius: 999px; background: var(--ink); color: #fff;
  font-size: 17px; font-weight: 600; transition: background-color .2s, transform .2s var(--ease);
}
.es-open:hover span { background: #000; transform: scale(1.03); }
.es-note { width: var(--wrap); max-width: 640px; margin: 20px auto 0; text-align: center; font-size: 14px; color: var(--graphite); text-wrap: balance; }
.browser-bar {
  position: relative; display: flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 14px; background: var(--mist); border-bottom: 1px solid #e5e5ea;
}
.browser-bar i { width: 11px; height: 11px; border-radius: 50%; background: #d1d1d6; }
.browser-bar span { position: absolute; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 12.5px; font-weight: 600; color: var(--graphite); }

.ex-mast { padding: clamp(36px, 5vw, 64px) 24px; background: var(--night); color: var(--night-text); text-align: center; }
.ex-date { font-size: 14px; font-weight: 600; color: var(--night-muted); }
.ex-hello { margin-top: 10px; font-size: clamp(40px, 6vw, 76px); font-weight: 700; line-height: 1; letter-spacing: -.045em; }
.ex-intro { max-width: 36em; margin: 18px auto 0; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.45; color: var(--night-muted); text-wrap: balance; }
.ex-rules { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; }
.ex-rules span { padding: 5px 13px; border-radius: 999px; background: #1c1c1e; box-shadow: inset 0 0 0 1px #2c2c2e; font-size: 13px; font-weight: 600; }

.ex-body { padding: clamp(20px, 4vw, 48px); }
.ex-by { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.ex-by .avatar { font-size: 11px; }
.ex-by .faces .avatar { font-size: 9px; --ring: var(--paper); }
.ex-why {
  display: flex; align-items: baseline; gap: 8px; margin-top: 12px;
  padding: 9px 12px; border-radius: 11px; background: var(--mist);
  font-size: 13.5px; line-height: 1.35; color: var(--graphite);
}
.ex-why i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--c); transform: translateY(-1px); }

.ex-lead {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(20px, 3.5vw, 44px); align-items: center;
  padding-bottom: clamp(28px, 4vw, 48px); border-bottom: 1px solid #e5e5ea;
}
.ex-lead-img { overflow: hidden; aspect-ratio: 16 / 10; border-radius: 18px; }
.ex-lead-img svg { display: block; width: 100%; height: 100%; }
.ex-kick { margin-bottom: 12px; font-size: 14px; font-weight: 700; color: #b26a00; }
.ex-price { margin-left: auto; padding: 3px 10px; border-radius: 999px; background: var(--mist); font-size: 13px; }
.ex-title { margin: 12px 0 10px; font-size: clamp(26px, 3vw, 40px); line-height: 1.06; font-weight: 700; letter-spacing: -.035em; }
.ex-dek { font-size: 17px; line-height: 1.45; color: var(--graphite); }

.ex-sec { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; margin: clamp(32px, 4vw, 48px) 0 18px; }
.ex-sec h3 { font-size: clamp(30px, 3.4vw, 44px); font-weight: 700; letter-spacing: -.035em; line-height: 1; }
.ex-sec p { font-size: 17px; color: var(--graphite); }
.ex-av { overflow: hidden; }
.ex-av img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ex-src { margin-left: auto; font-size: 13px; font-weight: 500; color: var(--graphite); }
.ex-lead-img { display: block; aspect-ratio: auto; max-height: 560px; background: var(--mist); }
.ex-lead-img img { display: block; width: 100%; height: 100%; max-height: 560px; object-fit: cover; object-position: top; }

/* Video: ett mörkt kort med bild och text sida vid sida */
.ex-vid {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 36px); align-items: center;
  padding: clamp(14px, 2vw, 22px); border-radius: 24px; background: var(--night); color: var(--night-text);
}
.ex-square { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.ex-media { overflow: hidden; border-radius: 14px; background: #111; }
.ex-media video { display: block; width: 100%; height: auto; max-height: 520px; object-fit: contain; background: #000; }
.ex-square .ex-media video { aspect-ratio: 1; object-fit: cover; }
.ex-vtext { display: flex; flex-direction: column; gap: 12px; padding-right: 8px; }
.ex-vtext .ex-kick { margin: 0; color: var(--c); }
.ex-vtext h4 { font-size: clamp(22px, 2.3vw, 30px); line-height: 1.12; font-weight: 700; letter-spacing: -.025em; }
.ex-vtext .ex-why { margin-top: 4px; background: #1c1c1e; color: var(--night-muted); }

.ex-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 18px; align-items: start; }
.ex-card { display: flex; flex-direction: column; gap: 12px; }
.ex-ptext { font-size: 20px; line-height: 1.3; font-weight: 600; letter-spacing: -.015em; }
.ex-img { display: block; overflow: hidden; border-radius: 16px; background: var(--mist); }
.ex-img img { display: block; width: 100%; height: auto; max-height: 360px; object-fit: cover; }
.ex-card .ex-why { margin-top: 0; }
.ex-quote { display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: 22px; background: var(--night); color: var(--night-text); }
.ex-q { font-size: 20px; line-height: 1.3; font-weight: 600; letter-spacing: -.015em; }
.ex-q::before { content: "“"; display: block; height: 28px; font-size: 54px; line-height: 1; color: var(--c); }
.ex-quote .ex-why { margin-top: 0; background: #1c1c1e; color: var(--night-muted); }
.ex-post { display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: 22px; background: var(--mist); }
.ex-post .ex-why { margin-top: 0; background: var(--paper); }
.ex-list { display: grid; gap: 8px; font-size: 17px; font-weight: 600; }
.ex-list li { padding-left: 16px; position: relative; }
.ex-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
/* Påhittade bilder i exempelutgåvan, ritade i CSS */
.ex-lead-ill { aspect-ratio: 16 / 11; border-radius: 18px; overflow: hidden; }
.ex-lead-ill svg { display: block; width: 100%; height: 100%; }
.ex-media { position: relative; }
.ex-badge {
  position: absolute; left: 12px; top: 12px; padding: 4px 10px; border-radius: 999px;
  background: rgba(0, 0, 0, .5); color: #fff; font-size: 12px; font-weight: 600;
}
.ill-sail { aspect-ratio: 1; background: linear-gradient(180deg, #8fc3ea 0%, #d7e9f6 52%, #2f6f9f 52.5%, #163f62 100%); }
.ill-boat {
  position: absolute; left: 50%; top: 22%; width: 30%; height: 36%; margin-left: -15%;
  transform-origin: 50% 100%; animation: rock 3.4s ease-in-out infinite;
}
.ill-boat::before {
  content: ""; position: absolute; inset: 0 0 16% 0; background: #fff;
  clip-path: polygon(6% 100%, 46% 0, 46% 100%, 100% 100%, 54% 14%, 54% 100%);
}
.ill-boat::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 16%; background: #1d1d1f;
  clip-path: polygon(0 0, 100% 0, 86% 100%, 10% 100%);
}
.ill-wave {
  position: absolute; left: 12%; width: 76%; top: 63%; height: 2px; border-radius: 2px;
  background: rgba(255, 255, 255, .4); animation: drift 4s ease-in-out infinite alternate;
}
.ill-wave-2 { left: 28%; width: 44%; top: 72%; opacity: .6; animation-duration: 5.5s; }
@keyframes rock { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg) translateY(3%); } }
@keyframes drift { from { transform: translateX(-8%); } to { transform: translateX(8%); } }

.ill-train { aspect-ratio: 16 / 9; background: linear-gradient(180deg, #0b1a33 0%, #203a63 62%, #0e1b2e 100%); }
.ill-train::before {
  content: ""; position: absolute; right: 14%; top: 14%; width: 9%; aspect-ratio: 1; border-radius: 50%;
  background: #f4e7c5; box-shadow: 0 0 40px rgba(244, 231, 197, .5);
}
.ill-mountains {
  position: absolute; left: 0; right: 0; bottom: 24%; height: 46%; background: #13233d;
  clip-path: polygon(0 100%, 0 55%, 14% 22%, 28% 60%, 42% 8%, 58% 55%, 72% 28%, 86% 62%, 100% 34%, 100% 100%);
}
.ill-carriages { position: absolute; left: 6%; right: 6%; bottom: 12%; height: 15%; display: flex; gap: 1.5%; }
.ill-carriages i {
  flex: 1; border-radius: 6px; background-color: #1d2b44; box-shadow: inset 0 0 0 2px #2c3f60;
  background-image: repeating-linear-gradient(90deg, transparent 0 8%, #ffcf6b 8% 20%, transparent 20% 26%);
  background-size: 100% 38%; background-position: center 34%; background-repeat: no-repeat;
}

.ex-img.ill-winter, .ex-img.ill-buns { display: block; aspect-ratio: 16 / 9; position: relative; }
.ill-winter { background: linear-gradient(180deg, #e6eef4 0 64%, #c9d4dc 64% 100%); }
.ill-winter::before {
  content: ""; position: absolute; left: 26%; width: 48%; bottom: 30%; height: 34%; background: #7d93a6;
  clip-path: polygon(0 100%, 50% 0, 100% 100%);
}
.ill-winter::after {
  content: ""; position: absolute; left: 22%; width: 56%; bottom: 20%; height: 12%; background: #1d1d1f;
  clip-path: polygon(0 0, 100% 0, 88% 100%, 8% 100%);
}
.ill-buns { display: flex !important; align-items: center; justify-content: center; gap: 6%; background: #f3e3cc; }
.ill-buns i {
  display: block; width: 22%; aspect-ratio: 1; border-radius: 50%;
  background: repeating-radial-gradient(circle at 50% 50%, #b9773e 0 7%, #e0a96d 7% 14%);
  box-shadow: 0 8px 16px rgba(120, 70, 20, .22);
}
.ex-solo { max-width: 640px; }
.ex-skipped { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 760px; margin: 22px auto 0; }
.ex-skipped li { padding: 5px 12px; border-radius: 999px; background: #1c1c1e; box-shadow: inset 0 0 0 1px #2c2c2e; font-size: 13px; color: var(--night-muted); }
.ex-end { padding: clamp(36px, 5vw, 56px) 24px; background: var(--night); color: var(--night-text); text-align: center; }
.ex-end p:first-child { font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; letter-spacing: -.025em; }
.ex-end p + p { margin-top: 6px; font-size: 16px; color: var(--night-muted); }

/* Två halvor */
.halves { padding: clamp(40px, 6vw, 80px) 0 clamp(96px, 12vw, 160px); }
.halves-head { width: var(--wrap); margin-inline: auto; text-align: center; }
.halves-head h2 { font-size: clamp(40px, 6vw, 80px); line-height: 1.02; font-weight: 700; letter-spacing: -.045em; }
.halves-head p { max-width: 30em; margin: 18px auto 0; font-size: clamp(19px, 1.8vw, 24px); line-height: 1.35; color: var(--graphite); }
.halves-grid {
  width: var(--wrap-mid); margin: clamp(48px, 6vw, 72px) auto 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px;
}
.half { display: flex; flex-direction: column; padding: clamp(28px, 4vw, 48px); border-radius: 32px; scroll-margin-top: 64px; }
.half-reader { background: var(--night); color: var(--night-text); }
.half-creator { background: var(--mist); }
.half h3 { font-size: 17px; font-weight: 600; color: var(--graphite); }
.half-reader h3 { color: var(--night-muted); }
.half-lead { margin-top: 12px; font-size: clamp(28px, 3vw, 40px); line-height: 1.08; font-weight: 700; letter-spacing: -.035em; }
.half-visual { margin-top: auto; padding-top: 36px; }
.rules-demo { display: flex; flex-wrap: wrap; gap: 8px; }
.rules-demo span { padding: 6px 13px; border-radius: 999px; background: #2c2c2e; font-size: 14px; font-weight: 600; }
.why-mini { margin-top: 14px; padding: 16px 18px; border-radius: 18px; background: #1c1c1e; font-size: 16px; line-height: 1.4; }
.why-mini-q { margin-bottom: 4px; font-size: 14px; font-weight: 600; color: var(--link-night); }
.half-list { display: grid; gap: 10px; margin-top: 24px; font-size: 17px; }
.half-list li { display: flex; gap: 10px; align-items: baseline; }
.half-list .icon { flex: none; font-size: 14px; color: var(--leaf); transform: translateY(2px); }
.receipt {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 14px 18px; border-radius: 18px; background: var(--paper);
}
.receipt .avatar { font-size: 15px; }
.receipt b { display: block; font-size: 15px; }
.receipt p span { font-size: 13px; color: var(--graphite); }
.receipt-sum { font-size: 20px; color: #1d7f49; letter-spacing: -.02em; }

/* Byt agent, behåll flödet */
.portable { background: var(--paper); }
.portable h2 { margin-top: 0; }
.keep-list li {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 14px 0; border-top: 1px solid rgba(0, 0, 0, .08); font-size: 17px;
}
.keep-list b { font-size: 22px; letter-spacing: -.02em; }
.keep-label { margin: 22px 0 8px; font-size: 14px; font-weight: 600; color: var(--graphite); }
.panel .agent-seg { display: flex; }
.agent-seg button { flex: 1; padding: 7px 10px; font-size: 14px; }

/* ---------- Kapitel ---------- */

.chapter { padding: clamp(88px, 11vw, 150px) 0; }
.tone-mist { background: var(--mist); }
.chapter-grid {
  width: var(--wrap-mid); margin-inline: auto;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 6vw, 96px); align-items: center;
}
.chapter.flip .chapter-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.chapter.flip .chapter-copy { order: 2; }
.step { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; color: var(--graphite); }
.step-n {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--ink); color: #fff; font-size: 14px; font-weight: 700;
}
.chapter h2, .under h2 {
  margin-top: 20px;
  font-size: clamp(40px, 5.2vw, 68px);
  line-height: 1.02; font-weight: 700; letter-spacing: -.04em;
}
.body {
  max-width: 32em; margin-top: 24px;
  font-size: clamp(17px, 1.5vw, 21px); line-height: 1.45;
  color: var(--graphite);
}

.panel {
  --panel: var(--mist);
  --inset: var(--paper);
  padding: clamp(20px, 3vw, 32px);
  border-radius: 30px;
  background: var(--panel);
}
.tone-mist .panel { --panel: var(--paper); --inset: var(--mist); }
.panel-note { display: flex; align-items: center; gap: 6px; margin-top: 18px; font-size: 14px; color: var(--graphite); }

.panel-head { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; }
.panel-head .avatar { font-size: 17px; }
.panel-title { font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.panel-sub { font-size: 14px; color: var(--graphite); }
.follows .panel-head { justify-content: space-between; align-items: baseline; }

/* 1 Följ */
.follows-list li {
  display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 12px 0; border-top: 1px solid rgba(0, 0, 0, .08);
}
.follows-list > li > .avatar { font-size: 18px; }
.follows-list .faces { --ring: var(--panel); }
.follows-list .faces .avatar { font-size: 10px; }
.follows-list b { display: block; font-size: 16px; }
.follows-list p span { font-size: 14px; color: var(--graphite); }
.kind { padding: 4px 11px; border-radius: 999px; background: var(--inset); font-size: 13px; font-weight: 600; color: var(--graphite); }
.privacy-row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  margin-top: 6px; padding: 14px 16px; border-radius: 14px; background: var(--inset);
  font-size: 16px;
}
.toggle {
  position: relative; flex: none; width: 51px; height: 31px; padding: 0;
  border: 0; border-radius: 16px; background: rgba(120, 120, 128, .24);
  cursor: pointer; transition: background-color .25s var(--ease);
}
.toggle::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 27px; height: 27px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 5px rgba(0, 0, 0, .22);
  transition: transform .3s var(--spring);
}
.toggle[aria-checked="true"] { background: var(--leaf); }
.toggle[aria-checked="true"]::after { transform: translateX(20px); }
.follows .panel-note { margin-top: 12px; }

/* 2 Filer */
.files-list li {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 0; border-top: 1px solid rgba(0, 0, 0, .08);
}
.ficon {
  display: grid; place-items: center; flex: none;
  width: 34px; height: 40px; border-radius: 7px;
  background: var(--inset); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06);
  font-size: 9px; font-weight: 700; color: var(--graphite); letter-spacing: .02em;
}
.fname {
  flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 16px; font-weight: 600; transition: color .3s;
}
.files-list li:has([data-v="privat"][aria-pressed="true"]) .fname { color: #a1a1a6; }
.seg { display: flex; flex: none; padding: 2px; border-radius: 9px; background: rgba(118, 118, 128, .12); }
.seg button {
  padding: 5px 11px; border: 0; border-radius: 7px; background: none;
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: background-color .25s, box-shadow .25s;
}
.seg button[aria-pressed="true"] { background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 0 0 .5px rgba(0, 0, 0, .04); }

/* 3 Flöde */
.chat { display: grid; gap: 14px; }
.bubble { max-width: 88%; padding: 12px 16px; border-radius: 22px; font-size: 16px; line-height: 1.38; }
.bubble.me { justify-self: end; border-bottom-right-radius: 6px; background: #0a84ff; color: #fff; }
.bubble.agent { justify-self: start; border-bottom-left-radius: 6px; background: var(--inset); }
.agent-name { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; font-size: 13px; font-weight: 600; color: var(--graphite); }
.mini-post { display: flex; align-items: center; gap: 12px; }
.mini-post .avatar { font-size: 16px; }
.mini-post p { flex: 1; min-width: 0; }
.mini-post b { display: block; font-size: 14px; color: var(--graphite); }
.mini-post p span { display: block; font-size: 16px; font-weight: 600; line-height: 1.3; }
.why-card { padding: 16px; border-radius: 18px; border: 1px solid rgba(0, 0, 0, .1); }
.why-q {
  display: flex; align-items: center; gap: 6px;
  margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(0, 0, 0, .08);
  font-size: 14px; font-weight: 600; color: #0066cc;
}
.why-a { margin-top: 4px; font-size: 15px; line-height: 1.4; }
.chat .panel-note { margin-top: 6px; }

/* 4 Gilla */
.like .mini-post { padding: 4px 4px 20px; }
.like-heart { font-size: 26px; color: var(--rose); }
.like-options { display: grid; gap: 8px; }
.like-options button {
  display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 14px 16px; border: 0; border-radius: 16px;
  background: var(--inset); text-align: left; cursor: pointer;
  box-shadow: inset 0 0 0 2px transparent;
  transition: box-shadow .25s var(--ease);
}
.like-options button[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--ink); }
.like-options .icon { font-size: 22px; color: var(--ink); }
.like-options b { display: block; font-size: 16px; }
.like-options small { display: block; font-size: 14px; color: var(--graphite); }
.agents { display: flex; flex-wrap: wrap; gap: 8px; }
.agents li {
  padding: 6px 13px; border-radius: 999px; border: 1px solid rgba(0, 0, 0, .12);
  font-size: 14px; font-weight: 600; color: var(--ink);
}

/* 5 Budget */
.budget-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.budget-sum { font-size: 15px; color: var(--graphite); }
.budget-sum strong { margin-right: 4px; font-size: 28px; color: var(--ink); letter-spacing: -.03em; }
.budget-track {
  display: flex; gap: 3px; height: 14px; margin-top: 14px; overflow: hidden;
  border-radius: 7px; background: rgba(118, 118, 128, .16);
}
.budget-track span { width: var(--w); background: var(--c); transform-origin: left; transition: transform 1s var(--ease); }
.budget-track span:nth-child(2) { transition-delay: .15s; }
.budget-track span:nth-child(3) { transition-delay: .3s; }
html.js .budget:not(.is-in) .budget-track span { transform: scaleX(0); }
.budget-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; font-size: 14px; color: var(--graphite); }
.budget-legend li { display: flex; align-items: center; gap: 6px; }
.budget-legend i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.rules-list { margin-top: 22px; padding: 0 16px; border-radius: 14px; background: var(--inset); }
.rules-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 52px; font-size: 16px; }
.rules-list li + li { border-top: 1px solid rgba(0, 0, 0, .08); }
.switch { position: relative; flex: none; width: 46px; height: 28px; border-radius: 14px; background: var(--leaf); }
.switch::after {
  content: ""; position: absolute; top: 2px; right: 2px;
  width: 24px; height: 24px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, .2);
}
.rule-value { color: var(--graphite); }

/* ---------- Under huven ---------- */

.under { padding: clamp(96px, 12vw, 160px) 0; background: var(--night); color: var(--night-text); }
.under-grid {
  width: var(--wrap-mid); margin-inline: auto;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 6vw, 88px); align-items: center;
}
.under h2 { margin-top: 0; }
.under .body { color: var(--night-muted); }
.commands { margin-top: 36px; }
.commands div { display: grid; grid-template-columns: 84px 1fr; gap: 16px; padding: 13px 0; border-top: 1px solid #2c2c2e; }
.commands dt { font-family: var(--mono); font-size: 15px; color: #fff; }
.commands dd { font-size: 16px; color: var(--night-muted); }

.under-link { display: inline-block; margin-top: 24px; font-size: 17px; color: var(--link-night); }
.under-link:hover { text-decoration: underline; }

.terminal { overflow: hidden; border-radius: 18px; background: #1c1c1e; box-shadow: inset 0 0 0 1px #2c2c2e; }
.term-bar {
  position: relative; display: flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 16px; border-bottom: 1px solid #2c2c2e;
}
.term-bar i { width: 12px; height: 12px; border-radius: 50%; background: #3a3a3c; }
.term-bar span { position: absolute; left: 50%; transform: translateX(-50%); font-size: 13px; font-weight: 600; color: #86868b; }
.term-body {
  margin: 0; padding: 20px 22px 24px;
  font-family: var(--mono); font-size: 13.5px; line-height: 1.7;
  color: #d2d2d7; white-space: pre-wrap; overflow-wrap: break-word;
}
.term-body .p { color: #6e6e73; }
.term-body .c { color: #fff; }
.term-body .o { color: #a1a1a6; }
.term-body .w { color: var(--amber); }

/* ---------- Öppenhet ---------- */

.open { padding: clamp(96px, 12vw, 160px) 0; }
.open-head { width: var(--wrap); margin-inline: auto; text-align: center; }
.open-head h2 { font-size: clamp(40px, 6vw, 80px); line-height: 1.02; font-weight: 700; letter-spacing: -.045em; }
.open-head p {
  max-width: 30em; margin: 20px auto 0;
  font-size: clamp(19px, 1.8vw, 24px); line-height: 1.35; color: var(--graphite);
}
.open-grid {
  width: var(--wrap-mid); margin: clamp(56px, 7vw, 96px) auto 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 48px;
}
.ic { width: 32px; height: 32px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic-fill { fill: var(--ink); stroke: none; }
.open-grid h3 { margin-top: 16px; font-size: 21px; font-weight: 700; letter-spacing: -.02em; }
.open-grid p { margin-top: 8px; color: var(--graphite); }

/* ---------- Avslutning ---------- */

.closing {
  overflow: hidden;
  padding: clamp(110px, 14vw, 200px) 0 clamp(88px, 10vw, 140px);
  background: var(--night); color: var(--night-text); text-align: center;
}
.closing-mark {
  font-size: clamp(84px, 23vw, 330px);
  line-height: .85; font-weight: 700; letter-spacing: -.06em;
}
.closing-title { margin-top: clamp(28px, 4vw, 48px); font-size: clamp(30px, 3.6vw, 48px); font-weight: 700; letter-spacing: -.035em; }
.closing .body { margin: 14px auto 0; max-width: 28em; color: var(--night-muted); text-wrap: balance; }
.closing-link { display: inline-block; margin-top: 28px; font-size: 19px; color: var(--link-night); text-decoration: none; }
.closing-link:hover { text-decoration: underline; }

.foot { background: var(--night); color: #86868b; font-size: 12px; line-height: 1.5; }
.foot-inner {
  width: var(--wrap); margin-inline: auto; padding: 20px 0 32px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px;
  border-top: 1px solid #424245;
}

/* ---------- Den lilla specen ---------- */

.doc-page { background: var(--paper); }
.doc-head { padding: clamp(72px, 10vw, 128px) 16px clamp(56px, 7vw, 88px); background: var(--night); color: var(--night-text); text-align: center; }
.doc-head h1 { font-size: clamp(48px, 8vw, 104px); line-height: 1; font-weight: 700; letter-spacing: -.045em; }
.doc-head p {
  max-width: 34em; margin: 24px auto 0; font-size: clamp(19px, 2vw, 24px); line-height: 1.4;
  font-weight: 600; letter-spacing: -.015em; color: var(--night-muted); text-wrap: balance;
}
.doc { width: min(760px, calc(100% - 32px)); margin: 0 auto; padding: clamp(48px, 7vw, 88px) 0 clamp(72px, 9vw, 120px); }
.doc-promise { padding: 26px 30px; border-radius: 24px; background: var(--ink); color: var(--night-text); }
.doc-promise h2 { font-size: 15px; font-weight: 600; color: var(--night-muted); }
.doc-promise p { margin-top: 8px; font-size: clamp(20px, 2.2vw, 26px); line-height: 1.3; font-weight: 600; letter-spacing: -.02em; }
.doc-sec { margin-top: clamp(48px, 6vw, 72px); }
.doc-sec h2 { display: flex; align-items: center; gap: 14px; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; font-weight: 700; letter-spacing: -.035em; }
.doc-sec h2 .step-n { width: 34px; height: 34px; font-size: 16px; flex: none; }
.doc-sub { margin-top: 6px; padding-left: 48px; font-size: 17px; color: var(--graphite); }
.doc-sec > ul { margin-top: 18px; padding-left: 48px; }
.doc-sec > ul > li { position: relative; padding: 10px 0; border-top: 1px solid rgba(0, 0, 0, .08); font-size: 18px; line-height: 1.5; }
.doc-sec > ul > li::before { content: ""; position: absolute; left: -20px; top: 1.15em; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }
.doc code { padding: 1px 6px; border-radius: 6px; background: var(--mist); font-family: var(--mono); font-size: .86em; }
.doc-link { display: inline-block; margin: 16px 0 0 48px; font-size: 17px; font-weight: 600; color: var(--link); }
.doc-link:hover { text-decoration: underline; }
.doc-sec > ul.doc-needs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding-left: 0; }
.doc-needs li { display: flex; flex-direction: column; gap: 4px; padding: 20px; border-radius: 18px; background: var(--mist); }
.doc-sec > ul.doc-needs > li { border-top: 0; }
.doc-sec > ul.doc-needs > li::before { display: none; }
.doc-needs b { font-size: 20px; letter-spacing: -.02em; }
.doc-needs span { font-size: 15px; color: var(--graphite); }
.doc-order { margin: 18px 0 0; padding-left: 0; list-style: none; counter-reset: step; }
.doc-order li { position: relative; padding: 12px 0 12px 48px; border-top: 1px solid rgba(0, 0, 0, .08); font-size: 18px; line-height: 1.5; counter-increment: step; }
.doc-order li::before {
  content: counter(step); position: absolute; left: 0; top: 12px;
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--mist); font-size: 14px; font-weight: 700;
}
.doc-page .foot { margin-top: 0; }
@media (max-width: 640px) {
  .doc-sub, .doc-sec > ul { padding-left: 24px; }
  .doc-link { margin-left: 24px; }
  .doc-sec > ul.doc-needs { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 404 ---------- */

.nf-page { background: var(--night); }
.nf-page .nav-pill { margin-left: auto; }
.notfound {
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  min-height: calc(100vh - 48px); min-height: calc(100svh - 48px); padding: 64px 16px;
  background: var(--night); color: var(--night-text); text-align: center;
}
.nf-code { font-size: 15px; font-weight: 600; color: var(--night-muted); }
.notfound h1 { margin-top: 12px; font-size: clamp(44px, 8vw, 96px); line-height: 1; font-weight: 700; letter-spacing: -.045em; text-wrap: balance; }
.notfound .body { margin: 20px auto 0; color: var(--night-muted); text-wrap: balance; }

/* ---------- Mindre skärmar ---------- */

@media (max-width: 900px) {
  .open-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ex-lead, .ex-vid, .ex-square, .ex-pair { grid-template-columns: minmax(0, 1fr); }
  .ex-vtext { padding: 0 4px 6px; }
  .halves-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 820px) {
  .chapter-grid, .chapter.flip .chapter-grid, .under-grid { grid-template-columns: minmax(0, 1fr); }
  .chapter.flip .chapter-copy { order: 0; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-pill { margin-left: auto; }
  .open-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .files-list li { flex-wrap: wrap; row-gap: 10px; }
  .files-list .fname { flex-basis: calc(100% - 46px); }
  .files-list .seg { margin-left: 46px; }
  .commands div { grid-template-columns: 70px 1fr; }
  .term-body { padding: 16px 16px 20px; font-size: 12px; }
  .compare-head, .compare-row { gap: 16px; }
  .compare-row { padding: 16px 0; font-size: 16px; }
  .agent-seg button { padding: 7px 6px; font-size: 13px; }
}
@media (max-width: 560px) {
  .caption { min-height: 140px; margin-top: 16px; }
  .steps { gap: 0; }
  .steps button { min-width: 0; padding: 10px 5px; font-size: 12.5px; }
}

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