/* ==========================================================
   Arròs Brut — web 2026 · estil "Pop mallorquí"
   Colors plans i vius, grotesca grossa, vores negres amb ombres
   dures, adhesius i el patró de les robes de llengües.
   Mobile-first. El "scroll world" s'activa des de main.js
   (classe .is-world) només a escriptori i sense moviment reduït.
   ========================================================== */

:root {
  --ink: #161310;
  --groc: #ffc21a;
  --vermell: #ec4126;
  --blau: #2152e0;
  --verd: #2fa864;
  --crema: #fff4de;
  --rosa: #ffb3c1;
  --paper: #fffaf0;

  --display: "Bricolage Grotesque", "Arial Black", system-ui, sans-serif;
  /* Títols: retro, gruixuda i amb gràcia. Per provar-ne una altra, només cal canviar aquesta línia. */
  --title: "Bricolage Grotesque", "Arial Black", system-ui, sans-serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --line: 3px solid var(--ink);
  --shadow: 6px 6px 0 var(--ink);
  --shadow-lg: 10px 10px 0 var(--ink);
  --radius: 22px;
  --ease: cubic-bezier(.2, .7, .1, 1);

  /* Patró de llengües (SVG en línia) */
  --llengues: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='64' viewBox='0 0 80 64'%3E%3Crect width='80' height='64' fill='%23fff4de'/%3E%3Cpath d='M40 0l8 8-4 4 12 12-4 4 8 8-8 8 4 4-12 12 4 4-8 8-8-8 4-4-12-12 4-4-8-8 8-8-4-4 12-12-4-4z' fill='%232152e0'/%3E%3Cpath d='M40 14l6 6-3 3 9 9-9 9 3 3-6 6-6-6 3-3-9-9 9-9-3-3z' fill='%23fff4de'/%3E%3Cpath d='M40 24l8 8-8 8-8-8z' fill='%23ec4126'/%3E%3Cpath d='M0 0l6 6-6 6zM80 0l-6 6 6 6zM0 52l6 6-6 6zM80 52l-6 6 6 6z' fill='%23ec4126'/%3E%3C/svg%3E");
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--groc);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(16px, 1vw + 10px, 19px);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 {
  font-family: var(--title); font-weight: 800; line-height: .9; margin: 0;
  letter-spacing: -.035em; text-transform: uppercase;
  font-variation-settings: "opsz" 96, "wdth" 85;
}
h2 { font-size: clamp(2.8rem, 8.5vw, 7.5rem); }
h2 em {
  font-style: normal; display: inline-block;
  background: var(--vermell); color: var(--crema);
  padding: .02em .18em .1em; border-radius: .14em; transform: rotate(-2deg);
  box-shadow: 4px 4px 0 var(--ink);
}
p { margin: 0; }
mark { background: none; color: inherit; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: fixed; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--groc); padding: 10px 16px; border-radius: 10px;
  font-weight: 800; text-decoration: none; transition: top .2s;
}
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--blau); outline-offset: 3px; border-radius: 8px; }

.eyebrow {
  display: inline-block;
  font-family: var(--display); font-size: .85rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  background: var(--ink); color: var(--groc);
  padding: 6px 12px; border-radius: 999px;
}

@media (max-width: 380px) { .eyebrow { font-size: .7rem; letter-spacing: .02em; } }

/* ---------- Botons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: 0 1.5em; border-radius: 999px;
  background: var(--vermell); color: var(--crema);
  border: var(--line); box-shadow: 4px 4px 0 var(--ink);
  font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: .01em;
  text-decoration: none; font-size: 1rem;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); animation: boing .5s var(--ease); }
@keyframes boing {
  0% { scale: 1; } 30% { scale: 1.08 .94; } 55% { scale: .97 1.04; } 80% { scale: 1.02 .99; } 100% { scale: 1; }
}
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn--small { min-height: 40px; padding: 0 1.1em; font-size: .85rem; box-shadow: 3px 3px 0 var(--ink); }
.btn--ghost { background: var(--crema); color: var(--ink); }

/* ---------- Barra de progrés ---------- */
.progress { position: fixed; inset: 0 0 auto; height: 6px; z-index: 60; pointer-events: none; }
.progress span {
  display: block; height: 100%; width: 100%; clip-path: inset(0 100% 0 0); /* es destapa, no s'estira */
  background: repeating-linear-gradient(90deg, var(--vermell) 0 24px, var(--blau) 24px 48px);
}

/* ---------- Navegació ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px var(--gutter);
  padding-top: max(14px, env(safe-area-inset-top));
  transition: transform .45s var(--ease);
}
.nav.is-hidden { transform: translateY(-120%); }
/* en baixar, el header es converteix en una barra crema: llegible sobre qualsevol color de secció */
.nav { transition: transform .45s var(--ease), background .3s, box-shadow .3s, padding .3s; }
.nav.is-solid { background: var(--crema); box-shadow: 0 3px 0 var(--ink); padding-block: 10px; }
.nav__brand {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
  font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.15rem; letter-spacing: -.02em;
}
.nav__brand img { width: 38px; height: 38px; transition: rotate .4s var(--ease); }
.nav__brand:hover img { rotate: -14deg; }
.nav__links { display: none; gap: clamp(20px, 2.6vw, 40px); }
.nav__links a {
  position: relative; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: .9rem;
  text-transform: uppercase; letter-spacing: .02em; padding: 6px 0;
}
/* en passar-hi: el mateix subratllat ondulat vermell (i en moviment) que l'enllaç «Com es fa» del hero */
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 8px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='8' viewBox='0 0 16 8'%3E%3Cpath d='M0 4 Q4 0 8 4 T16 4' fill='none' stroke='%23ec4126' stroke-width='2.5'/%3E%3C/svg%3E")
    0 100% / 16px 8px repeat-x;
  opacity: 0; transition: opacity .2s;
}
.nav__links a:hover::after, .nav__links a:focus-visible::after { opacity: 1; animation: wave .6s linear infinite; }
/* botó de l'app: mateixa família que el del hero */
.nav__cta {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 6px 0 14px;
  background: var(--ink); color: var(--groc); border-radius: 10px; text-decoration: none;
  font-family: var(--display); font-weight: 800; font-size: .85rem; text-transform: uppercase;
  box-shadow: 4px 4px 0 var(--vermell); transition: translate .2s var(--ease), box-shadow .2s var(--ease);
}
.nav__cta i {
  font-style: normal; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 7px;
  background: var(--vermell); color: var(--crema); font-size: .95rem;
}
.nav__cta:hover { translate: -2px -2px; box-shadow: 6px 6px 0 var(--vermell); }
@media (min-width: 900px) {
  /* centrat respecte a la pàgina (no entre el logo i el botó), alineat amb l'avantítol */
  .nav__links { display: flex; position: absolute; left: 0; right: 0; margin: 0 auto; width: fit-content; }
}

