/* Web pública de SuiteCan. Colors de marca: blau marí, ambre i crema (vegeu brand/logo). */
:root {
  --navy: #1e2a3a;
  --navy-2: #2b3a4f;
  --navy-soft: #e4e8ee;
  --amber: #e8a33d;
  --amber-dark: #8f5c17; /* text ambre sobre fons clar: contrast ≥ 4,5:1 (WCAG AA) sobre blanc, crema i ambre suau */
  --amber-soft: #fbebd3;
  --cream: #f6efe4;
  --cream-2: #efe5d5;
  --card: #ffffff;
  --text: #1e2a3a;
  --muted: #5e6878;
  --border: #e6ded0;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 1px 2px rgba(30, 42, 58, 0.06), 0 8px 24px rgba(30, 42, 58, 0.08);
  --shadow-lg: 0 2px 4px rgba(30, 42, 58, 0.06), 0 24px 48px rgba(30, 42, 58, 0.16);
  --font: ui-sans-serif, 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: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}
h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 800;
}
h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 800;
}
h3 {
  font-size: 1.15rem;
  font-weight: 700;
}
p {
  margin: 0 0 1em;
}
a {
  color: inherit;
}

.wrap {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}
.narrow {
  max-width: 780px;
}
.center {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
}
.lead {
  font-size: 1.15rem;
  color: var(--muted);
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 0.9rem;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 100;
  background: var(--card);
  padding: 8px 12px;
  border-radius: 8px;
}

/* Icones */
.icon {
  width: 24px;
  height: 24px;
  flex: none;
}
.icon-sm {
  width: 18px;
  height: 18px;
}
.icon-xl {
  width: 40px;
  height: 40px;
}

/* Botons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 2px solid transparent;
  font: inherit;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}
.btn:active {
  transform: translateY(1px);
}
.btn:focus-visible,
a:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}
.btn-primary {
  background: var(--navy);
  color: #fff;
}
.btn-primary:hover {
  background: var(--navy-2);
}
.btn-accent {
  background: var(--amber);
  color: var(--navy);
}
.btn-accent:hover {
  background: #f0b358;
}
.btn-outline {
  border-color: var(--navy);
  color: var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: #fff;
}
.btn-ghost {
  color: var(--navy);
}
.btn-ghost:hover {
  background: var(--cream-2);
}
.btn-sm {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.92rem;
}
.btn-lg {
  min-height: 54px;
  padding: 0 28px;
  font-size: 1.05rem;
}

/* Capçalera */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 239, 228, 0.88);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
}
.brand {
  display: inline-flex;
  flex: none;
}
.brand .logo {
  height: 44px;
  width: auto;
}
.nav {
  display: flex;
  gap: 20px;
  margin-right: auto;
}
.nav a {
  white-space: nowrap;
  text-decoration: none;
  font-weight: 600;
  color: var(--muted);
}
.nav a:hover {
  color: var(--navy);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.lang {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
}
.lang .icon {
  position: absolute;
  left: 10px;
  pointer-events: none;
}
.lang select {
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  color: inherit;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  min-height: 40px;
  padding: 0 14px 0 34px;
  cursor: pointer;
}
.lang select:hover {
  border-color: var(--muted);
}

/* Portada */
.hero {
  padding: 72px 0 88px;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.badge {
  display: inline-block;
  background: var(--amber-soft);
  color: #8a5a14;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 16px;
}

/* Il·lustració de l'app */
.mock {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 340px;
}
.mock::before {
  content: '';
  position: absolute;
  inset: 8% -18% -6% -14%;
  background: radial-gradient(closest-side, rgba(232, 163, 61, 0.35), transparent);
  z-index: -1;
}
.mock-phone {
  background: var(--navy);
  border-radius: 36px;
  padding: 18px 14px 20px;
  box-shadow: var(--shadow-lg);
  transform: rotate(2deg);
}
.mock-top {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  padding: 2px 6px 14px;
}
.mock-top b {
  margin-right: auto;
}
.mock-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--amber);
}
.mock-pill {
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 2px 10px;
}
.mock-card {
  background: var(--cream);
  border-radius: 20px;
  padding: 14px;
  margin-top: 10px;
}
.mock-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 8px;
}
.bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 64px;
}
.bars span {
  flex: 1;
  height: var(--h);
  background: var(--navy-soft);
  border-radius: 4px;
}
.bars span.on {
  background: var(--amber);
}
.dogs {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
}
.dogs li,
.mock-toast {
  display: flex;
  align-items: center;
  gap: 10px;
}
.dogs li {
  background: var(--card);
  border-radius: 12px;
  padding: 8px 10px;
  margin-bottom: 6px;
}
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.9rem;
  flex: none;
}
.a1 { background: var(--amber-soft); color: #8a5a14; }
.a2 { background: var(--navy-soft); color: var(--navy); }
.a3 { background: #e3efe6; color: #2f6b45; }
.a4 { background: var(--amber); color: var(--navy); }
.who {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  margin-right: auto;
  min-width: 0;
}
.who b {
  font-size: 0.9rem;
}
.who small {
  font-size: 0.75rem;
  color: var(--muted);
}
.tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
}
.mock-toast {
  position: absolute;
  left: -40px;
  bottom: 36px;
  width: 270px;
  background: var(--card);
  border-radius: 18px;
  padding: 12px;
  box-shadow: var(--shadow-lg);
  transform: rotate(-2deg);
}
.mock-accept {
  background: var(--navy);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 6px 10px;
}

/* Seccions */
.section {
  padding: 88px 0;
}
.section-alt {
  background: var(--cream-2);
}
.section-head {
  max-width: 680px;
  margin: 0 auto 48px;
  text-align: center;
}
.eyebrow {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber-dark);
  margin-bottom: 12px;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.feature p {
  color: var(--muted);
  margin: 0;
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--amber-soft);
  color: var(--navy);
  margin-bottom: 18px;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}
