/*
Theme Name: S3Box Landing
Theme URI: https://s3-console.avesta.co.th/
Author: Avesta
Description: Landing page สำหรับ S3Box Object Storage — ฟีเจอร์ทั้งหมด, ราคา NVMe/SSD/HDD, ปุ่มสำหรับองค์กร/บุคคลทั่วไป/ผู้พร้อมซื้อ, คู่มือการใช้งาน และวิธีเชื่อมต่อ S3 API. รองรับภาษาไทย/อังกฤษ และโหมดกลางวัน/กลางคืน ไม่ต้องใช้ปลั๊กอิน
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: Proprietary
Text Domain: s3box
*/

/* S3Box Landing — โทนเดียวกับ S3 Console (กรมท่า + ทอง) มีโหมดกลางวัน/กลางคืน */
:root {
  --bg: #f6f7fb;
  --bg-alt: #eef1f6;
  --surface: #ffffff;
  --ink: #111827;
  --ink-soft: #374151;
  --muted: #5b6576;
  --line: #dfe4ec;
  --gold: #8a6512;          /* ข้อความ/ไอคอนสีทองบนพื้นขาว (contrast ≥ 4.5:1) */
  --gold-fill: #c9a24a;     /* พื้นปุ่ม */
  --gold-fill-hover: #b8913b;
  --gold-ink: #1b1405;      /* ตัวอักษรบนปุ่มทอง */
  --gold-soft: #f4ead2;
  --ok: #0f6b3c;
  --ok-bg: #e3f4ea;
  --bad: #a12a2a;
  --bad-bg: #fbe6e6;
  --code-bg: #0f172a;
  --code-ink: #e5e7eb;
  --shadow: 0 1px 2px rgba(17, 24, 39, .05), 0 8px 24px rgba(17, 24, 39, .06);
  --radius: 14px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #080c16;
  --bg-alt: #0c1221;
  --surface: #111829;
  --ink: #eef1f6;
  --ink-soft: #cdd3dd;
  --muted: #9aa4b4;
  --line: #222c40;
  --gold: #dcb862;
  --gold-fill: #d4b062;
  --gold-fill-hover: #e2c27a;
  --gold-ink: #1b1405;
  --gold-soft: #2a2414;
  --ok: #6fd49b;
  --ok-bg: #12301f;
  --bad: #f08a8a;
  --bad-bg: #3a1a1a;
  --code-bg: #050912;
  --code-ink: #e5e7eb;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Noto Sans Thai', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: var(--gold); }
h1, h2, h3 { line-height: 1.3; margin: 0 0 .5em; }
h1 { font-size: clamp(30px, 5vw, 50px); letter-spacing: -.01em; }
h2 { font-size: clamp(24px, 3.4vw, 34px); }
h3 { font-size: 18px; }
p { margin: 0 0 1em; }
code, pre { font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace, 'Noto Sans Thai'; }
code { font-size: .9em; background: var(--gold-soft); padding: 1px 6px; border-radius: 6px; overflow-wrap: anywhere; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }
.ic { flex: none; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 860px; }
.sec { padding: 72px 0; }
.sec.alt { background: var(--bg-alt); }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 36px; }
.kicker { color: var(--gold); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; margin-bottom: 10px; }
.lead { font-size: 18px; color: var(--ink-soft); }

