:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --text: #1c2430;
  --muted: #5f6b7a;
  --border: #dde2e8;
  --primary: #1f5fbf;
  --primary-text: #ffffff;
  --primary-soft: #e6eefb;
  --ok: #1d7a46;
  --ok-soft: #e3f4ea;
  --bad: #b3261e;
  --bad-soft: #fbe8e6;
  --warn: #a15c00;
  --radius: 12px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #12161c;
    --surface: #1b2129;
    --text: #e6eaf0;
    --muted: #9aa5b3;
    --border: #2c3440;
    --primary: #6ea0ec;
    --primary-text: #0d1420;
    --primary-soft: #1f2d44;
    --ok: #5cc98a;
    --ok-soft: #173225;
    --bad: #f08a80;
    --bad-soft: #3a1d1b;
    --warn: #f0b35a;
  }
}
:root[data-theme="dark"] {
  --bg: #12161c; --surface: #1b2129; --text: #e6eaf0; --muted: #9aa5b3; --border: #2c3440;
  --primary: #6ea0ec; --primary-text: #0d1420; --primary-soft: #1f2d44;
  --ok: #5cc98a; --ok-soft: #173225; --bad: #f08a80; --bad-soft: #3a1d1b; --warn: #f0b35a;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Sarabun', 'Noto Sans Thai', 'Leelawadee UI', 'Thonburi', 'Tahoma', sans-serif;
  font-size: 17px;
  line-height: 1.6;
}
button { font: inherit; color: inherit; }

.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px; background: var(--surface); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 5; flex-wrap: wrap;
}
.brand { font-weight: 700; color: var(--text); text-decoration: none; font-size: 1.1rem; }
.topbar nav { display: flex; gap: 14px; }
.topbar nav a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.topbar nav a:hover { color: var(--primary); }

main { max-width: 760px; margin: 0 auto; padding: 16px; min-height: 70vh; }
.foot { text-align: center; color: var(--muted); font-size: .85rem; padding: 24px 16px; }

h1 { font-size: 1.6rem; margin: 8px 0; line-height: 1.3; }
h2 { font-size: 1.2rem; margin: 0; line-height: 1.3; }
.hero p { color: var(--muted); margin-top: 0; }
.muted { color: var(--muted); }
.center { text-align: center; }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; margin: 12px 0;
}
.set-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; flex-wrap: wrap; }
.tag {
  display: inline-block; font-size: .8rem; padding: 2px 8px; border-radius: 99px;
  background: var(--primary-soft); color: var(--primary); white-space: nowrap;
}
.tag.soon { background: var(--border); color: var(--muted); }
.lp-exam h3 { margin-bottom: 8px; }
.lp-level { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--border); color: inherit; text-decoration: none; }
.lp-level:hover { text-decoration: underline; }
.lp-level.soon { color: var(--muted); }
.levelbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.level-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--border); flex-wrap: wrap; }
.level-item:first-of-type { margin-top: 8px; }
.level-item.soon strong { color: var(--muted); }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn {
  border: 1px solid var(--border); background: var(--surface); padding: 10px 16px;
  border-radius: 10px; cursor: pointer; min-height: 44px;
}
.btn:hover:not(:disabled) { border-color: var(--primary); }
.btn.primary { background: var(--primary); color: var(--primary-text); border-color: var(--primary); font-weight: 600; }
.btn:disabled { opacity: .45; cursor: default; }
.link { background: none; border: none; color: var(--primary); cursor: pointer; text-decoration: underline; padding: 6px; }

.quizbar { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: .95rem; }
.timer { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--text); font-size: 1.1rem; }
.timer.warn { color: var(--bad); }
.progress { height: 6px; background: var(--border); border-radius: 99px; overflow: hidden; margin: 8px 0; }
.progress > div { height: 100%; background: var(--primary); transition: width .2s; }
.qnum { margin: 0 0 8px; color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.qtext { font-size: 1.15rem; margin-bottom: 14px; }
.choices { display: grid; gap: 10px; }
.choice {
  display: flex; gap: 12px; align-items: flex-start; text-align: left; width: 100%;
  border: 1px solid var(--border); background: var(--surface); border-radius: 10px;
  padding: 12px 14px; cursor: pointer; min-height: 48px;
}
.choice:hover:not(:disabled) { border-color: var(--primary); }
.choice .letter {
  flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--border); font-weight: 600;
}
.choice.selected { border-color: var(--primary); background: var(--primary-soft); }
.choice.selected .letter { background: var(--primary); color: var(--primary-text); border-color: var(--primary); }
.choice.correct { border-color: var(--ok); background: var(--ok-soft); }
.choice.correct .letter { background: var(--ok); color: var(--surface); border-color: var(--ok); }
.choice.wrong { border-color: var(--bad); background: var(--bad-soft); }
.choice.wrong .letter { background: var(--bad); color: var(--surface); border-color: var(--bad); }
.choice:disabled { cursor: default; }