.step p {
  color: var(--muted);
  margin: 0;
}
.step-n {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--amber);
  font-weight: 800;
  margin-bottom: 16px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.checks {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.checks li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}
.checks .icon {
  color: var(--navy);
  background: var(--amber);
  border-radius: 50%;
  padding: 4px;
  width: 26px;
  height: 26px;
}
.panel {
  border-radius: var(--radius-lg);
  padding: 40px;
}
.panel-dark {
  background: var(--navy);
  color: #fff;
}
.panel-dark .icon-xl {
  color: var(--amber);
  margin-bottom: 20px;
}
.panel-dark .eyebrow {
  color: var(--amber);
}
.panel-dark h3 {
  font-size: 1.5rem;
}
.panel-dark p {
  color: #c9d0da;
  margin: 0;
}

.faq details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 56px 20px 24px;
  font-weight: 700;
  position: relative;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--amber-dark);
}
.faq details[open] summary::after {
  content: '−';
}
.faq details p {
  padding: 0 24px 20px;
  margin: 0;
  color: var(--muted);
}

.final {
  background: var(--navy);
  color: #fff;
  border-radius: 32px;
  padding: 64px 32px;
  text-align: center;
  background-image: radial-gradient(circle at 85% 15%, rgba(232, 163, 61, 0.28), transparent 45%);
}
.final p {
  color: #c9d0da;
  font-size: 1.1rem;
  margin-bottom: 28px;
}

/* Peu */
.site-footer {
  background: var(--navy);
  color: #c9d0da;
  padding: 48px 0;
  margin-top: 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}
.site-footer .logo {
  height: 52px;
  width: auto;
}
.site-footer p {
  margin: 8px 0 0;
}
.footer-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.site-footer .lang {
  color: #c9d0da;
}
.site-footer .lang select {
  border-color: rgba(255, 255, 255, 0.2);
}
.site-footer .lang select option {
  color: var(--text);
}

/* Pàgines simples (arrel i 404) */
.redirect .logo {
  height: 64px;
  width: auto;
}
.nf {
  max-width: 460px;
}
.nf + .nf {
  display: none;
}
.nf h1 {
  font-size: 1.8rem;
}

