/* Tipografia
   - Work Sans (grup Focus): interfície, text i dades. Allotjada al servidor.
   - Source Serif 4 (OFL, Adobe): només títols principals. Instància òptica de display (opsz 48), pesos 500-700, subconjunt llatí.
*/
/* latin-ext */
@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(assets/fonts/work-sans-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(assets/fonts/work-sans-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url(assets/fonts/source-serif-4-display-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* fallbacks amb mètriques ajustades: menys salt de text mentre carreguen les fonts */
@font-face { font-family: 'Work Sans Fallback'; src: local('Arial'), local('Helvetica Neue'), local('Helvetica'); size-adjust: 111%; ascent-override: 84%; descent-override: 22%; line-gap-override: 0%; }
@font-face { font-family: 'Source Serif Fallback'; src: local('Georgia'), local('Times New Roman'); size-adjust: 100%; ascent-override: 98%; descent-override: 32%; line-gap-override: 0%; }
/* =============================================================
   1. Tokens · identitat Impuls FTN (alineada amb Focus Blue Ocean)
   ============================================================= */
:root {
  --navy:     #01437C;  /* Blau Fons: primari (10:1 sobre blanc) */
  --night:    #0B2742;  /* Blau nit: seccions fosques */
  --blue:     #077BC1;  /* Blau Focus: gràfics i fons de botó */
  --blue-ink: #0A6AA8;  /* Blau Focus per a text i enllaços (5.8:1) */
  --teal:     #62C4B8;  /* Verd impuls: només gràfics o sobre fosc */
  --teal-ink: #18706A;
  --ink:      #1F2A37;
  --grey:     #4B4F58;  /* Gris Focus */
  --mute:     #5F6673;
  --line:     #DDE5EC;
  --mist:     #F3F7FA;
  --mint:     #E8F4F2;
  --white:    #FFFFFF;
  --ok: #1D6B45; --ok-bg: #E3F3EA;
  --warn: #8A5A0B; --warn-bg: #FBF0DA;
  --no: #A1302A; --no-bg: #FBE6E4;

  --sans: "Work Sans", "Work Sans Fallback", Arial, sans-serif;
  --serif: "Source Serif 4", "Source Serif Fallback", Georgia, serif;

  /* escala tipogràfica (rols, no valors) */
  --fs-micro: 0.8125rem;                                   /* 13px  etiquetes en majúscules, xips, capçaleres de taula */
  --fs-small: 0.875rem;                                    /* 14px  fonts, ajudes, peu legal */
  --fs-ui:    0.9375rem;                                   /* 15px  botons, menú, camps, cel·les, notes */
  --fs-body:  1.0625rem;                                   /* 17px  text */
  --fs-lede:  clamp(1.125rem, 1rem + .5vw, 1.3125rem);     /* 18→21 entradetes */
  --fs-h4:    1.1875rem;                                   /* 19px  títols de panell */
  --fs-h3:    clamp(1.25rem, 1.12rem + .45vw, 1.4375rem);  /* 20→23 títols de targeta */
  --fs-h2s:   clamp(1.625rem, 1.3rem + 1.1vw, 2.125rem);   /* 26→34 títols de servei i de guia */
  --fs-h2:    clamp(2rem, 1.35rem + 2.3vw, 3rem);          /* 32→48 títols de secció */
  --fs-h1:    clamp(2.25rem, 1.45rem + 3vw, 3.5rem);       /* 36→56 títols de pàgina */
  --fs-hero:  clamp(2.5rem, 1.4rem + 4.4vw, 4.375rem);     /* 40→70 portada */
  --measure: 66ch; --measure-lede: 58ch;

  /* espai: base de 4 px i rols */
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-6: 24px; --space-8: 32px; --space-10: 40px; --space-12: 48px; --space-16: 64px;
  --space-stack-s: var(--space-2);                 /* etiqueta→títol, label→camp */
  --space-stack:   var(--space-4);                 /* títol→entradeta, dins de les targetes */
  --space-stack-l: var(--space-6);                 /* entradeta→accions */
  --space-grid:    clamp(16px, 2vw, 24px);         /* separació entre targetes */
  --space-card:    clamp(20px, 2.4vw, 32px);       /* farciment de targetes i panells */
  --space-block:   clamp(32px, 4vw, 48px);         /* capçalera de secció→contingut */
  --space-section-s: clamp(40px, 5vw, 64px);       /* franges i bandes de crida */
  --space-section: clamp(64px, 8vw, 104px);        /* secció normal */
  --space-section-l: clamp(72px, 9vw, 128px);      /* la secció principal: Radiografia */
  --space-page-top: clamp(24px, 3vw, 40px);        /* capçalera de pàgina→primera secció */
  --radius: 18px;
  --radius-s: 12px;
  --shadow: 0 1px 2px rgba(11,39,66,.06), 0 8px 24px rgba(11,39,66,.07);
  --shadow-lg: 0 2px 4px rgba(11,39,66,.06), 0 24px 48px rgba(11,39,66,.12);
  --gutter: clamp(16px, 4vw, 40px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 160ms; --dur: 250ms; --dur-slow: 400ms;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  background: var(--white); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.6; font-weight: 400;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.3; letter-spacing: -0.01em; font-weight: 600; color: var(--navy); }
input, select, textarea { font: inherit; }
::selection { background: var(--teal); color: var(--night); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link { position: fixed; top: -100px; left: 1rem; z-index: 9999; padding: .6rem 1rem; background: var(--navy); color: #fff; border-radius: 8px; text-decoration: none; }
.skip-link:focus { top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-ink); }
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--teal); border-radius: 2px; }
.on-dark .eyebrow { color: var(--teal); }
.lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--grey); max-width: 62ch; }
.muted { color: var(--mute); }
.small { font-size: 14px; }
.num { font-variant-numeric: tabular-nums; }
.center { text-align: center; margin-inline: auto; }

/* =============================================================
   4. Typography
   ============================================================= */
.h-hero { font-size: clamp(38px, 5.6vw, 68px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.04; }
.h-sec { font-size: clamp(30px, 3.6vw, 46px); letter-spacing: -0.025em; }
.h-card { font-size: 21px; letter-spacing: -0.01em; }
.hl { color: var(--blue); }
.on-dark .hl { color: var(--teal); }
.prose { color: var(--ink); }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: clamp(25px, 2.6vw, 32px); margin-top: 1.8em; }
.prose h3 { font-size: 21px; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: .4em; }
.prose a { color: var(--blue-ink); text-underline-offset: 3px; font-weight: 500; }
.source { font-size: 14px; color: var(--mute); }

/* =============================================================
   5. Components
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-weight: 600; font-size: 16px; line-height: 1; padding: 15px 22px; border-radius: 999px;
  text-decoration: none; border: 1.5px solid transparent;
  transition: transform var(--dur) var(--ease-out), background-color var(--dur-fast), box-shadow var(--dur) var(--ease-out), color var(--dur-fast);
}
@media (hover: hover) and (pointer: fine) { .btn:hover { transform: translateY(-1px); } }
.btn.primary { background: var(--navy); color: #fff; box-shadow: 0 6px 18px rgba(1,67,124,.25); }
@media (hover: hover) and (pointer: fine) { .btn.primary:hover { background: var(--night); } }
.btn.teal { background: var(--teal); color: var(--night); }
@media (hover: hover) and (pointer: fine) { .btn.teal:hover { background: #7fd3c8; } }
.btn.line { border-color: var(--navy); color: var(--navy); }
@media (hover: hover) and (pointer: fine) { .btn.line:hover { background: var(--navy); color: #fff; } }
.btn.ghost-dark { border-color: rgba(255,255,255,.5); color: #fff; }
@media (hover: hover) and (pointer: fine) { .btn.ghost-dark:hover { background: #fff; color: var(--navy); } }
.btn .arr { transition: transform var(--dur) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .btn:hover .arr { transform: translateX(3px); } }
.link { color: var(--blue-ink); font-weight: 600; text-decoration: none; display: inline-flex; gap: .4em; align-items: center; }
@media (hover: hover) and (pointer: fine) { .link:hover { text-decoration: underline; text-underline-offset: 4px; } }

/* header */
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.88); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid rgba(221,229,236,.8); }
@supports not (backdrop-filter: blur(1px)) { .site-header { background: #fff; } }
.hdr { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 76px; }
.hdr .logo img { height: 44px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; font-size: 15.5px; font-weight: 500; }
.nav a { text-decoration: none; color: var(--grey); padding: 8px 12px; border-radius: 999px; transition: background var(--dur-fast), color var(--dur-fast); }
@media (hover: hover) and (pointer: fine) { .nav a:hover { background: var(--mist); color: var(--navy); } }
.nav a[aria-current="page"] { color: var(--navy); background: var(--mint); }
.nav .btn { margin-left: 8px; padding: 11px 18px; font-size: 15px; }
.nav a.btn.primary, .nav a.btn.primary:hover { color: #fff; background: var(--navy); }
.nav-toggle { display: none; font-weight: 600; font-size: 15px; padding: 10px 16px; border: 1.5px solid var(--navy); color: var(--navy); border-radius: 999px; }

/* cards */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 2.4vw, 30px); box-shadow: var(--shadow); }
.card.flat { box-shadow: none; }
.card.mist { background: var(--mist); border-color: transparent; box-shadow: none; }
a.card { text-decoration: none; display: block; transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), border-color var(--dur-fast); }
@media (hover: hover) and (pointer: fine) { a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #c9d7e3; } }
.icon { width: 48px; height: 48px; border-radius: var(--radius-s); display: grid; place-items: center; background: var(--mint); color: var(--navy); flex: none; }
.icon svg { width: 24px; height: 24px; }
.icon.navy { background: var(--navy); color: var(--teal); }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--mist); color: var(--navy); }
.chip.teal { background: var(--mint); color: var(--teal-ink); }
.chip.onnavy { background: rgba(255,255,255,.1); color: #fff; }

.grid-2, .grid-3, .grid-4 { display: grid; gap: 20px; grid-template-columns: 1fr; }

/* doors */
.door { display: grid; gap: 12px; height: 100%; }
.door .d-kick { font-size: var(--fs-small); font-weight: 600; color: var(--blue-ink); }
.door p { color: var(--grey); font-size: 15.5px; }
.door .d-go { margin-top: auto; font-weight: 600; color: var(--navy); font-size: 15px; display: flex; justify-content: space-between; align-items: center; padding-top: 8px; border-top: 1px solid var(--line); }

/* differentiators */
.diff { display: grid; gap: 14px; align-content: start; }
.diff .n { font-size: var(--fs-micro); font-weight: 600; color: var(--teal-ink); letter-spacing: .05em; }
.diff p { color: var(--grey); font-size: 16px; }
.diff .proof { font-size: 14px; color: var(--mute); padding-top: 12px; border-top: 1px dashed var(--line); }

/* steps */
.steps { display: grid; gap: 20px; grid-template-columns: 1fr; counter-reset: s; position: relative; }
.step { position: relative; background: #fff; border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); display: grid; gap: 12px; align-content: start; }
.step .badge { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; font-weight: 700; font-size: 18px; }
.step .aid { font-weight: 600; font-size: 15px; color: var(--teal-ink); }
.step ul { padding-left: 1.1em; color: var(--grey); font-size: 15.5px; display: grid; gap: 4px; }
.lines { display: flex; flex-wrap: wrap; gap: 8px; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0; }
.stat { padding: 22px 18px; border-left: 1px solid rgba(255,255,255,.14); }
.stat:nth-child(odd) { border-left: 0; }
.stat .v { font-size: clamp(38px, 4.6vw, 56px); font-weight: 700; color: #fff; letter-spacing: -0.03em; line-height: 1; }
.stat .v span { color: var(--teal); }
.stat .l { margin-top: 8px; color: #C9D8E6; font-size: 15px; max-width: 26ch; }

/* trust bar */
.trust { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 36px; }
.trust img.seal { height: 58px; width: auto; }
.trust .t { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--grey); font-weight: 500; }
.trust .t svg { width: 20px; height: 20px; color: var(--teal-ink); flex: none; }

/* hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 600px at 85% 110%, #0d5a9a 0%, rgba(13,90,154,0) 60%), linear-gradient(160deg, var(--night) 0%, var(--navy) 100%); color: #fff; }
.hero .rings { position: absolute; right: -180px; bottom: -420px; width: 980px; height: 980px; opacity: .55; pointer-events: none; }
.hero-in { position: relative; display: grid; gap: 40px; padding-block: clamp(56px, 8vw, 110px); grid-template-columns: 1fr; align-items: center; }
.hero h1 { color: #fff; }
.hero .lede { color: #C9D8E6; margin-top: 22px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.checker { background: #fff; color: var(--ink); border-radius: 22px; padding: 26px; box-shadow: 0 30px 60px rgba(0,0,0,.25); }
.checker h2 { font-size: 20px; }
.checker .res { margin-top: 14px; border-radius: var(--radius-s); padding: 14px 16px; background: var(--mist); font-size: 15px; min-height: 76px; }
.checker .res strong { color: var(--navy); }

/* dark band */
.band-dark { background: var(--night); color: #fff; }
.band-dark h2, .band-dark h3 { color: #fff; }
.band-dark .lede { color: #C9D8E6; }
.band-mist { background: var(--mist); }

/* sections */
section { padding-block: clamp(64px, 8vw, 112px); }
.sec-head { display: grid; gap: 14px; margin-bottom: clamp(32px, 4vw, 52px); max-width: 760px; }
.sec-head.center { justify-items: center; text-align: center; margin-inline: auto; }
.page-head { background: linear-gradient(180deg, var(--mist) 0%, #fff 100%); padding-block: clamp(48px, 6vw, 84px) clamp(28px, 4vw, 48px); }
.page-head h1 { font-size: clamp(34px, 4.6vw, 56px); letter-spacing: -0.03em; margin-top: 14px; max-width: 20ch; }
.page-head .lede { margin-top: 18px; }

/* tables */
.tbl { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-s); background: #fff; }
table { border-collapse: collapse; width: 100%; font-size: 15.5px; }
.tbl table { min-width: 640px; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: var(--fs-micro); font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--mute); background: var(--mist); }
tr:last-child td { border-bottom: 0; }
td.r, th.r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tr.total td { font-weight: 700; color: var(--navy); background: var(--mist); }

/* notes */
.note { border-radius: var(--radius-s); background: var(--mint); padding: 16px 18px; font-size: 15.5px; color: var(--ink); }
.note.warn { background: var(--warn-bg); }
.note b { color: var(--navy); }

/* person */
.person { display: grid; gap: 28px; align-items: center; grid-template-columns: 1fr; }
.portrait { aspect-ratio: 4/5; width: 100%; max-width: 360px; border-radius: 22px; background: linear-gradient(160deg, var(--mint), var(--mist)); display: grid; place-items: center; text-align: center; color: var(--mute); font-size: 14px; padding: 20px; border: 1px solid var(--line); }
.portrait .ini { font-size: 64px; font-weight: 700; color: var(--navy); letter-spacing: -0.03em; }
.cred { display: grid; gap: 12px; margin-top: 20px; }
.cred li { list-style: none; display: flex; gap: 12px; align-items: flex-start; }
.cred ul { padding: 0; }
.cred svg { width: 22px; height: 22px; color: var(--teal-ink); flex: none; margin-top: 2px; }

/* forms */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-size: 14.5px; font-weight: 600; color: var(--navy); }
.field .hint { font-size: 13.5px; color: var(--mute); }
input[type=text], input[type=search], input[type=email], input[type=tel], input[type=number], select, textarea {
  font-family: var(--sans); font-size: 16px; color: var(--ink); background: #fff;
  border: 1.5px solid #CBD6E0; border-radius: 12px; padding: 12px 14px; width: 100%;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(7,123,193,.15); }
textarea { min-height: 130px; resize: vertical; }
fieldset { border: 0; padding: 0; }
.choices { display: grid; gap: 8px; }
.choice { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; line-height: 1.4; }
.choice input { margin-top: 2px; accent-color: var(--navy); width: 18px; height: 18px; flex: none; }
.choice a { color: inherit; }
.choices.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.choices.pills .choice { border: 1.5px solid #CBD6E0; border-radius: 999px; padding: 9px 14px; cursor: pointer; align-items: center; }
.choices.pills .choice:has(input:checked) { border-color: var(--navy); background: var(--mint); color: var(--navy); font-weight: 600; }
.row-2 { display: grid; grid-template-columns: 1fr; gap: 16px; }
.hp { position: absolute; left: -9999px; }
.form-status { font-size: 15px; padding: 12px 14px; border-radius: 12px; }
.form-status.ok { background: var(--ok-bg); color: var(--ok); }
.form-status.err { background: var(--no-bg); color: var(--no); }
.form-status.warn { background: var(--warn-bg); color: var(--warn); }

/* tools */
.tool { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: start; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 2.6vw, 30px); box-shadow: var(--shadow); }
.panel > h2 { font-size: 22px; margin-bottom: 16px; }
.result { display: grid; gap: 12px; }
.route { border: 1px solid var(--line); border-radius: var(--radius-s); padding: 16px 18px; display: grid; gap: 6px; background: #fff; }
.route-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }
.route-head strong { font-size: 17px; color: var(--navy); }
.route p { font-size: 15px; color: var(--grey); }
.route .ref { font-size: 12.5px; color: var(--mute); }
.tag { font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.tag.ok { background: var(--ok-bg); color: var(--ok); }
.tag.warn { background: var(--warn-bg); color: var(--warn); }
.tag.no { background: var(--no-bg); color: var(--no); }
.tag.info { background: var(--mist); color: var(--navy); }
.zone-badge { font-size: 15px; padding: 14px 16px; background: var(--mint); border-radius: var(--radius-s); }
.zone-badge strong { color: var(--navy); }
.meter { height: 12px; background: var(--mist); border-radius: 999px; position: relative; margin-top: 10px; overflow: visible; }
.meter .fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--blue), var(--teal)); width: 0; transition: clip-path var(--dur) var(--ease-out); }
.meter .fill.over { background: var(--no); }
.meter .mark { position: absolute; top: -5px; bottom: -5px; width: 2px; background: var(--navy); }
.meter-cap { display: flex; justify-content: space-between; font-size: 13px; color: var(--mute); margin-top: 6px; }
.score-big { font-size: clamp(56px, 7vw, 80px); font-weight: 700; line-height: 1; color: var(--navy); letter-spacing: -0.04em; }
.crit { display: grid; gap: 8px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.crit-head { display: flex; justify-content: space-between; gap: 12px; font-size: 15.5px; font-weight: 600; color: var(--navy); }
.crit-head .pts { color: var(--mute); font-weight: 500; white-space: nowrap; }
.crit p { font-size: 14.5px; color: var(--grey); }
.seg-ctrl { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 4px; background: var(--mist); padding: 4px; border-radius: 12px; }
.seg-ctrl label { position: relative; font-size: 13.5px; text-align: center; padding: 8px 4px; cursor: pointer; border-radius: 9px; font-weight: 500; color: var(--grey); }
.seg-ctrl input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg-ctrl label:has(input:checked) { background: #fff; color: var(--navy); font-weight: 700; box-shadow: 0 1px 3px rgba(11,39,66,.15); }
.seg-ctrl label:has(input:focus-visible) { outline: 2px solid var(--blue); }
.tabs { display: flex; gap: 4px; background: var(--mist); padding: 4px; border-radius: 999px; margin-bottom: 10px; width: max-content; max-width: 100%; }
.tabs button { font-weight: 600; font-size: 14.5px; padding: 9px 16px; border-radius: 999px; color: var(--grey); }
.tabs button[aria-selected="true"] { background: var(--navy); color: #fff; }

/* guide layout */
.guide { display: grid; grid-template-columns: 1fr; gap: 40px; }
.toc { font-size: 14.5px; }
.toc ol { list-style: none; padding: 0; display: grid; gap: 2px; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 6px 14px; text-decoration: none; color: var(--grey); margin-left: -2px; border-left: 2px solid transparent; }
@media (hover: hover) and (pointer: fine) { .toc a:hover { color: var(--navy); border-left-color: var(--teal); } }
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--blue), var(--teal)); z-index: 100; }
.pull { font-size: clamp(22px, 2.4vw, 28px); font-weight: 600; line-height: 1.3; color: var(--navy); padding: 24px 28px; border-radius: var(--radius); background: var(--mint); letter-spacing: -0.01em; }
.pull cite { display: block; margin-top: 10px; font-size: 14px; font-weight: 500; font-style: normal; color: var(--teal-ink); }

/* services */
.svc { display: grid; gap: 24px; grid-template-columns: 1fr; align-items: start; }
.svc + .svc { margin-top: 20px; }
.svc .aid { font-weight: 600; color: var(--teal-ink); }

/* footer */
.footer { background: var(--night); color: #C9D8E6; padding-block: 64px 40px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
.footer h4 { color: #fff; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; margin-bottom: 12px; }
.footer ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.footer a { color: #E6EEF5; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .footer a:hover { color: var(--teal); } }
.footer .flogo { height: 48px; width: auto; }
.footer .legal { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13.5px; color: #9FB4C8; display: grid; gap: 8px; }
.footer .legal a { color: #C9D8E6; text-decoration: underline; text-underline-offset: 3px; }
.footer .seal { height: 64px; width: auto; margin-top: 18px; border-radius: 6px; }

/* reveal (visible per defecte; només anima si hi ha JS) */
.js .reveal { opacity: 0; transform: translateY(8px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }

@view-transition { navigation: auto; }

/* =============================================================
   8. Responsive
   ============================================================= */
@media (max-width: 959px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; top: 76px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 10px var(--gutter) 18px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); gap: 2px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; }
  .nav .btn { margin: 8px 0 0; }
  .hdr .logo img { height: 38px; }
}
@media (min-width: 540px) {
  .row-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (min-width: 720px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .stats { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .stat:nth-child(odd) { border-left: 1px solid rgba(255,255,255,.14); }
  .stat:first-child { border-left: 0; }
  .person { grid-template-columns: 340px minmax(0,1fr); gap: 56px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
@media (min-width: 960px) {
  .grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .steps { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .hero-in { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 64px; }
  .tool { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
  .tool .sticky { position: sticky; top: 96px; }
  .guide { grid-template-columns: 220px minmax(0, 1fr); gap: 56px; }
  .toc { position: sticky; top: 100px; align-self: start; }
  .svc { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; }
}
@media (max-width: 719px) {
  .toc { display: none; }
}

/* =============================================================
   9. Reduced motion (només efectes intrusius)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  @view-transition { navigation: none; }
}
@media print {
  .site-header, .footer, .btn, .progress, .nav-toggle { display: none !important; }
}
.btn svg { width: 18px; height: 18px; }
.checker .link { display: inline-flex; }
.guide > *, .tool > *, .svc > *, .hero-in > *, .person > * { min-width: 0; }
.tabs { overflow-x: auto; }
.tabs button { white-space: nowrap; }
.door p { align-self: start; }
.portrait.photo { padding: 0; object-fit: cover; object-position: center top; display: block; box-shadow: var(--shadow-lg); border: 0; }

/* ---- Fotografia (set 2026-09) ---- */
.hero-photo { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 62%; object-fit: cover; object-position: center 60%; opacity: .32; pointer-events: none; -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 55%); mask-image: linear-gradient(180deg, transparent 0%, #000 55%); mix-blend-mode: luminosity; }
.hero .rings { z-index: 0; }
.svc-img { display: block; width: 100%; height: auto; aspect-ratio: 5 / 2; object-fit: cover; border-radius: var(--radius-s); margin-top: 22px; }
.ph-split { display: grid; gap: 28px; grid-template-columns: 1fr; align-items: center; }
.ph-split > * { min-width: 0; }
.ph-img { display: block; width: 100%; height: auto; aspect-ratio: 21 / 9; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.gallery { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery figure { margin: 0; position: relative; border-radius: var(--radius-s); overflow: hidden; }
.gallery img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 10px; color: #fff; font-weight: 600; font-size: 14.5px; background: linear-gradient(180deg, rgba(11,39,66,0) 0%, rgba(11,39,66,.85) 100%); }
.fig { margin: 28px 0; }
.fig img { display: block; width: 100%; height: auto; border-radius: var(--radius-s); }
.fig figcaption { font-size: 14px; color: var(--mute); margin-top: 8px; }
@media (min-width: 720px) { .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 960px) {
  .gallery { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .ph-split { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 56px; }
  .ph-img { aspect-ratio: 16 / 9; }
}

/* =============================================================
   Revisió 02/10/2026: Radiografia com a porta, formularis, detalls
   ============================================================= */
/* panells clars dins de bandes fosques: el text torna a ser fosc (consentiment llegible) */
.band-dark .panel, .on-dark .panel { color: var(--ink); }
.band-dark .panel .choice a, .on-dark .panel .choice a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }

/* peu: títols sense trencar l'esquema d'encapçalaments */
.footer .ft-h { color: #fff; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; margin-bottom: 12px; }

/* xips d'àncora */
a.chip { text-decoration: none; }
@media (hover: hover) and (pointer: fine) { a.chip:hover { background: var(--mint); } }

/* Radiografia a la portada */
.rg-home { padding-block: clamp(40px, 5vw, 64px); background: linear-gradient(180deg, #fff 0%, var(--mint) 100%); border-bottom: 1px solid var(--line); }
.rg-home-in { display: grid; gap: 28px 56px; align-items: center; grid-template-columns: 1fr; }
.rg-home-in > * { min-width: 0; }
.rg-gets { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; counter-reset: rg; }
.rg-gets li { counter-increment: rg; position: relative; padding: 0 0 0 42px; font-size: 16px; line-height: 1.45; color: var(--grey); }
.rg-gets li::before { content: counter(rg); position: absolute; left: 0; top: -2px; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 14px; font-weight: 600; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.rg-gets li strong { color: var(--navy); }
.rg-home .rg-gets { background: #fff; border-radius: var(--radius); padding: 24px 24px 24px 24px; box-shadow: var(--shadow); }

/* banda final de les pàgines interiors */
.rg-band { padding-block: clamp(44px, 5vw, 64px); }
.rg-band-in { display: flex; flex-wrap: wrap; gap: 24px 40px; justify-content: space-between; align-items: center; }
.rg-band-in > div { max-width: 62ch; }
.rg-band .lede { margin-top: 10px; }

/* pàgina de la Radiografia */
.rg-head { padding-block: clamp(32px, 4vw, 56px) clamp(16px, 2vw, 24px); }
.rg-head h1 { max-width: 24ch; }
.rg-sec { padding-top: 8px; }
.rg-layout { display: grid; gap: 24px; grid-template-columns: 1fr; align-items: start; }
.rg-layout > * { min-width: 0; }
.rg-aside { display: grid; gap: 16px; }
.panel.flat { box-shadow: none; }
.rg-aside-t { font-size: 18px; margin-bottom: 14px; }
.rg-aside .rg-gets li { font-size: 15px; padding-left: 38px; }
.rg-aside .rg-gets li::before { width: 24px; height: 24px; font-size: 13px; }
.rg-who-head { display: flex; gap: 14px; align-items: center; }
.rg-who-head img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; }
.rg-who-n { font-weight: 600; color: var(--navy); font-size: 17px; line-height: 1.25; }
.rg-who a { color: var(--blue-ink); }
.rg-seal { display: inline-block; margin-top: 14px; }
.rg-seal img { height: 50px; width: auto; }
.field .opt { font-weight: 500; color: var(--mute); font-size: 13px; margin-left: 6px; }
.choice.box { border: 1.5px solid #CBD6E0; border-radius: var(--radius-s); padding: 12px 14px; cursor: pointer; align-items: center; }
.choice.box:has(input:checked) { border-color: var(--navy); background: var(--mint); color: var(--navy); }
details.more { margin-top: 10px; }
details.more summary { cursor: pointer; font-size: 15px; font-weight: 600; color: var(--blue-ink); padding: 8px 0; list-style: none; display: inline-flex; align-items: center; gap: 6px; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::before { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform var(--dur-fast) var(--ease-out); margin-right: 4px; }
details.more[open] summary::before { transform: rotate(45deg); }
details.more .choices { margin-top: 6px; }

/* errors de camp i estats */
.field-err { font-size: 14px; color: var(--no); font-weight: 500; }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--no); box-shadow: 0 0 0 3px rgba(161,48,42,.12); }
.choice input[aria-invalid="true"] { outline: 2px solid var(--no); outline-offset: 2px; }
.form-status.busy { background: var(--mist); color: var(--navy); display: flex; align-items: center; gap: 10px; }
.form-status.busy::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(1,67,124,.2); border-top-color: var(--navy); animation: rg-spin .8s linear infinite; flex: none; }
.btn.is-busy { opacity: .85; cursor: progress; }
@keyframes rg-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .form-status.busy::before { animation-duration: 2.4s; } }

/* objectius tàctils còmodes */
.choices.pills .choice { min-height: 44px; }
.choice input { width: 20px; height: 20px; }

/* puntuació */
.score-of { font-size: .4em; color: var(--mute); letter-spacing: 0; }
.score-mini { display: none; }

/* portada: el paisatge es reconeix, el text continua llegible */
.hero-photo { opacity: .42; mix-blend-mode: normal; filter: saturate(.85); }

@media (min-width: 720px) {
  .rg-home-in { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
}
@media (min-width: 960px) {
  .rg-layout { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 32px; }
  .rg-aside { position: sticky; top: 96px; }
}
@media (max-width: 959px) {
  .score-mini { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; align-items: baseline; gap: 6px; background: var(--night); color: #fff; padding: 12px 16px; border-radius: var(--radius-s); box-shadow: 0 10px 30px rgba(11,39,66,.3); font-size: 15px; }
  .score-mini b { font-size: 22px; font-variant-numeric: tabular-nums; color: var(--teal); }
  .score-mini.low b { color: #F2A29C; }
  .score-mini a { margin-left: auto; color: #fff; font-weight: 600; font-size: 14px; }
  body:has(.score-mini) .footer { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
}
@media print { .score-mini, .rg-aside { display: none !important; } }
.field { align-content: start; }
th.r { white-space: normal; }
.tbl table[style*="min-width:0"] th, .tbl table[style*="min-width:0"] td { padding-inline: 12px; }


/* =============================================================
   Sistema tipogràfic (02/10/2026)
   Serif = veu editorial dels títols grans. Work Sans = interfície, text i dades.
   ============================================================= */
/* títols de display: serif */
.h-hero, .page-head h1, .h-sec, .svc h2, .prose h2, .rg-band h2, .pull, .person-name {
  font-family: var(--serif); font-weight: 600; font-optical-sizing: auto; font-kerning: normal;
}
.h-hero { font-size: var(--fs-hero); line-height: 1.06; letter-spacing: -0.02em; }
.page-head h1 { font-size: var(--fs-h1); line-height: 1.08; letter-spacing: -0.018em; max-width: 22ch; }
.rg-head h1 { max-width: 24ch; }
.h-sec { font-size: var(--fs-h2); line-height: 1.1; letter-spacing: -0.015em; }
.svc h2, .svc .h-sec { font-size: var(--fs-h2s); line-height: 1.15; letter-spacing: -0.01em; margin-top: 8px; }
.prose h2 { font-size: var(--fs-h2s); line-height: 1.18; letter-spacing: -0.01em; margin-top: 1.9em; }
.prose h2 + * { margin-top: .6em; }
.rg-band h2 { font-size: var(--fs-h2s); line-height: 1.15; }
.pull { font-weight: 500; font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem); line-height: 1.3; letter-spacing: -0.005em; }
.pull cite { font-family: var(--sans); }
.on-dark .h-hero, .band-dark .h-sec, .band-dark h2 { letter-spacing: -0.01em; }
.hero .hl { font-style: normal; }

/* títols de targeta i panell: Work Sans, un esglaó clar per sota */
.h-card, .prose h3, .step h3 { font-size: var(--fs-h3); font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
.panel > h2, .checker h2, .rg-aside-t, .form h2 { font-size: var(--fs-h4); font-weight: 600; letter-spacing: -0.005em; line-height: 1.3; }
.crit-head { font-size: var(--fs-ui); }
.route-head strong { font-size: var(--fs-body); font-weight: 600; }
.person-name { font-size: var(--fs-h3); line-height: 1.2; color: var(--navy); }

/* text i mesura de lectura */
body { font-size: var(--fs-body); }
.lede { font-size: var(--fs-lede); max-width: var(--measure-lede); }
.prose > p, .prose > ul, .prose > ol, .prose > .note { max-width: var(--measure); }
.note { font-size: var(--fs-ui); max-width: 70ch; }
.source, .small, .field .hint, figcaption, .fig figcaption, .route .ref { font-size: var(--fs-small); }
.footer .legal { font-size: var(--fs-small); color: #B4C6D6; max-width: 92ch; line-height: 1.55; }

/* interfície */
.btn, .nav a, .field label, .field legend, .door p, td, .step ul, .choice, .toc, .crit p, .meter-cap { font-size: var(--fs-ui); }
.nav .btn { font-size: var(--fs-ui); }
.prose a.btn { font-weight: 600; color: inherit; }
.prose a.btn.line { color: var(--navy); }
@media (hover: hover) and (pointer: fine) { .prose a.btn.line:hover { color: #fff; } }
.seg-ctrl label { font-size: var(--fs-small); }

/* etiquetes: majúscules només on fan de rètol curt */
.eyebrow, .footer .ft-h { font-size: var(--fs-micro); letter-spacing: .07em; }
.tag, .chip { font-size: var(--fs-micro); }
.door .d-kick { font-size: var(--fs-small); text-transform: none; letter-spacing: 0; font-weight: 600; }
@media (max-width: 539px) { .hero .eyebrow { letter-spacing: .04em; font-size: .75rem; } }

/* dades: Work Sans amb xifres tabulars */
.stat .v, .score-big { font-family: var(--sans); font-variant-numeric: tabular-nums; }
.score-of { font-weight: 500; }

/* panell de contacte */
.label-strong { font-weight: 600; color: var(--navy); }


/* =============================================================
   Maquetació i ritme (02/10/2026)
   ============================================================= */
/* seccions per rol */
section { padding-block: var(--space-section); }
.trust-band { padding-block: var(--space-6); border-bottom: 1px solid var(--line); }
.rg-home { padding-block: var(--space-section-l); background: var(--mint); border-bottom: 0; }
.rg-band { padding-block: var(--space-section-s); }
.page-head + section, .page-head + noscript + section, section.after-head { padding-top: var(--space-page-top); }
.band-mist + .band-mist, section:not([class]) + section:not([class]) { padding-top: 0; }

/* capçalera de secció: etiqueta enganxada al títol, entradeta a un pas, contingut a un bloc */
.sec-head { gap: var(--space-stack); margin-bottom: var(--space-block); }
.sec-head > .eyebrow + * { margin-top: calc(var(--space-stack-s) - var(--space-stack)); }

/* graelles i targetes */
.grid-2, .grid-3, .grid-4, .steps { gap: var(--space-grid); }
.card, .panel { padding: var(--space-card); }
.door { gap: var(--space-stack-s); }
.door h3 { margin-top: calc(var(--space-1) * -1); }
.door .d-go { padding-top: var(--space-3); margin-top: var(--space-2); }
.step { gap: var(--space-3); padding: var(--space-card); }

/* diferenciadors: columnes obertes, no targetes */
.grid-3 > .card.diff { background: none; border: 0; box-shadow: none; border-radius: 0; padding: var(--space-6) 0 0; border-top: 2px solid var(--navy); gap: var(--space-3); }
.grid-3 > .card.diff .icon { display: none; }
.grid-3 > .card.diff .proof { border-top-style: solid; padding-top: var(--space-3); margin-top: var(--space-2); }
@media (min-width: 960px) { .grid-3:has(> .card.diff) { column-gap: var(--space-12); } }

/* hero */
.h-hero { margin-top: var(--space-4); }
.hero-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-8); }
.checker .link { margin-top: var(--space-4); padding-block: var(--space-2); }
@media (max-width: 719px) { .hero-chips { display: none; } .hero .ctas .btn { flex: 1 1 auto; justify-content: center; } }

/* franja de confiança */
.trust { gap: var(--space-4) var(--space-8); }
@media (max-width: 719px) { .trust { display: grid; grid-template-columns: 1fr 1fr; align-items: center; } .trust .seal { grid-row: span 2; } .trust .t { font-size: var(--fs-small); } }
@media (min-width: 1100px) { .trust { justify-content: space-between; flex-wrap: nowrap; } }

/* Radiografia a la portada: un sol bloc amb les eines com a segona opció */
.rg-home .lede { margin-top: var(--space-stack); }
.rg-cta { margin-top: var(--space-stack-l); }
.rg-note { margin-top: var(--space-3); }
.rg-tools { margin-top: var(--space-10); padding-top: var(--space-6); border-top: 1px solid rgba(1,67,124,.15); }
.rg-tools-t { font-size: var(--fs-small); color: var(--grey); }
.rg-tools ul { list-style: none; padding: 0; margin-top: var(--space-3); display: grid; gap: var(--space-2); }
.rg-tools a { display: grid; gap: 2px; padding: var(--space-3) var(--space-4); border-radius: var(--radius-s); background: rgba(255,255,255,.7); text-decoration: none; color: var(--navy); font-weight: 600; font-size: var(--fs-ui); transition: background var(--dur-fast); }
.rg-tools a span { font-weight: 400; color: var(--grey); font-size: var(--fs-small); }
@media (hover: hover) and (pointer: fine) { .rg-tools a:hover { background: #fff; } }
@media (min-width: 720px) { .rg-tools ul { grid-template-columns: repeat(3, minmax(0, 1fr)); } .rg-home-in { align-items: start; } }

/* xifres dins del recorregut (fons clar) */
.stats-light { margin-top: var(--space-block); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats-light .stat { border-left-color: var(--line); padding: var(--space-6) var(--space-4); }
.stats-light .stat .v { color: var(--navy); font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); }
.stats-light .stat .v span { color: var(--teal-ink); }
.stats-light .stat .l { color: var(--grey); font-size: var(--fs-ui); }
.stats-src { margin-top: var(--space-3); }

/* portes: a mòbil sense foto, per no fer-les interminables */
@media (max-width: 719px) {
}

/* galeria: tira lliscant a mòbil */
@media (max-width: 719px) {
  .gallery { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 44%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: var(--space-2); margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: thin; }
  .gallery li { scroll-snap-align: start; }
}

/* bandes finals: degradat propi perquè no es fonguin amb el peu */
.band-deep { background: linear-gradient(160deg, var(--navy) 0%, #0A3560 100%); }
.footer { border-top: 1px solid rgba(255,255,255,.08); }
.footer .legal { max-width: none; }
.footer .legal > * { max-width: 92ch; }

/* capçalera: botó principal visible també a mòbil i tauleta */
.hdr-cta { display: none; }
@media (max-width: 959px) {
  .hdr { gap: var(--space-3); }
  .hdr .logo { margin-right: auto; }
  .hdr-cta { display: inline-flex; padding: 10px 16px; font-size: var(--fs-ui); }
  .nav .btn.primary { display: none; }
}
@media (max-width: 379px) { .hdr-cta { padding: 9px 12px; font-size: var(--fs-small); } .hdr .logo img { height: 32px; } }
.nav a { white-space: nowrap; }

/* serveis: fases i serveis plans */
.phase { display: grid; gap: var(--space-2); padding: var(--space-12) 0 var(--space-4); border-bottom: 2px solid var(--navy); margin-bottom: var(--space-6); }
.phase:first-child { padding-top: 0; }
.phase-t { font-family: var(--serif); font-size: var(--fs-h2); line-height: 1.1; }
.phase p { color: var(--grey); max-width: 60ch; }
.card.svc { box-shadow: none; border-color: var(--line); }
.svc + .svc { margin-top: var(--space-grid); }
.svc .prose .note { background: var(--mist); }
a.chip { min-height: 40px; padding: 10px 14px; }

/* panells enganxosos: mai més alts que la pantalla */
@media (min-width: 960px) {
  .rg-aside { position: static; }
  .tool .sticky { max-height: calc(100dvh - 112px); overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; }
}
#calc-form .row-2 { align-items: end; }

/* puntuació: la barra fixa no tapa res */
@media (max-width: 959px) {
  body:has(.score-mini) main { padding-bottom: 88px; }
  .score-mini { transition: opacity var(--dur-fast), transform var(--dur-fast) var(--ease-out); }
  .score-mini.is-hidden, .score-mini.at-end { opacity: 0; transform: translateY(12px); pointer-events: none; }
  .score-mini a { padding: 10px 0; }
}

/* guia: índex plegable a mòbil */
.toc-m { display: none; }
@media (max-width: 719px) {
  .toc-m { display: block; margin-bottom: var(--space-6); border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--mist); }
  .toc-m summary { cursor: pointer; padding: var(--space-3) var(--space-4); font-weight: 600; color: var(--navy); font-size: var(--fs-ui); }
  .toc-m ol { margin: 0; padding: 0 var(--space-4) var(--space-3) calc(var(--space-4) + 1.2em); display: grid; gap: var(--space-2); font-size: var(--fs-ui); }
  .toc-m a { color: var(--blue-ink); }
}

/* Radiografia: resum mòbil, resultat i formulari plegat */
.rg-mini { display: none; }
@media (max-width: 959px) { .rg-mini { display: block; font-size: var(--fs-ui); color: var(--grey); margin-bottom: var(--space-4); } }
#rg-out { margin-top: var(--space-6); }
.rg-out-head { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-6); align-items: center; justify-content: space-between; padding-bottom: var(--space-4); margin-bottom: var(--space-4); border-bottom: 1px solid var(--line); }
.rg-out-t { font-family: var(--serif); font-size: var(--fs-h3); font-weight: 600; color: var(--navy); }
.rg-summary { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; justify-content: space-between; padding: var(--space-4) var(--space-card); background: var(--mint); border-radius: var(--radius); font-weight: 600; color: var(--navy); }
@media (min-width: 720px) { .rg-home-in { align-items: center; } }
.rg-home .rg-tools { margin-top: var(--space-12); }

/* =============================================================
   Opció B · el territori com a protagonista (03/10/2026)
   ============================================================= */
/* hero amb el mapa dels 95 municipis */
.hero-map { position: relative; display: grid; gap: var(--space-4); }
.map-fig { margin: 0; }
.ftn-map { display: block; width: 100%; height: auto; max-height: 520px; }
.m-ctx path { fill: none; stroke: rgba(255,255,255,.10); stroke-width: .6; }
.m-ftn path { stroke: #0B2742; stroke-width: .8; stroke-linejoin: round; cursor: pointer; transition: fill var(--dur-fast), opacity var(--dur-fast); }
.m-ftn .z1 { fill: var(--teal); }
.m-ftn .z2 { fill: rgba(98,196,184,.34); }
@media (hover: hover) and (pointer: fine) { .m-ftn path:hover { fill: #A6E3DB; } }
.ftn-map.has-sel .m-ftn path { opacity: .55; }
.ftn-map.has-sel .m-ftn path.is-on { opacity: 1; fill: #fff; stroke: var(--teal); stroke-width: 2; }
.m-plants .ring { fill: none; stroke: #fff; stroke-opacity: .35; stroke-dasharray: 3 4; pointer-events: none; }
.m-plants .ring.r2 { stroke-opacity: .22; }
.m-plants .plant { fill: #fff; stroke: var(--night); stroke-width: 2; }
.m-plants text { fill: #fff; font: 600 13px var(--sans); paint-order: stroke; stroke: var(--night); stroke-width: 3px; }
.m-label text { fill: #fff; font: 600 15px var(--sans); text-anchor: middle; paint-order: stroke; stroke: var(--night); stroke-width: 4px; pointer-events: none; }
.map-legend { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); font-size: var(--fs-small); color: #C9D8E6; margin-top: var(--space-2); }
.map-legend .lg { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: -8px; vertical-align: -1px; }
.map-legend .lg.z1 { background: var(--teal); }
.map-legend .lg.z2 { background: rgba(98,196,184,.34); }
.map-legend .lg.pl { background: #fff; border-radius: 50%; width: 9px; height: 9px; }
.hero .checker { position: relative; z-index: 1; }
.checker .small { margin-top: var(--space-1); }
.checker .field { margin-top: var(--space-3); }
@media (min-width: 960px) {
  .hero-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: var(--space-12); }
  .hero-map { display: block; }
  .hero .checker { margin: -120px 0 0 auto; max-width: 400px; }
}
@media (max-width: 959px) {
  .ftn-map { max-height: 360px; }
  .hero-map { order: 0; }
}

/* xifres reals de la Radiografia */
.rg-proof { display: grid; gap: var(--space-4); margin: var(--space-12) 0 0; padding-top: var(--space-6); border-top: 1px solid rgba(1,67,124,.15); }
.rg-proof > div { display: grid; gap: var(--space-1); }
.rg-proof dt { font-family: var(--serif); font-weight: 600; font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.25rem); line-height: 1; color: var(--navy); letter-spacing: -0.02em; font-variant-numeric: tabular-nums lining-nums; }
.rg-proof dd { margin: 0; color: var(--grey); font-size: var(--fs-ui); max-width: 34ch; }
.rg-proof-src { margin-top: var(--space-3); }
.rg-home .rg-proof + .rg-proof-src + .rg-tools { margin-top: var(--space-8); }
@media (min-width: 720px) { .rg-proof { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-8); } }

/* portes: selector de dues columnes (sense JS o a mòbil, llista oberta) */
.doors { display: grid; gap: var(--space-4); }
.doors-list { list-style: none; padding: 0; margin: 0; display: none; }
.door-panel { display: grid; gap: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.door-panel[hidden] { display: grid; }
.door-panel img { display: none; }
.dp-body { display: grid; gap: var(--space-2); padding: var(--space-card); }
.dp-k { font-size: var(--fs-small); font-weight: 600; color: var(--blue-ink); }
.dp-body p:not(.dp-k) { color: var(--grey); font-size: var(--fs-ui); max-width: 52ch; }
.dp-body .btn { justify-self: start; margin-top: var(--space-3); }
@media (min-width: 960px) {
  .doors.is-ready { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: var(--space-12); align-items: start; }
  .doors.is-ready .doors-list { display: grid; gap: 2px; border-left: 2px solid var(--line); }
  .doors-list button { width: 100%; text-align: left; display: grid; gap: 2px; padding: var(--space-3) var(--space-4) var(--space-3) var(--space-6); margin-left: -2px; border-left: 2px solid transparent; border-radius: 0 var(--radius-s) var(--radius-s) 0; transition: background var(--dur-fast), border-color var(--dur-fast); }
  @media (hover: hover) and (pointer: fine) { .doors-list button:hover { background: var(--mist); } }
  .doors-list button[aria-selected="true"] { border-left-color: var(--navy); background: var(--mint); }
  .dt-k { font-weight: 600; color: var(--navy); font-size: var(--fs-body); line-height: 1.35; }
  .dt-l { font-size: var(--fs-small); color: var(--mute); }
  .doors.is-ready .door-panel[hidden] { display: none; }
  .doors.is-ready .door-panel { position: sticky; top: 100px; box-shadow: var(--shadow); }
  .doors.is-ready .door-panel img { display: block; width: 100%; height: 240px; object-fit: cover; }
  .doors.is-ready .dp-body { padding: var(--space-8); gap: var(--space-3); }
  .doors.is-ready .dp-body .h-card { font-family: var(--serif); font-size: var(--fs-h2s); line-height: 1.15; }
}

/* pàgines d'eina: capçalera compacta */
.ph-tool { padding-block: clamp(32px, 4vw, 56px) clamp(8px, 1.5vw, 16px); }
.ph-tool h1 { max-width: 26ch; }
.h-hero .hl { display: block; }
@media (min-width: 960px) {
  .map-legend { flex-direction: column; align-items: flex-start; gap: var(--space-2); max-width: calc(100% - 420px); margin-top: -100px; }
  .map-legend .lg { margin-right: var(--space-2); }
}
.map-legend .lgi { display: inline-flex; align-items: center; gap: var(--space-2); white-space: nowrap; }
.map-legend .lg { margin-right: 0; flex: none; }
@media (min-width: 960px) { .map-legend { max-width: none; margin-top: -96px; } }
@media (min-width: 960px) and (max-width: 1199px) { .map-legend { margin-top: var(--space-2); flex-direction: row; } .hero .checker { margin-top: var(--space-4); } }
@media (min-width: 1200px) {
  .map-fig { position: relative; }
  .map-legend { position: absolute; left: 0; top: 0; margin-top: 0; }
}
.map-src { font-size: .75rem; line-height: 1.4; color: #9FB4C8; margin-top: var(--space-2); }
@media (min-width: 960px) { .map-src { text-align: right; margin-top: var(--space-3); } }


/* =============================================================
   Moviment (03/10/2026) · plans d'animació 001-005
   ============================================================= */
/* 001 · barres sense animar l'amplada */
.progress { width: 100%; transform: scaleX(0); transform-origin: 0 50%; will-change: transform; }
.meter .fill { width: 100%; --p: 0%; clip-path: inset(0 calc(100% - var(--p)) 0 0 round 999px); transition: clip-path var(--dur) var(--ease-out); }

/* 002 · hover només amb ratolí, resposta en prémer */
.btn:active { transform: scale(0.97); transition-duration: var(--dur-fast); }
.btn:disabled:active, .btn.is-busy:active { transform: none; }

/* 003 · aparicions curtes; el que ja es veu o és destí d'un enllaç surt de seguida */
.js .reveal { transform: translateY(8px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
.js .reveal.now { transition: none; }

/* 004 · entrada del resultat de la Radiografia */
#rg-out, .rg-summary { transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out); }
.rg-summary { transition-duration: 200ms; }
@starting-style {
  #rg-out:not([hidden]) { opacity: 0; transform: translateY(8px); }
  .rg-summary:not([hidden]) { opacity: 0; }
}

/* 005 · selector de portes i menú mòbil */
@media (min-width: 960px) {
  .doors.is-ready .door-panel { transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out); }
  @starting-style { .doors.is-ready .door-panel:not([hidden]) { opacity: 0; transform: translateY(4px); } }
}
@media (max-width: 959px) {
  .nav.open { transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out); transform-origin: top center; }
  @starting-style { .nav.open { opacity: 0; transform: translateY(-6px); } }
}

/* moviment reduït: es manté la fosa, desapareixen desplaçaments i escales */
@media (prefers-reduced-motion: reduce) {
  .meter .fill { transition: none; }
  .btn:hover, .btn:active, a.card:active, a.card:hover, .btn:hover .arr { transform: none; }
  .score-mini.is-hidden, .score-mini.at-end { transform: none; }
  #rg-out, .rg-summary { transition: opacity 200ms ease; }
  @starting-style {
    #rg-out:not([hidden]) { transform: none; }
    .doors.is-ready .door-panel:not([hidden]) { transform: none; }
    .nav.open { transform: none; }
  }
}


/* =============================================================
   Moviment (03/10/2026) · oportunitats 1, 2 i 4
   ============================================================= */
/* 1 · resultat del Mapa d'ajuts: les rutes entren una darrere l'altra (màx. 240 ms) */
#mapa-out .route { transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out); transition-delay: calc(var(--i, 0) * 40ms); }
@starting-style { #mapa-out .route { opacity: 0; transform: translateY(6px); } }

/* 2 · desplegables "Més opcions" i índex de la guia (millora progressiva) */
:root { interpolate-size: allow-keywords; }
details.more::details-content, details.toc-m::details-content { height: 0; overflow: clip; transition: height 200ms var(--ease-out), content-visibility 200ms allow-discrete; }
details.more[open]::details-content, details.toc-m[open]::details-content { height: auto; }

/* 4 · missatge d'èxit dels formularis de contacte i avisos */
form[data-lead] .form-status.ok { transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out); }
@starting-style { form[data-lead] .form-status.ok:not([hidden]) { opacity: 0; transform: translateY(4px); } }

@media (prefers-reduced-motion: reduce) {
  #mapa-out .route { transition: opacity 200ms ease; transition-delay: 0ms; }
  @starting-style { #mapa-out .route { transform: none; } form[data-lead] .form-status.ok:not([hidden]) { transform: none; } }
  details.more::details-content, details.toc-m::details-content { transition: none; }
}

/* =============================================================
   Mòbil natiu (04/10/2026)
   ============================================================= */
/* sense flaix gris en tocar; cada control té el seu :active */
html { -webkit-tap-highlight-color: transparent; }

/* toc immediat: sense espera de doble toc */
a, button, label, summary, select, .ftn-map { touch-action: manipulation; }

/* els controls no se seleccionen amb una pulsació llarga; el text de contingut, sí */
.btn, .nav-toggle, .tabs button, .seg-ctrl label, .doors-list button, .chip, .choices.pills .choice, summary {
  -webkit-user-select: none; user-select: none;
}
.btn, .nav-toggle { -webkit-touch-callout: none; }

/* resposta en prémer (tàctil i ratolí) */
.nav a, .nav-toggle, .tabs button, .doors-list button, a.chip, .choices.pills .choice, .rg-tools a, .toc a { transition: background-color var(--dur-fast), color var(--dur-fast); }
.nav a:active, .tabs button:not([aria-selected="true"]):active, .doors-list button:active, a.chip:active { background: var(--mist); }
.nav-toggle:active { background: var(--mist); }
.choices.pills .choice:active { background: var(--mist); }
.rg-tools a:active { background: #fff; }
a.card:active { transform: scale(0.99); transition-duration: var(--dur-fast); }

/* el desplaçament horitzontal d'una taula o carrusel no arrossega la pàgina ni el gest d'enrere */
.tbl, .tabs, .gallery { overscroll-behavior-x: contain; }

/* menú mòbil: cap enllaç queda fora de la pantalla en horitzontal */
@media (max-width: 959px) {
  .nav { max-height: calc(100dvh - 76px); overflow-y: auto; overscroll-behavior: contain; }
}

/* zones segures (osca, illa i barra d'inici) amb viewport-fit=cover */
.wrap, .narrow {
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
@media (max-width: 959px) {
  .nav { padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
}
.footer { padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 959px) {
  .score-mini {
    left: max(12px, env(safe-area-inset-left, 0px));
    right: max(12px, env(safe-area-inset-right, 0px));
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }
}
@media (prefers-reduced-motion: reduce) { a.card:active { transform: none; } }

/* =============================================================
   Últims detalls (04/10/2026)
   ============================================================= */
/* bloc «Revisem el teu mapa»: la classe .split no tenia estil i el formulari quedava enganxat al text */
.split { display: grid; gap: var(--space-8); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 960px) { .split { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: var(--space-12); } }

/* pestanyes de línia (puntuació): rejilla 2 × 2 a mòbil en lloc d'una pila dins d'una píndola */
.tabs.tabs-lines { flex-wrap: wrap; border-radius: 18px; }
@media (max-width: 719px) {
  .tabs.tabs-lines { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; border-radius: var(--radius-s); overflow: visible; }
  .tabs.tabs-lines button { white-space: normal; text-align: center; border-radius: 8px; padding: 10px 8px; line-height: 1.3; }
  .tabs.tabs-lines .tsep { display: block; height: 0; overflow: hidden; }
}

/* taules amb desplaçament horitzontal: una ombra suau indica que n'hi ha més */
.tbl {
  background:
    linear-gradient(to right, #fff 30%, rgba(255,255,255,0)) left center / 40px 100% no-repeat local,
    linear-gradient(to left, #fff 30%, rgba(255,255,255,0)) right center / 40px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, rgba(11,39,66,.16), rgba(11,39,66,0)) left center / 14px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, rgba(11,39,66,.16), rgba(11,39,66,0)) right center / 14px 100% no-repeat scroll,
    #fff;
}

/* =============================================================
   Sistema (DESIGN.md, 04/10/2026)
   ============================================================= */
/* línia de metadades: només quan informa (estat, data, eina, pas o línia). Sense guió ni majúscules */
.eyebrow { display: block; font-size: var(--fs-small); font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--blue-ink); line-height: 1.4; }
.eyebrow::before { content: none; }
.on-dark .eyebrow { color: var(--teal); }
@media (max-width: 539px) { .hero .eyebrow { letter-spacing: 0; font-size: var(--fs-small); } }
.page-head h1:first-child, .sec-head > h2:first-child, .sec-head > .h-sec:first-child { margin-top: 0; }

/* superfícies planes en repòs: vora d'1 px i prou; l'ombra només respon (hover) o indica una capa que flota */
.card, .panel { box-shadow: none; }

/* =============================================================
   Fase 2 · correccions del diagnòstic (04/10/2026)
   ============================================================= */
/* [hidden] sempre amaga, encara que el component tingui display propi */
[hidden] { display: none !important; }

/* botó amb aspecte d'enllaç (suggeriments, reinicis) */
.link-btn { display: inline; padding: 0; color: var(--blue-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

/* comprovació en línia del municipi */
.mun-check { font-size: var(--fs-small); line-height: 1.45; }
.mun-check:empty { display: none; }
.mun-check.ok { color: var(--ok); font-weight: 600; }
.mun-check.ok::before { content: "✓ "; }
.mun-check.warn { color: var(--warn); }
.mun-check.info { color: var(--grey); }

/* focus de camps més visible */
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(7,123,193,.35); }
.choice input:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* estat informatiu (neutre) */
.form-status.info { background: var(--mist); color: var(--ink); }
.form-status ul { margin: 0; padding-left: 1.1em; display: grid; gap: 4px; }

/* Radiografia */
.rg-optional { border: 1px solid var(--line); border-radius: var(--radius-s); padding: var(--space-3) var(--space-4); }
.rg-optional > summary { font-weight: 600; color: var(--navy); cursor: pointer; }
.rg-optional > summary .opt { font-weight: 500; color: var(--mute); font-size: var(--fs-small); margin-left: 6px; }
.rg-optional-in { display: grid; gap: var(--space-4); padding-top: var(--space-4); }
.choice .opt { font-weight: 500; color: var(--mute); font-size: var(--fs-small); }
.rg-trust { display: none; }
@media (max-width: 959px) {
  .rg-trust { display: flex; gap: var(--space-3); align-items: center; padding: var(--space-3); background: var(--mist); border-radius: var(--radius-s); }
  .rg-trust img { width: 48px; height: 48px; border-radius: 50%; flex: none; }
}
#rg-out > .form-status { margin-bottom: var(--space-4); }
.rg-out-t { margin-bottom: var(--space-3); }
.rg-out-ctas { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }
body.rg-done .rg-aside > .panel:first-child { display: none; }

/* Mapa d'ajuts */
#mapa-out .result.is-stale .route, #mapa-out .result.is-stale .zone-badge { opacity: .55; }
.route .link { margin-top: var(--space-1); font-size: var(--fs-ui); }
.calc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-6); }
.tbl-calc table { min-width: 0; }
.tbl-calc th, .tbl-calc td { padding-inline: 12px; }
.tbl-calc td .sub { display: block; font-size: var(--fs-small); font-weight: 400; color: var(--mute); }
.tbl-calc tr.total td { font-weight: 700; color: var(--navy); background: var(--mist); }
.tbl-calc tr.total.over td { color: var(--no); background: var(--no-bg); }
.tbl-calc .calc-empty { color: var(--mute); font-size: var(--fs-ui); white-space: normal; text-align: left; padding-block: var(--space-6); }
.tbl-calc:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.calc-panel .label-strong { margin-top: var(--space-4); }
.calc-panel .hint { font-size: var(--fs-small); color: var(--mute); margin-top: var(--space-2); }
.calc-panel > .form-status, .calc-panel > .note, .calc-panel > .source { margin-top: var(--space-4); }
@media (max-width: 539px) { .c-desp { display: none; } }

/* Puntuació */
.score-fixed { display: grid; gap: var(--space-4); padding-block: var(--space-4); border-bottom: 1px solid var(--line); }
.levels-key { padding-block: var(--space-4); border-bottom: 1px solid var(--line); }
.levels-key dl { display: grid; gap: var(--space-2); margin: var(--space-3) 0; }
.levels-key dl > div { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: var(--space-3); font-size: var(--fs-ui); }
.levels-key dt { font-weight: 600; color: var(--navy); }
.levels-key dd { margin: 0; color: var(--grey); }
.score-reset { padding-top: var(--space-4); font-size: var(--fs-ui); }
#score-panel .score-big { margin-top: var(--space-3); }
.score-count { font-size: var(--fs-small); color: var(--mute); margin-top: var(--space-2); }
#score-msg, #score-weak { margin-top: var(--space-4); }
#score-weak ul { padding-left: 1.1em; margin-top: 6px; font-size: var(--fs-ui); display: grid; gap: 6px; }
#score-src { margin-top: var(--space-4); }
.score-cta { margin-top: var(--space-4); }
@media (pointer: coarse) { .seg-ctrl label { min-height: 44px; display: flex; align-items: center; justify-content: center; } }

/* Inici: el comprovador abans del mapa a mòbil; portes com a llista + un sol panell */
@media (max-width: 959px) {
  .hero .checker { order: -1; }
  .doors.is-ready .doors-list { display: grid; gap: var(--space-2); }
  .doors.is-ready .doors-list button { width: 100%; text-align: left; display: grid; gap: 2px; padding: var(--space-3) var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--white); }
  .doors.is-ready .doors-list button[aria-selected="true"] { border-color: var(--navy); background: var(--mint); }
  .doors.is-ready .door-panel[hidden] { display: none; }
  .doors-list .dt-k { font-weight: 600; color: var(--navy); }
  .doors-list .dt-l { font-size: var(--fs-small); color: var(--mute); }
  .doors.is-ready .doors-panels { scroll-margin-top: 90px; }
  .doors.is-ready .door-panel { scroll-margin-top: 90px; }
}
.checker .btn { margin-top: var(--space-4); }
.map-src { color: #C9D8E6; }
@media (max-width: 719px) { .m-plants text { font-size: 20px; stroke-width: 4px; } }

/* fotos il·lustratives: sempre etiquetades */
.ph-wrap { position: relative; display: block; }
.ph-note { position: absolute; right: 8px; bottom: 8px; padding: 2px 8px; border-radius: 999px; background: rgba(11,39,66,.72); color: #fff; font-size: 11.5px; font-weight: 500; line-height: 1.5; pointer-events: none; }
.ph-wrap > .svc-img { margin-top: 0; }
.svc .ph-wrap { margin-top: 22px; }
.ph-wrap > .ph-img { border-radius: var(--radius); }
.door-panel .ph-wrap { display: none; }
@media (min-width: 960px) { .doors.is-ready .door-panel .ph-wrap { display: block; } }

/* peu: línia legal amb mesura llegible */
.footer .legal p { max-width: 75ch; }
/* =============================================================
   Pàgina cupo-estrategia.html (04/10/2026)
   ============================================================= */
.cupo-ctas { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-stack-l); }
.rg-band-in > .cupo-ctas { margin-top: 0; }
@media (min-width: 960px) { .cupo-head { align-items: start; } }

/* bloc d'estat de la convocatòria: s'actualitza a cada convocatòria */
.cupo-status { display: grid; gap: var(--space-3); }
.cupo-status-main { font-size: var(--fs-h4); font-weight: 600; line-height: 1.35; color: var(--navy); }
.cupo-status[data-state="closed"] .cupo-status-main { color: var(--warn); }
.cupo-facts { display: grid; margin: 0; border-top: 1px solid var(--line); }
.cupo-facts > div { display: grid; gap: var(--space-1); padding-block: var(--space-3); border-bottom: 1px solid var(--line); }
.cupo-facts dt { font-size: var(--fs-small); font-weight: 600; color: var(--mute); }
.cupo-facts dd { margin: 0; font-size: var(--fs-ui); font-weight: 600; color: var(--ink); }

/* requisits: sí / no */
.cupo-elig .h-card { margin-bottom: var(--space-4); }
.cupo-check { margin-top: 0; padding: 0; }
.cupo-check li { color: var(--grey); }
.cupo-check li strong { color: var(--ink); }
.cupo-check.is-no svg { color: var(--no); }
.cupo-after-grid { display: grid; gap: var(--space-4); margin-top: var(--space-grid); max-width: 760px; }

/* lliurable i passos */
.cupo-list { display: grid; gap: var(--space-3); padding-left: 1.2em; margin-top: var(--space-4); color: var(--grey); }
.cupo-steps-t { margin-block: var(--space-section-s) var(--space-block); }
.cupo-steps { list-style: none; padding: 0; margin: 0; counter-reset: cupo; border-top: 1px solid var(--line); }
.cupo-steps li { counter-increment: cupo; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: var(--space-2) var(--space-4); padding-block: var(--space-6); border-bottom: 1px solid var(--line); }
.cupo-steps li::before { content: counter(cupo); grid-row: span 2; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--white); font-size: var(--fs-ui); font-weight: 700; font-variant-numeric: tabular-nums; }
.cupo-steps h3 { align-self: center; }
.cupo-steps p { color: var(--grey); max-width: var(--measure); }
@media (min-width: 720px) {
  .cupo-steps li { grid-template-columns: 40px minmax(0, 15rem) minmax(0, 1fr); column-gap: var(--space-8); align-items: start; }
  .cupo-steps li::before { grid-row: auto; }
  .cupo-steps h3 { align-self: start; padding-top: 2px; }
}

/* preguntes i fonts */
.cupo-faq { border-top: 1px solid var(--line); }
.cupo-faq details.more { margin: 0; border-bottom: 1px solid var(--line); padding-block: var(--space-2); }
.cupo-faq details.more summary { font-size: var(--fs-body); color: var(--navy); padding-block: var(--space-3); }
.cupo-faq details.more p { color: var(--grey); padding-bottom: var(--space-3); max-width: var(--measure); }
.cupo-faq a, .cupo-sources a, .cupo-accr a { color: var(--blue-ink); text-underline-offset: 3px; }
.cupo-sources { margin-top: var(--space-block); padding-top: var(--space-6); border-top: 1px solid var(--line); }
.cupo-sources ul { display: grid; gap: var(--space-2); padding-left: 1.2em; margin-block: var(--space-3); font-size: var(--fs-ui); color: var(--grey); }

/* acreditació al costat del formulari */
.cupo-accr { display: flex; gap: var(--space-6); align-items: flex-start; }
.cupo-accr img { width: 120px; flex: none; border-radius: var(--radius-s); }
.cupo-accr > div { display: grid; gap: var(--space-2); }
@media (max-width: 539px) { .cupo-accr { flex-direction: column; gap: var(--space-4); } .cupo-accr img { width: 104px; } }
.rg-optional > summary { display: flex; flex-wrap: wrap; row-gap: 2px; }
.rg-optional > summary .opt { flex-basis: 100%; margin-left: 0; }
/* panells de resultat: sense desplaçament intern (el CTA sempre s'hi veu) */
.tool .sticky { max-height: none; overflow: visible; }

/* errors visibles també amb el focus */
input[aria-invalid="true"]:focus-visible, select[aria-invalid="true"]:focus-visible, textarea[aria-invalid="true"]:focus-visible { border-color: var(--no); box-shadow: 0 0 0 3px rgba(161,48,42,.25); }
/* objectius tàctils mínims a mòbil */
@media (pointer: coarse) {
  .hdr-cta { min-height: 44px; }
  .link-btn { padding-block: 10px; }
  .tabs button { min-height: 44px; }
}
.rg-out-t:focus { outline: none; }
.cupo-budget { background: var(--warn-bg); color: var(--warn); padding: var(--space-3); border-radius: var(--radius-s); font-size: var(--fs-small); }
.cupo-budget a { color: inherit; font-weight: 600; }
.mun-check.is-err { color: var(--no); }

/* =============================================================
   Ronda 3 (05/10/2026)
   ============================================================= */
/* mapa d'ajuts: el resultat com a ruta */
.route-phase { margin-top: var(--space-3); font-size: var(--fs-small); font-weight: 600; color: var(--blue-ink); }
.route-phase:first-of-type { margin-top: 0; }
.lead-recap { color: var(--grey); background: var(--mist); border-radius: var(--radius-s); padding: var(--space-3) var(--space-4); }
/* calculadora: camps en una sola graella perquè els amagats no deixin forats */
@media (min-width: 540px) {
  #calc-form { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-4); }
  #calc-form .row-2 { display: contents; }
  #calc-form > .calc-actions, #calc-form > .note { grid-column: 1 / -1; }
}
#calc-form .field { align-content: start; }
/* inici: el comprovador ja no tapa el mapa i el resultat no fa saltar el hero */
@media (min-width: 960px) {
  .hero .checker { margin: var(--space-4) 0 0 auto; }
  .hero-in { align-items: start; }
}
.checker .res { min-height: 7.5em; }
.on-dark .eyebrow { color: #C9D8E6; }
.seal-link { display: inline-block; border-radius: var(--radius-s); }
/* puntuació */
.lvl-desc { font-size: var(--fs-small); color: var(--grey); margin-top: var(--space-2); min-height: 1.4em; }
.score-big.is-empty #score-total { color: var(--line); }
.score-big.is-provisional #score-total { color: var(--mute); font-weight: 500; }
.score-src-d { margin-top: var(--space-4); }
.score-src-d .source { margin-top: var(--space-2); }
/* radiografia */
.form-status.busy[data-elapsed]::after { content: " (" attr(data-elapsed) ")"; color: var(--mute); }
.rg-mini { display: none; }
@media (max-width: 959px) {
  .rg-mini { display: block; font-size: var(--fs-ui); color: var(--grey); margin-bottom: var(--space-4); }
  .rg-aside > .panel:first-child { display: none; }
}
/* cupó: comprovació i estat a mòbil */
.cupo-check-tool { margin-bottom: var(--space-grid); display: grid; gap: var(--space-4); }
.cc-grid { display: grid; gap: var(--space-4); }
@media (min-width: 720px) { .cc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cupo-mini { display: none; }
@media (max-width: 959px) { .cupo-mini { display: block; margin-top: var(--space-4); padding: var(--space-3) var(--space-4); background: var(--warn-bg); color: var(--warn); border-radius: var(--radius-s); font-size: var(--fs-small); font-weight: 600; } }
@media (min-width: 960px) { .ftn-map { max-height: 430px; } }
.link-btn-muted { color: var(--mute); font-weight: 500; margin-left: var(--space-3); }
.score-big.is-void #score-total { color: var(--line); }
.footer .legal > * { max-width: 75ch; }
.rg-proof-src, .map-src, .note { max-width: 72ch; }

/* ==========================================================================
   Ronda 4 (05/10/2026)
   ========================================================================== */
/* Radiografia: l'informe en HTML de web */
.rg-report { max-width: 72ch; }
.rg-report > p { margin: 0 0 var(--space-3); }
.rg-report .rg-co { font-family: var(--serif); font-size: var(--fs-h3); line-height: 1.25; color: var(--navy); margin: var(--space-2) 0 var(--space-4); }
.rg-report h3 { font-size: var(--fs-body); font-weight: 600; color: var(--navy); margin: var(--space-8) 0 var(--space-2); padding-top: var(--space-4); border-top: 1px solid var(--line); }
.rg-report .rg-src { font-size: var(--fs-small); color: var(--mute); }
.rg-report .rg-box { background: var(--mist); border-left: 3px solid var(--blue); padding: var(--space-3) var(--space-4); margin: var(--space-3) 0 var(--space-4); border-radius: 0 var(--radius-s) var(--radius-s) 0; }
.rg-report .rg-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: var(--space-2) 0 var(--space-4); }
.rg-report .rg-scroll:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.rg-table { width: 100%; min-width: 420px; border-collapse: collapse; font-size: var(--fs-small); }
.rg-table th { text-align: left; font-weight: 600; color: var(--grey); padding: var(--space-2); border-bottom: 2px solid var(--line); }
.rg-table td { padding: var(--space-2); border-bottom: 1px solid var(--line); vertical-align: top; }
.rg-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
/* Botó d'enviar sempre a l'abast als formularis llargs */
.form-submit-bar { position: sticky; bottom: 0; z-index: 5; margin-inline: calc(-1 * var(--space-2)); padding: var(--space-3) var(--space-2) calc(var(--space-3) + env(safe-area-inset-bottom, 0px)); background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 30%); }
/* Calculadora en mòbil: total visible mentre s'omple */
@media (max-width: 959px) { .calc-mini b { font-size: 19px; } }
/* Ronda 4b: res queda sota les barres fixes */
html:has(.form-submit-bar) { scroll-padding-bottom: 96px; }
@media (max-width: 959px) { html:has(.score-mini) { scroll-padding-bottom: 96px; } }
#mapa-out { scroll-margin-top: 90px; }
.rg-report .rg-scroll { background: linear-gradient(to right, #fff 30%, rgba(255,255,255,0)) left / 32px 100% no-repeat local, linear-gradient(to left, #fff 30%, rgba(255,255,255,0)) right / 32px 100% no-repeat local, radial-gradient(farthest-side at 0 50%, rgba(11,39,66,.16), transparent) left / 12px 100% no-repeat scroll, radial-gradient(farthest-side at 100% 50%, rgba(11,39,66,.16), transparent) right / 12px 100% no-repeat scroll; }
.rg-report .rg-co { font-size: 1.125rem; }
.cupo-check-tool .cc-mun { margin-bottom: var(--space-4); max-width: 32rem; }
@media print { #rg-summary, .rg-out-ctas, .form-submit-bar, .calc-mini { display: none !important; } .rg-report .rg-scroll { overflow: visible; background: none; } }
/* Radiografia en mòbil: cada fila de taula és una fitxa, sense desplaçament lateral */
@media (max-width: 559px) {
  .rg-report .rg-scroll { overflow: visible; background: none; }
  .rg-table { min-width: 0; }
  .rg-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .rg-table tr { display: block; padding: var(--space-2) 0; border-bottom: 1px solid var(--line); }
  .rg-table td { display: flex; justify-content: space-between; gap: var(--space-3); border: 0; padding: 2px 0; }
  .rg-table td::before { content: attr(data-label); color: var(--mute); font-size: var(--fs-micro); text-transform: uppercase; letter-spacing: .04em; flex: none; }
  .rg-table td:first-child { display: block; font-weight: 600; color: var(--ink); }
  .rg-table td:first-child::before { content: none; }
  .rg-table .num { text-align: right; }
}
/* Radiografies anteriors d'aquesta visita */
.rg-history { margin-top: var(--space-8); display: grid; gap: var(--space-2); }
.rg-history .rg-prev { border-top: 1px solid var(--line); }
.rg-history .rg-prev summary { padding-block: var(--space-3); font-weight: 600; color: var(--navy); cursor: pointer; }
.rg-history .rg-report-wrap { padding-bottom: var(--space-4); }
@media print { .rg-history { display: none !important; } }
/* Mapa del Fons amb teclat */
.m-ftn path:focus { outline: none; }
.m-ftn path:focus-visible { stroke: var(--blue); stroke-width: 3; paint-order: stroke; }
.ftn-map:has(.m-ftn path:focus-visible) { outline: 3px solid var(--blue); outline-offset: 4px; border-radius: var(--radius-s); }
/* Inici en mòbil: menys llargada sense perdre contingut */
@media (max-width: 719px) {
  section { padding-block: 48px; }
  .doors.is-ready .doors-list { gap: 6px; }
  .doors.is-ready .doors-list button { grid-template-columns: 1fr auto; align-items: baseline; column-gap: var(--space-3); padding: 10px var(--space-4); }
  .doors-list .dt-l { text-align: right; white-space: nowrap; }
  .step-more { margin-top: var(--space-2); }
  .step-more ul { margin-top: var(--space-2); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .footer-grid > :last-child:nth-child(even) { grid-column: 1 / -1; }
}
@media (max-width: 719px) {
  .rg-proof { margin-top: var(--space-8); gap: var(--space-3); }
  .rg-proof > div { grid-template-columns: 5.5rem 1fr; align-items: baseline; column-gap: var(--space-3); }
  .rg-proof dt { font-size: 2rem; }
  .rg-tools a { padding: 10px var(--space-4); }
  .portrait.photo { max-width: none; aspect-ratio: 4 / 3; max-height: 300px; object-position: center 18%; }
  .hero .checker:not(.has-mun) [data-checker-go] { display: none; }
}
@media (max-width: 719px) {
  .step { grid-template-columns: 36px 1fr; column-gap: var(--space-3); }
  .step > * { grid-column: 1 / -1; }
  .step > .badge { grid-column: 1; width: 36px; height: 36px; font-size: 16px; align-self: center; }
  .step > .badge + .h-card { grid-column: 2; align-self: center; }
}
.m-focus { fill: none; stroke: #fff; stroke-width: 3.5; stroke-linejoin: round; pointer-events: none; }
.m-focus-t { fill: #fff; font: 600 15px var(--sans); text-anchor: middle; paint-order: stroke; stroke: var(--night); stroke-width: 4px; pointer-events: none; }
.ftn-map:has(.m-ftn path:focus-visible) { outline: none; }
.m-ftn path:focus-visible { stroke: #fff; stroke-width: 1.5; }

/* ==========================================================================
   Ronda 6 (06/10/2026)
   ========================================================================== */
/* Guia: amplada de lectura i índex mòbil sempre a mà */
.guide .prose { max-width: 68ch; }
@media (max-width: 719px) {
  .toc-m { position: sticky; top: 76px; z-index: 30; box-shadow: 0 6px 16px rgba(11,39,66,.06); }
  .toc-m[open] ol { max-height: 55vh; overflow: auto; }
  /* taula de línies com a fitxes */
  .tbl-cards { overflow: visible; border: 0; background: none; }
  .tbl-cards table, .tbl-cards tbody { display: block; width: 100%; min-width: 0; }
  .tbl-cards thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tbl-cards tr { display: grid; grid-template-columns: 1fr auto; gap: 2px var(--space-3); padding: var(--space-3) var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-s); background: #fff; margin-bottom: var(--space-2); }
  .tbl-cards td { display: block; padding: 0; border: 0; text-align: left; }
  .tbl-cards td:first-child { grid-column: 1 / -1; font-weight: 600; color: var(--navy); }
  .tbl-cards td:nth-child(2) { grid-column: 1 / -1; color: var(--grey); font-size: var(--fs-small); }
  .tbl-cards td.r::before { content: attr(data-label); display: block; font-size: var(--fs-micro); color: var(--mute); text-transform: uppercase; letter-spacing: .04em; }
  .tbl-cards td.r { font-variant-numeric: tabular-nums; white-space: normal; min-width: 0; }
  .tbl-cards tr { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .tbl-cards tr.total td:nth-child(2), .tbl-cards tr.total td:nth-child(3):empty { display: none; }
}
/* Comprovador: resposta en una línia i mapa amb zoom */
.checker .res .res-1 { margin: 0; font-size: var(--fs-body); color: var(--navy); }
.checker .res .res-ok { color: var(--ok); font-weight: 700; }
.checker .res .res-more { margin-top: var(--space-2); }
.checker .res .res-more p { margin-top: var(--space-2); font-size: var(--fs-small); color: var(--grey); }
.checker .res { min-height: 3.2em; }
.ftn-map .m-ftn path, .ftn-map .m-ctx path, .ftn-map .m-plants .ring, .ftn-map .m-focus { vector-effect: non-scaling-stroke; }
.ftn-map .m-plants text { font-size: calc(13px / var(--z, 1)); stroke-width: calc(3px / var(--z, 1)); }
.ftn-map .m-label text, .ftn-map .m-focus-t { font-size: calc(15px / var(--z, 1)); stroke-width: calc(4px / var(--z, 1)); }
.ftn-map .m-plants .plant { r: calc(4.5px / var(--z, 1)); }
@media (max-width: 719px) { .ftn-map .m-plants text { font-size: calc(20px / var(--z, 1)); stroke-width: calc(4px / var(--z, 1)); } }
.gloss { margin-top: var(--space-2); }
.gloss-dl { margin: var(--space-2) 0 0; display: grid; gap: var(--space-2); font-size: var(--fs-small); }
.gloss-dl dt { font-weight: 600; color: var(--navy); }
.gloss-dl dd { margin: 0; color: var(--grey); }
/* Serveis: mapa per fases i entrada per a prescriptors */
.svc-map { display: grid; gap: var(--space-3); margin-top: var(--space-6); }
.svc-map-g { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.svc-map-k { flex: 0 0 100%; font-size: var(--fs-micro); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--mute); }
@media (min-width: 900px) { .svc-map-k { flex: 0 0 13.5rem; } }
.svc-pre { margin-top: var(--space-6); padding: var(--space-3) var(--space-4); background: var(--mint); border-radius: var(--radius-s); max-width: 70ch; font-size: var(--fs-ui); }
.svc-pre a { color: var(--blue-ink); font-weight: 600; white-space: nowrap; }
.phase-n { display: inline-grid; place-items: center; width: 1.3em; height: 1.3em; margin-right: .3em; border-radius: 50%; background: var(--navy); color: #fff; font-family: var(--sans); font-size: .55em; font-weight: 700; vertical-align: .25em; }

/* ==========================================================================
   Pàgines de municipi (06/10/2026)
   ========================================================================== */
.mun-head-in { display: grid; gap: var(--space-8); align-items: center; }
@media (min-width: 900px) { .mun-head-in { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); } }
.mun-head .eyebrow a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.mun-head .ctas { margin-top: var(--space-6); }
.mun-map { margin: 0; background: var(--night); border-radius: var(--radius); padding: var(--space-3); color: #C9D8E6; }
.mun-svg { display: block; width: 100%; height: auto; aspect-ratio: 600 / 560; }
.mun-svg .m-ftn path, .mun-svg .m-ctx path { vector-effect: non-scaling-stroke; }
.mun-svg .m-ftn path { stroke-width: 1; }
.mun-svg .m-ftn path.is-on { fill: #fff; stroke: var(--teal); stroke-width: 2.5; }
.mun-svg [data-href] { cursor: pointer; }
@media (hover: hover) and (pointer: fine) { .mun-svg [data-href]:hover { fill: #A6E3DB; } }
.mun-svg .m-plants text { fill: #fff; font: 600 calc(13px / var(--z, 1)) var(--sans); paint-order: stroke; stroke: var(--night); stroke-width: calc(3px / var(--z, 1)); }
.mun-svg .m-plants .plant { stroke-width: calc(2px / var(--z, 1)); }
.mun-map figcaption { font-size: var(--fs-micro); padding: var(--space-2) var(--space-1) 0; display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
.mun-map .sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; vertical-align: middle; }
.mun-map .sw.z1 { background: var(--teal); }
.mun-map .sw.z2 { background: rgba(98,196,184,.4); }
.mun-facts { display: grid; gap: var(--space-3); margin: var(--space-6) 0 0; }
@media (min-width: 720px) { .mun-facts { grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); } }
.mun-fact { border: 1px solid var(--line); border-radius: var(--radius-s); padding: var(--space-4); background: #fff; display: grid; gap: var(--space-1); }
.mun-fact dt { font-size: var(--fs-micro); text-transform: uppercase; letter-spacing: .04em; color: var(--mute); font-weight: 600; }
.mun-fact dd { margin: 0; display: grid; gap: var(--space-1); }
.mun-fact strong { font-family: var(--serif); font-size: var(--fs-h3); color: var(--navy); line-height: 1.15; }
.mun-fact span { font-size: var(--fs-small); color: var(--grey); }
.mun-two { display: grid; gap: var(--space-10); }
@media (min-width: 900px) { .mun-two { grid-template-columns: 1fr 1fr; } }
.mun-two > div > p { max-width: 60ch; margin-top: var(--space-4); }
.mun-stats { display: grid; gap: var(--space-3); margin: var(--space-4) 0 var(--space-3); }
.mun-stats > div { display: grid; grid-template-columns: 7.5rem 1fr; gap: var(--space-3); align-items: baseline; }
.mun-stats dt { font-family: var(--serif); font-size: 1.6rem; color: var(--navy); font-weight: 600; font-variant-numeric: tabular-nums lining-nums; }
.mun-stats dd { margin: 0; color: var(--grey); font-size: var(--fs-ui); }
.mun-go { display: grid; gap: var(--space-3); margin-top: var(--space-6); }
@media (min-width: 720px) { .mun-go { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .mun-go { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.mun-go-c { display: grid; gap: var(--space-2); align-content: start; text-decoration: none; color: var(--ink); }
.mun-go-c strong { color: var(--navy); font-size: var(--fs-body); }
.mun-go-c span { color: var(--grey); font-size: var(--fs-small); }
.mun-ajt-in { max-width: 62ch; }
.mun-ajt-in p { margin-top: var(--space-3); }
.mun-near { list-style: none; padding: 0; margin: var(--space-4) 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.zc { font-size: var(--fs-micro); font-weight: 600; padding: 1px 6px; border-radius: 999px; white-space: nowrap; }
.zc.zi { background: var(--teal); color: var(--night); }
.zc.zii { background: var(--mint); color: var(--teal-ink); }
/* índex */
.mun-find { max-width: 26rem; margin-top: var(--space-6); }
.mun-groups { display: grid; gap: var(--space-8); }
@media (min-width: 900px) { .mun-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-12); } .mun-groups > .source { grid-column: 1 / -1; } }
.mun-g h2 { padding-bottom: var(--space-2); border-bottom: 2px solid var(--navy); }
.mun-list { list-style: none; padding: 0; margin: var(--space-3) 0 0; columns: 2 12rem; column-gap: var(--space-6); }
.mun-list li { break-inside: avoid; padding: 6px 0; display: flex; gap: var(--space-2); align-items: baseline; justify-content: space-between; border-bottom: 1px solid var(--line); }
.mun-list a { color: var(--blue-ink); font-weight: 500; }
.mun-g[hidden], .mun-list li[hidden] { display: none !important; }
a.card.mun-go-c { display: grid; }
.mun-go-c span { display: block; }
@media (min-width: 720px) { .mun-stats > div { grid-template-columns: 9.5rem 1fr; } }
.mun-stats dt { white-space: nowrap; }
@media (max-width: 719px) { .mun-stats > div { grid-template-columns: 1fr; gap: 0; } }
input[type=search]::-webkit-search-decoration { -webkit-appearance: none; }

/* Menú d'escriptori també de 960 a 1199 px: més compacte en lloc de passar al menú mòbil */
@media (min-width: 960px) {
  .hdr { gap: var(--space-3); }
  .hdr .logo img { height: 38px; }
  .nav { gap: 0; font-size: 14.5px; }
  .nav a { padding: 8px 9px; }
  .nav .btn { margin-left: 6px; padding: 10px 14px; font-size: 14.5px; }
}
@media (min-width: 960px) and (max-width: 1119px) {
  .nav a[href$="#qui-som"] { display: none; }
}
/* el menú té 8 enllaços (amb «Cupó d'estratègia»): sota 1040 px no hi caben, així que es plega com al mòbil */
@media (min-width: 960px) and (max-width: 1039px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; top: 76px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 10px var(--gutter) 18px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); gap: 2px; max-height: calc(100dvh - 76px); overflow-y: auto; overscroll-behavior: contain; font-size: 15.5px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; }
  .nav a[href$="#qui-som"] { display: block; }
  .hdr .logo { margin-right: auto; }
  .nav .btn.primary { display: none; }
  .hdr-cta { display: inline-flex; padding: 10px 16px; font-size: var(--fs-ui); }
}
.mun-prof { max-width: 72ch; }
.mun-prof p { margin-top: var(--space-4); }
.mun-prof p:first-of-type { font-size: var(--fs-body); }
.mun-prof-s { padding-top: 0; }

/* Observatori al menú (07/11/2026): amb 9 enllaços el menú es plega fins a 1199 px; a l'escriptori «Qui som» queda al peu i a la portada */
@media (min-width: 960px) and (max-width: 1199px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; top: 76px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 10px var(--gutter) 18px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); gap: 2px; max-height: calc(100dvh - 76px); overflow-y: auto; overscroll-behavior: contain; font-size: 15.5px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; }
  .nav a[href$="#qui-som"] { display: block; }
  .hdr .logo { margin-right: auto; }
  .nav .btn.primary { display: none; }
  .hdr-cta { display: inline-flex; padding: 10px 16px; font-size: var(--fs-ui); }
}
@media (min-width: 1200px) {
  .hdr .logo { flex-shrink: 0; }
  .nav a[href$="#qui-som"] { display: none; }
}

/* ---- 2026-11-08 · valor per línia ---- */
.hero .hero-cond { color: #C9D8E6; margin-top: 14px; font-size: var(--fs-ui); max-width: 52ch; border-left: 2px solid var(--teal); padding-left: 12px; }
.step .step-cond { margin-top: 8px; color: var(--grey); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; font-weight: 600; font-size: var(--fs-small); line-height: 1.6; white-space: nowrap; vertical-align: baseline; }
.pill-ok { background: var(--ok-bg); color: var(--ok); }
.pill-part { background: var(--warn-bg); color: var(--warn); }
.pill-no { background: var(--no-bg); color: var(--no); }
.pill-neutral { background: var(--mist); color: var(--grey); border: 1px solid var(--line); }
.dp-body .dp-part { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin-top: var(--space-2); padding-top: var(--space-3); border-top: 1px solid var(--line); font-size: var(--fs-small); color: var(--grey); max-width: none; }
.dp-part .dp-pay { display: inline-flex; align-items: center; gap: 8px; }
.how { margin-top: var(--space-8); padding-top: var(--space-6); border-top: 1px solid var(--line); }
.how-t { font-size: var(--fs-h4); color: var(--navy); font-weight: 700; }
.how-dl { display: grid; gap: var(--space-4); margin-top: var(--space-4); }
.how-dl > div { display: grid; gap: 4px; }
.how-dl dt { font-size: var(--fs-micro); font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--mute); }
.how-dl dd { margin: 0; }
.how-dl dd ul { margin: 2px 0 0; padding-left: 1.2em; display: grid; gap: 6px; }
.how-dl dd .pill { margin-right: 6px; }
.how .how-note { margin-top: var(--space-4); }
.how .how-cta { margin-top: var(--space-6); }
.prose a.btn.primary, .prose a.btn.primary:hover { color: #fff; }
.how .source { margin-top: var(--space-3); }
@media (min-width: 1100px) { .how-dl > div { grid-template-columns: 9.5rem minmax(0, 1fr); gap: var(--space-4); } .how-dl dt { padding-top: 3px; } }
.seg-ctrl[data-n="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.seg-ctrl[data-n="5"], .seg-ctrl[data-n="6"] { grid-template-columns: repeat(auto-fit, minmax(6.75rem, 1fr)); }
.footer .ft-accr { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.footer .ft-accr .seal { margin-top: 0; flex: none; }
.footer .ft-accr p { margin: 0; font-size: var(--fs-small); color: #B4C6D6; max-width: 30ch; line-height: 1.45; }