/* ---------- Franges de llengües ---------- */
.llengues {
  height: 64px; overflow: hidden; position: relative; z-index: 3;
  border-block: var(--line); background: var(--crema);
}
.llengues div {
  position: absolute; inset: 0 -160px 0 0;
  background: var(--llengues) 0 0 / 80px 64px repeat-x;
  animation: llengues 6s linear infinite;
}
.llengues--red { filter: hue-rotate(200deg) saturate(1.3); }
@keyframes llengues { to { transform: translateX(-160px); } }

/* ==========================================================
   1. HERO
   ========================================================== */
.hero {
  position: relative; min-height: 100svh;
  display: grid; place-items: center;
  padding: 96px var(--gutter) 80px;
  overflow: hidden;
  background:
    radial-gradient(circle at 1px 1px, rgba(22, 19, 16, .18) 1.5px, transparent 0) 0 0 / 22px 22px,
    var(--groc);
}
.steam { display: none; }
.hero__inner { position: relative; width: 100%; max-width: 1500px; text-align: center; display: grid; justify-items: center; }
.hero__eyebrow { margin-bottom: clamp(18px, 3vh, 30px); }
.hero__title {
  position: relative; z-index: 2;
  font-size: clamp(5rem, 27vw, 18rem);
  line-height: .8; letter-spacing: -.05em;
  font-variation-settings: "opsz" 96, "wdth" 75;
  display: grid; pointer-events: none;
}
.hero__line { display: block; }
.hero__line--alt { color: var(--vermell); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; }
.hero__line .ch { display: inline-block; will-change: transform; }

/* Escenari del plat: anell de text + plat */
.hero__stage {
  position: relative; z-index: 1;
  width: min(74vw, 420px); aspect-ratio: 1;
  margin-top: -6vw;
}
.hero__pot {
  position: relative; z-index: 2; width: 100%; height: 100%;
  border-radius: 50%; overflow: hidden;
  border: 4px solid var(--ink);
  box-shadow: var(--shadow-lg);
  will-change: transform, border-radius;
}
.hero__pot img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); }
/* anell de text tipus segell */
.hero__ring {
  position: absolute; z-index: 1; inset: -13%; width: 126%; height: 126%; overflow: visible; pointer-events: none;
  animation: spin 36s linear infinite reverse;
}
.hero__ring text {
  font-family: var(--display); font-weight: 800; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase;
  fill: var(--ink);
}
@keyframes spin { to { rotate: 360deg; } }

.hero__lead {
  margin-top: clamp(30px, 4vh, 44px); max-width: 32ch;
  font-weight: 600; font-size: clamp(1.05rem, 1.4vw, 1.25rem);
}
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 28px; margin-top: 18px; }
/* Botons del hero amb un format propi, diferent de les píndoles dels adhesius */
.hero__cta {
  display: inline-flex; align-items: center; gap: 14px; min-height: 58px; padding: 0 8px 0 22px;
  background: var(--ink); color: var(--groc); border-radius: 14px; text-decoration: none;
  font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1rem; letter-spacing: .01em;
  white-space: nowrap; /* sempre en una línia, a qualsevol amplada */
  box-shadow: 0 0 0 3px var(--ink), 6px 6px 0 3px var(--vermell);
  transition: translate .2s var(--ease), box-shadow .2s var(--ease);
}
.hero__cta i {
  font-style: normal; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px;
  background: var(--vermell); color: var(--crema); font-size: 1.2rem; transition: translate .25s var(--ease);
}
.hero__cta:hover { translate: -2px -2px; box-shadow: 0 0 0 3px var(--ink), 9px 9px 0 3px var(--vermell); }
.hero__cta:hover i { translate: 4px 0; }
.hero__cta:active { translate: 3px 3px; box-shadow: 0 0 0 3px var(--ink), 2px 2px 0 3px var(--vermell); }
@media (max-width: 480px) {
  .hero__cta { gap: 10px; padding-left: 16px; font-size: clamp(.72rem, 3.6vw, 1rem); white-space: nowrap; }
}
.hero__link {
  font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1rem; text-decoration: none;
  padding: 6px 2px; background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='8' viewBox='0 0 16 8'%3E%3Cpath d='M0 4 Q4 0 8 4 T16 4' fill='none' stroke='%23ec4126' stroke-width='2.5'/%3E%3C/svg%3E")
    0 100% / 16px 8px repeat-x;
}
.hero__link span { display: inline-block; transition: translate .25s var(--ease); }
.hero__link:hover { animation: wave .6s linear infinite; }
.hero__link:hover span { translate: 0 3px; }
@keyframes wave { to { background-position: 16px 100%; } }

/* Adhesius */
.stickers { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; z-index: 3; pointer-events: none; }
/* Enganxats a la vora del plat: posicions en % de l'escenari (iguals a escriptori i mòbil) */
/* .sticker-pos col·loca (CSS); .sticker és el que anima GSAP */
.sticker-pos {
  --dx: 0px; --dy: 0px; /* desplaçament quan l'arrossegues (main.js) */
  position: absolute;
  translate: calc(-50% + var(--dx)) calc(-50% + var(--dy));
  rotate: calc(var(--r) * 1deg);
  pointer-events: auto; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none;
  animation: wiggle 3.2s ease-in-out infinite;
}
/* escriptori: fora del plat, al voltant del títol */
.sticker-pos:nth-child(1) { left: -16%; top: -1%; }
.sticker-pos:nth-child(2) { left: 124%; top: 1%; }
.sticker-pos:nth-child(3) { left: -18%; top: 96%; }
.sticker-pos:nth-child(4) { left: 118%; top: 97%; }
.sticker-pos:nth-child(2) { animation-delay: -.8s; animation-duration: 3.8s; }
.sticker-pos:nth-child(3) { animation-delay: -1.6s; animation-duration: 3s; }
.sticker-pos:nth-child(4) { animation-delay: -2.4s; animation-duration: 3.5s; }
.sticker-pos.is-dragging { cursor: grabbing; animation-play-state: paused; z-index: 10; }
.sticker-pos.is-dragging .sticker { box-shadow: 8px 8px 0 var(--ink); }
@keyframes wiggle {
  0%, 100% { rotate: calc(var(--r) * 1deg - 3deg); }
  50% { rotate: calc(var(--r) * 1deg + 3deg); }
}
.sticker {
  display: block;
  font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(.8rem, 1.2vw, 1.05rem);
  padding: .55em 1em; border-radius: 999px; border: var(--line); box-shadow: 4px 4px 0 var(--ink);
  white-space: nowrap;
}
.sticker--red { background: var(--vermell); color: var(--crema); }
.sticker--blue { background: var(--blau); color: var(--crema); }
.sticker--cream { background: var(--crema); }
.sticker--green { background: var(--verd); color: var(--crema); }
@media (max-width: 899px) {
  /* Al mòbil, els adhesius es col·loquen damunt el plat */
  .hero__inner > * { order: 1; }
  .hero__stage { order: 3; margin-top: -4vw; }
  .hero__ring { display: none; } /* al mòbil ja hi ha els adhesius: l'anell hi sobrava */
  .hero__actions { flex-direction: column-reverse; gap: 16px; }
  .hero__lead { order: 4; }
  .sticker { font-size: .74rem; }
  /* mòbil: no hi ha lloc als costats → dos a dalt (entre el títol i el plat) i dos a baix */
  .hero__stage { margin-top: 50px; margin-bottom: 46px; }
  .sticker-pos:nth-child(1) { left: 14%; top: -11%; }
  .sticker-pos:nth-child(2) { left: 80%; top: -10%; }
  .sticker-pos:nth-child(3) { left: 16%; top: 109%; }
  .sticker-pos:nth-child(4) { left: 82%; top: 110%; }
}

