/* Färger och typsnitt från appen (theme/colors.ts, theme/fonts.ts). */
:root {
  --bg: #FFFFFF;
  --surface: #F4F4F6;
  --ink: #0C0C0E;
  --muted: #6A6A73;
  --line: #E7E7EB;
  --blush: #FFDCE5;
  --blush-ink: #9B1B4A;
  --green: #0B7A4B;
  --green-soft: #E2F3EA;
  --table: #F3EEE8;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-panel: 32px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: var(--ink); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 8px; }

.wrap { width: min(100% - 2rem, 80rem); margin-inline: auto; }
.inset { width: min(100% - 1.5rem, 86rem); margin-inline: auto; }

/* ---------- Sidhuvud ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
}
.site-header .wrap { display: flex; align-items: center; gap: 2rem; height: 4.5rem; }
.wordmark {
  font-weight: 800; font-size: 1.85rem; letter-spacing: -0.045em; line-height: 1;
  color: var(--ink); text-decoration: none;
}
.site-nav { display: flex; gap: 0.25rem; flex: 1; }
.site-nav a {
  font-weight: 600; font-size: 0.97rem; text-decoration: none;
  padding: 0.55rem 0.95rem; border-radius: 999px;
}
.site-nav a:hover { background: var(--surface); }
.site-nav a[aria-current="page"] { background: var(--surface); }
.header-cta { margin-left: auto; }

/* ---------- Knappar ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  font-weight: 700; font-size: 1rem; line-height: 1;
  border: 0; border-radius: 999px; padding: 1rem 1.5rem;
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
.pill-sm { padding: 0.7rem 1.1rem; font-size: 0.93rem; }
.pill-dark { background: var(--ink); color: #fff; }
.pill-dark:hover { background: #2b2b30; }
.pill-light { background: #fff; color: var(--ink); }
.pill-light:hover { background: var(--surface); }
.pill-grey { background: var(--surface); color: var(--ink); }
.pill-grey:hover { background: #e9e9ee; }
.pill svg { width: 1.15rem; height: 1.15rem; fill: currentColor; flex: none; }

/* ---------- Rubriker ---------- */
.display {
  margin: 0; font-weight: 800;
  font-size: clamp(3rem, 7.4vw, 6.6rem);
  line-height: 1.04; letter-spacing: -0.055em;
  text-wrap: balance;
}
.h2 {
  margin: 0; font-weight: 800;
  font-size: clamp(2.2rem, 4.6vw, 3.9rem);
  line-height: 1.08; letter-spacing: -0.05em;
  text-wrap: balance;
}
.h3 { margin: 0; font-weight: 800; font-size: 1.35rem; letter-spacing: -0.025em; line-height: 1.2; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.5; font-weight: 500; }
.muted { color: var(--muted); }

/* ---------- Hero ---------- */
.hero {
  background: var(--blush);
  border-radius: var(--r-panel);
  margin-top: 0.25rem;
  overflow: hidden;
  position: relative;
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 2rem;
  align-items: center;
  min-height: min(48rem, calc(100vh - 6rem));
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 5vw, 5rem) 0;
}
.hero-copy { padding-bottom: clamp(2.5rem, 6vw, 5rem); align-self: center; }
.hero-copy .lead { max-width: 30rem; margin: 1.75rem 0 2.25rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.hero-small { margin: 1.1rem 0 0; font-size: 0.93rem; font-weight: 600; color: var(--blush-ink); }

.hero-stage { position: relative; align-self: end; display: flex; justify-content: center; }
.hero-stage .phone-wrap { --s: 0.8; margin-bottom: -5rem; }

.toast {
  position: absolute; z-index: 3;
  background: #fff; border-radius: 18px;
  box-shadow: 0 10px 30px rgba(12, 12, 14, 0.12);
  padding: 0.8rem 1rem; display: flex; gap: 0.7rem; align-items: center;
  font-size: 0.9rem; font-weight: 700; line-height: 1.25;
}
.toast small { display: block; font-weight: 500; color: var(--muted); font-size: 0.8rem; }
.toast-dot { width: 2.1rem; height: 2.1rem; border-radius: 50%; display: grid; place-items: center; flex: none; }
.toast-dot svg { width: 1.1rem; height: 1.1rem; }
.toast-a { top: 34%; left: -3%; }
.toast-a .toast-dot { background: var(--green-soft); color: var(--green); }
.toast-b { top: 58%; right: -3%; }
.toast-b .toast-dot { background: var(--blush); color: var(--blush-ink); }

/* ---------- Telefon ----------
   Byggd i en riktig iPhones mått (393 × 852 pt skärm) med appens egna
   textstorlekar, och skalas sedan ned som helhet. */
.phone-wrap {
  --s: 0.72;
  width: calc(411px * var(--s)); height: calc(870px * var(--s));
  position: relative; flex: none; z-index: 1;
}
.phone {
  position: absolute; top: 0; left: 0;
  width: 411px; height: 870px; padding: 9px;
  transform: scale(var(--s)); transform-origin: 0 0;
  border-radius: 66px;
  background: #1b1b1e;
  box-shadow:
    inset 0 0 0 1.5px #3a3a3f,
    inset 0 0 0 4px #121214,
    0 2px 4px rgba(12, 12, 14, 0.08),
    0 40px 80px -20px rgba(12, 12, 14, 0.28);
}
.phone::before, .phone::after {
  content: ""; position: absolute; width: 3px; background: #2a2a2e; border-radius: 2px;
}
.phone::before { left: -2px; top: 190px; height: 64px; box-shadow: 0 84px 0 #2a2a2e; }
.phone::after { right: -2px; top: 230px; height: 100px; }
.screen {
  width: 393px; height: 852px; background: #fff; border-radius: 57px;
  overflow: hidden; position: relative; display: flex; flex-direction: column;
  font-size: 15px; line-height: 1.4; letter-spacing: 0;
}
.island {
  position: absolute; top: 11px; left: 50%; transform: translateX(-50%);
  width: 125px; height: 37px; background: #000; border-radius: 999px; z-index: 5;
}
.home-ind {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  width: 139px; height: 5px; border-radius: 999px; background: var(--ink); z-index: 6;
}
/* Tom yta under Dynamic Island, där statusraden sitter på en riktig iPhone. */
.statusbar { height: 54px; flex: none; }
.app-body { flex: 1; min-height: 0; padding: 6px 16px 0; display: flex; flex-direction: column; gap: 16px; overflow: hidden; }
.app-top { display: flex; align-items: center; justify-content: space-between; }
.app-wordmark { font-weight: 800; font-size: 26px; letter-spacing: -1px; line-height: 1; }
.app-gear { width: 38px; height: 38px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; }
.app-gear svg { width: 19px; height: 19px; }
.app-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.app-title { margin: 0; font-weight: 800; font-size: 32px; letter-spacing: -1px; line-height: 36px; }
.app-pill { background: var(--ink); color: #fff; font-weight: 700; font-size: 15px; border-radius: 999px; padding: 11px 18px; white-space: nowrap; line-height: 1.2; }
.app-pill.grey { background: var(--surface); color: var(--ink); }

.tabbar {
  flex: none; display: grid; grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line); padding: 8px 6px 34px; background: #fff;
}
.tabbar span { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; font-weight: 700; color: #9A9AA2; position: relative; }
.tabbar span.on { color: var(--ink); }
.tabbar svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.tabbar .count {
  position: absolute; top: -2px; left: calc(50% + 8px); font-style: normal;
  background: var(--blush); color: var(--blush-ink); font-size: 11px; font-weight: 800;
  border-radius: 999px; min-width: 19px; line-height: 19px; text-align: center; padding: 0 5px;
}

/* Svajpkort i telefonen */
.deck { position: relative; flex: 1; min-height: 0; }
.card {
  position: absolute; inset: 0 0 20px;
  background: #fff; border-radius: 24px;
  box-shadow: 0 0 0 1px var(--line), 0 12px 32px rgba(12, 12, 14, 0.08);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.42s cubic-bezier(.2,.8,.2,1), opacity 0.42s;
  will-change: transform;
}
.card img { flex: 1; min-height: 0; width: 100%; object-fit: cover; }
.card-info { padding: 16px 18px 18px; }
.card-name { margin: 0; font-weight: 800; font-size: 23px; letter-spacing: -0.6px; line-height: 1.15; }
.card-meta { margin: 6px 0 0; color: var(--muted); font-weight: 600; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.card[data-pos="1"] { transform: translateY(10px) scale(0.96); opacity: 0.9; }
.card[data-pos="2"] { transform: translateY(20px) scale(0.92); opacity: 0.6; }
.card[data-pos="3"] { transform: translateY(20px) scale(0.92); opacity: 0; }
.card.gone-right { transform: translate(140%, -20px) rotate(20deg) !important; opacity: 0 !important; }
.card.gone-left { transform: translate(-140%, -20px) rotate(-20deg) !important; opacity: 0 !important; }
.stamp {
  position: absolute; top: 18px; padding: 7px 14px; border-radius: 999px;
  font-weight: 800; font-size: 15px; opacity: 0; transition: opacity 0.12s;
}
.stamp.yes { left: 18px; background: var(--blush); color: var(--blush-ink); }
.stamp.no { right: 18px; background: var(--ink); color: #fff; }
.card.gone-right .stamp.yes, .card.gone-left .stamp.no { opacity: 1; }

.swipe-buttons { flex: none; display: flex; justify-content: center; align-items: center; gap: 22px; padding-bottom: 14px; }
.round {
  width: 62px; height: 62px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: var(--surface);
  transition: transform 0.15s;
}
.round:hover { transform: scale(1.06); }
.round svg { width: 25px; height: 25px; }
.round.small { width: 48px; height: 48px; }
.round.small svg { width: 20px; height: 20px; }
.round.yes { background: var(--blush); color: var(--blush-ink); }

/* Veckan */
.week-list { display: flex; flex-direction: column; gap: 10px; }
.day { display: flex; gap: 14px; align-items: center; border: 1px solid var(--line); border-radius: 20px; padding: 10px; }
.day img { width: 68px; height: 68px; border-radius: 14px; object-fit: cover; flex: none; }
.day small { display: block; color: var(--muted); font-weight: 600; font-size: 13px; }
.day b { display: block; font-weight: 800; font-size: 17px; letter-spacing: -0.3px; line-height: 1.25; }
.day .t { margin-left: auto; color: var(--muted); font-weight: 600; font-size: 13.5px; padding-right: 6px; font-variant-numeric: tabular-nums; }
.done-banner {
  background: var(--green-soft); color: var(--green); border-radius: 16px;
  padding: 13px 16px; font-weight: 700; font-size: 15px; display: flex; gap: 10px; align-items: center;
}
.done-banner svg { width: 20px; height: 20px; flex: none; }

/* Handla */
.progress { height: 8px; background: var(--surface); border-radius: 999px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--green); border-radius: 999px; transition: width 0.3s; }
.left-count { font-weight: 700; font-size: 13px; color: var(--muted); margin-top: -8px; font-variant-numeric: tabular-nums; }
.shop-group h4 { margin: 4px 0 2px; font-size: 13px; font-weight: 700; color: var(--muted); }
.shop-group h4:not(:first-child) { margin-top: 14px; }
.shop-item {
  display: flex; align-items: center; gap: 14px; width: 100%;
  background: none; border: 0; border-bottom: 1px solid var(--line);
  padding: 11px 0; text-align: left; cursor: pointer;
}
.shop-item .box {
  width: 26px; height: 26px; border-radius: 50%; border: 2px solid #C9C9D0; flex: none;
  display: grid; place-items: center; transition: background 0.15s, border-color 0.15s;
}
.shop-item .box svg { width: 14px; height: 14px; opacity: 0; color: #fff; }
.shop-item[aria-pressed="true"] .box { background: var(--green); border-color: var(--green); }
.shop-item[aria-pressed="true"] .box svg { opacity: 1; }
.shop-item[aria-pressed="true"] .nm { text-decoration: line-through; color: var(--muted); }
.shop-item .nm { font-weight: 700; font-size: 16px; display: block; letter-spacing: -0.2px; }
.shop-item .src { display: block; font-size: 12.5px; color: var(--muted); font-weight: 500; margin-top: 1px; }
.shop-item .amt { margin-left: auto; font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Recept */
.recipe-hero { height: 330px; flex: none; position: relative; }
.recipe-hero img { width: 100%; height: 100%; object-fit: cover; }
.recipe-hero .back {
  position: absolute; top: 60px; left: 16px; width: 40px; height: 40px; border-radius: 50%;
  background: #fff; display: grid; place-items: center; box-shadow: 0 2px 8px rgba(12,12,14,.12);
}
.recipe-hero .back svg { width: 18px; height: 18px; }
.recipe-body { padding: 18px 16px 0; display: flex; flex-direction: column; gap: 14px; overflow: hidden; flex: 1; }
.recipe-body h5 { margin: 0; font-weight: 800; font-size: 26px; letter-spacing: -0.8px; line-height: 1.12; }
.recipe-body .card-meta { margin-top: -6px; }
.stepper { display: flex; align-items: center; justify-content: space-between; background: var(--surface); border-radius: 999px; padding: 5px; }
.stepper button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; cursor: pointer; font-weight: 700; font-size: 20px; line-height: 1; }
.stepper button:disabled { opacity: 0.35; cursor: default; }
.stepper output { font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
.ing-title { margin: 4px 0 -4px; font-weight: 800; font-size: 19px; letter-spacing: -0.4px; }
.ing { display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--line); padding: 10px 0; font-size: 15px; }
.ing span:first-child { font-weight: 500; }
.ing span:last-child { font-variant-numeric: tabular-nums; font-weight: 700; }

section[id] { scroll-margin-top: 5.5rem; }

/* ---------- Fakta ---------- */
.facts {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
  padding: clamp(6.5rem, 10vw, 8rem) 0 clamp(2rem, 4vw, 3rem);
}
.fact { border-top: 2px solid var(--ink); padding-top: 1.1rem; }
.fact b { font-variant-numeric: tabular-nums; display: block; font-weight: 800; font-size: clamp(2.2rem, 4vw, 3.2rem); letter-spacing: -0.05em; line-height: 1; }
.fact > span { display: block; margin-top: 0.6rem; color: var(--muted); font-weight: 500; max-width: 22ch; }

/* ---------- Funktioner ---------- */
.section { padding: clamp(3rem, 6vw, 5rem) 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head p { margin: 0; max-width: 28rem; }

.feature {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  border-radius: var(--r-panel); overflow: hidden;
  margin-bottom: 1rem;
}
.feature-media {
  background: var(--surface); align-self: stretch;
  display: flex; justify-content: center; align-items: flex-end;
  padding: 3.5rem 2rem 0; min-height: 34rem; overflow: hidden;
}
.feature-media .phone-wrap { --s: 0.66; margin-bottom: -6.5rem; }
.feature-copy { padding: clamp(2rem, 5vw, 4.5rem); }
.feature-copy .h2 { font-size: clamp(2rem, 3.6vw, 3.1rem); }
.feature-copy p { margin: 1.25rem 0 0; max-width: 28rem; }
.feature-copy ul { list-style: none; padding: 0; margin: 1.75rem 0 0; display: grid; gap: 0.8rem; max-width: 28rem; }
.feature-copy li { display: flex; gap: 0.75rem; font-weight: 500; }
.feature-copy li svg { width: 1.35rem; height: 1.35rem; flex: none; margin-top: 0.15rem; color: var(--green); }
.feature.flip .feature-media { order: 2; }
.feature.blush .feature-media { background: var(--blush); }
.feature.table .feature-media { background: var(--table); }
.feature.green .feature-media { background: var(--green-soft); }

/* ---------- Rätter (karusell) ---------- */
.rail-controls { display: flex; gap: 0.5rem; }
.rail-btn {
  width: 3rem; height: 3rem; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--surface); display: grid; place-items: center;
}
.rail-btn:hover { background: #e9e9ee; }
.rail-btn svg { width: 1.2rem; height: 1.2rem; }
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(15rem, 24vw, 19rem);
  gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0 max(1rem, (100% - 80rem) / 2) 1rem;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.dish { scroll-snap-align: start; scroll-margin-inline: max(1rem, (100vw - 80rem) / 2); }
.dish-pic { border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 5; position: relative; background: var(--surface); }
.dish-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.dish:hover .dish-pic img { transform: scale(1.04); }
.dish-tag {
  position: absolute; top: 0.8rem; left: 0.8rem;
  background: #fff; border-radius: 999px; padding: 0.35rem 0.75rem;
  font-size: 0.8rem; font-weight: 700;
}
.dish h3 { margin: 0.85rem 0 0.15rem; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.025em; }
.dish p { margin: 0; color: var(--muted); font-weight: 500; font-size: 0.93rem; font-variant-numeric: tabular-nums; }

/* ---------- Integritet (mörk panel) ---------- */
.dark {
  background: var(--ink); color: #fff; border-radius: var(--r-panel);
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 5vw, 5rem);
}
.dark .h2 { max-width: 14ch; }
.dark-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: start; }
.dark-points { display: grid; gap: 0; }
.dark-points div { padding: 1.25rem 0; border-top: 1px solid rgba(255, 255, 255, 0.16); }
.dark-points div:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.16); }
.dark-points b { display: block; font-size: 1.15rem; font-weight: 800; letter-spacing: -0.02em; }
.dark-points span { display: block; color: rgba(255, 255, 255, 0.68); margin-top: 0.25rem; }
.dark .pill { margin-top: 2rem; }

/* ---------- Avslutning ---------- */
.final {
  background: var(--blush); border-radius: var(--r-panel);
  padding: clamp(3rem, 7vw, 6rem) clamp(1.5rem, 5vw, 5rem);
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem; align-items: center;
  margin-top: 1rem;
}
.final .display { font-size: clamp(2.6rem, 6vw, 5.2rem); line-height: 1.1; }
.final-side p { margin: 0 0 1.5rem; max-width: 24rem; }

/* ---------- Undersidor ---------- */
.page-hero {
  background: var(--surface); border-radius: var(--r-panel);
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 5rem);
  margin-top: 0.25rem;
}
.page-hero.blush { background: var(--blush); }
.page-hero h1 { margin: 0; font-weight: 800; font-size: clamp(2.6rem, 6.5vw, 5rem); letter-spacing: -0.055em; line-height: 1; }
.page-hero p { margin: 1rem 0 0; max-width: 34rem; }

.page-body {
  display: grid; grid-template-columns: 15rem 1fr; gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(2.5rem, 5vw, 4rem) clamp(0rem, 4vw, 4rem) 5rem;
}
.toc { position: sticky; top: 6rem; align-self: start; display: grid; gap: 0.15rem; }
.toc b { font-size: 0.85rem; color: var(--muted); font-weight: 700; margin-bottom: 0.4rem; }
.toc a { text-decoration: none; font-weight: 600; font-size: 0.95rem; padding: 0.4rem 0.8rem; border-radius: 999px; margin-left: -0.8rem; }
.toc a:hover { background: var(--surface); }

.prose { max-width: 44rem; }
.prose h2 { font-weight: 800; font-size: 1.6rem; letter-spacing: -0.03em; line-height: 1.2; margin: 3rem 0 0.6rem; scroll-margin-top: 6rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.35rem; }
.prose a { font-weight: 600; }

.summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin-bottom: 3rem; }
.summary-grid div { background: var(--green-soft); border-radius: 22px; padding: 1.25rem 1.3rem; }
.summary-grid svg { width: 1.5rem; height: 1.5rem; color: var(--green); }
.summary-grid b { display: block; margin-top: 0.7rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; }

