/* ==========================================================================
   Beekon Light — kid-friendly redesign
   Design language: the 32×16 LED matrix itself. Chunky rounded "pixels",
   candy accents on warm cream, deep-night bands where the light glows.
   Kid-delightful up front, parent-plain where money and safety live.
   ========================================================================== */

:root {
  --cream: #fff8ee;
  --paper: #fffdf7;
  --ink: #2a2440;
  --ink-soft: #5c5477;
  --night: #191532;
  --night-2: #221c45;
  --honey: #ffb528;
  --honey-deep: #f59e0b;
  --coral: #ff6b6b;
  --sky: #4cc9f0;
  --mint: #3ddc97;
  --lilac: #b197fc;
  --line: #efe4d2;
  --radius: 22px;
  --shadow: 0 10px 30px rgba(42, 36, 64, 0.10);
  --font-display: "Baloo 2", "Segoe UI", sans-serif;
  --font-body: "Nunito", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3, .display {
  font-family: var(--font-display);
  line-height: 1.12;
  margin: 0 0 0.4em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 6.5vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 22px; }
.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.kicker .px-row { display: inline-flex; gap: 3px; }
.px {
  width: 9px; height: 9px; border-radius: 2.5px; display: inline-block;
}
.px--honey { background: var(--honey); }
.px--coral { background: var(--coral); }
.px--sky   { background: var(--sky); }
.px--mint  { background: var(--mint); }
.px--lilac { background: var(--lilac); }

.lede { font-size: 1.18rem; color: var(--ink-soft); max-width: 34em; }

/* ----- header ----- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 248, 238, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 68px; gap: 18px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; font-family: var(--font-display);
  font-weight: 800; font-size: 1.3rem; color: var(--ink);
  white-space: nowrap;
  background: var(--ink);
  border-radius: 10px;
  padding: 7px 11px;
}
@media (max-width: 660px) {
  .brand { padding: 7px 9px; }
}
.brand img { display: block; width: 142px; height: auto; }
@media (max-width: 420px) {
  .brand img { width: 116px; }
}
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  text-decoration: none; font-family: var(--font-display); font-weight: 600;
  font-size: 0.98rem; color: var(--ink-soft);
  padding: 8px 13px; border-radius: 999px;
  transition: background 0.15s, color 0.15s;
}
.main-nav a:hover { background: #f7ecd9; color: var(--ink); }
.main-nav a[aria-current="page"] { background: var(--ink); color: #fff; }
.nav-new-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 2px;
  background: var(--coral); margin-left: 6px; vertical-align: 2px;
}
.header-actions { display: flex; align-items: center; gap: 10px; }

.bag-btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: 2px solid var(--ink); background: var(--honey); color: var(--ink);
  font-family: var(--font-display); font-weight: 700; font-size: 0.95rem;
  padding: 8px 16px; border-radius: 999px; cursor: pointer;
  box-shadow: 0 3px 0 var(--ink);
  transition: transform 0.12s, box-shadow 0.12s;
}
.bag-btn:hover { transform: translateY(-2px); box-shadow: 0 5px 0 var(--ink); }
.bag-btn:active { transform: translateY(1px); box-shadow: 0 2px 0 var(--ink); }
.bag-count {
  background: var(--ink); color: #fff; border-radius: 999px;
  min-width: 22px; height: 22px; display: inline-flex;
  align-items: center; justify-content: center;
  font-size: 0.8rem; padding: 0 6px;
}

.nav-toggle {
  display: none; background: none; border: 2px solid var(--ink);
  border-radius: 12px; padding: 7px 10px; cursor: pointer;
  font-family: var(--font-display); font-weight: 700; color: var(--ink);
}

/* ----- buttons ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  text-decoration: none; cursor: pointer;
  padding: 14px 28px; border-radius: 999px;
  border: 2px solid var(--ink);
  transition: transform 0.12s, box-shadow 0.12s;
}
.btn--primary { background: var(--honey); color: var(--ink); box-shadow: 0 4px 0 var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: 0 4px 0 var(--ink); }
.btn--night { background: var(--honey); color: var(--night); border-color: #000; box-shadow: 0 4px 0 #000; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); }
.btn--night:hover { box-shadow: 0 6px 0 #000; }
.btn:active { transform: translateY(1px); box-shadow: 0 2px 0 var(--ink); }
.btn[disabled] { opacity: 0.55; cursor: default; transform: none; }

/* ----- pixel rainbow divider ----- */
.px-strip { display: flex; gap: 5px; justify-content: center; padding: 6px 0; flex-wrap: wrap; }
.px-strip .px { width: 12px; height: 12px; border-radius: 3.5px; }

/* ----- hero ----- */
.hero { position: relative; overflow: hidden; padding: 64px 0 76px; }
.hero .wrap {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 52px; align-items: center;
}
.hero-copy .lede { margin-bottom: 26px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-price-note { font-size: 0.95rem; color: var(--ink-soft); margin-top: 14px; }
.hero-art { position: relative; }
.hero-frame {
  border-radius: var(--radius); overflow: hidden;
  border: 3px solid var(--ink); box-shadow: var(--shadow), 0 8px 0 var(--ink);
  transform: rotate(1.5deg);
}
.hero-badge {
  position: absolute; top: -16px; left: -14px; z-index: 2; transform: rotate(-6deg);
  background: var(--coral); color: #fff; border: 2px solid var(--ink);
  border-radius: 14px; padding: 8px 14px;
  font-family: var(--font-display); font-weight: 800; font-size: 0.9rem;
  box-shadow: 0 3px 0 var(--ink);
}
.float-px { position: absolute; border-radius: 4px; animation: float 5s ease-in-out infinite; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ----- trust strip ----- */
.trust-strip { background: var(--paper); border-block: 1px solid var(--line); }
.trust-strip .wrap {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-block: 26px;
}
.trust-item { display: flex; align-items: center; gap: 12px; }
.trust-item svg { width: 34px; height: 34px; flex-shrink: 0; }
.trust-item strong { font-family: var(--font-display); display: block; font-size: 0.98rem; }
.trust-item span { font-size: 0.86rem; color: var(--ink-soft); }

/* ----- cards ----- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.glow-card {
  background: var(--paper); border: 2px solid var(--ink);
  border-radius: var(--radius); padding: 28px 26px;
  box-shadow: 0 6px 0 var(--ink);
  transition: transform 0.15s;
}
.glow-card:hover { transform: translateY(-4px); }
.glow-card .card-num {
  font-family: var(--font-display); font-weight: 800; font-size: 0.85rem;
  display: inline-flex; padding: 4px 12px; border-radius: 999px;
  border: 2px solid var(--ink); margin-bottom: 16px;
}
.glow-card--honey .card-num { background: var(--honey); }
.glow-card--sky .card-num { background: var(--sky); }
.glow-card--lilac .card-num { background: var(--lilac); }
.glow-card--mint .card-num { background: var(--mint); }
.glow-card--coral .card-num { background: var(--coral); color: #fff; }
.glow-card p { color: var(--ink-soft); margin: 0; font-size: 0.98rem; }

/* ----- split feature ----- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.split-img {
  border-radius: var(--radius); overflow: hidden;
  border: 3px solid var(--ink); box-shadow: 0 8px 0 var(--ink);
}
.split-img--tiltL { transform: rotate(-1.5deg); }
.split-img--tiltR { transform: rotate(1.5deg); }

/* ----- night band (parents / glow sections) ----- */
.night { background: var(--night); color: #f4efff; }
.night .kicker { color: var(--lilac); }
.night h2, .night h3 { color: #fff; }
.night .lede, .night p { color: #c9c0e8; }
.night-card {
  background: var(--night-2); border: 2px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius); padding: 26px;
}
.night-card strong { color: #fff; font-family: var(--font-display); display: block; margin-bottom: 6px; font-size: 1.05rem; }
.night-card p { margin: 0; font-size: 0.96rem; }
.night-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 34px; }

/* ----- marquee sign ----- */
.led-sign {
  background: #0d0a1e; border: 3px solid #000; border-radius: 16px;
  padding: 14px 10px; overflow: hidden; box-shadow: inset 0 0 24px rgba(0,0,0,0.8);
}
.led-track {
  display: flex; gap: 60px; white-space: nowrap; will-change: transform;
  animation: led-scroll 18s linear infinite;
  font-family: var(--font-display); font-weight: 800; font-size: 1.15rem;
  letter-spacing: 0.22em; text-transform: uppercase;
}
.led-track span { text-shadow: 0 0 8px currentColor, 0 0 18px currentColor; }
@keyframes led-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ----- product page ----- */
.product-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
.gallery-main {
  border-radius: var(--radius); overflow: hidden; border: 3px solid var(--ink);
  box-shadow: 0 7px 0 var(--ink); margin-bottom: 16px;
  aspect-ratio: 8 / 5;
  background: var(--paper);
}
.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 64%;
}
.gallery-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery-thumbs button {
  border: 2px solid var(--ink); border-radius: 14px; overflow: hidden;
  padding: 0; cursor: pointer; background: var(--paper); opacity: 0.65;
  aspect-ratio: 4 / 3;
  transition: opacity 0.15s, transform 0.15s;
}
.gallery-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 64%;
}
.gallery-thumbs button:hover { transform: translateY(-2px); }
.gallery-thumbs button[aria-pressed="true"] { opacity: 1; box-shadow: 0 3px 0 var(--ink); }
.price-row { display: flex; align-items: baseline; gap: 14px; margin: 18px 0 6px; }
.price { font-family: var(--font-display); font-weight: 800; font-size: 2.4rem; }
.price-meta { color: var(--ink-soft); font-size: 0.98rem; }
.buy-note { font-size: 0.9rem; color: var(--ink-soft); margin-top: 12px; }

.spec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.spec-cell {
  background: var(--paper); border: 2px solid var(--ink); border-radius: 18px;
  padding: 18px 20px; box-shadow: 0 4px 0 var(--ink);
}
.spec-cell .spec-label {
  font-family: var(--font-display); font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft);
}
.spec-cell .spec-value { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; }

/* ----- shop ----- */
.shop-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0; overflow: hidden;
  background: var(--paper); border: 3px solid var(--ink);
  border-radius: var(--radius); box-shadow: 0 8px 0 var(--ink);
}
.shop-card-img img { height: 100%; object-fit: cover; object-position: center 72%; }
.shop-card-body { padding: 40px 38px; display: flex; flex-direction: column; gap: 8px; }
.shop-card-body .price { font-size: 2rem; }
.finish-dot {
  display: inline-block; width: 14px; height: 14px; border-radius: 4px;
  background: #fff; border: 2px solid var(--ink); vertical-align: -2px; margin-right: 7px;
}
.shop-facts { list-style: none; margin: 10px 0 18px; padding: 0; color: var(--ink-soft); font-size: 0.98rem; }
.shop-facts li { padding: 7px 0; border-bottom: 1px dashed var(--line); display: flex; justify-content: space-between; gap: 18px; }
.shop-facts li span:first-child { font-family: var(--font-display); font-weight: 700; color: var(--ink); }

/* ----- FAQ accordion ----- */
.faq { display: grid; gap: 14px; max-width: 760px; }
.faq-item {
  background: var(--paper); border: 2px solid var(--ink); border-radius: 18px;
  box-shadow: 0 4px 0 var(--ink); overflow: hidden;
}
.faq-item summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between;
  align-items: center; gap: 16px; padding: 18px 22px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 1.5rem; font-weight: 800; color: var(--honey-deep);
  transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 22px 20px; color: var(--ink-soft); }

