/* ─────────────────────────────────────────────────────────────────────────
   Spisas startsida (index.html) — okt 2026

   Egen stilmall: support.html och integritetspolicy.html behåller
   style.css och påverkas inte av startsidans omgörning.

   Samma tokens som appen (lib/theme.ts): vit sida, varmbrun ink, Spisas
   orange #FA975B. Rörelsen är lugn och stängs av med "Reducera rörelse".
   ───────────────────────────────────────────────────────────────────────── */

/* Plus Jakarta Sans — självhostad (integritetspolicyn lovar att besöket inte
   skickas vidare till Google). */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("assets/jakarta-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("assets/jakarta-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF,
    U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light;

  --page: #ffffff;
  --card: #fbfaf8;
  --sunken: #f4f2f0;
  --divider: #ece9e6;
  --stroke: #e0dcd7;

  --ink-900: #221c11;
  --ink-700: #463c27;
  --ink-500: #7a6d56;
  --ink-300: #a89880;

  --orange: #fa975b;
  --orange-600: #ee8748;
  --orange-100: #fbe8d6;
  --orange-50: #fef7f0;
  --rust: #8a4212;
  --green: #5f8a50;
  --green-50: #eef4ea;

  --wrap: 1180px;
  --gutter: 24px;
  --radius-xl: 36px;
  --radius-lg: 28px;
  --radius: 20px;
  --radius-sm: 14px;

  --shadow-card: 0 1px 2px rgb(34 28 17 / 5%), 0 12px 32px -16px rgb(34 28 17 / 18%);
  --shadow-phone: 0 50px 100px -40px rgb(34 28 17 / 35%), 0 18px 40px -20px rgb(34 28 17 / 20%);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--page);
  color: var(--ink-900);
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.04;
  text-wrap: balance;
}

h2 {
  font-size: clamp(34px, 5vw, 58px);
}

h3 {
  font-size: 21px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

p {
  margin: 0;
  text-wrap: pretty;
}

.accent {
  color: var(--orange);
}

.lead {
  font-size: clamp(18px, 1.6vw, 20px);
  color: var(--ink-500);
  line-height: 1.55;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rust);
  background: var(--orange-50);
  padding: 7px 14px 7px 12px;
  border-radius: 999px;
}

.eyebrow svg {
  width: 15px;
  height: 15px;
}

.section-head {
  display: grid;
  gap: 18px;
  justify-items: center;
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px;
}

/* ── Knappar ─────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 56px;
  padding: 0 26px;
  border-radius: 999px;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform 0.25s var(--spring), background-color 0.2s, box-shadow 0.25s;
}

.btn:active {
  transform: scale(0.96);
}

.btn svg {
  width: 20px;
  height: 20px;
}

.btn-primary {
  background: var(--ink-900);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgb(34 28 17 / 55%);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -14px rgb(34 28 17 / 60%);
}

.btn-ghost {
  background: var(--sunken);
  color: var(--ink-900);
}

.btn-ghost:hover {
  background: var(--divider);
}

.btn-sm {
  height: 42px;
  padding: 0 18px;
  font-size: 14px;
}

/* ── Sidhuvud ─────────────────────────────────────────────────────────── */

.site-head {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: background-color 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
}

.site-head.is-stuck {
  background: rgb(255 255 255 / 78%);
  backdrop-filter: saturate(1.6) blur(18px);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  box-shadow: 0 1px 0 var(--divider);
}

.site-head .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand .mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.brand .wordmark {
  height: 26px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 26px;
  margin-left: auto;
}

.nav-links a {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-500);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--ink-900);
}

@media (max-width: 760px) {
  .nav-links {
    display: none;
  }

  .site-head .btn {
    margin-left: auto;
  }
}

/* ── Telefonen ────────────────────────────────────────────────────────── */

