/* starco.cat institucional (02-12-2026, borrador sin publicar): la web catalana de STARCO SYSTEMS EUROPE, S.L.
   Fuente de la hoja: construir.py le añade la geometría de la firma (firma_starco.css_geometria) y escribe estilo.css.
   CSP de destino (ops/yari/sites/starco.cat.conf): default-src 'none'; script-src 'none'; style-src 'self';
   img-src 'self'; font-src 'self'. Sin style= ni recursos externos. El color nunca dice el estado: lo dicen las palabras. */
:root{
  color-scheme:light dark;
  --bg:#f5f6f9; --surface:#ffffff; --surface2:#e9edf5; --line:#d5dbe7;
  --ink:#14213d; --muted:#44506a; --acc:#1d4fbf; --acc-soft:#e3eafb; --on-acc:#ffffff; --focus:#14213d;
  --beta:#1f5a3c; --beta-bg:#e0efe6; --prep:#6a4a12; --prep-bg:#f6ead2; --rec:#4f3a86; --rec-bg:#ebe5f7;
  --serif:"Fraunces",Georgia,"Noto Serif","Times New Roman",serif;
  --sans:"Inter",system-ui,-apple-system,"Segoe UI",Roboto,"Noto Sans",sans-serif;
  --r:20px; --rs:12px;
}
@media (prefers-color-scheme:dark){
  :root{
    --bg:#0a1020; --surface:#111a30; --surface2:#17223d; --line:#26345a;
    --ink:#e8eefc; --muted:#adb9d6; --acc:#93b2ff; --acc-soft:#1a2850; --on-acc:#0a1020; --focus:#e8eefc;
    --beta:#bfe6cf; --beta-bg:#1d3a2b; --prep:#f3d9a6; --prep-bg:#3a2f1a; --rec:#d9cdf7; --rec-bg:#2d2547;
  }
}
@font-face{font-family:"Fraunces";src:url("fonts/Fraunces-latin.woff2") format("woff2");font-weight:400 600;font-style:normal;font-display:swap}
@font-face{font-family:"Inter";src:url("fonts/InterVariable-latin.woff2") format("woff2");font-weight:100 900;font-style:normal;font-display:swap}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;scroll-behavior:smooth;scroll-padding-top:16px}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
body{margin:0;background:var(--bg);color:var(--ink);font:400 1.0625rem/1.65 var(--sans);-webkit-font-smoothing:antialiased;overflow-wrap:break-word}
h1,h2{font-family:var(--serif);font-weight:450;line-height:1.12;letter-spacing:-.012em;margin:0 0 .45em;text-wrap:balance}
h1{font-size:clamp(2.1rem,6.2vw,3.5rem)}
h1 em,h2 em{font-style:italic;color:var(--acc)}
h2{font-size:clamp(1.55rem,3.8vw,2.15rem)}
h3{font-weight:600;font-size:1.08rem;line-height:1.3;margin:0 0 .4em}
p,ul,ol,dl{margin:0 0 1em}
a{color:var(--acc);text-underline-offset:3px;text-decoration-thickness:1px}
a:hover{text-decoration-thickness:2px}
:focus-visible{outline:3px solid var(--focus);outline-offset:3px;border-radius:6px}
svg{max-width:100%}
.wrap{width:min(1120px,100% - 32px);margin-inline:auto}
.skip{position:absolute;left:16px;top:-80px;background:var(--surface);color:var(--ink);padding:10px 14px;border-radius:10px;z-index:10}
.skip:focus{top:12px}
.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

