/* Ads Coach · หน้าเว็บขายเล่ม · สไตล์ C นิตยสารแปะโน้ต */

@font-face{font-family:Prompt;src:url("../fonts/Prompt-Regular.woff") format("woff");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:Prompt;src:url("../fonts/Prompt-Medium.woff") format("woff");font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:Prompt;src:url("../fonts/Prompt-SemiBold.woff") format("woff");font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:Prompt;src:url("../fonts/Prompt-Bold.woff") format("woff");font-weight:700;font-style:normal;font-display:swap}
@font-face{font-family:Prompt;src:url("../fonts/Prompt-ExtraBold.woff") format("woff");font-weight:800;font-style:normal;font-display:swap}

:root{
  --teal:#009EA5;
  --teal-d:#00747A;
  --teal-band:#00838A; /* แถบทีมีตัวอักษรเล็ก สีใกล้แบรนด์แต่คอนทราสต์ผ่าน WCAG AA */
  --teal-ink:#0A5C61;
  --mint:#E7F6F7;
  --navy:#0C2C36;
  --muted:#557079;
  --or:#FF9A1F;
  --or-d:#B85C00;
  --or-soft:#FFF3DE;
  --sticky:#FFD98A;
  --paper:#F4FAFB;
  --line:#D2E5E7;
  --white:#fff;
  --focus:#00747A;
  --bar-h:4.5rem;
  --max:75rem; /* 1200px */
}

*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;scroll-padding-bottom:calc(var(--bar-h) + env(safe-area-inset-bottom,0px) + .5rem)}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation:none!important;transition:none!important}
}
body{
  font-family:Prompt,system-ui,sans-serif;
  color:var(--navy);
  background:var(--paper);
  -webkit-font-smoothing:antialiased;
  line-height:1.65;
}
p,li,td,th,dd,dt{line-height:1.65;padding-top:.04em}
h1,h2,h3,h4{line-height:1.35;padding-top:.08em;font-weight:800;text-wrap:balance}
img{display:block;max-width:100%;height:auto}
a{color:inherit}
a:focus-visible,button:focus-visible,.btn:focus-visible{
  outline:3px solid var(--focus);
  outline-offset:3px;
}

/* ราคา: ใช้ตัวแปร --price-text ที่ประกาศไว้หัว index.html */
.price::before{content:var(--price-text)}

.skip{
  position:absolute;left:-999px;top:0;background:var(--navy);color:#fff;
  padding:.6em 1em;z-index:100;border-radius:0 0 .5em 0
}
.skip:focus{left:0}