/* Skärmdumparna är en iPhone 17-skärm med vitmålad statusrad (ingen klocka,
   batteri eller wifi) och lite beskuren upptill och nedtill (720×1488).
   Hel höjd kändes "för avlång", helt beskuren "inte naturlig" (David, okt
   2026). Ramen ritas här, rak, utan perspektiv. */
.phone {
  position: relative;
  width: 100%;
  aspect-ratio: 720 / 1488;
  border-radius: 16.5% / 7.6%;
  padding: 2.9%;
  background: linear-gradient(145deg, #2c2620, #14110d);
  box-shadow: var(--shadow-phone), inset 0 0 0 1.5px rgb(255 255 255 / 10%);
}

.phone::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 40%);
}

.screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 13.8% / 6.4%;
  background: #fff;
}

/* En liten notch (David: "lägg till notchen ändå men gör en liten"). Ritas
   här, så skärmdumparnas statusrad kan vara vit. Mindre än den riktiga
   (126×37 pt på 402). */
.screen::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 1.1%;
  left: 50%;
  width: 20%;
  aspect-ratio: 100 / 28;
  translate: -50% 0;
  border-radius: 999px;
  background: #0d0b09;
}

.screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Skärmdumparna ligger osynliga ovanpå varandra — och ovanpå telefonen som
     swipar. De ska aldrig ta emot tryck. */
  pointer-events: none;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.6s var(--ease), transform 0.8s var(--ease);
}

.screen img.is-on {
  opacity: 1;
  transform: none;
}

/* ── Telefonen som swipar (steg 1) ─────────────────────────────────────
   Appens svepvy byggd i HTML, så korten går att dra. Måtten är i cqw —
   andel av skärmens bredd — så den ser likadan ut i alla storlekar. */
.screen {
  container-type: inline-size;
}

.sapp {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 12cqw 4.5cqw 5cqw;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s var(--ease);
}

.sapp.is-on {
  opacity: 1;
  pointer-events: auto;
}

.sapp-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sapp-round {
  display: grid;
  place-items: center;
  width: 9cqw;
  height: 9cqw;
  border-radius: 50%;
  background: var(--sunken);
  color: var(--ink-700);
}

.sapp-round svg {
  width: 4.4cqw;
  height: 4.4cqw;
}

.sapp-count {
  font-size: 3.6cqw;
  font-weight: 600;
  color: var(--ink-700);
}

.sapp-day {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2cqw;
  margin: 2.6cqw 0 3.4cqw;
  font-size: 5.2cqw;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.sapp-day span {
  padding: 0.8cqw 2.6cqw;
  border-radius: 999px;
  background: var(--sunken);
  font-size: 3.2cqw;
  font-weight: 600;
  color: var(--ink-700);
}

.sapp-deck {
  position: relative;
  flex: 1;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  outline: none;
}

.scard {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  border-radius: 6cqw;
  background: #fff;
  box-shadow: 0 1px 2px rgb(34 28 17 / 6%), 0 6px 18px -8px rgb(34 28 17 / 22%);
  overflow: hidden;
  cursor: grab;
  transition: transform 0.45s var(--ease), opacity 0.45s var(--ease);
  will-change: transform;
}

.scard.is-dragging {
  cursor: grabbing;
  transition: none;
}

.scard.is-leaning {
  transition: transform 0.6s var(--ease);
}

.scard-photo {
  position: relative;
  flex: 1;
  min-height: 0;
}

.scard-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  transform: none;
  pointer-events: none;
}

.scard-deal {
  position: absolute;
  left: 3cqw;
  bottom: 3cqw;
  display: inline-flex;
  align-items: center;
  gap: 1.2cqw;
  padding: 1.2cqw 2.6cqw;
  border-radius: 999px;
  background: #c4443b;
  color: #fff;
  font-size: 3.4cqw;
  font-weight: 700;
}

.scard-deal svg {
  width: 3.4cqw;
  height: 3.4cqw;
}

.scard-body {
  padding: 3.4cqw 4cqw 4cqw;
}