.scroll-hint {
  position: absolute; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); transform: translateX(-50%);
  display: grid; justify-items: center; gap: 6px;
  font-family: var(--display); font-weight: 800; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase;
}
.scroll-hint i {
  width: 26px; height: 40px; border: var(--line); border-radius: 14px; position: relative; background: var(--crema);
}
.scroll-hint i::after {
  content: ""; position: absolute; left: 50%; top: 7px; width: 5px; height: 9px; margin-left: -2.5px;
  border-radius: 3px; background: var(--vermell); animation: wheel 1.6s var(--ease) infinite;
}
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }
@media (max-width: 899px) { .scroll-hint { display: none; } }

@media (min-width: 900px) {
  .hero__title { grid-template-columns: 1fr auto 1fr; align-items: center; width: 100%; font-size: clamp(6rem, 16vw, 17rem); }
  .hero__line { grid-row: 1; }
  .hero__line:first-child { grid-column: 1; text-align: right; }
  .hero__line--alt { grid-column: 3; text-align: left; -webkit-text-stroke-width: 4px; }
  /* Centrat amb inset + margin:auto (no amb translate, que GSAP sobreescriu) */
  .hero__stage {
    --s: clamp(220px, min(25vw, 40vh), 420px);
    position: absolute; inset: 0; margin: auto;
    width: var(--s); height: var(--s);
  }
  .hero__inner { position: static; min-height: 72vh; align-content: center; }
  /* el plat ocupa el centre: l'avantítol puja i l'entradeta baixa */
  .hero__eyebrow {
    position: absolute; top: clamp(84px, 13vh, 130px); left: 0; right: 0; margin: 0 auto; width: fit-content; z-index: 3;
  }
  .hero__lead {
    position: absolute; bottom: clamp(34px, 6vh, 72px); left: 0; right: 0; margin: 0 auto; width: fit-content; z-index: 3;
    max-width: none; white-space: nowrap; text-align: center;
  }
  .hero__lead br { display: none; }
  .scroll-hint { display: none; } /* ara els botons ja conviden a baixar */
}

/* ==========================================================
   2. HISTÒRIA
   ========================================================== */
.story { position: relative; background: var(--crema); }
.story__pin { position: relative; --bg: var(--crema); --fg: var(--ink); background: var(--bg); color: var(--fg); }
.story__bg { display: none; }
.story__chapters {
  list-style: none; margin: 0 auto; padding: 12vh var(--gutter);
  display: grid; gap: 10vh; max-width: 1200px;
}
.chapter__kicker {
  display: flex; align-items: center; gap: 12px; margin-bottom: 18px;
  font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1rem;
}
.chapter__kicker span {
  display: grid; place-items: center; width: 2.6em; height: 2.6em; border-radius: 50%;
  background: var(--vermell); color: var(--crema); border: var(--line); box-shadow: 3px 3px 0 var(--ink);
}
.chapter:nth-child(2) .chapter__kicker span { background: var(--blau); }
.chapter:nth-child(3) .chapter__kicker span { background: var(--verd); }
.chapter:nth-child(4) .chapter__kicker span { background: var(--groc); color: var(--ink); }
.chapter__text {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.8rem, 4.6vw, 4.4rem); line-height: 1.02; letter-spacing: -.03em;
  font-variation-settings: "opsz" 72, "wdth" 90;
}
.chapter__text .w { display: inline-block; opacity: .15; }
.story__dots { display: none; }
.chapter__img { display: none; }

/* Mòbil/tauleta: cada capítol és un bloc de color amb la seva foto emmarcada */
@media (max-width: 899px) {
  .story__chapters { padding: 0; gap: 0; max-width: none; }
  .chapter {
    --c-bg: var(--groc); --c-fg: var(--ink);
    position: relative; overflow: hidden;
    padding: 64px var(--gutter) 72px; background: var(--c-bg); color: var(--c-fg);
    border-bottom: var(--line);
    display: grid; gap: 22px;
  }
  .chapter:nth-child(2) { --c-bg: var(--vermell); --c-fg: var(--crema); }
  .chapter:nth-child(3) { --c-bg: var(--blau); --c-fg: var(--crema); }
  .chapter:nth-child(4) { --c-bg: var(--verd); --c-fg: var(--crema); }
  .chapter__kicker { margin: 0; }
  .chapter__img {
    display: block; width: min(78%, 360px); aspect-ratio: 4 / 3; object-fit: cover;
    border: var(--line); border-radius: 22px; box-shadow: var(--shadow);
    rotate: -3deg; justify-self: end;
  }
  .chapter:nth-child(even) .chapter__img { rotate: 3deg; justify-self: start; }
  .chapter__text { font-size: clamp(1.7rem, 7.4vw, 2.6rem); }
  .chapter__text .w { opacity: .25; }
}

/* Escriptori: escenari fixat, color de fons per capítol i foto emmarcada */
.is-world .story__pin { height: 100vh; overflow: hidden; display: grid; place-items: center; }
.is-world .story__bg {
  display: block; position: absolute; z-index: 1;
  right: var(--gutter); top: 50%; translate: 0 -50%;
  width: clamp(300px, 34vw, 600px); aspect-ratio: 4 / 3; /* fotos apaïsades */
}
.is-world .story__bg img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  border: 4px solid var(--ink); border-radius: 28px; box-shadow: var(--shadow-lg);
  opacity: 0; background: var(--crema);
}
.is-world .story__chapters { position: relative; z-index: 2; padding: 0 var(--gutter); display: grid; width: 100%; max-width: none; }
.is-world .chapter { grid-area: 1 / 1; max-width: min(54vw, 860px); } /* deixa lloc a la foto apaïsada */
.is-world .story__dots {
  display: flex; gap: 10px; position: absolute; z-index: 3; left: var(--gutter); bottom: 6vh;
}
.is-world .story__dots button {
  appearance: none; padding: 0; margin: 0; cursor: pointer; color: inherit; background: transparent;
  width: 34px; height: 10px; border-radius: 999px; border: 2px solid currentColor; transition: background .3s, width .3s, scale .2s;
  /* àrea de toc més gran que el dibuix */
  position: relative;
}
.is-world .story__dots button::before { content: ""; position: absolute; inset: -12px -4px; }
.is-world .story__dots button:hover { scale: 1.15; }
.is-world .story__dots button.on { background: currentColor; width: 56px; }