.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1rem; margin-bottom: 3.5rem; }
.contact-card { border-radius: 24px; padding: 1.75rem; }
.contact-card.main { background: var(--blush); }
.contact-card.side { background: var(--surface); }
.contact-card p { margin: 0.3rem 0 0; }
.contact-card .big { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; letter-spacing: -0.035em; margin: 0.5rem 0 0.75rem; }
.contact-card .big a { text-decoration: none; }
.contact-card .big a:hover { text-decoration: underline; }
.contact-card .pill { margin-top: 1.25rem; }

.faq-title { font-weight: 800; font-size: clamp(1.8rem, 3.5vw, 2.6rem); letter-spacing: -0.045em; margin: 0 0 1.25rem; }
details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary {
  cursor: pointer; list-style: none; padding: 1.25rem 0;
  font-weight: 700; font-size: 1.12rem; letter-spacing: -0.01em;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; flex: none; width: 2.25rem; height: 2.25rem; border-radius: 50%;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230C0C0E' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 1rem no-repeat;
  transition: transform 0.2s;
}
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0 0 1.25rem; color: var(--muted); max-width: 40rem; }

/* ---------- Sidfot ---------- */
.site-footer { margin-top: 1rem; background: var(--surface); border-radius: var(--r-panel) var(--r-panel) 0 0; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; padding: clamp(3rem, 6vw, 4.5rem) 0 3rem; }
.footer-brand .wordmark { font-size: 2.6rem; }
.footer-brand p { margin: 0.9rem 0 0; color: var(--muted); max-width: 18rem; }
.footer-col b { display: block; font-size: 0.9rem; margin-bottom: 0.8rem; }
.footer-col a, .footer-col span { display: block; text-decoration: none; color: var(--muted); font-weight: 500; padding: 0.25rem 0; }
.footer-col a:hover { color: var(--ink); text-decoration: underline; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  border-top: 1px solid var(--line); padding: 1.5rem 0 2rem; font-size: 0.9rem; color: var(--muted);
}