.explain { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: var(--bg); border: 1px solid var(--border); }
.explain .verdict { font-weight: 700; margin: 0 0 6px; }
.explain .verdict.ok { color: var(--ok); }
.explain .verdict.bad { color: var(--bad); }
.explain ol { margin: 0; padding-left: 22px; }

.nav { justify-content: space-between; margin-top: 4px; }
.nav .btn { flex: 1; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 6px; margin: 16px 0 4px; }
.cell {
  border: 1px solid var(--border); background: var(--surface); border-radius: 8px; height: 38px; cursor: pointer;
  font-size: .9rem;
}
.cell.done { background: var(--primary-soft); border-color: var(--primary); }
.cell.cur { outline: 2px solid var(--primary); outline-offset: 1px; font-weight: 700; }

.score-big { font-size: 3rem; font-weight: 700; line-height: 1.1; margin: 4px 0; }
.score-big small { font-size: 1.2rem; color: var(--muted); font-weight: 400; }
.notice { padding: 10px 14px; border-radius: 10px; background: var(--primary-soft); margin: 10px 0; }
.notice.warn { background: var(--bad-soft); color: var(--bad); }

.topic { margin: 10px 0; }
.topic-head { display: flex; justify-content: space-between; gap: 8px; font-size: .95rem; }
.bar { height: 10px; border-radius: 99px; background: var(--border); overflow: hidden; margin-top: 4px; }
.bar > div { height: 100%; border-radius: 99px; }
.bar .hi { background: var(--ok); }
.bar .mid { background: var(--warn); }
.bar .lo { background: var(--bad); }

.review-item { border-top: 1px solid var(--border); padding-top: 12px; margin-top: 12px; }
.review-item:first-child { border-top: none; margin-top: 0; padding-top: 0; }
.ans-line { margin: 4px 0; font-size: .95rem; }
.ans-line .ok { color: var(--ok); font-weight: 600; }
.ans-line .bad { color: var(--bad); font-weight: 600; }

.hist { width: 100%; border-collapse: collapse; font-size: .92rem; }
.hist th, .hist td { text-align: left; padding: 6px 4px; border-bottom: 1px solid var(--border); }
.hist td.num, .hist th.num { text-align: right; font-variant-numeric: tabular-nums; }

.qr-wrap { display: flex; flex-direction: column; align-items: center; gap: 10px; }
#qr { background: #fff; padding: 12px; border-radius: 10px; }
#qr img, #qr canvas { display: block; }
.amounts { justify-content: center; }
.amounts .btn.active { background: var(--primary); color: var(--primary-text); border-color: var(--primary); }

@media (max-width: 480px) {
  body { font-size: 16px; }
  .score-big { font-size: 2.4rem; }
}

/* utility classes (แทน inline style เพื่อให้ CSP เข้มงวดได้) */
.m0 { margin: 0; }
.mb10 { margin-bottom: 10px; }
.tiny { font-size: .85rem; }
.qtext.small { font-size: 1rem; margin-bottom: 6px; }
.stats-row { justify-content: space-around; text-align: center; }
.score-big.sm { font-size: 2rem; }
a.btn { text-decoration: none; display: inline-flex; align-items: center; color: var(--text); }
a.btn.primary { color: var(--primary-text); }
#qr img { display: block; width: 220px; height: 220px; }
.passage {
  background: var(--bg); border: 1px solid var(--border); border-left: 4px solid var(--primary);
  border-radius: 8px; padding: 10px 14px; margin-bottom: 12px; font-size: 1rem;
}
.hist td.ok { color: var(--ok); font-weight: 600; }
.hist td.bad { color: var(--bad); font-weight: 600; }

