/* =============================================================
   INTEGRALCOW · fulla d'estil única
   Sistema visual heretat de l'aplicació (integralcow-frontend):
   Raleway · verd #2E7D32 · marró #5D4037 · superfícies clares
   radi 8 px · ombres Material · botons sense majúscules

   1 Tokens · 2 Reset · 3 Utilitats · 4 Tipografia · 5 Components
   6 Seccions · 7 Efectes · 8 Responsive · 9 Reduced motion
   ============================================================= */

/* =============================================================
   1. Tokens  (mirall de src/theme/theme.ts de l'aplicació)
   ============================================================= */
:root {
  /* paleta primària — palette.primary */
  --green:        #2E7D32;
  --green-light:  #4CAF50;
  --green-dark:   #1B5E20;

  /* paleta secundària — palette.secondary */
  --brown:        #5D4037;
  --brown-light:  #795548;
  --brown-dark:   #3E2723;

  /* superfícies — palette.background */
  --bg:           #F5F5F5;
  --paper:        #FFFFFF;
  --bg-sunk:      #EDEDED;
  --green-wash:   #E8F5E9;
  --brown-wash:   #EFEBE9;

  /* tinta — text.primary / text.secondary / text.disabled / divider */
  --ink:          rgba(0, 0, 0, .87);
  --ink-2:        rgba(0, 0, 0, .6);
  --ink-3:        rgba(0, 0, 0, .38);
  --line:         rgba(0, 0, 0, .12);
  --line-soft:    rgba(0, 0, 0, .06);

  /* estats del cicle — els mateixos colors que STATUS_STYLES a l'aplicació */
  --st-insem-bg:  #f3e5f5;  --st-insem:  #4a148c;
  --st-gest-bg:   #fce4ec;  --st-gest:   #880e4f;
  --st-parida-bg: #e8f5e9;  --st-parida: #1b5e20;
  --st-buida-bg:  #ffebee;  --st-buida:  #b71c1c;

  /* tipografies — @fontsource/raleway a l'aplicació */
  --sans: "Raleway", "Helvetica", "Arial", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* ombres — elevacions de Material */
  --e1: 0 2px 1px -1px rgba(0,0,0,.2), 0 1px 1px 0 rgba(0,0,0,.14), 0 1px 3px 0 rgba(0,0,0,.12);
  --e2: 0 3px 1px -2px rgba(0,0,0,.2), 0 2px 2px 0 rgba(0,0,0,.14), 0 1px 5px 0 rgba(0,0,0,.12);
  --e3: 0 3px 3px -2px rgba(0,0,0,.2), 0 3px 4px 0 rgba(0,0,0,.14), 0 1px 8px 0 rgba(0,0,0,.12);
  --e4: 0 2px 4px -1px rgba(0,0,0,.2), 0 4px 5px 0 rgba(0,0,0,.14), 0 1px 10px 0 rgba(0,0,0,.12);
  --e8: 0 5px 5px -3px rgba(0,0,0,.2), 0 8px 10px 1px rgba(0,0,0,.14), 0 3px 14px 2px rgba(0,0,0,.12);
  --e12: 0 7px 8px -4px rgba(0,0,0,.2), 0 12px 17px 2px rgba(0,0,0,.14), 0 5px 22px 4px rgba(0,0,0,.12);

  /* easings */
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);   /* MUI standard */

  /* mides */
  --gutter: clamp(1.15rem, 4vw, 3rem);
  --wrap: 1200px;
  --nav-h: 64px;                                /* alçada del Toolbar de MUI */
  --radius: 8px;                                /* shape.borderRadius */
  --radius-lg: 12px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; }
ul, ol { list-style: none; padding: 0; }

::selection { background: rgba(46, 125, 50, .18); }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
  border-radius: 4px;
}

/* =============================================================
   3. Utilitats
   ============================================================= */
.wrap {
  width: min(var(--wrap), 100% - (var(--gutter) * 2));
  margin-inline: auto;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .65rem 1rem; border-radius: var(--radius);
  background: var(--green); color: #fff; font-weight: 600;
  box-shadow: var(--e8);
}
.skip-link:focus { top: 1rem; }

.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); position: relative; }