.pill{
  display:inline-block;font-weight:700;font-size:.78rem;
  padding:.2em .85em .32em;border-radius:99px;line-height:1.4
}
.pill.w{background:#fff;color:var(--teal-ink)}
.pill.t{background:var(--teal-d);color:#fff}
.pill.od{background:var(--or-soft);color:var(--or-d)}

.fict{
  display:inline-block;font-size:.72rem;font-weight:700;color:#fff;
  background:var(--or-d);border-radius:99px;padding:.1em .7em .22em;vertical-align:.12em
}

.sticky{
  background:var(--sticky);
  box-shadow:0 .35em .9em rgba(12,44,54,.16);
  padding:.85em 1em 1em;
  font-weight:500;line-height:1.55;color:var(--navy)
}
.sticky .who-lab{display:block;font-size:.78em;font-weight:700;color:var(--or-d);margin-bottom:.2em}

.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:.4em;
  background:var(--or);color:var(--navy);font-weight:800;
  border-radius:99px;padding:.75em 1.35em .9em;
  box-shadow:0 .25em .7em rgba(184,92,0,.28);
  line-height:1.3;border:0;text-decoration:none;letter-spacing:.01em;
  transition:transform .15s ease, box-shadow .15s ease, background .15s ease
}
.btn:hover{background:#ff910c;box-shadow:0 .3em .85em rgba(184,92,0,.34)}
.btn:active{transform:translateY(1px)}
.btn-navy{background:var(--navy);color:#fff;box-shadow:0 .25em .7em rgba(12,44,54,.28)}
.btn-navy:hover{background:#163944}

.logo{border-radius:50%;display:block}

.mock{background:#fff;border:1px solid #D9E1E3;border-radius:.5em;overflow:auto}
.mock .bar{
  background:#F3F5F6;border-bottom:1px solid #D9E1E3;
  padding:.4em .7em;font-size:.82rem;color:#5D6B70;
  display:flex;gap:.4em;align-items:center
}
.mock .bar i{width:.55em;height:.55em;border-radius:50%;background:#C9D2D5;display:inline-block}
.mock table{width:100%;border-collapse:collapse;min-width:18rem}
.mock th{
  font-weight:600;font-size:.78rem;color:#5D6B70;text-align:left;
  padding:.45em .55em;border-bottom:1px solid #E3E8EA;background:#FAFBFB;white-space:nowrap
}
.mock td{padding:.5em .55em;border-bottom:1px solid #EEF1F2;font-size:.86rem}
.mock tr:last-child td{border-bottom:0}
.table-note{font-size:.8rem;color:var(--muted);margin-top:.5rem}

.book{
  background:#fff;border-radius:.45em;
  box-shadow:0 .4em 1.1em rgba(12,44,54,.14), 0 0 0 1px rgba(12,44,54,.06);
  overflow:hidden
}
.book img{width:100%;height:100%;object-fit:cover;object-position:top center}

.stepn{
  flex:none;width:2em;height:2em;border-radius:50%;
  background:var(--teal-d);color:#fff;font-weight:800;
  display:flex;align-items:center;justify-content:center;padding-bottom:.12em
}

/* ===== HERO ===== */
.hero{background:var(--navy);color:#fff;position:relative}
.hero-in{padding:1.15rem 1.35rem 2.1rem;position:relative;z-index:1}
.hero .brand{display:flex;align-items:center;gap:.65rem;text-decoration:none;color:#fff;width:fit-content}
.hero .brand img{width:2.75rem;height:2.75rem;border-radius:50%;box-shadow:0 0 0 3px #fff}
.hero .brand b{font-size:1rem;font-weight:700}
.hero .kicker{color:#9ED5D8;font-weight:600;font-size:.82rem;margin-top:1.6rem}
.hero h1{font-size:clamp(1.7rem, 7.2vw, 2.15rem);margin-top:.6rem;letter-spacing:-.02em}
.hero h1 em{font-style:normal;color:var(--or)}
.hero .lead{color:#D5EBED;font-size:1rem;line-height:1.7;margin-top:.85rem;max-width:22em}
.hero .cta-wrap{margin-top:1.35rem}
.hero .meta{margin-top:.6rem;color:#B7D4D7;font-size:.88rem;font-weight:500}
.hero-art{display:none}

.wave{background:var(--teal-band);position:relative;padding:1.5rem 1.35rem 1.25rem;color:#fff}
.wave:before{
  content:"";position:absolute;left:0;right:0;top:-1px;height:1.75rem;
  background:var(--navy);border-radius:0 0 50% 50%/0 0 100% 100%
}
.wave p{position:relative;z-index:1;font-size:.95rem;font-weight:600;line-height:1.55;padding-top:.6rem;max-width:22em}

.sticky.s1{
  position:absolute;right:1rem;top:11.5rem;width:8.4rem;
  transform:rotate(5deg);font-size:.82rem;z-index:3
}

/* ===== IN THE BOOK ===== */
.band-t{background:var(--teal-band);color:#fff;padding:1.75rem 1.35rem .5rem}
.band-t h2{font-size:clamp(1.45rem, 6vw, 1.7rem)}
.band-t .intro{color:#fff;font-size:1rem;font-weight:500;margin-top:.5rem;max-width:26em}
br.only-desk{display:none}

.spread{background:var(--teal-band);padding:1.1rem 0 0;position:relative}
.collage{position:relative;height:21rem;margin:0 .6rem}
.collage .book{position:absolute;overflow:hidden}
.collage .p1{width:58%;height:15.5rem;left:.5rem;top:.6rem;transform:rotate(-4deg);z-index:2}
.collage .p2{width:56%;height:15rem;right:.4rem;top:4.4rem;transform:rotate(5deg);z-index:3}
.collage .p3{width:48%;height:11.2rem;left:1.7rem;bottom:0;transform:rotate(2deg);z-index:4}
.spread-notes{display:flex;align-items:flex-end;gap:.75rem;padding:.4rem 1.1rem 1.25rem;flex-wrap:wrap}
.spread-notes .cap{padding:0;color:#E8F4F5;font-size:.8rem;font-weight:500;margin:0 0 .25rem}
.sticky.s2{width:9.5rem;transform:rotate(-3deg);font-size:.8rem;flex:none}

.included{padding:1.75rem 1.35rem .5rem}
.inc-grid{display:flex;flex-direction:column;gap:.65rem;margin-top:.25rem}
.inc{border-radius:1rem;padding:.9rem 1rem 1rem}
.inc .h{font-weight:700;font-size:1.05rem;margin-bottom:.15rem}
.inc p{font-size:.95rem}
.inc.m{background:var(--mint)} .inc.m .h{color:var(--teal-ink)}
.inc.o{background:var(--or-soft)} .inc.o .h{color:var(--or-d)}
.chips{display:flex;flex-wrap:wrap;gap:.5rem;margin:1rem 0 0;padding:0;list-style:none}
.chip{background:#fff;border:1px solid var(--line);color:var(--teal-ink);font-weight:600;font-size:.82rem;border-radius:99px;padding:.35em .85em .45em}

/* ===== WHO + SHEET ===== */
.who{padding:2.2rem 1.35rem .6rem}
.who h2,.sheet-sec h2,.faq h2{font-size:clamp(1.45rem, 6vw, 1.7rem);margin-bottom:.85rem}
.who-grid{display:flex;flex-direction:column;gap:.65rem}
.wcard{background:#fff;border-radius:.9rem;padding:.85rem .9rem .95rem;border:1px solid var(--line)}
.wcard .lab{display:block;font-size:.78rem;font-weight:700;color:var(--teal-ink);margin-bottom:.15rem}
.wcard.no .lab{color:var(--or-d)}
.wcard p{font-size:.95rem}
.sticky.s3{width:auto;margin:1rem .5rem 0 2rem;transform:rotate(-2.5deg);font-size:.92rem}

.sheet-sec{padding:1.75rem 1.35rem 2.2rem}
.sheet-sec .intro{font-size:1rem;margin-bottom:.75rem}

/* ===== BUY ===== */
.buy{background:var(--or);color:var(--navy);padding:1.9rem 1.35rem 1.75rem;position:relative}
.buy h2{font-size:clamp(1.55rem, 6.5vw, 1.85rem)}
.buy .intro{font-size:1rem;font-weight:500;margin:.25rem 0 1rem}
.sc{display:flex;gap:.75rem;align-items:flex-start;background:#fff;border-radius:.9rem;padding:.7rem .85rem;margin-top:.5rem;box-shadow:0 3px 10px rgba(12,44,54,.08)}
.sc p{font-size:.95rem;line-height:1.5;font-weight:500;padding-top:.15rem}
.sc p b{font-weight:700}
.buy-bot{display:flex;gap:.9rem;align-items:center;margin-top:1rem}
.buy-bot img{width:6rem;height:6rem;flex:none;border-radius:.65rem;background:#fff;padding:.25rem}
.buy-bot .bx{flex:1;min-width:0}
.buy-bot b{display:block;font-size:1.05rem}
.buy-bot p{font-size:.88rem;font-weight:500;margin-top:.15rem}
.buy .btn{margin-top:.55rem;width:100%;padding:.7em 1em .82em}

/* ===== CHECKLIST + FAQ ===== */
.chk{padding:2rem 1.35rem .5rem;position:relative}
.chk h2{font-size:clamp(1.35rem, 5.8vw, 1.55rem);margin:.5rem 0 .4rem}
.chk .intro{font-size:1rem;max-width:26em}
.chk-frame{
  margin-top:1rem;background:#fff;border-radius:1rem;overflow:hidden;
  box-shadow:0 .4em 1.2em rgba(12,44,54,.1);border:1px solid var(--line);
  height:12.5rem
}
.chk-frame img{width:100%;object-fit:cover;object-position:top;height:17.5rem}
.sticky.s4{
  position:relative;display:inline-block;
  width:auto;max-width:13.5rem;margin:.75rem 0 .15rem .15rem;
  transform:rotate(3deg);font-size:.82rem
}

.faq{padding:2.2rem 1.35rem .75rem}
.qa{display:grid;grid-template-columns:auto 1fr;gap:.75rem;align-items:flex-start;padding:.75rem 0;border-top:1px solid var(--line)}
.faq dl .qa:last-child{border-bottom:1px solid var(--line)}
.qa .qnum{font-weight:800;color:var(--teal-d);font-size:1.1rem;padding-top:.15em;width:1.5em}
.qa dt{font-weight:700;font-size:1.02rem;margin-bottom:.15rem}
.qa dd{font-size:.95rem;color:var(--muted)}

.foot{background:var(--navy);color:#C5DCDF;padding:1.6rem 1.35rem 2rem}
.foot b{color:#fff;display:block;font-size:1rem;margin-bottom:.25rem}
.foot p{font-size:.88rem}
.foot a{color:#9ED5D8;text-decoration:underline;text-underline-offset:2px}

/* ===== STICKY MOBILE BUY BAR ===== */
.buybar{
  display:none;
  position:fixed;left:0;right:0;bottom:0;z-index:50;
  background:var(--navy);color:#fff;
  padding:.6rem .9rem calc(.6rem + env(safe-area-inset-bottom,0px));
  box-shadow:0 -.25em .8em rgba(12,44,54,.22);
  align-items:center;justify-content:space-between;gap:.75rem
}
.buybar .p{font-weight:800;font-size:.95rem;line-height:1.3;color:#fff}
.buybar .p small{display:block;font-weight:500;font-size:.72rem;color:#B7D4D7;margin-top:.05rem}
.buybar .btn{flex:none;padding:.55em 1em .68em;font-size:.9rem;box-shadow:none}
.buybar.is-hidden{transform:translateY(110%);pointer-events:none}
.buybar{transition:transform .25s ease}

@media (max-width:999px){
  .buybar{display:flex}
  body{padding-bottom:calc(var(--bar-h) + env(safe-area-inset-bottom,0px))}
}

/* หน้าจอแคบมาก: ย้ายโน้ตออกจากหัวข้อ เพื่อไม่ให้ทับข้อความ */
@media (max-width:399px){
  .sticky.s1{
    position:static;display:inline-block;margin:1rem 0 0;
    transform:rotate(3deg);width:auto;max-width:14rem
  }
  .hero h1{padding-right:0}
  .collage{height:19.5rem}
}

/* ===== TABLET ===== */
@media (min-width:700px) and (max-width:999px){
  .hero-in,.wave,.band-t,.included,.who,.sheet-sec,.buy,.chk,.faq,.foot{padding-left:2rem;padding-right:2rem}
  .spread-notes{padding-left:2rem;padding-right:2rem}
  .inc-grid{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
  .buy-bot .btn{width:auto;display:inline-flex}
}

/* ===== DESKTOP 1000+ (1280) ===== */
@media (min-width:1000px){
  html{scroll-padding-bottom:0}
  body{padding-bottom:0}

  .hero{display:grid;grid-template-columns:1.02fr .98fr;align-items:stretch;overflow:visible}
  .hero-in{padding:2.25rem 1.5rem 3rem 4rem;z-index:2}
  .hero h1{font-size:clamp(2.5rem, 3.6vw, 3rem);margin-top:1.1rem;max-width:11em}
  .hero .lead{font-size:1.08rem;max-width:28em;margin-top:1.1rem}
  .hero .kicker{margin-top:3rem;font-size:.9rem}
  .hero .btn{font-size:1.1rem}
  .sticky.s1{left:auto;right:.75rem;top:1.75rem;width:10rem;font-size:.9rem;transform:rotate(5deg)}
  .hero-art{display:block;position:relative;min-height:38.75rem;margin:1.75rem 3rem .75rem 0}
  .hero-art .book{position:absolute;overflow:hidden}
  .hero-art .ha1{width:58%;height:24.4rem;left:4%;top:2.25rem;transform:rotate(-6deg);z-index:2}
  .hero-art .ha2{width:56%;height:23.1rem;right:2%;top:6.9rem;transform:rotate(5deg);z-index:3}
  .hero-art .ha3{width:44%;height:15.6rem;left:22%;bottom:.5rem;transform:rotate(-2deg);z-index:4}
  .wave{grid-column:1 / -1;padding:1.35rem 4rem 1.25rem}
  .wave:before{height:2.25rem}
  .wave p{font-size:1.05rem;max-width:none;padding-top:.5rem}

  .inbook{display:grid;grid-template-columns:42% 1fr}
  .band-t{padding:3rem 2rem 3rem 4rem}
  .band-t h2{font-size:2.25rem}
  br.only-desk{display:block}
  .band-t .intro{font-size:1.08rem}
  .spread{padding:2rem 3rem 2rem 1rem}
  .collage{height:28.75rem;margin:0}
  .collage .p1{width:48%;height:21.25rem;left:.6rem;top:1rem}
  .collage .p2{width:48%;height:20.6rem;right:1rem;top:4.4rem}
  .collage .p3{width:40%;height:15rem;left:22%;bottom:.5rem}
  .spread-notes{padding:.5rem .5rem .5rem 0;justify-content:flex-start}
  .sticky.s2{width:10.5rem;font-size:.88rem}

  .included{max-width:var(--max);margin:0 auto;padding:2.5rem 4rem 1rem}
  .inc-grid{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
  .inc{padding:1.25rem 1.35rem 1.35rem}
  .inc .h{font-size:1.15rem}
  .inc p{font-size:1rem}

  .mid{max-width:var(--max);margin:0 auto;padding:.75rem 4rem 3rem;display:grid;grid-template-columns:1fr 1.15fr;gap:2.5rem;align-items:start}
  .who{padding:1.75rem 0 0}
  .who h2{font-size:2rem}
  .sticky.s3{margin:1.25rem 1.5rem 0 3rem}
  .sheet-sec{padding:1.75rem 0 0}
  .sheet-sec h2{font-size:2rem}

  .buy{padding:2.75rem 4rem;display:grid;grid-template-columns:1fr 1fr;gap:2.5rem;align-items:center}
  .buy h2{font-size:2.25rem}
  .buy-left .sc{margin-top:.65rem}
  .buy-bot{margin-top:0}
  .buy .btn{width:auto;display:inline-flex;padding:.7em 1.4em .85em}

  .low{max-width:var(--max);margin:0 auto;padding:2.5rem 4rem 1.25rem;display:grid;grid-template-columns:1fr 1fr;gap:3rem;align-items:start}
  .chk{padding:0}
  .chk h2{font-size:1.75rem}
  .chk-frame{height:16.25rem}
  .faq{padding:0}
  .faq h2{font-size:1.75rem}

  .foot{padding:2rem 4rem 2.25rem}
}

/* ===== SCREENSHOT HELPERS (ไม่ใช้บนเว็บจริง) ===== */
html.shot{background:#FF00FF}
html.shot body{background:var(--paper)}
html.shot-full .buybar{display:none!important}
html.shot-full body{padding-bottom:0}
html.shot-top,html.shot-top body{background:var(--paper)}