/* ---------- ปุ่ม ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: 10px;
  background: var(--gold-fill); color: var(--gold-ink); border: 1px solid var(--gold-fill);
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s, transform .15s;
}
.btn:hover { background: var(--gold-fill-hover); border-color: var(--gold-fill-hover); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--gold-fill); color: var(--gold); }
.btn.sm { min-height: 38px; padding: 6px 14px; font-size: 14px; }
.btn.lg { min-height: 52px; padding: 12px 20px; }
.btn.block { display: flex; width: 100%; }
.btn .ic { width: 20px; height: 20px; }
:focus-visible { outline: 2px solid var(--gold-fill); outline-offset: 2px; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line);
  background: transparent; color: var(--ink); cursor: pointer;
}
.icon-btn:hover { border-color: var(--gold-fill); color: var(--gold); }
.icon-btn .ic { width: 20px; height: 20px; }
:root[data-theme="dark"] .when-light, :root:not([data-theme="dark"]) .when-dark { display: none; }
.when-dark, .when-light { display: inline-flex; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; margin-right: auto; }
.brand-mark { display: inline-flex; width: 40px; height: 40px; border-radius: 10px; align-items: center; justify-content: center; background: var(--gold-soft); color: var(--gold); }
.brand-logo { width: 40px; height: 40px; object-fit: contain; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text small { color: var(--muted); font-size: 12px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav > a { color: var(--ink-soft); text-decoration: none; padding: 8px 10px; border-radius: 8px; font-size: 15px; }
.nav > a:hover { color: var(--gold); background: var(--gold-soft); }
.nav-tools { display: inline-flex; align-items: center; gap: 8px; margin-left: 8px; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.lang a { padding: 7px 10px; font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none; }
.lang a.on { background: var(--gold-fill); color: var(--gold-ink); }
.menu-btn { display: none; }

@media (max-width: 1280px) {
  .menu-btn { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 68px;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px 16px 18px; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav > a { padding: 12px 10px; }
  .nav-tools { margin: 8px 0 0; flex-wrap: wrap; }
}

/* ---------- hero ---------- */
.hero { padding: 64px 0 40px; background:
  radial-gradient(800px 380px at 85% -10%, color-mix(in srgb, var(--gold-fill) 18%, transparent), transparent 70%),
  radial-gradient(600px 300px at -10% 10%, color-mix(in srgb, var(--gold-fill) 10%, transparent), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: 1.06fr .94fr; gap: 40px; align-items: center; }
.who { font-weight: 600; margin: 24px 0 10px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.hero-card { min-width: 0; }
/* สไลด์ตัวอย่างหน้าจอ S3 Console — กรอบหน้าต่างสีเดียวกับพื้นของ console (โหมดมืด) ทั้งสองโหมด */
.shots { --win: #030a16; --win-bar: #0a1021; --shot-time: 5s; }
.shots-win { background: var(--win); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  box-shadow: var(--shadow), 0 24px 60px -24px color-mix(in srgb, var(--gold-fill) 35%, transparent); }
.shots-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--win-bar); border-bottom: 1px solid rgba(255,255,255,.06); }
.shots-bar i { width: 10px; height: 10px; border-radius: 50%; background: #39424f; flex: none; }
.shots-bar span { margin: 0 auto; padding: 3px 14px; border-radius: 999px; background: rgba(255,255,255,.05); color: #9aa4b4; font-size: 12px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transform: translateX(-14px); }
.shots-view { position: relative; aspect-ratio: 16 / 9; }
.shot { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility 0s linear .6s; }
.shot.on { opacity: 1; visibility: visible; transition: opacity .6s ease; }
.shot-zoom { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.shot-zoom img { display: block; width: 100%; height: 100%; object-fit: cover; }
.shot-zoom:focus-visible { outline: 2px solid var(--gold-fill); outline-offset: -4px; }
.shot-term { height: 100%; display: flex; align-items: center; }
.shot-term pre { margin: 0; padding: 18px 22px; color: #e5e7eb; font-size: 13px; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }
.shot-term .c { color: #dcb862; }
.shot-term .ok { color: #6fd49b; }
.shots-foot { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.shots-dots { display: flex; gap: 6px; flex: 1; }
.shots-dots button { flex: 1; height: 20px; padding: 0; border: 0; background: none; cursor: pointer; display: flex; align-items: center; }
.shots-dots span { position: relative; display: block; width: 100%; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.shots-dots span::after { content: ""; position: absolute; inset: 0; background: var(--gold-fill); transform: scaleX(0); transform-origin: left; }
.shots-dots button.done span::after { transform: scaleX(1); }
.shots-dots button[aria-selected="true"] span::after { transform: scaleX(1); }
.shots.playing .shots-dots button[aria-selected="true"] span::after { animation: shot-fill var(--shot-time) linear forwards; }
.shots.held .shots-dots button[aria-selected="true"] span::after { animation-play-state: paused; }
.shots-dots button:hover span { background: color-mix(in srgb, var(--gold-fill) 35%, var(--line)); }
.shots-dots button:focus-visible { outline: 2px solid var(--gold-fill); outline-offset: 2px; border-radius: 4px; }
@keyframes shot-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.shots-play { flex: none; width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft); cursor: pointer; }
.shots-play:hover { color: var(--gold); border-color: var(--gold-fill); }
.shots-play .i-play, .shots:not(.playing) .shots-play .i-pause { display: none; }
.shots:not(.playing) .shots-play .i-play { display: block; }
.shots-cap { margin: 10px 0 0; min-height: 3.2em; font-size: 14px; color: var(--muted); }
.shots-cap b { display: block; color: var(--ink); font-size: 15px; }
.shot-dialog { width: min(1280px, 94vw); padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); }
.shot-dialog::backdrop { background: rgba(3, 7, 15, .78); }
.shot-dialog img { display: block; width: 100%; height: auto; background: #030a16; }
.shot-dialog .shots-cap { margin: 0; padding: 12px 18px 14px; min-height: 0; }
.shot-close { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(3,10,22,.75);
  color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.shot-close:focus-visible { outline: 2px solid var(--gold-fill); }
@media (max-width: 980px) {
  .shots { max-width: 640px; }
}
@media (max-width: 600px) {
  .shot-term pre { font-size: 10.5px; padding: 12px 14px; line-height: 1.6; }
}
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 40px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; }
.stat b { font-size: 17px; }

/* ---------- การ์ด ---------- */
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card.hot { border-color: var(--gold-fill); box-shadow: 0 0 0 1px var(--gold-fill), var(--shadow); }
.badge { position: absolute; top: 16px; right: 16px; background: var(--gold-fill); color: var(--gold-ink); font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.ic-wrap { display: inline-flex; width: 46px; height: 46px; border-radius: 12px; align-items: center; justify-content: center; background: var(--gold-soft); color: var(--gold); margin-bottom: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.aud, .price { display: flex; flex-direction: column; }
.aud .btn, .price .btn { margin-top: auto; }
.checks { list-style: none; padding: 0; margin: 4px 0 22px; display: grid; gap: 8px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks .ic { width: 20px; height: 20px; color: var(--ok); margin-top: 3px; }

.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.feat h3 { font-size: 16px; }
.feat p { font-size: 14.5px; margin: 0; }

/* ---------- ราคา ---------- */
.trial { display: flex; align-items: center; gap: 20px; margin-bottom: 28px; }
.trial .ic-wrap { margin: 0; }
.trial-text { flex: 1; }
.trial-text p { margin: 0; }
.cycle { display: flex; width: max-content; margin: 0 auto 24px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.cycle button { font: inherit; font-weight: 600; border: 0; background: transparent; color: var(--muted); padding: 8px 22px; border-radius: 9px; cursor: pointer; min-height: 40px; }
.cycle button.on { background: var(--gold-fill); color: var(--gold-ink); }
.amount { margin: 6px 0 18px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.amount[hidden] { display: none; }
.amount b { font-size: 34px; line-height: 1.1; }
.amount b.ask { font-size: 22px; }
.save { flex-basis: 100%; color: var(--ok); font-size: 14px; font-weight: 600; }

/* ---------- ขั้นตอน ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.steps .num { display: inline-flex; width: 34px; height: 34px; border-radius: 50%; align-items: center; justify-content: center; background: var(--gold-fill); color: var(--gold-ink); font-weight: 700; margin-bottom: 10px; }
.steps p { margin: 0; font-size: 14.5px; }
.steps.compact { grid-template-columns: repeat(2, 1fr); margin-bottom: 40px; }

.link-card { display: block; color: inherit; text-decoration: none; transition: border-color .15s, transform .15s; }
.link-card:hover { border-color: var(--gold-fill); transform: translateY(-2px); }
.more { color: var(--gold); font-weight: 600; }

/* ---------- ติดต่อ ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
.plain { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.form input, .form textarea {
  width: 100%; font: inherit; font-weight: 400; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; min-height: 44px;
}
.form input:focus, .form textarea:focus { border-color: var(--gold-fill); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold-fill) 25%, transparent); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.msg { margin: 0; padding: 10px 14px; border-radius: 10px; font-weight: 600; }
.msg.ok { background: var(--ok-bg); color: var(--ok); }
.msg.bad { background: var(--bad-bg); color: var(--bad); }

/* ---------- FAQ ---------- */
.faq { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 4px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--gold); font-size: 22px; line-height: 1; }
.faq[open] summary::after { content: '−'; }
.faq p { margin: 0 0 14px; }

/* ---------- หน้าเอกสาร ---------- */
.page-hero { padding: 56px 0 24px; border-bottom: 1px solid var(--line); }
.page-hero .btn { margin-top: 6px; }
.page-hero + .sec { padding-top: 40px; }
.sec h2 { margin-top: 8px; }
.wrap.narrow h2 { font-size: 24px; margin-top: 36px; }
.toc-list { list-style: none; padding: 0; margin: 0 0 40px; display: grid; gap: 8px; }
.toc-list a { display: flex; gap: 12px; align-items: baseline; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; color: var(--ink); text-decoration: none; }
.toc-list a:hover { border-color: var(--gold-fill); }
.toc-list .tc { flex: none; color: var(--gold); font-weight: 700; font-size: 14px; min-width: 52px; }
.cta-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 32px; }
.cta-card h3, .cta-card p { margin: 0; }
.numbered { padding-left: 22px; display: grid; gap: 8px; }
.kv { padding: 6px 20px; }
.kv-row { display: grid; grid-template-columns: 160px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.kv-row:last-child { border-bottom: 0; }
.kv-row code { justify-self: start; }
.copy { font: inherit; font-size: 13px; font-weight: 600; color: var(--gold); background: transparent; border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; cursor: pointer; min-height: 32px; }
.copy:hover { border-color: var(--gold-fill); }
.tabs { margin: 10px 0 8px; }
.tab-list { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.tab-list button { font: inherit; font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft); cursor: pointer; min-height: 40px; }
.tab-list button[aria-selected="true"] { background: var(--gold-fill); border-color: var(--gold-fill); color: var(--gold-ink); }
.code { position: relative; background: var(--code-bg); border-radius: 12px; border: 1px solid var(--line); }
.code pre { margin: 0; padding: 18px; color: var(--code-ink); font-size: 13.5px; line-height: 1.7; overflow-x: auto; }
.code .copy { position: absolute; top: 10px; right: 10px; background: rgba(255,255,255,.06); color: #dcb862; border-color: rgba(255,255,255,.14); }
.prose { overflow-wrap: anywhere; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 24px; background: var(--bg-alt); }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot h3 { font-size: 15px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.foot a { color: var(--ink-soft); text-decoration: none; }
.foot a:hover { color: var(--gold); }
.foot .brand { margin-bottom: 12px; }
.copyright { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; }

/* ---------- รูปประเภท storage ---------- */
.tier-img { display: block; width: calc(100% + 48px); max-width: none; height: 140px; object-fit: cover; margin: -24px -24px 18px; border-radius: var(--radius) var(--radius) 0 0; }
.price .badge { z-index: 1; }

/* ---------- Backup & Data Protection ---------- */
.dp-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; align-items: center; }
.dp-media img { display: block; width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.dp-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.dp-item { display: flex; gap: 14px; align-items: flex-start; }
.dp-item img { flex: none; width: 56px; height: 56px; border-radius: 12px; }
.dp-item h3 { font-size: 16px; margin-bottom: 2px; }
.dp-item p { font-size: 14.5px; margin: 0; }

/* ---------- About ---------- */
.about-teaser { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.about-teaser img, .wide-img img { display: block; width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.wide-img { margin: 0 0 24px; }
.contact-list { margin: 16px 0 20px; display: grid; gap: 12px; }
.contact-list div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; }
.contact-list dt { color: var(--muted); font-size: 14px; }
.contact-list dd { margin: 0; overflow-wrap: anywhere; }
.foot .contact-list div { grid-template-columns: 1fr; gap: 0; }
.foot .contact-list { margin: 0; gap: 10px; }
.map { padding: 0; overflow: hidden; min-height: 360px; }
.map iframe { display: block; width: 100%; height: 100%; min-height: 360px; border: 0; }

/* ---------- บทความ ---------- */
.article-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; color: inherit; text-decoration: none; transition: border-color .15s, transform .15s; }
.article-card:hover { border-color: var(--gold-fill); transform: translateY(-2px); }
.article-card img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--bg-alt); }
.article-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.article-body h3 { margin: 4px 0 8px; }
.article-body .more { margin-top: auto; }
.article h1 { font-size: clamp(26px, 4vw, 38px); }
.article h2, .article h3 { margin-top: 1.4em; }
.article img { display: block; max-width: 100%; height: auto; border-radius: 12px; margin: 12px auto; }
.article figure { margin: 16px 0; }
.article table { width: 100%; border-collapse: collapse; margin: 16px 0; display: block; overflow-x: auto; }
.article th, .article td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; vertical-align: top; }
.article th { background: var(--bg-alt); }
.article ul, .article ol { padding-left: 22px; }
.note-line { background: var(--gold-soft); border-radius: 10px; padding: 8px 14px; font-size: 14px; }

@media (max-width: 980px) {
  .dp-grid, .about-teaser { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .dp-list { grid-template-columns: 1fr; }
  .contact-list div { grid-template-columns: 1fr; gap: 0; }
}

/* ---------- จอแคบ ---------- */
@media (max-width: 980px) {
  .hero-grid, .contact-grid { grid-template-columns: 1fr; }
  .grid3 { grid-template-columns: 1fr; }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .sec { padding: 52px 0; }
  .hero { padding-top: 40px; }
  .cta-row .btn { width: 100%; }
  .grid2, .feat-grid, .steps, .steps.compact, .row2 { grid-template-columns: 1fr; }
  .trial, .cta-card { flex-direction: column; align-items: flex-start; }
  .trial .btn, .cta-card .btn { width: 100%; }
  .kv-row { grid-template-columns: 1fr auto; }
  .kv-row > span { grid-column: 1 / -1; }
  .foot { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- เนื้อหาเดิมจาก block editor (page.php) ---------- */
/* สีพื้น/ตัวอักษรที่ธีมเดิมตั้งไว้ในบล็อกอาจอ่านไม่ออกบนพื้นของธีมนี้ → ใช้สีของธีม */
.page-content [class*="-color"]:not(.btn), .page-content [style*="color"] { color: inherit !important; }
.page-content [class*="-background-color"], .page-content .has-background { background: transparent !important; }
.page-content pre, .page-content .wp-block-code { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; overflow-x: auto; font-size: 14px; }
.page-content blockquote, .page-content .wp-block-quote { border-left: 3px solid var(--gold-fill); margin: 16px 0; padding: 4px 0 4px 16px; color: var(--muted); }
.page-content .wp-block-image figcaption { text-align: center; font-size: 13px; color: var(--muted); }
.page-content .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.page-content .wp-block-button__link { display: inline-block; padding: 10px 18px; border-radius: 10px; background: var(--gold-fill); color: #14110a !important; text-decoration: none; font-weight: 600; }
.page-content .wp-block-columns { display: flex; flex-wrap: wrap; gap: 20px; }
.page-content .wp-block-column { flex: 1 1 240px; min-width: 0; }
.page-content .wp-block-spacer { height: 16px !important; }

/* ปุ่มเรียงแถว (หน้าคู่มือ: ดาวน์โหลด PDF + เปิดคู่มือฉบับเต็ม) */
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }

/* ---------- หน้าคู่มือ: หัวข้อแบบย่อ-หุบ ---------- */
.acc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 40px; }
.acc-head > h2 { margin: 0 !important; }
.btn.sm { padding: 7px 14px; font-size: 14px; }
.acc { display: grid; gap: 10px; margin: 16px 0 12px; }
.acc-item { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); transition: border-color .15s; }
.acc-item[open] { border-color: var(--gold-fill); }
.acc-item summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 14px 18px; cursor: pointer; }
.acc-item summary::-webkit-details-marker { display: none; }
.acc-item summary h3 { margin: 0; font-size: 17px; flex: 1; }
.acc-item summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s; margin-right: 4px; }
.acc-item[open] summary::after { transform: rotate(225deg); }
.acc-no { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; background: var(--gold-fill); color: #14110a; }
.acc-body { padding: 0 20px 16px 58px; }
.acc-body ol { margin: 0 0 10px; padding-left: 20px; }
.acc-body li { margin: 6px 0; }
.acc-note { border-radius: 10px; padding: 9px 12px; font-size: 15px; margin: 8px 0; }
.acc-note.tip { background: color-mix(in srgb, var(--gold-fill) 14%, transparent); }
.acc-note.warn { background: color-mix(in srgb, #e5484d 14%, transparent); }
@media (max-width: 640px) { .acc-body { padding-left: 18px; } }