/* Cabecera */
header.top{border-bottom:1px solid var(--line);background:var(--bg)}
header.top .wrap{display:flex;flex-wrap:wrap;align-items:center;gap:10px 22px;padding:16px 0}
.brand{margin-right:auto;text-decoration:none;display:grid;grid-template-columns:auto;justify-content:start;align-items:center;row-gap:4px;line-height:0;color:var(--muted);border-radius:14px;padding:8px 14px 12px}
/* Tema oscuro: el logotipo oscuro lleva su fondo (#03060c); la pastilla del mismo color lo integra. */
@media (prefers-color-scheme:dark){.brand{background:#03060c;color:#aab8d8}}
/* Logotipo y lema como en starco.dev (assets/site.css): el lema mide lo mismo que el rótulo y se coloca con el alto del logotipo. */
.brand picture{display:block;grid-area:1/1}
.brand img{height:36px;width:auto;display:block}
.brand .cab-lema{grid-area:2/1;width:calc(36px*2.3445);height:auto;display:block;justify-self:start;margin:-16px 0 0 calc(36px*.8061)}
nav.main{order:3;width:100%}
nav.main ul,.langs ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:2px 18px}
nav.main a{display:inline-block;color:var(--ink);text-decoration:none;padding:8px 0;font-size:.95rem;border-bottom:2px solid transparent}
nav.main a:hover{border-bottom-color:var(--line)}
.langs ul{gap:4px}
.langs a{display:inline-block;min-width:44px;min-height:44px;line-height:44px;text-align:center;color:var(--ink);text-decoration:none;font-size:.9rem;font-weight:600;letter-spacing:.06em;border-radius:999px}
.langs a[aria-current="page"]{background:var(--acc-soft);color:var(--acc)}
@media (min-width:900px){nav.main{order:0;width:auto}}

/* Portada */
.hero{padding:56px 0 40px}
.hero .wrap{display:grid;gap:32px;align-items:start}
@media (min-width:1000px){.hero .wrap{grid-template-columns:.95fr 1.15fr}}
.eyebrow{font-size:.82rem;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);margin-bottom:14px}
.lead{font-size:1.15rem;color:var(--muted);max-width:38em}
.actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:22px}
.btn{display:inline-block;padding:12px 20px;border-radius:999px;font-weight:600;text-decoration:none;border:1px solid var(--acc)}
.btn.primary{background:var(--acc);color:var(--on-acc)}
.btn.ghost{color:var(--acc)}
.status{border-left:3px solid var(--line);padding:2px 0 2px 14px;color:var(--muted);font-size:.95rem;max-width:40em}
/* Esquema de l'oferta (02-12-2026): un escenari fosc en els dos temes; sense JavaScript, la llista de peces fa de llegenda */
.hmap{--st-bg:#071027;--st-line:#2c3f73;--st-ink:#eef3ff;--st-mute:#a8b8de;--st-acc:#7cc4ff;--st-glow:#5b8cff;--st-ai:#c9b2ff;--st-ok:#7be3b6;margin:0;min-width:0}
.hm-title{font-size:.82rem;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);margin:0 0 10px}
.hsvg{display:block;width:100%;height:auto;border-radius:22px;box-shadow:0 18px 50px -24px rgba(20,40,120,.55)}
.hsvg .st-bg{fill:var(--st-bg)}
.hsvg .perim-r{fill:rgba(124,196,255,.04);stroke:var(--st-acc);stroke-width:1.5;stroke-dasharray:7 7;opacity:.75}
.hsvg text{font-family:var(--sans)}
.hsvg .st-lbl{fill:var(--st-acc);font-size:14px;font-weight:600;letter-spacing:.06em}
.hsvg .st-t{fill:var(--st-ink);font-size:15px;font-weight:600}
.hsvg .st-s{fill:var(--st-mute);font-size:12.5px}
.hsvg .fl{fill:none;stroke:var(--st-acc);stroke-width:2;stroke-linecap:round;stroke-dasharray:3 9;opacity:.55;animation:hm-flow 1.8s linear infinite}
.hsvg .fl.bi{animation-direction:alternate}
.hsvg .src{fill:#0e1b3f;stroke:var(--st-acc);stroke-width:1.5}
.hsvg .ico{fill:none;stroke:var(--st-ink);stroke-width:1.8;stroke-linecap:round}
.hsvg .gate{fill:rgba(123,227,182,.12);stroke:var(--st-ok);stroke-width:1.6}
.hsvg .gate-k{fill:none;stroke:var(--st-ok);stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.hsvg .tw-t{fill:rgba(91,140,255,.30);stroke:#9cc0ff;stroke-width:1.2}
.hsvg .tw-l{fill:rgba(40,70,170,.55)}
.hsvg .tw-r{fill:rgba(25,45,120,.65)}
.hsvg .tw-g{stroke:rgba(200,225,255,.35);stroke-width:1}
.hsvg .tw-plate{transform-box:view-box;animation:hm-float 6s ease-in-out infinite}
.hsvg .tw-b{animation-delay:-2s}
.hsvg .tw-c{animation-delay:-4s}
.hsvg .tw-ring{fill:none;stroke:var(--st-acc);stroke-width:1.2;stroke-dasharray:2 7;opacity:.7;animation:hm-ring 14s linear infinite}
.hsvg .ia-h{fill:rgba(201,178,255,.16);stroke:var(--st-ai);stroke-width:1.8}
.hsvg .ia-t{fill:var(--st-ai);font-size:26px;font-weight:700;letter-spacing:.04em}
.hsvg .ch-b{fill:#0f1d45;stroke:var(--st-ok);stroke-width:1.4;animation:hm-pulse 3.6s ease-in-out infinite}
.hsvg .ch-1{animation-delay:.6s}.hsvg .ch-2{animation-delay:1.2s}.hsvg .ch-3{animation-delay:1.8s}.hsvg .ch-4{animation-delay:2.4s}.hsvg .ch-5{animation-delay:3s}
.hsvg .ch-k{stroke:var(--st-ok);stroke-width:2;opacity:.7}
.hsvg .dep-r{fill:#0e1b3f;stroke:var(--st-line);stroke-width:1.5}
.hsvg .pc{transition:opacity .25s ease}
.hmap.is-live .hsvg .pc{cursor:pointer}
.hmap[data-active] .hsvg .pc{opacity:.32}
.hmap[data-active] .hsvg .pc.on,.hmap[data-active] .hsvg .pc.near{opacity:1}
.hmap[data-active] .hsvg .fl{opacity:.12}
.hmap[data-active] .hsvg .fl.on{opacity:1;stroke:#d6ecff;stroke-width:3;animation-duration:.9s}
.hsvg .pc.on .dep-r,.hsvg .pc.on .src,.hsvg .pc.on .gate{stroke:#fff;stroke-width:2.2}
.hmap[data-active="node"] .perim-r,.hmap[data-active="privat"] .perim-r,.hmap[data-active="nuvol"] .perim-r{opacity:1;stroke:#d6ecff;stroke-width:2.5}
@keyframes hm-flow{to{stroke-dashoffset:-24}}
@keyframes hm-float{50%{transform:translateY(-6px)}}
@keyframes hm-ring{to{stroke-dashoffset:-180}}
@keyframes hm-pulse{0%,70%,100%{fill:#0f1d45}35%{fill:rgba(123,227,182,.45)}}
@media (prefers-reduced-motion:reduce){.hsvg *{animation:none!important}}
.mapcap{margin:12px 0 0;padding:12px 16px;border:1px solid var(--line);border-radius:var(--rs);background:var(--surface);min-height:7.4em}
.mapcap p{margin:0 0 .3em}
.mapcap .mc-desc{color:var(--muted);font-size:.95rem;margin:0}
.mapcap .mc-tag:empty{display:none}
.pieces{list-style:none;margin:14px 0 0;padding:0;display:grid;gap:10px}
.pieces li{background:var(--surface);border:1px solid var(--line);border-radius:var(--rs);padding:12px 14px}
.pieces .pname{display:block;font-weight:600}
.pieces .pdesc{display:block;color:var(--muted);font-size:.92rem;margin:2px 0 6px}
.hmap.is-live .pieces{display:flex;flex-wrap:wrap;gap:8px}
.hmap.is-live .pieces li{background:none;border:0;padding:0}
.hmap.is-live .pieces .pdesc,.hmap.is-live .pieces .tag{display:none}
.pbtn{font:inherit;font-size:.9rem;font-weight:600;color:var(--ink);background:var(--surface);border:1px solid var(--line);border-radius:999px;padding:10px 14px;min-height:44px;cursor:pointer}
.pbtn:hover{border-color:var(--acc)}
.pbtn[aria-pressed="true"]{background:var(--acc);border-color:var(--acc);color:var(--on-acc)}
.hmap figcaption{font-size:.85rem;color:var(--muted);margin-top:10px}

/* Fases (02-12-2026): sense JavaScript es veuen totes; amb JavaScript apareixen una a una */
.fases{list-style:none;margin:28px 0 0;padding:0;position:relative;max-width:52em}
.fases::before{content:"";position:absolute;left:11px;top:8px;bottom:8px;width:2px;background:var(--line)}
.fase{position:relative;display:grid;grid-template-columns:24px 1fr;gap:16px;padding:0 0 22px}
.fase h3{margin-top:0}
.fase p{margin:0 0 .5em;color:var(--muted)}
.f-dot{position:relative;z-index:1;width:24px;height:24px;border-radius:50%;border:3px solid var(--line);background:var(--bg);margin-top:2px}
.st-done .f-dot,.st-beta .f-dot{border-color:var(--beta);background:var(--beta)}
.st-prep .f-dot{border-color:var(--prep);background:var(--prep-bg)}
.st-next .f-dot{border-style:dashed}
.tag.done{background:var(--beta);color:var(--bg)}
.tag.next{background:var(--surface2);color:var(--muted)}
.fases.is-armed .fase{opacity:0;transform:translateY(16px);transition:opacity .5s ease,transform .5s ease}
.fases.is-armed .fase.in{opacity:1;transform:none}
.fases.is-armed .fase .f-dot{transform:scale(.4);transition:transform .45s cubic-bezier(.3,1.6,.5,1) .1s}
.fases.is-armed .fase.in .f-dot{transform:none}

/* Seccions */
.sec{padding:48px 0;border-top:1px solid var(--line)}
.label{font-size:.82rem;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);margin-bottom:8px}
.label span{color:var(--acc);margin-right:8px}
.intro{color:var(--muted);max-width:44em;font-size:1.05rem}
.cards{display:grid;gap:16px;grid-template-columns:repeat(auto-fit,minmax(min(100%,290px),1fr));margin-top:24px}
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:22px;display:flex;flex-direction:column;align-items:flex-start}
.cards.four{grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr))}
.card p{margin-bottom:.8em}
.card .note{font-size:.92rem;color:var(--muted);border-left:2px solid var(--line);padding-left:12px}
.tag{margin-top:auto;display:inline-block;font-size:.8rem;font-weight:600;padding:4px 12px;border-radius:999px}
.tag.beta{background:var(--beta-bg);color:var(--beta)}
.tag.prep{background:var(--prep-bg);color:var(--prep)}
.tag.rec{background:var(--rec-bg);color:var(--rec)}
.card .go{margin-top:auto;font-weight:600}
.sec-note{margin-top:20px;color:var(--muted);font-size:.95rem;max-width:44em}
.points{padding-left:1.2em;max-width:46em}
.points li{margin:.35em 0}
.brands{margin-top:24px;color:var(--muted);font-size:.95rem}
.public{background:var(--surface2)}
.public .card{background:var(--surface)}
.roots{display:grid;gap:24px;margin-top:28px}
@media (min-width:900px){.roots{grid-template-columns:1.2fr 1fr}}
.relic{display:flex;align-items:flex-start;gap:10px;font-size:.95rem;color:var(--muted)}
.relic-seal{flex:none;width:28px;height:28px;color:var(--acc);margin-top:1px}
.facts-h{margin-top:1.4em}
.facts{width:100%;table-layout:fixed;border-collapse:collapse;margin:8px 0 18px;font-size:.97rem}
.facts th,.facts td{text-align:left;vertical-align:top;padding:9px 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere}
.facts th{font-weight:600;width:38%;padding-right:16px}
.relic+.relic{margin-top:-.4em}
.public .roots{align-items:start}
.mailbox{background:var(--surface);border:1px solid var(--acc);border-radius:var(--r);padding:22px}
.mailbox p{margin:0 0 .4em}
.mailbox a{font-weight:600;font-size:1.1rem}
.contact dl{display:grid;gap:4px 24px;margin-top:20px}
@media (min-width:700px){.contact dl{grid-template-columns:max-content 1fr}}
.contact dt{font-weight:600}
.contact dd{margin:0 0 10px}

/* Pàgines legals */
.legal{padding:40px 0 56px;max-width:48em}
.legal h1{font-size:clamp(1.9rem,5vw,2.6rem)}
.legal h2{font-size:1.35rem;margin-top:1.6em}
.legal dl{display:grid;gap:4px 24px}
@media (min-width:700px){.legal dl{grid-template-columns:max-content 1fr}}
.legal dt{font-weight:600}
.legal dd{margin:0 0 10px}
.back{font-size:.95rem}
.upd{color:var(--muted);font-size:.9rem;margin-top:2em}

/* Peu */
footer.foot{border-top:1px solid var(--line);padding:36px 0 44px;color:var(--muted);font-size:.92rem}
footer.foot .wrap>div:first-child{color:var(--ink);margin-bottom:18px}
footer.foot p{margin:0 0 .6em}
footer.foot strong{color:var(--ink)}

/* Firma STARCO (rótulo y lema dibujados en currentColor; la geometría la añade construir.py) */
.firma-starco{display:grid;grid-template-columns:auto auto;justify-content:start;align-items:center;row-gap:8px}
.firma-starco .firma-linea{display:contents}
.firma-starco .firma-de{grid-column:1;margin:0 5px 0 0}
.firma-starco .firma-lema-p{grid-column:2;display:block;margin:0}
.firma-starco .firma-rotulo,.firma-starco .firma-lema{grid-column:2;display:block;width:164px;height:auto}

/* Formulari de contacte (només amb FORMULARI = True): POST HTML normal, sense scripts; l'avís #enviado es mostra amb :target */
.sent{display:none;margin-top:24px;padding:18px 22px;border:2px solid var(--beta);border-radius:var(--r);background:var(--surface)}
.sent:target{display:block}
.sent h3{margin-top:0}
.sent p{margin:0 0 .4em}
.cform-h{margin-top:1.6em}
.cform{display:grid;gap:16px;max-width:44em;margin-top:12px}
.cform label{display:grid;gap:6px;font-weight:600}
.cform label span em{font-weight:400;font-style:normal;color:var(--muted)}
.cform input[type="text"],.cform input[type="email"],.cform select,.cform textarea{font:inherit;color:var(--ink);background:var(--surface);border:1px solid var(--muted);border-radius:var(--rs);padding:12px 14px;min-height:48px;width:100%;box-sizing:border-box}
.cform textarea{min-height:9em;resize:vertical}
.cform fieldset{border:1px solid var(--line);border-radius:var(--rs);padding:12px 16px;margin:0;display:grid;gap:4px}
.cform legend{font-weight:600;padding:0 6px}
.cform .option{display:flex;gap:10px;align-items:center;font-weight:400;min-height:44px}
.cform .option input,.cform .consent input{width:22px;height:22px;flex:none;accent-color:var(--acc)}
.cform .consent{display:flex;gap:12px;align-items:flex-start;font-weight:400;font-size:.92rem;color:var(--muted)}
.cform .no-pii,.cform .privacy-more{margin:0;font-size:.92rem;color:var(--muted)}
.cform .trap{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.cform button{font:inherit;font-weight:600;cursor:pointer;border:0}
