/* Mealprepp – mealprepp.se. Ingen extern resurs, strikt CSP. */
:root {
  color-scheme: light dark;
  --bg: #fbf8f3;
  --surface: #ffffff;
  --text: #1f2a24;
  --muted: #5b6760;
  --accent: #2f7d4f;
  --accent-strong: #235f3c;
  --accent-soft: #e3f1e8;
  --on-accent: #ffffff;
  --border: #e6e0d6;
  --input-border: #838d86; /* 3,2:1 mot --bg, 3,4:1 mot --surface */
  --error: #b3261e;
  --warn-soft: #fbf0d9;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121714;
    --surface: #1a211d;
    --text: #eef3ef;
    --muted: #a6b3ab;
    --accent: #5fbf85;
    --accent-strong: #7fd29f;
    --accent-soft: #1f3327;
    --on-accent: #0d1a12;
    --border: #2b3530;
    --input-border: #6f7c75; /* 4,2:1 mot --bg, 3,8:1 mot --surface */
    --error: #f2867d;
    --warn-soft: #33291a;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; }
a { color: var(--accent-strong); }
@media (prefers-color-scheme: dark) { a { color: var(--accent); } }
a:focus-visible, summary:focus-visible, button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 680px; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}
/* Honeypot: dolt för människor, finns kvar för botar */
.hp {
  position: absolute !important;
  left: -10000px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}

.skip {
  position: absolute; left: 16px; top: -100px;
  background: var(--surface); color: var(--text);
  padding: 8px 12px; border-radius: 8px; z-index: 10;
}
.skip:focus { top: 12px; }

/* Header */
.site-header { padding: 20px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em;
  color: var(--text); text-decoration: none;
}
.logo .wordmark { color: var(--text); }
.logo .wordmark span { color: var(--accent); }
.logo img { width: 28px; height: 28px; }
.header-cta {
  font-weight: 650; font-size: .95rem; text-decoration: none;
  padding: 8px 14px; border-radius: 999px; background: var(--accent-soft); color: var(--text);
}
@media (prefers-color-scheme: dark) { .header-cta { color: var(--text); } }

/* Hero */
.hero { padding: 24px 0 48px; display: grid; gap: 40px; }
@media (min-width: 880px) {
  .hero { grid-template-columns: 1.1fr .9fr; align-items: center; padding: 48px 0 64px; }
}
.eyebrow {
  display: inline-block; margin: 0 0 14px;
  font-size: .85rem; font-weight: 650; color: var(--accent-strong);
  background: var(--accent-soft); padding: 4px 12px; border-radius: 999px;
}
@media (prefers-color-scheme: dark) { .eyebrow { color: var(--accent-strong); } }
h1 { font-size: clamp(2rem, 7vw, 3.2rem); line-height: 1.1; letter-spacing: -0.03em; margin: 0 0 16px; }
.lead { font-size: 1.15rem; color: var(--muted); margin: 0 0 28px; }

/* Formulär */
.waitlist-form { margin: 0; }
.field-row { display: flex; gap: 8px; flex-wrap: wrap; }
.waitlist-form label.visible { display: block; font-weight: 600; font-size: .95rem; margin: 0 0 6px; }
.waitlist-form label.subtle { font-size: .85rem; color: var(--muted); margin: 0 0 4px; }
input[type=email] {
  flex: 1 1 240px; min-width: 0; width: 100%;
  padding: 14px 16px; font: inherit; color: var(--text);
  background: var(--surface); border: 1px solid var(--input-border); border-radius: 12px;
}
input[type=email]::placeholder { color: var(--muted); opacity: 1; }
input[type=email]:focus { outline: 3px solid var(--accent); outline-offset: 1px; }
input[type=email][aria-invalid=true] { border-color: var(--error); border-width: 2px; }
button, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 14px 22px; font: inherit; font-weight: 650; cursor: pointer;
  color: var(--on-accent); background: var(--accent); border: 0; border-radius: 12px;
  text-decoration: none; flex: 0 0 auto;
}
@media (max-width: 420px) { .field-row button { flex: 1 1 100%; } }
button:hover, .btn:hover { background: var(--accent-strong); }
button:disabled { opacity: .6; cursor: wait; }
.btn.secondary {
  background: var(--surface); color: var(--text); border: 1px solid var(--input-border);
}
.btn.secondary:hover { background: var(--accent-soft); }
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.msg { min-height: 1.6em; margin: 10px 0 0; font-size: .95rem; }
.msg.ok { color: var(--accent-strong); font-weight: 600; }
@media (prefers-color-scheme: dark) { .msg.ok { color: var(--accent); } }
.msg.err { color: var(--error); font-weight: 600; }
.fine { font-size: .85rem; color: var(--muted); margin: 4px 0 0; }
.fine a { color: inherit; }
.count { margin: 12px 0 0; font-weight: 600; color: var(--text); }
[hidden] { display: none !important; }

