/* Web pública d'INUbook. Colors de marca: blau marí, ambre i crema (vegeu brand/logo). */
:root {
  --navy: #1e2a3a;
  --navy-2: #2b3a4f;
  --navy-soft: #e4e8ee;
  --amber: #e8a33d;
  --amber-dark: #c9862a;
  --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: 24px;
  margin-right: auto;
}
.nav a {
  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; }
.is-offline body > :not(.offline) { display: none !important; }
.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; }
[data-offline='building'] .offline-soon,
[data-offline='soon'] .offline-building { display: none; }

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