/* ============================================================
   Brand CI ของ eddu (ค่าจาก eddu-design-system.md ของโปรเจกต์ B2B)
   ใช้ token จากไฟล์นี้เท่านั้น ห้ามตั้งสีหรือฟอนต์เองในหน้าอื่น
   หน้าตาจริงจะออกแบบร่วมกันในเฟส 2 — สไตล์ข้างล่าง token เป็นแค่โครงร่างให้อ่านง่าย
   ============================================================ */
:root{
  --brand-cyan:#00CFEF;          /* สีหลักจากโลโก้ */
  --brand-teal:#00D9C9;          /* สีรองจากโลโก้ */
  --brand-gradient:linear-gradient(90deg,#00CFEF 0%,#00D9C9 100%);
  --brand-cyan-deep:#00A8C5;     /* hover / กด */
  --brand-ink:#046B81;           /* ใช้แทน cyan บนพื้นสว่าง (cyan บนขาวไม่ผ่าน AA) */
  --on-brand:#00272C;            /* ตัวอักษรบนพื้นสีแบรนด์ — ห้ามใช้ขาว */

  --surface:#FFFFFF; --surface-alt:#F5F5F7;
  --text:#1D1D1F; --text-muted:#6E6E73;
  --border:rgba(0,0,0,.08); --accent:var(--brand-ink);

  --font:'IBM Plex Sans Thai','Segoe UI',sans-serif;
  --radius-md:14px; --radius-lg:22px; --radius-pill:9999px;
  --container:1140px; --gutter:24px;
  --section-y:clamp(56px,8vw,96px);
  --ease:cubic-bezier(.22,1,.36,1);
}
.zone-dark{
  --surface:#000000; --surface-alt:#0A0A0C;
  --text:#FFFFFF; --text-muted:#A1A1A6;
  --border:rgba(255,255,255,.12); --accent:var(--brand-teal);
}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;font-family:var(--font);font-size:16px;line-height:1.7;color:var(--text);background:var(--surface)}
h1,h2,h3{line-height:1.35;margin:0 0 .4em}
h1{font-size:clamp(30px,5vw,50px);font-weight:700;letter-spacing:-.4px;line-height:1.28}
h2{font-size:clamp(24px,3.4vw,34px);font-weight:700}
h3{font-size:18px;font-weight:600;line-height:1.45}
a{color:var(--accent)}
img{max-width:100%;display:block}
.container{max-width:var(--container);margin:0 auto;padding:0 var(--gutter)}
@media (max-width:640px){:root{--gutter:16px}}
section{padding:var(--section-y) 0;background:var(--surface);color:var(--text)}
.muted{color:var(--text-muted)}
.accent{color:var(--accent)}

/* ปุ่ม: หลัก = gradient แบรนด์ ตัวอักษร on-brand · รอง = ขอบ */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 22px;
  border-radius:var(--radius-pill);font:600 15px/1.2 var(--font);text-decoration:none;cursor:pointer;border:1.5px solid transparent;
  transition:transform .15s var(--ease)}
.btn-primary{background:var(--brand-gradient);color:var(--on-brand)}
.btn-secondary{background:transparent;color:var(--text);border-color:var(--border)}
.btn:hover{transform:translateY(-1px)}
.btn[disabled]{opacity:.5;cursor:not-allowed;transform:none}
:focus-visible{outline:2px solid var(--brand-cyan);outline-offset:2px}

/* ---------- โครงร่าง (แทนที่ในเฟส 2) ---------- */
.site-header{position:sticky;top:0;z-index:10;background:rgba(255,255,255,.9);backdrop-filter:blur(12px);border-bottom:1px solid var(--border)}
.site-header .container{display:flex;align-items:center;justify-content:space-between;min-height:64px}
.cobrand{display:flex;align-items:center;gap:10px;font-weight:700;color:var(--text);text-decoration:none}
.cobrand img{height:28px;width:auto}
.cobrand .x{color:var(--text-muted);font-weight:500}
.draft-banner{background:#FFF7E0;color:#7A5300;font-size:13.5px;text-align:center;padding:6px 16px}

.course-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:20px;margin-top:24px}
.course-card{display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);overflow:hidden}
.course-card .cover{aspect-ratio:16/9;background:var(--surface-alt);display:grid;place-items:center;color:var(--text-muted);font-size:13.5px}
.course-card .cover img{width:100%;height:100%;object-fit:cover}
.course-card .body{padding:18px;display:flex;flex-direction:column;gap:6px;flex:1}
.course-card .meta{font-size:13.5px;color:var(--text-muted)}
.course-card .price{font-weight:700;font-size:20px;color:var(--accent);margin-top:auto}
.course-card .actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}
.badge{display:inline-block;font-size:12px;font-weight:600;padding:2px 10px;border-radius:var(--radius-pill);background:var(--surface-alt);color:var(--text-muted)}
.badge-sample{background:#FFF0D6;color:#7A4B00}
.badge-closed{background:#FDE8E8;color:#9B1C1C}
[data-sale-ended="true"]{display:none}

.course-detail{display:grid;grid-template-columns:2fr 1fr;gap:32px;align-items:start}
@media (max-width:860px){.course-detail{grid-template-columns:1fr}}
.buy-box{position:sticky;top:88px;border:1px solid var(--border);border-radius:var(--radius-lg);padding:20px;background:var(--surface)}
.buy-box .price{font-size:28px;font-weight:700;color:var(--accent)}
ul.clean{padding-left:1.2em;margin:.2em 0 1em}

.site-footer{padding:40px 0;font-size:13.5px;background:var(--surface);color:var(--text)}
.line-oa{display:inline-flex;align-items:center;gap:8px;font-weight:600}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