/* Responsive */
@media (max-width: 960px) {
  .nav {
    display: none;
  }
  .hero-inner,
  .split {
    grid-template-columns: 1fr;
  }
  .hero {
    padding-top: 48px;
  }
  .features,
  .steps {
    grid-template-columns: 1fr 1fr;
  }
  .mock {
    margin-top: 16px;
  }
}
@media (max-width: 640px) {
  body {
    font-size: 16px;
  }
  .wrap {
    padding: 0 16px;
  }
  .header-inner {
    gap: 8px;
    height: 64px;
  }
  .brand .logo {
    height: 36px;
  }
  .hide-sm,
  .site-header .lang {
    display: none;
  }
  .features,
  .steps {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 64px 0;
  }
  .cta-row .btn {
    width: 100%;
  }
  .mock {
    max-width: 290px;
  }
  .mock-toast {
    left: -12px;
    width: 250px;
  }
  .panel {
    padding: 28px;
  }
  .final {
    padding: 48px 20px;
  }
  .footer-side {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn {
    transition: none;
  }
}

/* ---- Web en construcció / properament (estat que es canvia des del panell) ---- */
.wait body { visibility: hidden; }
.offline { display: none; }
/* El bàner de galetes també es veu a la pantalla d'en construcció / properament. */
.is-offline body > :not(.offline):not(.cookie-bar) { display: none !important; }
.offline-cookies { font-size: 0.85rem; opacity: 0.7; }
.offline-cookies a { color: inherit; }
.is-offline .offline {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 32px 16px;
  text-align: center;
}
.offline .logo { width: 220px; height: auto; }
.offline h1 { margin: 0 0 8px; font-size: clamp(1.6rem, 5vw, 2.2rem); }
.offline p { margin: 0 auto; max-width: 32rem; opacity: 0.8; }
.offline .offline-tagline { margin: -4px auto 28px; font-size: 1.05rem; }
.offline .offline-contact { margin-top: 20px; }
.offline .offline-contact a { color: inherit; font-weight: 700; }
[data-offline='building'] .offline-soon,
[data-offline='soon'] .offline-building { display: none; }

.footer-mail { color: inherit; text-decoration: underline; }

/* Serveis */
.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.service {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  box-shadow: var(--shadow);
}
.service h3 {
  font-size: 1.05rem;
}
.service p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}
.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: var(--amber);
  margin-bottom: 16px;
}

/* El dia a dia (secció fosca) */
.section-dark {
  overflow: hidden;
  background: var(--navy);
  color: #fff;
}
.section-dark p {
  color: #c9d0da;
}
.section-dark .eyebrow {
  color: var(--amber);
}
.section-dark .checks .icon {
  color: var(--navy);
}
.mock-day .mock-phone {
  background: var(--navy-2);
  transform: rotate(-2deg);
}
.mock-day::before {
  background: radial-gradient(closest-side, rgba(232, 163, 61, 0.25), transparent);
}
.day-weather {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--amber-dark);
  margin-bottom: 10px;
}
.day-list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: grid;
  gap: 6px;
}
.day-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border-radius: 12px;
  padding: 8px 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}
.day-list .icon {
  color: var(--amber-dark);
}
.mock-start {
  display: block;
  text-align: center;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 999px;
  padding: 10px;
}
.panel-link {
  display: inline-block;
  margin-top: 16px;
  color: var(--amber);
  font-weight: 700;
  text-decoration: none;
}
.panel-link:hover {
  text-decoration: underline;
}

@media (max-width: 1100px) {
  .services {
    grid-template-columns: 1fr 1fr;
  }
  /* Amb els cinc enllaços del menú, a les pantalles mitjanes cal compactar la capçalera. */
  .nav {
    gap: 14px;
    font-size: 0.92rem;
  }
  .site-header .btn-ghost {
    display: none;
  }
}
@media (max-width: 960px) {
  .services {
    grid-template-columns: 1fr 1fr;
  }
  .service:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}
@media (max-width: 640px) {
  .services {
    grid-template-columns: 1fr;
  }
}

