/* Pasadato — brand tokens from app theme */
:root {
  --yellow: #ffd400;
  --blue: #2f6bff;
  --navy: #0b1b4d;
  --surface: #f4f6fa;
  --white: #ffffff;
  --mid: #9aa8c7;
  --dark-gray: #5b6b8c;
  --light-blue: #eaf1ff;
  --radius: 20px;
  --font: "Nunito", system-ui, sans-serif;
  --max: 1120px;
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--navy);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  font-family: inherit;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* —— Logo —— */
.logo {
  display: inline-flex;
  align-items: center;
  font-family: var(--font);
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1;
}

.logo .pasa {
  color: var(--blue);
}

.logo .dato {
  color: var(--navy);
}

.logo .dot {
  width: 0.42em;
  height: 0.42em;
  margin-left: 0.12em;
  border-radius: 999px;
  background: var(--yellow);
  transform: translateY(-0.18em);
}

.logo--lg {
  font-size: clamp(2.75rem, 8vw, 4.5rem);
}

.logo--md {
  font-size: 1.65rem;
}

.logo--sm {
  font-size: 1.6rem;
}

.logo--on-dark .pasa {
  color: var(--white);
}

.logo--on-dark .dato {
  color: var(--yellow);
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(11, 27, 77, 0.06);
}

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--dark-gray);
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--blue);
}

.nav a.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--navy) !important;
  font-weight: 800;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav a.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(255, 212, 0, 0.35);
  color: var(--navy);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* —— Buttons / store badges —— */
.store-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 1.1rem;
  border-radius: 12px;
  background: var(--navy);
  color: var(--white);
  min-height: 52px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.store-badge:hover {
  transform: translateY(-2px);
  background: #152a63;
}

.store-badge--light {
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 4px 16px rgba(11, 27, 77, 0.12);
}

.store-badge--light:hover {
  background: var(--surface);
}

.store-badge svg {
  flex-shrink: 0;
}

.store-badge__meta {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-align: left;
}

.store-badge__meta small {
  font-size: 0.65rem;
  font-weight: 600;
  opacity: 0.75;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.store-badge__meta strong {
  font-size: 1rem;
  font-weight: 800;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 85% 20%, rgba(255, 212, 0, 0.28), transparent 55%),
    radial-gradient(ellipse 70% 50% at 10% 80%, rgba(47, 107, 255, 0.18), transparent 50%),
    linear-gradient(165deg, #f8faff 0%, var(--surface) 45%, #e8efff 100%);
}

.hero__pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(47, 107, 255, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
  padding: 3.5rem 0 4rem;
}

.hero__copy {
  max-width: 34rem;
}

.hero__promise {
  margin: 1.25rem 0 0.75rem;
  font-size: clamp(1.5rem, 3.2vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--navy);
}

.hero__support {
  margin: 0 0 1.75rem;
  font-size: 1.125rem;
  color: var(--dark-gray);
  max-width: 28rem;
}

.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 420px;
}

.phone {
  width: min(280px, 72vw);
  aspect-ratio: 9 / 19.2;
  border-radius: 36px;
  background: #1a2748;
  padding: 10px;
  box-shadow:
    0 40px 80px rgba(11, 27, 77, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 2;
  animation: phone-float 6s ease-in-out infinite;
}

.phone__screen {
  height: 100%;
  border-radius: 28px;
  background: var(--surface);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  font-family: var(--font);
}

/* Header chrome — matches HomeHeader */
.phone__chrome {
  padding: 0.7rem 0.75rem 0.35rem;
  background: var(--surface);
  flex-shrink: 0;
}

.phone__notch {
  width: 38%;
  height: 5px;
  margin: 0 auto 0.65rem;
  border-radius: 999px;
  background: rgba(11, 27, 77, 0.12);
}

.phone__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1;
  margin-bottom: 0.65rem;
}

.phone__logo .pasa {
  color: var(--blue);
}

.phone__logo .dato {
  color: var(--navy);
}

.phone__logo .dot {
  width: 0.42em;
  height: 0.42em;
  margin-left: 0.12em;
  border-radius: 999px;
  background: var(--yellow);
  transform: translateY(-0.18em);
}

.phone__search {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 34px;
  border-radius: 999px;
  background: var(--white);
  padding: 0 0.75rem;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--mid);
  box-shadow: 0 3px 10px rgba(11, 27, 77, 0.1);
}

.phone__search svg {
  color: var(--dark-gray);
  flex-shrink: 0;
}