/* ----- release notes ----- */
.release-header {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 8px;
}
.version-chip {
  font-family: var(--font-display); font-weight: 800; font-size: 0.95rem;
  background: var(--ink); color: var(--honey); padding: 6px 16px; border-radius: 999px;
}
.release-block { margin-top: 44px; }
.release-block > h3 {
  display: flex; align-items: center; gap: 12px; font-size: 1.45rem;
}
.beam-list { display: grid; gap: 16px; margin-top: 18px; }
.beam-item {
  background: var(--paper); border: 2px solid var(--ink); border-radius: 18px;
  padding: 20px 24px; box-shadow: 0 4px 0 var(--ink);
}
.beam-item strong { font-family: var(--font-display); font-size: 1.08rem; display: block; margin-bottom: 4px; }
.beam-item p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }
.beam-tag {
  display: inline-block; font-family: var(--font-display); font-weight: 700;
  font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 999px; border: 1.5px solid var(--ink);
  margin-left: 8px; vertical-align: 2px;
}
.beam-tag--new { background: var(--mint); }
.beam-tag--soon { background: var(--lilac); }
.beam-tag--better { background: var(--sky); }

/* ----- newsletter ----- */
.newsletter {
  background: var(--paper); border: 3px solid var(--ink); border-radius: var(--radius);
  box-shadow: 0 8px 0 var(--ink); padding: 44px 40px; text-align: center;
}
.newsletter form {
  display: flex; gap: 12px; justify-content: center; margin-top: 22px; flex-wrap: wrap;
}
.newsletter input[type="email"] {
  font-family: var(--font-body); font-size: 1rem; min-width: 280px;
  padding: 13px 18px; border: 2px solid var(--ink); border-radius: 999px;
  background: #fff; color: var(--ink);
}
.newsletter input[type="email"]:focus { outline: 3px solid var(--honey); outline-offset: 2px; }
.newsletter .fine { font-size: 0.85rem; color: var(--ink-soft); margin: 14px 0 0; }

