:root {
  --bg: #fff7ec;
  --ink: #20172c;
  --muted: #665c70;
  --orange: #ff7a3d;
  --red: #ff4b6e;
  --yellow: #ffd86b;
  --mint: #ddf8ef;
  --blue: #e4f0ff;
  --line: rgba(32, 23, 44, .13);
  --card: rgba(255, 255, 255, .88);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 8%, rgba(255, 216, 107, .55), transparent 260px),
    radial-gradient(circle at 92% 12%, rgba(228, 240, 255, .95), transparent 330px),
    var(--bg);
  font-family: "Kanit", Arial, "Noto Sans Thai", Tahoma, sans-serif;
}
a { color: inherit; text-decoration: none; }
.wrap { width: min(1080px, calc(100% - 32px)); margin: 0 auto; }
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin: 16px auto 28px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255,255,255,.78); backdrop-filter: blur(16px);
  box-shadow: 0 14px 42px rgba(65, 42, 24, .08);
}
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 950; }
.brand span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--yellow); }
.nav a:not(.brand) { padding: 9px 12px; border-radius: 999px; color: var(--muted); font-size: 14px; font-weight: 800; }
.nav a.active, .nav a:hover { color: var(--ink); background: var(--mint); }
.links { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

.hero {
  display: grid; grid-template-columns: 1.06fr .94fr; gap: clamp(24px, 5vw, 58px);
  align-items: center; padding: 34px 0 54px;
}
.eyebrow {
  display: inline-block; margin: 0 0 14px; padding: 8px 13px; border-radius: 999px;
  background: rgba(255,122,61,.12); color: #b84c1e; font-weight: 950; font-size: 14px;
}
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 18px; font-size: clamp(42px, 7vw, 72px); line-height: 1.08; letter-spacing: 0; }
h2 { margin-bottom: 12px; font-size: clamp(30px, 4vw, 46px); line-height: 1.08; letter-spacing: -.035em; }
h3 { margin-bottom: 8px; }
.lead { color: var(--muted); font-size: clamp(17px, 2vw, 21px); line-height: 1.72; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 22px; border-radius: 999px;
  font-weight: 600; text-align: center;
}
.primary { color: white; background: linear-gradient(135deg, var(--orange), var(--red)); box-shadow: 0 16px 34px rgba(255, 76, 104, .25); }
.secondary { background: white; border: 1px solid var(--line); }
.ghost { background: var(--blue); border: 1px solid rgba(50, 92, 150, .14); }

