:root {
  --purple-900: #26215C;
  --purple-800: #3C3489;
  --purple-600: #534AB7;
  --purple-400: #7F77DD;
  --purple-100: #EEEDFE;
  --gold: #FAC775;
  --gold-dark: #BA7517;
  --gold-mid: #EF9F27;
  --pink: #ED93B1;
  --cream: #FFF9F0;
  --white: #FFFFFF;
  --text: #2A2540;
  --muted: #5F5A75;
  --border: #E6E1F5;
  --danger: #B42318;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(38, 33, 92, 0.10);
  --font-head: "Fredoka", "Trebuchet MS", sans-serif;
  --font-body: "Nunito", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  font-size: 17px;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--purple-600); }
h1, h2, h3 { font-family: var(--font-head); color: var(--purple-900); line-height: 1.15; margin: 0 0 0.5em; font-weight: 600; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.container { width: min(1120px, 100% - 32px); margin: 0 auto; }
.section { padding: 72px 0; }
.section--white { background: var(--white); }
.section--purple { background: var(--purple-900); color: #E9E6FF; }
.section--purple h2 { color: var(--white); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 40px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.section--purple .section-head p { color: #CFCAF5; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: 1.1rem;
  padding: 14px 28px; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform 0.15s, background 0.15s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--gold); color: var(--purple-900); border-color: var(--gold-mid); }
.btn--primary:hover { background: #FBD18C; }
.btn--secondary { background: transparent; color: var(--purple-800); border-color: var(--purple-400); }
.btn--secondary:hover { background: var(--purple-100); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: wait; transform: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 249, 240, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; }
.logo img { height: 44px; width: auto; }
.nav { display: flex; align-items: center; gap: 24px; }
.nav a { text-decoration: none; color: var(--purple-800); font-weight: 700; }
.nav .btn { padding: 10px 20px; font-size: 1rem; }
@media (max-width: 820px) { .nav a:not(.btn) { display: none; } .logo img { height: 36px; } }

/* Hero */
.hero { padding: 56px 0 72px; overflow: hidden; }
.hero .container { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero-eyebrow { display: inline-block; background: var(--purple-100); color: var(--purple-800); font-weight: 800; padding: 6px 14px; border-radius: 999px; font-size: 0.9rem; margin-bottom: 18px; }
.hero p.lead { font-size: 1.25rem; color: var(--muted); max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-note { margin-top: 18px; color: var(--muted); font-size: 0.95rem; }
.hero-media { position: relative; }
.hero-media img { border-radius: 28px; box-shadow: var(--shadow); transform: rotate(1.5deg); border: 6px solid var(--white); }
.hero-badge { position: absolute; left: -14px; bottom: 24px; background: var(--white); border-radius: 16px; padding: 12px 16px; box-shadow: var(--shadow); font-weight: 800; color: var(--purple-800); display: flex; align-items: center; gap: 10px; }
.hero-badge span { font-size: 1.6rem; }
@media (max-width: 860px) { .hero .container { grid-template-columns: 1fr; } .hero-media { order: -1; } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { background: var(--cream); border-radius: var(--radius); padding: 28px; text-align: center; border: 1px solid var(--border); }
.step-num { width: 56px; height: 56px; border-radius: 50%; background: var(--purple-800); color: var(--gold); font-family: var(--font-head); font-size: 1.6rem; font-weight: 600; display: grid; place-items: center; margin: 0 auto 14px; }
.step p { color: var(--muted); margin: 0; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* Themes / examples */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 32px; }
.chip { border: 2px solid var(--border); background: var(--white); color: var(--purple-800); border-radius: 999px; padding: 8px 16px; font-weight: 800; cursor: pointer; font-family: var(--font-body); font-size: 0.95rem; }
.chip[aria-pressed="true"] { background: var(--purple-800); color: var(--white); border-color: var(--purple-800); }
.examples { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.example { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.example video, .example img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--purple-100); }
.example-body { padding: 18px 20px 22px; }
.example-body p { color: var(--muted); margin: 0; font-size: 0.95rem; }
.example--soon { display: grid; place-items: center; text-align: center; min-height: 260px; padding: 24px; border: 2px dashed var(--purple-400); background: var(--purple-100); box-shadow: none; }
.example--soon .emoji { font-size: 2.6rem; }

.sample-link { background: none; border: none; color: var(--purple-600); font-weight: 800; font-family: var(--font-body); font-size: 0.95rem; cursor: pointer; margin: -10px 0 14px; text-decoration: underline; text-align: left; padding: 0; }
.btn--small { padding: 8px 16px; font-size: 0.95rem; margin-top: 12px; }

/* Storybook page-flipper */
.book-viewer { position: fixed; inset: 0; z-index: 50; background: rgba(38, 33, 92, 0.86); display: grid; place-items: center; padding: 16px; }
.book-viewer[hidden] { display: none; }
.book-frame { background: var(--cream); border-radius: 22px; padding: 16px; width: min(1100px, 100%); max-height: 100%; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow); }
.book-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.book-head h3 { margin: 0; font-size: 1.1rem; }
.book-close { background: var(--white); border: 2px solid var(--border); border-radius: 50%; width: 40px; height: 40px; font-size: 1.1rem; cursor: pointer; color: var(--purple-800); flex: none; }
#book-page { width: 100%; height: auto; max-height: calc(100vh - 190px); object-fit: contain; border-radius: 12px; background: var(--white); user-select: none; }
.book-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: 800; color: var(--purple-800); }
.book-nav .btn { padding: 10px 20px; font-size: 1rem; }
.book-nav .btn[disabled] { opacity: 0.4; cursor: default; }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.price-card { background: var(--white); color: var(--text); border-radius: 24px; padding: 32px 28px; display: flex; flex-direction: column; position: relative; border: 2px solid transparent; }
.price-card--featured { border-color: var(--gold); transform: scale(1.03); }
.price-tag { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--gold); color: var(--purple-900); font-weight: 800; font-size: 0.85rem; padding: 4px 14px; border-radius: 999px; white-space: nowrap; }
.price { font-family: var(--font-head); font-size: 3rem; color: var(--purple-800); font-weight: 600; margin: 8px 0 4px; }
.price small { font-size: 1rem; color: var(--muted); }
.price-card ul { list-style: none; padding: 0; margin: 16px 0 24px; flex: 1; }
.price-card li { padding: 6px 0 6px 28px; position: relative; }
.price-card li::before { content: "★"; position: absolute; left: 0; color: var(--gold-mid); }
.pricing-note { text-align: center; margin-top: 28px; color: #CFCAF5; }
@media (max-width: 900px) { .pricing { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; } .price-card--featured { transform: none; } }

/* Features */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature { text-align: center; padding: 12px; }
.feature .emoji { font-size: 2.2rem; }
.feature p { color: var(--muted); font-size: 0.95rem; margin: 0; }
@media (max-width: 860px) { .features { grid-template-columns: repeat(2, 1fr); } }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { background: var(--white); border-radius: 14px; padding: 16px 20px; margin-bottom: 12px; border: 1px solid var(--border); }
.faq summary { font-weight: 800; color: var(--purple-800); cursor: pointer; }
.faq details p { margin: 12px 0 0; color: var(--muted); }

/* CTA band */
.cta-band { text-align: center; }
.cta-band p { color: var(--muted); font-size: 1.1rem; }

/* Footer */
.site-footer { background: var(--purple-900); color: #CFCAF5; padding: 40px 0; font-size: 0.95rem; }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: center; }
.site-footer a { color: var(--gold); text-decoration: none; margin-left: 18px; }
.site-footer img { height: 36px; }

/* Order wizard */
.order-page { padding: 40px 0 80px; }
.wizard { max-width: 860px; margin: 0 auto; }
.progress { display: flex; gap: 8px; margin: 0 0 28px; }
.progress div { flex: 1; height: 8px; border-radius: 99px; background: var(--border); }
.progress div.done { background: var(--purple-600); }
.panel { background: var(--white); border-radius: 24px; padding: 32px; box-shadow: var(--shadow); }
.panel h2 { margin-bottom: 6px; }
.panel .hint { color: var(--muted); margin-bottom: 24px; }
.options { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.option { border: 2px solid var(--border); border-radius: 18px; padding: 20px; cursor: pointer; background: var(--white); text-align: left; font-family: var(--font-body); font-size: 1rem; color: var(--text); transition: border-color 0.15s, transform 0.15s; }
.option:hover { border-color: var(--purple-400); transform: translateY(-2px); }
.option[aria-pressed="true"] { border-color: var(--purple-600); background: var(--purple-100); }
.option .emoji { font-size: 2rem; display: block; margin-bottom: 6px; }
.option strong { display: block; font-family: var(--font-head); font-size: 1.15rem; color: var(--purple-900); }
.option .opt-price { font-family: var(--font-head); color: var(--purple-600); font-size: 1.4rem; margin-top: 6px; display: block; }
.option small { color: var(--muted); }
.options--themes { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.options--themes .option { text-align: center; }

.field { margin-bottom: 18px; }
.field label, .field .label { display: block; font-weight: 800; color: var(--purple-900); margin-bottom: 6px; }
.field input[type="text"], .field input[type="email"], .field input[type="number"], .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 2px solid var(--border); border-radius: 12px; font-size: 1rem; font-family: var(--font-body); background: var(--white); color: var(--text);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--purple-400); }
.field textarea { min-height: 110px; resize: vertical; }
.field .help { color: var(--muted); font-size: 0.9rem; margin-top: 4px; }
.row { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .row { grid-template-columns: 1fr; } .panel { padding: 22px; } }

.child-card { border: 2px solid var(--border); border-radius: 18px; padding: 22px; margin-bottom: 18px; }
.child-card h3 { display: flex; justify-content: space-between; align-items: center; }
.link-btn { background: none; border: none; color: var(--danger); font-weight: 700; cursor: pointer; font-size: 0.95rem; }
.trait-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.trait-chips .chip { font-size: 0.9rem; padding: 6px 12px; }
.photos { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.photos .thumb { width: 84px; height: 84px; border-radius: 12px; object-fit: cover; border: 2px solid var(--border); }
.upload-btn { display: inline-flex; align-items: center; gap: 8px; border: 2px dashed var(--purple-400); color: var(--purple-800); border-radius: 12px; padding: 12px 16px; cursor: pointer; font-weight: 800; background: var(--purple-100); }
.upload-btn input { display: none; }

.check { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; }
.check input { margin-top: 5px; width: 18px; height: 18px; flex: none; }

.summary { background: var(--purple-100); border-radius: 16px; padding: 18px 20px; margin-bottom: 20px; }
.summary-row { display: flex; justify-content: space-between; padding: 4px 0; }
.summary-total { border-top: 2px solid var(--purple-400); margin-top: 8px; padding-top: 10px; font-weight: 800; font-size: 1.2rem; color: var(--purple-900); }

.summary-discount { color: #3B6D11; font-weight: 800; }
.consent-box { border: 2px dashed var(--gold-mid); background: #FFF6E3; border-radius: 16px; padding: 16px 18px; margin: 4px 0 18px; }
.consent-box--on { border-style: solid; }
.consent-toggle { margin-bottom: 0; }
.consent-toggle strong { color: var(--purple-900); }
.consent-box--on .consent-toggle { margin-bottom: 12px; }
.consent-text { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; font-size: 0.92rem; color: var(--muted); margin-bottom: 12px; }
.signature-input { font-family: "Segoe Script", "Brush Script MT", cursive !important; font-size: 1.3rem !important; }
.save-note { display: inline-block; margin-top: 8px; color: var(--gold); font-weight: 800; }

.wizard-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }
.error { color: var(--danger); font-weight: 700; margin-top: 10px; min-height: 1.2em; }
.field-error { color: var(--danger); font-size: 0.9rem; margin-top: 4px; }

/* Simple text pages */
.prose { max-width: 760px; margin: 0 auto; background: var(--white); border-radius: 24px; padding: 40px; box-shadow: var(--shadow); }
.prose h2 { font-size: 1.4rem; margin-top: 1.6em; }
.center { text-align: center; }