/* ---- Plans: targetes ---- */
.plan-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: stretch;
}
.plan-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 22px 22px;
  scroll-margin-top: 96px;
}
.plan-card h3 {
  font-size: 1.3rem;
  margin: 0 0 4px;
}
.plan-for {
  color: var(--muted);
  font-size: 0.92rem;
  min-height: 2.9em;
  margin: 0 0 12px;
}
.plan-price {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
}
.plan-price small {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  margin-left: 2px;
}
.plan-sub {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 4px 0 18px;
  min-height: 1.6em;
}
.plan-save {
  display: inline-block;
  background: var(--amber);
  color: var(--navy);
  font-weight: 800;
  font-size: 0.78rem;
  border-radius: 999px;
  padding: 1px 8px;
  margin-left: 4px;
}
.plan-list {
  list-style: none;
  margin: 0 0 22px;
  padding: 18px 0 0;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 9px;
  font-size: 0.92rem;
}
.plan-list li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.plan-list .icon {
  color: var(--amber-dark);
  margin-top: 2px;
}
.plan-actions {
  margin-top: auto;
  display: grid;
  gap: 8px;
}
.plan-card.featured {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.plan-card.featured .plan-for,
.plan-card.featured .plan-sub,
.plan-card.featured .plan-price small {
  color: #c9d0da;
}
.plan-card.featured .plan-list {
  border-color: rgba(255, 255, 255, 0.15);
}
.plan-card.featured .plan-list .icon {
  color: var(--amber);
}
.btn-ghost-light {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}
.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.1);
}
.plans-note {
  margin-top: 20px;
  text-align: center;
}
.plans-note a {
  color: var(--navy);
  font-weight: 700;
}
.plans-hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
}

/* ---- Plans: taula comparativa (pàgina /plans/) ---- */
.plans-wrap {
  /* relative: els textos .sr-only (absoluts) de les cel·les no surten de la caixa i no eixamplen la pàgina. */
  position: relative;
  overflow-x: auto;
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  -webkit-overflow-scrolling: touch;
}
.plans {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.plans th,
.plans td {
  padding: 14px 16px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.plans tbody tr:last-child th,
.plans tbody tr:last-child td {
  border-bottom: 0;
}
.plans tbody th {
  text-align: left;
  font-weight: 600;
}
.plans tbody th a {
  color: inherit;
  text-decoration: underline dotted var(--muted);
  text-underline-offset: 3px;
}
/* La primera columna queda fixa quan la taula es desplaça al mòbil. */
.plans tbody th,
.plans-corner {
  position: sticky;
  left: 0;
  background: var(--card);
  z-index: 1;
}
.plans thead th {
  padding-top: 22px;
}
.plans thead th > * {
  display: block;
}
.plan-name {
  font-size: 1.05rem;
  font-weight: 800;
}
.plan-mini {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
}
.plans thead th.featured {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius) var(--radius) 0 0;
}
.plans thead th.featured .plan-mini {
  color: #c9d0da;
}
.plans td.featured {
  background: var(--cream);
}
.plans td small {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
}
.plans .plans-group th {
  background: var(--cream-2);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 16px;
}
.plans .yes {
  color: var(--navy);
  background: var(--amber);
  border-radius: 50%;
  padding: 3px;
  width: 24px;
  height: 24px;
}
.plans .no {
  color: var(--muted);
  opacity: 0.45;
}
.soon {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--amber-soft);
  color: #8a5a14;
  border-radius: 999px;
  padding: 1px 8px;
  vertical-align: middle;
}
.plans-notes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 32px;
  margin-top: 20px;
}
.plans-notes p {
  margin: 0;
}
.plans-notes p:last-child {
  grid-column: 1 / -1;
}

/* ---- Plans: què vol dir cada funció ---- */
.explains {
  display: grid;
  gap: 12px;
}
.explain {
  display: flex;
  gap: 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  scroll-margin-top: 96px;
}
.explain .feature-icon {
  flex: none;
  margin: 0;
}
.explain h3 {
  margin-bottom: 4px;
}
.explain p {
  margin: 0;
  color: var(--muted);
}
.explain .explain-plans {
  margin-top: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--amber-dark);
}
.explain:target {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px var(--amber-soft);
}

