/* Vine i Torna · marca «Oliva i arcilla» (veure ../DESIGN.md) */
:root {
  /* Marca (novembre 2026): Oliva grisáceo, Arcilla suave, Crema, Piedra clara */
  --paper: #F1E9DD;      /* Crema */
  --paper-2: #E8DDCC;    /* crema fosca: blocs i franges */
  --line: #D5CCBC;       /* Piedra, un pas més suau: línies */
  --ink: #2C332A;        /* oliva profund: 10,8:1 sobre crema; també les bandes fosques */
  --ink-2: #596456;      /* Oliva grisáceo com a text secundari: 5,2:1 sobre crema, 4,6:1 sobre paper-2 */
  --piedra: #C9C4B3;     /* Piedra clara: superfícies neutres i separadors, mai text sobre crema */
  --piedra-soft: #DDD8CB;
  --vine: #BDA58E;       /* Arcilla suave: només superfícies (via Vine) */
  --on-vine: #2C332A;    /* text sobre arcilla: 5,5:1 */
  --vine-hover: #CBB8A4; /* hover de les superfícies d'arcilla: 6,8:1 amb --on-vine */
  --vine-ink: #6F563E;   /* arcilla fosca com a TEXT sobre crema: 5,7:1 (5,1:1 sobre paper-2) */
  --vine-light: #D2BEA9; /* arcilla com a text sobre l'oliva profund: 7,2:1 */
  --vine-soft: #E6D5C2;  /* tint d'arcilla per a fons (resultat destacat) */
  --torna: #596456;      /* Torna = Oliva grisáceo; crema a sobre 5,2:1 */
  --torna-deep: #485244; /* hover i camps sobre oliva; crema a sobre 6,8:1 */
  --torna-soft: #DEDDD0;
  --pissarra: #4E6472;   /* Imagina't = pissarra; crema a sobre 6,2:1, sobre crema 5,1:1 */
  --pissarra-deep: #3E515D;
  --pissarra-soft: #DCE3E7;
  --stamp: #EADFD0;      /* segells i accents clars sobre oliva: 4,7:1 sobre --torna */
  --on-dark-2: #C9C4B3;  /* text secundari sobre l'oliva profund: 7,5:1 */
  --err-dark: #E8B7A0;   /* error sobre fons fosc: 7,3:1 */
  --ac: var(--piedra-soft);
  --torna-fill: var(--piedra);
  --on-color: #F1E9DD;

  /* Camps i línies sobre la banda fosca (oliva profund) */
  --band-field: #363E34;
  --band-line: #7D8578;  /* 3,4:1 sobre --ink */
  --band-ph: #A9AA9C;

  /* Títols de pàgina (h1) en Manrope; Fraunces per als h2 que obren secció; la resta, Manrope */
  --f-head: 'Fraunces', Georgia, 'Times New Roman', serif;
  --f-body: 'Manrope', 'Helvetica Neue', Arial, sans-serif;

  /* Cantonades petites: res de targetes molt arrodonides */
  --r-ctl: 6px;
  --r-pill: 7px;
  --r-block: 5px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1180px;

  /* Motion: sortida exponencial, sense rebots */
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  /* Superfícies del navegador amb la paleta */
  accent-color: var(--ink);
  caret-color: var(--vine-ink);
  scrollbar-color: var(--piedra) var(--paper-2);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
/* La capçalera és fixa (68 px): el que rep el focus o s'obre amb una àncora no queda tapat a sota (WCAG 2.4.11) */
html { scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
h1, h2 { font-family: var(--f-head); font-weight: 400; font-optical-sizing: auto; line-height: 1.08; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
/* Títol de pàgina (h1): el mateix Manrope compacte a totes les pàgines */
h1 { font-family: var(--f-body); font-weight: 600; letter-spacing: -0.035em; line-height: 1.02; }
h3 { font: 600 21px/1.25 var(--f-body); margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
a { color: inherit; text-underline-offset: 4px; }
img, svg { display: block; max-width: 100%; }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: var(--r-ctl); z-index: 10; }
.skip:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--vine-ink); outline-offset: 3px; border-radius: 2px; }

.muted { color: var(--ink-2); }
.fine { font-size: 14px; color: var(--ink-2); margin: 12px 0 0; }
.lead { font-size: clamp(18px, 2vw, 20px); color: var(--ink-2); max-width: 54ch; margin: 20px 0 0; }

/* Botons: oliva amb text crema (principal) i contorn de tinta (secundari) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: var(--r-pill);
  background: var(--torna); color: var(--on-color); border: 2px solid var(--torna);
  font: 600 16px/1 var(--f-body); letter-spacing: -0.005em; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease-out, color .15s ease-out, border-color .15s ease-out, transform .15s var(--ease-out);
}
.btn:hover { background: var(--torna-deep); border-color: var(--torna-deep); }
.btn:active { transform: translateY(1px) scale(.98); transition-duration: .08s; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn.sm { min-height: 44px; padding: 0 16px; font-size: 15px; }
/* Sobre les bandes fosques, el botó principal és d'arcilla amb text oliva profund */
.btn.on-dark { background: var(--vine); color: var(--on-vine); border-color: var(--vine); }
.btn.on-dark:hover { background: var(--vine-hover); border-color: var(--vine-hover); }

/* Marca */
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font: 600 19px/1 var(--f-body); color: var(--ink); text-decoration: none; letter-spacing: -0.015em; white-space: nowrap; }
/* Monograma: 3 traços (oliva, fulla d'arcilla i el nervi). El nervi sempre és del color del fons (--logo-vein) */
.brand .mono { width: 43px; height: 30px; flex: none; overflow: visible; --logo-stroke: var(--torna); --logo-leaf: var(--vine); --logo-vein: var(--paper); }
.brand .mono path:nth-child(1) { fill: var(--logo-stroke); }
.brand .mono path:nth-child(2) { fill: var(--logo-leaf); }
.brand .mono path:nth-child(3) { fill: var(--logo-vein); }
.brand.small { font-size: 17px; margin: 0; }
.brand.small .mono { width: 36px; height: 25px; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .brand .mono path:nth-child(n+2) { transform-box: view-box; transform-origin: 54% 98%; transition: rotate .35s var(--ease-out); }
  a.brand:hover .mono path:nth-child(n+2) { rotate: 5deg; }
}

/* Capçalera */
.top { position: sticky; top: 0; z-index: 5; background: var(--paper); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 24px; min-height: 68px; }
/* Menú: el mateix a totes les pàgines. A l'escriptori és una fila; al mòbil, un desplegable (popover) */
.menu { margin-left: auto; }
.menu:not(:popover-open) { display: block; position: static; inset: auto; margin: 0 0 0 auto; padding: 0; border: 0; background: none; overflow: visible; }
.menu ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.menu a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: var(--r-ctl); text-decoration: none; font-weight: 500; color: var(--ink-2); transition: color .15s ease-out, background-color .15s ease-out; }
.menu a:hover { color: var(--ink); background: var(--paper-2); }
.menu > ul > li > a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--vine); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.im .menu > ul > li > a[aria-current="page"] { text-decoration-color: var(--pissarra); }
/* Desplegable de serveis sota «Fidelitza't»: a l'escriptori surt en passar-hi el ratolí o amb el teclat */
.has-sub { position: relative; }
.menu .sub { list-style: none; margin: 0; padding: 8px; display: grid; gap: 2px; min-width: 280px; position: absolute; top: 100%; left: -8px; z-index: 6; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-block); box-shadow: 0 14px 30px rgb(44 51 42 / .12); opacity: 0; visibility: hidden; translate: 0 6px; transition: opacity .18s ease-out, translate .22s var(--ease-out), visibility 0s .22s; }
.has-sub::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 10px; }
.has-sub:hover > .sub, .has-sub:focus-within > .sub, .menu .has-sub:hover > .sub, .menu .has-sub:focus-within > .sub { opacity: 1; visibility: visible; translate: 0 0; transition: opacity .18s ease-out, translate .22s var(--ease-out), visibility 0s; }
.menu .sub a { white-space: nowrap; display: flex; gap: 10px; width: 100%; min-height: 42px; padding: 0 10px; color: var(--ink); font-weight: 500; }
.menu .sub a .ico { width: 20px; height: 20px; align-self: center; color: var(--ink-2); }
.menu .sub a[aria-current="page"] { text-decoration: none; background: var(--paper-2); font-weight: 600; }
.sub-soon { margin-left: auto; padding: 1px 8px; border: 1px dashed var(--ink-2); border-radius: 3px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.menu-btn { display: none; flex: none; width: 44px; height: 44px; padding: 0; border: 1.5px solid var(--ink); border-radius: var(--r-pill); background: none; cursor: pointer; place-items: center; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; }
.menu-btn span::after { top: 6px; }
@media (max-width: 860px) {
  .menu:not(:popover-open) { display: none; }
  .top-in { gap: 12px; }
  .top-cta { margin-left: auto; }
  .menu-btn { display: grid; }
  .menu:popover-open { position: fixed; inset: 68px 0 auto 0; margin: 0; width: 100%; padding: 8px var(--gutter) 20px; border: 0; border-bottom: 1px solid var(--line); background: var(--paper); box-shadow: 0 12px 24px rgb(44 51 42 / .08); }
  .menu:popover-open ul { flex-direction: column; gap: 0; }
  .menu:popover-open a { width: 100%; min-height: 52px; font-size: 19px; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line); border-radius: 0; padding: 0 4px; }
  .menu:popover-open .sub { position: static; opacity: 1; visibility: visible; translate: none; min-width: 0; padding: 0 0 6px 14px; border: 0; box-shadow: none; background: none; }
  .menu:popover-open .sub a { min-height: 44px; font-size: 16px; font-weight: 500; border-bottom: 0; }
  .menu:popover-open { max-height: calc(100dvh - 68px); overflow-y: auto; }
  @media (prefers-reduced-motion: no-preference) { .menu:popover-open { animation: settle .25s var(--ease-out); } }
}

