/* ===== AvaliaDog Landing — Pure CSS ===== */
@import url('/css/tokens.css');
@import url('/css/utilities.css');

:root {
  --frame-border: 0.5rem;
  --hero-pad-x: 2.375rem;
  --hero-stats-bottom-gap: 1.65rem;
  --hero-badge-bottom-gap: 9.7rem;
}

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

body {
  font-family: var(--font-sans);
  background: var(--cream-50);
  color: var(--ink-900);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  border: var(--frame-border) solid #000;
  border-radius: 0;
  pointer-events: none;
  z-index: 9999;
}

h1, h2, h3, h4 { font-family: var(--font-serif); line-height: 1.2; }

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

.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
.w-full { width: 100%; }
.text-primary { color: var(--brand-primary); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border: none; border-radius: var(--radius); cursor: pointer;
  font-family: var(--font-sans); font-weight: 600;
  transition: all 0.3s ease; white-space: nowrap;
}
.btn-sm { font-size: 0.875rem; padding: 0.5rem 1rem; }
.btn-lg { font-size: 1rem; padding: 0.75rem 2rem; }
.btn-primary { box-shadow: var(--shadow-warm); }
.btn-primary:hover { box-shadow: var(--shadow-warm-strong); }
.landing-btn-secondary {
  background: #fff;
  color: var(--ink-900);
  border: 1px solid var(--border-soft);
}
.landing-btn-secondary:hover {
  background: var(--brand-a08);
}
.btn-outline-light { background: transparent; color: var(--on-surface-dark); border: 2px solid hsl(40 33% 97% / 0.3); }
.btn-outline-light:hover { background: hsl(40 33% 97% / 0.1); }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: hsl(40 33% 97% / 0.8); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
}
.navbar-inner {
  position: relative;
  display: flex;
  align-items: center;
  height: 4rem;
}
.navbar .container {
  max-width: none;
  margin: 0;
  padding-left: 1.2rem;
  padding-right: 1rem;
}
.logo { display: flex; align-items: center; gap: 0.5rem; }
.logo-icon { color: var(--brand-primary); }
.logo-text { font-size: 1.25rem; font-weight: 700; }
.nav-links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a { font-size: 0.875rem; font-weight: 500; color: var(--text-muted); transition: color 0.2s; }
.nav-links a:hover { color: var(--ink-900); }
.nav-links a.is-active {
  color: var(--ink-900);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.landing-lang-switch {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.landing-lang-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.landing-lang-switch select {
  width: auto;
  margin-top: 0;
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  border: 1px solid var(--border-soft);
  background: #fff;
  color: var(--ink-900);
  font-size: 0.75rem;
}
.menu-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink-900);
}
.mobile-menu { padding: 0 1rem 1rem; display: flex; flex-direction: column; gap: 0.75rem; background: var(--cream-50); border-bottom: 1px solid var(--border-soft); }
.mobile-menu a { font-size: 0.875rem; font-weight: 500; color: var(--text-muted); padding: 0.5rem 0; }
.mobile-menu a.is-active {
  color: var(--ink-900);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.landing-login-btn {
  min-width: 8.25rem;
  color: #fff !important;
}

@media (max-width: 767px) {
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  .landing-lang-label { display: none; }
  .landing-lang-switch { margin-right: 0.75rem; }
}

/* ===== HERO ===== */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding-top: 4rem; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to right, hsl(220 25% 20% / 0.9), hsl(220 25% 20% / 0.7), hsl(220 25% 20% / 0.3)); }
.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  min-height: calc(100vh - 4rem);
  max-width: none;
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  padding-left: var(--hero-pad-x);
  padding-right: var(--hero-pad-x);
}
.hero-text { max-width: 42rem; margin-left: 0; margin-right: auto; text-align: left; }
.hero-text-left {
  margin-top: 1.2rem;
  display: flex;
  flex-direction: column;
}
.hero-text-right {
  max-width: 34rem;
  margin-left: auto;
  margin-right: 0;
  text-align: right;
  align-self: flex-start;
  margin-top: 1.2rem;
  margin-bottom: 0;
}
.hero-right-cta {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}
.hero-text-right .hero-desc { margin-left: auto; margin-right: 0; margin-bottom: 1rem; }
.hero-text-right .hero-title {
  margin-top: 3.1rem;
  margin-bottom: 0;
}
.hero-text-left .hero-title {
  margin-top: 3.1rem;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  position: absolute;
  left: 0;
  right: 0;
  width: max-content;
  max-width: calc(100% - 2rem);
  margin-left: auto;
  margin-right: auto;
  bottom: var(--hero-badge-bottom-gap);
  background: var(--brand-a20); color: var(--on-primary);
  border-radius: 999px;
  padding: 0.45rem 2.375rem;
  font-size: 0.875rem;
  line-height: 1.2;
  font-weight: 500;
  margin-bottom: 0;
  text-align: center;
}
.hero-title {
  font-size: clamp(1.8rem, 3.8vw, 3.2rem);
  font-weight: 400;
  font-synthesis: none;
  color: var(--on-surface-dark);
  margin-bottom: 1.5rem;
}
.hero-desc { font-size: 1.125rem; color: hsl(40 33% 97% / 0.8); max-width: 32rem; margin-bottom: 2rem; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-stats-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}
.hero-stats { display: flex; align-items: center; gap: 1.5rem; }
.hero-stats-note {
  margin: 0;
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: hsl(40 33% 97% / 0.72);
}
.hero-text-left .hero-buttons { justify-content: center; }
.hero-text-left .hero-title.animate-fade-up,
.hero-text-right .hero-title.animate-fade-up { animation-delay: .1s; }
.hero-text-left .hero-desc.animate-fade-up,
.hero-text-right .hero-desc.animate-fade-up { animation-delay: .2s; }
.hero-text-left .hero-buttons.animate-fade-up { animation-delay: .3s; }
.hero-text-right .hero-right-cta.animate-fade-up { animation-delay: .05s; }
.hero-content > .hero-stats-group.animate-fade-up { animation-delay: .4s; }
.stat { text-align: center; }
.stat-number { font-size: 1.5rem; font-weight: 700; color: var(--on-surface-dark); }
.stat-label { font-size: 0.75rem; color: hsl(40 33% 97% / 0.6); }
.stat-divider { width: 1px; height: 2rem; background: hsl(40 33% 97% / 0.2); }

