/* =========================================================
   MTL Life — Design system
   ========================================================= */
:root {
  --brand: #c8006a;
  --brand-600: #ad005b;
  --brand-700: #8a0049;
  --brand-50: #fff0f7;
  --brand-100: #ffd9eb;
  --ink: #101a33;
  --ink-2: #2b3550;
  --muted: #5d6680;
  --line: #e4e7ef;
  --bg: #ffffff;
  --bg-soft: #f6f7fb;
  --navy: #0e1730;
  --navy-2: #18234a;
  --green: #06c755;
  --green-600: #05a648;
  --ok: #0f8a5f;
  --ok-bg: #ecfaf3;
  --warn: #9a4b00;
  --warn-bg: #fff6e8;
  --warn-line: #f5c97c;
  --info: #1f5fbf;
  --info-bg: #eef4ff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(16, 26, 51, .06), 0 1px 3px rgba(16, 26, 51, .05);
  --shadow: 0 10px 30px -12px rgba(16, 26, 51, .18), 0 2px 6px rgba(16, 26, 51, .05);
  --shadow-lg: 0 30px 60px -20px rgba(16, 26, 51, .28);
  --font: 'IBM Plex Sans Thai', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-head: 'Prompt', var(--font);
  --container: 1200px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-700); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.3; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.005em; }
