/* Color and Learn — shared styles. Mobile-first, playful, kid-friendly. */
:root {
  --sky: #87CEEB;
  --sky-light: #D8F0FB;
  --sky-pale: #F2FAFE;
  --teal: #008080;
  --blue: #1D4FD7;
  --apricot: #E8A44C;
  --amethyst: #7A3FC4;
  --coral: #E85A4F;
  --ink: #1F2A37;
  --ink-soft: #4A5A6A;
  --white: #FFFFFF;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 8px 24px rgba(29, 79, 215, 0.12);
  --shadow-lg: 0 14px 40px rgba(29, 79, 215, 0.18);
  --font-head: "Fredoka", "Baloo 2", "Comic Sans MS", system-ui, sans-serif;
  --font-body: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

a { color: var(--blue); }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 3px solid var(--sky);
}
.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0.7rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.45rem;
  text-decoration: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.brand .c1 { color: var(--teal); }
.brand .c2 { color: var(--blue); }
.brand .c3 { color: var(--amethyst); }
.nav-links { display: flex; gap: 0.4rem; align-items: center; }
.nav-links a {
  font-family: var(--font-head);
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  font-size: 1rem;
}
.nav-links a:hover { background: var(--sky-light); }
.nav-links a.active { background: var(--sky); color: #0d2a5e; }

/* ---------- layout ---------- */
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 1.1rem; }
section { padding: 3rem 0; }

/* ---------- hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--sky) 0%, var(--sky-light) 78%, var(--sky-pale) 100%);
  padding: 3.2rem 0 3.6rem;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  gap: 2rem;
  align-items: center;
}
.hero-copy h1 {
  font-family: var(--font-head);
  font-size: clamp(2.6rem, 8vw, 4.4rem);
  line-height: 1.02;
  margin: 0 0 0.9rem;
  font-weight: 700;
}
.hero-copy h1 .w1 { color: var(--teal); }
.hero-copy h1 .w2 { color: var(--blue); }
.hero-copy h1 .w3 { color: var(--amethyst); }
.hero-sub {
  font-size: 1.18rem;
  color: var(--ink-soft);
  max-width: 34rem;
  margin: 0 0 1.6rem;
}
.hero-sub strong { color: var(--ink); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; }
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.15rem;
  text-decoration: none;
  padding: 0.85rem 1.9rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:active { transform: scale(0.97); }
.btn-amazon {
  background: var(--coral);
  color: #fff;
  box-shadow: 0 6px 0 #b23a32, var(--shadow);
}
.btn-amazon:hover { transform: translateY(-2px); box-shadow: 0 8px 0 #b23a32, var(--shadow-lg); }
.btn-listen {
  background: #fff;
  color: var(--blue);
  border: 3px solid var(--blue);
  box-shadow: var(--shadow);
}
.btn-listen:hover { background: var(--sky-light); }
.coming-note {
  font-size: 0.95rem;
  color: var(--ink-soft);
  background: #fff;
  border: 2px dashed var(--apricot);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.9rem;
}
.hero-art { display: flex; justify-content: center; }
.hero-art img {
  width: min(340px, 78vw);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 6px solid #fff;
  transform: rotate(2deg);
}

/* ---------- feature stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: -1.2rem;
}
.stat {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.4rem 1rem;
  text-align: center;
  border-top: 6px solid var(--sky);
}
.stat:nth-child(1) { border-top-color: var(--teal); }
.stat:nth-child(2) { border-top-color: var(--blue); }
.stat:nth-child(3) { border-top-color: var(--apricot); }
.stat:nth-child(4) { border-top-color: var(--amethyst); }
.stat-num {
  font-family: var(--font-head);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
}
.stat-label { color: var(--ink-soft); font-size: 0.98rem; margin-top: 0.25rem; }

/* ---------- sample / about ---------- */
.sample-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}
.sample-grid img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 6px solid #fff;
  width: min(420px, 100%);
  margin: 0 auto;
}
h2.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  margin: 0 0 1rem;
  line-height: 1.15;
}
h2.section-title .hl-teal { color: var(--teal); }
h2.section-title .hl-blue { color: var(--blue); }
h2.section-title .hl-amethyst { color: var(--amethyst); }
h2.section-title .hl-coral { color: var(--coral); }
.lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 40rem; }
.check-list { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: 0.7rem; }
.check-list li {
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem 0.75rem 3rem;
  position: relative;
  box-shadow: var(--shadow);
  font-size: 1.02rem;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 1rem;
  top: 0.7rem;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

/* ---------- coming soon cards ---------- */
.soon-grid { display: grid; gap: 1.2rem; margin-top: 1.6rem; }
.soon-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.8rem 1.5rem;
  position: relative;
  overflow: hidden;
}
.soon-card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 8px;
}
.soon-card.teal::after { background: var(--teal); }
.soon-card.amethyst::after { background: var(--amethyst); }
.soon-card.apricot::after { background: var(--apricot); }
.soon-emoji { font-size: 2.6rem; }
.soon-card h3 { font-family: var(--font-head); font-size: 1.4rem; margin: 0.6rem 0 0.4rem; }
.soon-card p { color: var(--ink-soft); margin: 0 0 0.8rem; }
.pill {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--sky-light);
  color: #0d2a5e;
  border-radius: 999px;
  padding: 0.25rem 0.85rem;
}

