/* ShotLakorn — shared stylesheet (no build step)
   Tokens first, then base, layout, components, pages. */

:root {
  --primary: #C2185B;
  --primary-strong: #9C1049;
  --primary-soft: #FCE8F0;
  --primary-tint: #FFF5F9;
  --plum: #2E1836;
  --plum-2: #44234F;
  --ink: #1F1722;
  --text: #33293A;
  --muted: #5E5466;
  --bg: #FFFCFD;
  --surface: #FFFFFF;
  --band: #FAF3F6;
  --border: #EADDE4;
  --border-strong: #D5C3CD;
  --notice-bg: #FFF7E6;
  --notice-border: #E3B341;
  --notice-ink: #4F3A00;
  --ok: #17694B;
  --ring: #1D4ED8;

  --radius-s: 8px;
  --radius: 14px;
  --radius-l: 22px;
  --shadow-1: 0 1px 2px rgba(46, 24, 54, .06), 0 2px 8px rgba(46, 24, 54, .05);
  --shadow-2: 0 2px 4px rgba(46, 24, 54, .06), 0 12px 32px rgba(46, 24, 54, .10);

  --wrap: 1140px;
  --font: "Noto Sans Thai", "Leelawadee UI", "Sukhumvit Set", "Thonburi", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.35; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 4.6vw, 3.1rem); font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
li { margin-bottom: .35em; }
a { color: var(--primary-strong); text-underline-offset: 3px; }
a:hover { color: var(--primary); }
strong { color: var(--ink); }

:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius-s);
}
.skip:focus { top: 12px; color: #fff; }
.icon { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nb { white-space: nowrap; }
.ph { background: #FFF1B8; color: #4A3600; padding: 0 .3em; border-radius: 4px; font-weight: 600; word-break: break-word; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 252, 253, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.2rem; color: var(--ink); text-decoration: none; margin-right: auto; }
.brand:hover { color: var(--ink); }
.brand svg { width: 34px; height: 34px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--text); text-decoration: none; font-size: .98rem; padding: 10px 11px; border-radius: var(--radius-s); white-space: nowrap; }
.nav a:hover { background: var(--primary-soft); color: var(--primary-strong); }
.nav a.btn { color: #fff; margin-left: 8px; padding: 10px 18px; }
.nav a.btn:hover { color: #fff; background: var(--primary-strong); }
.menu-btn {
  display: none; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; min-width: 44px; padding: 8px 12px;
  background: var(--surface); color: var(--ink); border: 1px solid var(--border-strong); border-radius: var(--radius-s);
  font: inherit; font-size: .95rem; cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px;
  background: var(--primary); color: #fff; border: 2px solid transparent; border-radius: 999px;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.btn:hover { background: var(--primary-strong); color: #fff; box-shadow: var(--shadow-1); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--primary-strong); border-color: var(--primary); }
.btn.ghost:hover { background: var(--primary-soft); color: var(--primary-strong); }
.btn.light { background: #fff; color: var(--primary-strong); }
.btn.light:hover { background: var(--primary-soft); color: var(--primary-strong); }
.btn.block { width: 100%; }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.band { background: var(--band); border-block: 1px solid var(--border); }
.section-head { max-width: 760px; margin-bottom: 36px; }
.section-head p { color: var(--muted); font-size: 1.1rem; margin: 0; }
.eyebrow { display: inline-block; font-size: .9rem; font-weight: 700; color: var(--primary-strong); letter-spacing: .02em; margin-bottom: 8px; }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 56px; background: linear-gradient(180deg, var(--primary-tint) 0%, var(--bg) 100%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center; }
.status {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); color: var(--ink); border: 1px solid var(--border-strong);
  padding: 6px 14px; border-radius: 999px; font-size: .92rem; font-weight: 600; margin-bottom: 18px;
}
.status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--primary); flex: none; }
.hero .lead { font-size: 1.18rem; color: var(--text); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 18px; }
.hero-meta { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; color: var(--muted); font-size: .96rem; }
.hero-meta li { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.hero-meta .icon { width: 18px; height: 18px; color: var(--ok); }

.flow {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-l);
  box-shadow: var(--shadow-2); padding: 22px;
}
.flow-title { font-size: .92rem; font-weight: 700; color: var(--muted); margin: 0 0 14px; }
.flow ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.flow li {
  display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; margin: 0;
  background: var(--primary-tint); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px;
}
.flow .num {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--primary); color: #fff;
}
.flow b { display: block; color: var(--ink); line-height: 1.4; }
.flow span.d { display: block; color: var(--muted); font-size: .93rem; line-height: 1.5; }
.flow li.out { background: var(--plum); border-color: var(--plum); }
.flow li.out b { color: #fff; }
.flow li.out span.d { color: #E9DCEE; }
.flow li.out .num { background: #fff; color: var(--plum); }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-1);
}
.card > :last-child { margin-bottom: 0; }
.card .ic {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary-strong); margin-bottom: 14px;
}
.card p { color: var(--text); }

.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding-left: 30px; margin-bottom: .55em; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .42em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--primary-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.6' fill='none' stroke='%239C1049' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat;
}

/* ---------- Steps ---------- */
.steps { display: grid; gap: 28px; }
.step {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-l); padding: 28px; box-shadow: var(--shadow-1);
}
.step:nth-child(even) .step-art { order: -1; }
.step-no { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--primary-strong); margin-bottom: 6px; }
.step-no i {
  font-style: normal; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--primary); color: #fff; font-size: 1rem;
}
.step h3 { font-size: 1.45rem; }
.step-art { margin: 0; }
.step-art svg { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--border); background: var(--primary-tint); }
.step-art img { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--border); }
.step-art figcaption { font-size: .85rem; color: var(--muted); margin-top: 8px; text-align: center; }
/* diagram palette */
.a-bg { fill: #fff; stroke: #EADDE4; }
.a-line { fill: #E6D6DE; }
.a-soft { fill: #FCE8F0; stroke: #F2C4D6; }
.a-pri { fill: #C2185B; }
.a-plum { fill: #2E1836; }
.a-mid { fill: #D98BAA; }
.a-str { fill: none; stroke: #C2185B; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.a-str2 { fill: none; stroke: #B9A6B2; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 4 5; }
.a-w { fill: #fff; }

/* ---------- Notice (must know) ---------- */
.notice {
  background: var(--notice-bg); border: 1px solid var(--notice-border); border-left-width: 6px;
  border-radius: var(--radius); padding: 28px; color: var(--notice-ink);
}
.notice h2, .notice h3, .notice strong { color: #3A2A00; }
.notice-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 32px; }
.notice-list li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; margin: 0; }
.notice-list .icon { margin-top: 4px; color: #8A6100; }
.notice-list p { margin: 0; }

/* ---------- Requirements ---------- */
.req { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.req li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.req .icon { width: 40px; height: 40px; padding: 8px; border-radius: 10px; background: var(--primary-soft); color: var(--primary-strong); }
.req b { display: block; color: var(--ink); line-height: 1.45; }
.req span { color: var(--muted); font-size: .95rem; line-height: 1.55; display: block; }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 24px; align-items: stretch; max-width: 880px; }
.plan { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-l); padding: 28px; box-shadow: var(--shadow-1); }
.plan.main { border: 2px solid var(--primary); box-shadow: var(--shadow-2); }
.plan h3 { margin-bottom: 4px; }
.plan .sub { color: var(--muted); font-size: .97rem; margin-bottom: 14px; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 8px; color: var(--ink); margin-bottom: 6px; }
.price .n { font-size: 2.8rem; font-weight: 700; line-height: 1.1; }
.price .u { font-size: 1.05rem; color: var(--muted); }
.offer { background: var(--primary-soft); color: var(--primary-strong); border-radius: var(--radius-s); padding: 10px 14px; font-weight: 600; margin: 10px 0 18px; line-height: 1.55; }
.plan .checks { margin-bottom: 22px; }
.plan .btn { margin-top: auto; }
.fine { font-size: .93rem; color: var(--muted); }
.pay-notes { margin-top: 28px; max-width: 880px; }
.pay-notes h3 { font-size: 1.08rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.faq details[open] { border-color: var(--border-strong); box-shadow: var(--shadow-1); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 56px; padding: 14px 20px; font-weight: 700; color: var(--ink); border-radius: var(--radius);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 12px; height: 12px; flex: none; margin-right: 4px;
  border-right: 2.5px solid var(--primary); border-bottom: 2.5px solid var(--primary);
  transform: rotate(45deg) translateY(-3px); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(225deg) translateY(-2px); }
.faq .a { padding: 0 20px 18px; }
.faq .a > :last-child { margin-bottom: 0; }

/* ---------- Contact ---------- */
.contact { background: var(--plum); color: #F1E7F4; }
.contact h2, .contact h3, .contact strong { color: #fff; }
.contact a { color: #FFD3E3; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.contact .box { background: var(--plum-2); border: 1px solid #5C3569; border-radius: var(--radius-l); padding: 26px; }
.contact dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 10px 18px; }
.contact dt { color: #D9C7DF; }
.contact dd { margin: 0; color: #fff; min-width: 0; }
.contact ol { padding-left: 1.3em; }

/* ---------- Footer ---------- */
.site-footer { background: #1D0F22; color: #D9CBDD; padding: 40px 0 28px; font-size: .96rem; }
.site-footer a { color: #F3E8F6; }
.site-footer a:hover { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.site-footer h2 { font-size: 1rem; color: #fff; margin-bottom: 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 4px; }
.site-footer li a { display: inline-block; padding: 5px 0; }
.site-footer .ph { background: #4A3A12; color: #FFE9A6; }
.contact .ph { background: #5A4514; color: #FFE9A6; }
.foot-note { border-top: 1px solid #3B2443; margin-top: 28px; padding-top: 18px; color: #BFAEC5; font-size: .88rem; }
.foot-note p { margin-bottom: .5em; }

/* ---------- Policy pages ---------- */
.doc-hero { padding: 28px 0 26px; background: linear-gradient(180deg, var(--primary-tint), var(--bg)); border-bottom: 1px solid var(--border); }
.doc-hero h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin-bottom: .3em; }
.doc-hero p { color: var(--muted); margin: 0; }
.wrap.doc { max-width: 800px; padding-top: 36px; padding-bottom: 72px; }
.doc h2 { font-size: 1.35rem; margin-top: 2em; padding-top: .2em; }
.doc h3 { font-size: 1.1rem; margin-top: 1.4em; }
.doc .summary { background: var(--primary-tint); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; }
.doc .summary > :last-child { margin-bottom: 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: .98rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border: 1px solid var(--border-strong); }
.doc th { background: var(--band); color: var(--ink); }
.table-scroll { overflow-x: auto; }
.back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .menu-btn { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-2); padding: 10px 16px 16px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 12px; font-size: 1.02rem; }
  .nav a.btn { margin: 8px 0 0; }
}
@media (max-width: 900px) {
  section { padding: 56px 0; }
  .hero-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .req { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 22px; }
  .step:nth-child(even) .step-art { order: 0; }
  .foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .wrap { padding: 0 16px; }
  section { padding: 44px 0; }
  .hero { padding: 36px 0 40px; }
  .g2, .g3, .req, .notice-list, .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-actions .btn { width: 100%; }
  .notice { padding: 20px 18px; }
  .card, .plan { padding: 20px; }
  .contact .box { padding: 20px; }
  .contact dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .contact dd { margin-bottom: 10px; }
  .price .n { font-size: 2.4rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
@media print {
  .site-header, .menu-btn, .skip { display: none; }
  body { font-size: 11pt; }
}

/* policy tables: one block per row on phones */
@media (max-width: 640px) {
  .doc table, .doc tbody, .doc tr, .doc td { display: block; width: 100%; }
  .doc thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .doc tr { border: 1px solid var(--border-strong); border-radius: var(--radius-s); margin-bottom: 12px; padding: 6px 0; background: var(--surface); }
  .doc td { border: 0; padding: 6px 14px; }
  .doc td:first-child { font-weight: 700; color: var(--ink); }
  .doc td:last-child { color: var(--muted); font-size: .93rem; }
}