/* ----- footer ----- */
.site-footer { background: var(--night); color: #c9c0e8; margin-top: 72px; }
.site-footer .wrap {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; padding-block: 54px 30px;
}
.site-footer h4 { font-family: var(--font-display); color: #fff; margin: 0 0 12px; font-size: 1rem; }
.site-footer a { color: #c9c0e8; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 0.96rem; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px 0 26px; text-align: center; font-size: 0.85rem;
}

/* ----- bag drawer ----- */
.bag-overlay {
  position: fixed; inset: 0; background: rgba(25, 21, 50, 0.5); z-index: 90;
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.bag-overlay.open { opacity: 1; pointer-events: auto; }
.bag-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100vw); z-index: 100;
  background: var(--cream); border-left: 3px solid var(--ink);
  transform: translateX(105%); transition: transform 0.25s ease;
  display: flex; flex-direction: column;
}
.bag-drawer.open { transform: translateX(0); }
.bag-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px; border-bottom: 2px solid var(--line);
  font-family: var(--font-display); font-weight: 800; font-size: 1.2rem;
}
.bag-close { background: none; border: 2px solid var(--ink); border-radius: 10px; font-size: 1rem; cursor: pointer; padding: 4px 10px; font-weight: 700; }
.bag-body { flex: 1; overflow: auto; padding: 22px 24px; }
.bag-empty { text-align: center; color: var(--ink-soft); padding: 40px 0; }
.bag-line {
  display: flex; gap: 14px; align-items: center; background: var(--paper);
  border: 2px solid var(--ink); border-radius: 16px; padding: 12px 14px; margin-bottom: 12px;
}
.bag-line img { width: 64px; height: 48px; object-fit: cover; border-radius: 8px; border: 2px solid var(--ink); }
.bag-line-name { font-family: var(--font-display); font-weight: 700; flex: 1; font-size: 0.98rem; }
.bag-qty { display: flex; align-items: center; gap: 8px; }
.bag-qty button {
  width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--ink);
  background: var(--paper); cursor: pointer; font-weight: 800; line-height: 1;
}
.bag-foot { border-top: 2px solid var(--line); padding: 18px 24px 24px; }
.bag-subtotal { display: flex; justify-content: space-between; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; margin-bottom: 14px; }
.bag-foot .btn { width: 100%; }
.bag-handoff-note { font-size: 0.84rem; color: var(--ink-soft); text-align: center; margin: 12px 0 0; }