/* Hero */
.hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; padding-block: clamp(40px, 8vw, 104px) clamp(48px, 7vw, 88px); }
/* Titular del hero: Manrope compacte i sobri, tot en tinta (sense paraula d'accent ni subratllat) */
.hero h1 { font-size: clamp(40px, 4.8vw, 64px); }
.hero h1 em { font-style: normal; color: inherit; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
/* Sota els botons del hero de la portada: l'enllaç directe a WhatsApp */
.hero-wa { margin: 6px 0 0; font-size: 15px; }
.hero-wa a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); font-weight: 600; text-underline-offset: 4px; }
.hero-wa a:hover { color: var(--ink); }
@media (max-width: 860px) { .hero { grid-template-columns: minmax(0, 1fr); } }

/* Hero amb foto: un bloc de vores netes que surt per la dreta de la pantalla.
   El text mai no toca la foto: la foto comença després de la columna de text (--copy-end)
   i baixa una mica respecte del text (desplaçament volgut). */
.ph-hero {
  --copy-w: min(520px, 46vw);
  --copy-end: calc(max(0px, (100vw - var(--max)) / 2) + var(--gutter) + var(--copy-w));
  position: relative; isolation: isolate; display: grid; align-items: center; gap: 0;
  min-height: clamp(540px, 74vh, 700px); padding: 0; overflow: clip;
}
.hero.ph-hero { grid-template-columns: minmax(0, 1fr); }
.ph-hero > .wrap { width: 100%; padding-block: clamp(56px, 8vw, 104px); }
.ph-hero .hero-copy { max-width: var(--copy-w); }
.ph-hero h1 { font-size: clamp(40px, 4.6vw, 62px); }
.ph-photo { position: absolute; z-index: -1; top: clamp(32px, 5vw, 64px); bottom: 0; right: 0; left: calc(var(--copy-end) + clamp(32px, 4vw, 64px)); margin: 0; background: var(--paper-2); }
.ph-photo img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }
/* Títols d'una sola paraula llarga («Automatitzacions.»): que hi càpiguen al mòbil */
@media (max-width: 560px) { .ph-hero.ph-long h1 { font-size: clamp(30px, 9vw, 40px); } }
@media (max-width: 860px) {
  .ph-hero { --copy-w: 100%; min-height: 0; align-items: start; }
  .ph-photo { position: relative; top: auto; left: auto; margin: 12px 0 0 var(--gutter); height: clamp(260px, 78vw, 440px); }
  .ph-hero > .wrap { padding-block: 28px clamp(48px, 10vw, 72px); position: relative; }
}

/* Ruta (breadcrumb): discreta, a dalt de tot del <main>, sobre el mateix fons crema que el títol.
   El separador és un xebró dibuixat amb CSS (no és text). Als heros amb foto (.ph-hero, .ct-stage)
   va fora del flux a l'escriptori, perquè el text continuï centrat; al mòbil queda damunt de la foto. */
.crumbs { margin: 0 0 18px; font: 500 14px/1.4 var(--f-body); color: var(--ink-2); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; row-gap: 2px; }
.crumbs li { display: inline-flex; align-items: center; min-width: 0; }
.crumbs li + li::before { content: ""; flex: none; width: 6px; height: 6px; margin: 0 11px 0 8px; border: solid currentColor; border-width: 1.5px 1.5px 0 0; rotate: 45deg; }
.crumbs a { display: inline-flex; align-items: center; min-height: 28px; color: var(--ink-2); text-decoration: none; text-underline-offset: 4px; transition: color .15s ease-out; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; }
.crumbs [aria-current="page"] { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.ph-hero > nav.crumbs, .ct-stage > nav.crumbs { position: absolute; z-index: 1; top: clamp(14px, 2vw, 24px); left: 0; right: 0; margin: 0 auto; padding-block: 0; pointer-events: none; }
.ph-hero > nav.crumbs ol, .ct-stage > nav.crumbs ol { width: fit-content; max-width: var(--copy-w); pointer-events: auto; }
@media (max-width: 860px) { .ph-hero > nav.crumbs { position: static; width: 100%; margin-top: 0; padding-block: 16px 0; } }
@media (max-width: 920px) { .ct-stage > nav.crumbs { position: static; padding-block: 16px 12px; } }

/* Les dues vies: dues targetes d'amplades desiguals (7/5) i a alçades diferents.
   Cada una porta la seva foto, de vores netes, a la cantonada de dalt a la dreta */
.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; padding-block: clamp(40px, 6vw, 72px) clamp(64px, 9vw, 112px); }
.door-torna { margin-top: 0; } /* les dues vies principals, iguals i alineades */
@media (max-width: 900px) { .ways { grid-template-columns: 1fr; } .door-torna { margin-top: 0; } }
.door { --pad: clamp(24px, 3.4vw, 40px); position: relative; overflow: hidden; border-radius: var(--r-block); padding: var(--pad); display: flex; flex-direction: column; scroll-margin-top: 84px; transition: background-color .25s ease-out; }
.door-body { display: flow-root; }
/* Mostra't: arcilla amb text oliva profund */
.door-vine { background: var(--vine); color: var(--on-vine); }
.door-vine:is(:hover, :focus-within) { background: var(--vine-hover); }
.door-vine :focus-visible { outline-color: var(--ink); }
/* Fidelitza't: oliva amb text crema */
.door-torna { background: var(--torna); color: var(--on-color); }
.door-torna:is(:hover, :focus-within) { background: var(--torna-deep); }
.door-torna :focus-visible { outline-color: var(--stamp); }
.door-photo {
  float: right; width: 42%; height: clamp(280px, 28vw, 340px); max-width: none;
  margin: calc(-1 * var(--pad)) calc(-1 * var(--pad)) 20px 28px;
  object-fit: cover; object-position: 50% 42%;
}
.door-torna .door-photo { width: 40%; height: clamp(240px, 24vw, 300px); object-position: 46% 46%; }
@media (max-width: 560px) {
  .door-photo, .door-torna .door-photo { float: none; display: block; width: calc(100% + 2 * var(--pad)); height: 240px; margin: calc(-1 * var(--pad)) calc(-1 * var(--pad)) 20px; }
}
.ask { font: 500 16px/1.4 var(--f-body); margin: 0 0 10px; }
.door h3 { font-size: clamp(28px, 3vw, 34px); font-weight: 600; letter-spacing: -0.025em; }
.door-lead { font-size: 17px; margin: 12px 0 0; max-width: 44ch; }
/* Llistes: el dibuixet petit fa de marcador; si un punt no en porta, una ratlla curta */
.ticks { list-style: none; padding: 0; margin: 22px 0 0; font-size: 16px; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .78em; width: 14px; height: 1.5px; background: currentColor; opacity: .7; }
.ticks li:has(> .ico) { display: flex; gap: 12px; padding-left: 0; }
.ticks li:has(> .ico)::before { content: none; }
.ticks .ico { margin-top: 1px; }
.ticks li + li { margin-top: 9px; }
/* «Aviat» dins d'un punt de la llista: la mateixa etiqueta del menú, amb el color del bloc on és */
.ticks .sub-soon { display: inline-block; margin: 0 4px 0 0; border-color: currentColor; color: inherit; vertical-align: 1px; }
/* Sobre l'arcilla: traç en tinta i farciment d'arcilla clara. Sobre l'oliva: traç crema i oliva clar */
.door-vine { --ac: var(--vine-soft); }
.door-vine .ico { color: var(--on-vine); }
.door-torna { --ac: #7A8574; }
.door-torna .ico { color: var(--on-color); }
.door-link { display: inline-flex; align-items: center; align-self: flex-start; gap: 8px; min-height: 44px; margin-top: auto; padding-top: 18px; font-weight: 600; font-size: 18px; text-underline-offset: 5px; text-decoration-thickness: 1.5px; }

/* Il·lustracions (img/illus.svg): dibuixets de línia petits al costat dels textos.
   Traç = currentColor (tinta, o el color del text de la targeta); farciment pla = --ac, un tint clar de la superfície */
.ill, .ico { flex: none; overflow: visible; color: var(--ink); }
.ill { width: 44px; height: 44px; }
.ico { width: 21px; height: 21px; }
@media (max-width: 560px) { .ill { width: 40px; height: 40px; } }
/* Dibuixet dels enllaços: només línia, i es mou una mica en passar-hi */
.ico.link-ill { color: currentColor; --ac: transparent; width: 20px; height: 20px; }
@media (prefers-reduced-motion: no-preference) {
  .ico.link-ill { transition: rotate .25s var(--ease-out), scale .25s var(--ease-out); }
  .door-link:hover .link-ill, .door:is(:hover, :focus-within) .door-link .link-ill, a:hover > .cc-more .link-ill, .case-photo:hover .link-ill { rotate: -10deg; scale: 1.12; }
}

/* Seccions: només el hero és gran; els h2 són tranquils */
.how, .why, .faq { padding-block: clamp(48px, 7vw, 88px); border-top: 1px solid var(--line); }
.how h2, .why h2, .faq h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 32px; }

/* Passos: un número escrit i una línia fina que el porta al pas següent */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.steps li { counter-increment: s; position: relative; padding-top: 44px; font-size: 16.5px; color: var(--ink-2); }
.steps li::before {
  content: "0" counter(s); position: absolute; left: 0; top: 0; z-index: 1;
  color: var(--vine-ink); font: 600 15px/28px var(--f-body); letter-spacing: .02em;
}
.steps li::after { content: ""; position: absolute; left: 34px; right: -24px; top: 14px; height: 1px; background: var(--piedra); }
.steps li:last-child::after { right: 0; }
.steps .ill { display: block; width: 40px; height: 40px; margin-bottom: 14px; color: var(--ink-2); }
.steps b { display: block; color: var(--ink); font-size: 18px; font-weight: 600; margin-bottom: 6px; text-wrap: balance; }
@media (max-width: 760px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .steps li { padding: 0 0 0 52px; }
  .steps li::after, .steps li:last-child::after { left: 10px; right: auto; top: 34px; bottom: -26px; width: 1px; height: auto; }
  .steps li:last-child::after { display: none; }
  .steps .ill { width: 36px; height: 36px; margin-bottom: 10px; }
}

