/* Coupon Book Studio · trang bán hàng (HTML tĩnh, bảng màu Candy Pop giống app) */
@font-face { font-family: 'Fredoka'; font-weight: 500; font-display: swap; src: url('fonts/fredoka-latin-500.woff2') format('woff2'); }
@font-face { font-family: 'Fredoka'; font-weight: 600; font-display: swap; src: url('fonts/fredoka-latin-600.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url('fonts/inter-latin-400.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 500; font-display: swap; src: url('fonts/inter-latin-500.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-display: swap; src: url('fonts/inter-latin-600.woff2') format('woff2'); }

:root {
  --bg: #FFF6F1;
  --card: #FFFFFF;
  --ink: #2D1B4E;
  --muted: #5E5470;
  --accent: #D6304B;
  --accent-hover: #B8243D;
  --yellow: #FFC93C;
  --border: #E9DDD8;
  --soft: #FDE6EA;
  --violet: #7C3AED;
  --radius: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Inter', system-ui, sans-serif; font-size: 18px; line-height: 1.6; color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; }
h1, h2, h3 { font-family: 'Fredoka', 'Inter', sans-serif; line-height: 1.15; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); text-align: center; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); margin-inline: auto; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
section { padding: 72px 0; }
.band { background: var(--card); border-block: 1px solid var(--border); }
.dark { background: var(--ink); color: #fff; }
.dark a { color: var(--yellow); }

/* Thanh trên */
.topbar { background: var(--ink); color: #fff; padding: 14px 0; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.logo { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 1.25rem; display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.logo svg { width: 28px; height: 28px; }
.alert-bar { background: var(--yellow); color: var(--ink); text-align: center; font-weight: 600; padding: 12px 20px; font-size: 1rem; }

/* Hero */
.hero { padding: 64px 0 56px; background: radial-gradient(ellipse at 80% 0%, #FDE6EA 0%, transparent 60%), var(--bg); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; background: var(--soft); color: var(--accent-hover); font-weight: 600; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px; margin-bottom: 18px; }
.lead { font-size: 1.2rem; color: var(--muted); }
.hero-img { border-radius: var(--radius); box-shadow: 0 20px 60px rgba(45, 27, 78, .18); background: #fff; }

/* Nút mua */
.cta { margin-top: 28px; }
.buy-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 60px; padding: 0 34px; border-radius: 14px; background: var(--accent); color: #fff; font-family: 'Fredoka', sans-serif; font-size: 1.3rem; font-weight: 600; text-decoration: none; box-shadow: 0 8px 22px rgba(214, 48, 75, .35); transition: background .15s, transform .1s; }
.buy-btn:hover { background: var(--accent-hover); }
.buy-btn:active { transform: translateY(1px); }
.buy-note { margin-top: 12px; font-size: .95rem; color: var(--muted); }
.buy-box { background: var(--card); border: 2px solid var(--ink); border-radius: 24px; padding: 36px; text-align: center; max-width: 640px; margin: 0 auto; box-shadow: 0 16px 40px rgba(45, 27, 78, .12); }
.price { font-family: 'Fredoka', sans-serif; font-size: 3.4rem; font-weight: 600; color: var(--accent); line-height: 1; margin: 8px 0; }
.price small { font-size: 1.1rem; color: var(--muted); font-family: 'Inter', sans-serif; font-weight: 500; }
.no-thanks { display: inline-block; margin-top: 18px; color: var(--muted); font-size: .95rem; }

/* Lưới, thẻ */
.grid { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: 0 1px 2px rgba(45, 27, 78, .06), 0 8px 24px rgba(45, 27, 78, .06); }
.card h3 { margin-top: 4px; }
.icon-dot { width: 46px; height: 46px; border-radius: 14px; background: var(--soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 10px; }
.icon-dot svg { width: 24px; height: 24px; }

/* Các bước */
.steps { counter-reset: step; display: grid; gap: 40px; margin-top: 40px; }
.step { display: grid; grid-template-columns: 1fr 1.25fr; gap: 36px; align-items: center; }
.step:nth-child(even) .step-text { order: 2; }
.step-text h3::before { counter-increment: step; content: counter(step); display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; margin-right: 12px; font-size: 1.1rem; vertical-align: middle; }
.shot { border-radius: 14px; border: 1px solid var(--border); box-shadow: 0 12px 32px rgba(45, 27, 78, .14); background: #fff; }

/* Danh sách tick */
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 34px; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 4px; width: 22px; height: 22px; border-radius: 50%; background: #E4F4EA url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E6B45' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 14px no-repeat; }
.crosses li::before { background: #FDE6EA url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B8243D' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* Thư viện ảnh */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 32px; }
.gallery figure { margin: 0; }
.gallery img { border-radius: 12px; border: 1px solid var(--border); background: #fff; }
.gallery figcaption { font-size: .9rem; color: var(--muted); text-align: center; margin-top: 8px; }

/* Hỏi đáp */
.faq details { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 18px 22px; margin-bottom: 12px; }
.faq summary { font-weight: 600; cursor: pointer; min-height: 28px; }
.faq details p { margin: 12px 0 0; color: var(--muted); }

/* Ghi chú thật thà */
.honest { background: #F3EEFA; border-radius: var(--radius); padding: 26px 28px; }

/* Chân trang */
footer { background: var(--ink); color: #D9D2E6; padding: 44px 0; font-size: .9rem; }
footer a { color: #fff; }
footer .links { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 18px; }
footer p { margin-bottom: .8em; }
.legal { padding: 56px 0; }
.legal h1 { font-size: 2.2rem; }
.legal h2 { text-align: left; font-size: 1.4rem; margin-top: 1.6em; }

@media (max-width: 860px) {
  body { font-size: 17px; }
  section { padding: 52px 0; }
  .hero .wrap, .step, .g2, .g3 { grid-template-columns: 1fr; }
  .step:nth-child(even) .step-text { order: 0; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .buy-btn { width: 100%; }
  .buy-box { padding: 26px 20px; }
}
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; } }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 8px; }

/* Thư viện DFY: ảnh bìa thật của sách làm sẵn (sales/build-dfy.mjs) */
.dfy-shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 22px 18px; margin-top: 34px; }
.dfy-shelf figure { margin: 0; }
.dfy-shot { aspect-ratio: 4 / 3; }
.dfy-shot img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 10px 12px rgba(45, 27, 78, .28)); }
.dfy-shelf figcaption { margin-top: 10px; display: grid; gap: 2px; text-align: center; font-size: .86rem; line-height: 1.3; }
.dfy-shelf figcaption span { color: var(--muted, #5E5470); font-size: .8rem; }
@media (max-width: 560px) { .dfy-shelf { grid-template-columns: repeat(2, 1fr); gap: 18px 12px; } }

/* Nút mua WarriorPlus (ảnh) */
.wp-buy { margin: 6px auto 0; text-align: center; }
.wp-buy a { display: inline-block; }
.wp-buy img { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.wplus_spdisclaimer { font-size: inherit; }