/* ==========================================================
   3. EL PROCÉS
   ========================================================== */
.process {
  position: relative;
  background:
    radial-gradient(circle at 1px 1px, rgba(22, 19, 16, .14) 1.5px, transparent 0) 0 0 / 22px 22px,
    var(--paper);
}
.process__pin { padding: 14vh 0 12vh; }
.process__head { max-width: 900px; margin-bottom: 24px; }
.process__head h2 { margin: 18px 0 24px; }
.process__meta { display: flex; flex-wrap: wrap; gap: 8px; }
.process__meta span {
  font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: .85rem;
  padding: 6px 14px; border-radius: 999px; border: var(--line); background: var(--groc);
}
.process__meta span:nth-child(2) { background: var(--rosa); }
.process__meta span:nth-child(3) { background: var(--crema); }
.process__track { display: grid; gap: 32px; padding: 0 var(--gutter); }
.process__bar { display: none; }

.step {
  --c: var(--groc);
  position: relative; display: grid; gap: 16px;
  background: var(--crema); border: var(--line); border-radius: var(--radius); padding: 12px 12px 22px;
  box-shadow: var(--shadow);
}
.step:nth-of-type(4n + 2) { --c: var(--vermell); }
.step:nth-of-type(4n + 3) { --c: var(--blau); }
.step:nth-of-type(4n + 4) { --c: var(--verd); }
.step__media {
  border-radius: calc(var(--radius) - 8px); overflow: hidden; aspect-ratio: 4 / 3;
  border: var(--line); background: var(--c);
}
.step__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); will-change: transform; }
.step__body { padding: 0 8px; }
.step__num {
  position: absolute; top: -18px; right: -12px; z-index: 2;
  display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  background: var(--c); color: var(--crema); border: var(--line); box-shadow: 3px 3px 0 var(--ink);
  font-family: var(--display); font-weight: 800; font-size: 1.5rem; letter-spacing: -.04em;
  rotate: 8deg;
}
.step:nth-of-type(4n + 1) .step__num { color: var(--ink); }
.step h3 { font-size: clamp(1.6rem, 2.2vw, 2.1rem); margin-bottom: 8px; }
.step p { font-size: 1rem; font-weight: 500; }
.step--cta {
  background: var(--blau); color: var(--crema); padding: 32px 26px;
  align-content: center; gap: 20px;
}
.step--cta .eyebrow { background: var(--groc); color: var(--ink); justify-self: start; }
.step--cta__text { font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem, 2.2vw, 2.1rem); line-height: 1.05; letter-spacing: -.02em; padding-right: clamp(16px, 10%, 48px); text-wrap: pretty; }
.step--cta .btn { justify-self: start; background: var(--groc); color: var(--ink); margin-right: clamp(16px, 10%, 48px); font-size: .8rem; white-space: nowrap; }
/* botó "Vull la recepta completa": una sola línia i fletxa en una bombolla */
.btn--app { white-space: nowrap; gap: 14px; padding: 0 8px 0 1.3em; min-height: 56px; font-size: .95rem; }
.btn--app i {
  font-style: normal; display: grid; place-items: center; flex: none;
  width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--groc); font-size: 1.15rem;
  transition: translate .25s var(--ease), rotate .25s var(--ease);
}
.btn--app:hover i { translate: 3px 0; rotate: -12deg; }

@media (max-width: 899px) { .step__num { right: -6px; } }
@media (min-width: 640px) and (max-width: 899px) {
  .process__track { grid-template-columns: 1fr 1fr; }
  .step--cta, .process__head { grid-column: 1 / -1; }
}

/* Escriptori: viatge horitzontal */
.is-world .process__pin { height: 100vh; padding: 0; display: grid; grid-template-rows: 1fr auto; grid-template-columns: minmax(0, 1fr); overflow: hidden; } /* la columna no creix amb la tira: la barra queda dins la pantalla */
.is-world .process__head { width: clamp(360px, 36vw, 600px); flex: none; margin: 0 3vw 0 0; }
.is-world .process__head h2 { font-size: clamp(3.2rem, 6.4vw, 7rem); }
.is-world .process__track {
  display: flex; gap: clamp(28px, 3vw, 48px); align-items: center;
  padding: 72px var(--gutter) 0; width: max-content; will-change: transform;
}
.is-world .step { width: clamp(270px, min(25vw, 44vh), 400px); flex: none; }
.is-world .step:nth-of-type(odd) { rotate: -2deg; }
.is-world .step:nth-of-type(even) { rotate: 2deg; translate: 0 3vh; }
.is-world .step__media { aspect-ratio: 5 / 4; }
.is-world .step--cta { width: clamp(320px, 30vw, 460px); min-height: 48vh; rotate: -3deg; }
.is-world .process__bar {
  display: block; margin: 0 var(--gutter) clamp(24px, 5vh, 44px); height: 14px;
  border: var(--line); border-radius: 999px; background: var(--crema); overflow: hidden;
}
.is-world .process__bar span {
  display: block; height: 100%; clip-path: inset(0 100% 0 0);
  background: repeating-linear-gradient(-45deg, var(--vermell) 0 10px, var(--groc) 10px 20px);
}
@media (max-height: 760px) {
  .is-world .step p { font-size: .9rem; }
  .is-world .step__media { aspect-ratio: 16 / 10; }
}

/* ==========================================================
   4. INGREDIENTS
   ========================================================== */
.ingredients { position: relative; background: var(--vermell); color: var(--crema); overflow: hidden; }
.ingredients__pin { padding: 14vh var(--gutter); display: grid; gap: 56px; }
.ingredients .eyebrow { background: var(--crema); color: var(--ink); }
.ingredients h2 em { background: var(--groc); color: var(--ink); }
.ingredients__copy h2 { margin: 18px 0 24px; }
.ingredients__copy > p:not(.eyebrow) { max-width: 44ch; font-weight: 600; }
.ingredients__lock {
  margin-top: 26px; display: flex; gap: 12px; align-items: center;
  padding: 14px 18px; border-radius: 16px; background: var(--ink); color: var(--groc);
  font-weight: 800; font-size: .98rem; border: var(--line); box-shadow: 5px 5px 0 rgba(22, 19, 16, .45);
}
.lock { flex: none; width: 16px; height: 13px; border-radius: 3px; background: var(--groc); position: relative; margin-top: 6px; }
.lock::before {
  content: ""; position: absolute; left: 3px; top: -8px; width: 10px; height: 10px;
  border: 2px solid var(--groc); border-bottom: 0; border-radius: 6px 6px 0 0;
}

