/* ==========================================================================
   cloudaStay — portada pública i pantalles d'accés
   ========================================================================== */
.plain-body { min-height: 100svh; display: flex; flex-direction: column; position: relative; isolation: isolate; }
.bubbles { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bubbles i { position: absolute; border-radius: 50%; mix-blend-mode: multiply; animation: breathe 7s ease-in-out infinite; }
.bubbles .bb1 { width: 520px; height: 520px; left: -160px; bottom: -180px; background: var(--palla); }
.bubbles .bb2 { width: 600px; height: 600px; right: -200px; top: -240px; background: var(--mel); opacity: .35; animation-delay: 1s; }
.bubbles .bb3 { width: 300px; height: 300px; right: 8%; bottom: -120px; background: var(--ambre); opacity: .18; animation-delay: 2s; }
[data-theme='dark'] .bubbles i { mix-blend-mode: screen; opacity: .12; }
.plain-actions { display: flex; align-items: center; gap: 8px; }
.plain-top { display: flex; align-items: center; justify-content: space-between; padding: 18px clamp(16px, 4vw, 40px); }
.plain-brand { color: var(--ink); text-decoration: none; }
.plain-main { flex: 1; display: grid; place-items: center; padding: 16px; }
.plain-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px; padding: 24px 16px 30px; font-size: 13px; }
.plain-foot a { color: var(--ink-3); text-decoration: none; }
.auth-card { width: min(440px, 100%); display: grid; gap: 14px; padding: clamp(24px, 5vw, 36px); border-radius: var(--r-xl); background: color-mix(in srgb, var(--surface) 92%, transparent); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border: 1px solid var(--line); box-shadow: var(--shadow-lg); animation: rise .6s var(--spring) both; }
.auth-card h1 { font-size: 1.7rem; letter-spacing: -.035em; }
.auth-ico { justify-self: start; }
.auth-ico .mark { width: 56px; height: 56px; }
.icon-tile { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 18px; background: var(--brand-soft); color: var(--brand-ink); }
.auth-alt { justify-self: center; font-size: 14.5px; }
.error-card { text-align: left; }
.code-input { width: 100%; height: 60px; border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--surface); text-align: center; font-family: var(--mono); font-size: 26px; letter-spacing: .3em; color: var(--ink); }
.code-input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.theme-toggle .i-moon { display: none; }
[data-theme='dark'] .theme-toggle .i-sun { display: none; }
[data-theme='dark'] .theme-toggle .i-moon { display: block; }

@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(.98); } }

/* ==========================================================================
   Portada pública — mateix sistema que cloudacat.com (capçalera de vidre flotant,
   cel amb núvols, targetes de vidre, procés amb línia, peu fosc), traduït a la gamma
   Mel de cloudaStay: Nit fa de Bosc, Mel de Llima, Palla de Menta, Ambre de Verd CAT.
   ========================================================================== */
.site-body {
  --header-h: 62px;
  --deep: var(--nit);
  --accent: var(--mel);
  --soft: var(--brand-soft);
  --sky-a: #1e160b; --sky-b: #4a2e06; --sky-c: #7a4a00; --sky-d: #d9963a; --sky-e: #fce8c3;
  --cloud: 255, 250, 238; --cloud-o: .92;
  --glow: rgba(240, 180, 76, .22);
}
[data-theme='dark'] .site-body {
  --deep: #0c0905;
  --sky-a: #070502; --sky-b: #110c05; --sky-c: #1e160b; --sky-d: #35240a; --sky-e: #4a320c;
  --cloud-o: .13;
  --glow: rgba(240, 180, 76, .14);
}
html:has(.site-body) { scroll-padding-top: 110px; }
.site-body ::selection { background: var(--mel); color: var(--nit); }
.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.site { width: min(1200px, 100% - 32px); margin: 0 auto; padding: calc(var(--header-h) + 80px) 0 clamp(56px, 8vw, 96px); }
.prose { width: min(760px, 100%); }
.prose h1 { font-size: clamp(2rem, 4.4vw, 3rem); margin-bottom: 18px; letter-spacing: -.038em; }
.prose h2 { font-size: 1.3rem; margin: 28px 0 8px; }
.prose p, .prose li { color: var(--ink-2); margin-bottom: 8px; }
.prose ul { list-style: disc; padding-left: 1.2em; }

/* ---------- Vidre ---------- */
.nav, .badge, .btn-glass, .fchip, .meta-chip {
  background: linear-gradient(180deg, rgba(255, 255, 255, .24), rgba(255, 255, 255, .08));
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  backdrop-filter: blur(18px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, .32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -1px 0 rgba(255, 255, 255, .06), 0 10px 30px -12px rgba(30, 22, 11, .4);
}
[data-theme='dark'] :is(.nav, .badge, .btn-glass, .fchip, .meta-chip) {
  background: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03));
  border-color: rgba(255, 255, 255, .12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 10px 30px -12px rgba(0, 0, 0, .6);
}

