/* ==========================================================================
   FetchLab Enrichment Toy Store — Design System
   Fonts: Space Grotesk (headings) + DM Sans (body)
   Palette: --accent #ff6b35, --teal #1a9c8b, --bg #faf9f6
   ========================================================================== */

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

:root {
  --fg: #0f1012;
  --fg-muted: #5a5d66;
  --fg-light: #8a8d96;
  --bg: #faf9f6;
  --bg-alt: #f4f2ed;
  --accent: #ff6b35;
  --accent-hover: #e85520;
  --accent-soft: #fff0e8;
  --teal: #1a9c8b;
  --teal-soft: #e6f7f5;
  --card-bg: #ffffff;
  --border: #e8e6e1;
  --border-light: #f0eeea;
  --shadow-sm: 0 1px 3px rgba(15,16,18,0.04);
  --shadow-md: 0 4px 16px rgba(15,16,18,0.06);
  --shadow-lg: 0 8px 30px rgba(15,16,18,0.08);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 100px;
  --max-w: 1200px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }

/* ---------- NAVIGATION ---------- */

.nav {
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
  z-index: 100;
}

.nav-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  color: var(--fg);
}
.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--fg-muted);
  transition: color 0.2s;
  letter-spacing: 0.01em;
}
.nav-links a:hover { color: var(--fg); }
.nav-links a.active { color: var(--accent); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff !important;
  background: var(--accent);
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius-full);
  transition: background 0.2s, transform 0.15s;
}
.nav-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--fg);
  margin: 5px 0;
  transition: 0.3s;
  border-radius: 2px;
}

/* ---------- HERO ---------- */

.hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 4rem 2rem 3rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal);
  background: var(--teal-soft);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.4rem, 4.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 1.25rem;
}
.hero h1 .highlight {
  background: linear-gradient(135deg, var(--accent), #e85520);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--fg-muted);
  max-width: 480px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  padding: 0.8rem 1.75rem;
  border-radius: var(--radius-full);
  border: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 2px 12px rgba(255,107,53,0.25);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(255,107,53,0.35);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--fg);
  background: transparent;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border);
  transition: border-color 0.2s, background 0.2s;
}
.btn-secondary:hover {
  border-color: var(--fg-muted);
  background: var(--card-bg);
}

.hero-proof {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.proof-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--fg-muted);
}
.proof-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  flex-shrink: 0;
}

/* Hero featured product card */
.hero-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s;
  box-shadow: var(--shadow-md);
}
.hero-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.hero-card-visual {
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  position: relative;
  overflow: hidden;
}
.hero-card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}
.hero-card-visual::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to top, var(--card-bg), transparent);
}
.hero-card-body {
  padding: 1.5rem;
}
.hero-card-body h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}
.hero-card-body .tagline {
  font-size: 0.85rem;
  color: var(--fg-muted);
  margin-bottom: 1rem;
}
.hero-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.hero-card-price {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--fg);
}
.hero-card-price .compare {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--fg-light);
  text-decoration: line-through;
  margin-left: 0.5rem;
}
.hero-card-btn {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  transition: background 0.2s, color 0.2s;
}
.hero-card-btn:hover {
  background: var(--accent);
  color: #fff;
}

/* ---------- SECTION SHARED ---------- */

.section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 5rem 2rem;
}

.section-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
  max-width: 600px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--fg-muted);
  max-width: 520px;
  margin-bottom: 2.5rem;
}

.divider {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}
.divider hr {
  border: none;
  border-top: 1px solid var(--border);
}

/* ---------- PRODUCT GRID ---------- */

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.product-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.product-card-visual {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  position: relative;
  overflow: hidden;
}
.product-card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .product-card-visual img {
  transform: scale(1.05);
}

.product-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card-category {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--teal);
  margin-bottom: 0.5rem;
}

.product-card-body h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}

.product-card-body .tagline {
  font-size: 0.82rem;
  color: var(--fg-muted);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

.product-price {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
}
.product-price .compare {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--fg-light);
  text-decoration: line-through;
  margin-left: 0.4rem;
}

.product-card-link {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap 0.2s;
}
.product-card:hover .product-card-link { gap: 0.5rem; }

/* ---------- WHY ENRICHMENT SECTION ---------- */

.why-section {
  background: var(--fg);
  color: #fff;
  padding: 5rem 2rem;
}
.why-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.why-inner .section-label { color: var(--accent); }
.why-inner .section-title { color: #fff; max-width: 650px; }
.why-inner .section-subtitle { color: #9ca3af; }

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.why-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  padding: 2rem;
}
.why-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}
.why-card h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: #f3f4f6;
}
.why-card p {
  font-size: 0.85rem;
  color: #9ca3af;
  line-height: 1.6;
}

/* ---------- NEWSLETTER ---------- */

.newsletter-section {
  background: var(--accent-soft);
  padding: 4rem 2rem;
}
.newsletter-inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}
.newsletter-inner h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.newsletter-inner p {
  font-size: 0.9rem;
  color: var(--fg-muted);
  margin-bottom: 1.5rem;
}