.faq details { border-bottom: 1px solid var(--line); max-width: 780px; }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; min-height: 60px; font: 600 18px/1.3 var(--f-body); transition: color .15s ease-out; }
.faq summary:hover { color: var(--ink-2); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: ""; flex: none; width: 14px; height: 14px; background: currentColor; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 7l10 10L22 7' fill='none' stroke='black' stroke-width='4'/%3E%3C/svg%3E") center / contain no-repeat; rotate: -90deg; }
.faq details[open] > summary::before { rotate: 0deg; color: var(--vine-ink); }
.faq details p { margin: 0 0 20px 26px; color: var(--ink-2); max-width: 62ch; }
.faq details::details-content { interpolate-size: allow-keywords; overflow: clip; contain: layout; }
.faq details:not([open])::details-content { block-size: 0; }
@media (prefers-reduced-motion: no-preference) {
  .faq summary::before { transition: rotate .25s var(--ease-out); }
  .faq details::details-content { transition: block-size .3s var(--ease-out), content-visibility .3s allow-discrete; }
  .faq details[open] p { animation: settle .35s .05s var(--ease-out) backwards; }
}

/* Contacte: banda d'oliva profund amb text crema i accents d'arcilla */
.contact { background: var(--ink); color: var(--paper); padding-block: clamp(56px, 8vw, 104px); scroll-margin-top: 68px; }
.contact-in { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact h2 { font-size: clamp(30px, 3.6vw, 44px); }
.contact h1 { font-size: clamp(44px, 5.6vw, 72px); }
.contact h2 em { font-style: normal; }
.contact .lead { color: rgb(241 233 221 / .86); }
.contact .fine { color: var(--on-dark-2); }
@media (max-width: 860px) { .contact-in { grid-template-columns: 1fr; } }
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: 16px; padding: 0; }
.opt { font-weight: 400; color: var(--on-dark-2); }
.field input:not([type=radio]), .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--r-ctl);
  border: 1.5px solid var(--band-line); background: var(--band-field); color: var(--paper);
  font: 400 17px/1.4 var(--f-body); caret-color: var(--stamp);
  transition: border-color .15s ease-out;
}
.field textarea { resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--band-ph); }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--stamp); outline-offset: 1px; }
.field [aria-invalid="true"] { border-color: var(--err-dark); }
.radios { display: flex; flex-wrap: wrap; gap: 8px; }
.radios label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--band-line); border-radius: var(--r-pill); cursor: pointer; font-weight: 500; transition: background-color .15s ease-out, color .15s ease-out, border-color .15s ease-out; }
.radios label:has(:checked) { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.radios input { accent-color: var(--torna); width: 18px; height: 18px; margin: 0; }
.radios label:has(:focus-visible) { outline: 3px solid var(--stamp); outline-offset: 2px; }
.radios input:focus-visible { outline: none; }
.err { margin: 0; min-height: 1.4em; color: var(--err-dark); font-weight: 600; }
.contact .btn { justify-self: start; }
.contact :focus-visible { outline-color: var(--stamp); }

/* Peu */
.foot { padding-block: 32px; border-top: 1px solid var(--line); background: var(--paper); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.foot ul { display: flex; flex-wrap: wrap; gap: 0 8px; list-style: none; margin: 0 -10px; padding: 0; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--ink-2); }
/* WhatsApp i correu al peu de totes les pàgines (els escriu scripts/i18n.mjs a partir de config.js) */
.foot-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 0 2px; margin: 0 -10px; font-size: 15px; color: var(--ink-2); }
@media (max-width: 380px) { .foot-contact [aria-hidden] { display: none; } }

/* Selector d'idioma: una pastilla amb dues opcions (CA | ES), l'activa plena. A la barra, al final del menú
   (al mòbil, dins el menú desplegable, més gran), i al peu */
.lang { display: inline-flex; align-items: center; gap: 2px; margin: 0; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }
.lang > span { display: none; }
.lang a { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; min-height: 32px; padding: 0 10px; border-radius: 999px;
  font: 700 13px/1 var(--f-body); letter-spacing: .06em; color: var(--ink-2); text-decoration: none; transition: background-color .15s ease-out, color .15s ease-out; }
.lang a:hover { background: var(--paper-2); color: var(--ink); }
.lang a[aria-current="true"] { background: var(--ink); color: var(--paper); }
.lang a:focus-visible { outline: 2px solid var(--vine-ink); outline-offset: 2px; }
.im .lang a[aria-current="true"] { background: var(--pissarra); }
.menu .lang { margin-left: 10px; }
.foot .lang { margin-right: 0; }
/* Entre el mòbil i l'ordinador, la barra s'estreny una mica perquè hi càpiga el selector sense partir «Casos reals» */
@media (min-width: 861px) and (max-width: 960px) {
  .top-in { gap: 16px; }
  .menu > ul > li > a { padding: 0 9px; }
}
@media (max-width: 860px) {
  .menu:popover-open .lang { display: flex; margin: 16px 0 0; padding: 4px; }
  .menu:popover-open .lang a { flex: 1 1 0; min-height: 44px; font-size: 15px; border: 0; border-radius: 999px; padding: 0 10px; }
}

/* Botons d'enviament: WhatsApp / correu */
.btn.ghost-dark { background: transparent; color: var(--paper); border-color: rgb(241 233 221 / .6); }
.btn.ghost-dark:hover { background: rgb(241 233 221 / .1); border-color: var(--paper); }
.send { display: flex; flex-wrap: wrap; gap: 10px; }
.send svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.send svg .fill { fill: currentColor; stroke: none; }
.done { display: grid; gap: 12px; justify-items: start; padding: 16px; border-radius: var(--r-ctl); background: rgb(241 233 221 / .08); }
.done[hidden] { display: none; }
.done p { margin: 0; }
.done b { user-select: all; }
::selection { background: var(--piedra); color: var(--ink); }

/* Escenes animades (cercador, xat): etiqueta i botó de pausa compartits */
.tag { flex: none; padding: 3px 10px; border-radius: 3px; border: 1.5px solid var(--ink-2); font-weight: 600; font-size: 13px; color: var(--ink); }
.pause {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border: 0; background: none;
  color: var(--ink-2); font: 500 14px/1 var(--f-body); cursor: pointer; border-radius: var(--r-ctl);
  transition: color .15s ease-out, background-color .15s ease-out;
}
.pause:hover { color: var(--ink); background: var(--paper-2); }
.pause[hidden] { display: none; }
.pause svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.pause .i-play { fill: currentColor; stroke: none; display: none; }
.pause.is-paused .i-play { display: block; }
.pause.is-paused .i-pause { display: none; }

/* ================= Motion =================
   Tot és visible per defecte: les animacions només parteixen d'un estat
   (fill backwards) i viuen dins de prefers-reduced-motion: no-preference. */