/* สมาชิก / ซื้อสิทธิ์ */
.field { display: flex; flex-direction: column; gap: 4px; margin: 10px 0; }
.field input[type="text"] {
  font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 12px; min-height: 44px; width: 100%;
}
.field input[type="text"]:focus { outline: 2px solid var(--primary); outline-offset: 1px; }
.check { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0; }
.check input { width: 20px; height: 20px; margin-top: 4px; flex: none; }
.code-big {
  font-family: ui-monospace, 'Consolas', 'Menlo', monospace; font-size: 1.6rem; font-weight: 700; letter-spacing: 1px;
  padding: 12px; border: 2px dashed var(--primary); border-radius: 10px; text-align: center; user-select: all; word-break: break-all;
}
.price { font-size: 2rem; font-weight: 700; }
.lock { color: var(--muted); font-size: .9rem; }
.list { margin: 6px 0; padding-left: 22px; }
.paid-set { border-top: 1px solid var(--border); padding-top: 10px; margin-top: 10px; }
.paid-set:first-of-type { border-top: none; margin-top: 0; }
.foot a { color: var(--muted); }

/* ---------- บัญชีสมาชิก (ในแอป) ---------- */
.field input[type="password"] {
  font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 12px; min-height: 44px; width: 100%;
}
.field input[type="password"]:focus { outline: 2px solid var(--primary); outline-offset: 1px; }
.field label { font-weight: 600; font-size: .95rem; }
.card.auth { max-width: 460px; margin: 20px auto; padding: 24px; }
.card.auth h1 { margin-top: 0; }
.btn.wide { width: 100%; justify-content: center; }
.row input.grow { flex: 1; min-width: 180px; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 99px; background: var(--bg); border: 1px solid var(--border); font-size: .9rem; }
.pill.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; font-weight: 600; }
.topbar nav a.navacct { color: var(--primary); font-weight: 600; }
.member-cta { border-color: var(--gold); background: linear-gradient(135deg, var(--surface), var(--gold-soft)); }
ul.ticks { list-style: none; padding-left: 0; }
ul.ticks li { padding-left: 26px; position: relative; margin: 6px 0; }
ul.ticks li::before { content: "✓"; position: absolute; left: 4px; color: var(--ok); font-weight: 700; }
.buy .price small, .lp-price small { font-size: 1rem; font-weight: 400; color: var(--muted); }

/* ชำระเงินแบบโอนเอง */
.pay-box { border: 2px solid var(--primary); border-radius: 12px; padding: 14px; margin: 12px 0; text-align: center; display: grid; gap: 6px; justify-items: center; }
.pay-id { font-family: ui-monospace, Consolas, monospace; font-size: 1.6rem; font-weight: 700; letter-spacing: 1px; user-select: all; }

