/* Rockfork - web estàtica */
:root {
  --teal: #1F8F86;      /* accent, gràfics, vores d'accent */
  --teal-dark: #166E67; /* botons i enllaços (contrast AA amb text blanc) */
  --teal-light: #6ACFC7;
  --ink: #0C1A1A;
  --surface: #15302E;
  --soft: #EAF3F1;
  --bg2: #F2F8F7;
  --line: #DCE7E5;
  --text: #1E2B2A;
  --muted: #5F6E6C;
  --on-dark: #E9F5F3;
  --on-dark-muted: #A9C4C0;
  --warn: #B7791F;
  --bad: #C0503F;
  --ok: #3FA96B;
  --amber: #E0A33B;
  --radius: 8px;
  --shadow: 0 1px 2px rgba(12, 26, 26, .05), 0 8px 24px rgba(12, 26, 26, .07);
  --font: 'Inter', 'Inter Fallback', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6;
  color: var(--text); background: #fff; font-variant-numeric: tabular-nums;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0; letter-spacing: -.02em; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--teal-dark); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
.dark :focus-visible { outline-color: var(--teal-light); }

.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; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
section { padding: 72px 0; }
.alt { background: var(--bg2); }
.dark { background: var(--ink); color: var(--on-dark); }
.dark h2, .dark h3, .dark h4 { color: #fff; }
.dark a { color: var(--teal-light); }

.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-dark); margin-bottom: 14px; }
.dark .eyebrow { color: var(--teal-light); }
h2 { font-size: clamp(26px, 4vw, 38px); max-width: 22ch; }
.lead { font-size: 18px; color: var(--muted); max-width: 62ch; margin-top: 16px; }
.dark .lead { color: var(--on-dark-muted); }
.sec-head { margin-bottom: 40px; }
.muted { color: var(--muted); }
.note { font-size: 13px; color: var(--muted); }
.dark .note { color: var(--on-dark-muted); }