.card, .product, .sample, .box, details {
  border: 1px solid var(--line); border-radius: 28px; background: var(--card);
  box-shadow: 0 16px 44px rgba(46, 34, 27, .08);
}
.product { padding: 28px; }
.price { font-size: clamp(48px, 8vw, 78px); font-weight: 950; letter-spacing: -.06em; margin: 4px 0 2px; }
.price small { font-size: 22px; letter-spacing: 0; }
.tag { display: inline-block; padding: 8px 12px; border-radius: 999px; background: var(--yellow); font-weight: 950; }
.checklist { display: grid; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; color: #40364c; line-height: 1.55; }
.checklist li::before { content: "✓ "; color: #159064; font-weight: 950; }

.section { padding: 46px 0; }
.head { max-width: 760px; margin-bottom: 24px; }
.head p:not(.eyebrow) { color: var(--muted); line-height: 1.68; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.samples { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.sample { padding: 18px; }
.sample .emoji { font-size: 36px; display: block; margin-bottom: 10px; }
.sample p { color: var(--muted); line-height: 1.55; font-size: 14px; }
.mini-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.mini {
  display: inline-flex; min-height: 38px; align-items: center; justify-content: center;
  padding: 0 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  font-size: 13px; font-weight: 900;
}
.download-note { padding: 18px; border-radius: 22px; background: #fff; border: 1px dashed rgba(255,122,61,.45); color: var(--muted); line-height: 1.65; }
.box { padding: clamp(22px, 4vw, 34px); }
.big-choice { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
.center { text-align: center; }
details { padding: 18px 20px; }
summary { cursor: pointer; font-weight: 950; }
details p { margin: 12px 0 0; color: var(--muted); line-height: 1.6; }
footer { display: flex; justify-content: space-between; gap: 16px; padding: 32px 0 44px; color: var(--muted); }
footer p { margin: 0; }

.delivery-hero {
  overflow: hidden;
  margin: 20px auto 26px;
  border-radius: 0 0 32px 32px;
  color: white;
  background: linear-gradient(135deg, #09184a, #173b88);
  text-align: center;
  padding: 34px 18px 42px;
}
.delivery-hero .pill {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.17);
  font-weight: 600;
}
.delivery-hero h1 {
  margin: 0 auto 8px;
  font-size: clamp(32px, 6vw, 58px);
  line-height: 1.12;
  letter-spacing: 0;
}
.delivery-hero p {
  margin: 0;
  color: rgba(255,255,255,.86);
  font-size: 18px;
}
.instruction {
  margin: 0 auto 24px;
  border: 1px solid rgba(255, 186, 73, .35);
  border-radius: 24px;
  background: #fff8de;
  padding: 22px;
  color: #6a5630;
  line-height: 1.75;
}
.download-all {
  display: block;
  margin: 24px auto 26px;
  max-width: 980px;
  border-radius: 22px;
  padding: 26px 18px;
  background: #39af78;
  color: white;
  text-align: center;
  font-weight: 600;
  font-size: clamp(22px, 4vw, 34px);
  box-shadow: 0 18px 34px rgba(28, 134, 86, .25);
}
.download-all small {
  display: block;
  margin-top: 8px;
  font-size: 15px;
  color: rgba(255,255,255,.86);
}
.divider-title {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  margin: 18px 0 22px;
  color: var(--muted);
  text-align: center;
}
.divider-title::before,
.divider-title::after {
  content: "";
  height: 1px;
  background: var(--line);
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.book-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(33, 23, 44, .08);
}
.book-card img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #fff;
}
.book-info {
  padding: 12px 14px 14px;
}
.book-info h3 {
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 1.3;
}
.book-info .download {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  border-radius: 11px;
  background: #081447;
  color: #fff;
  font-weight: 600;
}
.sample-mode .book-info .download {
  background: #fff;
  color: #081447;
  border: 1px solid #081447;
}
.sample-mode .book-card::before {
  content: "ตัวอย่าง";
  position: absolute;
  left: 50%;
  top: 35%;
  z-index: 2;
  transform: translate(-50%, -50%) rotate(-22deg);
  color: rgba(8, 20, 71, .16);
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 950;
  letter-spacing: .03em;
  pointer-events: none;
  white-space: nowrap;
}
.sample-mode .book-card::after {
  content: "coloringpdfkids.com";
  position: absolute;
  left: 50%;
  top: 48%;
  z-index: 2;
  transform: translate(-50%, -50%) rotate(-22deg);
  color: rgba(8, 20, 71, .18);
  font-size: clamp(14px, 2.4vw, 23px);
  font-weight: 900;
  pointer-events: none;
  white-space: nowrap;
}

@media (max-width: 960px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .book-info h3 { font-size: 14px; }
  .book-info .download { min-height: 42px; }
}

@media (max-width: 860px) {
  .hero, .grid2, .big-choice { grid-template-columns: 1fr; }
  .grid3, .samples { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .links { display: none; }
  .nav { border-radius: 24px; }
  h1 { font-size: 40px; }
  .grid3, .samples { grid-template-columns: 1fr; }
}
.book-info .pages {
  margin: -3px 0 11px;
  color: #159064;
  font-size: 13px;
  font-weight: 600;
}

.no-menu .delivery-hero { margin-top: 0; border-radius: 0 0 32px 32px; }


/* Public-safe selling flow */
.home-banner {
  min-height: 72vh;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(24px, 5vw, 58px);
  align-items: center;
  padding: 52px 0 34px;
}
.home-copy h1 { font-size: clamp(42px, 6.5vw, 74px); line-height: 1.08; letter-spacing: 0; }
.quick-points { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 8px; }
.quick-points span { padding: 10px 13px; border-radius: 999px; background: rgba(255,255,255,.82); border: 1px solid var(--line); font-weight: 600; }
.public-home .quick-points span,
.public-home .btn { font-weight: 600; }
.home-preview { position: relative; min-height: 560px; }
.home-preview img { position: absolute; width: 45%; border-radius: 26px; border: 1px solid var(--line); background: white; box-shadow: 0 22px 55px rgba(32,23,44,.16); }
.home-preview img:nth-child(1) { left: 0; top: 35px; transform: rotate(-6deg); }
.home-preview img:nth-child(2) { right: 0; top: 0; transform: rotate(5deg); }
.home-preview img:nth-child(3) { left: 28%; bottom: 0; transform: rotate(1deg); }
.home-video { padding: 0 0 30px; }
.video-frame {
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: #081447;
  box-shadow: 0 18px 46px rgba(8, 20, 71, .16);
  aspect-ratio: 16 / 9;
}
.video-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
}
.home-info { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 26px 0 56px; }
.home-info .box { padding: 26px; }
.mini-price { padding: 20px; border-radius: 24px; background: white; border: 1px solid var(--line); display: grid; gap: 6px; }
.mini-price strong { font-size: 34px; line-height: 1; }
.mini-price.hot { background: #fff3c5; }
.steps { margin: 12px 0 20px; padding-left: 22px; line-height: 1.9; color: var(--muted); font-weight: 750; }
.full { width: 100%; }
.center-actions { justify-content: center; }
.sales-note { text-align: center; }
.sales-page .download { background: linear-gradient(135deg, var(--orange), var(--red)); }
@media (max-width: 840px) {
  .home-banner, .home-info { grid-template-columns: 1fr; }
  .home-preview { min-height: 440px; }
}


/* Hide all top navigation/menu links for customer-safe pages */
.nav { display: none !important; }
body.no-menu main { padding-top: 0; }


/* Index service-only page */
.service-only-hero { padding-top: 64px; }
.safe-note { color: var(--muted); font-size: 14px; margin-top: 10px; }
.service-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 8px 0 60px; }
.service-box { padding: 26px; }
.service-box p { color: var(--muted); line-height: 1.7; }
@media (max-width: 840px) { .service-strip { grid-template-columns: 1fr; } }




/* Hero highlight line */
.hero-gold { color: #ffd86b !important; font-weight: 950; font-size: clamp(20px, 3vw, 30px); margin-top: -8px; }


/* One-page sample promo */
.sample-offers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 260px));
  justify-content: center;
  gap: 18px;
  margin-top: -28px;
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
}
.offer-card {
  position: relative;
  text-align: center;
  padding: 22px 18px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 16px 38px rgba(32,23,44,.09);
}
.offer-card.best { border-color: rgba(255, 191, 71, .65); background: #fffdf2; }
.offer-card b {
  position: absolute;
  left: 50%; top: -18px; transform: translateX(-50%);
  padding: 7px 13px; border-radius: 999px; background: var(--yellow); font-size: 13px;
}
.offer-card span { display: block; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.offer-card strong { display: block; font-size: clamp(34px, 5vw, 48px); line-height: 1; letter-spacing: -.04em; }
.offer-card small { display: block; color: var(--muted); margin-top: 8px; font-weight: 750; line-height: 1.4; }
@media (max-width: 620px) { .sample-offers { grid-template-columns: 1fr; } }