.orbit { position: relative; }
.orbit__pot { display: none; }
.orbit__items { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.orbit__items li {
  padding: 9px 16px; border-radius: 999px; border: var(--line); box-shadow: 3px 3px 0 var(--ink);
  font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: .92rem;
  background: var(--crema); color: var(--ink);
}
.orbit__items li:nth-child(4n + 1) { background: var(--groc); }
.orbit__items li:nth-child(4n + 2) { background: var(--blau); color: var(--crema); }
.orbit__items li:nth-child(4n + 3) { background: var(--rosa); }

@media (min-width: 900px) {
  .ingredients__pin { grid-template-columns: 1fr 1.1fr; align-items: center; min-height: 100vh; padding-block: 10vh; }
  .orbit { aspect-ratio: 1; width: min(100%, 640px); justify-self: center; container-type: inline-size; }
  .orbit::before {
    content: ""; position: absolute; inset: 7%; border-radius: 50%;
    border: 3px dashed rgba(255, 244, 222, .55);
  }
  .orbit__pot {
    display: block; position: absolute; inset: 22%; border-radius: 50%; overflow: hidden;
    border: 4px solid var(--ink); box-shadow: var(--shadow-lg);
  }
  .orbit__pot img { width: 100%; height: 100%; object-fit: cover; }
  .orbit__items { position: absolute; inset: 0; display: block; }
  .orbit__items li {
    --r: 43cqw;
    --spin: 0deg;
    position: absolute; left: 50%; top: 50%;
    transform: translate(-50%, -50%) rotate(calc(var(--a) * 30deg)) translateY(calc(var(--r) * -1)) rotate(calc(var(--a) * -30deg - var(--spin)));
    white-space: nowrap; font-size: .85rem;
  }
}

/* ==========================================================
   5. APP
   ========================================================== */
.app {
  position: relative; overflow: hidden; color: var(--crema);
  background:
    radial-gradient(circle at 1px 1px, rgba(255, 244, 222, .16) 1.5px, transparent 0) 0 0 / 22px 22px,
    var(--blau);
}
.app__pin { padding: 14vh var(--gutter); display: grid; gap: 64px; }
.app .eyebrow { background: var(--groc); color: var(--ink); }
.app h2 em { background: var(--groc); color: var(--ink); }
.app__copy h2 { margin: 18px 0 36px; }
.features { list-style: none; margin: 0 0 36px; padding: 0; display: grid; gap: 14px; max-width: 540px; }
.features li {
  display: grid; gap: 2px; padding: 16px 18px; border-radius: 18px;
  background: var(--crema); color: var(--ink); border: var(--line); box-shadow: 5px 5px 0 var(--ink);
}
.features li:nth-child(2) { rotate: .8deg; }
.features li:nth-child(3) { rotate: -.6deg; }
.features strong { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.2rem; letter-spacing: -.01em; }
.features span { font-size: .96rem; font-weight: 500; }

.appstore {
  display: inline-flex; align-items: center; gap: 12px; padding: 10px 22px 10px 16px;
  min-height: 58px; border-radius: 16px; background: var(--ink); color: var(--crema);
  border: 3px solid var(--crema); box-shadow: 5px 5px 0 var(--groc);
  text-decoration: none; transition: transform .2s var(--ease);
}
.appstore:hover { transform: translate(-2px, -2px); }
.appstore svg { width: 28px; height: 28px; }
.appstore span { display: grid; line-height: 1.1; font-weight: 800; font-size: 1.2rem; }
.appstore small { font-weight: 600; font-size: .72rem; }

/* Mockup d'iPhone */
.phone { justify-self: center; perspective: 1400px; width: min(72vw, 330px); position: relative; }
.phone::before {
  content: "Fàcil!"; position: absolute; z-index: 4; right: -14px; top: -22px;
  font-family: var(--display); font-weight: 800; text-transform: uppercase; color: var(--ink);
  background: var(--groc); border: var(--line); box-shadow: 3px 3px 0 var(--ink);
  border-radius: 50%; width: 80px; height: 80px; display: grid; place-items: center; rotate: 14deg;
}
.phone__frame {
  position: relative; aspect-ratio: 9 / 19.2; border-radius: 52px; padding: 10px;
  background: var(--ink);
  box-shadow: 14px 14px 0 rgba(22, 19, 16, .55);
  transform-style: preserve-3d; will-change: transform;
}
.phone__island { position: absolute; z-index: 3; top: 21px; left: 50%; translate: -50% 0; width: 32%; height: 26px; border-radius: 20px; background: #000; }
.phone__screen { position: relative; height: 100%; border-radius: 43px; overflow: hidden; background: var(--groc); color: var(--ink); }
/* Dues pantalles una al costat de l'altra; main.js les fa lliscar */
/* El contingut de la pantalla es dissenya per a 250px d'amplada i s'escala amb el mòbil (--k, des de main.js) */
.screens { display: flex; width: 300%; height: 100%; zoom: var(--k, 1); will-change: transform; }
.ui__seg { zoom: var(--k, 1); }
.screens > .ui { width: calc(100% / 3); flex: none; }
.ui { height: 100%; display: flex; flex-direction: column; padding: 112px 16px 18px; font-size: 13.5px; }
.ui__seg {
  position: absolute; z-index: 2; top: 56px; left: 16px; right: 16px;
  display: grid; grid-template-columns: .9fr 1fr 1.15fr; padding: 3px; border-radius: 999px;
  background: var(--crema); border: 2px solid var(--ink);
  font-family: var(--display); font-weight: 800; font-size: 9.5px; text-transform: uppercase; text-align: center; white-space: nowrap;
}
.ui__seg span { padding: 5px 0; border-radius: 999px; transition: background .3s, color .3s; }
.ui__seg span.on { background: var(--ink); color: var(--groc); }
.ui__title { font-family: var(--title); font-weight: 800; font-size: 25px; letter-spacing: -.04em; text-transform: uppercase; line-height: 1; }
.ui__people {
  margin: 12px 0; display: flex; align-items: center; justify-content: space-between;
  background: var(--crema); border-radius: 20px; padding: 8px 10px; border: 2.5px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
}
.ui__people div { display: grid; justify-items: center; line-height: 1; }
.ui__people b { font-family: var(--display); font-size: 44px; font-weight: 800; color: var(--vermell); }
.ui__people small { font-size: 11px; font-weight: 700; margin-top: 2px; }
.ui__btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--groc); font-size: 20px; font-weight: 800; }
.ui__list { list-style: none; margin: 0; padding: 4px 12px; display: grid; background: var(--crema); border-radius: 18px; border: 2.5px solid var(--ink); }
.ui__list li { display: flex; justify-content: space-between; padding: 7px 0; font-weight: 600; border-bottom: 1.5px dashed rgba(22, 19, 16, .25); }
.ui__list li:last-child { border-bottom: 0; }
.ui__list b { font-variant-numeric: tabular-nums; font-weight: 800; }
.ui__list i { font-style: normal; }
/* Quantitats "tatxades" amb retolador: es veu que hi són, però només l'app les mostra */
.ui__list b { position: relative; filter: blur(3.5px); opacity: .7; }
.ui__list li { position: relative; }
.ui__list li::after {
  content: ""; position: absolute; right: -4px; top: 50%; width: 70px; height: 15px; translate: 0 -50%;
  background: var(--ink); border-radius: 3px 6px 4px 7px; rotate: -3deg;
}
.ui__list li:nth-child(even)::after { rotate: 2deg; width: 62px; }
.ui__list li:nth-child(3n)::after { width: 48px; }
.ui__lock {
  display: flex; align-items: center; gap: 8px; margin: 10px 2px 0;
  font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .02em;
}
.ui__lock .lock { background: var(--ink); }
.ui__lock .lock::before { border-color: var(--ink); }
.ui__cta {
  margin-top: auto; text-align: center; padding: 12px; border-radius: 999px;
  background: var(--vermell); color: var(--crema); border: 2.5px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
}