/* โปรโมชันราคา */
.promo-note { margin: 8px 0; padding: 8px 12px; border-radius: 10px; background: var(--gold-soft, #f7efdc); border: 1px solid var(--gold, #c9a24a); font-size: .95rem; }
s.regular, s.lp-regular { font-size: 1.1rem; font-weight: 400; color: var(--muted); margin-left: 6px; }
.lp-promo { margin: 0 0 8px; color: var(--navy-2); font-weight: 600; font-size: .95rem; }
.lp-promo-bar { display: block; text-align: center; background: #e0bd62; color: #1a1406; font-weight: 600; padding: 8px 16px; text-decoration: none; }
.lp-promo-bar:hover { background: #ebcb78; }

/* บทเรียน */
.lesson-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 0; border-top: 1px solid var(--border); }
.lesson-row:first-of-type { border-top: none; }
.card.lesson h1 { font-size: 1.4rem; margin: 6px 0 14px; }
.card.lesson h2 { font-size: 1.15rem; margin: 22px 0 8px; color: var(--navy-2, var(--primary)); }
.card.lesson p, .card.lesson li { line-height: 1.75; }
.lesson-t { min-width: 460px; }
.lesson-t td { vertical-align: top; }
.notice.lesson-tip { background: var(--ok-soft); }
.notice strong { margin-right: 4px; }

/* ใบรายงานผล */
.wrapx { overflow-x: auto; margin: 10px 0; }
.report-t { min-width: 520px; }
.report-t tr.subj td { font-weight: 700; background: var(--bg); border-top: 2px solid var(--border); }
.report-t tr.cat td:first-child { padding-left: 22px; color: var(--muted); }
.report-t tr.total td { font-weight: 700; border-top: 2px solid var(--text); }
.report-t td.ok, .report-t .ok { color: var(--ok); font-weight: 600; }
.report-t td.bad, .report-t .bad { color: var(--bad); font-weight: 600; }
.report .ok { color: var(--ok); } .report .bad { color: var(--bad); }
.minibar { display: inline-block; width: 60px; height: 6px; background: var(--border); border-radius: 99px; overflow: hidden; vertical-align: middle; margin-right: 6px; }
.minibar > span { display: block; height: 100%; }
.minibar .hi { background: var(--ok); } .minibar .mid { background: var(--warn); } .minibar .lo { background: var(--bad); }
.set-head select { font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 6px 8px; max-width: 100%; }
@media print {
  .topbar, .foot, .noprint, .nav, .grid, #again, .btn, details.rounds, .row .btn { display: none !important; }
  body { background: #fff; color: #000; }
  .card { border: none; padding: 0; break-inside: avoid; }
  .minibar { display: none; }
}

/* ประวัติคะแนนแต่ละรอบ (หน้าสถิติ) */
details.rounds { border-top: 1px solid var(--border); padding: 8px 0; }
details.rounds:first-of-type { border-top: none; }
details.rounds summary { color: var(--text); font-weight: 400; }
details.rounds table { margin-top: 6px; }

/* ---------- หน้าแรกและบทความ (static) ---------- */
:root { --navy: #14284b; --navy-2: #1f3a66; --gold: #c9a24a; --gold-soft: #f7efdc; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --gold: #d9b45a; --gold-soft: #2b2617; } }
:root[data-theme="dark"] { --gold: #d9b45a; --gold-soft: #2b2617; }
body.lp { font-size: 17px; }
body.lp main { max-width: none; padding: 0; min-height: 0; }
.lp-in { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.lp-narrow { max-width: 760px; }
.lp-top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 12px 20px; background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 5;
}
.lp-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; color: var(--text); text-decoration: none; }
.lp-tag { font-weight: 400; font-size: .8rem; color: var(--muted); }
.hero .tagline { margin: -4px 0 8px; color: var(--muted); font-weight: 600; }
@media (max-width: 600px) { .lp-tag { display: none; } }
.lp-mark { width: 34px; height: 34px; border-radius: 9px; background: var(--navy); color: #e6c879; display: grid; place-items: center; font-size: 1.2rem; }
.lp-nav { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.lp-nav a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.lp-nav a:hover { color: var(--primary); }
.lp-nav a.lp-login { color: var(--text); font-weight: 600; }
.lp-nav a.btn.primary { color: var(--primary-text); }
.lp-cta-sm { min-height: 38px; padding: 6px 14px; }

.lp-hero {
  background: radial-gradient(1200px 500px at 85% -10%, #2c4f86 0%, transparent 60%), linear-gradient(160deg, var(--navy) 0%, #0d1c37 100%);
  color: #f3f5f9; padding: 72px 0 80px;
}
.lp-eyebrow { color: #e6c879; letter-spacing: .5px; font-weight: 600; margin: 0 0 10px; }
.lp-hero h1 { font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.2; margin: 0 0 18px; font-weight: 700; }
.lp-hero h1 span { color: #e6c879; }
.lp-lead { font-size: 1.15rem; max-width: 640px; color: #d2dae8; margin: 0 0 28px; }
.lp-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn.lp-cta { background: #e0bd62; border-color: #e0bd62; color: #1a1406; font-size: 1.05rem; padding: 12px 26px; min-height: 52px; }
.btn.lp-cta:hover { background: #ebcb78; }
.lp-hero .btn.lp-ghost { background: transparent; color: #f3f5f9; border-color: rgba(255, 255, 255, .35); min-height: 52px; padding: 12px 22px; }
.lp-note { color: #9fb0cb; font-size: .9rem; margin: 16px 0 0; }

.lp-stats { background: var(--surface); border-bottom: 1px solid var(--border); }
.lp-stats-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding-top: 22px; padding-bottom: 22px; text-align: center; }
.lp-stats b { display: block; font-size: 1.6rem; color: var(--navy-2); }
.lp-stats span { color: var(--muted); font-size: .9rem; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .lp-stats b { color: var(--gold); } }

.lp-sec { padding: 64px 0; }
.lp-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.lp-h2 { font-size: clamp(1.5rem, 3vw, 2rem); text-align: center; margin: 0 0 10px; }
.lp-sub { text-align: center; color: var(--muted); margin: 0 0 28px; }
.lp-sec .lp-h2 + .lp-grid3, .lp-sec .lp-h2 + .lp-steps, .lp-sec .lp-h2 + .lp-plans { margin-top: 28px; }
.lp-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.lp-feat { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 22px; }
.lp-alt .lp-feat { background: var(--bg); }
.lp-feat h3, .lp-subj h3, .lp-steps h3, .lp-plan h3 { font-size: 1.1rem; margin: 0 0 8px; }
.lp-feat p, .lp-subj p, .lp-steps p { color: var(--muted); margin: 0; }
.lp-subj { display: flex; flex-direction: column; gap: 8px; background: var(--bg); border: 1px solid var(--border); border-top: 4px solid var(--gold); border-radius: 14px; padding: 22px; color: var(--text); text-decoration: none; }
.lp-subj:hover { border-color: var(--gold); }
.lp-meta { font-size: .9rem; font-weight: 600; color: var(--navy-2); }
.lp-more { color: var(--primary); font-size: .95rem; margin-top: auto; }
.lp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.lp-steps > div { text-align: center; padding: 10px; }
.lp-steps b { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color: #e6c879; font-size: 1.2rem; margin-bottom: 10px; }

.lp-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 360px)); justify-content: center; gap: 22px; }
.lp-plan { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 26px; display: flex; flex-direction: column; }
.lp-plan .btn { margin-top: auto; }
.lp-best { border: 2px solid var(--gold); box-shadow: 0 10px 30px rgba(20, 40, 75, .12); }
.lp-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--gold); color: #1a1406; font-size: .8rem; font-weight: 700; padding: 3px 12px; border-radius: 99px; }
.lp-price { font-size: 2.4rem; font-weight: 700; margin: 4px 0 8px; }

.lp-q { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px; margin: 16px 0; }
.lp-q-meta { margin: 0 0 8px; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.lp-q-text { font-size: 1.1rem; margin-bottom: 12px; }
.lp-choices { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; }
.lp-choices li { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.lp-choices .letter { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--border); display: grid; place-items: center; font-weight: 600; font-size: .9rem; }
details > summary { cursor: pointer; color: var(--primary); font-weight: 600; padding: 6px 0; }
.lp-q details[open] { background: var(--bg); border-radius: 10px; padding: 4px 14px 10px; }
.lp-q details ol { padding-left: 22px; margin: 0; }
.lp-q .verdict { font-weight: 700; color: var(--ok); margin: 6px 0; }
.lp-faq { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 6px 16px; margin: 10px 0; }
.lp-faq p { margin: 4px 0 10px; color: var(--muted); }

.lp-band { background: linear-gradient(160deg, var(--navy) 0%, #0d1c37 100%); color: #f3f5f9; padding: 56px 0; }
.lp-band h2 { font-size: 1.8rem; margin: 0 0 8px; }
.lp-band p { color: #c7d1e3; margin: 0 0 22px; }
.lp-pagehead { background: linear-gradient(160deg, var(--navy) 0%, #0d1c37 100%); color: #f3f5f9; padding: 36px 0 32px; }
.lp-pagehead h1 { margin: 6px 0 0; font-size: clamp(1.6rem, 4vw, 2.3rem); }
.lp-crumb { margin: 0; font-size: .9rem; color: #9fb0cb; }
.lp-crumb a { color: #c7d1e3; }
.lp-article h2 { font-size: 1.35rem; margin: 30px 0 10px; }
.lp-article h3 { font-size: 1.1rem; margin: 18px 0 6px; }
.lp-article p, .lp-article li { line-height: 1.75; }
.lp-tags .tag { margin: 0 4px 6px 0; }
.lp-foot { background: var(--surface); border-top: 1px solid var(--border); padding: 36px 0; color: var(--muted); font-size: .92rem; }
.lp-foot-in { max-width: 1080px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
.lp-foot strong { color: var(--text); }
.lp-foot a { color: var(--muted); }

@media (max-width: 820px) {
  .lp-grid3, .lp-steps { grid-template-columns: 1fr; }
  .lp-plans { grid-template-columns: 1fr; }
  .lp-stats-in { grid-template-columns: repeat(2, 1fr); }
  .lp-foot-in { grid-template-columns: 1fr; }
  .lp-nav a:not(.btn):not(.lp-login) { display: none; }
  .lp-hero { padding: 48px 0 56px; }
  .lp-sec { padding: 44px 0; }
}
