/* Rockfork - pàgina d'inici (mosaic de producte, 2026-10-29). Les pàgines legals fan servir style.css. */
:root {
  --ink: #0C1A1A;
  --surface: #15302E;
  --teal: #1F8F86;
  --teal-dark: #166E67;
  --teal-light: #6ACFC7;
  --teal-soft: #E1F5F2;
  --bg2: #F2F8F7;
  --line: #DCE7E5;
  --line-dark: #2A4B48;
  --text: #1E2B2A;
  --muted: #5F6E6C;
  --on-dark: #E9F5F3;
  --on-dark-muted: #A9C4C0;
  --font: 'Inter', 'Inter Fallback', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; scrollbar-color: #A9C4C0 var(--bg2); }
body {
  margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--text); background: #fff;
  font-variant-numeric: tabular-nums; overflow-x: hidden; caret-color: var(--teal-dark);
}
::selection { background: var(--teal-light); color: var(--ink); }
img, svg { max-width: 100%; display: block; }
h1, h2, h3 { color: var(--ink); margin: 0; font-weight: 700; text-wrap: balance; }
h2 { font-size: clamp(30px, 4.2vw, 48px); line-height: 1.06; letter-spacing: -.032em; max-width: 20ch; }
h3 { font-size: 19px; line-height: 1.3; letter-spacing: -.012em; font-weight: 650; }
p { margin: 0 0 1em; }
a { color: var(--teal-dark); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
section { padding: clamp(72px, 9vw, 120px) 0; }

.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 4px; z-index: 100; }
.skip:focus { top: 12px; }