h1 { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3.1rem); }
h2, .h2 { font-size: clamp(1.5rem, 1.15rem + 1.4vw, 2.2rem); }
h3, .h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, white); outline-offset: 2px; border-radius: 6px; }
.icon { flex: none; vertical-align: middle; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
[hidden] { display: none !important; }
.product-body > *, .product-hero__grid > *, .calc > *, .catalog > *, .contact-split > *, .why > *, .explain > *, .hero__grid > * { min-width: 0; }
.small { font-size: .875rem; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  --b: var(--brand);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: .6em 1.25em;
  font: 600 1rem/1.2 var(--font-head);
  border-radius: 12px; border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color .18s, color .18s, border-color .18s, transform .18s, box-shadow .18s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px -10px rgba(200, 0, 106, .7); }
.btn--primary:hover { background: var(--brand-600); color: #fff; }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--brand-50); color: var(--brand-700); }
.btn--line { background: var(--green); color: #fff; }
.btn--line:hover { background: var(--green-600); color: #fff; }
.btn--sm { min-height: 40px; padding: .45em 1em; font-size: .95rem; }
.btn--lg { min-height: 54px; padding: .7em 1.5em; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn + .btn--block, .btn--block + .btn--block { margin-top: 10px; }
.icon-btn { border: 0; background: var(--bg-soft); color: var(--muted); width: 32px; height: 32px; border-radius: 8px; cursor: pointer; font-size: 14px; }
.icon-btn:hover { background: var(--brand-50); color: var(--brand); }

/* ---------- Tags ---------- */
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; line-height: 1.7; background: var(--bg-soft); color: var(--ink-2); text-decoration: none; }
.tag--main, .tag--ul { background: #e9f0ff; color: #1d4fa8; }
.tag--rider { background: var(--warn-bg); color: var(--warn); box-shadow: inset 0 0 0 1px var(--warn-line); }
.tag--pa { background: #e8f8f1; color: #0b7a53; }
.tag--group { background: #f0ecff; color: #5b3cc4; }
.tag--calc { background: var(--brand-50); color: var(--brand-700); }
.tag--soft { background: #fff; box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); font-weight: 500; }
a.tag--soft:hover { color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand-100); }

/* ---------- Topbar & header ---------- */
.topbar { background: var(--navy); color: #c7cde0; font-size: .85rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; }
.topbar__license { display: inline-flex; align-items: center; gap: 6px; }
.topbar__license strong { color: #fff; font-weight: 600; letter-spacing: .02em; }
.topbar__links { display: flex; gap: 18px; }
.topbar a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: var(--brand-100); }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: box-shadow .2s, border-color .2s; }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 20px -14px rgba(16, 26, 51, .35); }
.site-header__inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--brand); }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong { font: 700 1.25rem/1.1 var(--font-head); color: var(--ink); letter-spacing: -.01em; }
.brand__text small { font-size: .78rem; color: var(--muted); }
.brand--light .brand__text strong { color: #fff; }
.brand--light .brand__text small { color: #aab2cc; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav > a { position: relative; padding: 8px 14px; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-weight: 500; }
.nav > a:hover { color: var(--brand); background: var(--brand-50); }
.nav > a.is-active { color: var(--brand); }
.nav > a.is-active::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--brand); }
.nav__mobile-cta { display: none; }
.site-header__actions { display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle__close { display: none; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 7vw, 96px) 0; }
.section--tight { padding: clamp(28px, 4vw, 48px) 0 clamp(48px, 6vw, 80px); }
.section--tint { background: var(--bg-soft); }
.section--dark { background: radial-gradient(1200px 400px at 85% -10%, rgba(200, 0, 106, .35), transparent 60%), var(--navy); color: #c9cfe2; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section-head { margin-bottom: 32px; max-width: 720px; }
.section-head--center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; max-width: none; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 10px; color: var(--brand); font: 600 .85rem/1.4 var(--font-head); letter-spacing: .04em; }
.eyebrow--light { color: #ff8cc4; }
.link-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card--pad { padding: clamp(20px, 3vw, 32px); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(40px, 6vw, 88px) 0 clamp(48px, 7vw, 96px);
  background:
    radial-gradient(900px 500px at 100% 0%, rgba(200, 0, 106, .10), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(31, 95, 191, .08), transparent 60%),
    linear-gradient(180deg, #fff 0%, #fbf8fb 100%);
}
.hero::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(16, 26, 51, .06) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(180deg, rgba(0,0,0,.5), transparent 70%); pointer-events: none; }
.hero__grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 { margin-bottom: 18px; }
.hl { color: var(--brand); background: linear-gradient(transparent 68%, var(--brand-100) 68%); padding: 0 .1em; }
.hero__lead { font-size: 1.12rem; color: var(--muted); max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 24px; }
.hero__trust { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--ink-2); font-size: .95rem; }
.hero__trust li { display: inline-flex; align-items: center; gap: 6px; }
.hero__trust .icon { color: var(--ok); }

.quick-calc { padding: 28px; box-shadow: var(--shadow-lg); border: 0; position: relative; }
.quick-calc::before { content: ''; position: absolute; inset: 0 0 auto; height: 5px; border-radius: var(--radius) var(--radius) 0 0; background: linear-gradient(90deg, var(--brand), #ff5fa8); }
.quick-calc__head { display: flex; gap: 14px; align-items: center; margin-bottom: 20px; }
.quick-calc__head h2 { font-size: 1.25rem; margin: 0; }
.quick-calc__head p { margin: 0; font-size: .88rem; color: var(--muted); }
.quick-calc__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); }
.quick-calc .field { margin-bottom: 14px; }
.quick-calc__note { margin: 10px 0 0; text-align: center; font-size: .85rem; color: var(--muted); }

/* ---------- Forms ---------- */
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; margin-bottom: 6px; font-weight: 600; font-size: .92rem; color: var(--ink); }
.field > span em { color: var(--brand); font-style: normal; }
.field input, .field select, .field textarea, .lead-row__status select {
  width: 100%; min-height: 48px; padding: 10px 14px;
  font: 400 1rem/1.5 var(--font); color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: 12px;
  transition: border-color .15s, box-shadow .15s;
  appearance: none; -webkit-appearance: none;
}
.field select, .lead-row__status select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%235d6680' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 40px; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(200, 0, 106, .12); }
.field input:disabled, .field select:disabled { background: var(--bg-soft); color: var(--muted); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.field-help { margin: -8px 0 14px; font-size: .86rem; color: var(--muted); }
.field-error { margin: 0; color: #b42318; font-size: .9rem; font-weight: 500; }
.field-error:empty { display: none; }
.field--inline { margin-bottom: 6px; }

.seg { display: flex; gap: 6px; padding: 5px; margin: 0 0 16px; border: 0; background: var(--bg-soft); border-radius: 14px; }
.seg legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.seg label { flex: 1; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: flex; justify-content: center; align-items: center; min-height: 42px; border-radius: 10px; font-weight: 600; color: var(--muted); transition: all .15s; }
.seg input:checked + span { background: #fff; color: var(--brand); box-shadow: var(--shadow-sm); }
.seg input:focus-visible + span { outline: 3px solid rgba(200, 0, 106, .35); }
.seg--lg span { min-height: 50px; font-size: 1.05rem; }
.seg--sm { display: inline-flex; padding: 4px; margin-bottom: 12px; }
.seg--sm span { min-height: 34px; padding: 0 14px; font-size: .9rem; white-space: nowrap; }

.check { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 18px; font-size: .9rem; color: var(--muted); cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--brand); flex: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chips button { border: 1.5px solid var(--line); background: #fff; color: var(--ink-2); border-radius: 999px; padding: 6px 14px; font: 500 .9rem/1.4 var(--font); cursor: pointer; }
.chips button:hover { border-color: var(--brand); color: var(--brand); }
.chips button.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chips--sm { margin-top: -6px; }
.chips--sm button { padding: 4px 12px; font-size: .84rem; }

.alert { display: flex; gap: 12px; padding: 14px 16px; border-radius: 12px; margin-bottom: 18px; font-size: .95rem; }
.alert--success { background: var(--ok-bg); color: #075e40; }
.alert--error { background: #fef1f0; color: #9b1c12; }

.lead-form__alt { margin: 12px 0 0; text-align: center; font-size: .9rem; color: var(--muted); }

/* ---------- Notices ---------- */
.notice { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 14px; margin: 0 0 20px; }
.notice p { margin: 4px 0 0; font-size: .94rem; }
.notice strong { color: inherit; font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; }
.notice--rider { background: var(--warn-bg); color: #6d3800; border: 1.5px solid var(--warn-line); }
.notice--rider .icon { color: #d97706; margin-top: 2px; }
.notice--rider a { color: #8a3f00; font-weight: 600; }
.notice--ok { background: var(--ok-bg); color: #075e40; }
.notice--ok .icon { color: var(--ok); }
.notice--info { background: var(--info-bg); color: #163f7d; }
.notice__sub { font-size: .9rem; }

/* ---------- Goals ---------- */
.goal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.goal { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto auto; column-gap: 16px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; text-decoration: none; color: var(--ink-2); transition: transform .2s, box-shadow .2s, border-color .2s; }
.goal:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brand-100); color: var(--ink-2); }
.goal__icon { grid-row: 1 / 4; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand-50), #fff); color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand-100); }
.goal__title { font: 600 1.12rem/1.4 var(--font-head); color: var(--ink); }
.goal__desc { font-size: .92rem; color: var(--muted); }
.goal__count { margin-top: 6px; font-size: .85rem; font-weight: 600; color: var(--brand); display: inline-flex; align-items: center; gap: 4px; }

/* ---------- Main vs rider explainer ---------- */
.explain { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks .icon { color: var(--ok); margin-top: 4px; }
.stack-diagram { display: grid; gap: 10px; padding: 26px; border-radius: 22px; background: #fff; box-shadow: var(--shadow); }
.stack-diagram > div { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 14px; font-weight: 600; font-family: var(--font-head); }
.stack-diagram small { display: block; font: 400 .82rem/1.4 var(--font); opacity: .8; }
.stack-diagram__rider { background: var(--warn-bg); color: #7a3e00; border: 1.5px dashed var(--warn-line); margin: 0 18px; justify-content: space-between; }
.stack-diagram__rider small { text-align: right; }
.stack-diagram__plus { justify-content: center; color: var(--muted); font-weight: 500 !important; padding: 2px !important; font-size: .9rem; }
.stack-diagram__base { background: linear-gradient(135deg, var(--ink), var(--navy-2)); color: #fff; padding: 20px !important; }
.stack-diagram__base small { color: #c9cfe2; opacity: 1; }
.stack-diagram__total { margin: 8px 0 0; text-align: center; font-size: .9rem; color: var(--muted); }

/* ---------- Product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product-grid--3 { grid-template-columns: repeat(3, 1fr); }
.pcard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pcard__media { position: relative; aspect-ratio: 4 / 3; background: linear-gradient(135deg, #fbeef5, #eef1f8); overflow: hidden; }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .4s; }
.pcard:hover .pcard__media img { transform: scale(1.04); }
.pcard__flag { position: absolute; top: 12px; left: 12px; background: var(--brand); color: #fff; font: 600 .75rem/1 var(--font-head); padding: 6px 10px; border-radius: 999px; box-shadow: 0 6px 14px -6px rgba(200, 0, 106, .8); }
.pcard__body { display: flex; flex-direction: column; flex: 1; padding: 18px; }
.pcard__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.pcard__title { font-size: 1.05rem; margin: 0 0 6px; }
.pcard__title a { color: var(--ink); text-decoration: none; }
.pcard__title a:hover { color: var(--brand); }
.pcard__tagline { font-size: .9rem; color: var(--muted); margin: 0 0 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard__warn { display: flex; gap: 6px; align-items: center; margin: 0 0 12px; padding: 7px 10px; border-radius: 10px; background: var(--warn-bg); color: #7a3e00; font-size: .84rem; font-weight: 600; border: 1px solid var(--warn-line); }
.pcard__facts { margin: auto 0 0; padding: 12px 0 0; border-top: 1px dashed var(--line); display: grid; gap: 4px; font-size: .86rem; }
.pcard__facts div { display: flex; justify-content: space-between; gap: 8px; }
.pcard__facts dt { color: var(--muted); }
.pcard__facts dd { margin: 0; font-weight: 600; color: var(--ink); text-align: right; }
.pcard__more { margin-top: 14px; display: inline-flex; gap: 6px; align-items: center; font-weight: 600; font-size: .92rem; text-decoration: none; }

/* ---------- Steps / features ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps li { position: relative; padding: 26px 22px; border-radius: var(--radius); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); }
.steps span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--brand); color: #fff; font: 700 1.1rem/1 var(--font-head); margin-bottom: 16px; }
.steps h3 { font-size: 1.1rem; }
.steps p { margin: 0; font-size: .94rem; }

.why { display: grid; grid-template-columns: 360px 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.agent-card { padding: 28px; text-align: center; position: sticky; top: calc(var(--header-h) + 20px); }
.agent-card__avatar { width: 88px; height: 88px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand), #ff5fa8); color: #fff; box-shadow: 0 0 0 6px var(--brand-50); }
.agent-card h3 { margin: 0; }
.agent-card__company { font-size: .88rem; color: var(--muted); }
.agent-card dl { margin: 18px 0 20px; text-align: left; display: grid; gap: 0; border-top: 1px solid var(--line); }
.agent-card dl div { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .94rem; }
.agent-card dt { color: var(--muted); }
.agent-card dd { margin: 0; font-weight: 600; color: var(--ink); }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.feature { display: flex; gap: 14px; padding: 20px; border-radius: var(--radius); background: var(--bg-soft); }
.feature > .icon { color: var(--brand); margin-top: 2px; }
.feature h3 { font-size: 1.02rem; margin: 0 0 4px; }
.feature p { margin: 0; font-size: .92rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 860px; }
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 32px 18px 0; position: relative; font: 600 1.02rem/1.5 var(--font-head); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: 14px; font-size: 1.5rem; color: var(--brand); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-split { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 14px; align-items: center; }
.contact-list li > span { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--brand-50); color: var(--brand); }
.contact-list li > span.is-line { background: #e6f9ee; color: var(--green-600); }
.contact-list small { display: block; color: var(--muted); font-size: .82rem; }
.contact-list a, .contact-list b { font: 600 1.1rem/1.3 var(--font-head); color: var(--ink); text-decoration: none; }
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 24px; }
.contact-card { display: flex; gap: 14px; align-items: center; padding: 18px; border-radius: var(--radius); background: var(--ink); color: #fff; text-decoration: none; transition: transform .2s; }
.contact-card:hover { color: #fff; transform: translateY(-2px); }
.contact-card > span { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--brand); }
.contact-card--line { background: var(--green); }
.contact-card--line > span { background: rgba(255, 255, 255, .2); }
.contact-card small { display: block; opacity: .8; font-size: .8rem; }
.contact-card strong { display: block; font: 600 1.2rem/1.2 var(--font-head); }
.contact-card em { font-style: normal; font-size: .78rem; opacity: .8; }

/* ---------- Page hero / catalog ---------- */
.page-hero { padding: clamp(28px, 4vw, 52px) 0 clamp(28px, 4vw, 44px); background: linear-gradient(180deg, #fbf3f8, #fff); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); margin-bottom: 8px; }
.page-hero p { color: var(--muted); max-width: 720px; margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: .86rem; color: var(--muted); margin-bottom: 12px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }
.search { display: flex; align-items: center; gap: 10px; max-width: 640px; margin-top: 22px; padding: 6px 6px 6px 16px; background: #fff; border: 1.5px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-sm); }
.search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(200, 0, 106, .1); }
.search .icon { color: var(--muted); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; font: 400 1rem var(--font); padding: 8px 0; background: transparent; }

.type-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 20px; scrollbar-width: none; }
.type-tabs::-webkit-scrollbar { display: none; }
.type-tabs a { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line); text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: .94rem; background: #fff; }
.type-tabs a:hover { border-color: var(--brand); color: var(--brand); }
.type-tabs a.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

.catalog { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; }
.catalog__side { position: sticky; top: calc(var(--header-h) + 16px); }
.filter { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 8px 10px; }
.filter summary { padding: 10px 10px 6px; font: 600 1rem var(--font-head); color: var(--ink); cursor: pointer; list-style: none; }
.filter summary::-webkit-details-marker { display: none; }
.filter ul { list-style: none; margin: 0; padding: 0; }
.filter a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-size: .93rem; }
.filter a span { flex: 1; }
.filter a em { font-style: normal; font-size: .78rem; color: var(--muted); background: var(--bg-soft); border-radius: 999px; padding: 0 8px; }
.filter a .icon { color: var(--muted); }
.filter a:hover { background: var(--bg-soft); }
.filter a.is-active { background: var(--brand-50); color: var(--brand-700); font-weight: 600; }
.filter a.is-active .icon { color: var(--brand); }
.result-count { margin: 0 0 16px; color: var(--muted); }
.empty { text-align: center; color: var(--muted); }
.empty .icon { color: var(--brand); margin: 0 auto 8px; }

/* ---------- Product detail ---------- */
.product-hero { padding: clamp(24px, 3vw, 40px) 0 clamp(32px, 4vw, 56px); background: linear-gradient(180deg, #fbf3f8 0%, #fff 70%); }
.product-hero__grid { display: grid; grid-template-columns: minmax(0, 400px) 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.product-hero__media { margin: 0; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); background: #fff; }
.product-hero__media img { width: 100%; max-height: 640px; object-fit: contain; }
.product-hero__info h1 { font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.5rem); margin: 6px 0 8px; }
.product-hero__tagline { font-size: 1.12rem; color: var(--muted); }
.product-hero__note { display: flex; gap: 8px; align-items: center; font-weight: 600; color: var(--info); }
.product-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.facts > div { flex: 1 1 150px; }
.facts { display: flex; flex-wrap: wrap; gap: 1px; margin: 4px 0 0; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.facts div { background: #fff; padding: 14px 16px; }
.facts dt { font-size: .82rem; color: var(--muted); }
.facts dd { margin: 2px 0 0; font: 600 1.05rem/1.4 var(--font-head); color: var(--ink); }

.product-body { display: grid; grid-template-columns: 200px minmax(0, 1fr) 300px; gap: 32px; align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 16px); }
.toc__inner { display: grid; gap: 2px; border-left: 2px solid var(--line); }
.toc a { padding: 8px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; font-size: .92rem; }
.toc a:hover { color: var(--ink); }
.toc a.is-active { color: var(--brand); border-color: var(--brand); font-weight: 600; }
.content-block { margin-bottom: 20px; }
.content-block > h2 { font-size: 1.4rem; }
.content-block--highlight { padding: 24px 26px; border-radius: var(--radius); background: linear-gradient(135deg, #fff5fa, #fff); border: 1px solid var(--brand-100); }
.collapsible { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.collapsible > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; cursor: pointer; list-style: none; }
.collapsible > summary::-webkit-details-marker { display: none; }
.collapsible > summary h2 { margin: 0; font-size: 1.25rem; }
.collapsible > summary .icon { color: var(--muted); transition: transform .2s; }
.collapsible[open] > summary .icon { transform: rotate(180deg); }
.collapsible[open] > summary { border-bottom: 1px solid var(--line); }
.collapsible > .prose, .collapsible > .rate-hint { margin: 18px 22px; }
.rate-hint { display: flex; gap: 8px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--info-bg); color: #163f7d; font-size: .92rem; }
.rate-hint .icon { margin-top: 4px; }
.gallery { display: grid; gap: 14px; }
.gallery img { border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.disclaimer { display: flex; gap: 8px; align-items: flex-start; font-size: .84rem; color: var(--muted); margin-top: 24px; }
.disclaimer .icon { margin-top: 4px; }
.product-aside .sticky-card { position: sticky; top: calc(var(--header-h) + 16px); }
.sticky-card h3 { margin-bottom: 4px; }
.sticky-card__license { margin: 14px 0 0; font-size: .8rem; color: var(--muted); text-align: center; }

/* prose from Smart Web */
.prose { color: var(--ink-2); overflow-wrap: anywhere; }
.prose p { margin: 0 0 .8em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--brand); }
.prose h4 { font-size: 1.05rem; margin: 1.2em 0 .5em; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose img { border-radius: 10px; margin: 10px 0; }
.prose--highlights ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.prose--highlights li { position: relative; padding-left: 32px; margin: 0; }
.prose--highlights li::before { content: ''; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.prose--page h2 { font-size: 1.5rem; margin-top: 0; }
.table-scroll { position: relative; overflow-x: auto; margin: 0 0 1.2em; border: 1px solid var(--line); border-radius: 12px; -webkit-overflow-scrolling: touch; }
.table-scroll.can-scroll:not(.scrolled)::after { content: '← เลื่อนดู →'; position: sticky; left: calc(100% - 110px); bottom: 8px; display: inline-block; margin: -40px 0 8px; padding: 4px 10px; border-radius: 999px; background: rgba(16, 26, 51, .78); color: #fff; font-size: .75rem; pointer-events: none; }
.prose table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 480px; }
.prose th, .prose td { padding: 9px 12px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose td:last-child, .prose th:last-child { border-right: 0; }
.prose tr:first-child td, .prose thead td, .prose th { background: #f7f2f6; color: var(--ink); font-weight: 600; }
.prose tbody tr:nth-child(even) td { background: #fbfbfd; }
.prose td p { margin: 0; }

/* ---------- Calculator ---------- */
.page-hero--calc { background: linear-gradient(135deg, #fff2f8 0%, #f2f5ff 100%); }
.calc { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 28px; align-items: start; }
.calc__form { display: grid; gap: 20px; }
.calc-step { overflow: hidden; }
.calc-step__head { display: flex; gap: 14px; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); background: #fcfcfe; }
.calc-step__head h2 { font-size: 1.15rem; margin: 0; }
.calc-step__head h2 small { font: 400 .85rem var(--font); color: var(--muted); }
.calc-step__head p { margin: 0; font-size: .86rem; color: var(--muted); }
.calc-step__no { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--brand); color: #fff; font: 700 1.05rem var(--font-head); }
.calc-step__body { padding: 22px; }
.age-result { margin: -4px 0 0; font-size: .92rem; color: var(--ink-2); }
.age-result small { color: var(--muted); }
.rider-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; margin-bottom: 16px; border-radius: 12px; background: var(--warn-bg); color: #6d3800; font-size: .92rem; border: 1px solid var(--warn-line); }
.rider-note p { margin: 0; }
.rider-note .icon { color: #d97706; margin-top: 3px; }
.riders { display: grid; gap: 12px; margin-bottom: 8px; }
.rider-item { padding: 14px 16px; border: 1.5px solid var(--warn-line); border-radius: 14px; background: #fffdf8; }
.rider-item__head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.rider-item__title { flex: 1; font-weight: 600; color: var(--ink); text-decoration: none; }
.rider-item .field-help { margin: 4px 0 0; }
.plan-based { margin-top: 8px; font-size: .92rem; border-top: 1px dashed var(--line); padding-top: 14px; }
.plan-based summary { cursor: pointer; font-weight: 600; color: var(--ink); display: flex; gap: 8px; align-items: center; }
.plan-based summary .icon { color: var(--brand); }
.plan-based p { color: var(--muted); margin: 10px 0; }
.plan-based ul { columns: 2; margin: 0; padding-left: 1.2em; }

.calc__result { position: sticky; top: calc(var(--header-h) + 16px); }
.result { padding: 26px; border: 0; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.result::before { content: ''; position: absolute; inset: 0 0 auto; height: 120px; background: linear-gradient(135deg, var(--ink), var(--navy-2)); z-index: 0; }
.result > * { position: relative; }
.result__label { color: #c9cfe2; margin: 0; font-size: .9rem; }
.result__total { margin: 0; font: 700 2.4rem/1.2 var(--font-head); color: #fff; letter-spacing: -.01em; }
.result__total small { font-size: 1rem; font-weight: 500; color: #c9cfe2; }
.result__mode { margin: 0 0 26px; color: #c9cfe2; font-size: .9rem; }
.result.is-ready .result__total span { color: #fff; }
.result__lines { display: grid; gap: 10px; margin-bottom: 16px; }
.result-line { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--bg-soft); }
.result-line.is-base { background: #eef3ff; }
.result-line > div { min-width: 0; }
.result-line > b { font: 600 1.05rem var(--font-head); color: var(--ink); white-space: nowrap; }
.result-line__role { display: block; font-size: .74rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.result-line:not(.is-base) .result-line__role { color: var(--warn); }
.result-line__title { display: block; font-weight: 600; color: var(--ink); font-size: .94rem; line-height: 1.4; }
.result-line__sum { display: block; font-size: .8rem; color: var(--muted); }
.warn-text { color: #b42318; font-size: .82rem; font-weight: 600; white-space: normal; }
.result-warn { padding: 14px; border-radius: 12px; background: var(--warn-bg); color: #6d3800; border: 1.5px solid var(--warn-line); font-size: .92rem; }
.result__modes { width: 100%; border-collapse: collapse; font-size: .9rem; margin-bottom: 14px; }
.result__modes caption { text-align: left; font-weight: 600; color: var(--ink); padding-bottom: 6px; font-size: .88rem; }
.result__modes th, .result__modes td { padding: 7px 4px; border-bottom: 1px solid var(--line); text-align: left; }
.result__modes td { text-align: right; font-weight: 600; color: var(--ink); }
.result__modes td small { font-weight: 400; color: var(--muted); }
.result__modes tr.is-current th, .result__modes tr.is-current td { color: var(--brand); }
.result__lifetime { font-size: .88rem; padding: 10px 12px; border-radius: 10px; background: var(--brand-50); color: var(--brand-700); }
.result__disclaimer { margin: 14px 0 0; font-size: .78rem; color: var(--muted); line-height: 1.6; }
.quote-summary { margin-top: 20px; }
.quote-summary h3 { font-size: 1rem; }
.quote-summary pre { margin: 0; white-space: pre-wrap; font: 400 .9rem/1.7 var(--font); color: var(--ink-2); }
.calc-bar { position: fixed; left: 0; right: 0; bottom: 64px; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; background: var(--ink); color: #fff; box-shadow: 0 -10px 30px -10px rgba(0, 0, 0, .4); }
.calc-bar[hidden] { display: none; }
.calc-bar small { display: block; font-size: .75rem; color: #c9cfe2; }
.calc-bar strong { font: 600 1.15rem var(--font-head); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #aab2cc; padding: 0 0 28px; font-size: .94rem; }
.footer-cta { position: relative; top: -48px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: clamp(24px, 4vw, 40px); border-radius: 22px; background: linear-gradient(120deg, var(--brand) 0%, #e3418f 100%); color: #fff; box-shadow: var(--shadow-lg); }
.footer-cta h2 { color: #fff; margin: 0 0 6px; font-size: clamp(1.3rem, 1rem + 1vw, 1.8rem); }
.footer-cta p { margin: 0; color: #ffe1ef; }
.footer-cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer-grid h3 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { color: #c9cfe2; text-decoration: none; }
.footer-grid a:hover { color: #fff; }
.footer-about { margin-top: 16px; font-size: .9rem; }
.footer-contact li { display: flex; gap: 8px; align-items: center; }
.footer-legal { padding-top: 24px; font-size: .8rem; color: #8790ad; }
.footer-legal p { margin: 0 0 8px; }

.mobile-bar { display: none; }

/* ---------- Admin ---------- */
.lead-row { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 12px; }
.lead-row h3 small { font: 400 .8rem var(--font); color: var(--muted); margin-left: 8px; }
.lead-row p { margin: 0 0 4px; }
.lead-row__msg { white-space: pre-wrap; font: 400 .88rem/1.6 var(--font); background: var(--bg-soft); padding: 10px 12px; border-radius: 10px; margin: 8px 0 0; }
.lead-row__status select { min-height: 40px; width: 150px; }
nav[role="navigation"] ul, .pagination { display: flex; gap: 10px; list-style: none; padding: 0; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1180px) {
  .product-body { grid-template-columns: minmax(0, 1fr) 280px; }
  .toc { display: none; }
}
@media (max-width: 1080px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .hide-mobile { display: none !important; }
  .nav-toggle { display: inline-flex; }
  .site-header { backdrop-filter: none; background: #fff; }
  .site-header .brand, .site-header__actions { position: relative; z-index: 2; }
  .site-header__actions { margin-left: auto; }
  .nav {
    position: fixed; inset: 0; z-index: 1;
    display: none; flex-direction: column; gap: 2px; padding: calc(var(--header-h) + 54px) 20px 120px;
    background: #fff; overflow-y: auto;
  }
  .nav > a { padding: 14px 8px; font-size: 1.08rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav > a.is-active::after { display: none; }
  .nav__mobile-cta { display: block; margin-top: 20px; }
  body.nav-open { overflow: hidden; }
  body.nav-open .nav { display: flex; }
  body.nav-open .nav-toggle__open { display: none; }
  body.nav-open .nav-toggle__close { display: block; }

  .hero__grid, .explain, .why, .contact-split, .calc, .product-hero__grid { grid-template-columns: 1fr; }
  .product-body { grid-template-columns: 1fr; }
  .product-aside { display: none; }
  .product-hero__media { max-width: 420px; margin: 0 auto; }
  .agent-card { position: static; }
  .catalog { grid-template-columns: 1fr; }
  .catalog__side { position: static; }
  .filter:not([open]) { padding-bottom: 6px; }
  .filter ul { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 6px 4px; }
  .filter a { border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; }
  .filter a em { display: none; }
  .calc__result { position: static; }
  .steps { grid-template-columns: 1fr 1fr; }
  .goal-grid { grid-template-columns: 1fr 1fr; }

  .mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    display: grid; grid-template-columns: 1fr 1fr 1.3fr;
    padding-bottom: env(safe-area-inset-bottom);
    background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -12px rgba(16, 26, 51, .25);
  }
  .mobile-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 64px; color: var(--ink-2); text-decoration: none; font-size: .78rem; font-weight: 600; }
  .mobile-bar__line { color: var(--green-600) !important; }
  .mobile-bar__main { background: var(--brand); color: #fff !important; }
  body { padding-bottom: 64px; }
  body.has-calc-bar { padding-bottom: 128px; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .container { padding: 0 16px; }
  .topbar__license { display: none; }
  .topbar__inner { justify-content: center; }
  .brand__text small { display: none; }
  .product-grid, .product-grid--3 { grid-template-columns: 1fr 1fr; gap: 12px; }
  .pcard__body { padding: 12px; }
  .pcard__title { font-size: .95rem; }
  .pcard__tagline, .pcard__facts { display: none; }
  .pcard__warn { font-size: .76rem; padding: 6px 8px; }
  .pcard__more { margin-top: 8px; font-size: .85rem; }
  .goal-grid, .features, .steps, .contact-cards { grid-template-columns: 1fr; }
  .goal { padding: 16px; }
  .goal__icon { width: 48px; height: 48px; }
  .field-grid { grid-template-columns: 1fr; }
  .hero__actions .btn { flex: 1 1 100%; }
  .product-hero__actions .btn { flex: 1 1 100%; }
  .quick-calc { padding: 22px 18px; }
  .calc-step__body { padding: 18px 16px; }
  .calc-step__head { padding: 14px 16px; }
  .result { padding: 22px 18px; }
  .result__total { font-size: 2.1rem; }
  .plan-based ul { columns: 1; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-cta { top: -36px; }
  .collapsible > summary { padding: 16px; }
  .collapsible > .prose, .collapsible > .rate-hint { margin: 16px; }
  .content-block--highlight { padding: 20px 18px; }
  .stack-diagram { padding: 18px; }
  .stack-diagram__rider { margin: 0; }
  .lead-row { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- Agent name ---------- */
.agent-card h3 { font-size: 1.35rem; }
.agent-card__role { margin: 2px 0 0; font-weight: 600; color: var(--brand); font-size: .95rem; }
.footer-agent { display: block; color: #fff; font: 600 1.05rem/1.5 var(--font-head); margin-bottom: 4px; }

/* ---------- reCAPTCHA ---------- */
.recaptcha-box { margin: 0 0 16px; min-height: 78px; }
.recaptcha-note { margin: -6px 0 14px; font-size: .74rem; color: var(--muted); }
.grecaptcha-badge { visibility: hidden; } /* v3: แสดงข้อความแจ้งใต้ฟอร์มแทน (อนุญาตตามเงื่อนไขของ Google) */