.newsletter-form {
  display: flex;
  gap: 0.75rem;
  max-width: 440px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-family: inherit;
  background: var(--card-bg);
  color: var(--fg);
  outline: none;
  transition: border-color 0.2s;
}
.newsletter-form input:focus { border-color: var(--accent); }
.newsletter-form input::placeholder { color: var(--fg-light); }

.newsletter-form button {
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s;
}
.newsletter-form button:hover { background: var(--accent-hover); }

.newsletter-msg {
  margin-top: 0.75rem;
  font-size: 0.82rem;
  min-height: 1.5em;
}
.newsletter-msg.success { color: var(--teal); }
.newsletter-msg.error { color: #dc2626; }

/* ---------- PRODUCT DETAIL PAGE ---------- */

.pdp {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2rem 2rem 4rem;
}

.pdp-breadcrumb {
  font-size: 0.8rem;
  color: var(--fg-muted);
  margin-bottom: 2rem;
}
.pdp-breadcrumb a {
  color: var(--fg-muted);
  transition: color 0.2s;
}
.pdp-breadcrumb a:hover { color: var(--accent); }
.pdp-breadcrumb .sep { margin: 0 0.5rem; }

.pdp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.pdp-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8rem;
  position: sticky;
  top: 2rem;
}
.pdp-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pdp-info h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.35rem;
}

.pdp-tagline {
  font-size: 1.05rem;
  color: var(--fg-muted);
  margin-bottom: 1.5rem;
}

.pdp-price {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}
.pdp-price .current {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--fg);
}
.pdp-price .compare {
  font-size: 1.1rem;
  color: var(--fg-light);
  text-decoration: line-through;
}
.pdp-price .save {
  font-size: 0.78rem;
  font-weight: 600;
  color: #166534;
  background: #dcfce7;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

.pdp-description {
  font-size: 0.95rem;
  color: var(--fg-muted);
  line-height: 1.75;
  margin-bottom: 2rem;
}

.pdp-buy-btn {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: var(--radius-md);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 2px 12px rgba(255,107,53,0.25);
  margin-bottom: 0.75rem;
}
.pdp-buy-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(255,107,53,0.35);
}

.pdp-shipping-note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--fg-muted);
  margin-bottom: 2.5rem;
}

.pdp-details-section { margin-bottom: 2rem; }
.pdp-details-section h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: var(--fg);
}

.pdp-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.pdp-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--fg-muted);
  line-height: 1.55;
}
.pdp-feature-list .check {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  margin-top: 2px;
}

.pdp-specs-table {
  width: 100%;
  border-collapse: collapse;
}
.pdp-specs-table tr { border-bottom: 1px solid var(--border-light); }
.pdp-specs-table td {
  padding: 0.6rem 0;
  font-size: 0.85rem;
}
.pdp-specs-table td:first-child {
  font-weight: 500;
  color: var(--fg);
  width: 40%;
}
.pdp-specs-table td:last-child { color: var(--fg-muted); }

/* ---------- ABOUT PAGE ---------- */

.about-hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 4rem 2rem 3rem;
  text-align: center;
}
.about-hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
}
.about-hero p {
  font-size: 1.1rem;
  color: var(--fg-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

.about-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 2rem 5rem;
}
.about-content h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 3rem;
  margin-bottom: 1rem;
}
.about-content p {
  font-size: 0.95rem;
  color: var(--fg-muted);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}
.about-content .highlight-box {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 2rem 0;
}
.about-content .highlight-box p {
  color: var(--fg);
  font-weight: 500;
  margin-bottom: 0;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}
.about-value {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}
.about-value h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}
.about-value p {
  font-size: 0.85rem;
  margin-bottom: 0;
}

/* ---------- ORDER CONFIRMED ---------- */

.confirmed-page {
  max-width: 600px;
  margin: 0 auto;
  padding: 6rem 2rem;
  text-align: center;
}
.confirmed-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #dcfce7;
  color: #166534;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 1.5rem;
}
.confirmed-page h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.confirmed-page p {
  color: var(--fg-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

/* ---------- FOOTER ---------- */

.footer {
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--fg);
}
.footer-logo span { color: var(--accent); }

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}
.footer-links a {
  font-size: 0.82rem;
  color: var(--fg-muted);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--fg); }

.footer-copy {
  font-size: 0.75rem;
  color: var(--fg-light);
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 2.5rem 1.5rem 2rem;
    gap: 2.5rem;
  }
  .hero-card { order: -1; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .pdp-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .pdp-visual {
    position: static;
    max-height: 400px;
  }
  .about-values { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .nav { padding: 1rem 1.25rem; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card-bg);
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    gap: 1rem;
    box-shadow: var(--shadow-md);
  }
  .nav-toggle { display: block; }
  .hero { padding: 2rem 1.25rem; }
  .hero h1 { font-size: 2rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-proof { flex-direction: column; gap: 0.75rem; }
  .products-grid { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .footer-inner {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  .section { padding: 3rem 1.25rem; }
  .pdp { padding: 1.5rem 1.25rem 3rem; }
  .pdp-info h1 { font-size: 1.5rem; }
  .pdp-price .current { font-size: 1.5rem; }
}
