/* Little Spark Kids — Parent storefront
   Colors from STYLE-GUIDE.md vibrant primaries */

:root {
  --red: #e62832;
  --yellow: #ffc814;
  --blue: #286ee6;
  --green: #28aa46;
  --orange: #ff821e;
  --purple: #9646c8;
  --ink: #1a1a2e;
  --muted: #5a5a72;
  --bg: #fffdf8;
  --card: #ffffff;
  --soft: #fff6e8;
  --border: #f0e6d4;
  --radius: 16px;
  --shadow: 0 8px 24px rgba(26, 26, 46, 0.08);
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-size: 1.05rem;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--purple); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

.wrap {
  width: min(1100px, 92%);
  margin-inline: auto;
}

/* Header */
.site-header {
  background: var(--card);
  border-bottom: 3px solid var(--yellow);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
}
.brand img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--yellow);
}
.brand-text { line-height: 1.2; }
.brand-text small {
  display: block;
  font-weight: 500;
  font-size: 0.75rem;
  color: var(--muted);
}
.nav {
  display: flex;
  gap: 0.35rem 1rem;
  flex-wrap: wrap;
  align-items: center;
}
.nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
}
.nav a:hover, .nav a[aria-current="page"] {
  background: var(--soft);
  color: var(--blue);
}
.nav .nav-cta {
  background: var(--blue);
  color: #fff !important;
  padding: 0.45rem 0.9rem;
}
.nav .nav-cta:hover { background: var(--purple); }

/* Hero */
.hero {
  padding: 2.5rem 0 2rem;
  background:
    radial-gradient(circle at 10% 20%, rgba(255,200,20,0.25), transparent 40%),
    radial-gradient(circle at 90% 10%, rgba(40,110,230,0.12), transparent 35%),
    radial-gradient(circle at 70% 90%, rgba(40,170,70,0.1), transparent 40%),
    var(--bg);
}
.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 768px) {
  .hero-grid { grid-template-columns: 1.2fr 0.8fr; }
}
.eyebrow {
  display: inline-block;
  background: var(--soft);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}
.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  line-height: 1.15;
  margin: 0 0 0.75rem;
}
.hero .lede {
  font-size: 1.15rem;
  color: var(--muted);
  margin: 0 0 1.25rem;
  max-width: 36ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.hero-pip {
  justify-self: center;
  width: min(280px, 70vw);
  border-radius: 50%;
  border: 4px solid var(--yellow);
  box-shadow: var(--shadow);
  background: #f5e6c8;
}
.parent-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.5rem;
}
.parent-badge strong { color: var(--green); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--blue);
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(40,110,230,0.35);
}
.btn-primary:hover { background: #1f5bc4; }
.btn-secondary {
  background: #fff;
  color: var(--ink) !important;
  border-color: var(--border);
}
.btn-secondary:hover { border-color: var(--blue); color: var(--blue) !important; }
.btn-buy {
  background: var(--orange);
  color: #fff !important;
  font-size: 1.2rem;
  padding: 1rem 1.75rem;
  box-shadow: 0 4px 14px rgba(255,130,30,0.35);
  width: 100%;
  max-width: 360px;
}
.btn-buy:hover { background: #e87210; }
.btn-sm { padding: 0.55rem 1rem; font-size: 0.95rem; }

/* Sections */
.section { padding: 2.5rem 0; }
.section-alt { background: var(--soft); }
.section h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin: 0 0 0.5rem;
}
.section-intro {
  color: var(--muted);
  margin: 0 0 1.75rem;
  max-width: 55ch;
}

/* Catalog grid */
.catalog {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 560px) {
  .catalog { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .catalog { grid-template-columns: repeat(3, 1fr); }
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(26,26,46,0.12);
}
.card-thumb {
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  position: relative;
}
.card-thumb.t1 { background: linear-gradient(145deg, #ffe8a0, #ffd4d4); }
.card-thumb.t2 { background: linear-gradient(145deg, #d4f0ff, #c8f5d4); }
.card-thumb.t3 { background: linear-gradient(145deg, #e8d4ff, #ffe8c8); }
.card-thumb.t4 { background: linear-gradient(145deg, #d4e0ff, #f0e8ff); }
.card-thumb.t5 { background: linear-gradient(145deg, #e0ffe8, #fff0d4); }
.card-thumb.t6 { background: linear-gradient(145deg, #ffd4e8, #ffe8a0); }
.card-thumb .emoji {
  font-size: 3.5rem;
  line-height: 1;
}
.card-thumb img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--purple);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
}
.badge-value { background: var(--green); }
.badge-new { background: var(--blue); }
.card-body {
  padding: 1.1rem 1.2rem 1.3rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.5rem;
}
.card-body h3 {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.3;
}
.card-body h3 a {
  color: var(--ink);
  text-decoration: none;
}
.card-body h3 a:hover { color: var(--blue); }
.card-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  flex: 1;
}
.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.price {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ink);
}
.price-was {
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: line-through;
  font-weight: 500;
  margin-left: 0.35rem;
}

/* Trust / features */
.trust {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .trust { grid-template-columns: repeat(3, 1fr); }
}
.trust-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
}
.trust-item .icon {
  font-size: 1.75rem;
  margin-bottom: 0.4rem;
}
.trust-item h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}
.trust-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Product detail */
.product-hero {
  padding: 2rem 0 1.5rem;
}
.product-layout {
  display: grid;
  gap: 2rem;
}
@media (min-width: 800px) {
  .product-layout { grid-template-columns: 1fr 1fr; align-items: start; }
}
.product-visual {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: 280px;
  box-shadow: var(--shadow);
}
.product-visual .emoji { font-size: 5rem; }
.product-visual img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 3px solid var(--yellow);
}
.buy-box {
  background: var(--card);
  border: 2px solid var(--yellow);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.buy-box .price-lg {
  font-size: 2.2rem;
  font-weight: 800;
  margin: 0.25rem 0 0.75rem;
}
.buy-note {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0.75rem 0 0;
}
.whats-inside {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}
.whats-inside li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}
.whats-inside li::before {
  content: "✓";
  color: var(--green);
  font-weight: 800;
  flex-shrink: 0;
}
.whats-inside li:last-child { border-bottom: none; }

.breadcrumb {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1rem;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--blue); }

/* About */
.about-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 720px) {
  .about-grid { grid-template-columns: 200px 1fr; }
}
.about-pip {
  width: 180px;
  margin: 0 auto;
  border-radius: 50%;
  border: 4px solid var(--yellow);
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: #e8e8f0;
  padding: 2rem 0 1.5rem;
  margin-top: 2rem;
}
.site-footer a { color: var(--yellow); }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
}
.footer-meta {
  font-size: 0.9rem;
  color: #b0b0c0;
  margin-top: 0.35rem;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}
.footer-nav a {
  color: #e8e8f0;
  text-decoration: none;
  font-size: 0.9rem;
}
.footer-nav a:hover { color: var(--yellow); }
.footer-bottom {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #33334a;
  font-size: 0.85rem;
  color: #9090a8;
}

/* Misc */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
.color-dots {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.5rem;
}
.color-dots span {
  width: 14px;
  height: 14px;
  border-radius: 50%;
}
