/* หน้าแนะนำ / สมัคร / หลังบ้าน — ใช้โทนเดียวกับตัวระบบ (สมุดบัญชีหมึกเขียว บนกระดาษราชการ) */
:root {
  --brand1: #0f766e; --brand2: #14b8a6; --brand3: #f59e0b;
  --paper: #f3f6f2; --surface: #fff; --surface-2: #eaf0ec; --line: #d5ddd6;
  --ink: #1b2422; --ink-2: #55615d; --stamp: #c2410c; --ok: #2c7a4b; --bad: #b0412f; --warn: #9a6a12;
  --f-ui: "IBM Plex Sans Thai", "Sarabun", "Noto Sans Thai", system-ui, sans-serif;
  --shadow: 0 1px 2px rgba(20, 40, 35, .06), 0 8px 24px rgba(15, 118, 110, .10);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--f-ui); color: var(--ink); background: var(--paper); line-height: 1.65; font-size: 16px; }
a { color: var(--brand1); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.top { background: var(--brand1); color: #fff; }
.top .wrap { display: flex; align-items: center; gap: 16px; min-height: 60px; }
.top .logo { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 600; }
.top .logo img { width: 30px; height: 30px; }
.top nav { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.top nav a { color: #e6fffb; text-decoration: none; padding: 6px 12px; border-radius: 8px; font-size: 15px; }
.top nav a:hover { background: rgba(255,255,255,.12); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: 10px 20px; border-radius: 10px; text-decoration: none; cursor: pointer; min-height: 44px; }
.btn.pri { background: var(--brand1); border-color: var(--brand1); color: #fff; }
.btn.pri:hover { background: #0b5f58; }
.btn.gold { background: var(--brand3); border-color: var(--brand3); color: #2b1d00; }
.btn.sm { padding: 5px 12px; min-height: 34px; font-size: 14px; font-weight: 500; }
.btn.bad { color: var(--bad); }
.btn:disabled { opacity: .55; cursor: default; }
.hero { background: linear-gradient(140deg, #0b5f58 0%, var(--brand1) 50%, #12968a 100%); color: #fff; padding: 56px 0 64px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, transparent 0 31px, rgba(255,255,255,.06) 31px 32px); pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.25; margin: 0 0 14px; letter-spacing: -.01em; }
.hero p.lead { font-size: 18px; color: #d9f7f2; margin: 0 0 24px; max-width: 36em; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .cta .btn:not(.gold) { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.35); }
.hero .note { margin-top: 14px; font-size: 14px; color: #bdeee6; }
.ledger { background: #fffef8; color: var(--ink); border-radius: 14px; box-shadow: 0 20px 50px rgba(0,0,0,.25); padding: 18px 20px; font-size: 14px; transform: rotate(1.2deg); }
.ledger h3 { margin: 0 0 4px; font-size: 15px; }
.ledger .sub { color: var(--ink-2); font-size: 12.5px; margin-bottom: 10px; }
.ledger table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.ledger td, .ledger th { padding: 6px 4px; border-bottom: 1px solid #e7e4d6; text-align: left; }
.ledger th { font-size: 12px; color: var(--ink-2); font-weight: 500; }
.ledger td.n { text-align: right; }
.ledger .in { color: var(--ok); } .ledger .out { color: var(--bad); }
.ledger .tot td { font-weight: 700; border-bottom: 3px double #b9b39a; }
.ledger .stamp { display: inline-block; margin-top: 10px; border: 2px solid var(--stamp); color: var(--stamp); padding: 1px 10px; border-radius: 6px; font-weight: 700; transform: rotate(-4deg); font-size: 13px; }
section { padding: 56px 0; }
section h2 { font-size: clamp(24px, 3vw, 32px); margin: 0 0 8px; line-height: 1.3; }
section .intro { color: var(--ink-2); margin: 0 0 28px; max-width: 46em; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; box-shadow: var(--shadow); }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p, .card ul { margin: 0; color: var(--ink-2); font-size: 15px; }
.card ul { padding-left: 18px; }
.card .ic { width: 38px; height: 38px; border-radius: 10px; background: #e1f3ef; color: var(--brand1); display: grid; place-items: center; font-size: 20px; margin-bottom: 10px; }
.alt { background: var(--surface-2); }
.price { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 820px; }
.price .card { padding: 26px; }
.price .amt { font-size: 40px; font-weight: 700; color: var(--brand1); line-height: 1.1; margin: 8px 0 2px; }
.price .amt small { font-size: 16px; color: var(--ink-2); font-weight: 400; }
.price .card.main { border: 2px solid var(--brand1); }
.price ul { margin: 14px 0 20px; }
.price li { margin: 4px 0; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; }
.faq summary { font-weight: 600; cursor: pointer; }
.faq p { margin: 8px 0 0; color: var(--ink-2); }
footer { padding: 28px 0 40px; color: var(--ink-2); font-size: 14px; border-top: 1px solid var(--line); }
/* ฟอร์ม */
.form-page { max-width: 640px; margin: 36px auto 60px; padding: 0 16px; }
.form-page h1 { font-size: 28px; margin: 0 0 6px; }
.f { display: block; margin-bottom: 14px; }
.f > span { display: block; font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.f .hint { display: block; font-weight: 400; color: var(--ink-2); font-size: 13.5px; margin-top: 4px; }
input, select, textarea { font: inherit; width: 100%; padding: 10px 12px; border: 1px solid #c4cdc6; border-radius: 10px; background: #fff; color: var(--ink); min-height: 44px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand2); outline-offset: 1px; border-color: var(--brand1); }
.slug { display: flex; align-items: stretch; }
.slug .pre { display: flex; align-items: center; padding: 0 10px; background: var(--surface-2); border: 1px solid #c4cdc6; border-right: 0; border-radius: 10px 0 0 10px; color: var(--ink-2); font-size: 14px; white-space: nowrap; max-width: 55%; overflow: hidden; text-overflow: ellipsis; }
.slug input { border-radius: 0 10px 10px 0; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.msg { padding: 12px 14px; border-radius: 10px; margin: 12px 0; }
.msg.bad { background: #f8e3de; color: #7d2a1d; }
.msg.ok { background: #e1f0e6; color: #1e5434; }
.hp { position: absolute; left: -9999px; }
@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .ledger { transform: none; }
  .grid { grid-template-columns: 1fr; }
  .price { grid-template-columns: 1fr; }
  .two { grid-template-columns: 1fr; }
  .top nav a.hide-sm { display: none; }
  .wrap { padding: 0 16px; }
}