/* ---------- listen page ---------- */
.listen-hero {
  background: linear-gradient(180deg, var(--sky) 0%, var(--sky-light) 85%, var(--sky-pale) 100%);
  padding: 2.6rem 0 2.2rem;
  text-align: center;
}
.listen-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 7vw, 3.4rem);
  margin: 0 0 0.6rem;
}
.listen-hero h1 .w1 { color: var(--teal); }
.listen-hero h1 .w2 { color: var(--blue); }
.listen-hero p { color: var(--ink-soft); max-width: 36rem; margin: 0 auto; font-size: 1.08rem; }

.controls {
  position: sticky;
  top: 57px;
  z-index: 40;
  background: rgba(242, 250, 254, 0.96);
  backdrop-filter: blur(8px);
  padding: 0.9rem 0;
  border-bottom: 2px solid var(--sky-light);
}
.search-row { display: flex; gap: 0.7rem; margin-bottom: 0.8rem; }
.search-box {
  flex: 1;
  font-family: var(--font-body);
  font-size: 1.05rem;
  padding: 0.7rem 1.1rem 0.7rem 2.6rem;
  border: 3px solid var(--sky);
  border-radius: 999px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%231D4FD7' stroke-width='2.5'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-4.3-4.3'/%3E%3C/svg%3E") no-repeat 0.9rem center;
  outline: none;
}
.search-box:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(29, 79, 215, 0.15); }
.letter-tabs {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  padding-bottom: 0.3rem;
  scrollbar-width: thin;
}
.letter-tab {
  flex: 0 0 auto;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  border: 2px solid var(--sky);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.12s ease;
}
.letter-tab:hover { border-color: var(--blue); transform: scale(1.08); }
.letter-tab.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.letter-tab.all { width: auto; padding: 0 0.9rem; border-radius: 999px; }

.result-count { color: var(--ink-soft); font-size: 0.95rem; margin: 1.1rem 0 0.9rem; }

.animal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.9rem;
  padding-bottom: 3rem;
}
.animal-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.1rem 0.8rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  border: 3px solid transparent;
  transition: transform 0.12s ease, border-color 0.2s ease;
  scroll-margin-top: 150px;
}
.animal-card:hover { transform: translateY(-3px); }
.animal-letter {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8rem;
  color: #fff;
  background: var(--teal);
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.animal-en { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; line-height: 1.25; }
.animal-es { color: var(--ink-soft); font-size: 0.92rem; font-style: italic; }
.play-btn {
  margin-top: 0.45rem;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: var(--coral);
  box-shadow: 0 4px 0 #b23a32;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.1s ease;
}
.play-btn:active { transform: scale(0.93); }
.play-btn svg { width: 1.5rem; height: 1.5rem; fill: #fff; }
.play-btn.playing { background: var(--amethyst); box-shadow: 0 4px 0 #5a2f9e; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
.animal-card.flash {
  border-color: var(--apricot);
  animation: flash 1.6s ease;
}
@keyframes flash {
  0%, 60% { box-shadow: 0 0 0 6px rgba(232, 164, 76, 0.55), var(--shadow); }
  100% { box-shadow: var(--shadow); }
}
.empty-state {
  text-align: center;
  color: var(--ink-soft);
  padding: 3rem 1rem;
  font-size: 1.1rem;
  grid-column: 1 / -1;
}

/* ---------- footer ---------- */
footer {
  background: var(--ink);
  color: #cfe0ee;
  padding: 2.2rem 0;
  margin-top: 2rem;
}
.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}
.footer-brand { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; color: #fff; }
.footer-note { font-size: 0.92rem; }

/* ---------- larger screens ---------- */
@media (min-width: 720px) {
  .hero-inner { grid-template-columns: 1.1fr 0.9fr; }
  .hero { padding: 4rem 0 4.5rem; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .sample-grid { grid-template-columns: 0.9fr 1.1fr; }
  .soon-grid { grid-template-columns: repeat(3, 1fr); }
  .animal-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
}
