/* RESET BÀSIC */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  color: #111827;
  background-color: #f9fafb;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position: static;
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  background: #111827;
  color: #fff;
  z-index: 50;
}

/* PALETA I UTILITATS */
:root {
  --color-bg: #f9fafb;
  --color-surface: #ffffff;
  --color-primary: #2563eb;
  --color-primary-soft: #dbeafe;
  --color-secondary: #10b981;
  --color-text-main: #111827;
  --color-text-muted: #6b7280;
  --color-border: #e5e7eb;
  --radius-base: 0.75rem;
  --shadow-soft: 0 10px 25px rgba(15, 23, 42, 0.06);
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 3.5rem 0;
}

.section-header {
  margin-bottom: 2rem;
  text-align: left;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-text-main);
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  max-width: 32rem;
}

/* CAPÇALERA / HERO */
header {
  background: radial-gradient(circle at top left, #dbeafe, #eff6ff 55%, #f9fafb 100%);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0 0.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: #1d4ed8;
}

.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #2563eb, #10b981);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.9rem;
  box-shadow: var(--shadow-soft);
}

.logo-mark-small {
  width: 22px;
  height: 22px;
  font-size: 0.8rem;
}

.nav-links {
  display: none;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.nav-links a {
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: width 0.2s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.hero {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding: 2.5rem 0 3.5rem;
}

.hero-copy {
  max-width: 32rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background-color: #e0f2fe;
  color: #0369a1;
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: 0.85rem;
}

.hero-title {
  font-size: 1.85rem;
  line-height: 1.2;
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: var(--color-text-main);
}

.hero-subtitle {
  font-size: 0.98rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.btn-primary,
.btn-secondary {
  border-radius: 999px;
  padding: 0.7rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease,
    border-color 0.15s ease, transform 0.08s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.btn-primary {
  background-color: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  background-color: #1d4ed8;
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: #e5e7eb;
  color: #111827;
}

.btn-secondary:hover {
  background-color: #d1d5db;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.hero-note {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.hero-visual {
  background-color: var(--color-surface);
  border-radius: 1.5rem;
  padding: 1rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-border);
  display: flex;
  justify-content: center;
}

.phone {
  width: 260px;
  max-width: 100%;
  border-radius: 1.25rem;
  background: linear-gradient(145deg, #111827, #020617);
  padding: 0.5rem;
  color: #e5e7eb;
  position: relative;
  overflow: hidden;
}

.phone-inner {
  background: #020617;
  border-radius: 1rem;
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.phone-status {
  display: flex;
  justify-content: space-between;
  font-size: 0.6rem;
  color: #9ca3af;
}

.phone-status-bottom {
  justify-content: flex-end;
  font-size: 0.62rem;
}

.phone-header {
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.badge-local {
  padding: 0.1rem 0.35rem;
  border-radius: 999px;
  background-color: rgba(34, 197, 94, 0.16);
  color: #bbf7d0;
  font-size: 0.6rem;
}

.phone-job-card {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.4), rgba(59, 130, 246, 0.1));
  border-radius: 0.85rem;
  padding: 0.6rem;
  font-size: 0.7rem;
}

.phone-job-title {
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.phone-job-meta {
  font-size: 0.65rem;
  color: #e5e7eb;
  opacity: 0.9;
}

.phone-professionals {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.4rem;
}

.phone-pro-card {
  background: rgba(15, 23, 42, 0.85);
  border-radius: 0.7rem;
  padding: 0.45rem 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.65rem;
}

.phone-pro-left {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.avatar {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #38bdf8, #4ade80);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 600;
}

.phone-pro-meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.phone-tag {
  font-size: 0.55rem;
  color: #9ca3af;
}

.phone-price {
  font-weight: 600;
  font-size: 0.7rem;
}

/* SECCIÓ "QUÈ ÉS" */
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.pill {
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  background-color: var(--color-primary-soft);
  color: #1d4ed8;
  font-weight: 500;
}

.info-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.info-card {
  background-color: var(--color-surface);
  border-radius: var(--radius-base);
  padding: 1rem;
  border: 1px solid var(--color-border);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.info-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-primary-soft);
  color: var(--color-primary);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.info-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.info-card-text {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* SECCIÓ "COM FUNCIONA" */
.tabs {
  display: inline-flex;
  background-color: #e5e7eb;
  padding: 0.25rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.tab-button {
  border: none;
  background: transparent;
  padding: 0.45rem 0.95rem;
  font-size: 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  color: #4b5563;
  font-weight: 500;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.tab-button.active {
  background-color: #ffffff;
  color: #111827;
  box-shadow: 0 2px 6px rgba(148, 163, 184, 0.3);
}

.steps-wrapper {
  background-color: var(--color-surface);
  border-radius: var(--radius-base);
  padding: 1.1rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
}

/* IMPORTANTE: Forzar que hidden funcione */
.steps-wrapper [hidden] {
  display: none !important;
}

.steps {
  display: grid;
  gap: 0.75rem;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}

.step-icon {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background-color: var(--color-primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--color-primary);
  flex-shrink: 0;
}

.step-content-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.step-content-text {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

/* SECCIÓ "PER QUÈ" */
.why-grid {
  display: grid;
  gap: 1.25rem;
}

.why-cards {
  display: grid;
  gap: 0.9rem;
}

.why-card {
  background-color: var(--color-surface);
  border-radius: var(--radius-base);
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--color-border);
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.why-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb, #10b981);
  margin-top: 0.3rem;
  flex-shrink: 0;
}

.why-card-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.why-card-text {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.compare {
  background-color: #e5e7eb;
  border-radius: var(--radius-base);
  padding: 1rem;
  font-size: 0.8rem;
}

.compare-columns {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.compare-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.compare-list {
  list-style: none;
  padding-left: 0;
}

.compare-list li {
  margin-bottom: 0.2rem;
}

.compare-block {
  margin-top: 0.75rem;
}

/* SECCIÓ "DEMO" */
.mockups-grid {
  display: grid;
  gap: 1rem;
}

.mockup-card {
  background-color: var(--color-surface);
  border-radius: var(--radius-base);
  padding: 1rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
}

.mockup-placeholder {
  height: 180px;
  border-radius: 1rem;
  background: repeating-linear-gradient(
    135deg,
    #e5e7eb,
    #e5e7eb 8px,
    #f9fafb 8px,
    #f9fafb 16px
  );
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 0.8rem;
  margin-bottom: 0.7rem;
}

.mockup-caption {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* SECCIÓ "LLISTA D’ESPERA" */
.waitlist {
  background: radial-gradient(circle at top, #dbeafe, #eff6ff 45%, #f9fafb 100%);
}

.waitlist-inner {
  background-color: rgba(255, 255, 255, 0.92);
  border-radius: 1.25rem;
  padding: 1.5rem 1.25rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.waitlist-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.waitlist-text {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.form-group {
  margin-bottom: 0.9rem;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
}

.form-input {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border-radius: 0.6rem;
  border: 1px solid var(--color-border);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  background-color: #f9fafb;
}

.form-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.35);
  background-color: #ffffff;
}

.role-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.82rem;
}

.role-option {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.waitlist-footer {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-top: 0.5rem;
}

.success-message {
  margin-top: 0.75rem;
  font-size: 0.82rem;
  color: #15803d;
  display: none;
}

.error-message {
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: #b91c1c;
  display: none;
}

/* PEU DE PÀGINA */
footer {
  border-top: 1px solid #e5e7eb;
  padding: 1.5rem 0;
  background-color: #f3f4f6;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.footer-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: #111827;
}

.footer-desc {
  margin-top: 0.35rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: center;
}

.footer-pill {
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background-color: #d1fae5;
  color: #047857;
  font-weight: 500;
  font-size: 0.72rem;
}

/* RESPONSIVE */
@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }

  .hero {
    flex-direction: row;
    align-items: center;
  }

  .hero-copy {
    flex: 1;
  }

  .hero-visual {
    flex: 1;
  }

  .info-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .why-grid {
    grid-template-columns: 1.3fr 1fr;
  }

  .mockups-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .waitlist-inner {
    padding: 2rem 2rem;
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 2.3rem;
  }
}
