/* ScrollOff — web. Gairebé negre, Public Sans i daurat. Moviment amb GSAP (app.js). */
:root {
  --bg: #0B0B0C;
  --surface: #161618;
  --surface-2: #202023;
  --line: #2A2A2E;
  --ink: #F4F3EF;
  --muted: #C6C2B8;
  --accent: #E0AC26;
  --gold-grad: linear-gradient(135deg, #FFEDB3 0%, #EDBE45 45%, #C98F26 100%);
  --on-accent: #0B0B0C;
  --accent-deep: #B88A12;

  --font: 'Public Sans', Arial, sans-serif;
  --s1: clamp(64px, 11vw, 196px);
  --s2: clamp(44px, 6.4vw, 112px);
  --s3: clamp(28px, 3.2vw, 52px);
  --s4: 17px;
  --s5: 13px;
  --margin: clamp(20px, 4vw, 64px);
  --radius: 28px;
  --gap-section: clamp(120px, 16vw, 260px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
html:not(.lenis) { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: var(--s4); line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--on-accent); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold-grad); color: var(--on-accent); padding: 10px 16px; border-radius: 999px; z-index: 50; }
.skip:focus { left: 8px; }

/* Paraules partides per animar-les (app.js) */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.wi { display: inline-block; will-change: transform; }

.kicker { font-size: 15px; font-weight: 700; letter-spacing: .02em; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; margin-bottom: 18px; }
.h2 { font-size: var(--s2); font-weight: 800; line-height: .98; letter-spacing: -0.045em; }

/* Botons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 54px; padding: 0 28px; border-radius: 999px; border: 0;
  background: var(--gold-grad); color: var(--on-accent); font-weight: 800; font-size: 17px; text-decoration: none;
  transition: background-color .2s, scale .25s var(--ease-spring);
}
.btn:hover { background: #EDBB37; }
.btn:active { scale: .96; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 15px; }
.btn-dark { background: var(--bg); color: var(--ink); width: 100%; }
.btn-dark:hover { background: #26262A; }
.btn[disabled] { opacity: .6; cursor: progress; }
.text-link { background: none; border: 0; padding: 0; font-weight: 700; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; text-decoration-color: rgba(244,243,239,.35); transition: text-decoration-color .2s; }
.text-link:hover { text-decoration-color: var(--accent); }

/* Barra de progrés i capçalera */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 40; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--gold-grad); transform: scaleX(0); transform-origin: 0 50%; }
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 30; display: flex; align-items: center; gap: 20px;
  padding: 16px var(--margin); transition: background-color .4s, padding .4s, border-color .4s; border-bottom: 1px solid transparent;
}
.top.scrolled { background: rgba(11,11,12,.72); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px); padding-block: 10px; border-color: rgba(255,255,255,.06); }
.wordmark { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 21px; letter-spacing: -0.02em; }
.wordmark img { filter: brightness(0) invert(1); }
.wordmark b { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; font-weight: 400; }
.top-links { display: flex; gap: 26px; margin-left: auto; font-size: 15px; font-weight: 600; }
.top-links a { text-decoration: none; color: var(--muted); transition: color .2s; }
.top-links a:hover { color: var(--ink); }
.langs { display: flex; gap: 2px; background: var(--surface); padding: 3px; border-radius: 999px; }
.langs button { border: 0; background: none; color: var(--muted); font-size: 12px; font-weight: 800; min-width: 40px; min-height: 34px; border-radius: 999px; transition: background-color .25s, color .25s; }
.langs button:hover { color: var(--ink); }
.langs button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

/* ============ 0. El logo es forma dins del hero (4 s) ============
   1) es dibuixa el cercle, 2) entra la meitat esquerra del diamant, 3) la dreta,
   4) apareix el titular. Mentre es forma (has-intro) la pàgina no es pot moure ni saltar. */