/* ---------- Botons (pastilla amb icona rodona, com a cloudacat) ---------- */
.site-body .btn { --b-h: 50px; min-height: 0; transition: transform .45s var(--spring), translate .6s var(--spring), box-shadow .3s var(--ease), background-color .3s var(--ease), color .3s var(--ease); height: var(--b-h); gap: 12px; padding: 0 6px 0 22px; font-size: 15px; letter-spacing: -.005em; }
.site-body .btn:not(:has(.btn-ico)) { padding: 0 24px; }
.site-body .btn:hover { transform: none; }
.site-body .btn:active { transform: scale(.97); }
.btn-ico { width: calc(var(--b-h) - 12px); height: calc(var(--b-h) - 12px); flex: none; display: grid; place-items: center; border-radius: var(--r-pill); background: var(--i-bg); color: var(--i-ink); transition: transform .5s var(--spring); }
.btn:hover .btn-ico { transform: rotate(-45deg); }
.site-body .btn-sm { --b-h: 44px; font-size: 14.5px; padding-left: 18px; }
.site-body .btn-lg { --b-h: 58px; font-size: 16px; padding-left: 26px; }
.site-body .btn-lg:not(:has(.btn-ico)) { padding: 0 28px; }
.site-body .btn-primary { --b-bg: var(--nit); --b-ink: #fff; --i-bg: var(--mel); --i-ink: var(--nit); box-shadow: 0 10px 24px -10px rgba(30, 22, 11, .55); }
[data-theme='dark'] .site-body .btn-primary { --b-bg: var(--mel); --b-ink: var(--nit); --i-bg: var(--nit); --i-ink: var(--mel); box-shadow: 0 10px 30px -12px rgba(240, 180, 76, .4); }
.btn-white { --b-bg: #fff; --b-ink: var(--nit); --i-bg: var(--nit); --i-ink: var(--mel); box-shadow: 0 14px 30px -12px rgba(30, 22, 11, .45); }
.btn-mel { --b-bg: var(--mel); --b-ink: var(--nit); --i-bg: var(--nit); --i-ink: var(--mel); }
.site-body .btn-glass { --b-bg: transparent; --b-ink: #fff; background: linear-gradient(180deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .06)), rgba(30, 22, 11, .2); text-shadow: 0 1px 8px rgba(30, 22, 11, .3); }
.site-body .btn-glass:hover { background: linear-gradient(180deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, .12)), rgba(30, 22, 11, .24); }
.btn-outline { --b-bg: var(--surface); --b-ink: var(--ink); --b-line: var(--line-2); --i-bg: var(--soft); --i-ink: var(--brand-ink); box-shadow: var(--shadow-sm); }
.btn-outline:hover { box-shadow: var(--shadow-md); }
.site-body .btn-row { justify-content: flex-start; gap: 12px; }

/* ---------- Capçalera: vidre sobre el cel, sòlida a la resta ---------- */
.site-header {
  position: fixed; z-index: 100; top: 30px; left: 50%; translate: -50% 0;
  width: min(1240px, 100% - 60px);
  transition: top .5s var(--ease), width .5s var(--ease);
  --nav-ink: #fff; --nav-contrast: var(--nit); --nav-soft: rgba(255, 255, 255, .14);
  --sm-1: #fce8c3; --sm-2: #f5c46a; --sm-3: #d98f1c; --sm-o2: .9; --sm-o3: .86; --sm-blend: normal;
  --wm-ink: #fff; --wm-stay: #fce8c3;
}
.site-header.is-solid { top: 14px; width: min(1240px, 100% - 24px); --nav-ink: var(--ink); --nav-contrast: var(--surface); --nav-soft: var(--bg-2); }
:root:not([data-theme='dark']) .site-header.is-solid { --sm-1: #fce8c3; --sm-2: #f0b44c; --sm-3: #7a4a00; --sm-o2: 1; --sm-o3: 1; --sm-blend: multiply; --wm-ink: var(--ink); --wm-stay: #7a4a00; }
.nav {
  position: relative; height: var(--header-h);
  display: flex; align-items: center; gap: 12px; padding: 0 8px 0 20px;
  border-radius: var(--r-pill); color: var(--nav-ink);
  transition: background-color .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease), color .3s var(--ease);
}
.site-header.is-solid .nav { background: color-mix(in srgb, var(--surface) 76%, transparent); border-color: var(--line-2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), var(--shadow-md); }
[data-theme='dark'] .site-header.is-solid .nav { background: color-mix(in srgb, #140f07 78%, transparent); border-color: rgba(255, 255, 255, .1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), var(--shadow-md); }
.nav-logo { display: inline-flex; flex: none; border-radius: var(--r-sm); text-decoration: none; }
.nav-logo .brand { font-size: 21px; }
.has-hero .nav-logo .mark circle { transform-box: fill-box; transform-origin: center; animation: bubbleIn .55s var(--spring) both; }
.has-hero .nav-logo .mark .b1 { animation-delay: .15s; }
.has-hero .nav-logo .mark .b2 { animation-delay: .3s; }
.has-hero .nav-logo .mark .b3 { animation-delay: .45s; }
.nav-links { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav-link { padding: 9px 14px; border-radius: var(--r-pill); color: inherit; font-size: 14.5px; font-weight: 500; text-decoration: none; transition: background-color .25s var(--ease); }
.nav-link:hover { background: var(--nav-soft); }
.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: 8px; }
.site-header .icon-btn { background: var(--nav-soft); color: var(--nav-ink); transition: transform .45s var(--spring), background-color .25s; }
.site-header .lang-switch { --ls-bg: var(--nav-soft); --ls-ink: var(--nav-ink); --ls-on: var(--nav-ink); --ls-ink-on: var(--nav-contrast); }
.mobile-menu .lang-switch { justify-self: center; }
.site-header .icon-btn:hover { transform: scale(1.06); background: var(--nav-soft); color: var(--nav-ink); }
.site-header .theme-toggle .ico { display: block; grid-area: 1 / 1; transition: transform .6s var(--spring), opacity .3s; }
.site-header .theme-toggle .i-moon, [data-theme='dark'] .site-header .theme-toggle .i-sun { display: block; }
[data-theme='dark'] .site-header .theme-toggle .i-moon, :root:not([data-theme='dark']) .site-header .theme-toggle .i-sun { opacity: 0; transform: rotate(-90deg) scale(.4); }
.burger { display: none; }
.burger span { grid-area: 1 / 1; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .45s var(--spring); }
.burger span:first-child { transform: translateY(-4px); }
.burger span:last-child { transform: translateY(4px); }
.menu-open .burger span:first-child { transform: rotate(45deg); }
.menu-open .burger span:last-child { transform: rotate(-45deg); }
body.menu-open { overflow: hidden; }
.mobile-menu {
  position: absolute; top: calc(100% + 10px); left: 0; right: 0;
  max-height: calc(100svh - var(--header-h) - 40px); overflow: auto;
  border-radius: var(--r-lg); color: var(--ink);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--line-2); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; translate: 0 -10px; scale: .98;
  transition: opacity .3s var(--ease), translate .45s var(--ease), scale .45s var(--ease), visibility .3s;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; translate: 0 0; scale: 1; }
.mobile-menu-inner { padding: 18px; display: grid; gap: 14px; }
.mm-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.mm-links a { padding: 14px; border-radius: var(--r-md); background: var(--bg-2); color: var(--ink); font-weight: 500; font-size: 14.5px; text-decoration: none; }
.mm-links a:last-child:nth-child(odd) { grid-column: 1 / -1; }
.mobile-menu .btn { width: 100%; justify-content: space-between; }

/* ---------- Cel (posta de sol en Mel) ---------- */
.sky { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: linear-gradient(180deg, var(--sky-a) 0%, var(--sky-b) 30%, var(--sky-c) 56%, var(--sky-d) 82%, var(--sky-e) 100%); transition: background .6s var(--ease); }
.sky-sun { position: absolute; top: -35%; right: -5%; width: 75vmax; height: 75vmax; border-radius: 50%; background: radial-gradient(circle, rgba(252, 232, 195, .4), rgba(240, 180, 76, .12) 35%, transparent 62%); animation: sun 14s ease-in-out infinite alternate; }
[data-theme='dark'] .sky-sun { background: radial-gradient(circle, rgba(240, 180, 76, .14), rgba(240, 180, 76, .04) 35%, transparent 60%); }
.cloud { position: absolute; border-radius: 50%; background: radial-gradient(closest-side, rgba(var(--cloud), var(--cloud-o)), rgba(var(--cloud), calc(var(--cloud-o) * .55)) 50%, rgba(var(--cloud), 0)); filter: blur(8px); animation: drift var(--dur, 60s) ease-in-out infinite alternate; will-change: transform; }
.cloud.c1 { width: 80vw; height: 30vw; left: -24vw; bottom: -9vw; --dur: 70s; }
.cloud.c2 { width: 70vw; height: 28vw; right: -20vw; bottom: -6vw; --dur: 80s; animation-direction: alternate-reverse; }
.cloud.c3 { width: 46vw; height: 15vw; left: -12vw; top: 10%; opacity: .3; --dur: 90s; }
.cloud.c4 { width: 40vw; height: 13vw; right: -10vw; top: 30%; opacity: .24; --dur: 75s; animation-direction: alternate-reverse; }
.cloud.c5 { width: 55vw; height: 20vw; left: 22vw; bottom: -12vw; opacity: .9; --dur: 65s; }
.cloud.c6 { width: 24vw; height: 9vw; left: 30%; top: 18%; opacity: .14; --dur: 55s; }
.cloud.c7 { width: 30vw; height: 11vw; right: 18%; bottom: 22%; opacity: .4; --dur: 85s; }
.sky-stars {
  position: absolute; inset: 0; opacity: 0; transition: opacity .6s;
  background-image: radial-gradient(1.2px 1.2px at 12% 18%, #fff 50%, transparent 52%), radial-gradient(1px 1px at 28% 42%, #fff 50%, transparent 52%), radial-gradient(1.4px 1.4px at 46% 12%, #fff 50%, transparent 52%), radial-gradient(1px 1px at 64% 30%, #fff 50%, transparent 52%), radial-gradient(1.3px 1.3px at 78% 14%, #fff 50%, transparent 52%), radial-gradient(1px 1px at 88% 46%, #fff 50%, transparent 52%), radial-gradient(1.2px 1.2px at 6% 52%, #fff 50%, transparent 52%), radial-gradient(1px 1px at 56% 56%, #fff 50%, transparent 52%);
  background-size: 640px 420px;
}
[data-theme='dark'] .sky-stars { opacity: .5; animation: twinkle 5s ease-in-out infinite alternate; }
.grain { position: absolute; inset: 0; pointer-events: none; opacity: .09; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; margin: 10px; border-radius: var(--r-xl); color: #fff; }
.hero-home { min-height: min(calc(100svh - 20px), 1000px); display: flex; flex-direction: column; padding-top: calc(var(--header-h) + 60px); }
.hero-inner { position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; width: min(1200px, 100% - 32px); margin-inline: auto; padding-bottom: 32px; text-align: center; }
.badge { display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 5px; border-radius: var(--r-pill); color: #fff; font-size: 14px; font-weight: 500; text-decoration: none; transition: background-color .3s, transform .45s var(--spring); }
a.badge:hover { background: rgba(255, 255, 255, .24); transform: translateY(-2px); }
.badge-ico { width: 28px; height: 28px; display: grid; place-items: center; border-radius: var(--r-pill); background: var(--mel); color: var(--nit); }
.badge-arrow { display: grid; transition: transform .4s var(--spring); }
a.badge:hover .badge-arrow { transform: translateX(3px); }
.hero-title { margin-top: 24px; font-size: clamp(2.55rem, 6.4vw, 5.25rem); line-height: 1.04; letter-spacing: -.04em; font-weight: 500; text-shadow: 0 2px 30px rgba(30, 22, 11, .2); }
.hero-title .ht-a, .hero-title .ht-b { display: block; text-wrap: balance; }
.hero-title, .hero-title .ht-b { padding-bottom: .22em; margin-bottom: -.22em; }
.ht-a .w > span { background: linear-gradient(180deg, rgba(255, 255, 255, .98) 15%, rgba(255, 255, 255, .55)); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; padding-bottom: .2em; margin-bottom: -.2em; }
.hero-title em { font-style: normal; color: var(--palla); }
.hero-lead { max-width: 640px; margin-top: 22px; font-size: clamp(1.05rem, 1.7vw, 1.22rem); line-height: 1.55; color: rgba(255, 255, 255, .92); text-shadow: 0 1px 18px rgba(30, 22, 11, .35); }
.hero-cta { justify-content: center !important; margin-top: 34px; }
.hero-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.meta-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--r-pill); font-size: 13.5px; font-weight: 500; background: linear-gradient(180deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .06)), rgba(30, 22, 11, .22); text-shadow: 0 1px 8px rgba(30, 22, 11, .25); }
.w { display: inline-block; overflow: clip; overflow-clip-margin: .2em; vertical-align: top; padding: 0 .02em .24em; margin: 0 -.02em -.24em; }
html.js .w > span { display: inline-block; opacity: 0; transform: translateY(105%) rotate(3deg); filter: blur(8px); animation: wordIn 1s var(--ease) forwards; animation-delay: calc(var(--i) * 55ms + 120ms); }
html.js :is(.hero-lead, .hero-cta, .hero-meta, .hero .badge) { opacity: 0; animation: fadeUp 1s var(--ease) forwards; }
html.js .hero .badge { animation-delay: .05s; }
html.js .hero-lead { animation-delay: .45s; }
html.js .hero-cta { animation-delay: .6s; }
html.js .hero-meta { animation-delay: .75s; }

/* Xips flotants */
.hero-float { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.fchip { position: absolute; display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px; border-radius: 22px; font-size: 13px; line-height: 1.3; color: #fff; text-align: left; translate: var(--px, 0) var(--py, 0); transition: translate 1.2s var(--ease); opacity: 0; animation: chipIn 1.2s var(--ease) forwards, float 7s ease-in-out infinite; }
.fchip strong { display: block; font-size: 13.5px; font-weight: 500; }
.fchip small { display: block; font-size: 12px; opacity: .8; }
.fchip small.up { color: var(--palla); opacity: 1; font-weight: 500; }
.fc-1 { left: 4%; top: 21%; animation-delay: .9s, 0s; }
.fc-2 { right: 4%; top: 19%; animation-delay: 1.05s, -2s; }
.fc-3 { left: 6%; top: 60%; animation-delay: 1.2s, -4s; }
.fc-4 { right: 5%; top: 59%; animation-delay: 1.35s, -1s; }
.fchip-ico { position: relative; width: 38px; height: 38px; display: grid; place-items: center; border-radius: var(--r-pill); background: rgba(255, 255, 255, .2); }
.fchip-ico.ok { background: var(--mel); color: var(--nit); }
.fchip-ico.pulse::after { content: ''; position: absolute; inset: -3px; border-radius: inherit; border: 2px solid var(--mel); animation: ping 2.2s var(--ease) infinite; }

/* Marquee de seccions */
.marquee { position: relative; z-index: 2; padding: 18px 0 26px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
html.js .marquee { opacity: 0; animation: fadeUp 1.2s var(--ease) .9s forwards; }
.marquee-track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; gap: 14px; padding-right: 14px; }
.mcard { display: flex; align-items: center; gap: 14px; min-width: 250px; padding: 9px 22px 9px 9px; border-radius: 22px; background: rgba(255, 255, 255, .7); -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%); border: 1px solid rgba(255, 255, 255, .85); box-shadow: 0 10px 30px -14px rgba(30, 22, 11, .3); color: var(--nit); transition: transform .5s var(--spring); }
.mcard:hover { transform: translateY(-5px); }
[data-theme='dark'] .mcard { background: rgba(29, 22, 12, .62); border-color: rgba(255, 255, 255, .09); color: var(--ink); }
.mcard-ico { width: 50px; height: 50px; flex: none; display: grid; place-items: center; border-radius: 16px; background: var(--palla); color: var(--ambre); }
.mcard:nth-child(3n+2) .mcard-ico { background: var(--mel); color: var(--nit); }
.mcard:nth-child(3n) .mcard-ico { background: var(--nit); color: var(--mel); }
[data-theme='dark'] .mcard-ico { background: var(--brand-soft-2); color: var(--palla); }
.mcard-txt strong { display: block; font-size: 15px; font-weight: 500; letter-spacing: -.01em; white-space: nowrap; }
.mcard-txt small { display: block; font-size: 12.5px; color: #685a47; }
[data-theme='dark'] .mcard-txt small { color: var(--ink-3); }

/* ---------- Seccions ---------- */
.section { padding: clamp(76px, 10vw, 132px) 0; }
.section-tight { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(40px, 6vw, 72px); }
.section + .section { padding-top: clamp(20px, 4vw, 56px); }
.section-head { max-width: 760px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }
.section-head.is-left { text-align: left; margin-left: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; padding: 6px 14px 6px 12px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); box-shadow: var(--shadow-sm); }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mel); box-shadow: 0 0 0 4px rgba(240, 180, 76, .25); }
.section-head h2 { margin-top: 18px; font-size: clamp(2rem, 4.5vw, 3.45rem); line-height: 1.05; letter-spacing: -.038em; text-wrap: balance; }
.section-head h2 em { font-style: normal; color: var(--brand-ink); }
.section-lead { margin-top: 16px; font-size: clamp(1.04rem, 1.5vw, 1.18rem); color: var(--ink-2); }

/* ---------- Frase il·luminada ---------- */
.statement-wrap { padding-bottom: 0; }
.statement { position: relative; overflow: hidden; isolation: isolate; padding: clamp(52px, 8vw, 104px) clamp(22px, 6vw, 96px); border-radius: var(--r-xl); background: radial-gradient(120% 90% at 50% 0%, #fdf1da, var(--palla) 50%, #f6cf86); color: var(--nit); text-align: center; }
.eyebrow-dark { background: rgba(255, 255, 255, .55); border-color: rgba(30, 22, 11, .1); color: var(--nit); box-shadow: none; }
.eyebrow-dark .eyebrow-dot { background: var(--ambre); box-shadow: 0 0 0 4px rgba(122, 74, 0, .14); }
.statement-text { max-width: 30ch; margin: 26px auto 0; font-size: clamp(1.55rem, 3.5vw, 2.7rem); line-height: 1.22; letter-spacing: -.032em; font-weight: 500; text-wrap: balance; }
.hw { transition: opacity .35s var(--ease); }
html.js .hw { opacity: .2; }
html.js .hw.on { opacity: 1; }
.statement .replace { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 34px; }
.statement .replace span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .55); border: 1px solid rgba(30, 22, 11, .08); color: #685a47; font-size: 14.5px; text-decoration: line-through; text-decoration-color: var(--ambre); text-decoration-thickness: 1.5px; }
.statement-mark { position: absolute; right: -40px; bottom: -70px; z-index: -1; opacity: .16; font-size: 200px; pointer-events: none; --sm-1: #7a4a00; --sm-2: #7a4a00; --sm-3: #7a4a00; --sm-o1: .35; --sm-o2: .6; --sm-o3: .9; --sm-blend: normal; }
.statement-mark .mark { width: 1em; height: 1em; animation: breathe 3.2s ease-in-out infinite; }
[data-theme='dark'] .statement { background: radial-gradient(120% 90% at 50% 0%, #4a320c, #2b1e0a 60%, #1d150a); color: var(--palla); }
[data-theme='dark'] .eyebrow-dark { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .1); color: var(--mel); }
[data-theme='dark'] .eyebrow-dark .eyebrow-dot { background: var(--mel); }
[data-theme='dark'] .statement .replace span { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .08); color: var(--ink-3); text-decoration-color: var(--mel); }
[data-theme='dark'] .statement-mark { opacity: .12; --sm-1: #f0b44c; --sm-2: #f0b44c; --sm-3: #f0b44c; }

/* ---------- Targetes de vidre (bento) ---------- */
.tone-nit   { --t-bg: var(--nit); --t-ink: var(--mel); }
.tone-mel   { --t-bg: var(--mel); --t-ink: var(--nit); }
.tone-palla { --t-bg: var(--palla); --t-ink: var(--ambre); }
.tone-ambre { --t-bg: var(--ambre); --t-ink: #fff; }
.tone-white { --t-bg: var(--soft); --t-ink: var(--brand-ink); }
[data-theme='dark'] .tone-nit { --t-bg: #3a2a12; }
[data-theme='dark'] .tone-palla { --t-bg: var(--brand-soft-2); --t-ink: var(--palla); }
.gbento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.span-3 { grid-column: span 3; } .span-4 { grid-column: span 4; } .span-6 { grid-column: span 6; }
.gcard-wrap { position: relative; display: flex; }
.gcard {
  position: relative; z-index: 1; isolation: isolate; overflow: hidden; flex: 1;
  display: flex; flex-direction: column; gap: 10px; min-height: 250px; padding: 22px;
  border-radius: var(--r-lg); color: var(--ink);
  background: linear-gradient(180deg, rgba(255, 255, 255, .8), rgba(255, 255, 255, .5));
  -webkit-backdrop-filter: blur(28px) saturate(180%); backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(30, 22, 11, .04), 0 22px 44px -24px rgba(30, 22, 11, .28);
  transition: transform .6s var(--ease), box-shadow .5s var(--ease);
}
.gcard-wrap.is-tall .gcard { min-height: 340px; }
.gcard-wrap.is-tall.span-6 h3 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); }
.gcard-wrap.is-tall.span-6 p { font-size: 16.5px; max-width: 40ch; }
[data-theme='dark'] .gcard { background: linear-gradient(180deg, rgba(43, 32, 15, .7), rgba(29, 22, 12, .5)); border-color: rgba(255, 255, 255, .1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 22px 44px -24px rgba(0, 0, 0, .7); }
.gcard::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit; background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), var(--glow), transparent 45%); opacity: 0; transition: opacity .4s; }
.gcard:hover::before { opacity: 1; }
.gcard-wrap:hover .gcard { transform: translateY(-6px); box-shadow: inset 0 1px 0 #fff, 0 34px 60px -26px rgba(30, 22, 11, .38); }
[data-theme='dark'] .gcard-wrap:hover .gcard { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 34px 60px -26px rgba(0, 0, 0, .8); }
.gcard-bgico { position: absolute; z-index: -1; right: -34px; bottom: -34px; color: var(--mel); opacity: .2; pointer-events: none; transition: transform 1.2s var(--ease); }
.gcard-wrap:hover .gcard-bgico { transform: rotate(-10deg) scale(1.08); }
.gcard-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.gcard-ico { width: 50px; height: 50px; flex: none; display: grid; place-items: center; border-radius: 16px; background: var(--t-bg); color: var(--t-ink); box-shadow: 0 8px 20px -12px rgba(30, 22, 11, .45); }
.gcard-time { padding: 5px 11px; border-radius: var(--r-pill); background: rgba(30, 22, 11, .06); color: var(--ink-2); white-space: nowrap; }
[data-theme='dark'] .gcard-time { background: rgba(255, 255, 255, .07); }
.gcard h3 { margin-top: auto; font-size: 1.35rem; letter-spacing: -.025em; }
.gcard p { color: var(--ink-2); font-size: 15px; line-height: 1.5; }

/* ---------- Seccions de la guia + mòbil ---------- */
.showcase { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(36px, 6vw, 80px); align-items: center; }
.showcase .section-head { margin-bottom: 28px; }
.sections-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sections-list li { display: flex; align-items: center; gap: 12px; padding: 8px 14px 8px 8px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); font-size: 15px; font-weight: 400; }
.sl-ico { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--soft); color: var(--brand-ink); }
.showcase-phone { position: relative; display: grid; justify-items: center; gap: 22px; }
.showcase-phone::before { content: ''; position: absolute; z-index: -1; inset: 6% -6% 14%; border-radius: var(--r-xl); background: radial-gradient(80% 70% at 50% 40%, var(--palla), transparent 70%); }
[data-theme='dark'] .showcase-phone::before { background: radial-gradient(80% 70% at 50% 40%, rgba(240, 180, 76, .16), transparent 70%); }
.phone { position: relative; width: min(330px, 86vw); aspect-ratio: 9 / 18.5; padding: 10px; border-radius: 46px; background: var(--nit); box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, .08); }
.phone iframe { width: 100%; height: 100%; border: 0; border-radius: 37px; background: var(--llum); }

/* ---------- Procés ---------- */
.process { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.process-head { position: sticky; top: 120px; }
.process-head .section-head { margin-bottom: 28px; }
.steps { position: relative; display: grid; gap: 16px; }
.steps-line { position: absolute; left: 31px; top: 32px; bottom: 32px; width: 2px; border-radius: 2px; background: var(--line-2); }
.steps-fill { position: absolute; left: 0; top: 0; width: 100%; height: calc(var(--p, 0) * 100%); border-radius: 2px; background: linear-gradient(180deg, var(--ambre), var(--mel)); }
.step { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 18px; align-items: start; }
.step-num { position: relative; z-index: 1; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); font-family: var(--mono); font-weight: 500; font-size: 17px; color: var(--brand-ink); box-shadow: var(--shadow-sm); transition: background-color .5s var(--ease), color .5s var(--ease), transform .6s var(--spring); }
.step.is-active .step-num { background: var(--nit); color: var(--mel); border-color: transparent; transform: scale(1.04); }
[data-theme='dark'] .step.is-active .step-num { background: var(--mel); color: var(--nit); }
.step-card { padding: 22px 24px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: box-shadow .4s, transform .5s var(--ease); }
.step-card:hover { box-shadow: var(--shadow-md); transform: translateX(4px); }
.step-when { display: inline-block; padding: 4px 10px; border-radius: var(--r-pill); background: var(--soft); color: var(--brand-ink); }
.step h3 { margin: 12px 0 6px; font-size: 1.2rem; }
.step p { color: var(--ink-2); font-size: 15.5px; }

/* ---------- Funcions del gestor ---------- */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature { display: grid; gap: 8px; align-content: start; padding: 26px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.feature:hover { box-shadow: var(--shadow-md); }
.feature-ico { width: 50px; height: 50px; display: grid; place-items: center; margin-bottom: 8px; border-radius: 16px; background: var(--soft); color: var(--brand-ink); }
.feature h3 { font-size: 1.15rem; }
.feature p { color: var(--ink-2); font-size: 15px; }

/* ---------- Xifres ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { padding: 28px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.stat strong { display: block; font-size: clamp(2.3rem, 4.4vw, 3.6rem); font-weight: 500; letter-spacing: -.045em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--brand-ink); }
.stat span { display: block; margin-top: 12px; color: var(--ink-2); font-size: 15px; line-height: 1.45; }
.stat:nth-child(1) { background: var(--nit); border-color: transparent; }
.stat:nth-child(1) strong { color: var(--mel); }
.stat:nth-child(1) span { color: rgba(251, 247, 239, .72); }
.stat:nth-child(3) { background: var(--mel); border-color: transparent; }
.stat:nth-child(3) strong { color: var(--nit); }
.stat:nth-child(3) span { color: rgba(30, 22, 11, .75); }
[data-theme='dark'] .stat:nth-child(1) { background: #3a2a12; }

/* ---------- Preus ---------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.plan { display: flex; flex-direction: column; gap: 16px; padding: 28px 26px 26px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.plan-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.plan h3 { font-size: 1.35rem; }
.plan-tag { padding: 4px 11px; border-radius: var(--r-pill); background: var(--mel); color: var(--nit); }
.plan-desc { color: var(--ink-3); font-size: 15px; margin-top: -8px; }
.plan-price { display: flex; align-items: baseline; gap: 4px; }
.plan-price strong { font-size: 2.8rem; font-weight: 500; letter-spacing: -.045em; line-height: 1; }
.plan-price span { color: var(--ink-3); }
.plan-limits, .plan-feats { display: grid; gap: 9px; font-size: 14.5px; }
.plan-limits { padding: 16px 0; border-block: 1px solid var(--line); }
.plan-limits li, .plan-feats li { display: flex; align-items: center; gap: 10px; }
.plan-limits .ico { color: var(--brand-ink); flex: none; }
.pf-ico { width: 22px; height: 22px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--soft); color: var(--brand-ink); }
.plan-feats .is-off { color: var(--ink-3); opacity: .65; }
.plan-feats .is-off .pf-ico { background: var(--bg-2); color: var(--ink-3); }
.plan .btn { margin-top: auto; justify-content: space-between; }
.plan.is-featured { background: var(--nit); color: var(--llum); border-color: transparent; box-shadow: var(--shadow-lg); --line: rgba(251, 247, 239, .1); }
.plan.is-featured :is(.plan-desc, .plan-price span) { color: rgba(251, 247, 239, .68); }
.plan.is-featured .plan-limits .ico { color: var(--mel); }
.plan.is-featured .pf-ico { background: rgba(240, 180, 76, .18); color: var(--mel); }
.plan.is-featured .plan-feats .is-off { color: rgba(251, 247, 239, .6); }
.plan.is-featured .plan-feats .is-off .pf-ico { background: rgba(255, 255, 255, .07); color: rgba(251, 247, 239, .6); }
[data-theme='dark'] .plan.is-featured { background: #2b200f; box-shadow: inset 0 0 0 1px rgba(240, 180, 76, .35), var(--shadow-lg); }
.plans-note { margin-top: 26px; color: var(--ink-3); text-align: center; }

/* ---------- Preguntes ---------- */
.faq { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq-head { position: sticky; top: 120px; }
.faq-list { display: grid; gap: 12px; }
.faq-item { border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: box-shadow .4s var(--ease); }
.faq-item[open] { box-shadow: var(--shadow-md); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 18px 18px 24px; border-radius: 24px; font-weight: 500; font-size: 1.05rem; line-height: 1.35; letter-spacing: -.01em; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-ico { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: var(--r-pill); background: var(--soft); color: var(--brand-ink); transition: transform .5s var(--spring), background-color .3s, color .3s; }
.faq-item[open] .faq-ico { transform: rotate(135deg); background: var(--nit); color: var(--mel); }
[data-theme='dark'] .faq-item[open] .faq-ico { background: var(--mel); color: var(--nit); }
.faq-a { padding: 0 24px 22px; color: var(--ink-2); }
.faq-item::details-content { height: 0; overflow: clip; transition: height .45s var(--ease), content-visibility .45s allow-discrete; }
.faq-item[open]::details-content { height: auto; }
html { interpolate-size: allow-keywords; }

/* ---------- Crida final ---------- */
.cta-wrap { padding-bottom: clamp(40px, 6vw, 72px); }
.cta { position: relative; isolation: isolate; overflow: hidden; padding: clamp(64px, 9vw, 120px) 22px; border-radius: var(--r-xl); color: #fff; text-align: center; }
.cta .sky { container-type: inline-size; background: linear-gradient(180deg, var(--sky-a), var(--sky-b) 45%, var(--sky-c)); }
.cta .cloud { opacity: .45; }
.cta .cloud.fly { left: 100%; opacity: var(--o, .4); filter: blur(var(--blur, 8px)); animation: fly var(--dur, 18s) linear var(--delay, 0s) infinite; }
.cloud.f1 { width: 38cqw; height: 13cqw; top: 6%;  --dur: 14s; --delay: -2s;  --o: .45; --dy: 2cqw; }
.cloud.f2 { width: 22cqw; height: 8cqw;  top: 26%; --dur: 24s; --delay: -9s;  --o: .28; --blur: 6px; }
.cloud.f3 { width: 52cqw; height: 18cqw; top: 60%; --dur: 10s; --delay: -6s;  --o: .55; --blur: 14px; --dy: -2cqw; }
.cloud.f4 { width: 16cqw; height: 6cqw;  top: 16%; --dur: 32s; --delay: -20s; --o: .22; --blur: 5px; }
.cloud.f5 { width: 30cqw; height: 10cqw; top: 74%; --dur: 16s; --delay: -12s; --o: .4; --dy: 1.5cqw; }
.cloud.f6 { width: 24cqw; height: 9cqw;  top: 42%; --dur: 26s; --delay: -4s;  --o: .22; --blur: 6px; }
.cloud.f7 { width: 46cqw; height: 16cqw; top: -6%; --dur: 19s; --delay: -15s; --o: .36; --blur: 12px; --dy: 1cqw; }
.cloud.f8 { width: 18cqw; height: 7cqw;  top: 86%; --dur: 12s; --delay: -1s;  --o: .45; }
.cta-inner { position: relative; z-index: 1; }
.cta h2 { max-width: 15ch; margin: 0 auto; font-size: clamp(2.2rem, 5.2vw, 4.2rem); letter-spacing: -.04em; text-wrap: balance; }
.cta h2 em { font-style: normal; color: var(--mel); }
.cta p { max-width: 560px; margin: 18px auto 32px; font-size: clamp(1.02rem, 1.5vw, 1.15rem); color: rgba(255, 255, 255, .88); }
.cta .btn-row { justify-content: center; }

/* ---------- Peu ---------- */
.site-footer { padding: 0 10px 10px; }
.footer-card {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(48px, 7vw, 88px) clamp(20px, 5vw, 64px) 26px;
  border-radius: var(--r-xl); background: var(--nit); color: #e8dcc9;
  --sm-1: #fce8c3; --sm-2: #f5c46a; --sm-3: #d98f1c; --sm-o2: .9; --sm-o3: .86; --sm-blend: normal; --wm-ink: #fff; --wm-stay: #fce8c3;
}
[data-theme='dark'] .footer-card { background: #0c0905; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.footer-glow { position: absolute; z-index: -1; right: -10%; top: -30%; width: 60vw; height: 60vw; border-radius: 50%; background: radial-gradient(circle, rgba(240, 180, 76, .16), transparent 60%); pointer-events: none; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; }
.footer-logo { display: inline-flex; border-radius: var(--r-sm); text-decoration: none; }
.footer-logo .brand { font-size: 28px; }
.footer-brand p { max-width: 40ch; margin: 18px 0 26px; color: rgba(232, 220, 201, .7); }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-h { margin-bottom: 4px; color: #fff; }
.footer-h-sp { margin-top: 18px; }
.footer-col a { width: fit-content; color: rgba(232, 220, 201, .72); font-size: 15px; text-decoration: none; border-radius: var(--r-xs); transition: color .25s, translate .4s var(--spring); }
.footer-col a:hover { color: var(--mel); translate: 4px 0; }
.footer-word { margin-top: clamp(40px, 6vw, 72px); font-size: clamp(3.6rem, 15vw, 13.5rem); font-weight: 400; letter-spacing: -.06em; line-height: .8; text-align: center; white-space: nowrap; user-select: none; background: linear-gradient(180deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, 0) 92%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer-word span { background: linear-gradient(180deg, rgba(240, 180, 76, .6), rgba(240, 180, 76, 0) 92%); -webkit-background-clip: text; background-clip: text; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .08); color: rgba(232, 220, 201, .64); font-size: 13.5px; }
.footer-bottom .cc-seal { color: rgba(232, 220, 201, .64); }
.footer-bottom .cc-seal-w { color: #fff; }

/* ---------- Revelació en fer scroll ---------- */
html.js [data-reveal] { opacity: 0; translate: 0 30px; filter: blur(6px); transition: opacity 1s var(--ease) var(--d, 0ms), translate 1s var(--ease) var(--d, 0ms), filter 1s var(--ease) var(--d, 0ms), transform .6s var(--ease), box-shadow .5s var(--ease); }
html.js [data-reveal].in { opacity: 1; translate: none; filter: none; }

/* ---------- Etiquetes en Geist Mono (manual: majúscules espaiades) ---------- */
:is(.eyebrow, .gcard-time, .step-when, .plan-tag, .footer-h) { font-family: var(--mono); font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.eyebrow, .footer-h { font-size: 12px; }
:is(.gcard-time, .step-when, .plan-tag) { font-size: 11.5px; }

/* ---------- Animacions ---------- */
@keyframes wordIn { to { opacity: 1; transform: none; filter: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes chipIn { from { opacity: 0; scale: .85; } to { opacity: 1; scale: 1; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes fly { to { transform: translate3d(calc(-100cqw - 100%), var(--dy, 0), 0); } }
@keyframes drift { from { transform: translate3d(-5vw, 0, 0); } to { transform: translate3d(5vw, -1.2vw, 0); } }
@keyframes sun { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-3vw, 2vw, 0) scale(1.08); } }
@keyframes twinkle { from { opacity: .3; } to { opacity: .6; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes ping { 0% { transform: scale(1); opacity: .9; } 80%, 100% { transform: scale(1.5); opacity: 0; } }
@keyframes bubbleIn { from { opacity: 0; transform: scale(.2); } to { opacity: 1; transform: none; } }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }

/* ---------- Pàgines de solució i contacte ---------- */
.hero-page { padding: calc(var(--header-h) + 72px) 0 clamp(56px, 8vw, 96px); }
.hero-page .hero-inner { padding-bottom: 0; }
.page-title { font-size: clamp(2.3rem, 5.4vw, 4.4rem); text-wrap: balance; max-width: 18ch; }
.crumbs { display: flex; align-items: center; gap: 6px; margin-bottom: 18px; font-size: 13.5px; color: rgba(255, 255, 255, .78); }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs .ico { opacity: .7; }
.intro-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.intro-grid .section-head { margin-bottom: 0; }
.intro-copy { display: grid; gap: 18px; font-size: clamp(1.04rem, 1.4vw, 1.14rem); color: var(--ink-2); }
.feature-link { color: inherit; text-decoration: none; transition: box-shadow .3s var(--ease), translate .45s var(--spring); }
.feature-link:hover { translate: 0 -3px; }
.feature-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; color: var(--brand-ink); font-size: 14.5px; font-weight: 500; }
.feature-link:hover .feature-more .ico { translate: 3px 0; }
.feature-more .ico { transition: translate .4s var(--spring); }
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-copy h1 { margin-top: 18px; font-size: clamp(2.2rem, 4.8vw, 3.6rem); line-height: 1.05; letter-spacing: -.04em; text-wrap: balance; }
.contact-copy h1 em { font-style: normal; color: var(--brand-ink); }
.contact-points { display: grid; gap: 10px; margin: 26px 0; }
.contact-points li { display: flex; gap: 10px; align-items: center; }
.contact-points .ico { flex: none; color: var(--brand-ink); }
.contact-card { padding: clamp(22px, 4vw, 36px); border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-md); }
.contact-card .form { gap: 18px; }
.contact-card .btn { justify-self: start; }
.contact-done { display: grid; gap: 14px; justify-items: start; }
.contact-done h2 { font-size: 1.6rem; letter-spacing: -.03em; }
.contact-done p { color: var(--ink-2); }
.field-err { margin-top: 6px; color: var(--bad); font-size: 13px; font-weight: 500; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) { .hero-float { display: none; } }
@media (max-width: 1080px) {
  .nav-links, .nav-actions .lang-switch { display: none; }
  .burger { display: grid; }
  .nav-actions { margin-left: auto; }
  .span-3, .span-4 { grid-column: span 6; }
  .span-6 { grid-column: span 12; }
  .gcard-wrap.is-tall .gcard { min-height: 280px; }
}
@media (max-width: 960px) {
  .process, .faq, .showcase, .intro-grid, .contact-grid { grid-template-columns: 1fr; }
  .process-head, .faq-head { position: static; }
  .features { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .plan.is-featured { order: -1; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .site-header { top: 20px; width: calc(100% - 40px); }
  .site-header.is-solid { top: 10px; width: calc(100% - 20px); }
  .nav { padding-left: 16px; gap: 6px; }
  .nav-logo .brand { font-size: 19px; }
  .nav-cta { display: none; }
  .hero { margin: 6px; border-radius: 28px; }
  .hero-home { padding-top: calc(var(--header-h) + 56px); min-height: calc(100svh - 12px); }
  .hero-cta .btn { width: 100%; justify-content: space-between; }
  .hero-cta .btn:not(:has(.btn-ico)) { justify-content: center; }
  .site-footer { padding: 0 6px 6px; }
  .footer-card, .cta, .statement { border-radius: 28px; }
  .span-3, .span-4, .span-6 { grid-column: span 12; }
  .gcard, .gcard-wrap.is-tall .gcard { min-height: 0; }
  .gcard h3 { margin-top: 14px; }
  .features, .sections-list { grid-template-columns: 1fr; }
  .mcard { min-width: 220px; }
  .step { grid-template-columns: 52px 1fr; gap: 14px; }
  .step-num { width: 52px; height: 52px; border-radius: 18px; font-size: 15px; }
  .steps-line { left: 25px; }
  .stat { padding: 22px; }
}
@media (max-width: 400px) { .stats { grid-template-columns: 1fr; } .footer-top { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  .marquee-track, .cloud, .sky-sun, .fchip, .statement-mark .mark { animation: none !important; }
  .fchip { opacity: 1; }
  html.js [data-reveal], html.js .w > span, html.js :is(.hero-lead, .hero-cta, .hero-meta, .hero .badge, .marquee) { opacity: 1; translate: none; transform: none; filter: none; }
  html.js .hw { opacity: 1; }
}