.scard-title {
  font-size: 5cqw;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.scard-meta {
  display: flex;
  gap: 4cqw;
  margin-top: 1.4cqw;
  font-size: 3.4cqw;
  font-weight: 500;
  color: var(--ink-700);
}

.scard-meta span {
  display: inline-flex;
  align-items: center;
  gap: 1.2cqw;
}

.scard-meta svg {
  width: 3.6cqw;
  height: 3.6cqw;
  color: var(--orange-600);
}

.scard .stamp {
  top: 4cqw;
  padding: 1.4cqw 3cqw;
  border-radius: 2.4cqw;
  font-size: 4cqw;
  z-index: 1;
}

.scard .stamp--save {
  left: 4cqw;
}

.scard .stamp--skip {
  right: 4cqw;
}

.sapp-actions {
  display: flex;
  justify-content: center;
  gap: 6cqw;
  margin-top: 5cqw;
}

.sapp-btn {
  display: grid;
  place-items: center;
  width: 17cqw;
  height: 17cqw;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgb(34 28 17 / 6%), 0 6px 16px -6px rgb(34 28 17 / 22%);
  cursor: pointer;
  transition: transform 0.25s var(--spring);
}

.sapp-btn:active {
  transform: scale(0.9);
}

.sapp-btn svg {
  width: 7.5cqw;
  height: 7.5cqw;
}

.sapp-skip {
  color: #c4443b;
}

.sapp-save {
  color: var(--green);
}

/* "Prova själv" — försvinner när man tagit över. */
.sapp-hint {
  position: absolute;
  left: 50%;
  bottom: 52cqw;
  translate: -50% 0;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 1.8cqw;
  padding: 2cqw 3.6cqw 2cqw 2.8cqw;
  border-radius: 999px;
  background: var(--ink-900);
  color: #fff;
  font-size: 3.6cqw;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
  animation: float 3s ease-in-out infinite;
  transition: opacity 0.3s;
}

.sapp-hint svg {
  width: 4.6cqw;
  height: 4.6cqw;
}

.sapp.is-touched .sapp-hint {
  opacity: 0;
}

/* ── Hero ─────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  padding: 132px 0 40px;
  overflow: hidden;
  isolation: isolate;
}

/* Det varma skenet bakom telefonen — tonar ut helt innan hero tar slut, så
   ingen kant syns där sektionen klipper. */
.hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    radial-gradient(42% 52% at 76% 46%, rgb(250 151 91 / 24%), rgb(250 151 91 / 0) 100%),
    radial-gradient(30% 40% at 12% 20%, rgb(250 151 91 / 8%), rgb(250 151 91 / 0) 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
}

.hero h1 {
  font-size: clamp(40px, 4.9vw, 66px);
  margin: 0 0 22px;
}

.hero .lead {
  max-width: 540px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-note {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 26px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-500);
}

.hero-note span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-note svg {
  width: 16px;
  height: 16px;
  color: var(--green);
}

.hero-stage {
  position: relative;
  justify-self: center;
  width: min(340px, 78vw);
}

/* Brickor som svävar runt telefonen — värden, inte meningar. */
.chip {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 8px 8px;
  border-radius: 999px;
  background: rgb(255 255 255 / 90%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-card);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  animation: float 6s ease-in-out infinite;
}

.chip .ic {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--orange-50);
  color: var(--orange-600);
}

.chip .ic svg {
  width: 17px;
  height: 17px;
}

.chip small {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-500);
  line-height: 1.2;
}

.chip b {
  display: block;
  line-height: 1.2;
}

.chip--a {
  top: 14%;
  left: -26%;
}

.chip--b {
  top: 46%;
  right: -24%;
  animation-delay: -2s;
}

.chip--c {
  bottom: 12%;
  left: -18%;
  animation-delay: -4s;
}

