@font-face { font-family: Prompt; src: url(Prompt-Regular.ttf); font-weight: 400; font-display: swap; }
@font-face { font-family: Prompt; src: url(Prompt-SemiBold.ttf); font-weight: 600; font-display: swap; }
@font-face { font-family: Prompt; src: url(Prompt-Bold.ttf); font-weight: 700; font-display: swap; }

:root {
  --brand: #00897b;
  --brand-dark: #00695c;
  --brand-light: #26a69a;
  --mint: #b2dfdb;
  --ink: #12302c;
  --muted: #5b6f6c;
  --line: #e1ebe9;
  --bg: #f6faf9;
  --card: #ffffff;
  --expense: #e05a5a;
  --radius: 22px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e4efed;
    --muted: #9db3af;
    --line: #23332f;
    --bg: #0f1716;
    --card: #16211f;
    --brand: #4fd1c0;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Prompt, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* Language: both languages are in the page; one is shown. */
html[data-lang="th"] [lang="en"]:not(html) { display: none !important; }
html[data-lang="en"] [lang="th"]:not(html) { display: none !important; }

/* ---- Header ---- */
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 1.15rem; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.brand span { white-space: nowrap; }
.top nav { margin-left: auto; display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.top nav a { color: var(--muted); text-decoration: none; padding: 6px 10px; border-radius: 10px; font-size: .95rem; }
.top nav a:hover, .top nav a[aria-current] { color: var(--ink); background: var(--line); }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; margin-left: 6px; }
.lang button { font: inherit; font-size: .85rem; border: 0; background: none; color: var(--muted); padding: 4px 12px; cursor: pointer; }
html[data-lang="th"] .lang [data-set="th"], html[data-lang="en"] .lang [data-set="en"] { background: var(--brand); color: #fff; }
@media (max-width: 720px) { .top nav a.hide-sm { display: none; } }
@media (max-width: 460px) {
  .top nav a { display: none; }
  .hero .phones img { border-width: 4px; border-radius: 22px; }
}

/* ---- Hero ---- */
.hero {
  background: linear-gradient(135deg, var(--brand-light), var(--brand-dark));
  color: #fff; position: relative; overflow: hidden;
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.08);
}
.hero::before { width: 420px; height: 420px; top: -160px; right: -120px; }
.hero::after { width: 360px; height: 360px; bottom: -200px; left: -120px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding-top: 64px; padding-bottom: 64px; position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.2; margin: 0 0 16px; }
.hero p.lead { font-size: 1.15rem; color: var(--mint); margin: 0 0 28px; max-width: 34em; }
.hero .phones { display: flex; justify-content: center; gap: 16px; }
.hero .phones img { width: 46%; max-width: 230px; border-radius: 28px; box-shadow: 0 30px 60px rgba(0,0,0,.28); border: 6px solid #0d2b27; }
.hero .phones img:nth-child(2) { transform: translateY(36px); }
@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .stores { justify-content: center; }
}

.stores { display: flex; gap: 12px; flex-wrap: wrap; }
.store {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px;
  border-radius: 14px; background: #0d2b27; color: #fff; text-decoration: none; min-width: 190px;
}
.store svg { width: 26px; height: 26px; flex: none; }
.store small { display: block; font-size: .72rem; opacity: .75; line-height: 1.1; }
.store b { display: block; font-size: 1.05rem; line-height: 1.2; }
.store[aria-disabled="true"] { opacity: .75; cursor: default; }

/* ---- Sections ---- */
section.block { padding: 72px 0; }
section.block h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 8px; line-height: 1.3; }
section.block .sub { color: var(--muted); margin: 0 0 36px; max-width: 40em; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
}
.card .ico {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand); margin-bottom: 14px;
}
.card .ico svg { width: 24px; height: 24px; }
.card h3 { margin: 0 0 6px; font-size: 1.1rem; }
.card p { margin: 0; color: var(--muted); font-size: .96rem; }
.tag { display: inline-block; font-size: .72rem; padding: 1px 8px; border-radius: 999px; background: var(--line); color: var(--muted); margin-left: 6px; vertical-align: 2px; }

.shots { display: flex; gap: 18px; overflow-x: auto; padding: 8px 4px 24px; scroll-snap-type: x mandatory; }
.shots figure { margin: 0; flex: 0 0 220px; scroll-snap-align: start; text-align: center; }
.shots img { border-radius: 24px; border: 1px solid var(--line); box-shadow: 0 12px 30px rgba(0,0,0,.08); }
.shots figcaption { color: var(--muted); font-size: .9rem; margin-top: 10px; }

.privacy-band { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.checks li { padding-left: 34px; position: relative; }
.checks li::before {
  content: "✓"; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--brand); color: #fff; font-size: .8rem; display: grid; place-items: center; font-weight: 700;
}

/* ---- Documents (policy, terms) ---- */
.doc { padding: 48px 0 72px; }
.doc h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); line-height: 1.25; margin: 0 0 6px; }
.doc .meta { color: var(--muted); margin: 0 0 28px; }
.doc h2 { font-size: 1.25rem; margin: 36px 0 8px; padding-top: 8px; }
.doc h3 { font-size: 1.05rem; margin: 22px 0 6px; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin: 4px 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: .95rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.doc th { background: var(--card); font-weight: 600; }
.note {
  background: color-mix(in srgb, var(--brand) 10%, var(--card)); border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent);
  border-radius: 16px; padding: 14px 18px; margin: 18px 0;
}
.warn { background: color-mix(in srgb, var(--expense) 10%, var(--card)); border-color: color-mix(in srgb, var(--expense) 35%, transparent); }
.toc { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 22px; margin: 0 0 12px; }
.toc ol { margin: 6px 0; }
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; position: relative; padding: 2px 0 14px 46px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%;
  background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700;
}
details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 4px 18px; margin: 10px 0; }
details summary { cursor: pointer; font-weight: 600; padding: 12px 0; }
details[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.btn {
  display: inline-block; background: var(--brand); color: #fff; text-decoration: none; padding: 12px 22px;
  border-radius: 14px; font-weight: 600;
}
.btn.ghost { background: transparent; color: var(--brand); border: 1px solid var(--brand); }

/* ---- Footer ---- */
footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: .92rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { color: var(--muted); }
footer .copy { margin-left: auto; }

@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.in { opacity: 1; transform: none; }
}
@media print {
  .top, footer, .lang { display: none; }
  body { background: #fff; color: #000; }
}
