/* ==========================================================================
   DogPark: Parques para perros — landing page
   Design language: a walk in the neighborhood park. Paw-print trail, warm
   grass and mustard tones, a leather-collar brown accent. Friendly rounded
   display type, calm sans body.
   ========================================================================== */

:root {
  --ink: #22281C;
  --ink-soft: #52594A;
  --bg: #EEF0E1;
  --bg-alt: #E3E7CE;
  --paper: #F6F7EC;
  --grass: #3F6B3B;
  --grass-dark: #2E4F2C;
  --mustard: #E3A63A;
  --mustard-dark: #BD8425;
  --leather: #8B5A3C;
  --leather-dark: #6E4530;
  --line-on-dark: rgba(238, 240, 225, 0.16);
  --line-on-dark-soft: rgba(238, 240, 225, 0.08);
  --line-on-light: rgba(34, 40, 28, 0.14);

  --font-display: "Fredoka", "Segoe UI Rounded", sans-serif;
  --font-body: "Nunito", "Helvetica Neue", Arial, sans-serif;

  --max-w: 1120px;
  --radius-sm: 8px;
  --radius-md: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

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

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

.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 28px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  margin: 0;
  letter-spacing: -0.005em;
}

h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.2rem; }

p { margin: 0; }

.lede { font-size: 1.1rem; color: var(--ink-soft); max-width: 46ch; }

.eyebrow { font-family: var(--font-body); font-size: 0.85rem; color: var(--grass-dark); font-weight: 700; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--grass-dark); color: #fff; padding: 10px 16px; z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

:focus-visible { outline: 2px solid var(--mustard-dark); outline-offset: 2px; }

/* -------------------------------------------------------------------- */
/* Nav                                                                   */
/* -------------------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(238, 240, 225, 0.92);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--line-on-light);
}

.nav { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; gap: 20px; }

.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 600;
  color: var(--ink); text-decoration: none;
}
.brand svg { flex: none; }

.nav-links { display: flex; align-items: center; gap: 28px; font-size: 0.95rem; }
.nav-links a { text-decoration: none; color: var(--ink-soft); border-bottom: 1px solid transparent; padding-bottom: 2px; }
.nav-links a:hover { color: var(--ink); border-color: var(--line-on-light); }

.lang-switch {
  display: flex; border: 1px solid var(--line-on-light); border-radius: var(--radius-sm);
  overflow: hidden; font-size: 0.8rem; font-weight: 700;
}
.lang-switch a { padding: 6px 10px; text-decoration: none; color: var(--ink-soft); }
.lang-switch a[aria-current="true"] { background: var(--grass-dark); color: #fff; }

.nav-cta {
  background: var(--mustard); color: var(--ink); padding: 9px 18px;
  border-radius: var(--radius-sm); text-decoration: none; font-weight: 700; font-size: 0.9rem;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--mustard-dark); color: #fff; }

/* -------------------------------------------------------------------- */
/* Hero                                                                  */
/* -------------------------------------------------------------------- */

.hero { position: relative; background: var(--grass-dark); color: #F3F1E2; overflow: hidden; }

.hero-trail { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-trail .paw { fill: rgba(243, 241, 226, 0.16); }
.hero-trail .paw-accent { fill: rgba(227, 166, 58, 0.5); }

.hero-inner {
  position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: 40px; align-items: center; padding: 84px 0 74px;
}

.hero-copy .eyebrow { color: #F0C069; }

.hero h1 { font-size: clamp(2.3rem, 5vw, 3.5rem); margin: 14px 0 20px; color: #FAF8EC; }
.hero h1 .accent { color: var(--mustard); }

.hero .lede { color: rgba(243, 241, 226, 0.85); font-size: 1.15rem; max-width: 42ch; }

.hero-actions { display: flex; align-items: center; gap: 18px; margin-top: 30px; flex-wrap: wrap; }
.store-badge img { height: 54px; width: auto; }

.secondary-link {
  text-decoration: none; color: #F3F1E2; font-weight: 700; font-size: 0.95rem;
  border-bottom: 1px solid rgba(243,241,226,0.4); padding-bottom: 3px;
}
.secondary-link:hover { border-color: var(--mustard); color: var(--mustard); }

.hero-meta { display: flex; gap: 26px; margin-top: 38px; padding-top: 22px; border-top: 1px solid var(--line-on-dark); flex-wrap: wrap; }
.hero-meta-item { font-size: 0.85rem; color: rgba(243,241,226,0.78); }
.hero-meta-item strong { display: block; font-family: var(--font-display); font-size: 1.3rem; color: #FAF8EC; font-weight: 600; }

.hero-visual { position: relative; display: flex; justify-content: center; }

.phone-stage { position: relative; width: 240px; }
.phone-frame {
  position: relative; width: 240px; border: 1px solid var(--line-on-dark);
  border-radius: 30px; padding: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.01));
}
.phone-frame img { border-radius: 22px; width: 100%; }

.chip {
  position: absolute; display: flex; align-items: center; gap: 8px;
  background: var(--paper); color: var(--grass-dark); padding: 8px 13px;
  border-radius: 999px; font-size: 0.78rem; font-weight: 700;
  border: 1px solid rgba(34,40,28,0.1); white-space: nowrap;
}
.chip-1 { top: 12%; left: -46px; }
.chip-2 { bottom: 16%; right: -40px; }
.chip-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mustard-dark); flex: none; }

/* -------------------------------------------------------------------- */
/* Sections generic                                                     */
/* -------------------------------------------------------------------- */

section { padding: 84px 0; }
.section-head { max-width: 60ch; margin-bottom: 48px; }
.section-head h2 { margin-top: 10px; }
.bg-alt { background: var(--bg-alt); }

/* Features grid */

.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line-on-light); border: 1px solid var(--line-on-light); }
.feature { background: var(--bg); padding: 34px 32px; }
.bg-alt .feature { background: var(--bg-alt); }
.feature-icon { width: 40px; height: 40px; margin-bottom: 18px; }
.feature h3 { margin-bottom: 10px; }
.feature p { color: var(--ink-soft); font-size: 0.98rem; }