/* Botons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 11px 20px;
  border-radius: 8px; border: 1px solid transparent; font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background-color .18s, color .18s, border-color .18s, transform .18s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-lg { min-height: 54px; padding: 15px 26px; font-size: 17px; }
.btn-primary { background: var(--teal-dark); color: #fff; }
.btn-primary:hover { background: var(--ink); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--teal-dark); color: var(--teal-dark); }

/* Capçalera */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(12, 26, 26, .94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid rgba(233, 245, 243, .1); }
.site-header :focus-visible { outline-color: var(--teal-light); }
.site-header { transition: box-shadow .3s var(--ease), background-color .3s var(--ease); }
.site-header.is-scrolled { background: rgba(12, 26, 26, .98); box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .55); }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: #fff; font-weight: 700; font-size: 20px; letter-spacing: -.045em; }
.brand:hover { color: #fff; }
.brand svg { width: 31px; height: auto; }
.menu { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--ink); border-bottom: 1px solid var(--line-dark); padding: 8px 20px 20px; }
.menu.open { display: block; }
.menu a { display: block; padding: 12px 0; color: var(--on-dark); text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--line-dark); }
.menu a:hover { color: var(--teal-light); }
.menu a[aria-current] { color: var(--teal-light); }
.menu a { transition: color .18s; }
.menu .btn { margin-top: 16px; width: 100%; background: var(--teal-light); color: var(--ink); border-bottom: 0; }
.menu .btn:hover { background: #fff; color: var(--ink); }
.nav-toggle { background: none; border: 1px solid var(--line-dark); border-radius: 8px; width: 44px; height: 44px; cursor: pointer; display: grid; place-items: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 18px; height: 2px; background: var(--on-dark); content: ''; position: relative; }
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* Portada: titular centrat i el producte a tot l'ample, que entra a la secció següent */
/* El fons fosc s'acaba a mitja imatge: la imatge queda a cavall de la portada i la secció clara */
.hero { --overlap: calc(clamp(80px, 13vw, 210px) + 64px); color: var(--on-dark); padding: clamp(40px, 4.5vw, 64px) 0 0;
  background: linear-gradient(to bottom, var(--ink) calc(100% - var(--overlap)), #fff calc(100% - var(--overlap))); }
.hero-copy { text-align: center; max-width: 1040px; }
/* Fons de la portada: el massís de dos cims (imatge d'IA), molt apagat, només a la part fosca */
.hero { position: relative; isolation: isolate; }
.hero::before {
  content: ''; position: absolute; inset: 0 0 var(--overlap) 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(12, 26, 26, .80), rgba(12, 26, 26, .90) 65%, var(--ink)),
    url('../assets/producte/fons-cims-mobil-540.webp') center 30% / cover no-repeat;
}
@media (min-width: 960px) { .hero::before { background-image: linear-gradient(to bottom, rgba(12, 26, 26, .80), rgba(12, 26, 26, .90) 65%, var(--ink)), image-set(url('../assets/producte/fons-cims-1200.webp') 1x, url('../assets/producte/fons-cims-1920.webp') 2x); background-position: center 35%; } }
.hero h1 { color: #fff; font-size: clamp(38px, 6.2vw, 78px); line-height: 1.02; letter-spacing: -.04em; }
.hero h1 em { font-style: normal; color: var(--teal-light); }
.br-wide { display: none; }
.hero-lead { font-size: clamp(18px, 1.7vw, 21px); line-height: 1.55; color: var(--on-dark-muted); max-width: 56ch; margin: 22px auto 0; text-wrap: pretty; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.hero .btn-primary { background: var(--teal-light); color: var(--ink); }
.hero .btn-primary:hover { background: #fff; }
.hero .btn-ghost { color: var(--on-dark); border-color: rgba(233, 245, 243, .28); }
.hero .btn-ghost:hover { color: var(--teal-light); border-color: var(--teal-light); }
.hero-proof { margin: 20px 0 0; font-size: 14px; color: var(--on-dark-muted); display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; }
.hero-proof span:last-child::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--teal-light); margin-right: 10px; vertical-align: 1px; }
.hero :focus-visible { outline-color: var(--teal-light); }
.hero-shot { position: relative; z-index: 2; margin: clamp(32px, 3.4vw, 48px) auto 0; }
.hero-shot img {
  width: 100%; height: auto;
  animation: rise 1.2s var(--ease) .25s both;
}
.hero-shot figcaption { margin-top: 14px; font-size: 14px; color: var(--muted); text-align: center; }
.hero-shot figcaption span { display: block; font-size: 13px; margin-top: 2px; }
/* Portada retallada: els aparells sense fons, sobre el degradat de la secció */
.hero-shot--cutout picture { display: block; filter: drop-shadow(0 28px 36px rgba(0, 0, 0, .32)); }
@keyframes rise { from { transform: translateY(40px) scale(.97); filter: blur(6px); opacity: .001; } to { transform: none; filter: none; opacity: 1; } }
.hero-copy > * { animation: copy-in .7s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: .06s; }
.hero-copy > :nth-child(3) { animation-delay: .12s; }
.hero-copy > :nth-child(4) { animation-delay: .18s; }
@keyframes copy-in { from { transform: translateY(12px); opacity: .001; } to { transform: none; opacity: 1; } }

/* El problema */
.problem { padding-top: clamp(56px, 7vw, 96px); }
.problem-grid { display: grid; gap: 24px; }
.problem p { color: var(--muted); font-size: 18px; max-width: 58ch; }
.problem .problem-turn { color: var(--ink); font-weight: 600; font-size: 20px; line-height: 1.45; margin: 0; }

/* Què inclou */
.inclou { background: var(--bg2); }
.inclou-list { margin: 40px 0 0; display: grid; border-top: 1px solid var(--line); }
.inclou-list > div { position: relative; padding: 22px 0 22px 40px; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.inclou-list > div::before { content: ''; position: absolute; left: 0; top: 25px; width: 24px; height: 24px; border-radius: 50%; background: var(--teal-soft); border: 1px solid var(--line); }
.inclou-list > div::after { content: ''; position: absolute; left: 8px; top: 31px; width: 9px; height: 5px; border-left: 2px solid var(--teal-dark); border-bottom: 2px solid var(--teal-dark); transform: rotate(-45deg); }
.inclou-list dt { font-weight: 650; color: var(--ink); font-size: 19px; letter-spacing: -.012em; }
.inclou-list dd { margin: 0; color: var(--muted); }

/* Mosaic de pantalles reals */
.app { background: #fff; }
.app-head { display: grid; gap: 14px; margin-bottom: 44px; }
.app-head p { color: var(--muted); max-width: 52ch; margin: 0; }
.mosaic { display: grid; gap: 18px; }
.tile { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: grid; gap: 16px; align-content: start; }
.tile figcaption { font-size: 15px; line-height: 1.5; color: var(--muted); }
.tile figcaption b { display: block; color: var(--ink); font-size: 17px; letter-spacing: -.01em; margin-bottom: 2px; }
.screen { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.tile-screen .screen, .tile-checkin .screen { max-width: 300px; margin: 0 auto; }
.tile-checkin { background: var(--teal-soft); border-color: var(--teal-soft); }
.tile-checkin figcaption { font-size: 17px; color: var(--text); }
.tile-checkin figcaption b { font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -.025em; margin-bottom: 8px; }
.js-motion .tile { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js-motion .tile.is-in { opacity: 1; transform: none; }
.tile .screen { transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
@media (hover: hover) { .tile:hover .screen { transform: translateY(-4px); box-shadow: 0 14px 28px -14px rgba(12, 26, 26, .35); } }

/* Assistent amb IA */
.assistent { background: var(--bg2); }
.assistent-grid { display: grid; gap: 40px; align-items: center; }
.assistent-shot { margin: 0; }
.assistent-shot .screen { max-width: 300px; margin: 0 auto; box-shadow: 0 24px 48px -24px rgba(12, 26, 26, .35); }
.assistent-lead { font-size: 19px; color: var(--muted); max-width: 46ch; margin: 18px 0 0; }
.assistent-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.assistent-list li { position: relative; padding-left: 36px; color: var(--muted); max-width: 52ch; }
.assistent-list li b { color: var(--ink); font-weight: 650; }
.assistent-list li::before { content: ''; position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 50%; background: var(--teal-soft); border: 1px solid var(--line); }
.assistent-list li::after { content: ''; position: absolute; left: 8px; top: 8px; width: 9px; height: 5px; border-left: 2px solid var(--teal-dark); border-bottom: 2px solid var(--teal-dark); transform: rotate(-45deg); }
.assistent-rule { margin: 28px 0 0; padding-top: 22px; border-top: 1px solid var(--line); color: var(--text); max-width: 54ch; }
.assistent-rule b { color: var(--teal-dark); }

/* Com funciona */
.steps-sec { background: var(--ink); color: var(--on-dark); }
.steps-sec h2 { color: #fff; }
.steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; gap: 32px; counter-reset: pas; }
.steps li { position: relative; padding-top: 30px; border-top: 1px solid var(--line-dark); counter-increment: pas; }
.steps li::before { content: ''; position: absolute; top: -6px; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--teal-light); box-shadow: 0 0 0 5px var(--ink); }
.steps li:last-child::before { background: #fff; }
.steps h3 { color: #fff; font-size: 21px; }
.steps p { color: var(--on-dark-muted); margin: 10px 0 0; max-width: 40ch; }

/* On som */
.estat-grid { display: grid; gap: 36px; }
.estat-grid > div p { color: var(--muted); margin: 14px 0 0; }
.roadmap { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.roadmap li { position: relative; padding-top: 26px; border-top: 1px solid var(--line); }
.roadmap li::before { content: ''; position: absolute; top: -6px; left: 0; width: 11px; height: 11px; border-radius: 50%; background: #fff; border: 2px solid var(--line); box-shadow: 0 0 0 5px #fff; }
.roadmap li.now { border-top-color: var(--teal-dark); }
.roadmap li.now::before { background: var(--teal-dark); border-color: var(--teal-dark); }
.roadmap li p { color: var(--muted); margin: 8px 0 0; font-size: 16px; }

/* Preguntes */
.faq-sec { background: var(--bg2); }
.faq-grid { display: grid; gap: 32px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 20px 40px 20px 0; font-weight: 600; font-size: 18px; color: var(--ink); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 8px; top: 27px; width: 10px; height: 10px; border-right: 2px solid var(--teal-dark); border-bottom: 2px solid var(--teal-dark); transform: rotate(45deg); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg); top: 31px; }
.faq details p { color: var(--muted); margin: 0 0 22px; max-width: 64ch; }
.faq details[open] p { animation: faq-in .35s var(--ease); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.faq summary { transition: color .18s; }
.faq summary:hover { color: var(--teal-dark); }

/* Llista d'espera */
.llista { background: var(--ink); color: var(--on-dark); position: relative; isolation: isolate; overflow: hidden; }
/* Vídeo del corredor, molt apagat, de fons de la llista d'espera */
.llista-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 70%; z-index: -2; opacity: .28; filter: saturate(.7); }
.llista::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to right, rgba(12, 26, 26, .92), rgba(12, 26, 26, .72) 55%, rgba(12, 26, 26, .88)); }
.screen-video { display: block; aspect-ratio: 540 / 968; object-fit: cover; }
.llista h2 { color: #fff; }
.llista a { color: var(--teal-light); }
.llista :focus-visible { outline-color: var(--teal-light); }
.llista-grid { display: grid; gap: 40px; align-items: start; }
.llista-lead { font-size: 19px; color: var(--on-dark-muted); margin: 18px 0 0; max-width: 40ch; }
.note { font-size: 13px; color: var(--on-dark-muted); margin-top: 16px; }
.form { background: var(--surface); border: 1px solid rgba(233, 245, 243, .14); border-radius: 14px; padding: clamp(22px, 3vw, 32px); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 500; font-size: 14px; margin-bottom: 6px; color: var(--on-dark); }
.field input[type=email], .field input[type=text], .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--on-dark); background: var(--ink); border: 1px solid var(--line-dark);
  border-radius: 8px; padding: 12px 14px; min-height: 48px; caret-color: var(--teal-light);
}
.field input:not([type=checkbox]):focus, .field select:focus, .field textarea:focus { border-color: var(--teal-light); outline: none; box-shadow: 0 0 0 3px rgba(106, 207, 199, .35); }
.check input:focus-visible { outline: 3px solid var(--teal-light); outline-offset: 3px; }
.field input::placeholder, .field textarea::placeholder { color: #86A19D; }
.field textarea { min-height: 110px; resize: vertical; }
.field input[aria-invalid=true] { border-color: #F0A090; }
.more { margin: 0 0 18px; }
.more summary { cursor: pointer; font-size: 14px; color: var(--teal-light); font-weight: 500; padding: 4px 0 14px; }
.more summary span { color: var(--on-dark-muted); font-weight: 400; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; color: var(--on-dark-muted); }
.field label.check { display: flex; font-weight: 400; margin: 0; }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--teal-light); }
.err { display: block; color: #F5B5A8; font-size: 13px; margin-top: 6px; }
.llista .btn-primary { background: var(--teal-light); color: var(--ink); width: 100%; }
.llista .btn-primary:hover { background: #fff; }
.form button[disabled] { opacity: .6; cursor: progress; }
.form-status { margin: 16px 0 0; font-weight: 500; }
.form-status.ok { color: var(--teal-light); border: 1px solid var(--teal-light); border-radius: 8px; padding: 12px 14px 12px 44px; position: relative; animation: ok-in .45s var(--ease); }
.form-status.ok::before { content: ''; position: absolute; left: 16px; top: 50%; width: 12px; height: 6px; margin-top: -5px; border-left: 2px solid var(--teal-light); border-bottom: 2px solid var(--teal-light); transform: rotate(-45deg); }
@keyframes ok-in { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }
.hp { position: absolute; left: -9999px; }

/* Peu */
.footer { background: var(--ink); color: var(--on-dark-muted); padding: 40px 0; font-size: 14px; border-top: 1px solid rgba(233, 245, 243, .1); }
.footer p { margin: 10px 0 0; }
.footer-grid { display: grid; gap: 18px; }
.footer a { color: var(--on-dark); }
.footer .brand { color: #fff; }
.footer .links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; }
/* Sobre fons fosc, el hover no pot tornar el text al color del fons */
.footer a:hover, .footer .brand:hover, .llista a:hover { color: #fff; }

@media (min-width: 720px) {
  .inclou-list { grid-template-columns: 1fr 1fr; column-gap: 48px; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .roadmap { grid-template-columns: repeat(3, 1fr); }
  .mosaic { grid-template-columns: repeat(6, 1fr); }
  .tile-cal, .tile-wide { grid-column: 1 / -1; }
  .tile-avui { grid-column: span 3; }
  .tile-checkin { grid-column: 1 / -1; grid-template-columns: minmax(200px, 280px) 1fr; align-items: center; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr auto; align-items: center; }
}
@media (min-width: 960px) {
  .menu { display: flex; position: static; align-items: center; gap: 28px; border: 0; padding: 0; background: none; }
  .menu a { border: 0; padding: 6px 0; font-size: 14.5px; }
  .menu .btn { margin: 0 0 0 4px; width: auto; padding: 10px 18px; min-height: 40px; }
  .nav-toggle { display: none; }
  .problem-grid { grid-template-columns: 5fr 6fr; gap: 64px; align-items: start; }
  .mosaic { grid-template-columns: repeat(12, 1fr); gap: 20px; }
  /* Mosaic: 12 / 4 + 8 / 12 / 12. Les pantalles del panell a tot l'ample perquè es llegeixin */
  .tile-cal, .tile-wide { grid-column: 1 / -1; padding: 22px; }
  .tile-avui { grid-column: 1 / span 4; }
  .tile-checkin { grid-column: 5 / span 8; grid-template-columns: 300px 1fr; gap: 40px; }
  .br-wide { display: inline; }
  .hero h1 em { white-space: nowrap; }
  .estat-grid { grid-template-columns: 4fr 8fr; gap: 56px; }
  .assistent-grid { grid-template-columns: 5fr 7fr; gap: 72px; }
  .assistent-shot .screen { max-width: 340px; }
  .faq-grid { grid-template-columns: 4fr 8fr; gap: 56px; }
  .llista-grid { grid-template-columns: 1fr 1fr; gap: 64px; }
}
@media (max-width: 719px) {
  .hero-cta .btn { width: 100%; }
  .tile-screen .screen, .tile-checkin .screen { max-width: 270px; }
  .tile { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-delay: 0s !important; transition-delay: 0s !important; animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
}