/* Pantalla 1: inici (com la de l'app) */
.ui--home { align-items: center; text-align: center; padding-top: 100px; }
.home-ui__eyebrow {
  font-family: var(--display); font-weight: 800; font-size: 8.5px; letter-spacing: .06em; text-transform: uppercase;
  background: var(--ink); color: var(--groc); padding: 4px 9px; border-radius: 999px;
}
.home-ui__title {
  margin-top: 6px; font-family: var(--title); font-weight: 800; text-transform: uppercase; line-height: .9;
  font-size: 34px; letter-spacing: -.05em; font-variation-settings: "opsz" 96, "wdth" 75;
}
.home-ui__title span { color: var(--vermell); }
.home-ui__plat {
  width: 58%; aspect-ratio: 1; object-fit: cover; margin: 10px 0 8px; border-radius: 50%;
  border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); rotate: -6deg;
}
.home-ui__q { font-weight: 700; font-size: 12px; }
.ui--home .ui__people { align-self: stretch; margin: 6px 0 0; }
.home-ui__btns { margin-top: auto; align-self: stretch; display: grid; gap: 8px; }
.home-ui__btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px; border-radius: 12px;
  background: var(--crema); border: 2.5px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
  font-family: var(--display); font-weight: 800; font-size: 11px; text-transform: uppercase;
}
.home-ui__btn--go { justify-content: space-between; padding-left: 12px; background: var(--ink); color: var(--groc); box-shadow: 3px 3px 0 var(--vermell); }
.home-ui__btn--go i { font-style: normal; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--vermell); color: var(--crema); }