.chip--b .ic {
  background: var(--green-50);
  color: var(--green);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* Ingredienserna som svävar i bakgrunden (följer musen en aning). */
.drift {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.drift img {
  position: absolute;
  width: var(--s, 64px);
  opacity: 0.95;
  animation: bob 7s ease-in-out infinite;
  animation-delay: var(--d, 0s);
  translate: var(--px, 0) var(--py, 0);
  transition: translate 0.9s var(--ease);
}

/* Ingredienserna i höjd med texten får bara plats i en bred marginal. */
@media (max-width: 1360px) {
  .drift img.edge {
    display: none;
  }
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0) rotate(var(--r, 0deg));
  }

  50% {
    transform: translateY(-14px) rotate(calc(var(--r, 0deg) + 8deg));
  }
}

@media (max-width: 920px) {
  .hero {
    padding-top: 112px;
  }

  /* På smal skärm hamnar ingredienserna bakom texten: svagare och mindre. */
  .drift img {
    opacity: 0.35;
    width: calc(var(--s, 64px) * 0.7);
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 64px;
    text-align: center;
  }

  .hero .lead {
    margin: 0 auto;
  }

  .hero-cta,
  .hero-note {
    justify-content: center;
  }

  .chip--a {
    left: -14%;
  }

  .chip--b {
    right: -14%;
  }

  .chip--c {
    left: -10%;
  }
}

@media (max-width: 480px) {
  .chip {
    font-size: 12px;
    padding: 8px 12px 8px 8px;
  }

  .chip .ic {
    width: 26px;
    height: 26px;
  }

  .chip--a {
    left: -6%;
  }

  .chip--b {
    right: -6%;
  }

  .chip--c {
    left: -4%;
  }
}

/* ── Källorna, som ett band ───────────────────────────────────────────── */

.sources {
  padding: 56px 0 24px;
}

.sources-label {
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-500);
  margin-bottom: 22px;
}

/* Oändligt: home.js upprepar gruppen tills bandet räcker över hela skärmen
   plus en grupp, och flyttar sedan bandet exakt EN grupp per varv — så
   skarven syns aldrig, hur bred skärmen än är. */
.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
}

.marquee-track.is-running {
  animation: marquee var(--marquee-s, 30s) linear infinite;
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: 52px;
  padding-right: 52px;
}

.marquee-group img {
  height: 40px;
  width: 40px;
  object-fit: contain;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marquee {
  to {
    transform: translateX(calc(-1 * var(--marquee-w, 0px)));
  }
}

/* ── Så funkar det: telefonen står still, stegen rullar förbi ─────────── */

.story {
  padding: 120px 0 80px;
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.story-phone {
  position: sticky;
  top: 110px;
  align-self: start;
  justify-self: center;
  width: min(320px, 70vw);
}

.story-steps {
  display: grid;
  gap: 0;
}

.step {
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  opacity: 0.28;
  transition: opacity 0.5s var(--ease);
}

.step.is-active {
  opacity: 1;
}

.step-num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--orange);
  color: #fff;
  font-weight: 800;
}

.step h3 {
  font-size: clamp(30px, 3.6vw, 44px);
  letter-spacing: -0.035em;
}

.step .lead {
  max-width: 460px;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--divider);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-700);
}

.pill svg {
  width: 16px;
  height: 16px;
  color: var(--orange-600);
}

.pill img {
  width: 20px;
  height: 20px;
  border-radius: 6px;
}

/* Telefonen i stegen syns inte på smala skärmar — där får varje steg en
   egen skärmdump under texten. */
.step-shot,
.step-live {
  display: none;
}

@media (max-width: 860px) {
  .story-grid {
    grid-template-columns: 1fr;
  }

  .story-phone {
    display: none;
  }

  .step {
    min-height: 0;
    opacity: 1;
    padding: 40px 0;
    text-align: center;
    align-items: center;
  }

  .step .pills {
    justify-content: center;
  }

  .step-live {
    display: block;
    width: min(290px, 74vw);
    margin-top: 18px;
  }

  .step-shot {
    display: block;
    width: min(280px, 72vw);
    margin-top: 18px;
    border: 9px solid #1e1a15;
    border-radius: 42px;
    box-shadow: var(--shadow-phone);
  }
}

