/* ตรวจดี – shared styles */
:root{
  --navy:#0E3B53; --navy-2:#1C4E68; --navy-dark:#0A2A3B;
  --orange:#C2551A; --orange-text:#A3450F; --orange-soft:#FFF4EC;
  --line:#06C755; --ink:#17242C; --muted:#4A5A63; --border:#DCE3E7; --bg-soft:#F3F6F7;
  --red:#9B1C1C; --red-soft:#FDECEC; --amber:#8A4A0B; --amber-soft:#FDF1E1; --green:#1F6B45; --green-soft:#E6F4EC;
  --radius:14px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:'Noto Sans Thai',system-ui,sans-serif;color:var(--ink);line-height:1.65;background:#fff;font-size:16px}
h1,h2,h3,h4{font-family:'IBM Plex Sans Thai',sans-serif;line-height:1.3;margin:0 0 .4em}
p{margin:0 0 .8em}
a{color:var(--navy)}
img{max-width:100%}
.wrap{max-width:1100px;margin:0 auto;padding:0 20px}
.narrow{max-width:760px}

/* header */
.site-header{background:var(--navy);color:#fff}
.site-header .wrap{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding-top:14px;padding-bottom:14px}
.brand{display:flex;align-items:center;gap:10px;color:#fff;text-decoration:none;font-family:'IBM Plex Sans Thai',sans-serif;font-weight:700;font-size:21px}
.brand small{font-weight:500;font-size:13px;color:#C9DCE6}
.nav{display:flex;flex-wrap:wrap;gap:18px;font-size:15px}
.nav a{color:#E3EEF3;text-decoration:none}
.nav a:hover{color:#fff;text-decoration:underline}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:10px 22px;border-radius:10px;font-weight:600;font-size:16px;text-decoration:none;border:0;cursor:pointer;font-family:inherit}
.btn-line{background:var(--line);color:#fff}
.btn-primary{background:var(--orange);color:#fff}
.btn-primary:hover{background:#A84812}
.btn-ghost{background:#fff;color:var(--navy);border:1.5px solid #B9C8D0}
.btn-sm{min-height:40px;padding:8px 16px;font-size:15px}

/* hero */
.hero{background:var(--navy);color:#fff;padding:40px 0 56px}
.hero .eyebrow{color:#F6A472;font-weight:600;font-size:15px;margin-bottom:6px}
.hero h1{font-size:clamp(28px,4.5vw,44px);margin-bottom:12px}
.hero p{color:#D3E3EB;font-size:18px;max-width:680px}
.crumbs{font-size:14px;color:#BFD4DF;margin-bottom:14px}
.crumbs a{color:#BFD4DF}

/* layout */
section{padding:48px 0}
.card{background:#fff;border:1px solid var(--border);border-radius:var(--radius);padding:24px}
.card.raised{box-shadow:0 10px 30px rgba(14,59,83,.08)}
.grid{display:grid;gap:16px}
.grid-2{grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}
.grid-3{grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}
.soft{background:var(--bg-soft)}
.muted{color:var(--muted)}
.small{font-size:14px}
.tool-panel{margin-top:-32px;position:relative}

/* forms */
label.field{display:flex;flex-direction:column;gap:6px;font-weight:500;font-size:15px}
input[type=text],input[type=number],input[type=date],select{font:inherit;font-size:16px;padding:12px;border:1px solid #C5D0D6;border-radius:8px;background:#fff;color:var(--ink);width:100%}
input:focus,select:focus,button:focus-visible,a:focus-visible{outline:3px solid #F6A472;outline-offset:2px}
.seg{display:flex;flex-wrap:wrap;gap:8px}
.seg button{min-height:44px;padding:8px 18px;border-radius:999px;border:1.5px solid #B9C8D0;background:#fff;color:var(--navy);font:inherit;font-weight:600;cursor:pointer}
.seg button[aria-pressed=true]{background:var(--navy);border-color:var(--navy);color:#fff}
.check{display:flex;gap:10px;align-items:flex-start;font-size:15px}
.check input{width:20px;height:20px;margin-top:3px;accent-color:var(--navy);flex-shrink:0}

/* results */
.result{background:var(--orange-soft);border:2px solid var(--orange);border-radius:var(--radius);padding:24px}
.big{font-family:'IBM Plex Sans Thai',sans-serif;font-size:clamp(32px,5vw,44px);font-weight:700;line-height:1.1;margin:4px 0 8px}
table.rows{width:100%;border-collapse:collapse;font-size:15px}
table.rows td{padding:10px 0;border-bottom:1px solid var(--border);vertical-align:top}
table.rows td:last-child{text-align:right;white-space:nowrap;font-weight:600}
table.rows tr.total td{border-bottom:0;font-size:18px;padding-top:14px}
.badge{display:inline-block;padding:3px 12px;border-radius:999px;font-size:13px;font-weight:600}
.b-red{background:var(--red-soft);color:var(--red)}
.b-amber{background:var(--amber-soft);color:var(--amber)}
.b-green{background:var(--green-soft);color:var(--green)}
.b-blue{background:#E4EFF5;color:var(--navy)}
.progress{height:10px;background:#E1E7EA;border-radius:999px;overflow:hidden}
.progress span{display:block;height:100%;background:var(--navy);border-radius:999px;transition:width .3s}

/* cta band */
.cta-band{background:var(--navy);color:#fff;border-radius:var(--radius);padding:28px;display:flex;flex-wrap:wrap;gap:16px;align-items:center;justify-content:space-between}
.cta-band p{color:#D3E3EB;margin:0}
.note{font-size:14px;color:var(--muted);border-left:0;background:var(--bg-soft);border-radius:10px;padding:14px 16px}

/* faq */
details{border:1px solid var(--border);border-radius:12px;padding:0 18px;margin-bottom:10px;background:#fff}
summary{cursor:pointer;padding:16px 0;font-weight:600;font-family:'IBM Plex Sans Thai',sans-serif;font-size:17px;list-style:none;display:flex;justify-content:space-between;gap:12px}
summary::after{content:'+';color:var(--orange);font-size:22px;line-height:1}
details[open] summary::after{content:'−'}
details p{color:var(--muted)}

/* footer */
.site-footer{background:var(--navy-dark);color:#BFD4DF;padding:32px 0;font-size:14px;margin-top:40px}
.site-footer .wrap{display:flex;flex-wrap:wrap;justify-content:space-between;gap:16px}
.site-footer a{color:#E3EEF3}

/* sticky mobile CTA */
.sticky-cta{display:none}
@media (max-width:760px){
  .sticky-cta{display:flex;gap:8px;position:fixed;left:0;right:0;bottom:0;z-index:50;padding:10px 12px calc(10px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid var(--border);box-shadow:0 -6px 20px rgba(14,59,83,.12)}
  .sticky-cta .btn-line{flex:1}
  body.has-sticky{padding-bottom:76px}
}

/* landing helpers */
.hero-grid{display:flex;flex-wrap:wrap;gap:40px;align-items:center}
.hero-grid > *{flex:1 1 420px}
.chips{display:flex;flex-wrap:wrap;gap:10px 22px;font-size:15px;color:#E3EEF3;margin-top:18px}
.chips span{display:flex;align-items:center;gap:8px}
.stat-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px;margin-top:-36px;position:relative}
.step-no{width:40px;height:40px;border-radius:999px;background:var(--navy);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;font-family:'IBM Plex Sans Thai',sans-serif}
.price-table{width:100%;border-collapse:collapse;font-size:15px;min-width:600px}
.price-table th{background:var(--navy);color:#fff;text-align:left;padding:12px}
.price-table td{padding:12px;border-bottom:1px solid var(--border)}
.price-table td.num,.price-table th.num{text-align:right}
.eyebrow-dark{color:var(--orange-text);font-weight:600;font-size:15px;margin-bottom:4px}

@media print{
  .site-header,.site-footer,.hero .btn,.no-print,.cta-band{display:none!important}
  .hero{background:#fff;color:#000;padding:0}
  .hero p{color:#333}
  body{font-size:12pt}
  .card{break-inside:avoid;border-color:#999}
}

/* post cards (blog + home) */
.post-card{display:flex;flex-direction:column;gap:8px;text-decoration:none;color:inherit;overflow:hidden;padding:0}
.post-card .art svg{width:100%;height:auto;display:block}
.post-card .pad{padding:16px 18px 20px;display:flex;flex-direction:column;gap:6px}
.post-card:hover h2,.post-card:hover h3{color:var(--orange-text)}