/* icona Material en línia */
.mi { width: 20px; height: 20px; fill: currentColor; flex: 0 0 auto; }
.mi-lg { width: 24px; height: 24px; }
.mi-sm { width: 16px; height: 16px; }

/* =============================================================
   4. Tipografia
   ============================================================= */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .75rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--green);
}
.eyebrow::before {
  content: ""; width: 22px; height: 2px; border-radius: 2px;
  background: var(--green-light);
}

.section-title {
  font-size: clamp(1.9rem, 4.2vw, 2.85rem);
  line-height: 1.18;
  max-width: 22ch;
  margin-top: .9rem;
  color: var(--ink);
}
.section-title em,
.hero-title em,
.contacte-title em { font-style: normal; color: var(--green); }

.section-lead {
  margin-top: 1.1rem;
  max-width: 60ch;
  color: var(--ink-2);
  font-size: clamp(1rem, 1.4vw, 1.08rem);
}

.section-head { margin-bottom: clamp(2.2rem, 5vw, 3.4rem); }

.prose p { color: var(--ink-2); max-width: 58ch; }
.prose p + p { margin-top: 1rem; }
.prose strong { color: var(--ink); font-weight: 700; }
.section-title + .prose,
.contacte-title + .prose { margin-top: 1.2rem; }

/* =============================================================
   5. Components
   ============================================================= */

/* --- botons (MuiButton: sense majúscules, pes 600, radi 8) --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .65rem 1.35rem;
  min-height: 42px;
  border-radius: var(--radius);
  font-size: .95rem; font-weight: 600; letter-spacing: .01em;
  transition: background-color .25s var(--ease-soft), box-shadow .25s var(--ease-soft),
              border-color .25s var(--ease-soft), color .25s var(--ease-soft);
}
.btn-lg { padding: .85rem 1.7rem; min-height: 48px; font-size: 1rem; }
.btn-sm { padding: .4rem 1rem; min-height: 34px; font-size: .875rem; }

/* variant="contained" color="primary" */
.btn-primary {
  background: var(--green);
  color: #fff;
  box-shadow: var(--e2);
}
.btn-primary:hover { background: var(--green-dark); box-shadow: var(--e4); }
.btn-primary:active { box-shadow: var(--e8); }

/* variant="outlined" */
.btn-outlined {
  border: 1px solid rgba(46, 125, 50, .5);
  color: var(--green);
  background: transparent;
}
.btn-outlined:hover { border-color: var(--green); background: rgba(46, 125, 50, .06); }

/* variant="text" color="inherit" — per a la barra superior */
.btn-inherit {
  color: #fff;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .3);
}
.btn-inherit:hover { background: rgba(255, 255, 255, .24); }

/* botó blanc massís sobre la barra verda: és l'acció principal del capçal */
.btn-white {
  background: #fff;
  color: var(--green-dark);
  box-shadow: var(--e2);
}
.btn-white:hover { background: var(--green-wash); box-shadow: var(--e4); }

/* --- xips (MuiChip) --- */
.chip {
  display: inline-flex; align-items: center; gap: .35rem;
  height: 24px; padding: 0 .6rem;
  border-radius: 12px;
  font-size: .75rem; font-weight: 700; letter-spacing: .02em;
  white-space: nowrap;
}

/* píndoles d'estat — idèntiques a StatusChip de l'aplicació */
.status { border-radius: 6px; height: 22px; padding: 0 .5rem; font-size: .7rem; letter-spacing: .02em; }
.status-insem  { background: var(--st-insem-bg);  color: var(--st-insem); }
.status-gest   { background: var(--st-gest-bg);   color: var(--st-gest); }
.status-parida { background: var(--st-parida-bg); color: var(--st-parida); }
.status-buida  { background: var(--st-buida-bg);  color: var(--st-buida); }