@media (max-width: 767px) {
  .hero-buttons {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-stats {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 0;
    margin-bottom: 1rem;
  }
  .hero-content {
    min-height: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
  }
  .hero-text-left {
    margin-top: 1.2rem;
    margin-bottom: 0;
  }
  .hero-text-right {
    display: block;
    max-width: 100%;
    text-align: left;
    align-self: auto;
    margin: 0;
    padding-bottom: 1.2rem;
  }
  .hero-right-cta { justify-content: flex-start; }
  .hero-buttons .btn,
  .hero-right-cta .btn {
    width: 18rem;
    max-width: 100%;
    justify-content: center;
  }
  .hero-text-right .hero-desc {
    margin-left: 0;
    margin-right: 0;
  }
  .hero-text-right .hero-title { margin-top: 0; }
  .hero-text-left .hero-title { margin-top: 0; }
  .hero-badge {
    position: static;
    transform: none;
    padding: 0.5rem 1rem;
    margin-bottom: 1rem;
  }
}

@media (min-width: 768px) {
  .hero-content > .hero-stats-group {
    position: absolute;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    bottom: var(--hero-stats-bottom-gap);
    margin: 0 auto;
  }
}

/* ===== SECTIONS ===== */
.section { padding: 3.6rem 0; }
.section-muted { background: hsl(40 20% 92% / 0.5); }
.section-header { text-align: center; max-width: 42rem; margin: 0 auto 4rem; }
.section-tag { font-size: 0.875rem; font-weight: 600; color: var(--brand-primary); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.75rem; }
.section-header h2 { font-size: clamp(1.875rem, 4vw, 3rem); color: var(--ink-900); margin-bottom: 1rem; }
.section-desc { font-size: 1.125rem; color: var(--text-muted); }
#beneficios .section-header h2 { white-space: nowrap; }

/* ===== CARD BASE ===== */

/* ===== STEPS ===== */
.process-subsection + .process-subsection { margin-top: 3rem; }
.process-subtitle {
  text-align: center;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  margin-bottom: 1.5rem;
}
.steps-grid,
.audience-grid,
.benefits-grid,
.value-grid {
  display: grid;
  margin: 0 auto;
}
.steps-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; max-width: 64rem; }
.lift-hover,
.step-card,
.audience-card,
.benefit-card,
.value-card {
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s, background 0.3s, color 0.3s;
}
.step-card:hover,
.audience-card:hover,
.benefit-card:hover,
.value-card:hover {
  transform: translateY(-4px);
}
.step-card {
  position: relative;
  padding: 2rem;
}
.step-card:hover {
  box-shadow: 0 8px 30px hsl(220 25% 20% / 0.4);
  background: var(--surface-dark);
  color: var(--on-surface-dark);
  border-color: var(--surface-dark);
}
.step-number { font-size: 3rem; font-weight: 700; color: var(--brand-a15); margin-bottom: 1rem; }
.step-icon { width: 3rem; height: 3rem; border-radius: 0.75rem; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; color: var(--accent-soft-fg); }
.step-card h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
.step-card p { font-size: 0.9375rem; color: var(--text-muted); line-height: 1.7; }
.step-card:hover p { color: hsl(40 33% 97% / 0.8); }
.step-arrow { position: absolute; top: 50%; right: -1rem; transform: translateY(-50%); color: var(--brand-a30); display: none; }