/* White sheet — matches SurfaceBody / HomeBody */
.phone__sheet {
  flex: 1;
  min-height: 0;
  background: var(--white);
  border-radius: 14px 14px 0 0;
  margin-top: 0.45rem;
  padding: 0.7rem 0.75rem 3.4rem;
  overflow: hidden;
  /* Extra rows peek under the fold like the real scrollable Home */
}

.phone__section-title {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--navy);
}

.phone__chips {
  display: flex;
  gap: 0.45rem;
  overflow: hidden;
  margin-bottom: 1rem;
}

.phone__chip {
  flex: 0 0 58px;
  width: 58px;
  height: 62px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  padding: 0.35rem 0.2rem;
}

.phone__chip-badge {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
}

.phone__chip-name {
  font-size: 0.48rem;
  font-weight: 600;
  color: var(--navy);
  text-align: center;
  line-height: 1.15;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 2px;
}

.phone__chip--plomeria {
  background: #d6e4ff;
}

.phone__chip--plomeria .phone__chip-badge {
  color: #2f6bff;
}

.phone__chip--electr {
  background: #ffe999;
}

.phone__chip--electr .phone__chip-badge {
  color: #e6b800;
}

.phone__chip--pintura {
  background: #ffd0e1;
}

.phone__chip--pintura .phone__chip-badge {
  color: #ff5c8a;
}

.phone__chip--carpint {
  background: #ffe0a8;
}

.phone__chip--carpint .phone__chip-badge {
  color: #f59e0b;
}

.phone__category-block {
  margin-bottom: 0.85rem;
}

.phone__category-title {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  align-items: flex-start;
  gap: 0.2rem;
}

.phone__accent {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.phone__accent--plomeria {
  background: #2f6bff;
}

.phone__accent--electr {
  background: #e6b800;
}

.phone__accent--pintura {
  background: #ff5c8a;
}

.phone__cards {
  display: flex;
  gap: 0.45rem;
  overflow: hidden;
}

.phone__card {
  flex: 0 0 96px;
  width: 96px;
  display: flex;
  flex-direction: column;
}

.phone__photo {
  width: 96px;
  height: 96px;
  border-radius: 12px;
  border: 1px solid #e8eef9;
  background: #e8eef9;
  margin-bottom: 0.35rem;
  object-fit: cover;
  display: block;
}

.phone__card strong {
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 1px;
}

.phone__occ {
  font-size: 0.52rem;
  font-weight: 500;
  color: var(--dark-gray);
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 0.1rem;
  padding: 0 1px;
  min-height: 1.55em;
}

.phone__recs {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  margin-top: 0.2rem;
  font-size: 0.55rem;
  font-weight: 700;
  color: var(--blue);
  padding: 0 1px;
}

/* Floating tab bar — matches FloatingTabBar */
.phone__tabs {
  position: absolute;
  left: 50%;
  bottom: 0.65rem;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.15rem;
  height: 40px;
  padding: 0 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 6px 20px rgba(11, 27, 77, 0.14);
  backdrop-filter: blur(8px);
}

.phone__tab {
  width: 32px;
  height: 28px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mid);
}

.phone__tab--active {
  background: var(--yellow);
  color: var(--navy);
}

.phone__glow {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 212, 0, 0.45), transparent 70%);
  z-index: 1;
  filter: blur(8px);
}

@keyframes phone-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: reveal-in 0.8s ease forwards;
}

.reveal-delay-1 {
  animation-delay: 0.12s;
}

.reveal-delay-2 {
  animation-delay: 0.24s;
}

.reveal-delay-3 {
  animation-delay: 0.36s;
}

@keyframes reveal-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* —— Sections —— */
.section {
  padding: 5rem 0;
}

.section--surface {
  background: var(--surface);
}

.section--navy {
  background: var(--navy);
  color: var(--white);
}

.section__eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.75rem;
}

.section--navy .section__eyebrow {
  color: var(--yellow);
}

.section__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  max-width: 22ch;
}

.section__lead {
  margin: 0;
  font-size: 1.1rem;
  color: var(--dark-gray);
  max-width: 40rem;
}

.section--navy .section__lead {
  color: rgba(255, 255, 255, 0.75);
}

.section__head {
  margin-bottom: 2.5rem;
}

/* Problem */
.problem {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.problem__visual {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 30% 40%, rgba(47, 107, 255, 0.2), transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(255, 212, 0, 0.25), transparent 45%),
    linear-gradient(135deg, #dbe6ff, #fff8d6);
  position: relative;
  overflow: hidden;
}

.problem__bubble {
  position: absolute;
  padding: 0.85rem 1.1rem;
  border-radius: 16px 16px 16px 4px;
  background: var(--white);
  box-shadow: 0 12px 32px rgba(11, 27, 77, 0.12);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy);
  max-width: 220px;
  line-height: 1.35;
}

