/* WonderToy Lab — AURA tokens */
:root {
  --wtl-sky: #a6dce9;
  --wtl-moon: #fbc454;
  --wtl-cream: #fde8d7;
  --wtl-footer: #2b303a;
  --wtl-blush: #f5b7b1;
  --wtl-wood: #8b5e3c;
  --wtl-text: #2b303a;
  --wtl-muted: #5c6370;
  --wtl-white: #fff;
  --wtl-max: 1200px;
  --wtl-font-head: "Montserrat", system-ui, sans-serif;
  --wtl-font-body: "Nunito", system-ui, sans-serif;
  --wtl-font-script: "Caveat", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--wtl-font-body);
  font-size: 18px;
  line-height: 1.65;
  color: var(--wtl-text);
  background: var(--wtl-cream);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--wtl-wood); }
a:hover { color: var(--wtl-text); }
h1, h2, h3 { font-family: var(--wtl-font-head); line-height: 1.2; letter-spacing: -0.02em; }
.wtl-script { font-family: var(--wtl-font-script); font-weight: 600; font-size: 1.35rem; color: var(--wtl-wood); }
.wtl-container { width: min(100% - 2rem, var(--wtl-max)); margin-inline: auto; }
.wtl-skip-link {
  position: absolute; left: -9999px; top: auto;
}
.wtl-skip-link:focus {
  left: 1rem; top: 1rem; z-index: 9999;
  background: var(--wtl-moon); padding: 0.5rem 1rem; border-radius: 8px;
}
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px); position: absolute !important; height: 1px; width: 1px; overflow: hidden;
}

/* Buttons */
.wtl-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.75rem 1.5rem; border-radius: 9999px;
  font-family: var(--wtl-font-head); font-weight: 700; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; transition: transform 0.2s, background 0.2s;
}
.wtl-btn--primary { background: var(--wtl-moon); color: var(--wtl-text); border-color: var(--wtl-moon); }
.wtl-btn--primary:hover { filter: brightness(0.92); color: var(--wtl-text); }
.wtl-btn--ghost { background: transparent; color: var(--wtl-white); border-color: var(--wtl-white); }
.wtl-btn--ghost:hover { background: rgba(255,255,255,0.15); color: var(--wtl-white); }
.wtl-btn--ghost-dark { background: transparent; color: var(--wtl-text); border-color: var(--wtl-text); }
.wtl-btn--moon { background: var(--wtl-moon); color: var(--wtl-text); }
.wtl-btn--block { width: 100%; }
.wtl-btn:focus-visible { outline: 3px solid var(--wtl-sky); outline-offset: 2px; }

/* Header */
.wtl-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(166, 220, 233, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(43, 48, 58, 0.08);
}
.wtl-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.75rem 0; }
.wtl-logo { text-decoration: none; color: var(--wtl-text); display: flex; flex-direction: column; line-height: 1; }
.wtl-logo__script { font-family: var(--wtl-font-script); font-size: 1.5rem; }
.wtl-logo__title { font-family: var(--wtl-font-head); font-weight: 800; font-size: 1.1rem; }
.wtl-nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px;
}
.wtl-nav-toggle span { display: block; width: 24px; height: 2px; background: var(--wtl-text); }
.wtl-nav { display: flex; align-items: center; gap: 1.5rem; }
.wtl-nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.wtl-nav__list a { text-decoration: none; font-weight: 600; color: var(--wtl-text); font-size: 0.95rem; }
.wtl-nav__has-sub { position: relative; }
.wtl-nav__parent { background: none; border: 0; font: inherit; font-weight: 600; cursor: pointer; color: var(--wtl-text); }
.wtl-nav__sub {
  display: none; position: absolute; top: 100%; left: 0; min-width: 220px;
  background: var(--wtl-white); border-radius: 12px; padding: 0.5rem 0; margin: 0;
  list-style: none; box-shadow: 0 8px 24px rgba(43,48,58,0.12);
}
.wtl-nav__has-sub.is-open .wtl-nav__sub { display: block; }
.wtl-nav__sub a { display: block; padding: 0.5rem 1rem; }

