:root {
  --bg: #fff8ee;
  --bg-soft: #fff2dc;
  --ink: #1f2340;
  --muted: #5e6485;
  --line: #1f2340;
  --yellow: #ffd84d;
  --pink: #ff74b9;
  --blue: #7ed7ff;
  --green: #8fe388;
  --orange: #ffb35c;
  --lilac: #c8a2ff;
  --cream: #fffdf7;
  --shadow: 0 14px 0 #1f2340;
  --shadow-soft: 0 14px 28px rgba(31, 35, 64, 0.15);
  --radius: 28px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 8% 8%, rgba(255, 216, 77, 0.45) 0, transparent 18%),
    radial-gradient(circle at 92% 14%, rgba(255, 116, 185, 0.32) 0, transparent 20%),
    radial-gradient(circle at 82% 84%, rgba(126, 215, 255, 0.28) 0, transparent 19%),
    linear-gradient(180deg, #fff9f1 0%, #fff4df 100%);
  color: var(--ink);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
p { margin: 0 0 1rem; }
h1, h2, h3 { line-height: 1.03; margin: 0 0 1rem; letter-spacing: -0.04em; }
ul { margin: 0; padding-left: 1.2rem; }
img { max-width: 100%; display: block; }

.container {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
}
.narrow { max-width: 860px; }

.floating-emojis {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.floating-emojis span {
  position: absolute;
  font-size: clamp(1.2rem, 2vw, 2rem);
  opacity: 0.14;
  animation: drift 13s ease-in-out infinite;
}
.floating-emojis span:nth-child(1) { top: 10%; left: 4%; }
.floating-emojis span:nth-child(2) { top: 24%; right: 7%; animation-delay: 1s; }
.floating-emojis span:nth-child(3) { top: 52%; left: 6%; animation-delay: 2.4s; }
.floating-emojis span:nth-child(4) { top: 72%; right: 10%; animation-delay: 1.6s; }
.floating-emojis span:nth-child(5) { top: 84%; left: 22%; animation-delay: 0.8s; }
.floating-emojis span:nth-child(6) { top: 18%; left: 48%; animation-delay: 2s; }

@keyframes drift {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-12px) rotate(8deg); }
}

.site-header,
main,
.site-footer { position: relative; z-index: 1; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 25;
  backdrop-filter: blur(12px);
  background: rgba(255, 248, 238, 0.78);
  border-bottom: 3px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}
.brand {
  font-weight: 900;
  font-size: 1.2rem;
}
.nav-links {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}
.nav-links a:not(.button) {
  color: var(--muted);
  font-weight: 700;
}