.problem__bubble--1 {
  top: 18%;
  left: 10%;
  animation: bubble-in 0.7s ease 0.2s both;
}

.problem__bubble--2 {
  bottom: 14%;
  right: 8%;
  max-width: 260px;
  border-radius: 16px 16px 4px 16px;
  animation: bubble-in 0.7s ease 0.45s both;
}

@keyframes bubble-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  counter-reset: step;
}

.step {
  counter-increment: step;
  padding-top: 0.5rem;
}

.step::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--navy);
  font-weight: 800;
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
}

.step h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 800;
}

.step p {
  margin: 0;
  color: var(--dark-gray);
}

.step[data-visible] {
  animation: reveal-in 0.7s ease both;
}

.step:nth-child(2)[data-visible] {
  animation-delay: 0.12s;
}

.step:nth-child(3)[data-visible] {
  animation-delay: 0.24s;
}

/* Benefits */
.benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.benefit h3 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  font-weight: 800;
}

.benefit p {
  margin: 0;
  color: var(--dark-gray);
}

.benefit__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  background: var(--light-blue);
  color: var(--blue);
}

.benefit:nth-child(2) .benefit__icon {
  background: #fff6cc;
  color: #b88600;
}

.benefit:nth-child(3) .benefit__icon {
  background: #e6f8ee;
  color: #16a34a;
}

/* Pros */
.pros {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.pros__points {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.pros__points li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.pros__points li::before {
  content: "";
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  margin-top: 0.45rem;
  border-radius: 999px;
  background: var(--yellow);
}

.pros__panel {
  border-radius: var(--radius);
  padding: 2rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.pros__panel p {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--white);
}

/* CTA band */
.cta-band {
  text-align: center;
  padding: 5rem 0;
  background:
    radial-gradient(ellipse 60% 80% at 50% 0%, rgba(255, 212, 0, 0.22), transparent 60%),
    var(--surface);
}

.cta-band .section__title {
  margin-inline: auto;
  max-width: 18ch;
}

.cta-band .section__lead {
  margin: 0.75rem auto 1.75rem;
}

.cta-band .store-links {
  justify-content: center;
}

/* —— Footer —— */
.site-footer {
  padding: 2.5rem 0;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.7);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: var(--yellow);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
}

.site-footer__meta {
  font-size: 0.9rem;
}

/* —— Legal pages —— */
.legal-header {
  padding: 2.5rem 0 1.5rem;
  background: var(--surface);
  border-bottom: 1px solid rgba(11, 27, 77, 0.06);
}

.legal-header .logo {
  margin-bottom: 1.5rem;
}

.legal-header h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.legal-header .updated {
  margin: 0;
  color: var(--dark-gray);
  font-size: 0.95rem;
}

.legal-body {
  padding: 2.5rem 0 4rem;
}

.legal-content {
  max-width: 46rem;
}

.legal-content h2 {
  margin: 2.25rem 0 0.75rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--navy);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 800;
}

.legal-content p,
.legal-content li {
  color: var(--dark-gray);
  font-size: 0.98rem;
}

.legal-content ul {
  padding-left: 1.25rem;
}

.legal-content li {
  margin-bottom: 0.4rem;
}

.legal-content a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.95rem;
}

.legal-content th,
.legal-content td {
  border: 1px solid rgba(11, 27, 77, 0.12);
  padding: 0.65rem 0.85rem;
  text-align: left;
}

.legal-content th {
  background: var(--surface);
  color: var(--navy);
  font-weight: 800;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 1.25rem;
}

/* —— Responsive —— */
@media (max-width: 900px) {
  .hero__grid,
  .problem,
  .pros {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    min-height: 360px;
    order: -1;
  }

  .hero {
    min-height: auto;
  }

  .hero__grid {
    padding: 2rem 0 3rem;
  }

  .steps,
  .benefits {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .phone {
    width: min(240px, 58vw);
  }
}

@media (max-width: 720px) {
  .menu-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1.25rem 1.25rem;
    background: var(--white);
    border-bottom: 1px solid rgba(11, 27, 77, 0.08);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(11, 27, 77, 0.06);
  }

  .nav-cta {
    margin-top: 0.75rem;
    text-align: center;
  }

  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

  .reveal,
  .phone,
  .problem__bubble,
  .step[data-visible] {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
}