/* Scallop */
.wtl-scallop { line-height: 0; margin-top: -1px; }
.wtl-scallop svg { width: 100%; height: 48px; display: block; }

/* Sections */
.wtl-section { padding: clamp(3.5rem, 8vw, 6rem) 0; position: relative; }
.wtl-section--sky { background: var(--wtl-sky); }
.wtl-section--cream { background: var(--wtl-cream); }
.wtl-section--blush { background: linear-gradient(180deg, var(--wtl-cream) 0%, var(--wtl-blush) 40%, var(--wtl-cream) 100%); }
.wtl-eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; font-weight: 700; color: var(--wtl-muted); margin: 0 0 0.5rem; }

/* Hero home */
.wtl-hero { padding: clamp(2rem, 6vw, 4rem) 0 0; background: var(--wtl-sky); overflow: hidden; }
.wtl-hero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
.wtl-hero h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 1rem; }
.wtl-hero__lead { margin-bottom: 1.5rem; max-width: 36ch; }
.wtl-hero__ctas { display: flex; flex-wrap: wrap; gap: 1rem; }
.wtl-hero__visual { position: relative; }
.wtl-hero__scene { border-radius: 24px; box-shadow: var(--wtl-shadow, 0 12px 40px rgba(43,48,58,0.12)); }
.wtl-hero__float { position: absolute; animation: wtl-float 4s ease-in-out infinite alternate; }
.wtl-hero__moon { width: 72px; top: -12px; right: 12%; }
.wtl-hero__plane { width: 100px; bottom: 8%; left: -4%; animation-delay: 1s; }
@keyframes wtl-float {
  from { transform: translateY(0); }
  to { transform: translateY(-8px); }
}
@media (prefers-reduced-motion: reduce) {
  .wtl-hero__float { animation: none; }
}

/* Cards */
.wtl-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.wtl-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.wtl-card {
  background: var(--wtl-white); border-radius: 24px; padding: 1rem;
  box-shadow: 0 8px 24px rgba(43,48,58,0.08);
  border: 2px solid rgba(139, 94, 60, 0.25);
}
.wtl-card__img-wrap {
  border-radius: 50% / 45%; overflow: hidden; margin-bottom: 1rem;
  border: 2px solid rgba(139, 94, 60, 0.4);
}
.wtl-card__tag { font-size: 0.85rem; font-weight: 700; color: var(--wtl-wood); }
.wtl-card h3 { margin: 0.25rem 0; font-size: 1.15rem; }
.wtl-card p { margin: 0 0 1rem; font-size: 0.95rem; }

/* Gallery */
.wtl-gallery { background: linear-gradient(180deg, var(--wtl-sky) 0%, var(--wtl-cream) 30%); }
.wtl-toy-card { text-align: center; }
.wtl-toy-card img { margin: 0 auto; max-height: 180px; object-fit: contain; }

/* Steps */
.wtl-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; counter-reset: step; }
.wtl-step { background: var(--wtl-white); border-radius: 20px; padding: 1.25rem; position: relative; }
.wtl-step::before {
  counter-increment: step; content: counter(step);
  font-family: var(--wtl-font-script); font-size: 2rem; color: var(--wtl-moon);
  display: block; margin-bottom: 0.5rem;
}

/* FAQ */
.wtl-faq details { background: var(--wtl-white); border-radius: 16px; padding: 1rem 1.25rem; margin-bottom: 0.75rem; }
.wtl-faq summary { font-weight: 700; cursor: pointer; font-family: var(--wtl-font-head); }
.wtl-faq details[open] summary { margin-bottom: 0.5rem; }

