/* =========================================================================
   SILLY SHAPE LEARNING — SITE STYLES
   A modern, bold, kid-friendly evolution of the Silly Shape brand:
   Play (games) + Shop (books) + Membership, all in one place.
   ========================================================================= */

:root {
  --pink: #ff6fb0;
  --pink-soft: #ffd6ea;
  --lavender: #9b7bf0;
  --lavender-soft: #e6ddff;
  --mint: #2fd9a8;
  --mint-soft: #cdf7ea;
  --sky: #4fb6ff;
  --sky-soft: #d9edff;
  --yellow: #ffc93c;
  --yellow-soft: #fff2cf;
  --coral: #ff7a5c;
  --ink: #2f2438;
  --ink-soft: #6a5d78;
  --white: #ffffff;
  --cream: #fffaf3;
  --shadow: 0 14px 30px rgba(90, 50, 110, 0.16);
  --shadow-soft: 0 6px 16px rgba(90, 50, 110, 0.12);
  --shadow-pop: 0 10px 0 rgba(0,0,0,0.08);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Nunito', 'Segoe UI', sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 8%, #ffe3f2 0%, transparent 42%),
    radial-gradient(circle at 92% 12%, #e7e0ff 0%, transparent 48%),
    radial-gradient(circle at 15% 92%, #d3fbee 0%, transparent 50%),
    radial-gradient(circle at 88% 88%, #fff2cf 0%, transparent 46%),
    linear-gradient(180deg, #fffaf6 0%, #f7f3ff 45%, #f1fdf8 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

h1, h2, h3, h4, .display {
  font-family: 'Baloo 2', 'Nunito', sans-serif;
  font-weight: 800;
  color: var(--ink);
}

a { color: inherit; }
img { max-width: 100%; display: block; }

.wrap {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 250, 246, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--white);
  box-shadow: 0 2px 12px rgba(90, 50, 110, 0.08);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand img { height: 100px; width: auto; transition: transform 0.3s ease; }
.brand:hover img { transform: rotate(-4deg) scale(1.04); }

.brand-name {
  font-family: 'Baloo 2', sans-serif;
  font-size: 2.1rem;
  line-height: 1.1;
  background: linear-gradient(90deg, var(--pink), var(--lavender));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media (max-width: 640px) {
  .brand img { height: 68px; }
  .brand-name { font-size: 1.5rem; }
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.main-nav a {
  text-decoration: none;
  font-weight: 800;
  color: var(--ink-soft);
  font-size: 0.95rem;
  padding: 9px 14px;
  border-radius: 999px;
  transition: all 0.18s ease;
}

.main-nav a:hover { background: var(--pink-soft); color: var(--pink); }
.main-nav a.active { background: var(--ink); color: #fff; }

.nav-cta {
  background: linear-gradient(135deg, var(--yellow), #ffb03c) !important;
  color: var(--ink) !important;
  margin-left: 6px;
}

/* ---------- Buttons ---------- */

.btn {
  border: none;
  border-radius: 999px;
  padding: 15px 28px;
  font-family: 'Baloo 2', sans-serif;
  font-size: 1.02rem;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-pop);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(0); box-shadow: 0 4px 0 rgba(0,0,0,0.08); }

.btn-primary { background: linear-gradient(135deg, var(--pink), #ff4f9a); color: #fff; }
.btn-secondary { background: linear-gradient(135deg, var(--sky), #2f9dff); color: #fff; }
.btn-mint { background: linear-gradient(135deg, var(--mint), #17c496); color: #06382b; }
.btn-yellow { background: linear-gradient(135deg, var(--yellow), #ffab2e); color: var(--ink); }
.btn-outline { background: #fff; color: var(--ink); border: 2px solid var(--lavender-soft); box-shadow: none; }
.btn-lg { padding: 18px 34px; font-size: 1.12rem; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Hero ---------- */

.hero {
  padding: 54px 0 20px;
  text-align: center;
}

.hero .kicker {
  display: inline-block;
  background: var(--white);
  color: var(--pink);
  font-weight: 800;
  font-size: 0.82rem;
  padding: 8px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.1;
  margin: 0 0 16px;
}

.hero h1 .accent {
  background: linear-gradient(90deg, var(--pink), var(--lavender), var(--sky));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  max-width: 640px;
  margin: 0 auto 28px;
  font-size: 1.15rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 36px;
}

.hero-stats .stat { text-align: center; }
.hero-stats .stat strong { display: block; font-family: 'Baloo 2'; font-size: 1.6rem; color: var(--pink); }
.hero-stats .stat span { font-size: 0.85rem; color: var(--ink-soft); font-weight: 700; }

/* ---------- Section shell ---------- */

.section { padding: 54px 0; }
.section-tight { padding: 30px 0; }

.section-title {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 38px;
}

.section-title .eyebrow {
  display: inline-block;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--lavender);
  margin-bottom: 8px;
}

.section-title h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin: 0 0 10px; }
.section-title p { color: var(--ink-soft); margin: 0; font-size: 1.05rem; }

/* ---------- Cards (generic) ---------- */

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* ---------- Category tabs ---------- */

.tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.tab-btn {
  background: var(--white);
  border: none;
  border-radius: 999px;
  padding: 11px 20px;
  font-family: 'Baloo 2';
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink-soft);
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: all 0.18s ease;
}

.tab-btn.active {
  background: linear-gradient(135deg, var(--pink), var(--lavender));
  color: #fff;
}

/* ---------- Game grid ---------- */

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 24px;
}

.game-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow-soft);
  background: var(--white);
  display: block;
}

.game-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }

.game-card .thumb {
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.2rem;
  position: relative;
}

.game-card .thumb .emoji { filter: drop-shadow(0 6px 10px rgba(0,0,0,0.12)); }

.game-card .badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--mint);
  color: #063d2e;
}

.game-card .badge.premium { background: var(--yellow); color: #5c3d00; }

.game-card .lock {
  position: absolute;
  inset: 0;
  background: rgba(47, 36, 56, 0.55);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  gap: 6px;
  font-size: 0.85rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.game-card:hover .lock { opacity: 1; }

.game-card .info { padding: 14px 16px 18px; }
.game-card h3 { font-size: 1.05rem; margin: 0 0 5px; }
.game-card p { font-size: 0.85rem; color: var(--ink-soft); margin: 0; line-height: 1.4; }

.tone-pink { background: linear-gradient(160deg, #ffe0f0, #ffd6ea); }
.tone-lavender { background: linear-gradient(160deg, #ece3ff, #e6ddff); }
.tone-mint { background: linear-gradient(160deg, #d6faec, #cdf7ea); }
.tone-sky { background: linear-gradient(160deg, #e2f3ff, #d9edff); }
.tone-yellow { background: linear-gradient(160deg, #fff2cf, #ffe8ad); }

/* ---------- Book grid (shop) ---------- */

.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 26px;
}

.book-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 14px 14px 18px;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: block;
}

.book-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }

.book-card .cover-frame {
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 12px;
  aspect-ratio: 3/4;
  background: linear-gradient(160deg, #fef0f7, #f1ecff);
}

.book-card .cover-frame img { width: 100%; height: 100%; object-fit: cover; }
.book-card h3 { font-size: 1.02rem; margin: 0 0 5px; }
.book-card p { font-size: 0.85rem; color: var(--ink-soft); margin: 0; line-height: 1.4; }

.member-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--pink);
  margin-top: 8px;
}

/* ---------- Pricing ---------- */

.billing-toggle {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin: 0 auto 40px;
}

.billing-toggle span { font-weight: 800; color: var(--ink-soft); font-size: 0.95rem; }
.billing-toggle span.active { color: var(--ink); }

.switch {
  position: relative;
  width: 56px;
  height: 30px;
  background: var(--lavender-soft);
  border-radius: 999px;
  border: none;
  cursor: pointer;
}

.switch .knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  background: var(--lavender);
  border-radius: 50%;
  transition: transform 0.22s ease;
}

.switch.on .knob { transform: translateX(26px); background: var(--pink); }

.save-badge {
  background: var(--mint-soft);
  color: #06382b;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
}

.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  max-width: 780px;
  margin: 0 auto;
}

@media (max-width: 680px) { .plans { grid-template-columns: 1fr; } }

.plan-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-soft);
  position: relative;
  border: 3px solid transparent;
}

.plan-card.featured {
  border-color: var(--pink);
  box-shadow: var(--shadow);
  transform: scale(1.03);
}

.plan-ribbon {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--pink), var(--lavender));
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 6px 16px;
  border-radius: 999px;
}

.plan-card h3 { font-size: 1.3rem; margin: 6px 0 4px; }
.plan-card .plan-desc { color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 18px; }

.plan-price {
  font-family: 'Baloo 2';
  font-size: 2.4rem;
  color: var(--ink);
  margin-bottom: 4px;
}

.plan-price span { font-size: 1rem; color: var(--ink-soft); font-weight: 700; }
.plan-price-sub { font-size: 0.82rem; color: var(--ink-soft); margin-bottom: 22px; }

.plan-features { list-style: none; padding: 0; margin: 0 0 26px; }
.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 7px 0;
  font-size: 0.92rem;
  color: var(--ink);
}

.plan-features li.dim { color: var(--ink-soft); opacity: 0.65; }
.plan-features li .check { color: var(--mint); font-weight: 900; }
.plan-features li .cross { color: #d8c9e2; font-weight: 900; }

/* ---------- Feature strip (home) ---------- */

.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

@media (max-width: 760px) { .feature-strip { grid-template-columns: 1fr; } }

.feature-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.feature-box .icon {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  margin: 0 auto 14px;
}

.feature-box h3 { font-size: 1.1rem; margin: 0 0 8px; }
.feature-box p { color: var(--ink-soft); font-size: 0.9rem; margin: 0; line-height: 1.5; }

/* ---------- CTA band ---------- */

.cta-band {
  background: linear-gradient(120deg, var(--pink), var(--lavender));
  border-radius: var(--radius-xl);
  padding: 48px 30px;
  text-align: center;
  color: #fff;
}

.cta-band h2 { color: #fff; margin: 0 0 12px; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.cta-band p { color: rgba(255,255,255,0.92); max-width: 520px; margin: 0 auto 26px; font-size: 1.05rem; }

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 40px;
  padding: 46px 20px 40px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.site-footer .brand-name { font-size: 1.2rem; display: inline-block; margin-bottom: 6px; }
.footer-links { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; margin: 14px 0; }
.footer-links a { text-decoration: none; font-weight: 700; color: var(--ink-soft); }
.footer-links a:hover { color: var(--pink); }

/* ---------- Breadcrumb / misc ---------- */

.breadcrumb { padding: 20px 0 0; font-size: 0.9rem; color: var(--ink-soft); }
.breadcrumb a { text-decoration: none; font-weight: 700; color: var(--lavender); }

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  padding: 7px 15px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--ink-soft);
  box-shadow: var(--shadow-soft);
}

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: #fff;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  z-index: 200;
}

.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Join modal (js/membership.js: SillyShapeMembership.openJoinModal) ---------- */

.ss-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(45, 30, 60, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.ss-modal-overlay.show { opacity: 1; pointer-events: auto; }

.ss-modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 36px 32px 28px;
  max-width: 380px;
  width: 100%;
  text-align: center;
  position: relative;
  transform: translateY(10px);
  transition: transform 0.2s ease;
}

.ss-modal-overlay.show .ss-modal { transform: translateY(0); }

.ss-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: var(--ink-soft);
  padding: 4px;
}

.ss-modal-emoji { font-size: 2.2rem; margin-bottom: 6px; }
.ss-modal h3 { font-size: 1.25rem; margin: 0 0 8px; }
.ss-modal p { color: var(--ink-soft); font-size: 0.9rem; line-height: 1.5; margin: 0 0 20px; }

.ss-modal-form { display: grid; gap: 12px; margin-bottom: 16px; }

.ss-modal-input {
  padding: 13px 16px;
  border-radius: 999px;
  border: 2px solid var(--lavender-soft);
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  outline: none;
}

.ss-modal-input:focus { border-color: var(--pink); }

.ss-modal-fineprint { font-size: 0.75rem; color: var(--ink-soft); opacity: 0.75; margin: 0; }

/* ---------- Lightbox (shop detail reuse) ---------- */

.lightbox {
  position: fixed; inset: 0; background: rgba(40,28,48,0.82);
  display: none; align-items: center; justify-content: center; z-index: 100; padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: min(90vw, 640px); max-height: 85vh; border-radius: var(--radius-md); box-shadow: 0 20px 60px rgba(0,0,0,0.4); }
.lightbox-close {
  position: absolute; top: 24px; right: 28px; background: var(--white); border: none;
  border-radius: 50%; width: 42px; height: 42px; font-size: 1.3rem; cursor: pointer; color: var(--ink);
}

.book-detail { display: grid; grid-template-columns: minmax(240px, 380px) 1fr; gap: 44px; padding: 30px 0 20px; align-items: start; }
@media (max-width: 760px) { .book-detail { grid-template-columns: 1fr; } }
.detail-cover { border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow); background: var(--white); padding: 10px; }
.detail-cover img { border-radius: var(--radius-sm); }
.detail-info h1 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); margin: 0 0 12px; }
.detail-info .tagline { font-size: 1.08rem; color: var(--ink-soft); line-height: 1.6; margin: 0 0 26px; }
.buy-buttons { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }
.mockups-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.mockup-thumb { border-radius: var(--radius-sm); overflow: hidden; background: var(--white); padding: 6px; box-shadow: var(--shadow-soft); cursor: pointer; border: none; display: block; width: 100%; }
.mockup-thumb img { border-radius: 10px; aspect-ratio: 3/4; object-fit: cover; width: 100%; }
.mockups-note { background: var(--white); border-radius: var(--radius-sm); padding: 14px 18px; font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 20px; box-shadow: var(--shadow-soft); }

/* ---------- Nav: second "Join / Membership" CTA ---------- */

.nav-join {
  background: linear-gradient(135deg, var(--lavender), #8b6fd9) !important;
  color: #fff !important;
}

/* ---------- Tool preview (homepage "Try It Free") ---------- */

.tool-preview {
  display: flex;
  align-items: center;
  gap: 34px;
  max-width: 780px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.tool-preview-card {
  position: relative;
  display: block;
  width: 260px;
  flex-shrink: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.tool-preview-card img { width: 100%; display: block; aspect-ratio: 3/4; object-fit: cover; }

.tool-preview-play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.6rem;
  background: rgba(255,255,255,0.15);
  transition: background 0.2s ease;
}

.tool-preview-card:hover .tool-preview-play { background: rgba(255,255,255,0.32); }

.tool-preview-actions { flex: 1 1 260px; text-align: center; }

.tool-preview-note {
  margin: 16px auto 0;
  max-width: 320px;
  color: var(--ink-soft);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* ---------- Coloring tool: book switcher ---------- */

.book-switcher { max-width: 1200px; margin: 30px auto 10px; padding: 0 20px; }
.book-switcher h4 {
  font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--ink-soft); margin: 0 0 12px; text-align: center;
}

.book-switcher-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 12px;
}

.book-switch-tile {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  text-decoration: none;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 8px;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: transform 0.12s ease;
}

.book-switch-tile:hover { transform: translateY(-3px); }
.book-switch-tile.active { outline: 3px solid var(--pink); }
.book-switch-tile.locked { cursor: pointer; opacity: 0.6; }
.book-switch-tile.locked:hover { transform: none; }

.book-switch-tile img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 8px; }
.book-switch-tile span:not(.lock-badge) { font-size: 0.72rem; font-weight: 800; color: var(--ink); text-align: center; line-height: 1.2; }
.book-switch-tile .lock-badge { position: absolute; top: 6px; right: 6px; font-size: 0.9rem; }

/* ---------- Coloring tool: members-only page lock overlay ---------- */

.lock-overlay {
  position: absolute; inset: 14px;
  background: rgba(255,255,255,0.97);
  border-radius: var(--radius-md);
  display: none;
  flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 30px;
  gap: 8px;
  z-index: 5;
}

.lock-overlay .lock-emoji { font-size: 2.6rem; }
.lock-overlay h3 { margin: 0; font-family: 'Baloo 2'; font-size: 1.2rem; }
.lock-overlay p { margin: 0 0 10px; color: var(--ink-soft); font-size: 0.92rem; max-width: 320px; }
.not-found { text-align: center; padding: 100px 20px; }

/* =========================================================================
   HOMEPAGE REDESIGN — Studio showcase, animations, ambient music
   ========================================================================= */

/* ---- floating decorative shapes (behind the hero) ---- */
.float-layer { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.hero-float { position: relative; }
.hero-float > *:not(.float-layer) { position: relative; z-index: 1; }
.studio-showcase { position: relative; }
.float-shape { position: absolute; font-size: 2.4rem; opacity: 0.55; will-change: transform;
  animation: floaty 9s ease-in-out infinite; filter: drop-shadow(0 6px 10px rgba(150,90,170,0.12)); }
@keyframes floaty {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-22px) rotate(8deg); }
}
@media (prefers-reduced-motion: reduce) { .float-shape { animation: none; } }

/* ---- studio showcase hero ---- */
.studio-hero { position: relative; z-index: 1; padding: 30px 0 8px; text-align: center; }
.studio-hero .kicker {
  display: inline-block; background: #fff; color: var(--pink); font-weight: 800;
  font-size: 0.82rem; padding: 8px 18px; border-radius: 999px; box-shadow: var(--shadow-soft); margin-bottom: 16px;
}
.studio-hero h1 { font-size: clamp(2rem, 5vw, 3.3rem); line-height: 1.08; margin: 0 0 14px; }
.studio-hero h1 .accent {
  background: linear-gradient(90deg, var(--pink), var(--lavender), var(--sky));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.studio-hero p.lead { max-width: 600px; margin: 0 auto 22px; font-size: 1.12rem; color: var(--ink-soft); line-height: 1.55; }

/* the "app window" frame that shows the real studio */
.studio-window {
  position: relative; max-width: 940px; margin: 6px auto 0; border-radius: 20px;
  background: #fff; box-shadow: 0 26px 60px rgba(120,70,150,0.28), 0 4px 0 rgba(0,0,0,0.04);
  overflow: hidden; border: 3px solid #fff; cursor: pointer;
  transition: transform 0.3s cubic-bezier(.2,.8,.3,1.2), box-shadow 0.3s ease;
  animation: rise-in 0.9s cubic-bezier(.2,.9,.3,1.1) both;
}
.studio-window:hover { transform: translateY(-6px) scale(1.008); box-shadow: 0 34px 74px rgba(120,70,150,0.34); }
@keyframes rise-in { from { opacity: 0; transform: translateY(40px) scale(0.97); } to { opacity: 1; transform: none; } }

.studio-chrome {
  display: flex; align-items: center; gap: 8px; padding: 10px 14px;
  background: linear-gradient(180deg, #fff, #fdf3fb); border-bottom: 2px solid var(--pink-soft);
}
.studio-chrome .dot { width: 12px; height: 12px; border-radius: 50%; }
.studio-chrome .dot.r { background: #ff6f8e; } .studio-chrome .dot.y { background: #ffcf4a; } .studio-chrome .dot.g { background: #58d6a6; }
.studio-chrome .bar { flex: 1; text-align: center; font-weight: 800; font-size: 0.8rem; color: var(--ink-soft); }

.studio-frame-wrap { position: relative; height: 520px; background: #fdf7fd; }
@media (max-width: 700px) { .studio-frame-wrap { height: 420px; } }
.studio-frame-wrap iframe { width: 100%; height: 100%; border: 0; display: block; pointer-events: none; }

/* click-catcher + launch overlay */
.studio-launch {
  position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 26px; text-decoration: none;
  background: linear-gradient(180deg, rgba(255,255,255,0) 55%, rgba(120,70,150,0.10) 100%);
  transition: background 0.25s ease;
}
.studio-window:hover .studio-launch { background: linear-gradient(180deg, rgba(255,180,220,0.06) 40%, rgba(120,70,150,0.20) 100%); }
.studio-launch .pill {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, var(--pink), #ff4f9a); color: #fff;
  font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 1.12rem;
  padding: 15px 30px; border-radius: 999px; box-shadow: 0 12px 26px rgba(255,80,150,0.42);
  animation: pulse-pill 2.2s ease-in-out infinite;
}
.studio-window:hover .studio-launch .pill { transform: scale(1.05); }
@keyframes pulse-pill { 0%,100% { box-shadow: 0 12px 26px rgba(255,80,150,0.42); } 50% { box-shadow: 0 12px 40px rgba(255,80,150,0.66); } }
.studio-livetag {
  position: absolute; top: 12px; right: 12px; background: #fff; color: var(--pink);
  font-size: 0.72rem; font-weight: 800; padding: 6px 12px; border-radius: 999px; box-shadow: var(--shadow-soft);
  display: inline-flex; align-items: center; gap: 6px;
}
.studio-livetag .live-dot { width: 8px; height: 8px; border-radius: 50%; background: #ff4f7a; animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }

.studio-hero-sub { margin: 20px auto 0; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; align-items: center; }
.studio-hero-note { color: var(--ink-soft); font-size: 0.9rem; }

/* ---- scroll reveal ---- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2,.8,.3,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* stagger children a touch */
.reveal-group.in > * { animation: pop-up 0.6s cubic-bezier(.2,.9,.3,1.1) both; }
.reveal-group.in > *:nth-child(2) { animation-delay: 0.07s; }
.reveal-group.in > *:nth-child(3) { animation-delay: 0.14s; }
.reveal-group.in > *:nth-child(4) { animation-delay: 0.21s; }
.reveal-group.in > *:nth-child(5) { animation-delay: 0.28s; }
@keyframes pop-up { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* extra life on the feature icons */
.feature-box { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.feature-box:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.feature-box:hover .icon { transform: scale(1.12) rotate(-6deg); }
.feature-box .icon { transition: transform 0.25s ease; }

/* ---- ambient music player bar (injected site-wide by nav.js) ---- */
.ss-music-bar {
  position: fixed; right: 18px; bottom: 18px; z-index: 300;
  display: flex; align-items: center; gap: 3px;
  background: #fff; border: 2px solid var(--pink-soft); border-radius: 999px;
  padding: 6px 10px 6px 6px; box-shadow: var(--shadow-soft);
}
.ssm-btn {
  border: none; background: transparent; cursor: pointer; font-size: 1rem; line-height: 1;
  width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: var(--ink); transition: background 0.15s ease, transform 0.1s ease;
}
.ssm-btn:hover { background: var(--pink-soft); }
.ssm-btn:active { transform: translateY(1px); }
.ssm-play { background: linear-gradient(135deg, var(--lavender), #8b6fd9); color: #fff; }
.ssm-play:hover { background: linear-gradient(135deg, var(--lavender), #7a5fd0); }
.ssm-play.on { background: linear-gradient(135deg, var(--pink), #ff4f9a); }
.ssm-name {
  font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 0.82rem; color: var(--ink-soft);
  padding: 0 8px; white-space: nowrap; max-width: 118px; overflow: hidden; text-overflow: ellipsis;
}
.ssm-vol { display: flex; align-items: center; gap: 4px; padding-right: 4px; }
.ssm-vol .ssm-volicon { font-size: 0.9rem; }
.ssm-vol input { width: 66px; accent-color: var(--lavender); height: 22px; cursor: pointer; }
.ss-music-bar.hint { animation: music-hint 2.4s ease-in-out 3; }
@keyframes music-hint { 0%,100% { transform: translateY(0); } 30% { transform: translateY(-6px); } 60% { transform: translateY(0); } }
@media (max-width: 720px) {
  .ss-music-bar { right: 10px; bottom: 10px; padding: 5px 6px 5px 5px; }
  .ssm-name, .ssm-vol { display: none; }
}

/* footer motto */
.footer-motto {
  font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 1.05rem; letter-spacing: .3px;
  background: linear-gradient(90deg, var(--pink), var(--lavender)); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin: 2px 0 6px;
}

/* ---- homepage action cards (the 3 buttons) ---- */
.action-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 820px) { .action-cards { grid-template-columns: 1fr; } }
.action-card {
  display: flex; flex-direction: column; align-items: flex-start;
  background: var(--white); border-radius: var(--radius-lg); padding: 26px 24px 22px;
  text-decoration: none; color: var(--ink); box-shadow: var(--shadow-soft);
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.action-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--pink-soft); }
.action-icon {
  width: 62px; height: 62px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; margin-bottom: 14px; transition: transform 0.25s ease;
}
.action-card:hover .action-icon { transform: scale(1.12) rotate(-6deg); }
.action-card h3 { font-size: 1.2rem; margin: 0 0 8px; }
.action-card p { color: var(--ink-soft); font-size: 0.92rem; line-height: 1.5; margin: 0 0 16px; }
.action-cta { margin-top: auto; font-family: 'Baloo 2', sans-serif; font-weight: 800; color: var(--pink); font-size: 0.98rem; }
.action-card.tone-sky .action-cta { color: var(--sky); }
.action-card.tone-lavender .action-cta { color: var(--lavender); }

/* ---- collections / catalog cards ---- */
.catalog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 820px) { .catalog-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; } }
.catalog-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-soft); display: flex; flex-direction: column; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.catalog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.catalog-cover { aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; position: relative; }
.catalog-cover img { width: 100%; height: 100%; object-fit: cover; }
.catalog-emoji { font-size: 4.2rem; filter: drop-shadow(0 8px 12px rgba(120,80,140,0.18)); }
.catalog-body { padding: 20px 22px 24px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.catalog-badge { font-size: 0.72rem; font-weight: 800; padding: 5px 12px; border-radius: 999px; }
.catalog-badge.live { background: var(--mint-soft); color: #06382b; }
.catalog-badge.soon { background: var(--yellow-soft); color: #7a5600; }
.catalog-body h3 { font-size: 1.35rem; margin: 4px 0 2px; }
.catalog-body p { color: var(--ink-soft); font-size: 0.9rem; line-height: 1.5; margin: 0 0 14px; }
.catalog-body .btn { margin-top: auto; }