/* ── Svep själv ───────────────────────────────────────────────────────── */

.play {
  padding: 110px 0;
  background: linear-gradient(180deg, var(--page), var(--orange-50) 30%, var(--orange-50) 70%, var(--page));
}

.play-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.play-copy {
  display: grid;
  gap: 20px;
  justify-items: start;
}

.deck {
  position: relative;
  justify-self: center;
  width: min(360px, 86vw);
  aspect-ratio: 3 / 4;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.card,
.scard,
.card img,
.scard img {
  -webkit-user-drag: none;
}

.card {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  cursor: grab;
  transition: transform 0.45s var(--ease), opacity 0.45s var(--ease);
  will-change: transform;
}

.card.is-dragging {
  cursor: grabbing;
  transition: none;
}

.card img {
  flex: 1;
  min-height: 0;
  width: 100%;
  object-fit: cover;
  pointer-events: none;
}

.card-body {
  padding: 18px 22px 22px;
  display: grid;
  gap: 10px;
}

.card-title {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-700);
  background: var(--sunken);
  padding: 5px 11px;
  border-radius: 999px;
}

.card-meta svg {
  width: 14px;
  height: 14px;
  color: var(--orange-600);
}

/* Stämplarna som syns när kortet dras åt ena hållet. */
.stamp {
  position: absolute;
  top: 26px;
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0;
  pointer-events: none;
}

.stamp--save {
  left: 22px;
  background: var(--green);
  transform: rotate(-10deg);
}

.stamp--skip {
  right: 22px;
  background: #c4443b;
  transform: rotate(10deg);
}

.deck-actions {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 26px;
}

.round {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: transform 0.25s var(--spring);
}

.round:hover {
  transform: translateY(-3px);
}

.round:active {
  transform: scale(0.92);
}

.round svg {
  width: 30px;
  height: 30px;
}

.round--skip {
  color: #c4443b;
}

.round--save {
  color: #fff;
  background: var(--green);
}

.saved {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
}

.saved-thumbs {
  display: flex;
}

.saved-thumbs img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  margin-left: -12px;
  box-shadow: var(--shadow-card);
  animation: pop 0.45s var(--spring);
}

.saved-thumbs img:first-child {
  margin-left: 0;
}

.saved-text {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-700);
}

@keyframes pop {
  from {
    transform: scale(0.3);
    opacity: 0;
  }
}

.deck-done {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  text-align: center;
  padding: 30px;
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.deck-done img {
  width: 150px;
}

.deck-done[hidden] {
  display: none;
}

@media (max-width: 860px) {
  .play-grid {
    grid-template-columns: 1fr;
  }

  .play-copy {
    justify-items: center;
    text-align: center;
  }
}

/* ── Hushållet: en delad lista som bockas av medan man tittar ─────────── */

.together {
  padding: 110px 0;
}

.together-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.together-copy {
  display: grid;
  gap: 20px;
  justify-items: start;
}

.together-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.together-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  color: var(--ink-500);
  font-size: 16px;
}

.together-list .tile-icon {
  flex-shrink: 0;
  margin: 0;
}

.together-list b {
  display: block;
  color: var(--ink-900);
  font-size: 17px;
}

.live {
  position: relative;
  justify-self: center;
  width: min(420px, 100%);
  padding: 26px 24px 30px;
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow-card), inset 0 0 0 1px var(--divider);
}

.live-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.live-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.live-sub {
  font-size: 14px;
  color: var(--ink-500);
}

.faces {
  display: flex;
}

.face {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-left: -10px;
  border-radius: 50%;
  border: 3px solid #fff;
  background: var(--c);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}