/* Blog topics */
.wtl-blog-card { display: flex; flex-direction: column; height: 100%; }
.wtl-blog-card__badge {
  font-size: 0.75rem; font-weight: 700; color: var(--wtl-muted);
  background: var(--wtl-cream); padding: 0.25rem 0.75rem; border-radius: 999px; align-self: flex-start;
}

/* Form */
.wtl-form-layout { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2rem; align-items: start; }
.wtl-field { margin-bottom: 1rem; }
.wtl-field label { display: block; font-weight: 600; margin-bottom: 0.35rem; }
.wtl-field input, .wtl-field textarea, .wtl-field select {
  width: 100%; padding: 0.65rem 0.85rem; border-radius: 12px;
  border: 1px solid #d4c4b8; font: inherit;
}
.wtl-field input:focus, .wtl-field textarea:focus, .wtl-field select:focus {
  outline: 2px solid var(--wtl-sky); border-color: var(--wtl-sky);
}
.wtl-field--hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.wtl-form-side img { max-height: 420px; margin: 0 auto; }
.wtl-form-success, .wtl-form-error { padding: 1.5rem; border-radius: 16px; background: var(--wtl-white); }

/* Inner hero */
.wtl-page-hero { padding: 3rem 0 2rem; background: var(--wtl-sky); }
.wtl-page-hero h1 { margin: 0; font-size: clamp(1.75rem, 4vw, 2.5rem); }
.wtl-prose { max-width: 70ch; }
.wtl-prose h2 { margin-top: 2rem; }
.wtl-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.95rem; }
.wtl-table th, .wtl-table td { border: 1px solid rgba(139,94,60,0.25); padding: 0.65rem; text-align: left; }

/* Footer */
.wtl-footer { background: var(--wtl-footer); color: #fde8d7; padding: 3rem 0 2rem; position: relative; }
.wtl-footer a { color: #fde8d7; }
.wtl-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 2rem; }
.wtl-footer__heading { font-size: 1rem; margin: 0 0 0.75rem; color: var(--wtl-moon); }
.wtl-footer ul { list-style: none; margin: 0; padding: 0; }
.wtl-footer li { margin-bottom: 0.35rem; }
.wtl-footer__cta-band { margin-top: 2rem; text-align: center; }
.wtl-footer__script { font-family: var(--wtl-font-script); font-size: 1.75rem; color: var(--wtl-moon); }
.wtl-footer__copy { text-align: center; font-size: 0.85rem; opacity: 0.85; margin-top: 2rem; }
.wtl-footer__moon { width: 64px; opacity: 0.6; position: absolute; top: 1rem; right: 5%; }

/* Cookie */
.wtl-cookie {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  background: var(--wtl-footer); color: #fde8d7;
  padding: 1rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: center;
}
.wtl-cookie[hidden] { display: none !important; }

/* Reveal */
[data-wtl-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-wtl-reveal].is-visible { opacity: 1; transform: none; }

/* CTA band */
.wtl-cta-band { text-align: center; padding: 3rem 0; background: var(--wtl-blush); border-radius: 24px; margin: 2rem 0; }

/* Responsive */
@media (max-width: 900px) {
  .wtl-hero__grid, .wtl-form-layout, .wtl-grid-3, .wtl-grid-4, .wtl-steps { grid-template-columns: 1fr; }
  .wtl-hero__visual { order: -1; }
  .wtl-nav-toggle { display: flex; }
  .wtl-nav {
    position: fixed; inset: 56px 0 auto 0; background: var(--wtl-sky);
    flex-direction: column; padding: 1.5rem; transform: translateY(-120%);
    transition: transform 0.3s;
  }
  .wtl-nav.is-open { transform: translateY(0); }
  .wtl-nav__list { flex-direction: column; align-items: stretch; }
  .wtl-nav__sub { position: static; box-shadow: none; background: transparent; padding-left: 1rem; }
  .wtl-nav__has-sub.is-open .wtl-nav__sub { display: block; }
  .wtl-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .wtl-grid-4 { grid-template-columns: 1fr; }
}