/* Demo: telefon som visar flödet (ren CSS, pausas via .is-paused från app.js) */
.demo { justify-self: center; width: 100%; max-width: 400px; display: flex; flex-direction: column; align-items: center; }
.phone {
  --dur: 20s;
  position: relative; flex: 0 0 auto;
  width: 260px; height: 540px; padding: 9px; border-radius: 42px;
  background: #1f2a24;
  box-shadow: 0 0 0 1px rgba(31, 42, 36, .12), 0 24px 60px rgba(31, 42, 36, .18);
  font-size: 13px; line-height: 1.3;
}
@media (prefers-color-scheme: dark) {
  .phone {
    background: #2a342f;
    box-shadow: 0 0 0 1px #46534c, inset 0 0 0 1px rgba(255, 255, 255, .07), 0 24px 60px rgba(0, 0, 0, .55);
  }
  .screen { box-shadow: 0 0 0 1px rgba(255, 255, 255, .06); }
  .island { box-shadow: 0 0 0 1px rgba(255, 255, 255, .1); }
}
.screen {
  position: relative; width: 100%; height: 100%;
  border-radius: 33px; overflow: hidden; background: var(--bg); color: var(--text);
}
.statusbar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 3; height: 38px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 22px 0 26px; font-size: 12px; font-weight: 700;
}
.island { position: absolute; top: 9px; left: 50%; width: 74px; height: 22px; margin-left: -37px; border-radius: 11px; background: #070a08; }
.sb-icons { display: flex; align-items: center; gap: 5px; }
.sig { width: 14px; height: 9px; background: var(--text); clip-path: polygon(0 100%, 100% 0, 100% 100%); }
.bat { position: relative; width: 20px; height: 10px; border: 1.5px solid var(--text); border-radius: 3px; }
.bat::after { content: ""; position: absolute; left: 1.5px; top: 1.5px; bottom: 1.5px; width: 60%; border-radius: 1px; background: var(--text); }

.scr { position: absolute; inset: 0; padding: 46px 14px 18px; background: var(--bg); }
.scr-setup, .scr-menu, .scr-list { opacity: 0; }
.scr-title { display: flex; align-items: center; gap: 6px; margin: 0; height: 26px; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.scr-sub { margin: 0 0 10px; height: 14px; font-size: 11.5px; color: var(--muted); }
.scr ul { list-style: none; margin: 0; padding: 0; }
.plus { font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong); letter-spacing: 0; }
.scr-btn {
  position: absolute; left: 14px; right: 14px; bottom: 18px; height: 44px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 14px; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 14px;
}
.scr-btn .plus { background: var(--on-accent); color: var(--accent-strong); }

.dishes li {
  display: flex; align-items: center; gap: 8px; height: 56px; margin-bottom: 8px; padding: 0 10px 0 10px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
}
.thumb { flex: 0 0 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: var(--accent-soft); font-size: 18px; line-height: 1; }
.dishes li:nth-child(even) .thumb { background: var(--warn-soft); }
@media (prefers-color-scheme: dark) {
  .thumb { background: #24402f; }
  .dishes li:nth-child(even) .thumb { background: #3d321f; }
}
.dish-txt { flex: 1 1 auto; min-width: 0; font-size: 12.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dish-txt small { display: block; font-size: 11px; font-weight: 400; color: var(--muted); }
.chk {
  position: relative; flex: 0 0 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--input-border); color: transparent;
}
.chk::after {
  content: ""; position: absolute; left: 6px; top: 2.5px; width: 5px; height: 10px;
  border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg);
}

.groceries li {
  display: flex; gap: 10px; height: 38px; align-items: center;
  border-bottom: 1px solid var(--border);
}
.groceries .grp {
  height: 22px; align-items: flex-end; padding-bottom: 3px; border-bottom: 0;
  font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: .02em;
}
.gchk { flex: 0 0 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--input-border); }
.g-name { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-qty { color: var(--muted); font-variant-numeric: tabular-nums; }

.stores li {
  display: grid; grid-template-columns: 1fr auto; align-items: center; row-gap: 8px;
  height: 64px; margin-bottom: 10px; padding: 8px 12px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--border); font-variant-numeric: tabular-nums;
}
.st-name { font-weight: 650; display: flex; align-items: center; gap: 6px; }
.st-sum { font-weight: 700; }
.bar { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: var(--border); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 3px; background: var(--muted); transform-origin: left center; }
.stores li:nth-child(1) .bar i { width: 96.8%; }
.stores li:nth-child(2) .bar i { width: 90.5%; }
.stores li:nth-child(3) .bar i { width: 93.8%; }
.stores li:nth-child(4) .bar i { width: 100%; }
.stores .low { background: var(--accent-soft); border-color: var(--accent); }
.stores .low .bar i { background: var(--accent); }
.lowest { font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 999px; background: var(--accent); color: var(--on-accent); }
.cmp-sum {
  display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 6px 0 0;
  border-radius: 14px; background: var(--accent-soft); color: var(--accent-strong); text-align: center;
  border: 1px solid var(--accent); padding: 8px 12px;
}
.cmp-sum span:first-child { font-size: 14px; font-weight: 800; }
.cmp-sum span:first-child::before { content: "\2713\00a0"; }
.cs-save { font-size: 12px; font-weight: 600; }
.scr-foot { margin: 10px 0 0; font-size: 11px; color: var(--muted); text-align: center; }

/* Kom igång-skärmen: antal personer + veckobudget (påhittade exempelvärden) */
.su-card { margin-bottom: 12px; padding: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.su-label { margin: 0 0 8px; font-size: 12.5px; font-weight: 650; }
.su-label small { font-size: 11px; font-weight: 400; color: var(--muted); }
.su-hint { margin: 8px 0 0; font-size: 11px; color: var(--muted); }
.pers { display: flex; gap: 8px; }
.pers li {
  flex: 1 1 0; height: 44px; display: grid; place-items: center; border-radius: 999px;
  background: var(--bg); border: 1.5px solid var(--input-border); font-size: 15px; font-weight: 700;
}
.stepper { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.step { flex: 0 0 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent-strong); font-size: 18px; font-weight: 800; line-height: 1; }
.val { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.num { position: relative; display: inline-block; }
.num b { position: absolute; left: 0; top: 0; opacity: 0; }
.num b:first-child { position: static; opacity: 1; }
.su-card .bar i { width: 100%; background: var(--accent); transform: scaleX(.5); }
.su-sum { margin-top: 14px; }

.tap {
  position: absolute; left: 0; top: 0; z-index: 4; width: 34px; height: 34px; border-radius: 50%;
  background: var(--text); box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px rgba(0, 0, 0, .18); opacity: 0; pointer-events: none;
}
.demo-note { margin: 16px 0 0; font-size: .8rem; font-weight: 600; color: var(--muted); text-align: center; }

@media (prefers-reduced-motion: no-preference) {
  .scr-setup { animation: demo-setup var(--dur) linear infinite both; }
  .scr-menu { animation: demo-menu var(--dur) linear infinite both; }
  .scr-list { animation: demo-list var(--dur) linear infinite both; }
  .scr-cmp { animation: demo-cmp var(--dur) linear infinite both; }
  .pers .pick { animation: demo-pick var(--dur) linear infinite both; }
  .step-plus { animation: demo-step var(--dur) linear infinite both; }
  .num b { animation: demo-val1 var(--dur) linear infinite both; }
  .num b:nth-child(2) { animation-name: demo-val2; }
  .num b:nth-child(3) { animation-name: demo-val3; }
  .chk { animation: demo-chk var(--dur) linear infinite both; }
  .dishes li:nth-child(2) .chk { animation-delay: .6s; }
  .dishes li:nth-child(3) .chk { animation-delay: 1.2s; }
  .dishes li:nth-child(4) .chk { animation-delay: 1.8s; }
  .dishes li:nth-child(5) .chk { animation-delay: 2.4s; }
  .scr-btn { animation: demo-press var(--dur) linear infinite both; }
  /* Samma knapptryck, förskjutet: Kom igång 3,1 s (7,92 − 4,82), inköpslista 11,36 s (7,92 + 3,44). */
  .scr-setup .scr-btn { animation-delay: -4.82s; }
  .scr-list .scr-btn { animation-delay: 3.44s; }
  .groceries li { animation: demo-item var(--dur) ease-out infinite both; }
  .groceries li:nth-child(2) { animation-delay: .12s; }
  .groceries li:nth-child(3) { animation-delay: .24s; }
  .groceries li:nth-child(4) { animation-delay: .36s; }
  .groceries li:nth-child(5) { animation-delay: .48s; }
  .groceries li:nth-child(6) { animation-delay: .6s; }
  .groceries li:nth-child(7) { animation-delay: .72s; }
  .groceries li:nth-child(8) { animation-delay: .84s; }
  .groceries li:nth-child(9) { animation-delay: .96s; }
  .groceries li:nth-child(10) { animation-delay: 1.08s; }
  .bar i, .st-sum { animation: demo-bar var(--dur) ease-out infinite both; }
  .st-sum { animation-name: demo-sum; }
  .su-card .bar i { animation-name: demo-budget; animation-timing-function: linear; }
  .stores li:nth-child(2) .bar i, .stores li:nth-child(2) .st-sum { animation-delay: .3s; }
  .stores li:nth-child(3) .bar i, .stores li:nth-child(3) .st-sum { animation-delay: .6s; }
  .stores li:nth-child(4) .bar i, .stores li:nth-child(4) .st-sum { animation-delay: .9s; }
  .stores .low { animation: demo-low var(--dur) ease-out infinite both; }
  .stores .low .bar i { animation-name: demo-bar, demo-low-bar; animation-delay: .3s, 0s; }
  .lowest { animation: demo-lowest var(--dur) ease-out infinite both; }
  .cmp-sum { animation: demo-result var(--dur) ease-out infinite both; }
  .su-sum { animation-name: demo-ready; }
  .tap { animation: demo-tap var(--dur) ease-in-out infinite both; }
  .phone.is-paused *, .phone.is-paused *::after { animation-play-state: paused !important; }
  /* Innan telefonen syns (app.js): Kom igång som stillbild; loopen startar om från 0 när klassen tas bort. */
  .phone.is-idle * { animation-name: none !important; }
  .phone.is-idle .scr-setup { opacity: 1; }
  .phone.is-idle .su-sum, .phone.is-idle .scr-cmp { opacity: 0; }
}

/* Tidslinje (20 s, 1 s = 5 %):
   kom igång 0–3,4 s (tryck på "4" 0,7 s, "+" 1,6 och 2,0 s, sammanfattning 2,4–2,7 s, knapptryck 3,1 s), övergång 3,4–3,96 s,
   meny 3,96–8,2 s (bockar 4,8/5,4/6,0/6,6/7,2 s, knapptryck 7,92 s), inköpslista 8,2–11,7 s (tryck 11,36 s),
   prisjämförelse 11,7–19 s (staplar 12,4–14,3 s, "Lägst" klart 14,9 s, resultatkort klart 15,5 s), jämförelsen tonar ut helt 19–19,44 s,
   sedan tonar Kom igång in 19,46–19,92 s (aldrig två skärmar samtidigt). Kom igång-tillståndet nollställs osynligt vid 18 s. */
@keyframes demo-setup {
  0%, 17% { opacity: 1; transform: none; }
  19.8%, 97.2% { opacity: 0; transform: translateX(-30%); }
  97.3% { opacity: 0; transform: scale(.97); }
  99.6%, 100% { opacity: 1; transform: none; }
}
@keyframes demo-menu {
  0%, 17% { opacity: 1; transform: translateX(100%); }
  19.8%, 40.8% { opacity: 1; transform: none; }
  43.6%, 100% { opacity: 0; transform: translateX(-30%); }
}
@keyframes demo-list {
  0%, 40.8% { opacity: 1; transform: translateX(100%); }
  43.6%, 58.4% { opacity: 1; transform: none; }
  62.2%, 100% { opacity: 0; transform: translateX(-30%); }
}
@keyframes demo-cmp {
  0%, 58.4% { opacity: 1; transform: translateX(100%); }
  62.2%, 95.2% { opacity: 1; transform: none; }
  97.2%, 100% { opacity: 0; transform: none; }
}
@keyframes demo-pick {
  0%, 3.25% { background: var(--bg); border-color: var(--input-border); color: var(--text); }
  3.75%, 90% { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
  90.5%, 100% { background: var(--bg); border-color: var(--input-border); color: var(--text); }
}
@keyframes demo-step {
  0%, 7.75%, 8.75%, 9.75%, 10.75%, 100% { transform: none; background: var(--accent-soft); }
  8%, 8.5%, 10%, 10.5% { transform: scale(.92); background: var(--accent); }
}
@keyframes demo-val1 {
  0%, 7.95% { opacity: 1; }
  8.05%, 90% { opacity: 0; }
  90.5%, 100% { opacity: 1; }
}
@keyframes demo-val2 {
  0%, 7.95% { opacity: 0; }
  8.05%, 9.95% { opacity: 1; }
  10.05%, 100% { opacity: 0; }
}
@keyframes demo-val3 {
  0%, 9.95% { opacity: 0; }
  10.05%, 90% { opacity: 1; }
  90.5%, 100% { opacity: 0; }
}
@keyframes demo-budget {
  0%, 7.75% { transform: scaleX(.5); }
  8.25%, 9.75% { transform: scaleX(.55); }
  10.25%, 90% { transform: scaleX(.6); }
  90.5%, 100% { transform: scaleX(.5); }
}
@keyframes demo-ready {
  0%, 12% { opacity: 0; transform: translateY(8px); }
  13.5%, 90% { opacity: 1; transform: none; }
  90.5%, 100% { opacity: 0; transform: translateY(8px); }
}
@keyframes demo-chk {
  0%, 24% { background: transparent; border-color: var(--input-border); color: transparent; }
  25%, 60% { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
  60.8%, 100% { background: transparent; border-color: var(--input-border); color: transparent; }
}
@keyframes demo-press {
  0%, 38.8% { transform: none; background: var(--accent); }
  39.6% { transform: scale(.95); background: var(--accent-strong); }
  40.8%, 100% { transform: none; background: var(--accent); }
}
@keyframes demo-item {
  0%, 43.6% { opacity: 0; transform: translateX(24px); }
  46%, 100% { opacity: 1; transform: none; }
}
@keyframes demo-bar {
  0%, 62% { transform: scaleX(0); }
  66.8%, 100% { transform: scaleX(1); }
}
@keyframes demo-sum {
  0%, 66% { opacity: 0; }
  68%, 100% { opacity: 1; }
}
@keyframes demo-low {
  0%, 71.2% { background: var(--surface); border-color: var(--border); }
  73.2%, 100% { background: var(--accent-soft); border-color: var(--accent); }
}
@keyframes demo-low-bar {
  0%, 71.2% { background: var(--muted); }
  73.2%, 100% { background: var(--accent); }
}
@keyframes demo-lowest {
  0%, 72.4% { opacity: 0; transform: scale(.6); }
  74.4%, 100% { opacity: 1; transform: none; }
}
@keyframes demo-result {
  0%, 75.2% { opacity: 0; transform: translateY(8px); }
  77.6%, 100% { opacity: 1; transform: none; }
}
/* Mörk cirkel på knappval och bockrutor, ljus (--on-accent) cirkel på de gröna knapparna. Koordinater = cirkelns övre vänstra hörn i skärmen. */
@keyframes demo-tap {
  0% { transform: translate(176px, 140px) scale(1); opacity: 0; background: var(--text); }
  2.5% { transform: translate(176px, 140px) scale(1); opacity: .35; }
  3.5% { transform: translate(176px, 140px) scale(.75); opacity: .45; }
  4.75% { transform: translate(176px, 140px) scale(1.3); opacity: 0; }
  5.5% { transform: translate(176px, 271px) scale(1); opacity: 0; }
  7% { transform: translate(176px, 271px) scale(1); opacity: .35; }
  8% { transform: translate(176px, 271px) scale(.75); opacity: .45; }
  9% { transform: translate(176px, 271px) scale(1); opacity: .35; }
  10% { transform: translate(176px, 271px) scale(.75); opacity: .45; }
  11.25% { transform: translate(176px, 271px) scale(1.3); opacity: 0; background: var(--text); }
  12.5% { transform: translate(104px, 465px) scale(1); opacity: 0; background: var(--on-accent); }
  14.5% { transform: translate(104px, 465px) scale(1); opacity: .6; }
  15.5% { transform: translate(104px, 465px) scale(.75); opacity: .7; }
  17% { transform: translate(104px, 465px) scale(1.3); opacity: 0; background: var(--on-accent); }
  20% { transform: translate(188px, 107px) scale(1); opacity: 0; background: var(--text); }
  23.2% { transform: translate(188px, 107px) scale(1); opacity: .35; }
  24% { transform: translate(188px, 107px) scale(.75); opacity: .45; }
  25.2% { transform: translate(188px, 107px) scale(1.3); opacity: 0; }
  25.6% { transform: translate(188px, 171px) scale(1); opacity: 0; }
  26.2% { transform: translate(188px, 171px) scale(1); opacity: .35; }
  27% { transform: translate(188px, 171px) scale(.75); opacity: .45; }
  28.2% { transform: translate(188px, 171px) scale(1.3); opacity: 0; }
  28.6% { transform: translate(188px, 235px) scale(1); opacity: 0; }
  29.2% { transform: translate(188px, 235px) scale(1); opacity: .35; }
  30% { transform: translate(188px, 235px) scale(.75); opacity: .45; }
  31.2% { transform: translate(188px, 235px) scale(1.3); opacity: 0; }
  31.6% { transform: translate(188px, 299px) scale(1); opacity: 0; }
  32.2% { transform: translate(188px, 299px) scale(1); opacity: .35; }
  33% { transform: translate(188px, 299px) scale(.75); opacity: .45; }
  34.2% { transform: translate(188px, 299px) scale(1.3); opacity: 0; }
  34.6% { transform: translate(188px, 363px) scale(1); opacity: 0; }
  35.2% { transform: translate(188px, 363px) scale(1); opacity: .35; }
  36% { transform: translate(188px, 363px) scale(.75); opacity: .45; }
  37.2% { transform: translate(188px, 363px) scale(1.3); opacity: 0; background: var(--text); }
  38% { transform: translate(104px, 465px) scale(1); opacity: 0; background: var(--on-accent); }
  38.6% { transform: translate(104px, 465px) scale(1); opacity: .6; }
  39.6% { transform: translate(104px, 465px) scale(.75); opacity: .7; }
  40.8%, 55.2% { transform: translate(104px, 465px) scale(1.3); opacity: 0; }
  55.8% { transform: translate(104px, 465px) scale(1); opacity: .6; }
  56.8% { transform: translate(104px, 465px) scale(.75); opacity: .7; }
  58%, 98.4% { transform: translate(104px, 465px) scale(1.3); opacity: 0; background: var(--on-accent); }
  100% { transform: translate(176px, 140px) scale(1); opacity: 0; background: var(--text); }
}


/* Sektioner */
section.block { padding: 48px 0; border-top: 1px solid var(--border); }
h2 { font-size: 1.6rem; letter-spacing: -0.02em; line-height: 1.2; margin: 0 0 20px; }
.section-lead { color: var(--muted); margin: -8px 0 24px; }
.grid {
  display: grid; gap: 16px; list-style: none; margin: 0; padding: 0;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}
.grid.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 20px; }
.card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }
.emoji { font-size: 1.6rem; display: block; margin-bottom: 8px; line-height: 1; }
.step-no {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent); font-weight: 800; margin-bottom: 10px;
}

.chains { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.chip { background: var(--accent-soft); color: var(--text); padding: 6px 12px; border-radius: 999px; font-weight: 600; font-size: .9rem; }

/* Priser */
.plan { position: relative; display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--accent); }
.badge {
  position: absolute; top: -12px; left: 20px;
  background: var(--accent); color: var(--on-accent);
  font-size: .8rem; font-weight: 700; padding: 3px 10px; border-radius: 999px;
}
.card .price, .price { font-size: 1.8rem; font-weight: 800; margin: 4px 0 12px; }
.price small { font-size: .95rem; font-weight: 500; color: var(--muted); }
.plan ul { margin: 0; padding: 0 0 0 20px; color: var(--muted); font-size: .95rem; }
.plan li { margin: 4px 0; }
.price-note { color: var(--muted); font-size: .9rem; margin: 16px 0 0; }

/* Jämförelsetabell för nivåerna */
.compare-title { font-size: 1.15rem; margin: 32px 0 12px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.compare { width: 100%; border-collapse: collapse; font-size: .95rem; }
.compare caption { text-align: left; }
.compare th, .compare td { padding: 12px 10px; text-align: center; border-bottom: 1px solid var(--border); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare thead th { font-size: .9rem; }
.compare tbody th { text-align: left; font-weight: 600; }
.compare td, .compare thead th { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.compare thead th { color: var(--text); }
.compare .yes { color: var(--accent-strong); font-weight: 800; }
@media (prefers-color-scheme: dark) { .compare .yes { color: var(--accent); } }
@media (max-width: 480px) {
  .compare { font-size: .85rem; }
  .compare th, .compare td { padding: 10px 6px; }
}

/* Problemet */
.problem { max-width: 680px; }
.problem p { color: var(--muted); margin: 0 0 12px; font-size: 1.05rem; }

.signup-again { margin-top: 40px; padding: 24px; }
.signup-again h3 { font-size: 1.2rem; margin: 0 0 12px; }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 0 18px; }
.faq summary {
  cursor: pointer; font-weight: 650; padding: 16px 0; list-style-position: inside;
}
.faq details[open] summary { border-bottom: 1px solid var(--border); }
.faq details p { margin: 12px 0 16px; color: var(--muted); }
.card .price { color: var(--text); margin: 4px 0 12px; }

/* Undersidor */
.page { padding: 32px 0 64px; }
.page h1 { font-size: clamp(1.8rem, 6vw, 2.6rem); }
.page p { margin: 0 0 16px; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 20px; margin: 20px 0; }
.share-link {
  display: block; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .95rem;
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px;
  margin: 8px 0 14px; word-break: break-all;
}
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.referral-count { font-weight: 650; }
.prose h2 { font-size: 1.25rem; margin: 32px 0 10px; }
.prose ul { padding-left: 22px; }
.prose li { margin: 4px 0; }
.updated { color: var(--muted); font-size: .9rem; }

/* Footer */
.site-footer { padding: 32px 0 48px; color: var(--muted); font-size: .9rem; border-top: 1px solid var(--border); }
.site-footer p { margin: 0 0 8px; }
.site-footer a { color: inherit; }
.site-footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 0; margin: 0 0 8px; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

h1[tabindex="-1"]:focus { outline: none; }