/* How it works — walk steps */

.walksteps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; position: relative; }
.walkstep { position: relative; padding-top: 8px; }
.walkstep-marker {
  width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--grass-dark);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--grass-dark);
  background: var(--paper); margin-bottom: 20px;
}
.walkstep-trail {
  position: absolute; top: 23px; left: calc(50% + 23px); width: calc(100% - 46px);
  height: 0; border-top: 2px dotted var(--line-on-light);
}
.walkstep h3 { margin-bottom: 8px; }
.walkstep p { color: var(--ink-soft); font-size: 0.98rem; }

/* Screenshots */

.screens { display: flex; gap: 20px; overflow-x: auto; padding: 6px 6px 20px; scroll-snap-type: x mandatory; margin: 0 -6px; }
.screens img { scroll-snap-align: start; flex: none; width: 210px; border-radius: 18px; border: 1px solid var(--line-on-light); }

/* Audience row */

.audience { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.audience-item { text-align: left; padding: 22px 0; border-top: 1px solid var(--line-on-light); }
.audience-item svg { margin-bottom: 14px; }
.audience-item h3 { font-size: 1.02rem; margin-bottom: 6px; }
.audience-item p { color: var(--ink-soft); font-size: 0.92rem; }

/* FAQ */

.faq { max-width: 760px; }
.faq-item { border-top: 1px solid var(--line-on-light); padding: 22px 0; }
.faq-item:last-child { border-bottom: 1px solid var(--line-on-light); }
.faq-item summary {
  cursor: pointer; font-family: var(--font-display); font-weight: 600; font-size: 1.08rem;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--grass-dark); position: relative; }
.faq-item summary .plus::before, .faq-item summary .plus::after {
  content: ""; position: absolute; background: var(--grass-dark); top: 50%; left: 50%; transform: translate(-50%,-50%);
}
.faq-item summary .plus::before { width: 10px; height: 1.5px; }
.faq-item summary .plus::after { width: 1.5px; height: 10px; }
.faq-item[open] summary .plus::after { display: none; }
.faq-item p { margin-top: 14px; color: var(--ink-soft); max-width: 65ch; }

/* Final CTA */

.cta-band { background: var(--grass-dark); color: #F3F1E2; position: relative; overflow: hidden; }
.cta-inner { position: relative; padding: 70px 0; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-inner h2 { color: #FAF8EC; max-width: 20ch; }
.cta-inner .lede { color: rgba(243,241,226,0.82); margin-top: 12px; }

/* Footer */

footer { background: var(--paper); border-top: 1px solid var(--line-on-light); padding: 48px 0 32px; font-size: 0.9rem; color: var(--ink-soft); }
.footer-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-bottom: 32px; }
.footer-col h3 { font-size: 0.82rem; color: var(--ink); margin-bottom: 12px; font-family: var(--font-body); font-weight: 800; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { text-decoration: none; }
.footer-col a:hover { color: var(--grass-dark); }
.footer-bottom { border-top: 1px solid var(--line-on-light); padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.82rem; }

/* -------------------------------------------------------------------- */
/* One orchestrated entrance moment (hero only)                         */
/* -------------------------------------------------------------------- */

.hero-copy > * { opacity: 0; transform: translateY(10px); animation: rise 0.7s ease forwards; }
.hero-copy .eyebrow { animation-delay: 0.05s; }
.hero-copy h1 { animation-delay: 0.15s; }
.hero-copy .lede { animation-delay: 0.28s; }
.hero-copy .hero-actions { animation-delay: 0.4s; }
.hero-copy .hero-meta { animation-delay: 0.52s; }

@keyframes rise { to { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  .hero-copy > * { opacity: 1; transform: none; animation: none; }
}

/* -------------------------------------------------------------------- */
/* Responsive                                                            */
/* -------------------------------------------------------------------- */

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; padding: 56px 0 48px; }
  .hero-visual { order: -1; margin-bottom: 8px; }
  .phone-stage { width: 190px; }
  .phone-frame { width: 190px; }
  .chip { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .walksteps { grid-template-columns: 1fr; gap: 28px; }
  .walkstep-trail { display: none; }
  .audience { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .cta-inner { text-align: left; }
}

@media (max-width: 520px) {
  .wrap { padding: 0 20px; }
  section { padding: 60px 0; }
  .audience { grid-template-columns: 1fr 1fr; }
  .hero-meta { gap: 20px; }
}