/* ----- toast ----- */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px);
  background: var(--ink); color: #fff; font-family: var(--font-display); font-weight: 700;
  padding: 13px 26px; border-radius: 999px; box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transition: opacity 0.25s, transform 0.25s; z-index: 120;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ----- page hero (interior pages) ----- */
.page-hero { padding: 58px 0 30px; }
.page-hero .lede { margin-bottom: 0; }

/* ----- misc ----- */
.quote-band {
  text-align: center; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.4rem, 3.4vw, 2.1rem); max-width: 22em; margin: 0 auto;
}
.center { text-align: center; }
.mt-lg { margin-top: 44px; }
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff;
  padding: 10px 18px; border-radius: 0 0 12px 0; z-index: 200;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--honey-deep); outline-offset: 2px; }

/* ----- responsive ----- */
@media (max-width: 960px) {
  .hero .wrap, .split, .product-layout, .shop-card { grid-template-columns: 1fr; }
  .split--imgfirst .split-img { order: -1; }
  .trust-strip .wrap { grid-template-columns: repeat(2, 1fr); }
  .card-grid, .night-grid, .spec-grid { grid-template-columns: 1fr 1fr; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
  .hero-art { max-width: 560px; }
}
@media (max-width: 660px) {
  .main-nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--cream); border-bottom: 2px solid var(--ink);
    flex-direction: column; align-items: stretch; padding: 12px 18px 18px; gap: 6px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 14px; }
  .nav-toggle { display: inline-flex; }
  .card-grid, .night-grid, .trust-strip .wrap, .spec-grid,
  .site-footer .wrap, .gallery-thumbs { grid-template-columns: 1fr 1fr; }
  .card-grid, .night-grid { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .newsletter { padding: 32px 22px; }
  .newsletter input[type="email"] { min-width: 0; width: 100%; }
  .newsletter form { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .float-px, .led-track { animation: none; }
  * { transition-duration: 0.01ms !important; }
}