/* Pantalla 3: recepta pas a pas */
.step-ui__top { display: grid; gap: 6px; margin-bottom: 10px; }
.step-ui__label { font-family: var(--display); font-weight: 800; font-size: 11px; text-transform: uppercase; }
.step-ui__bar { display: grid; grid-template-columns: repeat(8, 1fr); gap: 3px; }
.step-ui__bar i { height: 6px; border-radius: 3px; background: rgba(22, 19, 16, .2); }
.step-ui__bar i.on { background: var(--ink); }
.step-ui__img {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 16px;
  border: 2.5px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); background: var(--crema);
}
.step-ui__title { margin: 12px 0 10px; font-size: 22px; }
.step-ui__timer {
  display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 18px;
  background: var(--crema); border: 2.5px solid var(--ink);
}
.step-ui__timer svg { width: 50px; height: 50px; flex: none; rotate: -90deg; }
.step-ui__timer circle { fill: none; stroke-width: 7; }
.step-ui__timer .ring-bg { stroke: rgba(22, 19, 16, .12); }
.step-ui__timer .ring { stroke: var(--vermell); stroke-linecap: round; stroke-dasharray: 169.6; stroke-dashoffset: 0; }
.step-ui__timer div { display: grid; line-height: 1; }
.step-ui__timer b { font-family: var(--display); font-weight: 800; font-size: 28px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.step-ui__timer small { font-size: 10px; font-weight: 700; text-transform: uppercase; margin-top: 3px; }
.step-ui__tip {
  margin-top: 10px; display: grid; gap: 6px; padding: 9px 11px; border-radius: 14px;
  background: var(--vermell); color: var(--crema); border: 2.5px solid var(--ink);
}
.step-ui__tip strong { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 12px; }
/* el truc concret queda "tatxat": només a l'app */
.censor { display: block; height: 9px; border-radius: 3px 6px 3px 5px; background: var(--ink); rotate: -1deg; }
.censor--short { width: 62%; rotate: 1.5deg; }
.step-ui__nav {
  margin-top: auto; display: flex; justify-content: space-between; gap: 8px;
  font-family: var(--display); font-weight: 800; font-size: 11.5px; text-transform: uppercase;
}
.step-ui__nav span { flex: 1; text-align: center; padding: 11px 6px; border-radius: 999px; border: 2.5px solid var(--ink); background: var(--crema); }
.step-ui__nav .next { background: var(--ink); color: var(--groc); }

/* Pantalla 2: llista de la compra */
.shop-ui__sub { margin: 4px 0 6px; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.shop-ui__list {
  display: grid; padding: 6px 12px 8px; border-radius: 18px; background: var(--crema); border: 2.5px solid var(--ink);
}
.shop-ui__group {
  margin: 4px 0 0; font-family: var(--display); font-weight: 800; font-size: 9.5px; text-transform: uppercase;
  letter-spacing: .04em; color: var(--vermell);
}
.shop-ui__group:first-child { margin-top: 0; }
.shop-ui__item {
  position: relative; display: flex; align-items: center; gap: 8px; padding: 2px 0; font-weight: 600; font-size: 12.5px;
  transition: color .3s;
}
/* casella */
.shop-ui__item i {
  flex: none; width: 15px; height: 15px; border-radius: 5px; border: 2px solid var(--ink); background: var(--crema);
  display: grid; place-items: center; transition: background .25s;
}
.shop-ui__item i::after {
  content: ""; width: 7px; height: 4px; border: 2px solid var(--crema); border-top: 0; border-right: 0;
  rotate: -45deg; translate: 0 -1px; scale: 0; transition: scale .25s var(--ease);
}
/* quantitat tatxada, com a la calculadora */
.shop-ui__item::after {
  content: ""; margin-left: auto; width: 44px; height: 11px; border-radius: 3px 6px 3px 5px; background: var(--ink); rotate: -2deg;
}
.shop-ui__item:nth-of-type(even)::after { width: 34px; rotate: 2deg; }
.shop-ui__item.done { color: rgba(22, 19, 16, .45); text-decoration: line-through; text-decoration-thickness: 2px; }
.shop-ui__item.done i { background: var(--verd); }
.shop-ui__item.done i::after { scale: 1; }

/* La funció de la llista que mostra el mòbil queda marcada */
.features li { transition: background .35s, translate .35s var(--ease), scale .25s var(--ease), rotate .25s var(--ease); }
.features li.is-active { background: var(--groc); translate: -6px 0; }

@media (min-width: 900px) {
  /* exactament una pantalla d'alt (està fixada): el mòbil queda centrat i sencer */
  .app__pin {
    grid-template-columns: 1.1fr .9fr; align-items: center;
    height: 100vh; min-height: 600px; padding-block: 84px 28px; box-sizing: border-box;
  }
  .app__copy h2 { font-size: clamp(2.6rem, min(6vw, 9.5vh), 6.4rem); margin: 14px 0 min(4vh, 32px); }
  .features { gap: min(1.6vh, 14px); margin-bottom: min(3.4vh, 32px); }
  .features li { padding: min(1.6vh, 16px) 18px; }
  .phone { width: clamp(220px, min(24vw, 33vh), 350px); }
}
@media (min-width: 900px) and (max-height: 760px) {
  .features span { display: none; } /* pantalles baixes: només el títol de cada funció */
}

/* ==========================================================
   6. NOSALTRES HO FEM
   ========================================================== */
.cook { background: var(--groc); padding: 0 0 14vh; overflow: hidden; }
.cook__marquee { overflow: hidden; padding: 5vh 0 4vh; border-bottom: var(--line); background: var(--ink); color: var(--groc); }
.cook__marquee div { display: flex; width: max-content; animation: marquee 26s linear infinite; }
.cook__marquee span {
  font-family: var(--title); font-weight: 800; text-transform: uppercase; white-space: nowrap; letter-spacing: -.03em;
  font-size: clamp(2.4rem, 8vw, 7rem); padding-right: .5em;
  font-variation-settings: "opsz" 96, "wdth" 80;
}
.cook__marquee span::after { content: "★"; font-size: .55em; vertical-align: middle; margin-left: .5em; color: var(--vermell); }
@keyframes marquee { to { transform: translateX(-50%); } }
.cook__inner { padding: 8vh var(--gutter) 0; display: grid; gap: 36px; }
.cook__actions { display: flex; flex-wrap: wrap; gap: 14px; }
@media (min-width: 900px) { .cook__inner { grid-template-columns: 1fr auto; align-items: end; } }

/* ---------- Footer ---------- */
.footer {
  display: grid; gap: 18px; padding: 48px var(--gutter) max(36px, env(safe-area-inset-bottom));
  background: var(--ink); color: var(--crema); font-size: .92rem; font-weight: 500;
}
.footer__brand { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.25rem; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer a { text-decoration: none; opacity: .8; }
.footer a:hover { opacity: 1; color: var(--groc); }
.footer__copy { opacity: .6; }
@media (min-width: 900px) {
  .footer { grid-template-columns: auto 1fr auto auto; align-items: center; gap: 40px; }
  .footer__links { justify-content: center; }
}

/* ---------- Moviment reduït ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .chapter__text .w { opacity: 1; }
  .hero__pot img, .step__media img { transform: none; }
  .hero__ring { animation: none; }
}

/* ---------- Microinteraccions ---------- */
/* Etiquetes que reboten en passar-hi per damunt */
.orbit__items li, .process__meta span, .nav__brand, .features li { transition: scale .25s var(--ease), rotate .25s var(--ease); }
@media (hover: hover) {
  .orbit__items li:hover { background: var(--ink); color: var(--groc); }
  .process__meta span:hover { scale: 1.08; rotate: 3deg; }
  .nav__brand:hover { rotate: -3deg; }
  .features li:hover { rotate: -1.2deg; scale: 1.02; }
  .step { transition: box-shadow .25s var(--ease); }
  .step:hover { box-shadow: 10px 10px 0 var(--ink); }
}

/* ==========================================================
   PÀGINES LEGALS
   ========================================================== */
.page-legal { background:
  radial-gradient(circle at 1px 1px, rgba(22, 19, 16, .14) 1.5px, transparent 0) 0 0 / 22px 22px, var(--groc); }
.legal { max-width: 920px; margin: 0 auto; padding: 120px var(--gutter) 12vh; }
.legal h1 { font-size: clamp(2.6rem, 8vw, 5.5rem); margin: 18px 0 24px; }
.legal__tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.legal__tabs a {
  font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: .82rem; text-decoration: none;
  padding: 8px 14px; border-radius: 999px; border: var(--line); background: var(--crema);
}
.legal__tabs a[aria-current="page"] { background: var(--ink); color: var(--groc); }
.legal__list { display: grid; gap: 14px; }
.legal__item { background: var(--crema); border: var(--line); border-radius: 18px; box-shadow: 4px 4px 0 var(--ink); overflow: hidden; }
.legal__item summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 16px 20px; font-family: var(--display); font-weight: 800; font-size: 1.05rem;
}
.legal__item summary::-webkit-details-marker { display: none; }
.legal__item summary::after {
  content: "+"; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--vermell); color: var(--crema); border: 2px solid var(--ink); font-size: 1.2rem; transition: rotate .25s var(--ease);
}
.legal__item[open] summary::after { rotate: 45deg; }
.legal__body { padding: 0 20px 20px; display: grid; gap: 12px; font-size: .98rem; }
.legal__body ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.legal__body a { color: var(--blau); font-weight: 700; }
.legal__body table { border-collapse: collapse; width: 100%; font-size: .9rem; display: block; overflow-x: auto; }
.legal__body th, .legal__body td { border: 1.5px solid var(--ink); padding: 6px 8px; text-align: left; }

/* Tira del procés arrossegable (escriptori) */
.is-world [data-process] { cursor: grab; user-select: none; -webkit-user-select: none; }
.is-world [data-process].is-grabbing { cursor: grabbing; }
.is-world [data-process] img { -webkit-user-drag: none; }
.is-world [data-process] .btn { cursor: pointer; }

/* Cortina per als salts llargs entre seccions (main.js) */
.curtain {
  position: fixed; inset: 0; z-index: 90; visibility: hidden; pointer-events: none;
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 1px 1px, rgba(22, 19, 16, .2) 1.5px, transparent 0) 0 0 / 22px 22px,
    var(--vermell);
  border-block: 6px solid var(--ink);
}
.curtain__label {
  font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: -.03em;
  font-size: clamp(2.6rem, 8vw, 6rem); color: var(--ink);
  background: var(--groc); border: var(--line); border-radius: 999px; box-shadow: var(--shadow-lg);
  padding: .15em .6em; rotate: -4deg;
}
@media (max-width: 380px) {
  /* mòbils molt estrets: el text del botó pot fer dues línies, la bombolla queda a la dreta */
  .btn--app { white-space: normal; text-align: left; line-height: 1.1; padding-block: 8px; font-size: .85rem; }
}

/* ==========================================================
   PANTALLES GRANS (≥ 1600 px: 24", 27"…)
   El disseny està pensat per a ~1440 px i els límits estaven en px, així que en una
   pantalla gran tot quedava petit i amb molt de buit. Aquí la unitat rem creix amb
   l'amplada (16 px a 1600 → ~21 px a 2240 → 24 px a 2560) i els límits passen a rem,
   perquè tot escali junt. Per sota de 1600 px no canvia res.
   ========================================================== */