.hero { padding: 4.5rem 0 2rem; }
.hero-grid,
.two-col,
.split-highlight,
.footer-grid {
  display: grid;
  gap: 2rem;
}
.hero-grid {
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
}
.hero-copy h1 {
  font-size: clamp(2.6rem, 5vw, 5rem);
  max-width: 11ch;
}
.hero-text {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 58ch;
}
.eyebrow,
.section-label,
.book-badge,
.sticker,
.price-sticker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 3px solid var(--line);
  border-radius: 999px;
  font-weight: 800;
}
.eyebrow,
.section-label,
.book-badge {
  padding: 0.5rem 0.9rem;
  background: var(--cream);
  box-shadow: 0 6px 0 var(--line);
}
.sticker-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.sticker {
  padding: 0.45rem 0.9rem;
  background: var(--yellow);
  transform: rotate(-3deg);
}
.sticker:last-child {
  background: var(--blue);
  transform: rotate(2deg);
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.6rem 0 1rem;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.35rem;
  border-radius: 999px;
  font-weight: 900;
  border: 3px solid var(--line);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary {
  background: var(--pink);
  color: #fff;
  box-shadow: 0 8px 0 var(--line);
}
.button-secondary,
.button-small {
  background: var(--cream);
  box-shadow: 0 8px 0 var(--line);
}
.button-large { width: 100%; }

.hero-points {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
}
.hero-points li {
  background: #fff;
  border: 3px solid var(--line);
  border-radius: 999px;
  padding: 0.6rem 0.9rem;
  font-weight: 700;
}

.hero-visual-wrap {
  position: relative;
  padding-top: 2rem;
}
.hero-card,
.feature-card,
.hack-card,
.testimonial-card,
.pricing-card,
.highlight-box,
.faq-grid details,
.trust-item,
.faq-shell {
  background: var(--cream);
  border: 3px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.playful-card {
  padding: 1.2rem;
  background: linear-gradient(180deg, #fffdf7 0%, #fff7e9 100%);
}
.hero-illustration {
  background: linear-gradient(180deg, #fff3b8 0%, #ffe2f2 100%);
  border: 3px solid var(--line);
  border-radius: 24px;
  padding: 0.8rem;
  margin-bottom: 1rem;
}
.mini-cover {
  background: linear-gradient(145deg, #fff 0%, #fff3cf 100%);
  border: 3px solid var(--line);
  border-radius: 24px;
  padding: 1.3rem;
}
.book-overline {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  color: var(--muted);
}
.book-cover h2 { font-size: clamp(1.8rem, 3vw, 2.7rem); }
.book-subline { color: var(--muted); }
.comic-bubble {
  position: absolute;
  max-width: 210px;
  background: #fff;
  border: 3px solid var(--line);
  border-radius: 24px;
  padding: 0.8rem 1rem;
  font-weight: 800;
  box-shadow: 0 8px 0 var(--line);
}
.bubble-left { top: 0; left: -1rem; transform: rotate(-6deg); }
.bubble-right { top: 1.2rem; right: -0.5rem; transform: rotate(6deg); }

.trust-bar { padding: 0 0 1rem; }
.trust-grid,
.card-grid,
.faq-grid {
  display: grid;
  gap: 1.25rem;
}
.trust-grid,
.card-grid.three { grid-template-columns: repeat(3, 1fr); }
.trust-item {
  padding: 1rem 1.2rem;
  text-align: center;
  font-weight: 900;
  background: #fff;
}

.section { padding: 4.25rem 0; }
.alt-section {
  background: linear-gradient(180deg, rgba(255,255,255,0.2), rgba(255,255,255,0));
}
.centered-head { text-align: center; margin-inline: auto; }
.two-col,
.split-highlight,
.footer-grid { grid-template-columns: repeat(2, 1fr); }
.section-head { max-width: 760px; margin-bottom: 2rem; }
.section-head p,
.two-col p,
.feature-card p,
.hack-card p,
.testimonial-card p,
.highlight-box p,
.legal-page p,
.legal-page li,
.pricing-lead,
.footer-grid p,
.footer-grid li a,
.footer-bottom p,
.faq-grid p {
  color: var(--muted);
}
.doodle-underline {
  width: 180px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='18' viewBox='0 0 180 18'%3E%3Cpath d='M4 12c28 4 53-8 82-8 29 0 58 11 90 6' fill='none' stroke='%23ff74b9' stroke-width='7' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center/contain;
}
.playful-grid .feature-card,
.hacks-grid .hack-card,
.testimonials-grid .testimonial-card { position: relative; overflow: visible; }
.feature-card,
.hack-card,
.testimonial-card { padding: 1.5rem; }
.tilt-left { transform: rotate(-1.4deg); }
.tilt-right { transform: rotate(1.4deg); }
.emoji-badge {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  border: 3px solid var(--line);
  background: var(--yellow);
  font-size: 1.5rem;
  margin-bottom: 0.9rem;
}
.cartoon-divider {
  max-width: 780px;
  margin: 0 auto 1.5rem;
}
.hack-number {
  display: inline-flex;
  margin-bottom: 0.9rem;
  font-weight: 900;
}
.card-yellow { background: #fff5bf; }
.card-pink { background: #ffe1f1; }
.card-blue { background: #dff6ff; }
.card-green { background: #e4ffd6; }
.card-orange { background: #ffe8cf; }
.card-lilac { background: #f0e5ff; }

.usp-section .highlight-box {
  padding: 1.5rem;
  background: linear-gradient(180deg, #fff 0%, #fff0d2 100%);
}
.mini-stickers {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.mini-stickers span {
  background: #fff;
  border: 3px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 0.8rem;
  font-weight: 800;
}
.speech-card::after {
  content: "";
  position: absolute;
  left: 24px;
  bottom: -16px;
  width: 28px;
  height: 28px;
  background: inherit;
  border-right: 3px solid var(--line);
  border-bottom: 3px solid var(--line);
  transform: rotate(35deg);
}
.stars { color: #ff9d00; letter-spacing: 0.14em; margin-bottom: 0.8rem; }

.pricing-wrap {
  display: flex;
  justify-content: center;
}
.comic-pricing {
  max-width: 790px;
  width: 100%;
  padding: 2rem;
  position: relative;
  background: linear-gradient(180deg, #fff 0%, #fff1d8 100%);
}
.price-sticker {
  position: absolute;
  top: -18px;
  right: 24px;
  padding: 0.65rem 1rem;
  background: var(--yellow);
  transform: rotate(8deg);
  box-shadow: 0 8px 0 var(--line);
}
.price-line {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 1rem 0 1.5rem;
}
.price {
  font-size: clamp(2.6rem, 5vw, 4.5rem);
  font-weight: 900;
}
.small-note,
.microcopy,
.price-note { font-size: 0.95rem; }
.check-list {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  list-style: none;
  padding: 0;
}
.check-list li {
  background: rgba(255,255,255,0.82);
  border: 3px solid var(--line);
  border-radius: 18px;
  padding: 0.75rem 0.9rem;
  font-weight: 800;
}
.purchase-box {
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.78) 0%, rgba(255,255,255,0.56) 100%);
  border: 3px dashed var(--line);
}
.purchase-topline {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 3px solid var(--line);
  background: #fff;
  font-weight: 800;
}
.checkout-card {
  display: grid;
  gap: 1rem;
  padding: 1.2rem;
  border-radius: 22px;
  background: linear-gradient(180deg, #fffdf9 0%, #fff7e9 100%);
  border: 3px solid var(--line);
  box-shadow: 0 10px 24px rgba(31, 35, 64, 0.08);
}
.checkout-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
}
.checkout-title {
  display: block;
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}
.checkout-badge {
  white-space: nowrap;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  border: 3px solid var(--line);
  background: #fff;
  font-weight: 900;
}
.purchase-note {
  margin: 0;
}
.consent-box {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 0.9rem;
  align-items: start;
  padding: 1rem 1rem;
  background: #fff;
  border: 3px solid var(--line);
  border-radius: 18px;
  font-weight: 700;
}
.consent-box input {
  width: 20px;
  height: 20px;
  margin-top: 0.15rem;
  accent-color: var(--pink);
  cursor: pointer;
}
.consent-box span {
  line-height: 1.48;
}
#buy-button {
  margin-top: 0.2rem;
  min-height: 68px;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
  background: linear-gradient(180deg, #ff6ab7 0%, #f24fa4 100%);
  box-shadow: 0 10px 0 var(--line), 0 18px 28px rgba(242, 79, 164, 0.22);
}
.checkout-footer-note {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 0.7rem;
  align-items: start;
  padding-top: 0.15rem;
}
.lock-dot {
  font-size: 1rem;
  line-height: 1.2;
}
.button-disabled,
.button-disabled:hover {
  opacity: 0.55;
  filter: grayscale(0.15);
  transform: none;
  pointer-events: none;
}
.consent-hint {
  margin: 0;
}

.faq-shell {
  padding: 2rem;
  background: linear-gradient(180deg, #fff 0%, #fff9ed 100%);
}
.faq-grid { grid-template-columns: repeat(2, 1fr); }
.faq-grid details {
  padding: 1.2rem 1.3rem;
  background: #fff;
}
.faq-grid summary { cursor: pointer; font-weight: 900; }
.faq-grid details p { margin-top: 0.9rem; }

.site-footer {
  padding: 2rem 0 2.8rem;
  border-top: 3px solid var(--line);
  background: #fff8ee;
}
.footer-grid ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}
.footer-grid li a { font-weight: 700; }
.footer-illustration {
  max-width: 560px;
  margin: 1.5rem auto 0;
}
.footer-bottom {
  padding-top: 1rem;
  margin-top: 1rem;
  border-top: 3px solid rgba(31, 35, 64, 0.2);
}
.footer-brand { margin-bottom: 0.6rem; display: inline-block; }

.legal-body {
  background: linear-gradient(180deg, #fff8f0 0%, #fff1df 100%);
}
.legal-page {
  padding: 4rem 0 5rem;
}
.legal-page h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-top: 0.5rem;
}
.legal-page h2 { margin-top: 2rem; }
.legal-page ul { margin-top: 0.8rem; }
.back-link {
  font-weight: 900;
}
.legal-alert {
  margin: 1.2rem 0 1.8rem;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: #fff2bc;
  border: 3px solid var(--line);
}

@media (max-width: 1020px) {
  .hero-grid,
  .two-col,
  .split-highlight,
  .footer-grid,
  .faq-grid,
  .trust-grid,
  .card-grid.three {
    grid-template-columns: 1fr;
  }

  .bubble-left,
  .bubble-right {
    position: static;
    transform: none;
    margin-bottom: 1rem;
    max-width: none;
  }

  .hero-visual-wrap { padding-top: 0; }
}

.checkout-body {
  background:
    radial-gradient(circle at 10% 10%, rgba(126, 215, 255, 0.28) 0, transparent 18%),
    radial-gradient(circle at 90% 12%, rgba(255, 216, 77, 0.3) 0, transparent 20%),
    radial-gradient(circle at 86% 84%, rgba(255, 116, 185, 0.26) 0, transparent 18%),
    linear-gradient(180deg, #fffaf3 0%, #fff2de 100%);
}
.checkout-main {
  position: relative;
  z-index: 1;
}
.checkout-section {
  padding-top: 3.5rem;
}
.checkout-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  align-items: start;
}
.checkout-form-card,
.checkout-summary-card {
  background: linear-gradient(180deg, #fffdf8 0%, #fff6e7 100%);
  border: 3px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
}
.checkout-form-card {
  padding: 1.5rem;
}
.checkout-summary-card {
  padding: 1.4rem;
  position: sticky;
  top: 105px;
}
.checkout-intro {
  color: var(--muted);
  max-width: 62ch;
}
.checkout-progress {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 1.35rem 0 1.5rem;
}
.step {
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  border: 3px solid var(--line);
  background: #fff;
  font-weight: 800;
  opacity: 0.7;
}
.step.active {
  background: var(--yellow);
  opacity: 1;
}
.checkout-form {
  display: grid;
  gap: 1rem;
}
.form-grid {
  display: grid;
  gap: 1rem;
}
.form-grid.two-cols {
  grid-template-columns: repeat(2, 1fr);
}
.checkout-form label > span {
  display: block;
  font-weight: 800;
  margin-bottom: 0.45rem;
}
.checkout-form input,
.checkout-form select {
  width: 100%;
  border: 3px solid var(--line);
  border-radius: 18px;
  padding: 0.95rem 1rem;
  font: inherit;
  color: var(--ink);
  background: #fff;
  outline: none;
}
.checkout-form input:focus,
.checkout-form select:focus {
  box-shadow: 0 0 0 4px rgba(255, 116, 185, 0.18);
}
.consent-stack {
  display: grid;
  gap: 0.9rem;
}
.consent-strong {
  background: #fff9e9;
}
.checkout-submit-wrap {
  display: grid;
  gap: 0.8rem;
  margin-top: 0.2rem;
}
.summary-top h2 {
  margin-bottom: 0.35rem;
}
.summary-top p,
.summary-note,
.summary-price-box p {
  color: var(--muted);
}
.summary-badge {
  display: inline-flex;
  padding: 0.5rem 0.85rem;
  margin-bottom: 0.9rem;
  border-radius: 999px;
  border: 3px solid var(--line);
  background: #fff;
  font-weight: 800;
}
.summary-price-box {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin: 1.2rem 0;
  padding: 1rem;
  border-radius: 22px;
  border: 3px solid var(--line);
  background: linear-gradient(180deg, #fff 0%, #fff1d8 100%);
}
.summary-price {
  font-size: 2.2rem;
  font-weight: 900;
  white-space: nowrap;
}
.summary-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.7rem;
  margin-bottom: 1.2rem;
}
.summary-list li,
.trust-row {
  padding: 0.85rem 0.95rem;
  border-radius: 18px;
  border: 3px solid var(--line);
  background: #fff;
  font-weight: 700;
}
.summary-trust-box {
  display: grid;
  gap: 0.7rem;
  margin-bottom: 1rem;
}
.trust-row {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 0.7rem;
  align-items: start;
}

@media (max-width: 980px) {
  .checkout-layout,
  .form-grid.two-cols {
    grid-template-columns: 1fr;
  }

  .checkout-summary-card {
    position: static;
  }
}

@media (max-width: 720px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links,
  .hero-actions,
  .hero-points,
  .sticker-row,
  .mini-stickers,
  .purchase-topline,
  .checkout-progress {
    flex-direction: column;
    align-items: stretch;
  }

  .checkout-head {
    flex-direction: column;
  }

  .button,
  .button-small { width: 100%; }
  .faq-shell,
  .checkout-form-card,
  .checkout-summary-card { padding: 1.2rem; }
}

.alert {
  margin: 1rem 0 1.25rem;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  border: 3px solid var(--line);
  background: #fff;
}
.alert ul {
  margin-top: 0.7rem;
}
.alert-error {
  background: #ffe1e5;
}
.alert-success {
  background: #e3ffd8;
}

.checkout-form textarea {
  width: 100%;
  border: 3px solid var(--line);
  border-radius: 18px;
  padding: 0.95rem 1rem;
  font: inherit;
  color: var(--ink);
  background: #fff;
  outline: none;
  resize: vertical;
}
.checkout-form textarea:focus {
  box-shadow: 0 0 0 4px rgba(255, 116, 185, 0.18);
}
.field-label {
  display: block;
  font-weight: 800;
  margin-bottom: 0.45rem;
}
.payment-methods {
  display: grid;
  gap: 0.9rem;
}
.payment-method-card {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 0.9rem;
  align-items: start;
  padding: 1rem;
  background: #fff;
  border: 3px solid var(--line);
  border-radius: 20px;
  cursor: pointer;
}
.payment-method-card input {
  width: 20px;
  height: 20px;
  margin-top: 0.2rem;
  accent-color: var(--pink);
}
.payment-method-content {
  display: grid;
  gap: 0.2rem;
}
.payment-method-content strong {
  font-size: 1.02rem;
}
.payment-method-content small {
  color: var(--muted);
}

.thankyou-grid {
  margin: 1.4rem 0;
}
.thankyou-box {
  margin: 1.4rem 0;
  padding: 1.4rem;
  border: 3px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}
.bank-details,
.order-meta {
  display: grid;
  gap: 0.8rem;
}
.bank-details div,
.order-meta div {
  display: grid;
  gap: 0.2rem;
  padding: 0.85rem 0.95rem;
  border: 3px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,0.82);
}

.admin-summary-grid {
  margin: 1.4rem 0 1.5rem;
}
.admin-orders {
  display: grid;
  gap: 1rem;
}
.order-card {
  padding: 1.2rem;
  border: 3px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, #fffefb 0%, #fff4df 100%);
  box-shadow: var(--shadow-soft);
}
.order-card-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
  margin-bottom: 1rem;
}
.status-pill {
  display: inline-flex;
  padding: 0.55rem 0.9rem;
  border: 3px solid var(--line);
  border-radius: 999px;
  font-weight: 900;
  white-space: nowrap;
}
.status-pending {
  background: #fff1b8;
}
.status-paid {
  background: #d9ffe1;
}
.status-delivered {
  background: #dff6ff;
}
.order-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.order-actions form {
  margin: 0;
}
.admin-login-form {
  max-width: 460px;
}

@media (max-width: 720px) {
  .order-card-head,
  .order-actions {
    flex-direction: column;
    align-items: stretch;
  }
}