/* ---------- Animationer ----------
   Bara när JavaScript körs och besökaren inte har valt Reducera rörelse. */
.split .line { display: block; overflow: hidden; padding: 0.1em 0 0.12em; margin: -0.1em 0 -0.12em; }
.split .line > span { display: block; }
.site-header { transition: box-shadow 0.3s; }
.site-header.scrolled { box-shadow: 0 1px 0 var(--line); }
.toast.bump .toast-dot { animation: bump 0.45s cubic-bezier(.3,1.6,.5,1); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.25); } 100% { transform: scale(1); } }

@media (prefers-reduced-motion: no-preference) {
  .js .split .line > span { transform: translateY(110%); transition: transform 1s cubic-bezier(.2,.75,.1,1) var(--d, 0s); }
  .js .loaded .split .line > span { transform: none; }

  .js .intro { opacity: 0; transform: translateY(18px); transition: opacity 0.8s ease var(--d, 0s), transform 0.9s cubic-bezier(.2,.75,.1,1) var(--d, 0s); }
  .js .loaded .intro { opacity: 1; transform: none; }

  .js .hero-phone { transform: translateY(140px); opacity: 0; transition: transform 1.3s cubic-bezier(.2,.75,.1,1) 0.3s, opacity 0.6s ease 0.3s; }
  .js .loaded .hero-phone { transform: none; opacity: 1; }

  .js .toast { opacity: 0; transform: translateY(14px) scale(0.92); transition: opacity 0.5s ease var(--d, 0s), transform 0.7s cubic-bezier(.3,1.4,.5,1) var(--d, 0s); }
  .js .loaded .toast { opacity: 1; transform: none; }

  .js .reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.8s ease var(--d, 0s), transform 1s cubic-bezier(.2,.75,.1,1) var(--d, 0s); }
  .js .reveal.in { opacity: 1; transform: none; }

  .js .rise { opacity: 0; transform: translateY(160px); transition: opacity 0.7s ease, transform 1.3s cubic-bezier(.2,.75,.1,1); }
  .js .rise.in { opacity: 1; transform: none; }
  .js .rise.in { translate: 0 var(--py, 0px); }

  .js .dish { opacity: 0; transform: translateX(40px); transition: opacity 0.7s ease var(--d, 0s), transform 0.9s cubic-bezier(.2,.75,.1,1) var(--d, 0s); }
  .js .rail.in .dish { opacity: 1; transform: none; }
}