.live-pill {
  position: absolute;
  top: -14px;
  left: 24px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.live-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  50% {
    opacity: 0.25;
  }
}

.live-list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
}

.live-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--divider);
  transition: opacity 0.4s var(--ease);
}

.live-list li:first-child {
  border-top: 0;
}

.live-list img {
  width: 44px;
  height: 44px;
}

.live-list .name {
  flex: 1;
  font-weight: 700;
  font-size: 16px;
  transition: color 0.3s;
}

.live-list .amount {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-500);
}

.live-list .by {
  width: 26px;
  height: 26px;
  margin: 0;
  border-width: 2px;
  font-size: 11px;
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.3s, transform 0.4s var(--spring);
}

.box {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  box-shadow: inset 0 0 0 2px var(--stroke);
  color: #fff;
  transition: background-color 0.25s, box-shadow 0.25s;
}

.box svg {
  width: 15px;
  height: 15px;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.2s, transform 0.35s var(--spring);
}

.live-list li.is-done .name {
  color: var(--ink-300);
  text-decoration: line-through;
}

.live-list li.is-done .box {
  background: var(--green);
  box-shadow: none;
}

.live-list li.is-done .box svg,
.live-list li.is-done .by {
  opacity: 1;
  transform: none;
}

.live-toast {
  position: absolute;
  left: 50%;
  bottom: -18px;
  translate: -50% 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px 9px 9px;
  border-radius: 999px;
  background: var(--ink-900);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s, transform 0.4s var(--spring);
}

.live-toast.is-on {
  opacity: 1;
  transform: none;
}

.live-toast .face {
  width: 24px;
  height: 24px;
  margin: 0;
  border: 0;
  font-size: 11px;
}

@media (max-width: 860px) {
  .together-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Funktionerna, som en bento ───────────────────────────────────────── */

.bento-section {
  padding: 110px 0;
}

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--divider);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.tile:hover {
  transform: translateY(-4px);
  box-shadow: inset 0 0 0 1px var(--divider), var(--shadow-card);
}

.tile p {
  color: var(--ink-500);
  font-size: 15.5px;
}

.tile-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--orange-50);
  color: var(--orange-600);
  margin-bottom: 6px;
}

.tile-icon svg {
  width: 23px;
  height: 23px;
}

.span-2 {
  grid-column: span 2;
}

.span-3 {
  grid-column: span 3;
}

.span-4 {
  grid-column: span 4;
}

/* Den stora brickan med pris: siffran räknas upp när den syns. */
.tile--price {
  background: var(--ink-900);
  color: #fff;
  box-shadow: none;
  justify-content: space-between;
  min-height: 300px;
}

.tile--price p {
  color: rgb(255 255 255 / 70%);
}

.tile--price .tile-icon {
  background: rgb(250 151 91 / 18%);
  color: var(--orange);
}

.tile--price h3 {
  margin-bottom: 12px;
  font-size: clamp(28px, 3.2vw, 40px);
  letter-spacing: -0.035em;
}

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stores span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  background: rgb(255 255 255 / 9%);
  font-size: 13px;
  font-weight: 700;
}

.stores img {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #fff;
}

.tile--shot {
  padding-bottom: 0;
}

.tile-text {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tile--shot .mini {
  margin-top: auto;
  width: 62%;
  align-self: center;
  translate: 0 18%;
}

.tile--shot .mini .phone {
  border-radius: 16.5% / 7.6%;
}

/* Två kolumner: telefonkortet får hela bredden med texten bredvid telefonen.
   Som ett av två kort i en rad sträckte det grannen ("Gör en reel …") till
   sin höjd, och grannen blev mest tom yta (David, okt 2026). */
@media (max-width: 960px) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
  }

  .span-2,
  .span-3,
  .span-4 {
    grid-column: span 1;
  }

  .tile--price,
  .tile--wide,
  .tile--shot {
    grid-column: 1 / -1;
  }

  .tile--shot {
    flex-direction: row;
    align-items: center;
    gap: 28px;
    min-height: 340px;
  }

  .tile--shot .tile-text {
    flex: 1;
    align-self: center;
    padding-bottom: 28px;
  }

  .tile--shot .mini {
    flex: 0 0 34%;
    width: auto;
    align-self: flex-end;
    margin: 0;
    translate: 0 12%;
  }
}