@media (min-width: 768px) { .step-arrow { display: block; } }

/* ===== AUDIENCE ===== */
.audience-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; max-width: 76rem; }
.audience-card {
  position: relative;
  padding: 2rem;
  padding-bottom: 4.2rem;
  color: var(--ink-900);
  display: flex;
  flex-direction: column;
}
.audience-card:hover {
  box-shadow: 0 8px 30px hsl(220 25% 20% / 0.4);
  background: var(--surface-dark);
  color: var(--on-surface-dark);
  border-color: var(--surface-dark);
}
.audience-icon { width: 3rem; height: 3rem; border-radius: 0.75rem; display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; background: var(--accent-soft); color: var(--accent-soft-fg); }
.accent-icon { background: var(--brand-a20); color: var(--brand-primary); }
.audience-card h3 { font-size: 1.5rem; margin-bottom: 0.25rem; }
.audience-subtitle { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 1rem; }
.audience-desc { font-size: 0.875rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 1.5rem; }
.audience-features { margin-bottom: 2rem; display: flex; flex-direction: column; gap: 0.5rem; }
.audience-features li { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; }
.audience-card:hover .audience-subtitle { color: hsl(40 33% 97% / 0.7); }
.audience-card:hover .audience-desc { color: hsl(40 33% 97% / 0.8); }
.audience-card:hover .audience-features li { color: hsl(40 33% 97% / 0.9); }
.audience-card .btn { margin-top: auto; }
.audience-card-cta-secondary {
  align-self: center;
}
.audience-partner-link {
  position: absolute;
  left: 50%;
  bottom: 1.35rem;
  transform: translateX(-50%);
  display: inline-block;
  font-size: 0.9rem;
  color: #12a37d;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}
.audience-partner-link:hover {
  color: #0d8a69;
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-primary); flex-shrink: 0; }
/* ===== BENEFITS ===== */
.benefits-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; max-width: 64rem; }
.benefit-card {
  padding: 1.5rem;
  border: 1px solid transparent;
}
.benefit-card:hover {
  box-shadow: 0 8px 30px hsl(220 25% 20% / 0.15);
  border-color: var(--brand-a35);
}
.benefit-icon {
  width: 2.5rem; height: 2.5rem; border-radius: 0.5rem; background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center; margin-bottom: 1rem;
  color: var(--accent-soft-fg); transition: all 0.3s;
}
.benefit-card:hover .benefit-icon { background: var(--brand-a10); color: var(--brand-primary); }
.benefit-card h3 { font-size: 1.125rem; margin-bottom: 0.5rem; }
.benefit-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.7; }
.benefit-card--full { grid-column: 1 / -1; }
.benefit-card--full { border-radius: 1.5rem; }
.benefit-card--full .benefit-icon {
  margin-left: auto;
  margin-right: auto;
}
.benefit-card--full .benefit-source {
  margin-top: 1rem;
  font-size: 0.6875rem;
  line-height: 1.6;
  color: hsl(220 8% 68%);
}
.benefit-card--full .benefit-highlight-text {
  color: #000 !important;
  font-size: 1rem;
  font-weight: 500;
}
.benefit-card--full .benefit-source a {
  color: inherit;
  text-decoration: underline;
  word-break: break-all;
}
.benefit-card--full .benefit-highlight-emphasis {
  display: block;
  margin-top: 0.5rem;
  font-size: calc(1rem + 2pt) !important;
  font-weight: 800;
  color: #000 !important;
  text-align: center;
}