/* Botons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 15px/1 var(--font); padding: 14px 22px; border-radius: 6px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer; min-height: 46px; transition: background .15s, color .15s, border-color .15s;
}
.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); }
.dark .btn-primary { background: var(--teal-light); color: var(--ink); }
.dark .btn-primary:hover { background: #fff; color: var(--ink); }
.dark .btn-ghost { color: var(--on-dark); border-color: rgba(233, 245, 243, .28); }
.dark .btn-ghost:hover { border-color: var(--teal-light); color: var(--teal-light); }

/* Capçalera */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 19px; letter-spacing: -.045em; }
.brand:hover { color: var(--ink); }
.brand svg { width: 30px; height: auto; }
.menu { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 20px 20px; }
.menu.open { display: block; }
.menu a { display: block; padding: 12px 0; color: var(--text); text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--line); }
.menu a:hover { color: var(--teal-dark); }
.menu .btn { margin-top: 16px; width: 100%; color: #fff; border-bottom: 0; }
.menu .btn:hover { color: #fff; }
.nav-toggle { background: none; border: 1px solid var(--line); border-radius: 6px; 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(--ink); content: ''; position: relative; }
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* Heroi */
.hero { padding: 56px 0 64px; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(32px, 5.6vw, 50px); color: #fff; letter-spacing: -.03em; }
.hero h1 em { font-style: normal; color: var(--teal-light); }
.hero .lead { font-size: 19px; }
.hero-list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; max-width: 54ch; }
.hero-list li { position: relative; padding-left: 28px; color: var(--on-dark-muted); font-size: 16px; line-height: 1.5; }
.hero-list li::before { content: ''; position: absolute; left: 2px; top: .38em; width: 12px; height: 7px; border-left: 2px solid var(--teal-light); border-bottom: 2px solid var(--teal-light); transform: rotate(-45deg); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-photo { border-radius: 12px; overflow: hidden; border: 1px solid rgba(233, 245, 243, .14); box-shadow: 0 20px 50px rgba(0, 0, 0, .35); aspect-ratio: 3 / 2; background: linear-gradient(160deg, #15302E, #0C1A1A); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-meta { margin-top: 28px; font-size: 13px; color: var(--on-dark-muted); }

/* Problema */
.stats { display: grid; gap: 16px; margin-top: 8px; }
.stat { border: 1px solid var(--line); background: #fff; border-radius: var(--radius); padding: 24px; }
.stat b { display: block; font-size: 34px; letter-spacing: -.03em; color: var(--ink); font-weight: 600; line-height: 1.1; }
.stat span { display: block; margin-top: 8px; color: var(--muted); font-size: 14px; }
.stat .tag, .tag { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--teal-dark); background: var(--soft); border-radius: 999px; padding: 3px 10px; margin-top: 12px; }
.problem-text { display: grid; gap: 32px; margin-bottom: 40px; }
.problem-text p { font-size: 17px; max-width: 60ch; }
.callout { border-left: 3px solid var(--teal); padding: 4px 0 4px 20px; font-size: 20px; color: var(--ink); font-weight: 500; letter-spacing: -.01em; max-width: 34ch; }

/* Passos */
.steps { display: grid; gap: 16px; counter-reset: s; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: relative; }
.alt .step { background: #fff; }
.step .n { font-size: 13px; font-weight: 600; color: var(--teal-dark); letter-spacing: .06em; margin-bottom: 18px; display: block; }
.step h3 { font-size: 21px; margin-bottom: 10px; }
.step p { color: var(--muted); margin: 0; font-size: 15px; }

/* Captures de l'app */
.product-shot { margin: 40px 0 0; }
.product-shot img { width: 100%; height: auto; display: block; border-radius: 12px; background: #0C1A1A; box-shadow: var(--shadow); }
.product-shot figcaption { margin-top: 14px; display: grid; gap: 2px; }
.product-shot figcaption b { color: var(--ink); font-size: 18px; font-weight: 600; }
.product-shot figcaption span { color: var(--muted); }
.product-shot .ia-note { margin-top: 4px; font-size: 13px; color: var(--muted); }
.shots-group { margin-top: 48px; }
.shots-group > h3 { font-size: 20px; margin-bottom: 6px; }
.shots-group > p { color: var(--muted); max-width: 62ch; margin-bottom: 24px; }
.shots { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 20px 20px; margin: 0 -20px; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.shots:focus-visible { outline: 3px solid var(--teal); outline-offset: -3px; border-radius: 8px; }
.shot { flex: 0 0 236px; scroll-snap-align: start; margin: 0; }
.shot-frame { position: relative; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.shot-frame img { width: 100%; height: auto; display: block; }
.shot-frame::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 64px; background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff); pointer-events: none; }
.shot figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); line-height: 1.4; }
.shot figcaption b { display: block; color: var(--ink); font-weight: 600; }
.demo-note { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--muted); border: 1px solid var(--line); background: #fff; padding: 6px 14px; border-radius: 999px; margin-top: 20px; }

/* Fase de demo */
.statusbar { background: var(--teal-dark); color: #fff; font-size: 13px; text-align: center; padding: 9px 16px; line-height: 1.4; }
.statusbar b { font-weight: 600; }
.statusbar a { color: #fff; font-weight: 600; }
.roadmap { display: grid; gap: 16px; }
.rm { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: #fff; }
.rm.now { border-color: var(--teal); box-shadow: var(--shadow); }
.rm .when { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--teal-dark); background: var(--soft); border-radius: 999px; padding: 3px 12px; margin-bottom: 14px; }
.rm.now .when { background: var(--teal-dark); color: #fff; }
.rm h3 { font-size: 19px; margin-bottom: 8px; }
.rm p { margin: 0; color: var(--muted); font-size: 15px; }
.credit { font-size: 12px; color: var(--on-dark-muted); margin: 10px 0 0; }
.credit a { color: var(--on-dark); }

/* Funcions */
.features { display: grid; gap: 16px; }
.feat { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: #fff; }
.feat svg { width: 22px; height: 22px; stroke: var(--teal-dark); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 14px; }
.feat h3 { font-size: 17px; margin-bottom: 8px; }
.feat p { margin: 0; font-size: 15px; color: var(--muted); }
.audience { display: grid; gap: 20px; margin-bottom: 40px; }
.aud { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.aud-txt { padding: 24px; }
.aud h3 { font-size: 20px; margin-bottom: 12px; }
.aud li { padding: 8px 0 8px 22px; position: relative; color: var(--muted); font-size: 15px; border-top: 1px solid var(--line); }
.aud li::before { content: ''; position: absolute; left: 2px; top: 17px; width: 8px; height: 2px; background: var(--teal); }

.status { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--ink); background: var(--teal-light); padding: 4px 12px; border-radius: 999px; margin-bottom: 18px; }

/* Preus */
.prices { display: grid; gap: 20px; max-width: 760px; }
.price { border: 1px solid var(--line); border-radius: 12px; padding: 32px; background: #fff; }
.price.main { border-color: var(--teal); box-shadow: var(--shadow); }
.price h3 { font-size: 16px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.price .amt { font-size: 44px; font-weight: 600; color: var(--ink); letter-spacing: -.03em; margin: 8px 0 4px; line-height: 1.1; }
.price .amt small { font-size: 16px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price ul { margin-top: 18px; }
.price li { padding: 8px 0 8px 22px; position: relative; font-size: 15px; border-top: 1px solid var(--line); }
.price li::before { content: ''; position: absolute; left: 2px; top: 17px; width: 8px; height: 2px; background: var(--teal); }
.warn-box { margin-top: 24px; max-width: 760px; border: 1px dashed var(--warn); background: #FBF3E3; color: #5C3D0B; border-radius: 8px; padding: 14px 18px; font-size: 14px; }

/* FAQ */
.faq { max-width: 800px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 20px 36px 20px 0; font-weight: 600; font-size: 17px; color: var(--ink); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 16px; font-size: 24px; font-weight: 400; color: var(--teal-dark); }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { color: var(--muted); margin: 0 0 20px; max-width: 64ch; }

/* Contacte */
.contact-grid { display: grid; gap: 40px; align-items: start; }
.form { background: var(--surface); border: 1px solid rgba(233, 245, 243, .16); border-radius: 12px; padding: 28px; }
.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: 16px var(--font); padding: 12px 14px; border-radius: 6px; border: 1px solid rgba(233, 245, 243, .3);
  background: var(--ink); color: #fff; min-height: 46px;
}
.field input::placeholder, .field textarea::placeholder { color: #86A19D; }
.field textarea { min-height: 110px; resize: vertical; }
.field .opt { font-weight: 400; color: var(--on-dark-muted); }
.form button[disabled] { opacity: .6; cursor: progress; }
.field input[aria-invalid=true] { border-color: #F0A090; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; color: var(--on-dark-muted); }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--teal-light); }
.err { display: block; min-height: 0; color: #F5B5A8; font-size: 13px; margin-top: 6px; }
.form-status { margin-top: 16px; font-weight: 500; }
.form-status.ok { color: var(--teal-light); border: 1px solid var(--teal-light); border-radius: 6px; padding: 12px 14px; }
.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 .wrap { display: grid; gap: 16px; }
.footer a { color: var(--on-dark); }
.footer .brand { color: #fff; }
.footer .links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; }
.footer .links a { text-underline-offset: 3px; }

/* Tauleta i ordinador */
@media (min-width: 720px) {
  section { padding: 96px 0; }
  .wrap { padding: 0 32px; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .audience { grid-template-columns: repeat(2, 1fr); }
  .prices { grid-template-columns: 1fr 1fr; }
  .phones { grid-template-columns: repeat(2, 1fr); }
  .side { display: block; }
  .win { font-size: 12.5px; }
  .cal { font-size: 11.5px; }
  .footer .wrap { grid-template-columns: 1fr auto; align-items: center; }
}
@media (min-width: 960px) {
  .menu { display: flex; position: static; align-items: center; gap: 26px; border: 0; padding: 0; background: none; }
  .menu a { border: 0; padding: 6px 0; font-size: 14px; }
  .menu .btn { margin: 0 0 0 6px; width: auto; padding: 11px 18px; min-height: 40px; }
  .nav-toggle { display: none; }
  .hero { padding: 88px 0 96px; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: start; }
  /* Alineada a dalt (no al centre): així la imatge no es mou quan arriba la font i canvia l'alçada del text (CLS) */
  .hero-grid > div + div { margin-top: 40px; }
  .problem-text { grid-template-columns: 1fr 1fr; align-items: center; }
  .features { grid-template-columns: repeat(3, 1fr); }
  .mock-grid.two { grid-template-columns: 1.1fr .9fr; }
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
.field label.check { display: flex; font-weight: 400; margin: 0; }

/* Pàgines legals */
.legal { padding: 56px 0 88px; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(28px, 5vw, 40px); margin-bottom: 8px; }
.legal .updated { color: var(--muted); font-size: 14px; margin-bottom: 32px; }
.legal h2 { font-size: 20px; max-width: none; margin: 36px 0 10px; }
.legal p, .legal li { max-width: 70ch; }
.legal ul { list-style: disc; padding-left: 22px; margin-bottom: 1em; }
.legal li { padding: 2px 0; }
.legal table { border-collapse: collapse; width: 100%; margin: 12px 0 20px; font-size: 15px; }
.legal th, .legal td { text-align: left; border: 1px solid var(--line); padding: 10px 12px; vertical-align: top; }
.legal th { background: var(--bg2); font-weight: 600; }
.pend { background: #FFF1B8; color: #5C3D0B; padding: 1px 6px; border-radius: 4px; font-weight: 600; }
.legal-top { border-bottom: 1px solid var(--line); }
.back { display: inline-block; margin-bottom: 24px; font-size: 14px; }

/* Tauleta i ordinador: peces noves */
@media (min-width: 720px) {
  .roadmap { grid-template-columns: repeat(3, 1fr); }
  .shots { margin: 0; padding-left: 4px; padding-right: 4px; }
  .shot { flex-basis: 260px; }
}