@media (max-width: 560px) {
  .bento {
    grid-template-columns: 1fr;
  }

  .tile--shot {
    flex-direction: column;
    align-items: stretch;
  }

  .tile--shot .tile-text {
    padding-bottom: 0;
  }

  .tile--shot .mini {
    width: 62%;
    flex: none;
    align-self: center;
    translate: 0 18%;
  }
}

/* ── Frågor ───────────────────────────────────────────────────────────── */

.faq {
  padding: 60px 0 110px;
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 10px;
}

.faq details {
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--divider);
  transition: background-color 0.2s;
}

.faq details[open] {
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--stroke);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--sunken) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23463c27' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform 0.3s var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq .answer {
  padding: 0 24px 22px;
  color: var(--ink-500);
}

/* ── Slutet: mata grytan ──────────────────────────────────────────────── */

.finale {
  padding: 40px 0 120px;
}

.finale-box {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 22px;
  text-align: center;
  padding: 72px 28px 64px;
  border-radius: var(--radius-xl);
  background: radial-gradient(120% 90% at 50% 0%, var(--orange-100), var(--orange-50) 55%, #fff);
  overflow: hidden;
}

.finale-box h2 {
  max-width: 720px;
}

.pot-stage {
  position: relative;
  width: 260px;
  height: 250px;
  margin-top: 8px;
}

.pot {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 220px;
  translate: -50% 0;
  transform-origin: 50% 100%;
}

.pot img {
  width: 100%;
  transition: opacity 0.2s;
}

.pot .pot-glad {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.pot.is-glad .pot-glad {
  opacity: 1;
}

.pot.is-glad .pot-calm {
  opacity: 0;
}

.pot.hop {
  animation: hop 0.5s var(--ease);
}

@keyframes hop {
  0% {
    transform: scale(1.04, 0.94);
  }

  35% {
    transform: translateY(-22px) scale(0.97, 1.04);
  }

  70% {
    transform: translateY(0) scale(1.05, 0.95);
  }

  100% {
    transform: none;
  }
}

/* En ingrediens på väg ner i grytan. */
.dropping {
  position: absolute;
  z-index: 1;
  width: 64px;
  pointer-events: none;
}

.feed {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.feed button {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border: 0;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: transform 0.25s var(--spring);
}

.feed button:hover {
  transform: translateY(-4px) rotate(-4deg);
}

.feed button:active {
  transform: scale(0.9);
}

.feed img {
  width: 48px;
}

.heart {
  position: absolute;
  width: 22px;
  pointer-events: none;
  animation: heart 1.1s var(--ease) forwards;
}

@keyframes heart {
  from {
    opacity: 1;
    transform: translate(0, 0) scale(0.6);
  }

  to {
    opacity: 0;
    transform: translate(var(--hx, 0), -90px) scale(1.2);
  }
}

/* ── Sidfot ───────────────────────────────────────────────────────────── */

.site-foot {
  padding: 48px 0 56px;
  border-top: 1px solid var(--divider);
}

.foot-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 32px;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-left: auto;
}

.foot-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-500);
  text-decoration: none;
}

.foot-links a:hover {
  color: var(--ink-900);
}

.foot-legal {
  width: 100%;
  font-size: 13px;
  color: var(--ink-300);
}
.foot-legal a { color: inherit; text-decoration: none; }
.foot-legal a:hover { text-decoration: underline; }

/* ── Innehåll som glider in ───────────────────────────────────────────── */

.js-reveal .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.js-reveal .reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }

  .js-reveal .reveal {
    opacity: 1;
    transform: none;
  }
}
