/* ==========================================================================
   Fuentes de Agua — landing page
   Design language: topographic trail map. Contour lines, waypoint markers,
   spring-water blue, sun-baked clay accent. Hairline rules instead of
   shadows; numbers used only where content is genuinely a sequence.
   ========================================================================== */

:root {
  /* Color */
  --bg: #EEF1E7;
  --bg-alt: #E3E8D9;
  --ink: #142B27;
  --ink-soft: #45594F;
  --teal-deep: #0B2E33;
  --teal-deep-2: #0F3D42;
  --spring: #2E9CAE;
  --spring-dark: #1C7686;
  --clay: #C97A3D;
  --clay-dark: #A8602A;
  --moss: #5C7A4E;
  --line-on-dark: rgba(237, 244, 232, 0.14);
  --line-on-dark-soft: rgba(237, 244, 232, 0.07);
  --line-on-light: rgba(20, 43, 39, 0.14);
  --paper: #F7F8F1;

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", serif;
  --font-body: "Archivo", "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --max-w: 1120px;
  --radius-sm: 4px;
  --radius-md: 8px;
}

*, *::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.08;
  margin: 0;
  letter-spacing: -0.01em;
}

h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
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.8rem;
  color: var(--spring-dark);
  font-weight: 600;
}

.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(--teal-deep);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(238, 241, 231, 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.15rem;
  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: 600;
}
.lang-switch a {
  padding: 6px 10px;
  text-decoration: none;
  color: var(--ink-soft);
}
.lang-switch a[aria-current="true"] {
  background: var(--teal-deep);
  color: #fff;
}

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

.nav-toggle { display: none; }

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

.hero {
  position: relative;
  background: var(--teal-deep);
  color: #EFF4EC;
  overflow: hidden;
}

.hero-contours {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 1;
}
.hero-contours .contour { stroke: var(--line-on-dark); stroke-width: 1.2; }
.hero-contours .contour-accent { stroke: rgba(143, 211, 222, 0.4); stroke-width: 1.5; }

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

.hero-copy .eyebrow { color: #8FD3DE; }

.hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  margin: 14px 0 20px;
  color: #F7F8F1;
}

.hero h1 em {
  font-style: normal;
  color: #8FD3DE;
}

.hero .lede {
  color: rgba(239, 244, 236, 0.82);
  font-size: 1.15rem;
  max-width: 42ch;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.store-badge img { height: 54px; width: auto; }

.secondary-link {
  text-decoration: none;
  color: #EFF4EC;
  font-weight: 600;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(239, 244, 236, 0.4);
  padding-bottom: 3px;
}
.secondary-link:hover { border-color: #8FD3DE; color: #8FD3DE; }

.hero-meta {
  display: flex;
  gap: 26px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line-on-dark);
  flex-wrap: wrap;
}
.hero-meta-item { font-size: 0.85rem; color: rgba(239,244,236,0.75); }
.hero-meta-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: #F7F8F1;
  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: 26px;
  padding: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.01));
}

.phone-frame img {
  border-radius: 18px;
  width: 100%;
}

.pin {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--paper);
  color: var(--teal-deep);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: none;
  border: 1px solid rgba(11,46,51,0.1);
  white-space: nowrap;
}
.pin-1 { top: 14%; left: -34px; }
.pin-2 { bottom: 18%; right: -34px; }
.pin-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--clay);
  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;
}

.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 — waypoints */

.waypoints {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}

.waypoint { position: relative; padding-top: 8px; }

.waypoint-marker {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid var(--teal-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--teal-deep);
  background: var(--paper);
  margin-bottom: 20px;
}

.waypoint-trail {
  position: absolute;
  top: 23px;
  left: calc(50% + 23px);
  width: calc(100% - 46px);
  height: 0;
  border-top: 2px dashed var(--line-on-light);
}

.waypoint h3 { margin-bottom: 8px; }
.waypoint 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: 200px;
  border-radius: 16px;
  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(--teal-deep);
  position: relative;
}
.faq-item summary .plus::before,
.faq-item summary .plus::after {
  content: "";
  position: absolute;
  background: var(--teal-deep);
  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(--teal-deep);
  color: #F7F8F1;
  position: relative;
  overflow: hidden;
}
.cta-inner {
  position: relative;
  padding: 70px 0;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-inner h2 { color: #F7F8F1; max-width: 20ch; }
.cta-inner .lede { color: rgba(239,244,236,0.8); 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;
  text-transform: none;
  color: var(--ink);
  margin-bottom: 12px;
  font-family: var(--font-body);
  font-weight: 700;
}

.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(--spring-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-frame { width: 190px; }
  .pin { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .waypoints { grid-template-columns: 1fr; gap: 28px; }
  .waypoint-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; }
}