@media (max-width: 1100px) {
  .plan-cards {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .plan-cards,
  .plans-notes {
    grid-template-columns: 1fr;
  }
  .plan-for,
  .plan-sub {
    min-height: 0;
  }
  .explain {
    flex-direction: column;
    gap: 12px;
  }
}

/* Documentació per a residències: targetes que són enllaços. */
.doc-card {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}
.doc-card:hover {
  border-color: var(--navy);
  transform: translateY(-2px);
}
.center-cta {
  text-align: center;
  margin-top: 28px;
}

/* ---- Beta (public/site.web == 'beta'): franja de dalt i textos alternatius ---- */
.beta-only {
  display: none !important;
}
.is-beta .beta-only {
  display: revert !important;
}
.is-beta .live-only {
  display: none !important;
}
.beta-bar {
  background: var(--amber);
  color: var(--navy);
  font-size: 0.9rem;
  line-height: 1.4;
  padding: 8px 0;
  text-align: center;
}
.beta-bar a {
  color: var(--navy);
  font-weight: 700;
}
.beta-note {
  max-width: 720px;
  margin: 24px auto 0;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: var(--amber-soft);
  color: #6b4510;
  font-weight: 600;
  text-align: center;
}

/* ---- Galetes: bàner i pàgina de política ---- */
.cookie-bar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 100;
  display: flex;
  justify-content: center;
}
.cookie-bar[hidden] {
  display: none;
}
.cookie-inner {
  max-width: 860px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px 24px;
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 16px 20px;
  font-size: 0.92rem;
  line-height: 1.5;
}
.cookie-inner p {
  margin: 0;
}
.cookie-inner a {
  color: var(--navy);
  font-weight: 700;
}
.cookie-actions {
  display: flex;
  gap: 8px;
  flex: none;
}
.legal h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
}
.legal h2 {
  font-size: 1.25rem;
  margin-top: 32px;
}
.legal .plans-wrap {
  margin: 24px 0 8px;
}
.cookies-table {
  min-width: 600px;
  font-size: 0.88rem;
}
.cookies-table th,
.cookies-table td,
.cookies-table tbody th {
  text-align: left;
  position: static;
}
.cookies-table td:first-child {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82rem;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .cookie-bar {
    left: 8px;
    right: 8px;
    bottom: 8px;
  }
  .cookie-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .cookie-actions .btn {
    flex: 1;
  }
}

