:root {
  --orange: #FF6A1A;
  --orange-dark: #E8500A;
  --orange-light: #FF8A42;
  --red: #D91614;
  --red-dark: #B01110;
  --gold: #F7A404;
  --ink: #221306;
  --sub: #6B5A4E;
  --bg: #FFFBF7;
  --card: #FFF3E8;
  --hairline: #F0DFCF;
  --white: #ffffff;
  --shadow: 0 20px 50px -20px rgba(217, 22, 20, 0.35);
  --radius-lg: 28px;
  --radius-md: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Poppins', 'Inter', sans-serif;
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

p { margin: 0; }
a { text-decoration: none; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
img { display: block; max-width: 100%; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(217,22,20,0.6);
}
.btn--primary:hover { background: var(--red-dark); }

.btn--sm { padding: 10px 20px; font-size: 14px; }

.btn--white {
  background: #fff;
  color: var(--red);
  box-shadow: 0 14px 30px -12px rgba(0,0,0,0.35);
}
.btn--white svg { color: var(--red); }

.btn--ghost-light {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.55);
}
.btn--ghost-light:hover { background: rgba(255,255,255,0.12); }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,251,247,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 19px;
  color: var(--ink);
}
.nav__logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
}
.nav__links {
  display: flex;
  gap: 34px;
}
.nav__links a {
  font-weight: 500;
  font-size: 15px;
  color: var(--sub);
  transition: color .15s;
}
.nav__links a:hover { color: var(--red); }
.nav__cta { display: flex; align-items: center; gap: 20px; }
.nav__login {
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
}
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav__burger span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(120% 140% at 15% 10%, var(--orange-light) 0%, var(--orange) 45%, var(--red) 100%);
  padding: 90px 0 60px;
}
.hero__waves {
  position: absolute;
  inset: 0;
  bottom: auto;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.hero__waves svg {
  position: absolute;
  width: 100%;
  height: 260px;
  bottom: -1px;
  left: 0;
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}
.pill-badge {
  display: inline-block;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero h1 {
  color: #fff;
  font-size: 52px;
  font-weight: 800;
  max-width: 620px;
}
.hero h1 span { color: #FFE1C2; }
.hero__sub {
  color: rgba(255,255,255,0.92);
  font-size: 18px;
  max-width: 520px;
  margin-top: 22px;
}
.hero__actions {
  display: flex;
  gap: 16px;
  margin-top: 34px;
  flex-wrap: wrap;
}
.hero__stats {
  display: flex;
  gap: 40px;
  margin-top: 54px;
}
.hero__stats div { display: flex; flex-direction: column; }
.hero__stats strong { color: #fff; font-family: 'Poppins',sans-serif; font-size: 24px; font-weight: 700; }
.hero__stats span { color: rgba(255,255,255,0.8); font-size: 13px; margin-top: 2px; }

.hero__art {
  position: relative;
  height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Phone mockup */
.phone {
  background: #0d0d0d;
  border-radius: 46px;
  padding: 12px;
  box-shadow: 0 40px 70px -25px rgba(0,0,0,0.55);
  position: relative;
}
.phone::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 18px;
  background: #0d0d0d;
  border-radius: 12px;
  z-index: 2;
}
.phone img {
  border-radius: 34px;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.phone--lg { width: 300px; height: 610px; }
.phone--sm {
  width: 190px;
  height: 390px;
  position: absolute;
  right: -10px;
  bottom: 10px;
  border: 5px solid #fff;
}
.phone--md { width: 280px; height: 570px; }

.float-badge {
  position: absolute;
  background: #fff;
  padding: 10px 16px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  box-shadow: 0 14px 30px -10px rgba(0,0,0,0.3);
}
.float-badge--1 { top: 8px; left: -36px; }
.float-badge--2 { bottom: 30px; left: -44px; }

/* ---------- Strip ---------- */
.strip { padding: 34px 0; background: var(--white); border-bottom: 1px solid var(--hairline); }
.strip__inner {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
}
.strip__inner > span { color: var(--sub); font-size: 14px; font-weight: 500; }
.strip__cities { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; }
.strip__cities span {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--ink);
  font-size: 15px;
  opacity: 0.75;
}

/* ---------- Feature sections ---------- */
.feature { padding: 110px 0; background: var(--bg); overflow: hidden; }
.feature--tint { background: var(--card); }
.feature--dark {
  background: linear-gradient(160deg, var(--orange) 0%, var(--red) 100%);
}
.feature--dark .feature__text .eyebrow { color: #FFE1C2; }
.feature--dark .feature__text h2, .feature--dark .feature__text p { color: #fff; }
.feature--dark .feature__text .check-list li { color: rgba(255,255,255,0.92); }
.feature--dark .feature__text .check-list li::before { background: rgba(255,255,255,0.25); color: #fff; }

.feature__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.feature--flip .feature__row { grid-template-columns: 1fr 1fr; }
.feature--flip .feature__text { order: 2; }
.feature--flip .feature__art { order: 1; }

.eyebrow {
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}
.feature__text h2 {
  font-size: 34px;
  font-weight: 700;
  color: var(--ink);
  max-width: 460px;
}
.feature__text p {
  margin-top: 18px;
  font-size: 16.5px;
  color: var(--sub);
  max-width: 460px;
}
.check-list { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.check-list li {
  position: relative;
  padding-left: 30px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}
.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: -1px;
  width: 20px;
  height: 20px;
  background: var(--card);
  color: var(--red);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature__art {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 30px 0;
}
.blob {
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  z-index: 0;
  opacity: 0.9;
}
.blob--orange { background: radial-gradient(circle at 30% 30%, var(--orange-light), var(--orange)); }
.blob--red { background: radial-gradient(circle at 30% 30%, #ff5652, var(--red)); }
.blob--white { background: rgba(255,255,255,0.16); }
.feature__art .phone { position: relative; z-index: 1; }

/* ---------- Testimonial ---------- */
.testimonial { padding: 90px 0; background: var(--bg); }
.testimonial__card {
  display: flex;
  align-items: center;
  gap: 30px;
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 780px;
  margin: 0 auto;
}
.testimonial__img {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 3px solid #fff;
  box-shadow: 0 8px 20px -8px rgba(0,0,0,0.25);
  flex-shrink: 0;
}
.testimonial__card p {
  font-size: 18px;
  font-style: italic;
  color: var(--ink);
  line-height: 1.55;
}
.testimonial__card strong {
  display: block;
  margin-top: 14px;
  font-size: 14px;
  color: var(--red);
  font-weight: 700;
}

/* ---------- CTA ---------- */
.cta {
  position: relative;
  overflow: hidden;
  background: radial-gradient(120% 140% at 85% 90%, var(--orange-light) 0%, var(--orange) 45%, var(--red) 100%);
  padding: 100px 0;
  text-align: center;
}
.cta__inner { position: relative; z-index: 1; }
.cta h2 {
  color: #fff;
  font-size: 38px;
  font-weight: 800;
}
.cta p {
  color: rgba(255,255,255,0.9);
  margin-top: 12px;
  font-size: 16px;
  font-weight: 500;
}
.cta__badges {
  display: flex;
  gap: 18px;
  justify-content: center;
  margin-top: 34px;
  flex-wrap: wrap;
}
.store-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #111;
  color: #fff;
  padding: 12px 22px;
  border-radius: 14px;
  transition: transform .18s ease;
}
.store-badge:hover { transform: translateY(-3px); }
.store-badge span { display: flex; flex-direction: column; text-align: left; font-family: 'Poppins',sans-serif; font-weight: 600; font-size: 16px; line-height: 1.15; }
.store-badge small { font-weight: 400; font-size: 11px; opacity: 0.8; }

/* ---------- FAQ ---------- */
.faq { padding: 100px 0; background: var(--white); }
.faq__title {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 44px;
}
.faq__list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq__list details {
  background: var(--card);
  border-radius: 16px;
  padding: 20px 24px;
}
.faq__list summary {
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after {
  content: '+';
  font-size: 22px;
  color: var(--red);
  font-weight: 400;
  margin-left: 12px;
  flex-shrink: 0;
}
.faq__list details[open] summary::after { content: '−'; }
.faq__list p {
  margin-top: 14px;
  color: var(--sub);
  font-size: 15px;
  line-height: 1.6;
}

/* ---------- Footer ---------- */
.footer { background: #1A1005; padding: 70px 0 0; }
.footer__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer .nav__brand { color: #fff; }
.footer__brand p {
  margin-top: 14px;
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  max-width: 260px;
}
.footer__col { display: flex; flex-direction: column; gap: 14px; }
.footer__col h4 {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
  opacity: 0.85;
}
.footer__col a { color: rgba(255,255,255,0.6); font-size: 14px; transition: color .15s; }
.footer__col a:hover { color: var(--orange-light); }
.footer__bottom {
  padding: 26px 0;
  text-align: center;
  color: rgba(255,255,255,0.45);
  font-size: 13px;
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .nav__links {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 20px 24px 26px;
    gap: 18px;
    border-bottom: 1px solid var(--hairline);
  }
  .nav__links.is-open { display: flex; }
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__copy { display: flex; flex-direction: column; align-items: center; }
  .hero h1 { font-size: 38px; }
  .hero__actions { justify-content: center; }
  .hero__stats { justify-content: center; }
  .hero__art { height: 460px; margin-top: 20px; }
  .phone--lg { width: 240px; height: 490px; }
  .phone--sm { width: 150px; height: 310px; }
  .feature { padding: 70px 0; }
  .feature__row, .feature--flip .feature__row { grid-template-columns: 1fr; gap: 40px; }
  .feature--flip .feature__text, .feature--flip .feature__art { order: unset; }
  .feature__text { text-align: center; margin: 0 auto; }
  .feature__text h2, .feature__text p { margin-left: auto; margin-right: auto; }
  .check-list { align-items: flex-start; width: fit-content; margin: 24px auto 0; }
  .phone--md { width: 230px; height: 470px; }
  .testimonial__card { flex-direction: column; text-align: center; padding: 32px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .hero { padding: 70px 0 40px; }
  .hero h1 { font-size: 30px; }
  .hero__sub { font-size: 16px; }
  .footer__inner { grid-template-columns: 1fr; }
  .float-badge { display: none; }
}

/* ---------- Legal / content pages (privacy, terms, child safety) ---------- */
/* These pages reuse the site's nav, footer and type scale so they read as
   part of Spain Connect rather than a separate document. Several rules
   below deliberately undo the global resets above (list-style, p margins,
   link colour), which exist for the marketing layout but not for prose. */
.legal {
  padding: clamp(40px, 7vw, 72px) 0 clamp(64px, 9vw, 104px);
}
.legal .container {
  max-width: 820px; /* comfortable measure for long-form reading */
}
.legal h1 {
  font-size: clamp(30px, 5vw, 44px);
  margin-bottom: 10px;
}
.legal .meta {
  color: var(--sub);
  font-size: 14px;
  margin-bottom: 40px;
}
.legal h2 {
  font-size: clamp(19px, 2.4vw, 23px);
  margin-top: 44px;
  margin-bottom: 14px;
  padding-top: 28px;
  border-top: 1px solid var(--hairline);
}
.legal h2:first-of-type {
  border-top: none;
  padding-top: 0;
}
.legal p,
.legal li {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.75;
  margin: 0 0 14px;
}
.legal ul,
.legal ol {
  list-style: revert;      /* the global reset strips bullets site-wide */
  padding-left: 22px;
  margin: 0 0 16px;
}
.legal li {
  margin-bottom: 8px;
}
.legal strong {
  font-weight: 700;
}
.legal a {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal a:hover {
  color: var(--orange-dark);
}
.legal .callout {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin: 20px 0;
}
.legal .callout p:last-child {
  margin-bottom: 0;
}
.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 15px;
}
.legal th,
.legal td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
  color: var(--ink);
}
.legal th {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-size: 13px;
  color: var(--sub);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
/* Sub-pages have no in-page sections to scroll to, so the nav collapses
   to the brand plus a way back. */
.nav__back {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--sub);
}
.nav__back:hover { color: var(--orange); }