@media (min-width: 1600px) {
  html { font-size: clamp(16px, 0.8333vw + 2.667px, 24px); }
  body { font-size: 1.1875rem; }
  :root { --gutter: 3.5rem; }

  /* Navegació */
  .nav { padding-block: .9rem; }
  .nav.is-solid { padding-block: .65rem; }
  .nav__brand img { width: 2.4rem; height: 2.4rem; }
  .nav__cta { min-height: 2.5rem; gap: .5rem; padding: 0 .4rem 0 .9rem; }
  .nav__cta i { width: 1.75rem; height: 1.75rem; }

  /* Elements comuns */
  .eyebrow { padding: .4rem .75rem; }
  .btn { min-height: 3.25rem; }
  .btn--small { min-height: 2.5rem; }
  .btn--app { gap: .9rem; padding: 0 .5rem 0 1.3em; min-height: 3.5rem; }
  .btn--app i { width: 2.5rem; height: 2.5rem; }
  .appstore { gap: .75rem; padding: .6rem 1.4rem .6rem 1rem; min-height: 3.6rem; }
  .appstore svg { width: 1.75rem; height: 1.75rem; }

  /* Hero: plat i botons més grans */
  .hero__inner { max-width: 93.75rem; }
  .hero__stage { --s: min(25vw, 42vh, 32rem); }
  .hero__cta { gap: .9rem; min-height: 3.6rem; padding: 0 .5rem 0 1.4rem; }
  .hero__cta i { width: 2.6rem; height: 2.6rem; }

  /* Història: text i foto ocupen la pantalla */
  .is-world .story__bg { width: min(36vw, 90vh); }
  .is-world .chapter { max-width: min(52vw, 56rem); }
  .is-world .story__dots { gap: .6rem; }
  .is-world .story__dots button { width: 2.1rem; height: .65rem; }
  .is-world .story__dots button.on { width: 3.5rem; }

  /* Procés: targetes més grans */
  .is-world .process__head { width: clamp(360px, 32vw, 37.5rem); }
  .is-world .process__track { gap: 3vw; padding-top: 4.5rem; }
  .is-world .step { width: clamp(270px, min(24vw, 54vh), 28rem); }
  .is-world .step--cta { width: clamp(320px, 26vw, 28.75rem); }
  .is-world .process__bar { height: .9rem; }
  .step { gap: 1rem; padding: .75rem .75rem 1.4rem; }
  .step__num { width: 4rem; height: 4rem; top: -1.1rem; }
  .process__meta span { padding: .4rem .9rem; }

  /* Ingredients */
  .ingredients__pin { gap: 3.5rem; }
  .orbit { width: min(100%, 40rem, 80vh); }
  .orbit__items li { padding: .55rem 1rem; }
  .ingredients__lock { gap: .75rem; padding: .9rem 1.1rem; }

  /* App: mòbil i llista més grans */
  .app__pin { padding-block: 5.25rem 1.75rem; gap: 4rem; }
  .features { max-width: 34rem; gap: 1.6vh; }
  .features li { padding: min(1.6vh, 1rem) 1.1rem; }
  .phone { width: clamp(220px, min(24vw, 40vh), 22rem); }

  /* Noltros ho fem: títol i botons a l'escala de la resta */
  .cook h2 { font-size: min(8.5vw, 9.5rem); }
  .cook__actions .btn { min-height: 3.75rem; padding: 0 1.6em; font-size: 1.1rem; }

  /* Peu i pàgines legals */
  .footer { padding-top: 3rem; }
  .legal { max-width: 57.5rem; }
}

/* ==========================================================
   HERO A ESCRIPTORI: quiet en entrar, viu en passar-hi el ratolí
   (individual transforms: es combinen amb el transform que posa GSAP en fer scroll)
   ========================================================== */
@media (min-width: 900px) and (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  /* Lletres del títol: la que toques bota i s'inclina, i torna amb un rebot */
  .hero__line .ch {
    pointer-events: auto; cursor: default;
    transition: translate .5s cubic-bezier(.3, 1.9, .5, 1), rotate .5s cubic-bezier(.3, 1.9, .5, 1);
  }
  /* !important: GSAP posa translate/rotate/scale: none en línia als elements que anima */
  .hero__line .ch:hover { translate: 0 -.12em !important; rotate: -7deg !important; transition-duration: .25s; }
  .hero__line .ch:nth-child(even):hover { rotate: 7deg !important; }

  /* Adhesius: quiets; en passar-hi, una sacsejada i creixen un poc */
  .sticker-pos { animation: none; rotate: calc(var(--r) * 1deg); }
  .sticker-pos:hover:not(.is-dragging) { animation: sticker-shake .55s cubic-bezier(.3, 1.6, .5, 1); }
  .sticker { transition: scale .3s cubic-bezier(.3, 1.8, .5, 1); }
  .sticker-pos:hover .sticker { scale: 1.08 !important; }
  @keyframes sticker-shake {
    0%, 100% { rotate: calc(var(--r) * 1deg); }
    25% { rotate: calc(var(--r) * 1deg - 9deg); }
    60% { rotate: calc(var(--r) * 1deg + 6deg); }
  }

  /* Plat: gira un poc i s'acosta */
  .hero__pot { transition: rotate .6s cubic-bezier(.3, 1.6, .5, 1), scale .6s cubic-bezier(.3, 1.6, .5, 1); }
  .hero__pot:hover { rotate: -8deg !important; scale: 1.03 !important; }
}

/* ==========================================================
   SPLASH d'entrada (index.html + main.js)
   Tapa la pàgina mentre carreguen fonts i fotos; després puja com una cortina.
   Si el JS no arriba, s'amaga sola amb CSS als 4,5 s.
   ========================================================== */
.splash {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 1px 1px, rgba(255, 244, 222, .16) 1.5px, transparent 0) 0 0 / 22px 22px,
    var(--blau);
  color: var(--crema);
  border-bottom: 6px solid var(--ink);
  animation: splash-fallback .6s 4.5s var(--ease) forwards;
}
.no-splash .splash { display: none; }
.splash__inner { display: grid; justify-items: center; gap: clamp(10px, 2vh, 22px); text-align: center; }
.splash__logo {
  width: clamp(96px, 14vh, 150px); height: auto;
  animation: splash-spin 1.6s cubic-bezier(.5, 0, .3, 1) infinite;
}
.splash__title {
  margin: 0; font-family: var(--title); font-weight: 800; text-transform: uppercase; line-height: .85;
  font-size: clamp(3.2rem, 12vw, 9rem); letter-spacing: -.05em;
  font-variation-settings: "opsz" 96, "wdth" 75;
}
.splash__alt { color: var(--groc); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; }
/* lletra a lletra, com el títol del hero (que les separa per animar-les): així l'espaiat és idèntic */
.splash__title .ch { display: inline-block; }
.splash__sub { margin: 0; font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: .04em; font-size: .85rem; }
@keyframes splash-spin { 0% { rotate: 0deg; } 60%, 100% { rotate: 360deg; } }
@keyframes splash-fallback { to { translate: 0 -100%; visibility: hidden; } }