/* ===== WHY WORTH IT ===== */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 76rem;
  margin: 0 auto;
}
.value-card {
  padding: 1.5rem;
}
.value-card:hover {
  box-shadow: 0 8px 30px hsl(220 25% 20% / 0.15);
  border-color: var(--brand-a35);
}
.value-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.65rem;
}
.value-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
}
.value-card--full { grid-column: 1 / -1; }
.value-card--full h3,
.value-card--full p {
  text-align: center;
}
.value-card--full h3 {
  font-size: calc(1.2rem + 2pt);
}
.value-card--full p {
  font-size: calc(0.95rem + 2pt);
}

@media (min-width: 640px) and (max-width: 767px) { .benefits-grid { grid-template-columns: repeat(2, 1fr); } }

/* ===== CTA ===== */
.cta-section { padding: 6rem 0; background: var(--surface-dark); }
.cta-content { text-align: center; }
.cta-paw { color: var(--brand-primary); margin: 0 auto 1.5rem; }
.cta-content h2 {
  font-size: clamp(1.875rem, 4vw, 3rem);
  color: var(--on-surface-dark);
  margin-bottom: 1rem;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  white-space: nowrap;
}
.cta-content > p { font-size: 1.125rem; color: hsl(40 33% 97% / 0.7); max-width: 68ch; margin: 0 auto 2rem; }
.cta-buttons { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* ===== FOOTER ===== */
.footer { padding: 3rem 0; background: var(--ink-900); color: hsl(40 33% 97% / 0.8); }
.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  text-align: center;
  font-size: 0.875rem;
  color: hsl(40 33% 97% / 0.65);
}
.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-links a {
  color: hsl(40 33% 97% / 0.75);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--brand-primary); }

@media (max-width: 767px) {
  .steps-grid { grid-template-columns: 1fr; }
  #beneficios .section-header h2 { white-space: normal; }
  .audience-grid { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: 1fr; }
}
@media (max-width: 360px) {
  .footer-content { font-size: 0.8rem; }
}

/* ===== TERMS/PRIVACY MODALS ===== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(7, 16, 28, 0.64);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 16px;
}
.modal-content {
  width: min(900px, 96vw);
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(22, 40, 62, 0.14);
  box-shadow: 0 22px 45px rgba(10, 24, 44, 0.28);
  padding: 20px 22px 16px;
  position: relative;
}
.modal-content h2 {
  margin: 0 0 12px;
  color: hsl(214 42% 23%);
}
.close-btn {
  position: absolute;
  right: 14px;
  top: 8px;
  font-size: 30px;
  line-height: 1;
  color: hsl(214 16% 45%);
  cursor: pointer;
}
.close-btn:hover {
  color: hsl(214 35% 28%);
}
.terms-body {
  max-height: 58vh;
  overflow-y: auto;
  color: hsl(214 32% 29%);
  line-height: 1.62;
}
.terms-body p {
  margin: 0 0 12px;
}
.terms-body p:last-child {
  margin-bottom: 0;
}
.terms-modal-actions {
  margin-top: 16px;
  display: flex;
  justify-content: center;
}

.terms-modal-actions button {
  min-width: 160px;
  padding: 0.7rem 1.2rem;
  font-size: 0.95rem;
  font-weight: 600;
}

/* ===== ANIMATIONS ===== */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-up { animation: fade-up 0.6s ease forwards; opacity: 0; }