.has-intro, .has-intro body { overflow: hidden; }
.hero-mark { width: clamp(120px, 14vw, 190px); height: auto; overflow: visible; margin-bottom: clamp(22px, 4.5vh, 44px); animation: mark-rise 1.3s var(--ease-out) 3.9s both; }
@keyframes mark-rise { from { transform: translateY(var(--shift, 0px)) scale(var(--big, 2.6)); } to { transform: none; } }
.hero-mark { transform-origin: 50% 50%; }
/* Mentre es forma el logo no hi ha res més: ni capçalera ni barra */
.top { transition: background-color .4s, padding .4s, border-color .4s, opacity .9s var(--ease-out); }
.progress { transition: opacity .9s var(--ease-out); }
.has-intro .top, .has-intro .progress { opacity: 0; pointer-events: none; }
.im-c { fill: none; stroke: #ECEBE6; stroke-width: 1.8; stroke-dasharray: 298; stroke-dashoffset: 298; transform: rotate(-90deg); transform-origin: 50px 50px; animation: im-draw 1.9s cubic-bezier(.65, 0, .35, 1) .1s forwards; }
.im-l, .im-r { transform-box: fill-box; transform-origin: center; opacity: 0; }
.im-l { animation: im-left 1.4s cubic-bezier(.22, 1, .36, 1) 1.5s forwards; }
.im-r { animation: im-right 1.4s cubic-bezier(.22, 1, .36, 1) 2.5s forwards; }
@keyframes im-draw { to { stroke-dashoffset: 0; } }
@keyframes im-left { from { opacity: 0; transform: translateX(-18%) scale(.55); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes im-right { from { opacity: 0; transform: translateX(18%) scale(.55); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.hero-in { animation: hero-in 1.2s var(--ease-out) both; }
.hero .kicker.hero-in { animation-delay: 3.9s; }
.hero-title.hero-in { animation-delay: 4.05s; }
.hero-p.hero-in { animation-delay: 4.3s; }
.hero-actions.hero-in { animation-delay: 4.5s; }
.scroll-cue.hero-in { animation-name: hero-in-cue; animation-delay: 5s; }
@keyframes hero-in { from { opacity: 0; transform: translateY(26px); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes hero-in-cue { from { opacity: 0; } to { opacity: 1; } }

/* ============ 1. Hero ============ */
.hero { position: relative; min-height: 100svh; padding: 110px var(--margin) 96px; display: flex; align-items: center; justify-content: center; text-align: center; }
.hero-copy { min-width: 0; position: relative; z-index: 3; width: 100%; max-width: 1200px; display: flex; flex-direction: column; align-items: center; }
.hero-title { font-size: clamp(40px, 7.2vw, 124px); font-weight: 900; line-height: .96; letter-spacing: -0.05em; max-width: 14ch; text-wrap: balance; }
.hero-p { margin: 28px auto 0; color: var(--muted); font-size: clamp(17px, 1.5vw, 22px); line-height: 1.5; max-width: 38ch; text-wrap: balance; }
.hero-actions { margin-top: 34px; display: flex; align-items: center; justify-content: center; gap: 12px 28px; flex-wrap: wrap; }
.stage { position: relative; min-width: 0; display: grid; place-items: center; perspective: 1600px; min-height: 640px; }
.floats { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.float-n {
  position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; width: max-content; max-width: 300px;
  background: rgba(32,32,35,.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.07); border-radius: 18px; font-size: 13px; line-height: 1.3; color: var(--ink);
  box-shadow: 0 20px 40px rgba(0,0,0,.45);
}
.float-n b { display: block; font-size: 13px; }
.float-n span span { color: var(--muted); }
.fi { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; }
.f1 { top: 8%; left: 2%; }
.f2 { top: 34%; right: 0; }
.f3 { bottom: 24%; left: 0; }
.f4 { bottom: 6%; right: 0%; }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; translate: -50% 0; display: grid; justify-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.scroll-cue i { width: 2px; height: 46px; background: linear-gradient(var(--accent), transparent); transform-origin: top; animation: cue 1.8s var(--ease-out) infinite; }
@keyframes cue { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* El mòbil (només CSS, sense fotos) */
.phone {
  position: relative; width: 340px; aspect-ratio: 9 / 19; border-radius: 56px; padding: 11px;
  background: linear-gradient(145deg, #2C2C30, #0F0F11 40%, #1C1C1F);
  box-shadow: inset 0 0 0 1.5px #3A3A3F, 0 60px 90px -20px rgba(0,0,0,.75), 0 30px 40px -30px rgba(0,0,0,.8);
  transform-style: preserve-3d;
}
.hero-phone { transform: rotateX(var(--rx, 8deg)) rotateY(var(--ry, -16deg)) rotateZ(2deg); }
.phone-screen { position: relative; height: 100%; border-radius: 46px; overflow: hidden; background: #000; padding: 52px 14px 14px; }
.island { position: absolute; top: 12px; left: 50%; translate: -50% 0; width: 104px; height: 30px; border-radius: 20px; background: #000; box-shadow: inset 0 0 0 1px #1A1A1C; z-index: 3; }
.demo-status { position: absolute; top: 16px; left: 28px; right: 26px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; z-index: 2; }
.demo-dots { display: flex; gap: 3px; }
.demo-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--ink); }
.app-row { display: grid; grid-template-columns: 40px 1fr auto; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 10px 8px; border-radius: 16px; transition: background-color .2s; }
.app-row:hover { background: var(--surface); }
.app-icon { grid-row: span 2; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; font-size: 16px; font-weight: 800; color: #fff; }
.app-tiktok { background: #26262A; color: #fff; }
.app-insta { background: #C13584; color: #fff; }
.app-yt { background: #E62117; color: #fff; }
.app-wa { background: #1FA855; color: #fff; }
.app-sp { background: #1DB954; color: #000; }
.app-name { font-weight: 700; font-size: 16px; }
.app-time { grid-column: 2; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.app-open { grid-row: 1 / span 2; grid-column: 3; border: 0; border-radius: 999px; padding: 7px 16px; min-height: 36px; background: var(--ink); color: var(--bg); font-weight: 800; font-size: 13px; transition: scale .25s var(--ease-spring); }
.app-open:hover { scale: 1.06; }
.app-open:active { scale: .92; }
.app-open.pulse { animation: pulse 1.1s var(--ease-out) 2; }
@keyframes pulse { 0%, 100% { scale: 1; } 40% { scale: 1.14; } }
.demo-hint { font-size: 12px; color: var(--muted); padding: 8px 8px 14px; }
.demo-hint::before { content: '↑ '; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.widget { margin: 2px 4px 0; background: var(--surface); border-radius: 26px; padding: 18px 20px; display: grid; gap: 3px; }
.widget-top { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; }
.widget-top img { filter: brightness(0) invert(1); }
.widget-n { margin-top: 8px; font-size: 34px; font-weight: 900; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.widget-l { font-size: 12px; color: var(--muted); }
.widget-f { margin-top: 6px; font-size: 12px; }

/* L'Xcape dins del mòbil */
.xcape { position: absolute; inset: 0; background: #000; padding: 64px 20px 22px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; z-index: 2; animation: x-in .6s var(--ease-out) both; }
.xcape.out { animation: x-out .35s var(--ease-out) both; }
@keyframes x-in { from { opacity: 0; transform: translateY(40px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes x-out { to { opacity: 0; transform: translateY(30px) scale(.97); } }
.xcape-before { font-size: 12px; color: var(--muted); align-self: flex-start; }
.breath { position: relative; width: 150px; height: 150px; display: grid; place-items: center; margin: 14px 0 4px; }
.breath i { position: absolute; inset: 22px; border-radius: 50%; border: 1.5px solid rgba(224,172,38,.55); animation: breathe 5s ease-in-out infinite; }
.breath i + i { inset: 6px; border: 0; background: rgba(224,172,38,.10); animation-delay: -.15s; }
.breath img { position: relative; filter: brightness(0) invert(1); animation: breathe-mark 5s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scale(.72); opacity: .5; } 50% { transform: scale(1); opacity: 1; } }
@keyframes breathe-mark { 50% { transform: scale(1.08); } }
.xcape-phrase { font-size: 20px; font-weight: 700; line-height: 1.3; max-width: 20ch; min-height: 2.6em; animation: phrase-in .7s var(--ease-out) both; }
@keyframes phrase-in { from { opacity: 0; transform: translateY(10px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
.xcape-actions { margin-top: auto; width: 100%; display: grid; gap: 8px; }
.x-close, .x-enter { min-height: 48px; border-radius: 999px; border: 0; font-weight: 800; font-size: 15px; transition: scale .25s var(--ease-spring); }
.x-close { background: var(--ink); color: var(--bg); }
.x-close:active, .x-enter:active { scale: .95; }
.x-enter { position: relative; overflow: hidden; background: var(--surface-2); color: var(--muted); }
.x-enter:disabled { cursor: progress; }
.x-ring { position: absolute; inset: 0 auto 0 0; width: 100%; background: rgba(224,172,38,.22); transform-origin: left; transform: scaleX(0); }
.x-enter.counting .x-ring { animation: fill 5s linear forwards; }
@keyframes fill { to { transform: scaleX(1); } }
.x-enter span:last-child { position: relative; }
.xcape-pick { width: 100%; margin-top: auto; animation: phrase-in .45s var(--ease-out) both; }
.xcape-pick p { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.pick-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.pick-row button { min-height: 46px; border-radius: 12px; border: 0; background: var(--surface-2); font-weight: 800; font-size: 12px; transition: background-color .2s, scale .2s var(--ease-spring); }
.pick-row button:hover { background: var(--gold-grad); color: var(--on-accent); scale: 1.05; }
.xcape-done { margin-top: auto; width: 100%; display: grid; gap: 14px; justify-items: center; animation: phrase-in .5s var(--ease-out) both; }
.done-text { font-size: 16px; font-weight: 700; line-height: 1.4; }
.done-text.win { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }

/* ============ 2. La frase ============ */
.say { min-height: 100svh; display: grid; place-items: center; padding: 0 var(--margin); }
.say-text { font-size: clamp(36px, 5.2vw, 92px); font-weight: 800; line-height: 1.08; letter-spacing: -0.04em; max-width: 18ch; }
.say-text .wi { color: var(--ink); }

/* ============ 3. Calculadora i l'any ============ */
.calc { padding: var(--gap-section) var(--margin) 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px 64px; align-items: end; }
.calc-head .h2 { max-width: 9ch; }
.slider { margin-top: 36px; width: min(480px, 100%); background: var(--surface); border-radius: 22px; padding: 20px 22px; }
.slider label { display: flex; justify-content: space-between; gap: 12px; font-size: 16px; color: var(--muted); }
.slider output { color: var(--ink); font-weight: 800; font-variant-numeric: tabular-nums; }
.slider input[type=range] { width: 100%; margin: 14px 0 4px; accent-color: var(--accent); height: 32px; cursor: grab; }
.figure { justify-self: end; font-size: clamp(140px, 22vw, 380px); font-weight: 900; line-height: .78; letter-spacing: -0.07em; font-variant-numeric: tabular-nums; display: flex; align-items: baseline; gap: .08em; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.figure .unit { font-size: var(--s3); letter-spacing: -0.02em; font-weight: 800; color: var(--ink); }
.year { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(53, 1fr); grid-auto-flow: column; grid-template-rows: repeat(7, auto); gap: clamp(2px, .35vw, 5px); margin-top: 40px; }
.year i { aspect-ratio: 1; border-radius: 3px; background: var(--surface-2); transition: background-color .35s, transform .35s var(--ease-spring); }
.year i.on { background: var(--gold-grad); }
.year.intro i { transition-delay: calc(var(--i) * 3ms); }
.year-cap { grid-column: 1 / 2; color: var(--muted); font-size: 16px; max-width: 46ch; }
.calc-how { grid-column: 2 / 3; justify-self: end; font-size: 16px; color: var(--muted); max-width: 44ch; text-align: right; }

/* ============ 4. Dades en horitzontal ============ */
.data { margin-top: var(--gap-section); }
.data-pin { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: 56px; overflow: hidden; padding: 80px 0; }
.data-head { padding: 0 var(--margin); }
.data-track { display: flex; gap: 20px; padding: 0 var(--margin); width: max-content; }
.stat { width: min(560px, 80vw); min-height: 440px; background: var(--surface); border-radius: var(--radius); padding: 40px; display: flex; flex-direction: column; gap: 18px; }
.stat-n { font-size: clamp(64px, 8vw, 132px); font-weight: 900; line-height: .9; letter-spacing: -0.06em; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; font-variant-numeric: tabular-nums; }
.stat-t { font-size: 24px; line-height: 1.35; font-weight: 600; max-width: 22ch; }
.stat-s { margin-top: auto; font-size: 14px; color: var(--muted); text-underline-offset: 4px; text-decoration-color: rgba(169,166,157,.4); }
.stat-gold { background: var(--gold-grad); color: var(--on-accent); }
.stat-gold .stat-n { color: var(--on-accent); }
.stat-gold .stat-s { color: #3A2D08; }

/* ============ 5. Com funciona ============ */
.how { margin-top: var(--gap-section); padding: 0 var(--margin); }
.how-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; margin-top: 40px; }
.step { min-height: 92svh; display: flex; flex-direction: column; justify-content: center; gap: 22px; opacity: .25; transition: opacity .6s var(--ease-out); }
.step.active { opacity: 1; }
.step-n { font-size: 15px; font-weight: 800; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; font-variant-numeric: tabular-nums; }
.step-h { font-size: var(--s3); font-weight: 800; line-height: 1.08; letter-spacing: -0.03em; max-width: 16ch; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border-radius: 999px; padding: 9px 16px; font-size: 14px; font-weight: 700; background: var(--surface); color: var(--muted); border: 1px solid var(--line); }
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 620px; }
.choice { border-radius: 22px; padding: 24px; font-size: 16px; line-height: 1.45; transition: transform .4s var(--ease-spring); }
.choice:hover { transform: translateY(-4px); }
.choice-h { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.choice-close { background: var(--gold-grad); color: var(--on-accent); }
.choice-enter { background: var(--surface); }
.choice-enter p:last-child { color: var(--muted); }
.how-phone-wrap { position: sticky; top: 0; height: 100svh; display: grid; place-items: center; align-self: start; }
.how-phone { width: 320px; }
.scr { position: absolute; inset: 0; padding: 70px 18px 22px; display: flex; flex-direction: column; opacity: 0; transform: scale(.94) translateY(20px); transition: opacity .55s var(--ease-out), transform .7s var(--ease-out); pointer-events: none; }
.how-phone[data-at="1"] .scr-1, .how-phone[data-at="2"] .scr-2, .how-phone[data-at="3"] .scr-3 { opacity: 1; transform: none; }
.scr-title { font-size: 22px; font-weight: 800; margin-bottom: 18px; }
.pick-list { display: grid; gap: 8px; }
.pl-row { display: flex; align-items: center; gap: 12px; background: var(--surface); border-radius: 16px; padding: 10px 12px; font-weight: 700; font-size: 15px; }
.pl-row .app-icon { width: 34px; height: 34px; font-size: 14px; border-radius: 10px; }
.sw { margin-left: auto; width: 46px; height: 28px; border-radius: 999px; background: #3A3A3F; position: relative; transition: background-color .3s calc(var(--d, 0) * .18s + .3s); }
.sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .45s var(--ease-spring) calc(var(--d, 0) * .18s + .3s); }
.how-phone[data-at="1"] .pl-row:not(.off) .sw { background: var(--gold-grad); }
.how-phone[data-at="1"] .pl-row:not(.off) .sw::after { transform: translateX(18px); }
.scr-2 { align-items: center; text-align: center; gap: 12px; }
.scr-2 .xcape-before { align-self: center; }
.fake-btn { margin-top: auto; width: 100%; min-height: 48px; border-radius: 999px; background: var(--ink); color: var(--bg); font-weight: 800; font-size: 15px; display: grid; place-items: center; }
.scr-3 { align-items: center; justify-content: center; text-align: center; gap: 10px; }
.win-check circle { fill: none; stroke: url(#goldG); stroke-width: 6; stroke-dasharray: 327; stroke-dashoffset: 327; transition: stroke-dashoffset 1s var(--ease-out) .2s; }
.win-check path { fill: none; stroke: url(#goldG); stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 70; stroke-dashoffset: 70; transition: stroke-dashoffset .6s var(--ease-out) .9s; }
.how-phone[data-at="3"] .win-check circle, .dialog-done .win-check circle { stroke-dashoffset: 0; }
.how-phone[data-at="3"] .win-check path, .dialog-done .win-check path { stroke-dashoffset: 0; }
.win-h { font-size: 26px; font-weight: 900; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; letter-spacing: -0.02em; margin-top: 8px; }
.win-s { font-size: 15px; color: var(--muted); }
.win-days { display: flex; gap: 6px; margin-top: 14px; }
.win-days i { width: 22px; height: 22px; border-radius: 7px; background: var(--gold-grad); }
.win-days i.todo { background: var(--surface-2); }
.win-days i.new { transform: scale(0); transition: transform .5s var(--ease-spring) 1.3s; }
.how-phone[data-at="3"] .win-days i.new { transform: scale(1); }
.how-dots { position: absolute; right: 0; top: 50%; translate: 0 -50%; display: grid; gap: 10px; }
.how-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); transition: background-color .3s, transform .3s; }
.how-grid[data-at="1"] .how-dots i:nth-child(1), .how-grid[data-at="2"] .how-dots i:nth-child(2), .how-grid[data-at="3"] .how-dots i:nth-child(3) { background: var(--gold-grad); transform: scale(1.4); }

/* ============ 6. Avisos ============ */
.nudge { margin-top: var(--gap-section); padding: 0 var(--margin); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
.nudge-head p { margin-top: 24px; color: var(--muted); font-size: 20px; max-width: 34ch; }
.nudge-panel { min-height: 560px; border-radius: var(--radius); overflow: hidden; display: grid; grid-template-columns: 62fr 38fr; background: var(--surface); }
.nudge-stage { background: linear-gradient(160deg, #3B2F18, #191510 70%); padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.lock-time { font-size: clamp(52px, 5vw, 84px); font-weight: 300; text-align: center; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; color: #F6F2E6; }
.notif { background: rgba(246,242,230,.95); color: #151515; border-radius: 22px; padding: 14px 16px; box-shadow: 0 16px 34px rgba(0,0,0,.35); }
.notif.pop { animation: notif-in .7s var(--ease-spring) both; }
@keyframes notif-in { from { opacity: 0; transform: translateY(-48px) scale(.9); } to { opacity: 1; transform: none; } }
.notif-top { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #555; }
.notif-top img { filter: brightness(0); }
.notif-top span:first-of-type { font-weight: 800; color: #151515; }
.notif-text { margin-top: 6px; font-size: 16px; line-height: 1.4; font-weight: 600; }
.notif-off { font-size: 16px; color: #D9D2C0; text-align: center; padding: 20px 0; }
.usage { margin-top: auto; display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; font-size: 14px; font-weight: 700; color: #F6F2E6; }
.usage-bar { height: 8px; background: rgba(246,242,230,.15); border-radius: 999px; overflow: hidden; }
.usage-bar span { display: block; height: 100%; width: 66%; background: var(--gold-grad); border-radius: 999px; transition: width .8s var(--ease-out); }
.nudge-controls { padding: 20px; display: flex; flex-direction: column; }
.ctl { min-height: 64px; display: flex; flex-direction: column; justify-content: center; gap: 8px; font-size: 13px; color: var(--muted); padding: 8px 0; }
.ctl-row { flex-direction: row; align-items: center; justify-content: space-between; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; background: var(--surface-2); border-radius: 12px; padding: 4px; }
.seg button { border: 0; background: none; min-height: 38px; border-radius: 9px; font-size: 13px; font-weight: 800; color: var(--muted); transition: background-color .25s, color .25s, scale .2s; }
.seg button:active { scale: .94; }
.seg button[aria-checked="true"] { background: var(--ink); color: var(--bg); }
.toggle { width: 52px; height: 32px; border-radius: 999px; border: 0; background: #3A3A3F; position: relative; transition: background-color .25s; }
.toggle span { position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .35s var(--ease-spring); }
.toggle[aria-checked="true"] { background: var(--gold-grad); }
.toggle[aria-checked="true"] span { transform: translateX(20px); }
.round { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--surface-2); font-size: 20px; font-weight: 800; transition: transform .5s var(--ease-spring), background-color .2s; }
.round:hover { background: #2F2F34; }
.round.spin { transform: rotate(360deg); }
.nudge-only { margin-top: auto; font-size: 13px; color: var(--muted); }

/* ============ 7. Graella de funcions ============ */
.bento-sec { margin-top: var(--gap-section); padding: 0 var(--margin); }
.bento { margin-top: 56px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(300px, auto); gap: 16px; perspective: 1400px; }
.card { position: relative; background: var(--surface); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; transform-style: preserve-3d; transition: background-color .3s; }
.card:hover { background: #1B1B1E; }
.card h3 { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; margin-top: auto; }
.card p { font-size: 15px; line-height: 1.5; color: var(--muted); max-width: 42ch; }
.viz { flex: 1; min-height: 130px; display: grid; place-items: center; }
.c-xcape { grid-column: span 2; grid-row: span 2; background: #000; border: 1px solid var(--line); }
.c-xcape h3 { font-size: 40px; letter-spacing: -0.035em; }
.c-xcape p { font-size: 18px; }
.c-rutines { grid-column: span 2; }
.breath.big { width: 260px; height: 260px; }
.breath.big i { inset: 40px; }
.breath.big i + i { inset: 8px; }
/* Les mini animacions només corren quan la peça és a la pantalla (.play) */
.card:not(.play) * { animation-play-state: paused !important; }
.viz-ring { position: relative; }
.viz-ring svg { width: 130px; height: 130px; transform: rotate(-90deg); }
.viz-ring circle { fill: none; stroke-width: 12; }
.viz-ring .trk { stroke: rgba(224,172,38,.16); }
.viz-ring .arc { stroke: url(#goldG); stroke-linecap: round; stroke-dasharray: 302; stroke-dashoffset: 302; transition: stroke-dashoffset 1.6s var(--ease-out) .2s; }
.card.play .viz-ring .arc { stroke-dashoffset: 210; }
.viz-ring span { position: absolute; font-size: 22px; font-weight: 900; text-align: center; line-height: 1; }
.viz-ring small { display: block; font-size: 12px; color: var(--muted); font-weight: 600; margin-top: 4px; }
.viz-focus { grid-auto-flow: column; gap: 8px; }
.viz-focus b { width: 58px; height: 74px; border-radius: 16px; background: var(--surface-2); display: grid; place-items: center; font-size: 22px; font-weight: 900; }
.viz-focus b.on { background: var(--gold-grad); color: var(--on-accent); animation: tap 2.6s var(--ease-out) infinite; }
@keyframes tap { 0%, 60%, 100% { scale: 1; } 70% { scale: .88; } 80% { scale: 1.06; } }
.viz-bars { grid-auto-flow: column; align-items: end; gap: 8px; height: 130px; place-items: end center; }
.viz-bars i { width: 16px; height: calc(var(--h) * 120px); border-radius: 6px; background: var(--ink); transform: scaleY(0); transform-origin: bottom; transition: transform .9s var(--ease-spring); }
.viz-bars i:nth-child(n) { transition-delay: calc(var(--n, 0) * 70ms); }
.viz-bars i:nth-child(2) { --n: 1; } .viz-bars i:nth-child(3) { --n: 2; } .viz-bars i:nth-child(4) { --n: 3; } .viz-bars i:nth-child(5) { --n: 4; } .viz-bars i:nth-child(6) { --n: 5; } .viz-bars i:nth-child(7) { --n: 6; }
.viz-bars i:nth-child(2), .viz-bars i:nth-child(3), .viz-bars i:nth-child(5), .viz-bars i:nth-child(6) { background: var(--gold-grad); }
.card.play .viz-bars i { transform: scaleY(1); }
.viz-board { display: grid; gap: 6px; width: 100%; place-items: stretch; align-content: center; }
.br { display: flex; align-items: center; gap: 10px; background: var(--surface-2); border-radius: 12px; padding: 8px 10px; font-size: 13px; font-weight: 700; }
.br b { width: 24px; height: 24px; border-radius: 50%; background: #2F2F34; display: grid; place-items: center; font-size: 12px; }
.br span { flex: 1; height: 8px; border-radius: 4px; background: #2F2F34; }
.br em { font-style: normal; color: var(--muted); font-variant-numeric: tabular-nums; }
.br.me { background: rgba(224,172,38,.14); animation: rise 3.2s var(--ease-out) infinite; }
.br.me b { background: var(--gold-grad); color: var(--on-accent); }
.br.me em { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
@keyframes rise { 0%, 15% { transform: translateY(72px); } 35%, 85% { transform: none; } 100% { transform: none; } }
.viz-route { width: 100%; display: grid; gap: 22px; }
.viz-route .days { display: flex; gap: 8px; }
.viz-route .days b { flex: 1; aspect-ratio: 1; max-width: 48px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; background: var(--surface-2); color: var(--muted); animation: day 3.5s var(--ease-out) infinite; }
.viz-route .days b:nth-child(2) { animation-delay: .1s; } .viz-route .days b:nth-child(3) { animation-delay: .2s; } .viz-route .days b:nth-child(4) { animation-delay: .3s; } .viz-route .days b:nth-child(5) { animation-delay: .4s; } .viz-route .days b:nth-child(6) { animation-delay: .5s; } .viz-route .days b:nth-child(7) { animation-delay: .6s; }
@keyframes day { 0%, 10% { background: var(--surface-2); color: var(--muted); } 25%, 85% { background: var(--ink); color: var(--bg); } 100% { background: var(--surface-2); color: var(--muted); } }
.viz-route .line { display: flex; align-items: center; gap: 14px; font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }
.viz-route .bar { flex: 1; height: 12px; border-radius: 999px; background: var(--surface-2); overflow: hidden; display: block; }
.viz-route .fill { display: block; height: 100%; width: 100%; background: var(--gold-grad); border-radius: 999px; transform-origin: left; animation: night 3.5s var(--ease-out) infinite; }
@keyframes night { 0% { transform: scaleX(0); } 70%, 100% { transform: scaleX(1); } }
.viz-badge .badge { width: 110px; height: 110px; border-radius: 50%; display: grid; place-items: center; color: var(--on-accent); background: var(--gold-grad); position: relative; overflow: hidden; animation: spin3d 4s var(--ease-out) infinite; }
.viz-badge .badge::after { content: ''; position: absolute; inset: -40%; background: linear-gradient(110deg, transparent 40%, rgba(255,255,255,.55) 50%, transparent 60%); transform: translateX(-80%); animation: shine 4s ease-in-out infinite; }
@keyframes spin3d { 0%, 40% { transform: rotateY(0); } 60%, 100% { transform: rotateY(360deg); } }
@keyframes shine { 0%, 55% { transform: translateX(-80%); } 80%, 100% { transform: translateX(80%); } }
.viz-erase { position: relative; width: 100%; display: grid; gap: 8px; place-items: stretch; align-content: center; }
.viz-erase i { height: 14px; border-radius: 7px; background: var(--surface-2); transform-origin: right; animation: erase 4s var(--ease-out) infinite; }
.viz-erase i:nth-child(2) { width: 80%; animation-delay: .12s; } .viz-erase i:nth-child(3) { width: 60%; animation-delay: .24s; }
.viz-erase b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 64px; font-weight: 900; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; opacity: 0; animation: zero 4s var(--ease-out) infinite; }
@keyframes erase { 0%, 30% { transform: scaleX(1); } 50%, 85% { transform: scaleX(0); } 100% { transform: scaleX(1); } }
@keyframes zero { 0%, 45% { opacity: 0; transform: scale(.6); } 55%, 80% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; } }

/* ============ 8. Paraules en moviment ============ */
.outside { margin-top: var(--gap-section); overflow: hidden; }
.out-head { padding: 0 var(--margin); }
.marquee { margin-top: 64px; display: grid; gap: 6px; }
.marquee-row { display: flex; width: max-content; font-size: clamp(64px, 10vw, 180px); font-weight: 900; letter-spacing: -0.05em; line-height: 1.02; white-space: nowrap; will-change: transform; }
.marquee-row span { padding-right: .35em; }
.marquee-row span::after { content: '·'; padding-left: .35em; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.marquee-row.ghost { color: transparent; -webkit-text-stroke: 1.5px #4A4840; }
.marquee-row.ghost span::after { color: transparent; }

/* ============ 9. Preguntes ============ */
.faq { margin-top: var(--gap-section); padding: 0 var(--margin); display: grid; grid-template-columns: 4fr 8fr; gap: 40px; align-items: start; }
.faq-title { position: sticky; top: 110px; }
.faq-list { display: grid; gap: 8px; }
.faq details { background: var(--surface); border-radius: 20px; transition: background-color .3s, color .3s; }
.faq summary { list-style: none; cursor: pointer; min-height: 76px; padding: 22px 26px; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 21px; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { position: relative; width: 16px; height: 16px; flex: none; }
.faq summary i::before, .faq summary i::after { content: ''; position: absolute; left: 0; top: 6.5px; width: 16px; height: 3px; background: currentColor; transition: transform .35s var(--ease-spring); }
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] { background: var(--gold-grad); color: var(--on-accent); }
.faq details[open] summary i::after { transform: rotate(0deg); }
.faq details p { padding: 0 26px 26px; font-size: 17px; max-width: 52ch; line-height: 1.55; }
.faq details[open] p { animation: phrase-in .45s var(--ease-out) both; }

/* ============ 10. Tancament ============ */
.cta { margin-top: var(--gap-section); min-height: 100svh; background: var(--gold-grad); color: var(--on-accent); display: grid; grid-template-columns: 6fr 5fr; gap: 40px; padding: 120px var(--margin) 80px; align-items: center; }
.cta-title { font-size: clamp(64px, 11vw, 200px); line-height: .86; font-weight: 900; letter-spacing: -0.06em; }
.cta-copy > p { margin-top: 28px; font-size: 19px; max-width: 40ch; color: #2B2310; }
.dialog { justify-self: end; width: min(460px, 100%); background: #FAFAF8; color: #151515; border-radius: 28px; padding: 32px; box-shadow: 0 30px 60px rgba(0,0,0,.18); }
.dialog-body { display: grid; gap: 14px; }
.dialog-title { font-size: 24px; font-weight: 900; letter-spacing: -0.02em; }
.dialog label { font-size: 13px; font-weight: 700; color: #444; margin-top: 4px; }
.dialog input[type=email] { height: 54px; border-radius: 14px; border: 1px solid #D6D2C6; background: #fff; padding: 0 16px; color: #151515; font-size: 17px; transition: border-color .2s; }
.dialog input[type=email]:focus { border-color: #151515; }
.dialog input[type=email]:focus-visible { outline: 3px solid var(--accent-deep); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.seg-light { background: #ECE8DC; }
.seg-light button { color: #555; }
.seg-light button[aria-checked="true"] { background: #151515; color: #fff; }
.form-msg { min-height: 1.4em; font-size: 14px; font-weight: 600; color: #7A1E12; }
.form-msg.sending { color: #444; }
.dialog-done { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 18px 0; }
.dialog-done p:last-child { color: #555; overflow-wrap: anywhere; }

/* ============ Peu ============ */
.foot { display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px; padding: 8px; }
.tile { background: var(--surface); border-radius: 22px; padding: 24px; min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; }
.t-statement { grid-column: 1 / span 4; font-size: 22px; line-height: 1.35; }
.legal { font-size: 13px; color: var(--muted); }
.t-nav { grid-column: 5 / span 3; justify-content: flex-start; gap: 10px; font-size: 17px; }
.t-nav a { text-decoration: none; transition: color .2s; }
.t-nav a:hover { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.t-time { grid-column: 8 / span 2; font-size: 17px; color: var(--muted); }
.clock { color: var(--ink); font-weight: 800; font-variant-numeric: tabular-nums; }
.t-mail { grid-column: 10 / span 3; font-size: 17px; color: var(--muted); }
.t-mail a { display: block; font-size: 18px; color: var(--ink); font-weight: 700; overflow-wrap: anywhere; }
.t-mail a + a { margin-top: 6px; }
.t-word { grid-column: 1 / span 8; min-height: 340px; background: var(--ink); color: var(--bg); flex-direction: row; justify-content: center; align-items: center; font-size: 10vw; font-weight: 900; letter-spacing: -0.06em; line-height: 1; overflow: hidden; }
.t-word b { color: var(--accent-deep); }
.t-word span { display: inline-block; }
.t-invite { grid-column: 9 / span 4; min-height: 340px; background: var(--gold-grad); color: var(--on-accent); text-decoration: none; font-size: var(--s3); font-weight: 900; letter-spacing: -0.03em; }
.t-invite svg { align-self: flex-end; transition: transform .45s var(--ease-spring); }
.t-invite:hover svg { transform: translate(8px, -8px); }

/* ============ Mòbil ============ */
@media (max-width: 860px) {
  .top { gap: 10px; }
  .top-links { display: none; }
  .langs { margin-left: auto; }
  .btn-sm { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 110px; gap: 48px; }
  .hero-title { font-size: clamp(54px, 15vw, 96px); }
  .stage { min-height: 600px; }
  .phone { width: min(310px, 78vw); }
  .hero-phone { transform: none; }
  .f1 { left: 0; top: 2%; } .f2 { right: 0; top: 26%; } .f3 { left: 0; bottom: 26%; } .f4 { right: 0; bottom: 4%; }
  .float-n { max-width: 210px; font-size: 12px; }
  .scroll-cue { display: none; }
  .say { min-height: 80svh; }
  .calc { grid-template-columns: 1fr; }
  .figure { justify-self: start; font-size: 34vw; }
  .year { grid-template-columns: repeat(27, 1fr); grid-template-rows: repeat(14, auto); }
  .year-cap, .calc-how { grid-column: 1; justify-self: start; text-align: left; }
  .data-pin { min-height: 0; }
  .data-track { flex-direction: column; width: auto; }
  .stat { width: auto; min-height: 0; padding: 30px; }
  .how-grid { grid-template-columns: 1fr; gap: 0; }
  .how-phone-wrap { order: -1; top: 60px; height: auto; padding: 12px 0 18px; z-index: 2; background: var(--bg); }
  .how-phone-wrap::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 40px; background: linear-gradient(var(--bg), transparent); pointer-events: none; }
  .how-phone { width: 150px; border-radius: 34px; padding: 7px; }
  .how-phone .phone-screen { border-radius: 28px; }
  .how-phone .island { width: 50px; height: 16px; top: 8px; }
  .how-phone .scr { padding: 40px 10px 12px; zoom: .5; }
  .step { min-height: 60svh; justify-content: flex-start; padding-top: 40px; }
  .how-dots { display: none; }
  .choices { grid-template-columns: 1fr; }
  .nudge { grid-template-columns: 1fr; gap: 32px; }
  .nudge-panel { grid-template-columns: 1fr; }
  .nudge-stage { min-height: 360px; }
  .bento { grid-template-columns: 1fr; }
  .c-xcape, .c-rutines { grid-column: auto; grid-row: auto; }
  .c-xcape h3 { font-size: 30px; }
  .breath.big { width: 200px; height: 200px; }
  .faq { grid-template-columns: 1fr; }
  .faq-title { position: static; }
  .faq summary { font-size: 17px; min-height: 64px; padding: 18px 20px; }
  .cta { grid-template-columns: 1fr; min-height: 0; padding: 80px 16px; }
  .dialog { justify-self: stretch; width: 100%; }
  .foot { grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; }
  .t-word { grid-column: 1 / -1; min-height: 160px; font-size: 17vw; order: -2; }
  .t-invite { grid-column: 1 / -1; min-height: 140px; order: -1; }
  .t-nav { grid-column: 1; } .t-time { grid-column: 2; }
  .t-mail { grid-column: 1 / -1; min-height: 0; }
  .t-mail a { font-size: 16px; }
  .t-statement { grid-column: 1 / -1; font-size: 18px; min-height: 0; }
  .tile { min-height: 150px; padding: 20px; }
}

/* Mòbil amb GSAP: la secció queda fixada i els passos es relleven al mateix lloc */
@media (max-width: 860px) {
  .how-grid.how-pinned { height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: 24px; margin-top: 0; padding-top: 60px; }
  .how-pinned .how-phone-wrap { position: static; background: none; padding: 0; }
  .how-pinned .how-phone-wrap::after { display: none; }
  .how-pinned .how-phone { width: 168px; margin: 0 auto; }
  .how-pinned .how-steps { position: relative; min-height: 300px; }
  .how-pinned .step { position: absolute; inset: 0 0 auto 0; min-height: 0; padding: 0; opacity: 0; transform: translateY(16px); transition: opacity .45s var(--ease-out), transform .6s var(--ease-out); }
  .how-pinned .step.active { opacity: 1; transform: none; }
}

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

/* ============ Pàgina de privacitat ============ */
.legal-page { max-width: 760px; margin: 0 auto; padding: 40px 20px 80px; }
.legal-page h1 { font-size: clamp(36px, 5vw, 64px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
.legal-page h2 { font-size: 24px; font-weight: 700; margin: 48px 0 12px; }
.legal-page h3 { font-size: 19px; font-weight: 700; margin: 28px 0 8px; }
.legal-page p, .legal-page li { font-size: 17px; line-height: 1.6; }
.legal-page p + p { margin-top: 12px; }
.legal-page ul { list-style: disc; padding-left: 22px; margin: 10px 0; display: grid; gap: 6px; }
.legal-page .updated { margin-top: 12px; color: var(--muted); }
.legal-page table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 16px; }
.legal-page th, .legal-page td { text-align: left; padding: 12px; border-bottom: 1px solid #2E2E33; vertical-align: top; }
.legal-page .back { display: inline-block; margin-top: 56px; }
.top.legal-top { position: static; padding: 28px 20px 0; max-width: 760px; margin: 0 auto; background: none; backdrop-filter: none; }

/* ---- Vídeos reals de l'app dins els mòbils ---- */
.real-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.scr.scr-v { padding: 0; zoom: 1; }
.how-phone .scr.scr-v { padding: 0; zoom: 1; }
.phone-screen { padding: 0; }

/* ============ Versió minimalista ============ */
/* Cómo funciona: una fila per funció, amb el mòbil de veritat al costat del text */
.how-head { margin-bottom: clamp(8px, 3vh, 36px); }
.feats { display: grid; gap: clamp(24px, 6vh, 80px); margin-top: 24px; }
.feat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 6vw, 120px); min-height: 78svh; }
.feat:nth-child(even) .feat-phone { order: 2; }
.feat-phone { display: grid; place-items: center; perspective: 1400px; }
.feat .phone { width: min(320px, 74vw); }
.feat-copy { display: grid; gap: 18px; max-width: 36ch; justify-self: start; }
.feat:nth-child(even) .feat-copy { justify-self: end; }
.feat-p { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.5; color: var(--muted); }

/* Uneix-te a les proves: negre, sense el bloc groc */
.cta { background: #000; color: var(--ink); min-height: 0; padding: clamp(88px, 14vh, 150px) var(--margin); margin-top: var(--gap-section); }
.cta-title { font-size: clamp(56px, 9vw, 150px); }
.cta-copy > p { color: var(--muted); }
.dialog { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.dialog label { color: var(--muted); }
.dialog input[type=email] { background: #000; border-color: #34343A; color: var(--ink); }
.dialog input[type=email]:focus { border-color: #D8A93A; }
.dialog input[type=email]:focus-visible { outline-color: #D8A93A; }
.dialog .btn-dark { background: var(--gold-grad); color: var(--on-accent); }
.dialog .btn-dark:hover { filter: brightness(1.08); background: var(--gold-grad); }
.seg-light { background: #000; }
.seg-light button { color: var(--muted); }
.seg-light button[aria-checked="true"] { background: var(--ink); color: var(--bg); }
.form-msg { color: #FF9C8F; }
.form-msg.sending { color: var(--muted); }
.dialog-done p:last-child { color: var(--muted); }
.dialog .win-check circle, .dialog .win-check path { stroke: url(#goldG); }

/* Peu mínim: només privacitat i contacte */
.foot-min { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; padding: 28px var(--margin) 40px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.foot-min .foot-word { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); }
.foot-min .foot-word b { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; font-weight: 400; }
.foot-min nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot-min a { color: var(--ink); text-decoration: none; font-weight: 600; overflow-wrap: anywhere; }
.foot-min a:hover { text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 860px) {
  .feat { grid-template-columns: 1fr; min-height: 0; gap: 26px; justify-items: center; text-align: center; padding: 30px 0; }
  .feat:nth-child(even) .feat-phone { order: 0; }
  .feat .phone { width: min(260px, 68vw); }
  .feat-copy, .feat:nth-child(even) .feat-copy { justify-self: center; justify-items: center; }
  .cta { grid-template-columns: 1fr; }
  .dialog { justify-self: stretch; }
}

/* ============ Dades: una línia amb un cercle per cada dada ============ */
.data { margin-top: var(--gap-section); }
.data-wrap { padding: 0 var(--margin); }
.data-head { text-align: center; }
.data-head .h2 { max-width: 14ch; margin-inline: auto; text-wrap: balance; }
.timeline { --p: 1; position: relative; display: flex; flex-direction: column; gap: 64px; width: min(900px, 100%); margin: 72px auto 0; padding: 0 0 0 44px; }
.timeline::before, .timeline::after { content: ""; position: absolute; left: 10px; top: 0; bottom: 0; width: 2px; background: var(--line); }
.timeline::after { background: var(--gold-grad); transform: scaleY(var(--p)); transform-origin: 50% 0; }
.tl { --reveal: 1; position: relative; display: grid; grid-template-columns: minmax(180px, .8fr) minmax(0, 1fr); column-gap: 32px; row-gap: 16px; align-items: start; min-height: 190px; padding: 0 0 32px; }
.tl-dot { position: absolute; left: -44px; top: 6px; z-index: 1; width: 22px; height: 22px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line); }
.tl.on .tl-dot, .no-js .tl-dot { background: var(--accent); border-color: var(--accent); }
.tl .stat-n { grid-column: 1; grid-row: 1 / 3; font-size: clamp(46px, 6vw, 80px); font-weight: 700; line-height: 1; letter-spacing: -.04em; color: var(--accent); font-variant-numeric: tabular-nums; }
.tl .stat-t { grid-column: 2; font-size: clamp(19px, 2vw, 25px); line-height: 1.4; font-weight: 400; max-width: 32ch; }
.tl .stat-s { grid-column: 2; font-size: 14px; color: var(--muted); text-underline-offset: 4px; text-decoration-color: rgba(169,166,157,.4); }
.tl .stat-n, .tl .stat-t, .tl .stat-s { opacity: calc(.2 + .8 * var(--reveal)); transform: translateY(calc(12px - 12px * var(--reveal))); }
@media (max-width: 860px) {
  .timeline { margin-top: 48px; padding-left: 40px; gap: 56px; }
  .tl { display: grid; grid-template-columns: 1fr; gap: 16px; min-height: 240px; }
  .tl .stat-n, .tl .stat-t, .tl .stat-s { grid-column: 1; grid-row: auto; }
  .tl-dot { left: -40px; }
}

/* ============ Funcions: llista de títols; en clicar-ne un s'obre el detall i el seu mòbil ============ */
.how-head { text-align: center; margin-bottom: clamp(28px, 5vh, 56px); }
.how-head .h2 { max-width: 14ch; margin-inline: auto; text-wrap: balance; }
.fx { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 110px); align-items: center; }
.fx-list { border-bottom: 1px solid var(--line); }
.fx-row { border-top: 1px solid var(--line); }
.fx-item { width: 100%; display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 12px; text-align: left; background: none; border: 0; padding: clamp(18px, 2.6vh, 28px) 0; color: var(--ink); }
.fx-t { font-size: clamp(26px, 3.1vw, 48px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.04; opacity: .62; transition: opacity .4s var(--ease-out), transform .5s var(--ease-out); }
.fx-item:hover .fx-t { opacity: .8; }
.fx-row.open .fx-t { opacity: 1; }
.fx-plus { position: relative; width: 22px; height: 22px; opacity: .6; transition: transform .5s var(--ease-out); }
.fx-plus::before, .fx-plus::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: currentColor; border-radius: 2px; }
.fx-plus::after { transform: rotate(90deg); transition: transform .5s var(--ease-out); }
.fx-row.open .fx-plus { transform: rotate(180deg); opacity: 1; }
.fx-row.open .fx-plus::after { transform: rotate(0); }
.fx-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease-out); }
.fx-body > div { overflow: hidden; }
.fx-row.open .fx-body { grid-template-rows: 1fr; }
.fx-d { padding: 0 0 clamp(20px, 3vh, 32px) 46px; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.5; color: var(--muted); max-width: 40ch; }
.fx-stage { display: grid; place-items: center; position: sticky; top: 90px; align-self: start; }
.fx-stage .phone { width: min(310px, 70vw); }
.fx-stage .real-video, .fx-stage .real-shot { opacity: 0; transition: opacity .55s var(--ease-out); }
.fx-stage .real-video.on, .fx-stage .real-shot.on { opacity: 1; }
.real-shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.phone { transition: transform .6s var(--ease-out); }

@media (max-width: 860px) {
  .fx { grid-template-columns: 1fr; gap: 32px; }
  .fx-stage { order: -1; position: static; }
  .fx-stage .phone { width: min(230px, 62vw); }
  .fx-d { padding-left: 0; }
  .fx-item { grid-template-columns: 30px 1fr auto; }
}

/* ============ Disponibilitat i captures de la nova app ============ */
.store-status { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; padding: 0 var(--margin); }
.store-status p { margin: 0; padding: 12px 18px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-weight: 700; font-size: 15px; }
.screens { margin-top: var(--gap-section); padding: 0 var(--margin); }
.screens-head { max-width: 58ch; margin: 0 auto clamp(34px, 6vw, 72px); text-align: center; }
.screens-head .h2 { max-width: 12ch; margin: 8px auto 18px; text-wrap: balance; }
.screens-head > p:last-child { color: var(--muted); font-size: 18px; line-height: 1.5; }
.feature-graphic { display: block; width: min(100%, 1024px); height: auto; margin: 0 auto clamp(48px, 8vw, 110px); border-radius: 20px; }
@media (max-width: 860px) {
  .store-status { justify-content: flex-start; }
  .store-status p { width: 100%; text-align: center; }
  .screens-head { text-align: left; margin-inline: 0; }
  .screens-head .h2 { margin-inline: 0; }
  .feature-graphic { border-radius: 12px; }
}

/* ============ Peu: scrolloff gegant ============ */
.foot-min { display: block; padding: clamp(56px, 9vw, 130px) var(--margin) 28px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.foot-big { margin: 0 0 clamp(32px, 6vw, 80px); font-family: 'Open Sans', var(--font); font-weight: 300; font-size: 24vw; line-height: .88; letter-spacing: -0.02em; font-variant-ligatures: none; text-align: center; white-space: nowrap; color: var(--ink); }
.foot-big b { font-weight: 800; }
.foot-big i { font-style: normal; font-weight: 400; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 32px; padding-top: 22px; border-top: 1px solid var(--line); }
.foot-row nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }

@media (max-width: 860px) {
  .hero { padding-top: 100px; padding-bottom: 80px; }
  .hero-title { font-size: clamp(38px, 11.2vw, 80px); }
  .hero-actions { flex-direction: column; }
  .foot-row { flex-direction: column; align-items: flex-start; }
}

/* ============ Funcions: targetes amb degradat daurat (com a l'app), sense +/-, mòbil girat cap a l'esquerra ============ */
.fx-list { border-bottom: 0; display: grid; gap: 14px; }
.fx-row { border-radius: 24px; padding: 0 26px; transition: transform .35s var(--ease-out); }
.fx-row:hover { border-color: rgba(237,190,69,.34); transform: translateX(4px); }
.fx-row.open { --rim: linear-gradient(135deg, #F2D685, #B58A38 50%, #E4BF67); }
.fx-item { grid-template-columns: 34px 1fr; cursor: pointer; }
.fx-d { padding-left: 46px; }
.fx-stage { perspective: 1800px; }
.fx-phone { transform: rotateY(20deg) rotateX(3deg) rotateZ(-1.5deg); box-shadow: inset 0 0 0 1.5px #3A3A3F, -40px 60px 90px -20px rgba(0,0,0,.8); }
.fx-stage .real-shot, .fx-stage .real-video { object-fit: cover; image-rendering: auto; }

/* The shared phone treatment also applies to the screenshot composition. */
@media (max-width: 860px) {
  .fx-row { padding: 0 20px; }
  .fx-phone { transform: rotateY(14deg) rotateX(2deg); }
}

/* Neutral granite, with gold confined to the one-pixel rim. */
:root {
  --granite: linear-gradient(140deg, #2A2A2E 0%, #1C1C1F 58%, #242427 100%);
  --rim: linear-gradient(135deg, #CFAE58, #6D5427 45%, #A5843E 78%, #D9BC72);
  --neutral-shadow: 0 18px 44px -24px rgba(0,0,0,.7);
}
.fx-row, .dialog, .store-status p, .screens-composition, .phone, .capture-frame, .chip {
  border: 1px solid transparent;
  background: var(--granite) padding-box, var(--rim) border-box;
  box-shadow: var(--neutral-shadow);
}
.fx-row.open { background: var(--granite) padding-box, var(--rim) border-box; }
.fx-row:hover { transform: translateX(3px); }
.fx-phone { box-shadow: 0 30px 55px -24px rgba(0,0,0,.8); }
.dialog input[type=email] { border-radius: 999px; background: #17171A; }
.platform-note { color: var(--muted); font-size: 15px; font-weight: 400; }
.cta-download { margin-top: 28px; }

/* Four real screens form one scene, rather than four image tiles. */
.screens-composition { position: relative; isolation: isolate; max-width: 1100px; height: clamp(580px, 62vw, 750px); margin-inline: auto; border-radius: 40px; overflow: clip; perspective: 1600px; }
.capture-frame { position: absolute; width: 22%; margin: 0; padding: 5px; border-radius: 36px; overflow: hidden; transform-style: preserve-3d; box-shadow: 0 28px 38px -16px rgba(0,0,0,.6); }
.capture-frame img { width: 100%; height: auto; border-radius: 30px; }
.capture-frame:nth-child(1) { left: 4%; top: 18%; transform: rotate(-10deg) rotateY(8deg); z-index: 2; }
.capture-frame:nth-child(2) { left: 27%; top: 5%; transform: rotate(-4deg) rotateY(5deg); z-index: 3; }
.capture-frame:nth-child(3) { left: 49%; top: 22%; transform: rotate(5deg) rotateY(-5deg); z-index: 4; }
.capture-frame:nth-child(4) { left: 70%; top: 12%; transform: rotate(11deg) rotateY(-8deg); z-index: 1; }

.install-invite { position: fixed; z-index: 35; bottom: max(16px, env(safe-area-inset-bottom)); right: 16px; width: min(350px, calc(100% - 32px)); padding: 18px 52px 18px 20px; border: 1px solid transparent; border-radius: 24px; background: var(--granite) padding-box, var(--rim) border-box; box-shadow: 0 12px 40px rgba(0,0,0,.35); }
.install-title { font-size: 15px; font-weight: 400; margin-bottom: 6px; color: var(--muted); }
.install-invite .text-link { font-size: 16px; font-weight: 600; }
.install-dismiss { position: absolute; top: 5px; right: 5px; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 50%; color: var(--muted); font-size: 26px; font-weight: 300; }
.install-dismiss:hover { color: var(--ink); }

@media (max-width: 860px) {
  .screens-composition { height: 1100px; border-radius: 32px; }
  .capture-frame { width: 52%; padding: 4px; border-radius: 28px; }
  .capture-frame img { border-radius: 23px; }
  .capture-frame:nth-child(1) { left: 10%; top: 4%; transform: rotate(-7deg); }
  .capture-frame:nth-child(2) { left: auto; right: 8%; top: 18%; transform: rotate(7deg); }
  .capture-frame:nth-child(3) { left: 10%; top: 48%; transform: rotate(-7deg); }
  .capture-frame:nth-child(4) { left: auto; right: 8%; top: 62%; transform: rotate(7deg); }
}
@media (prefers-reduced-motion: reduce) {
  .timeline { --p: 1 !important; }
  .tl { --reveal: 1 !important; }
  .tl-dot { border-color: var(--accent); background: var(--accent); }
  .tl .stat-n, .tl .stat-t, .tl .stat-s { opacity: 1; transform: none; }
}