@keyframes settle { from { opacity: 0; translate: 0 -6px; } }
@keyframes rise { from { opacity: 0; translate: 0 12px; } }
/* Titular en sèrif: la línia es revela amb una màscara suau i l'espaiat s'assenta */
@keyframes headline { from { opacity: 0; clip-path: inset(0 0 100% 0); translate: 0 .18em; letter-spacing: .01em; } to { clip-path: inset(-.2em -.2em -.2em -.2em); } }
/* Plaques (contacte): es pinten de dalt a baix, sense balanceig */
@keyframes hang { from { opacity: 0; translate: 0 12px; clip-path: inset(0 0 100% 0 round var(--r-block)); } to { clip-path: inset(0 0 0 0 round var(--r-block)); } }
/* Foto del hero: només s'assenta (sense opacitat: és l'element LCP) */
@keyframes photo-settle { from { scale: 1.03; } }
/* Monograma: el traç oliva es dibuixa de dalt a baix i la fulla d'arcilla creix des del vèrtex */
@keyframes mono-stroke { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes mono-leaf { from { opacity: 0; scale: .2; } }
@keyframes mono-vein { from { opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes ill-draw { from { opacity: 0; stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: no-preference) {
  /* Entrada del hero, un cop: titular que surt del seu carril, després el text i l'acció */
  .hero h1 { animation: headline .8s var(--ease-out) backwards; }
  .hero .lead { animation: rise .7s .12s var(--ease-out) backwards; }
  .hero .actions { animation: rise .7s .2s var(--ease-out) backwards; }
  .hero-copy > .fine { animation: rise .7s .28s var(--ease-out) backwards; }

  /* La foto del hero ja hi és des del primer pintat (és l'LCP: cap fosa d'opacitat que el retardi) i només s'assenta (de 1,03 a 1) mentre el titular surt */
  .ph-photo img { animation: photo-settle 1.6s var(--ease-out) backwards; }
  /* A la portada, el monograma de la capçalera es dibuixa un cop: el traç oliva, després la fulla i al final el nervi */
  .brand[data-draw] .mono path:nth-child(1) { animation: mono-stroke .7s .05s var(--ease-out) backwards; }
  .brand[data-draw] .mono path:nth-child(2) { transform-box: view-box; transform-origin: 54% 98%; animation: mono-leaf .6s .5s var(--ease-out) backwards; }
  .brand[data-draw] .mono path:nth-child(3) { transform-box: view-box; transform-origin: 54% 98%; animation: mono-leaf .6s .5s var(--ease-out) backwards, mono-vein .4s 1s ease-out backwards; }

  /* Resposta del formulari */
  .err.is-shown { animation: settle .25s var(--ease-out); }
  .done:not([hidden]) { animation: rise .4s var(--ease-out) backwards; }

  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    /* Com treballem: cada número puja del seu carril i el pas el segueix.
       El pas (text) només puja, sense fosa: lligat al scroll, una opacitat a mitges es quedaria fixa si t'atures. */
    @keyframes num-in { from { opacity: 0; scale: .4; } }
    @keyframes line-in { from { scale: 0 1; } }
    @keyframes step-up { from { translate: 0 14px; } }
    .steps li { view-timeline: --step; animation: step-up linear both; animation-timeline: --step; animation-range: entry 10% entry calc(70% + var(--i, 0) * 10%); }
    .steps li::before { animation: num-in linear both; animation-timeline: --step; animation-range: entry 0% entry calc(55% + var(--i, 0) * 10%); }
    .steps li::after { transform-origin: 0 50%; animation: line-in linear both; animation-timeline: --step; animation-range: entry 20% entry calc(80% + var(--i, 0) * 10%); }
    .steps li:nth-child(2) { --i: 1; }
    .steps li:nth-child(3) { --i: 2; }
    .steps li:nth-child(4) { --i: 3; }

    /* Els dibuixos es tracen quan el pas entra (cada traç té pathLength="1") */
    .ill { stroke-dasharray: 1 2; }
    .steps .ill { animation: ill-draw linear both; animation-timeline: --step; animation-range: entry 25% entry calc(85% + var(--i, 0) * 10%); }
  }
}

/* ===== Disseny amb fotos (novembre 2026): blocs de vores netes, sense degradats ===== */

/* Cas real amb foto: text sobre color pla a l'esquerra; la foto, un bloc net a la dreta */
.case-photo {
  position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: stretch;
  min-height: 300px; border-radius: var(--r-block); overflow: hidden; background: var(--paper-2); color: var(--ink);
  text-decoration: none; transition: background-color .2s ease-out;
}
.case-photo:hover .cp-go { text-decoration-thickness: 2.5px; }
.case-photo img { position: absolute; top: 0; right: 0; bottom: 0; width: 58.333%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.cp-txt { position: relative; grid-column: 1; grid-row: 1; align-self: end; display: grid; gap: 6px; justify-items: start; padding: clamp(28px, 4vw, 48px); }
.cp-k { font-weight: 500; color: var(--ink-2); font-size: 15px; }
.cp-name { font: 600 clamp(26px, 2.8vw, 32px)/1.1 var(--f-body); letter-spacing: -0.025em; }
.cp-what { color: var(--ink-2); max-width: 38ch; }
.cp-go { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 8px; font-weight: 600; text-decoration: underline; text-decoration-color: var(--vine-ink); text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
@media (max-width: 760px) {
  .case-photo { grid-template-columns: minmax(0, 1fr); }
  .case-photo img { position: static; width: 100%; grid-column: 1; grid-row: 1; height: 240px; }
  .cp-txt { grid-row: 2; }
}
.case-band { padding-bottom: clamp(48px, 7vw, 88px); }

.contact > .wrap, .cta-band > .wrap { position: relative; }

/* Botó clar sobre fons fosc */
.btn.light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn.light:hover { background: #FBF7F0; border-color: #FBF7F0; }

/* Banda fosca de tancament (casos): titular crema i botons */
.cta-band { background: var(--ink); color: var(--paper); border-radius: var(--r-block); padding: clamp(32px, 5vw, 64px); }
.cta-band h2 { font-size: clamp(26px, 3vw, 36px); }
.cta-band .lead { color: rgb(241 233 221 / .86); }
.cta-band :focus-visible { outline-color: var(--stamp); }

@media (prefers-reduced-motion: no-preference) and (max-width: 760px) {
  .steps li::after { animation: none !important; }
}

/* Exemple animat sota el hero (Mostra't, Fidelitza't): una banda de crema fosca amb una frase curta a l'esquerra */
.demo-row { padding-block: clamp(16px, 3vw, 32px) clamp(48px, 7vw, 88px); }
.demo-row figure { margin: 0; padding: clamp(24px, 5vw, 64px); border-radius: var(--r-block); background: var(--paper-2); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(32px, 6vw, 88px); row-gap: 12px; align-items: center; }
.demo-row figure > :not(figcaption) { grid-column: 2; }
.demo-row figcaption { grid-column: 1; grid-row: 1 / span 3; align-self: center; display: grid; justify-items: start; gap: 16px; max-width: 26ch; font: 500 clamp(20px, 2.2vw, 25px)/1.3 var(--f-body); color: var(--ink); letter-spacing: -0.015em; text-wrap: balance; }
@media (max-width: 860px) {
  .demo-row figure { grid-template-columns: minmax(0, 1fr); }
  .demo-row figure > :not(figcaption) { grid-column: 1; }
  .demo-row figcaption { grid-row: 1; max-width: none; margin-bottom: 16px; font-size: clamp(19px, 5vw, 22px); }
}

/* ===== Fotos que es fonen amb el text (petició de la marca) =====
   La foto s'esvaeix cap al color que té darrere (paper o el color de la targeta) amb una màscara,
   així el text queda sempre sobre color pla i es llegeix igual. */
.ph-photo { top: 0; left: calc(var(--copy-end) - 3vw); }
.ph-photo img, .ct-bg img {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, rgb(0 0 0 / .35) 12%, #000 38%), linear-gradient(0deg, transparent 0, #000 22%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0, rgb(0 0 0 / .35) 12%, #000 38%), linear-gradient(0deg, transparent 0, #000 22%);
  mask-composite: intersect;
}
.door-photo {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 45%), linear-gradient(0deg, transparent 0, #000 35%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0, #000 45%), linear-gradient(0deg, transparent 0, #000 35%);
  mask-composite: intersect;
}
.case-photo img { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 40%); mask-image: linear-gradient(90deg, transparent 0, #000 40%); }
@media (max-width: 860px) {
  .ph-photo { top: auto; left: auto; }
  .ph-photo img, .ct-bg img { -webkit-mask-image: linear-gradient(0deg, transparent 0, #000 40%); mask-image: linear-gradient(0deg, transparent 0, #000 40%); }
}
@media (max-width: 560px) {
  .door-photo, .case-photo img { -webkit-mask-image: linear-gradient(0deg, transparent 0, #000 45%); mask-image: linear-gradient(0deg, transparent 0, #000 45%); }
}
.ph-photo, .ct-bg { background: transparent; }
.ct-bg { left: calc(var(--copy-end) - 3vw); }
@media (max-width: 860px) { .ct-bg { left: auto; } }

/* ===== Hero al mòbil: foto a tota l'amplada, més alta, que es fon amb el titular ===== */
@media (max-width: 860px) {
  .ph-hero .ph-photo { margin: 0; width: 100%; height: min(36vh, 300px); }
  .ph-hero .ph-photo img { object-position: var(--pos-m, 62% 50%);
    -webkit-mask-image: linear-gradient(0deg, transparent 0, transparent 10%, rgb(0 0 0 / .5) 26%, #000 50%); mask-image: linear-gradient(0deg, transparent 0, transparent 10%, rgb(0 0 0 / .5) 26%, #000 50%); }
  /* el titular puja i comença sobre la part ja esvaïda de la foto (color pla, es llegeix igual) */
  .ph-hero > .wrap { margin-top: -36px; padding-top: 0; }
  .ph-hero .actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .ph-hero .actions .btn { width: 100%; padding-inline: 12px; }
}
@media (max-width: 380px) { .ph-hero .actions { grid-template-columns: 1fr; } }

/* Portada, porta de Mostra't: foto de la cerca a Google; al mòbil, que es vegi la barra de cerca i el primer resultat */
.door-photo-g { object-position: 60% 50%; }
@media (max-width: 560px) { .door-photo-g { height: 300px; object-position: 50% 22%; } }

/* Pantalles grans: contingut més ample perquè no quedi tant de buit a l'esquerra */
@media (min-width: 1440px) { :root { --max: 1320px; } }
@media (min-width: 1800px) { :root { --max: 1440px; } }

/* Portada: testimonis, separats de les dues vies */
.case-band { margin-top: clamp(40px, 6vw, 80px); padding-top: clamp(40px, 6vw, 72px); border-top: 1px solid var(--line); }
.cb-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: clamp(20px, 3vw, 32px); }
.cb-head h2 { font-size: clamp(26px, 3vw, 36px); }
.cb-all { font-weight: 600; color: var(--vine-ink); min-height: 44px; display: inline-flex; align-items: center; }
.cb-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; }
.case-mini { display: grid; align-content: end; justify-items: start; gap: 6px; padding: clamp(28px, 4vw, 40px); border-radius: var(--r-block); background: var(--torna); color: var(--on-color); }
.case-mini .cp-k, .cm-what { color: var(--stamp); }
.cm-what { max-width: 34ch; }
.case-mini .cp-go { color: var(--on-color); text-decoration-color: var(--stamp); }
.case-mini .cp-go:hover { text-decoration-thickness: 2.5px; }
.cm-tag { margin-bottom: auto; padding: 3px 10px; border: 1px solid rgb(241 233 221 / .5); border-radius: var(--r-pill); font-size: 13px; font-weight: 600; }
.case-mini .ico { --ac: var(--torna-deep); }
@media (max-width: 860px) { .cb-grid { grid-template-columns: minmax(0, 1fr); } .cm-tag { margin-bottom: 18px; } }

/* ===== Portada: «Com treballem» en vertical, amb el pressupost i l'informe dibuixats ===== */
.how-home { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.hh-intro { position: sticky; top: 96px; }
.hh-intro h2 { margin-bottom: 12px; }
.hh-intro p { max-width: 30ch; margin: 0; }
.steps.steps-v { grid-template-columns: minmax(0, 1fr); gap: 36px; }
.steps-v li { padding: 0 0 0 64px; max-width: 54ch; }
.steps-v li::before { left: 0; top: 0; }
.steps-v li::after, .steps-v li:last-child::after { left: 14px; right: auto; top: 40px; bottom: -28px; width: 1px; height: auto; }
.steps-v li:last-child::after { display: none; }
.steps-v .ill { width: 36px; height: 36px; margin-bottom: 10px; }
.art { display: grid; gap: 8px; margin-top: 16px; padding: 16px 18px; max-width: 340px; border: 1px solid var(--line); border-radius: var(--r-block); background: var(--paper); color: var(--ink); font-size: 14px; box-shadow: 0 10px 24px -18px rgb(44 51 42 / .35); }
.art-report { rotate: .8deg; }
.art-k { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.art-row { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 6px; border-bottom: 1px dashed var(--line); }
.art-row strong { font-weight: 600; white-space: nowrap; }
.art-sum { border: 0; padding: 4px 0 0; color: var(--ink-2); }
.art-sum strong { color: var(--ink); }
.art-nums { display: flex; gap: 28px; }
.art-nums span { display: grid; color: var(--ink-2); font-size: 13px; }
.art-nums strong { font: 600 28px/1.1 var(--f-body); color: var(--ink); letter-spacing: -0.02em; }
.art-bars { position: relative; display: flex; align-items: end; gap: 6px; height: 44px; }
.art-bars i { flex: 1; height: var(--h); border-radius: 3px 3px 0 0; background: var(--piedra); transform-origin: bottom; }
.art-bars i:last-of-type { background: var(--torna); }
/* L'informe del mes: la tendència dibuixada damunt les barres i la pujada respecte del mes anterior */
.art-report { position: relative; }
/* Les xifres dels informes són d'exemple: ho diu una etiqueta a la cantonada */
.art-ex { position: absolute; top: -11px; right: 16px; z-index: 2; padding: 3px 9px; border-radius: 999px; background: var(--ink); color: var(--paper); font: 700 11px/1.3 var(--f-body); letter-spacing: .06em; text-transform: uppercase; rotate: -.8deg; }
.art-ex-in { position: static; display: inline-block; margin-left: 6px; vertical-align: 1px; rotate: none; font-size: 11px; }
.art-report .art-k { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ar-up { padding: 2px 8px; border-radius: var(--r-pill); background: var(--torna); color: var(--on-color); font: 600 12px/1.4 var(--f-body); font-style: normal; letter-spacing: 0; text-transform: none; white-space: nowrap; }
.art-report strong { font-variant-numeric: tabular-nums; }
.ar-trend { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.ar-trend polyline { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
/* L'avís de correu amb què arriba: només es veu quan l'informe s'anima (motion.js hi posa .ar-live) */
.ar-mail { display: none; }
.ar-live .ar-mail { position: absolute; z-index: 1; left: 14px; right: 14px; top: 50%; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); box-shadow: 0 12px 24px -16px rgb(44 51 42 / .45); translate: 0 -50%; }
.ar-ico { position: relative; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--vine-soft); }
.ar-ico svg { width: 18px; height: 18px; fill: none; stroke: var(--vine-ink); stroke-width: 1.8; stroke-linejoin: round; }
.ar-ico::after { content: ""; position: absolute; top: 0; right: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--torna); box-shadow: 0 0 0 2px var(--paper); }
.ar-from { display: grid; gap: 1px; min-width: 0; font-weight: 700; font-size: 14px; line-height: 1.25; color: var(--ink); }
.ar-from small { font-weight: 500; font-size: 12px; color: var(--ink-2); }
@media (max-width: 860px) {
  .how-home { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hh-intro { position: static; }
  .steps-v li { padding-left: 52px; }
  .steps-v li::after { left: 10px; top: 34px; }
}
@media (prefers-reduced-motion: no-preference) {
  /* L'informe: arriba l'avís, s'obre, pugen els números, creixen les barres d'una en una, es dibuixa la tendència i surt la pujada */
  .ar-live .ar-mail { opacity: 0; translate: 0 calc(-50% - 14px); transition: opacity .4s ease-out, translate .6s var(--ease-out), scale .4s var(--ease-out); }
  .ar-live.ar-wait .ar-mail { opacity: 1; translate: 0 -50%; }
  .ar-live.ar-open .ar-mail { opacity: 0; translate: 0 calc(-50% - 10px); scale: .96; }
  .ar-live.ar-wait .ar-ico::after { animation: ar-ping .5s ease-out 2 alternate; }
  /* S'obre fila a fila de dalt a baix (retall, no opacitat: el text que ja es veu sempre té tot el contrast) */
  .ar-live > :not(.ar-mail) { clip-path: inset(0 0 100% 0); transition: clip-path .5s var(--ease-out); }
  .ar-live.ar-open > :not(.ar-mail) { clip-path: inset(-6px); transition-delay: .15s; }
  .ar-live.ar-open > :nth-child(4) { transition-delay: .23s; }
  .ar-live.ar-open > :nth-child(n+5) { transition-delay: .31s; }
  .ar-live .art-bars i { scale: 1 .08; transition: scale .7s var(--ease-out); transition-delay: calc(var(--i, 0) * 110ms); }
  .ar-live.ar-grow .art-bars i { scale: 1 1; }
  /* La línia es destapa d'esquerra a dreta (amb un retall: el traç fi no es deforma) */
  .ar-live .ar-trend { clip-path: inset(-4px 100% -4px -4px); transition: clip-path 1.1s cubic-bezier(.4, .1, .3, 1); }
  .ar-live.ar-line .ar-trend { clip-path: inset(-4px -4px -4px -4px); }
  .ar-live .ar-up { opacity: 0; scale: .6; transition: opacity .3s ease-out, scale .5s var(--ease-out); }
  .ar-live.ar-done .ar-up { opacity: 1; scale: 1; }
}

@keyframes ar-ping { to { scale: 1.35; } }

/* ===== Portada: «Com treballem» = quatre frases en ordre i, al costat, l'informe del mes sobre una franja de crema fosca =====
   Classe pròpia (.how-plan): .how-home i .steps continuen igual a Mostra't, Fidelitza't i les pàgines de servei */
.how-plan { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); grid-template-areas: "head head" "list stage" ". more"; column-gap: clamp(32px, 6vw, 96px); row-gap: 0; align-items: stretch; }
.hp-head { grid-area: head; }
.hp-list { grid-area: list; }
.hp-stage { grid-area: stage; }
.how-plan h2 { margin-bottom: 12px; }
.hp-lead { margin: 0 0 32px; max-width: 40ch; font: 500 clamp(19px, 1.9vw, 22px)/1.4 var(--f-body); letter-spacing: -0.01em; color: var(--ink); text-wrap: balance; }
/* Els quatre passos: el dibuixet de cada pas en una rodona i un fil que els uneix de dalt a baix (fa d'ordre sense números) */
.hp-list { list-style: none; margin: 0; padding: 0; display: grid; align-content: center; }
.hp-list li { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 18px; padding-bottom: 28px; color: var(--ink-2); font-size: 16.5px; max-width: 58ch; }
.hp-list li:last-child { padding-bottom: 0; }
.hp-list p { margin: 0; padding-top: 7px; }
.hp-list b { display: block; margin-bottom: 2px; color: var(--ink); font-size: 18px; font-weight: 600; }
.hp-ic { position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--vine-soft); --ac: var(--paper); }
.hp-ic .ico { width: 22px; height: 22px; }
/* El fil: una via clara i, a sobre, el tram fet (ple quan tot és quiet) */
.hp-list li:not(:last-child)::before, .hp-list li:not(:last-child)::after { content: ""; position: absolute; left: 21px; top: 50px; bottom: 6px; width: 2px; border-radius: 1px; background: var(--line); }
.hp-list li:not(:last-child)::after { background: var(--vine); transform-origin: top; }
.hp-stage { margin: 0; display: grid; place-content: center; justify-items: center; gap: 20px; padding: clamp(32px, 5vw, 56px) clamp(16px, 4vw, 48px); border-radius: var(--r-block); background: var(--paper-2); }
/* L'escena: l'informe del mes */
.hp-scene { display: grid; width: min(100%, 410px); }
.hp-stage .art-report { width: 100%; max-width: none; margin: 0; gap: 12px; padding: 20px 22px; font-size: 15px; }
.hp-stage .art-nums strong { font-size: 34px; }
.hp-stage .art-nums span { font-size: 14px; }
.hp-stage .art-bars { height: 68px; gap: 8px; }
.hp-stage figcaption { max-width: 32ch; text-align: center; text-wrap: balance; font-size: 14px; color: var(--ink-2); }
/* Sota l'informe: amb Fidelitza't, a més, hi ha el panell */
.hp-more { grid-area: more; margin: 16px 0 0; text-align: center; text-wrap: balance; font-size: 15px; line-height: 1.7; color: var(--ink-2); }
.hp-more a { color: var(--ink); font-weight: 600; text-underline-offset: 4px; }
@media (max-width: 860px) {
  .how-plan { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "list" "stage" "more"; row-gap: 32px; }
  .hp-more { margin-top: -16px; }
  .hp-lead { margin-bottom: 0; }
}

/* «Com treballem» en moviment (motion.js hi posa .hp-live): cada pas s'encén quan arriba amb el scroll; l'informe del costat
   s'anima pel seu compte (.art-report). Amb moviment reduït, tot quiet i complet com a dalt. */
@media (prefers-reduced-motion: no-preference) {
  .hp-live .hp-ic { transition: background-color .5s var(--ease-out), box-shadow .6s var(--ease-out), scale .6s var(--ease-out); }
  .hp-live .hp-ic .ico { transition: color .5s ease-out; }
  .hp-live .hp-list b { transition: color .5s ease-out; }
  .hp-live .hp-list li:not(.is-on, .is-done) .hp-ic { background: var(--paper-2); --ac: var(--paper-2); }
  .hp-live .hp-list li:not(.is-on, .is-done) .ico { color: var(--ink-2); }
  .hp-live .hp-list li:not(.is-on, .is-done) b { color: var(--ink-2); }
  .hp-live .hp-list li.is-on .hp-ic { background: var(--vine); box-shadow: 0 0 0 6px var(--vine-soft); scale: 1.06; --ac: var(--paper); }
  .hp-live .hp-list li.is-on .ico { animation: hp-ico 1s var(--ease-out) both; }
  .hp-live .hp-list li::after { scale: 1 0; transition: scale .9s var(--ease-out); }
  .hp-live .hp-list li.is-done::after { scale: 1 1; }
}
@keyframes hp-ico { from { stroke-dasharray: 1; stroke-dashoffset: 1; } to { stroke-dasharray: 1; stroke-dashoffset: 0; } }

/* ===== Portada: Qui som (dues cares) ===== */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: center; padding-block: clamp(48px, 7vw, 96px); border-top: 1px solid var(--line); }
.about-faces { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.face { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; min-width: 0; align-self: start; }
.face:nth-child(2) { margin-top: 48px; }
.face img { aspect-ratio: 4 / 5; width: 100%; border-radius: var(--r-block); object-fit: cover; }
.face img { height: auto; object-position: 50% 25%; }
.face figcaption { display: grid; gap: 2px; }
.face figcaption b { font-weight: 600; }
.face figcaption span { font-size: 14px; color: var(--ink-2); }
.about-txt h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 16px; }
.about-txt .lead { max-width: 40ch; }
.about-txt .muted { max-width: 46ch; margin-top: 12px; }
.about-ticks { margin-top: 20px; max-width: 46ch; }
.about-link { margin-top: 8px; color: var(--ink); }
@media (max-width: 860px) { .about { grid-template-columns: minmax(0, 1fr); } .about-faces { max-width: 460px; } .face:nth-child(2) { margin-top: 32px; } }

/* ===== Portada: «Parlem-ne» com una frase per omplir ===== */
.contact-short { padding-block: clamp(48px, 6vw, 80px); }
.contact-short h2 { margin-bottom: 8px; }
.contact-short .lead { max-width: 52ch; margin: 0; }
.say { margin-top: clamp(24px, 3vw, 36px); display: grid; gap: 20px; }
.say-line { margin: 0; font: 500 clamp(22px, 2.6vw, 32px)/1.9 var(--f-body); letter-spacing: -0.015em; color: var(--paper); max-width: 34em; }
.say-f { display: inline-block; vertical-align: baseline; }
.say-f input, .say-f select { font: inherit; letter-spacing: inherit; color: var(--paper); background: transparent; border: 0; border-bottom: 2px solid rgb(241 233 221 / .45); border-radius: 0; padding: 0 2px 2px; width: auto; min-width: 0; max-width: 100%; transition: border-color .15s ease-out; }
.say-f input::placeholder { color: rgb(241 233 221 / .66); }
.say-f input:hover, .say-f select:hover { border-bottom-color: rgb(241 233 221 / .75); }
.say-f input:focus-visible, .say-f select:focus-visible { outline: none; border-bottom-color: var(--vine); }
.say-f [aria-invalid="true"] { border-bottom-color: #E8A38F; }
.say-sel select { appearance: none; padding-right: 1.05em; cursor: pointer; background: no-repeat right 2px center / .55em url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23F1E9DD' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); }
.say-sel option { color: var(--ink); background: var(--paper); }
.say .err { margin: 0; }
.say .err:empty { display: none; }
.say-send { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.say-mail { min-height: 44px; padding: 0 4px; background: none; border: 0; color: var(--paper); font: 600 16px var(--f-body); text-decoration: underline; text-decoration-color: rgb(241 233 221 / .5); text-underline-offset: 5px; cursor: pointer; }
.say-mail:hover { text-decoration-color: var(--paper); }
.say-more { margin-left: auto; font-size: 15px; color: var(--on-dark-2); min-height: 44px; display: inline-flex; align-items: center; }
/* Sota el formulari: el WhatsApp i el correu, per a qui prefereix escriure pel seu compte */
.say-direct { display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; margin: 28px 0 0; padding-top: 20px; border-top: 1px solid var(--band-line); font-size: 16px; color: var(--on-dark-2); }
.say-direct a { display: inline-block; padding-block: 10px; color: var(--paper); font-weight: 600; text-decoration-color: var(--vine); text-underline-offset: 5px; overflow-wrap: anywhere; }
.say-direct b { font-weight: inherit; }
@media (max-width: 560px) { .say-direct { flex-direction: column; align-items: flex-start; } .say-direct > [aria-hidden] { display: none; } }
@media (max-width: 860px) { .say-more { margin-left: 0; flex-basis: 100%; } .say-line { line-height: 1.75; } .say-wide input { width: 12em; } }
.say-line { font-size: clamp(22px, 2.3vw, 30px); }
.say-f input[name="name"] { width: 6.6em; }
.say-f input[name="business"] { width: 10.6em; }
.say-f select { width: auto; }
.say-p { margin-left: -.18em; }
.say-send svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.say-send svg .fill { fill: currentColor; stroke: none; }
@media (max-width: 860px) { .say-f input[name="business"] { width: 10.6em; max-width: calc(100vw - 2 * var(--gutter) - 2em); } }

/* ===== Portada: preguntes en dues columnes (títol a l'esquerra, llista a la dreta) ===== */
.faq-home { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.fh-intro { position: sticky; top: 96px; }
.fh-intro h2 { margin-bottom: 12px; }
.fh-intro p { max-width: 30ch; margin: 0; }
.fh-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; font-weight: 600; color: var(--vine-ink); }
@media (max-width: 860px) { .faq-home { grid-template-columns: minmax(0, 1fr); gap: 20px; } .fh-intro { position: static; } }

/* Targeta de MOOM: tota clicable */
.case-mini { text-decoration: none; transition: background-color .2s ease-out; }
.case-mini:hover { background: var(--torna-deep); }
.case-mini:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.case-mini .cp-go { text-decoration: underline; }
@media (prefers-reduced-motion: no-preference) {
  .case-mini:hover .link-ill { rotate: -10deg; scale: 1.12; }
}

/* ===== Portes: la foto, enganxada amb un marc de paper, girada una mica i sortint per dalt de la targeta ===== */
.ways .door-photo, .ways .door-torna .door-photo { -webkit-mask-image: none; mask-image: none; }
.ways { padding-top: clamp(72px, 9vw, 112px); }
.ways .door { overflow: visible; }
.ways .door-photo, .ways .door-torna .door-photo { width: 38%; height: auto; aspect-ratio: 4 / 5; margin: -72px -8px 16px 24px; border: 8px solid var(--paper); border-radius: 4px; box-shadow: 0 18px 36px -18px rgb(44 51 42 / .5); rotate: 3deg; }
.ways .door-torna .door-photo { rotate: -3deg; width: 36%; }
.ways .door-im .door-photo { rotate: 2deg; }
@media (prefers-reduced-motion: no-preference) {
  .ways .door-photo { transition: rotate .5s var(--ease-out); }
  .ways .door:is(:hover, :focus-within) .door-photo { rotate: 0deg; }
}
@media (max-width: 560px) {
  .ways .door-photo, .ways .door-torna .door-photo { float: right; width: 42%; margin: -48px -6px 12px 16px; }
}

/* ===== Desplegable de la frase («i vull que …»): botó subratllat i llista de paper ===== */
.say-pick { position: relative; }
.pick-native { position: absolute; top: 0; left: 0; width: 1px; min-width: 0; max-width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.pick-btn { font: inherit; letter-spacing: inherit; color: var(--paper); background: none; border: 0; border-bottom: 2px solid rgb(241 233 221 / .45); padding: 0 2px 2px; cursor: pointer; display: inline-flex; align-items: baseline; gap: .3em; transition: border-color .15s ease-out; }
.pick-btn:hover { border-bottom-color: rgb(241 233 221 / .75); }
.pick-btn:focus-visible, .is-open .pick-btn { outline: none; border-bottom-color: var(--vine); }
.pick-val { color: var(--vine-light); }
.pick-chev { width: .5em; height: .32em; align-self: center; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: rotate .25s var(--ease-out); }
.is-open .pick-chev { rotate: 180deg; }
.pick-list {
  position: absolute; z-index: 5; top: calc(100% + 10px); left: -8px; width: max-content; min-width: 300px; max-width: min(380px, calc(100vw - 2 * var(--gutter)));
  margin: 0; padding: 6px; list-style: none; outline: none;
  background: var(--paper); color: var(--ink); border-radius: var(--r-block);
  box-shadow: 0 1px 0 rgb(255 255 255 / .6) inset, 0 22px 44px -16px rgb(0 0 0 / .45), 0 4px 10px -4px rgb(0 0 0 / .25);
  font: 400 15px/1.35 var(--f-body); letter-spacing: 0;
  transform-origin: 24px 0;
}
.pick-list li { display: grid; grid-template-columns: 22px minmax(0, 1fr) 14px; align-items: center; gap: 12px; padding: 10px 12px; border-radius: calc(var(--r-block) - 2px); cursor: pointer; }
.pick-list li + li { margin-top: 2px; }
.pick-list .ico { width: 22px; height: 22px; color: var(--ink); --ac: var(--vine-soft); }
.pick-list b { display: block; font-weight: 600; font-size: 16px; }
.pick-list small { display: block; color: var(--ink-2); font-size: 13.5px; margin-top: 1px; }
.pick-list li.is-active { background: var(--vine-soft); }
.pick-list li[aria-selected="true"] b { color: var(--vine-ink); }
.pick-ok { width: 14px; height: 12px; fill: none; stroke: var(--vine-ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.pick-list li[aria-selected="true"] .pick-ok { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .pick-list:not([hidden]) { animation: pick-in .28s var(--ease-out); }
  .pick-list:not([hidden]) li { animation: pick-li .32s var(--ease-out) backwards; }
  .pick-list li:nth-child(2) { animation-delay: .04s; }
  .pick-list li:nth-child(3) { animation-delay: .08s; }
  .pick-list li:nth-child(4) { animation-delay: .12s; }
}
@keyframes pick-in { from { opacity: 0; transform: translateY(-6px) scale(.96); } }
@keyframes pick-li { from { opacity: 0; transform: translateY(-4px); } }
.pick-list.is-up { top: auto; bottom: calc(100% + 10px); transform-origin: 24px 100%; }
@media (max-width: 560px) { .pick-list { min-width: 0; width: min(330px, calc(100vw - 32px)); } }

/* Portada, cas MOOM: foto de la targeta a dalt de la caixa oliva, que es fon amb el fons */
.case-mini { position: relative; overflow: hidden; }
.cm-img { display: block; width: calc(100% + 2 * clamp(28px, 4vw, 40px)); max-width: none; height: 230px; margin: calc(-1 * clamp(28px, 4vw, 40px)) calc(-1 * clamp(28px, 4vw, 40px)) 4px; object-fit: cover; object-position: 50% 42%;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%); mask-image: linear-gradient(180deg, #000 55%, transparent 100%); }
.case-mini .cm-tag { margin-bottom: 8px; }

/* ===== Formulari en dos passos (auditoria de Mostra't, contacte de Fidelitza't): steps-form.js =====
   Colors per variables, perquè cada franja hi posi el seu accent sense tocar les regles. */
.au-form {
  --au-accent: var(--vine); --au-on-accent: var(--on-vine); --au-k: var(--vine-light); --au-soft: var(--on-dark-2);
  --au-done: var(--vine-light); --au-err: var(--err-dark);
  margin-top: 0;
}
.au-form .say-line { font-size: clamp(21px, 2.1vw, 27px); }
.au-form .say-f input { min-height: 44px; }
.au-form .say-f input[name="name"] { width: 6.4em; }
.au-form .say-f input[name="business"] { width: 8em; }
.au-form .say-f input[name="town"] { width: 6em; }
.au-form .say-f input[name="contact"] { width: 11em; }
.au-form .say-f [aria-invalid="true"] { border-bottom-color: var(--au-err); }
.au-form .err { color: var(--au-err); }
.au-form :focus-visible { outline-color: var(--au-accent); }
.au-step { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 18px; }
.au-step[hidden] { display: none; }
.au-q { padding: 0; font: 400 clamp(24px, 2.6vw, 32px)/1.15 var(--f-head); color: var(--paper); }
.au-n { display: block; margin-bottom: 8px; font: 600 14px/1 var(--f-body); color: var(--au-k); }
.au-ch { display: inline-flex; gap: 6px; vertical-align: .12em; margin: 0 2px; }
.au-step .au-ch { margin: 0; }
.au-ch label { position: relative; cursor: pointer; }
.au-ch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.au-ch span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid rgb(241 233 221 / .6); font-size: 15px; font-weight: 600; letter-spacing: 0; transition: background-color .15s ease-out, color .15s ease-out, border-color .15s ease-out; }
.au-ch label:hover span { border-color: var(--paper); }
.au-ch input:checked + span { background: var(--au-accent); border-color: var(--au-accent); color: var(--au-on-accent); }
.au-ch input:focus-visible + span { outline: 3px solid var(--au-accent); outline-offset: 2px; }
.au-more { display: grid; gap: 8px; font-size: 15px; font-weight: 600; color: var(--paper); }
.au-more em { font-style: normal; font-weight: 400; color: var(--au-soft); }
.au-more textarea { width: 100%; resize: vertical; min-height: 76px; font: 400 16px/1.45 var(--f-body); color: var(--paper); background: rgb(0 0 0 / .14); border: 1.5px solid rgb(241 233 221 / .6); border-radius: var(--r-ctl); padding: 11px 14px; caret-color: var(--paper); transition: border-color .15s ease-out; }
.au-more textarea::placeholder { color: var(--au-soft); }
.au-more textarea:hover { border-color: rgb(241 233 221 / .85); }
.au-more textarea:focus-visible { outline: 3px solid var(--au-accent); outline-offset: 1px; }
.au-ok { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; font-size: 14.5px; color: var(--au-soft); cursor: pointer; }
.au-ok input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--au-accent); }
.au-mk em { font-style: normal; opacity: .8; }
.au-btn { gap: 10px; }
.au-btn .ico { width: 19px; height: 19px; color: var(--on-vine); --ac: transparent; }
.au-btn.is-busy { opacity: .7; cursor: progress; }
.au-back { min-height: 44px; padding: 0 6px; background: none; border: 0; color: var(--paper); font: 600 15px var(--f-body); text-decoration: underline; text-decoration-color: rgb(241 233 221 / .5); text-underline-offset: 5px; cursor: pointer; }
.au-back:hover { text-decoration-color: var(--paper); }
.au-note { margin: -6px 0 0; font-size: 13.5px; color: var(--au-soft); }
.au-done:focus { outline: none; }
.au-done-t { margin: 0; }
.au-done-t b { color: var(--au-done); }
@media (max-width: 860px) { .au-form .say-line { line-height: 1.85; } }
@media (prefers-reduced-motion: no-preference) {
  .au-step:not([hidden]) { animation: au-in .35s var(--ease-out); }
  .au-btn .ico { transition: translate .25s var(--ease-out), rotate .25s var(--ease-out); }
  .au-btn:hover .ico { translate: 3px -2px; rotate: -8deg; }
  .au-form.is-sent .au-done { animation: lf-in .5s var(--ease-out); }
}
@keyframes au-in { from { opacity: 0; translate: 12px 0; } }
@keyframes lf-in { from { opacity: 0; translate: 0 8px; } }

/* ===== Pàgines de servei (Web, Google i les IA, Anuncis, Targeta, Automatitzacions): peces comunes =====
   Una foto amb marc de paper (o, mentre no hi ha la foto, una maqueta al mateix lloc), «per a qui és»,
   el procés en tres passos, el cas real i el preu. Tot entra un cop en arribar a la vista ([data-in], motion.js). */
.sp { padding-block: clamp(56px, 8vw, 104px); border-top: 1px solid var(--line); }
.sp-head { display: grid; gap: 12px; max-width: 62ch; margin-bottom: clamp(28px, 4vw, 48px); }
.sp h2 { font-size: clamp(26px, 3vw, 36px); }
.sp-head p, .sp-txt > p { margin: 0; color: var(--ink-2); font-size: 18px; max-width: 52ch; }
.sp-split { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.sp-split.is-rev { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.sp-split.is-rev > .sp-pic { order: -1; }
.sp-txt { display: grid; gap: 16px; justify-items: start; align-content: start; min-width: 0; }
.sp-txt > h2 { margin-bottom: 4px; }
.sp-txt .plain { margin-top: 8px; }
@media (max-width: 860px) {
  .sp-split, .sp-split.is-rev { grid-template-columns: minmax(0, 1fr); }
  .sp-split.is-rev > .sp-pic { order: 0; }
}

/* Foto amb marc de paper, girada una mica (com la de la targeta al pont de Mostra't) */
.sp-pic { position: relative; margin: 0; justify-self: center; width: min(100%, var(--pic-w, 400px)); }
.sp-pic > img { display: block; width: 100%; height: auto; aspect-ratio: var(--ar, 4 / 5); object-fit: cover; object-position: var(--pos, 50% 50%); border: 10px solid #FBF7F0; border-radius: 4px; background: var(--piedra-soft); box-shadow: 0 28px 50px -26px rgb(44 51 42 / .5); rotate: var(--tilt, 1.5deg); }
.sp-pic.is-wide { --ar: 3 / 2; --pic-w: 600px; }
.sp-pic.is-left { --tilt: -1.5deg; }
.sp-note { position: absolute; z-index: 1; left: -28px; bottom: 32px; max-width: 240px; display: grid; gap: 2px; padding: 10px 14px; border-radius: 12px; background: var(--paper); color: var(--ink); font-size: 14px; line-height: 1.35; box-shadow: 0 14px 30px -14px rgb(44 51 42 / .5); }
.sp-note b { font-size: 12px; color: var(--ink-2); font-weight: 600; }
.sp-note.is-right { left: auto; right: -24px; }
.sp-pic.is-wide .sp-note { bottom: -22px; }
@media (max-width: 560px) { .sp-note { left: -6px; bottom: 20px; max-width: 210px; } .sp-note.is-right { right: -6px; } }

/* Per a qui és: tipus de negoci amb el que hi guanya cadascun */
.sp-biz { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 28px 36px; }
.sp-biz li { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; row-gap: 4px; align-content: start; padding-top: 16px; border-top: 1px solid var(--line); }
.sp-biz .ico { grid-row: span 2; margin-top: 2px; color: var(--ink-2); }
.sp-biz b { font-weight: 600; font-size: 18px; line-height: 1.3; }
.sp-biz span { color: var(--ink-2); font-size: 16px; }

/* El procés: qui fa què, en tres passos, amb una línia fina entre els dibuixets */
.sp-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 30px; }
.sp-steps > li { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 18px; row-gap: 6px; align-content: start; }
.sp-steps > li:not(:last-child)::after { content: ""; position: absolute; left: 21.5px; top: 54px; bottom: -22px; width: 1px; background: var(--piedra); }
.sp-steps .ill { grid-row: span 3; width: 44px; height: 44px; color: var(--ink-2); }
.sp-steps h3 { font-size: 19px; line-height: 1.3; }
.sp-who { color: var(--vine-ink); }
.fz .sp-who { color: var(--torna); }
.sp-steps p { margin: 0; color: var(--ink-2); max-width: 46ch; }
.sp-bring { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.sp-bring li { display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px; border-radius: var(--r-pill); border: 1.5px solid var(--piedra); background: var(--paper); font-size: 14px; font-weight: 500; color: var(--ink); }

/* El cas real dins d'una pàgina de servei: bloc de crema fosca, el que vam fer i el que diuen les dades */
.sp-case { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding: clamp(28px, 4.5vw, 60px); border-radius: var(--r-block); background: var(--paper-2); }
.sp-case h2 { margin: 4px 0 0; }
.sp-facts { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 14px; }
.sp-facts li { padding-top: 12px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 16px; }
.sp-facts b { display: block; color: var(--ink); font: 600 19px/1.3 var(--f-body); letter-spacing: -0.01em; }
.sp-case .cp-go { margin-top: 16px; color: var(--ink); }
.sp-case .cp-go:hover { text-decoration-thickness: 2.5px; }
.sp-src { margin: 12px 0 0; font-size: 14px; color: var(--ink-2); }
@media (max-width: 860px) { .sp-case { grid-template-columns: minmax(0, 1fr); } }

/* Tancament (banda de contacte): titular, una frase i el botó */
.cta-in { display: grid; gap: 16px; justify-items: start; }

/* Entrada en arribar a la vista: cada fill puja una mica, un rere l'altre, un sol cop.
   Les animacions de dins (maquetes) esperen a que el bloc sigui a la vista. Sense JS o amb moviment reduït, tot quiet i complet. */
@media (prefers-reduced-motion: no-preference) {
  .motion-ready [data-in]:not(.is-in), .motion-ready [data-in]:not(.is-in) * { animation-play-state: paused !important; }
  /* La foto amb marc entra recta i s'acaba de girar */
  .motion-ready .sp-pic[data-in] > :is(img, .sp-slot) { rotate: 0deg; scale: .97; transition: opacity .7s ease-out, translate .9s var(--ease-out), rotate 1.1s .15s var(--ease-out), scale 1.1s var(--ease-out); }
  .motion-ready .sp-pic[data-in].is-in > :is(img, .sp-slot) { rotate: var(--tilt, 1.5deg); scale: 1; }
  .motion-ready .sp-pic[data-in] > .sp-note { transition-delay: .6s; }
  /* La línia del procés es dibuixa de dalt a baix */
  .motion-ready .sp-steps[data-in] > li::after { transform-origin: top; scale: 1 0; transition: scale .8s .35s var(--ease-out); }
  .motion-ready .sp-steps[data-in].is-in > li::after { scale: 1 1; }
}

/* Cas real: la web a l'ordinador i, al davant, el mòbil */
.sp-devices { position: relative; margin: 0; padding: 0 0 clamp(28px, 4vw, 48px); min-width: 0; }
.sp-browser { margin: 0 clamp(48px, 9%, 96px) 0 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--paper); box-shadow: 0 24px 48px -26px rgb(44 51 42 / .45); }
.sp-browser-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--ink-2); }
.sp-browser-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--piedra); }
.sp-browser-bar span { margin-left: 10px; }
.sp-browser img { width: 100%; height: auto; }
.sp-phone { position: absolute; right: 0; bottom: 0; width: clamp(104px, 26%, 150px); margin: 0; padding: 5px; border-radius: 22px; background: #20261F; box-shadow: 0 24px 40px -18px rgb(44 51 42 / .55); }
.sp-phone img { width: 100%; height: auto; border-radius: 17px; }
@media (prefers-reduced-motion: no-preference) {
  .motion-ready .sp-devices[data-in] > .sp-phone { transition-delay: .35s; }
}

/* ===== Imagina't: la tercera via a la portada. Més petita, de crema fosca, sota Mostra't (a l'escriptori) ===== */
.door-im { background: var(--pissarra); color: var(--on-color); --ac: #6A7E8A; }
.door-im:is(:hover, :focus-within) { background: var(--pissarra-deep); }
.door-im .ico { color: var(--on-color); }
.door-im :focus-visible { outline-color: var(--pissarra-soft); }

@media (min-width: 901px) {
  .ways > .door-vine { grid-column: 1; grid-row: 1; }
  .ways > .door-torna { grid-column: 2; grid-row: 1; }
  .ways > .door-im { grid-column: 3; grid-row: 1; }
}

/* Pàgines de servei amb foto al hero: l'escena dibuixada que hi havia baixa just a sota, en una banda «Exemple»,
   o ocupa el lloc d'una foto dins d'una secció (.sp-mk). Les escenes ja s'animen soles en arribar a la vista. */
.ex-band { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 88px); align-items: center; padding-block: clamp(48px, 7vw, 88px); border-top: 1px solid var(--line); }
.ex-band h2 { font-size: clamp(26px, 3vw, 36px); margin: 0 0 14px; }
.ex-txt p { margin: 0; color: var(--ink-2); font-size: 18px; max-width: 46ch; }
.ex-band > .mk { justify-self: center; }
.sp-split > .sp-mk { justify-self: center; }
@media (max-width: 860px) { .ex-band { grid-template-columns: minmax(0, 1fr); } }

/* ===== Portada: «Ja hi treballen», més petit (dues fitxes iguals i més baixes) ===== */
.case-band { margin-top: 0; padding-top: clamp(28px, 4vw, 48px); padding-bottom: clamp(36px, 5vw, 64px); }
.case-band .cb-head { margin-bottom: 14px; }
.case-band .cb-head h2 { font-size: clamp(22px, 2.2vw, 26px); }
.case-band .cb-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.case-band .case-photo { display: flex; flex-direction: column; min-height: 0; }
.case-band .case-photo img { position: static; order: -1; width: 100%; height: 120px; object-position: 50% 45%; -webkit-mask-image: linear-gradient(0deg, transparent 0, #000 45%); mask-image: linear-gradient(0deg, transparent 0, #000 45%); }
.case-band .cp-txt { align-self: stretch; }
.case-band .cp-txt, .case-band .case-mini { padding: clamp(18px, 2.4vw, 26px); gap: 4px; }
.case-band .cp-name { font-size: clamp(19px, 1.8vw, 22px); }
.case-band .cp-k { font-size: 13.5px; }
.case-band .cp-what, .case-band .cm-what { font-size: 15px; }
.case-band .cp-go { min-height: 40px; margin-top: 4px; font-size: 15px; }
.case-band .case-mini { position: relative; overflow: hidden; min-height: 200px; }
.case-band .cm-tag { position: absolute; top: 14px; right: 14px; margin: 0; }
@media (max-width: 860px) { .case-band .cb-grid { grid-template-columns: minmax(0, 1fr); } }
.case-band .cm-img { --p: clamp(18px, 2.4vw, 26px); width: calc(100% + 2 * var(--p)); height: 120px; margin: calc(-1 * var(--p)) calc(-1 * var(--p)) 8px; }

/* ===== Polit visual (segona revisió) ===== */
/* Tancaments: el titular i la frase van junts; el botó, una mica més separat */
.cta-in > .lead { margin: 0; }
.cta-in > .btn, .cta-in > .actions { margin-top: 8px; }
/* Capçalera a 320 px (reflow): marca, «Contacte» i menú caben sense desbordar */
@media (max-width: 374px) {
  .top-in { gap: 8px; }
  .brand { gap: 7px; font-size: 16px; }
  .brand .mono { width: 34px; height: 24px; }
  .top-cta.btn.sm { padding: 0 11px; font-size: 14px; }
}
/* Frases per omplir (portada, auditoria, Fidelitza't): focus ben visible, no només el color del subratllat */
.say-f input:focus-visible, .say-f select:focus-visible, .pick-btn:focus-visible, .is-open .pick-btn {
  border-bottom-width: 3px; border-bottom-color: var(--vine); padding-bottom: 1px;
}
.say-f input:focus-visible, .say-f select:focus-visible, .pick-btn:focus-visible {
  outline: 2px solid var(--vine-light); outline-offset: 2px; border-radius: 2px;
}
/* La marca «Exemple» de les maquetes és la mateixa a totes les pàgines (la pastilla fosca) */
.art-audit { position: relative; }
/* Fitxes de cas: que la franja de foto mostri el titular de la web, no el mig del text */
.case-band .case-photo img[src*="taxis-taula"] { object-position: 50% 40%; }
@media (max-width: 860px) {
  .case-band .case-photo img, .case-band .cm-img { height: 168px; }
}
/* Mostra't (una sola fitxa a tota l'amplada): text a l'esquerra i la foto a la dreta, com el cas real complet */
@media (min-width: 761px) {
  .case-band > .case-photo { display: grid; min-height: 280px; }
  .case-band > .case-photo img { position: absolute; order: 0; width: 58.333%; height: 100%; object-position: 50% 40%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 40%); mask-image: linear-gradient(90deg, transparent 0, #000 40%); }
  .case-band > .case-photo .cp-txt { align-self: end; padding: clamp(24px, 3.4vw, 40px); }
}

/* Portada, les tres vies: 3 columnes des de 1100 px; entre 901 i 1099, Mostra't i Fidelitza't a dalt i Imagina't a tot l'ample */
@media (min-width: 901px) and (max-width: 1099px) {
  .ways { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ways > .door-im { grid-column: 1 / -1; grid-row: 2; margin-top: 28px; }
  .ways .door-im .door-photo { width: 220px; }
}

/* Portada: hero més baix, perquè a la primera pantalla ja es vegin les tres vies */
.ph-home { min-height: clamp(400px, 56vh, 540px); }
.ph-home > .wrap { padding-block: clamp(40px, 5vw, 64px); }
.ph-home + .ways, .ph-home ~ .ways { padding-top: clamp(64px, 6vw, 88px); }
@media (max-width: 860px) {
  .ph-home .ph-photo { height: clamp(180px, 46vw, 300px); }
  .ph-home > .wrap { padding-block: 20px 40px; }
}