/* ---------- Responsivt ---------- */
@media (max-width: 1020px) {
  .site-nav { display: none; }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding-bottom: 0; }
  .hero-stage { margin-top: 1rem; }
  .toast-a { left: 1%; }
  .toast-b { right: 1%; }
  .feature, .feature.flip { grid-template-columns: 1fr; }
  .feature.flip .feature-media { order: 0; }
  .feature-media { min-height: 30rem; }
  .dark-grid, .final { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .page-body { grid-template-columns: 1fr; }
  .toc { display: none; }
}
@media (max-width: 640px) {
  .facts { grid-template-columns: 1fr; gap: 1.5rem; }
  .phone-wrap, .hero-stage .phone-wrap { --s: 0.62; }
  .hero-stage .phone-wrap { margin-bottom: -2.5rem; }
  .facts { padding-top: 4.5rem; }
  .feature-media .phone-wrap { --s: 0.58; }
  .toast { display: none; }
  .summary-grid, .contact-grid { grid-template-columns: 1fr; }
  .wordmark { font-size: 1.6rem; }
  .header-cta .pill { padding: 0.65rem 0.95rem; font-size: 0.88rem; }
}
@media (prefers-reduced-motion: reduce) {
  .card, .dish-pic img, .progress i, summary::after { transition: none; }
}