/* estat d'una integració: honest sobre què funciona i què encara no */
.badge {
  display: inline-flex; align-items: center; gap: .4rem;
  height: 24px; padding: 0 .65rem; border-radius: 12px;
  font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-soon  { background: #FFF3E0; color: #E65100; }
.badge-plan  { background: var(--bg-sunk); color: var(--ink-2); }

/* --- fotografia --- */
.photo {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-sunk);
  box-shadow: var(--e3);
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-tall { aspect-ratio: 4 / 3; }

/* --- marc de navegador per a les captures reals --- */
.shot {
  background: var(--paper);
  border-radius: var(--radius-lg);
  box-shadow: var(--e8);
  overflow: hidden;
  border: 1px solid var(--line);
}
.shot-bar {
  display: flex; align-items: center; gap: .45rem;
  height: 36px; padding: 0 .85rem;
  background: var(--bg-sunk);
  border-bottom: 1px solid var(--line);
}
.shot-bar i {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(0, 0, 0, .16);
}
.shot-url {
  margin-left: .6rem;
  font-family: var(--mono); font-size: .68rem; color: var(--ink-3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.shot img { width: 100%; }
.shot figcaption {
  padding: .75rem 1rem;
  font-size: .8rem; color: var(--ink-3);
  border-top: 1px solid var(--line-soft);
}

/* =============================================================
   6. Seccions
   ============================================================= */

/* --- barra superior (la mateixa que l'AppBar de l'aplicació) --- */
.appbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--green);
  color: #fff;
  box-shadow: var(--e2);
  transition: box-shadow .25s var(--ease-soft);
}
.appbar.is-scrolled { box-shadow: var(--e4); }

.appbar-inner {
  width: min(var(--wrap), 100% - (var(--gutter) * 2));
  margin-inline: auto;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 1.2rem;
}
.brand { display: inline-flex; align-items: center; gap: .6rem; margin-right: auto; color: #fff; }
.brand-mark { width: 32px; height: auto; }
.brand-word {
  font-size: 1.22rem; font-weight: 700; letter-spacing: -0.01em;
  white-space: nowrap;
}
.nav-links { display: none; gap: .2rem; }
.nav-link {
  padding: .45rem .7rem;
  border-radius: var(--radius);
  font-size: .92rem; font-weight: 600;
  color: rgba(255, 255, 255, .88);
  transition: background-color .2s var(--ease-soft), color .2s var(--ease-soft);
}
.nav-link:hover { background: rgba(255, 255, 255, .14); color: #fff; }
/* el "(GTR)" del menú, destacat sense trencar la línia */
.nav-em { color: #A5D6A7; font-weight: 700; }
.nav-link:hover .nav-em { color: #C8E6C9; }

.nav-actions { display: none; align-items: center; gap: .55rem; }

.nav-toggle {
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 50%; color: #fff;
  transition: background-color .2s var(--ease-soft);
}
.nav-toggle:hover { background: rgba(255, 255, 255, .14); }
.nav-toggle-bars { display: grid; gap: 5px; }
.nav-toggle-bars i {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform .3s var(--ease-soft), opacity .2s;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:last-child  { transform: translateY(-3.5px) rotate(-45deg); }

.nav-drawer[hidden] { display: none; }
.nav-drawer {
  display: grid; gap: .15rem;
  padding: .6rem var(--gutter) 1.2rem;
  background: var(--green-dark);
  color: #fff;
}
.nav-drawer > a { padding: .75rem .25rem; font-size: 1.02rem; font-weight: 600; color: rgba(255,255,255,.92); }
.nav-drawer-actions { display: grid; gap: .6rem; margin-top: .9rem; justify-items: stretch; }
.nav-drawer .nav-em { color: #A5D6A7; }

/* --- portada: fotografia a sang + vel verd de marca --- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex; align-items: center;
  min-height: min(86vh, 760px);
  padding-top: clamp(3rem, 8vw, 5.5rem);
  padding-bottom: clamp(4.5rem, 9vw, 7rem);
  background: var(--green-dark);
  color: #fff;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 68% 55%; }

/* Vel de marca. En vertical (mòbil) va de dalt a baix; en pantalles amples
   passa a un degradat lateral que deixa neta la foto per la dreta. Compte: un
   degradat gairebé horitzontal sobre una caixa estreta i alta es torna vertical
   i tapa la imatge sencera — per això està separat per amplada. */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg,
    rgba(20, 66, 24, .80) 0%,
    rgba(20, 66, 24, .62) 24%,
    rgba(20, 66, 24, .52) 56%,
    rgba(20, 66, 24, .28) 72%,
    rgba(20, 66, 24, .12) 88%,
    rgba(20, 66, 24, .34) 100%);
}
/* Amb el vel més lleuger, la llegibilitat la sosté l'ombra del text. */
.hero-copy .hero-sub,
.hero-copy .hero-chip { text-shadow: 0 1px 10px rgba(0, 0, 0, .45); }

.hero-copy { max-width: 42rem; }

.hero-chip {
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .28);
  color: #fff;
  height: 28px; padding: 0 .8rem;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.hero-title {
  font-size: clamp(1.95rem, 5vw, 3.05rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
  max-width: 24ch;
  margin-top: 1.1rem;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, .5);
}
.hero-title em { font-style: normal; color: #A5D6A7; }
.hero-sub {
  margin-top: 1.15rem;
  max-width: 52ch;
  font-size: clamp(1.02rem, 1.7vw, 1.18rem);
  color: rgba(255, 255, 255, .88);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.9rem; }
.hero .btn-primary { background: #fff; color: var(--green-dark); }
.hero .btn-primary:hover { background: #E8F5E9; }
.hero .btn-outlined { border-color: rgba(255, 255, 255, .6); color: #fff; }
.hero .btn-outlined:hover { border-color: #fff; background: rgba(255, 255, 255, .14); }

/* franja de xifres: targetes blanques muntades sobre la vora de la foto */
.hero-strip-band { background: var(--bg); padding-bottom: clamp(2rem, 5vw, 3.2rem); }
.hero-strip {
  position: relative; z-index: 3;
  margin-top: clamp(-3.6rem, -6vw, -2.4rem);
  display: grid; gap: 1px;
  background: var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--e8);
}
.hero-strip li {
  display: flex; flex-direction: column; gap: .2rem;
  padding: 1.2rem 1.35rem;
  background: var(--paper);
}
.strip-num { font-size: 1.8rem; font-weight: 700; color: var(--green); line-height: 1.1; }
.strip-label { color: var(--ink-2); font-size: .88rem; max-width: 26ch; }

/* --- el problema: uns quants programes que no es parlen --- */
.problema { background: var(--brown-wash); }
.problema-inner { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.problema .section-title { color: var(--brown-dark); }
.problema .section-title em { color: var(--green-dark); }
.problema .prose p { color: var(--brown-dark); opacity: .88; }
.problema .prose strong { color: var(--brown-dark); opacity: 1; }

.disc {
  display: grid; gap: .75rem;
  margin-top: clamp(2.4rem, 5vw, 3.2rem);
}
.disc-card {
  padding: 1.1rem 1.15rem;
  border: 1px dashed rgba(62, 39, 35, .3);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .55);
}
.disc-card .mi { color: var(--brown-light); }
.disc-name { font-weight: 700; font-size: .95rem; margin-top: .65rem; color: var(--brown-dark); }
.disc-note { font-size: .82rem; color: var(--brown); margin-top: .2rem; }

.disc-join {
  display: flex; align-items: center; justify-content: center; gap: .55rem;
  margin: 1.5rem 0 1.1rem;
  font-size: .85rem; font-weight: 600; color: var(--brown);
  text-align: center;
}
.disc-join .mi { color: var(--brown-light); }

.unify {
  display: flex; align-items: center; gap: .95rem;
  padding: 1.15rem 1.35rem;
  border-radius: var(--radius);
  background: var(--green);
  color: #fff;
  box-shadow: var(--e4);
}
.unify img { width: 32px; height: auto; flex: 0 0 32px; }
.unify strong { font-size: 1.05rem; display: block; }
.unify span { display: block; font-size: .87rem; color: rgba(255, 255, 255, .84); }

/* --- l'aplicació --- */
.aplicacio { background: var(--paper); border-top: 1px solid var(--line); }
.aplicacio-head { display: grid; gap: .8rem; margin-bottom: 2.2rem; text-align: center; justify-items: center; }
.aplicacio-head .section-title { max-width: 24ch; }
.aplicacio-head .section-lead { margin-inline: auto; }

.punts {
  display: grid; gap: 1.4rem;
  margin-top: clamp(2rem, 4vw, 2.8rem);
}
.punt { display: flex; gap: .75rem; align-items: flex-start; }
.punt .mi { color: var(--green); margin-top: .15rem; }
.punt b { display: block; font-size: .95rem; }
.punt span { font-size: .88rem; color: var(--ink-2); }

/* porta d'entrada a l'aplicació, just després d'ensenyar el panell */
.app-cta {
  display: grid; gap: 1.1rem;
  margin-top: clamp(2.4rem, 5vw, 3.2rem);
  padding: clamp(1.3rem, 3vw, 1.8rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--green-wash);
}
.app-cta-txt strong { display: block; font-size: 1.05rem; color: var(--green-dark); }
.app-cta-txt > span { display: block; font-size: .92rem; color: var(--ink-2); margin-top: .2rem; }
.app-cta .btn { justify-self: start; }

/* --- cicle (carril) --- */
.cicle { background: var(--bg); border-top: 1px solid var(--line); }
.rail {
  position: relative;
  display: grid; gap: 1.9rem;
  margin-top: 1rem;
  padding-left: 1.9rem;
}
.rail::before {
  content: ""; position: absolute; left: 5px; top: .6rem; bottom: .6rem;
  width: 2px; border-radius: 2px;
  background: linear-gradient(180deg, var(--green-light), var(--green), rgba(46, 125, 50, .15));
  transform-origin: top;
  transition: transform 1.2s var(--ease-soft);
}
html.js .rail::before { transform: scaleY(0); }
html.js .rail.is-drawn::before { transform: scaleY(1); }

.stage { position: relative; }
.stage::before {
  content: ""; position: absolute; left: -1.9rem; top: .55rem;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--bg); border: 2.5px solid var(--green);
  box-shadow: 0 0 0 4px var(--bg);
}
.stage-meta { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.stage-day {
  font-family: var(--mono); font-size: .74rem; font-weight: 600;
  color: var(--ink-3); letter-spacing: .02em;
}
.stage-title { font-size: 1.12rem; font-weight: 700; margin-top: .45rem; }
.stage p { margin-top: .35rem; color: var(--ink-2); font-size: .92rem; max-width: 36ch; }

.cicle-aside { display: grid; gap: 1.2rem; align-content: start; }
.cicle-photo { aspect-ratio: 4 / 3; }

.cards {
  display: grid; gap: 1.1rem;
  margin-top: clamp(2.6rem, 6vw, 4rem);
}
.card {
  padding: clamp(1.3rem, 2.5vw, 1.7rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--e1);
  transition: box-shadow .25s var(--ease-soft), transform .25s var(--ease-soft),
              border-color .25s var(--ease-soft);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--e4);
  border-color: rgba(46, 125, 50, .35);
}
.card-ico {
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: var(--radius);
  background: var(--green-wash); color: var(--green-dark);
  margin-bottom: 1rem;
}
.card h3 { font-size: 1.12rem; }
.card p { margin-top: .55rem; color: var(--ink-2); font-size: .92rem; }

/* --- la migració des del ReproGTV --- */
.migracio { background: var(--paper); border-top: 1px solid var(--line); }
.migracio-inner { display: grid; gap: clamp(2.6rem, 5vw, 4rem); align-items: center; }

/* pila de finestres del programa antic: són la prova, no el protagonista */
.pila { position: relative; padding-bottom: 2.6rem; }
.pila-marc {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, .2);
  box-shadow: var(--e8);
  background: var(--bg-sunk);
  filter: grayscale(.5) contrast(.93) brightness(1.04);
  transition: filter .45s var(--ease-soft);
}
.pila:hover .pila-marc { filter: grayscale(.12) contrast(1) brightness(1.02); }
.pila-1 { width: 84%; transform: rotate(-2.4deg); }
.pila-2 { width: 74%; margin-left: auto; margin-top: -17%; transform: rotate(1.9deg); }
.pila-3 { width: 62%; margin-left: 8%; margin-top: -13%; transform: rotate(-1deg); }
.pila-tag {
  position: absolute; left: 0; bottom: 0;
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .45rem .85rem; border-radius: 12px;
  background: var(--ink); color: #fff;
  font-size: .72rem; font-weight: 700; letter-spacing: .03em;
  box-shadow: var(--e4);
}
.pila-tag .mi { width: 14px; height: 14px; }

.passos {
  display: grid; gap: 1.3rem;
  margin-top: clamp(2.4rem, 5vw, 3.4rem);
  counter-reset: pas;
}
.pas { position: relative; padding-left: 3.1rem; }
.pas::before {
  counter-increment: pas; content: counter(pas);
  position: absolute; left: 0; top: -2px;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--green-wash); color: var(--green-dark);
  font-weight: 700; font-size: .92rem;
}
.pas b { display: block; font-size: .98rem; }
.pas span { font-size: .9rem; color: var(--ink-2); }

/* --- integracions --- */
.integracions { background: var(--bg); border-top: 1px solid var(--line); }
.gtr { display: grid; gap: clamp(2rem, 4vw, 3.2rem); align-items: center; }
.gtr-head { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.gtr h3 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); }
.gtr .prose { margin-top: 1.1rem; }

.avis {
  display: flex; align-items: flex-start; gap: .75rem;
  margin-top: clamp(2.4rem, 5vw, 3.2rem);
  padding: 1.05rem 1.25rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--brown-light);
  background: var(--brown-wash);
  color: var(--brown-dark);
  font-size: .92rem;
  max-width: 70ch;
}
.avis .mi { color: var(--brown); margin-top: .15rem; }

/* full de ruta: la foto dona aire a una secció que si no seria tota text */
.futur {
  display: grid; gap: clamp(1.3rem, 3vw, 2.2rem);
  margin-top: clamp(2.4rem, 5vw, 3.2rem);
}
.futur-photo { aspect-ratio: 4 / 3; }

.roadmap { display: grid; gap: 1.1rem; }
.rm {
  padding: clamp(1.3rem, 2.5vw, 1.6rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--e1);
  display: grid; gap: .65rem; align-content: start;
}
.rm-top { display: flex; align-items: center; justify-content: space-between; gap: .7rem; }
.rm-ico {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: var(--radius);
  background: var(--bg-sunk); color: var(--ink-2);
}
.rm h3 { font-size: 1.05rem; }
.rm p { font-size: .9rem; color: var(--ink-2); }

/* --- contacte --- */
.contacte { background: var(--bg); border-top: 1px solid var(--line); }
.contacte-inner { display: grid; gap: clamp(2.2rem, 5vw, 3.5rem); }
.contacte-title {
  font-size: clamp(1.85rem, 4.2vw, 2.6rem);
  line-height: 1.18;
  margin-top: .9rem;
}
.contacte-text { margin-top: 1.1rem; color: var(--ink-2); max-width: 44ch; }

.contacte-photo { aspect-ratio: 16 / 10; margin-top: 1.8rem; }

/* targeta de contacte: un sol camí, WhatsApp */
.cta-card {
  padding: clamp(1.6rem, 3.5vw, 2.4rem);
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--e3);
}
.cta-card h3 { font-size: 1.35rem; }
.cta-card p { margin-top: .8rem; color: var(--ink-2); font-size: .96rem; max-width: 42ch; }
.cta-wa { width: 100%; margin-top: 1.6rem; background: #1FA855; }
.cta-wa:hover { background: #17833F; }
.cta-wa .mi { width: 22px; height: 22px; }
.cta-note { margin-top: .8rem; font-size: .8rem; color: var(--ink-3); text-align: center; }
.cta-card .cta-note { max-width: none; }


/* --- peu --- */
.footer {
  background: var(--brown-dark);
  color: rgba(255, 255, 255, .8);
  padding-block: clamp(2.4rem, 5vw, 3.4rem);
}
.footer-inner { display: grid; gap: 1rem; }
.footer-brand { display: inline-flex; align-items: center; gap: .55rem; color: #fff; font-size: 1.15rem; font-weight: 700; }
.footer-brand img { width: 26px; height: auto; }
.footer-inner p { font-size: .88rem; color: rgba(255, 255, 255, .62); }
.footer-links { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.footer-links a { font-size: .9rem; font-weight: 600; transition: color .2s var(--ease-soft); }
.footer-links a:hover { color: #fff; }
.footer small { font-size: .78rem; color: rgba(255, 255, 255, .45); }

/* =============================================================
   7. Efectes
   ============================================================= */
[data-reveal] { transition: opacity .7s var(--ease-soft), transform .7s var(--ease-soft); }
html.js [data-reveal] { opacity: 0; transform: translateY(20px); }
html.js [data-reveal].is-revealed { opacity: 1; transform: none; }

.hero-copy > [data-reveal]:nth-child(2) { transition-delay: .06s; }
.hero-copy > [data-reveal]:nth-child(3) { transition-delay: .12s; }
.hero-copy > [data-reveal]:nth-child(4) { transition-delay: .18s; }
.hero-copy > [data-reveal]:nth-child(5) { transition-delay: .24s; }
.hero-strip li:nth-child(2) { transition-delay: .08s; }
.hero-strip li:nth-child(3) { transition-delay: .16s; }
.stage:nth-child(2) { transition-delay: .05s; }
.stage:nth-child(3) { transition-delay: .1s; }
.stage:nth-child(4) { transition-delay: .15s; }
.stage:nth-child(5) { transition-delay: .2s; }
.card:nth-child(2), .rm:nth-child(2), .disc-card:nth-child(2) { transition-delay: .08s; }
.card:nth-child(3), .rm:nth-child(3), .disc-card:nth-child(3) { transition-delay: .16s; }
.disc-card:nth-child(4) { transition-delay: .24s; }

/* =============================================================
   8. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .hero-strip { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 720px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .roadmap { grid-template-columns: repeat(3, 1fr); }
  .disc { grid-template-columns: repeat(4, 1fr); }
  .passos { grid-template-columns: repeat(3, 1fr); }
  .punts { grid-template-columns: repeat(3, 1fr); }
  .problema-inner { grid-template-columns: 1.15fr .85fr; }
  .app-cta { grid-template-columns: 1fr auto; align-items: center; gap: 1.6rem; }
  .footer-inner { grid-template-columns: auto 1fr auto; align-items: center; gap: 1.6rem; }
  .footer-inner p { grid-row: 2; grid-column: 1 / -1; }
  .footer small { grid-row: 2; grid-column: 3; justify-self: end; }
}

@media (min-width: 880px) {
  .hero { min-height: min(76vh, 700px); }
  .hero::after {
    background:
      linear-gradient(180deg, rgba(20, 66, 24, .34) 0%, rgba(20, 66, 24, 0) 26%, rgba(20, 66, 24, .42) 100%),
      linear-gradient(95deg, rgba(20, 66, 24, .93) 0%, rgba(20, 66, 24, .74) 24%, rgba(20, 66, 24, .30) 46%, rgba(20, 66, 24, 0) 68%);
  }
}

@media (min-width: 960px) {
  .contacte-inner { grid-template-columns: 1fr 1fr; align-items: start; }
  .contacte-side { position: sticky; top: calc(var(--nav-h) + 2rem); }

  /* el cicle passa a dues columnes: carril + foto */
  .cicle-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
  .cicle-aside { position: sticky; top: calc(var(--nav-h) + 2rem); }

  /* migració i GTR, a dues columnes */
  .migracio-inner { grid-template-columns: .92fr 1.08fr; }
  .gtr { grid-template-columns: 1fr 1fr; }
  /* dins d'una columna estreta, els passos van apilats: en tres columnes
     el text es trencaria a cada paraula */
  .passos { grid-template-columns: 1fr; gap: 1.1rem; }

  /* full de ruta: foto a l'esquerra, targetes apilades a la dreta */
  .futur { grid-template-columns: .78fr 1.22fr; align-items: start; }
  .futur .roadmap { grid-template-columns: 1fr; }
  .futur-photo { aspect-ratio: auto; height: 100%; min-height: 320px; }
}

/* El menú complet només cap a partir d'aquí: quatre seccions amb noms llargs
   més dos botons d'acció. Per sota, calaix. */
@media (min-width: 1120px) {
  .nav-links { display: flex; }
  .nav-actions { display: flex; }
  .nav-toggle { display: none; }
  .nav-drawer { display: none !important; }
}

@media (min-width: 1280px) {
  .hero-title { font-size: clamp(2.7rem, 3.6vw, 3.25rem); }
}

/* =============================================================
   9. Reduced motion — només allò intrusiu
   (no es desactiven hovers, fades ni transicions curtes)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