/* ---- Pàgina privada de fundadores ---- */
.center-row {
  justify-content: center;
}
.founders-table {
  min-width: 560px;
}
.founders-table th,
.founders-table td {
  text-align: center;
}
.founders-table tbody th {
  text-align: left;
}
.founders-table .featured {
  background: var(--amber-soft);
  font-weight: 800;
}
.founders-table thead th.featured {
  background: var(--navy);
  color: #fff;
}
.founders-split {
  align-items: start;
}
.guide {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.guide-step {
  display: flex;
  gap: 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
}
.guide-step .step-n {
  flex: none;
  margin: 0;
}
.guide-step h3 {
  margin: 6px 0 10px;
}
.guide-step ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 6px;
}
.help-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 8px 24px;
}
.help-card p {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin: 0;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.help-card p:last-child {
  border-bottom: 0;
}
.help-card .icon {
  color: var(--amber-dark);
  margin-top: 2px;
}
.help-card a {
  color: var(--navy);
  font-weight: 700;
}
.founders-note {
  margin-top: 20px;
  text-align: center;
}
@media (max-width: 640px) {
  .guide-step {
    flex-direction: column;
    gap: 8px;
    padding: 18px;
  }
}

/* Etiqueta «Recomanat» del pla destacat (Pro). */
.plan-tag {
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--amber);
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.plans thead th .plan-tag {
  display: inline-block;
  width: fit-content;
  margin: 0 auto 6px;
}

/* ---- Formulari de contacte ---- */
.contact-form {
  display: grid;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: left;
}
.cf-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.cf-field {
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}
.cf-field input,
.cf-field textarea {
  font: inherit;
  font-weight: 400;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  min-height: 46px;
}
.cf-field textarea {
  resize: vertical;
}
.cf-field input:focus,
.cf-field textarea:focus {
  outline: 3px solid var(--amber-soft);
  border-color: var(--amber);
}
.cf-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.contact-form .btn {
  justify-self: start;
}
.cf-status {
  margin: 0;
  font-weight: 700;
}
.cf-status:empty {
  display: none;
}
.cf-status.is-ok {
  color: #24693f;
}
.cf-status.is-error {
  color: #b3261e;
}
.cf-privacy {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
}
.cf-privacy a {
  color: inherit;
}
.offline .contact-form {
  max-width: 560px;
  width: 100%;
  margin: 8px auto 0;
}
@media (max-width: 640px) {
  .cf-grid {
    grid-template-columns: 1fr;
  }
  .contact-form {
    padding: 18px;
  }
  .contact-form .btn {
    justify-self: stretch;
  }
}

/* ---- Galeria de captures reals de l'app ---- */
.gallery {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  align-items: start;
}
.shot {
  margin: 0;
  display: grid;
  gap: 12px;
  justify-items: center;
  text-align: center;
}
.shot-phone {
  width: 100%;
  max-width: 230px;
  border: 7px solid var(--navy);
  border-radius: 30px;
  overflow: hidden;
  background: var(--navy);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 554 / 1200;
}
.shot-phone img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.shot figcaption {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  max-width: 230px;
}
.gallery-note {
  margin-top: 20px;
  text-align: center;
}
@media (max-width: 1100px) {
  .gallery {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 8px 4px 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .shot {
    flex: 0 0 auto;
    width: min(62vw, 240px);
    scroll-snap-align: center;
  }
}

/* ---- Presentació de la galeria (marcs de mòbil i fons) ---- */
#app {
  position: relative;
  background:
    radial-gradient(720px 360px at 12% 0%, rgba(232, 163, 61, 0.22), transparent 70%),
    radial-gradient(640px 320px at 92% 100%, rgba(30, 42, 58, 0.1), transparent 70%),
    linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%);
}
#app .gallery {
  padding-top: 18px;
  padding-bottom: 28px;
}
.shot-phone {
  position: relative;
  border: 0;
  padding: 8px;
  border-radius: 38px;
  background: linear-gradient(145deg, #34455c 0%, var(--navy) 45%, #0f1722 100%);
  box-shadow:
    0 0 0 1.5px rgba(255, 255, 255, 0.08) inset,
    0 2px 4px rgba(30, 42, 58, 0.18),
    0 28px 50px -12px rgba(30, 42, 58, 0.4);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.shot-phone::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 26%;
  height: 7px;
  border-radius: 999px;
  background: #0b121c;
  z-index: 2;
}
.shot-phone img {
  border-radius: 30px;
}
.shot:nth-child(even) {
  margin-top: 28px;
}
.shot:hover .shot-phone {
  transform: translateY(-6px);
  box-shadow:
    0 0 0 1.5px rgba(255, 255, 255, 0.1) inset,
    0 2px 4px rgba(30, 42, 58, 0.18),
    0 36px 60px -12px rgba(30, 42, 58, 0.45);
}
.shot figcaption {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(30, 42, 58, 0.06);
}
@media (max-width: 1100px) {
  .shot:nth-child(even) {
    margin-top: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .shot-phone {
    transition: none;
  }
  .shot:hover .shot-phone {
    transform: none;
  }
}

/* ---- Seguretat i protecció de dades ---- */
.trust {
  background:
    radial-gradient(640px 300px at 50% 0%, rgba(232, 163, 61, 0.14), transparent 70%),
    var(--cream);
}
.trust-grid {
  grid-template-columns: repeat(3, 1fr);
}
.trust-card .feature-icon {
  background: var(--navy);
  color: var(--amber);
}
@media (max-width: 900px) {
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .trust-grid {
    grid-template-columns: 1fr;
  }
}
