/* SUKSAN AUDIO — สไตล์กลางของทั้งเว็บ
   เปลี่ยนสีทั้งเว็บได้ที่ :root ด้านล่าง */
:root {
  --bg: #f5f4f0;
  --surface: #ffffff;
  --ink: #16181d;
  --ink-2: #4a4f5a;
  --line: #e2e0da;
  --dark: #0f1115;
  --dark-2: #1a1d24;
  --accent: #f0a21a;      /* สีหลักของแบรนด์ (ส้มอำพัน) */
  --accent-ink: #1a1200;
  --line-green: #06c755;  /* สีปุ่ม LINE */
  --radius: 14px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "IBM Plex Sans Thai", "Noto Sans Thai", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  font-size: 17px;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: clamp(30px, 5vw, 50px); font-weight: 700; }
h2 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 700; }
h3 { font-size: 20px; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.muted { color: var(--ink-2); }
.eyebrow { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 8px; display: block; }

/* ---------- Header ---------- */
.site-header { background: var(--dark); color: #fff; position: sticky; top: 0; z-index: 20; border-bottom: 1px solid #22262e; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 28px; width: auto; }
.nav { display: flex; gap: 4px; align-items: center; }
.nav a { text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: 15px; color: #cfd3db; }
.nav a:hover, .nav a.active { color: #fff; background: #22262e; }
.nav a.btn-line { color: #fff; background: var(--line-green); margin-left: 6px; }
.nav-toggle, .nav-btn { display: none; }

@media (max-width: 820px) {
  .nav-btn { display: block; cursor: pointer; padding: 8px; }
  .nav-btn span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--dark); flex-direction: column; align-items: stretch; padding: 8px 16px 16px; border-bottom: 1px solid #22262e; }
  .nav a { padding: 12px; }
  .nav a.btn-line { margin: 8px 0 0; text-align: center; }
  .nav-toggle:checked ~ .nav { display: flex; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 10px; font-weight: 600; text-decoration: none; font-size: 16px; border: 1px solid transparent; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.07); }
.btn-ghost { border-color: #3a3f4a; color: #fff; }
.btn-ghost:hover { background: #22262e; }
.btn-outline { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-line { background: var(--line-green); color: #fff; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Hero ---------- */
.hero { background: radial-gradient(1200px 500px at 80% -10%, #2b2210 0%, transparent 60%), var(--dark); color: #fff; padding: 72px 0 80px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero p.lead { font-size: 19px; color: #c3c8d1; max-width: 34em; }
.hero .ph { background: #1a1d24; border-color: #343945; color: #7d8492; min-height: 320px; }
@media (max-width: 820px) { .hero .wrap { grid-template-columns: 1fr; } .hero { padding: 48px 0 56px; } }

.page-head { background: var(--dark); color: #fff; padding: 48px 0 40px; }
.page-head p { color: #c3c8d1; margin: 0; max-width: 40em; }
.crumb { font-size: 14px; color: #8b92a0; margin-bottom: 10px; }
.crumb a { color: #8b92a0; }

/* ---------- Sections ---------- */
section { padding: 64px 0; }
section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 40em; margin-bottom: 32px; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 820px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin-bottom: 6px; }
.card p:last-child { margin-bottom: 0; }
.feature .icon { width: 44px; height: 44px; border-radius: 10px; background: #fff4de; color: #a86a00; display: grid; place-items: center; font-weight: 700; margin-bottom: 14px; font-size: 20px; }

.product-card { display: flex; flex-direction: column; text-decoration: none; overflow: hidden; padding: 0; transition: transform .15s, box-shadow .15s; }
.product-card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,.08); }
.product-card .ph { border-radius: 0; border: 0; border-bottom: 1px solid var(--line); min-height: 220px; }
.product-card .body { padding: 22px 24px 24px; }
.product-card .more { color: #a86a00; font-weight: 600; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 99px; background: #fff4de; color: #8a5600; margin-bottom: 10px; }

.link-tile { display: flex; gap: 16px; align-items: flex-start; text-decoration: none; }
.link-tile .icon { flex: none; }

/* ---------- Placeholder (ของที่ยังต้องใส่) ---------- */
.ph { background: repeating-linear-gradient(45deg, #efede7, #efede7 10px, #e9e6df 10px, #e9e6df 20px); border: 1px dashed #c9c4b8; border-radius: var(--radius); display: grid; place-items: center; text-align: center; color: #857f72; font-size: 15px; min-height: 200px; padding: 16px; }
.todo { background: #fff3c4; border: 1px dashed #d9a400; color: #6b5200; padding: 0 6px; border-radius: 4px; font-size: .92em; }

/* ---------- Spec table ---------- */
table.spec { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
table.spec th, table.spec td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.spec th { width: 38%; font-weight: 600; color: var(--ink-2); background: #faf9f6; }
table.spec tr:last-child th, table.spec tr:last-child td { border-bottom: 0; }

.product-top { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.product-top .ph { min-height: 360px; }
@media (max-width: 820px) { .product-top { grid-template-columns: 1fr; } .product-top .ph { min-height: 240px; } }
ul.check { list-style: none; padding: 0; margin: 0 0 1.2em; }
ul.check li { padding-left: 28px; position: relative; margin-bottom: 8px; }
ul.check li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 12px; height: 7px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }

/* ---------- Manual ---------- */
.manual { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: start; }
.toc { position: sticky; top: 84px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; font-size: 15px; }
.toc strong { display: block; margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 20px; }
.toc a { text-decoration: none; color: var(--ink-2); }
.toc a:hover { color: var(--ink); }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; scroll-margin-top: 84px; }
.step h2 { font-size: 22px; display: flex; gap: 12px; align-items: center; }
.step h2 .n { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: 17px; }
.step ol, .step ul { padding-left: 22px; margin: 0 0 1em; }
.step li { margin-bottom: 6px; }
.step .ph { min-height: 180px; margin: 12px 0 16px; }
.note { background: #fff8e6; border-left: 4px solid var(--accent); padding: 12px 16px; border-radius: 0 10px 10px 0; margin: 12px 0; }
.warn { background: #fdecec; border-left: 4px solid #d93a3a; padding: 12px 16px; border-radius: 0 10px 10px 0; margin: 12px 0; }
details.faq { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; }
details.faq summary { cursor: pointer; font-weight: 600; }
details.faq[open] summary { margin-bottom: 8px; }
@media (max-width: 820px) { .manual { grid-template-columns: 1fr; } .toc { position: static; } }

/* ---------- CTA + Footer ---------- */
.cta { background: var(--dark-2); color: #fff; border-radius: 20px; padding: 40px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta p { color: #c3c8d1; margin: 0; }
.site-footer { background: var(--dark); color: #9aa1ad; padding: 48px 0 32px; font-size: 15px; margin-top: 64px; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; margin: 0 0 10px; font-size: 15px; }
.site-footer a { color: #9aa1ad; text-decoration: none; display: block; margin-bottom: 6px; }
.site-footer a:hover { color: #fff; }
.site-footer .copy { border-top: 1px solid #22262e; margin-top: 32px; padding-top: 20px; font-size: 14px; }
@media (max-width: 820px) { .site-footer .cols { grid-template-columns: 1fr; } }

/* ---------- โลโก้ตัวอักษร ---------- */
.brand .word { color: #fff; font-weight: 700; letter-spacing: .08em; font-size: 18px; line-height: 1; }
.brand .word small { font-weight: 400; color: var(--accent); letter-spacing: .22em; margin-left: 6px; font-size: 13px; }
