/* Scanner QR — site styles (brand tokens shared with the app) */
:root {
  color-scheme: light dark;
  --primary: #5b3df5;
  --primary-ink: #463f77;
  --primary-soft: #e4dfff;
  --teal: #00bfa6;
  --pro-a: #ff9a44;
  --pro-b: #ff5e62;
  --bg: #fbfaff;
  --surface: #ffffff;
  --surface-2: #f3effb;
  --fg: #1c1b20;
  --muted: #47464f;
  --line: #e2ddea;
  --hero-a: #7a5cff;
  --hero-b: #3a1fd1;
  --shadow: 0 10px 30px rgba(58, 31, 209, 0.12);
  --r-card: 20px;
  --r-ctl: 14px;
  --max: 1080px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Thai",
    "Sarabun", "Leelawadee UI", "Thonburi", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --primary: #b9a8ff;
    --primary-ink: #e4dfff;
    --primary-soft: #2e2560;
    --bg: #131218;
    --surface: #1c1b22;
    --surface-2: #232129;
    --fg: #e6e1e9;
    --muted: #c9c5d0;
    --line: #34313c;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.7 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font-weight: 700; font-size: 18px; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; padding: 6px 12px; border-radius: 999px; }
.nav a:hover { background: var(--surface-2); color: var(--fg); }
.nav a[aria-current="page"] { background: var(--primary-soft); color: var(--primary-ink); }
@media (max-width: 720px) {
  .site-header .wrap { height: auto; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
  .nav { margin-left: 0; width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .nav a { white-space: nowrap; font-size: 14px; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  min-height: 52px; padding: 0 22px; border-radius: var(--r-ctl);
  font-weight: 600; font-size: 16px; text-decoration: none; border: 0; cursor: pointer;
}
.btn-light { background: #fff; color: #3a1fd1; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.btn-light:hover { background: #f4f1ff; }
.btn-ghost { color: #fff; border: 1.5px solid rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-primary { background: #5b3df5; color: #fff; }
.btn-primary:hover { background: #4a2ee0; }
.btn small { display: block; font-weight: 500; font-size: 11px; line-height: 1.2; opacity: .75; }
.btn .lbl { display: flex; flex-direction: column; line-height: 1.2; text-align: left; }

/* Hero */
.hero {
  background: radial-gradient(1200px 500px at 85% -10%, rgba(0,191,166,.35), transparent 60%),
    linear-gradient(135deg, var(--hero-a), var(--hero-b));
  color: #fff; overflow: hidden;
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding-top: 64px; padding-bottom: 0; }
.hero h1 { font-size: clamp(32px, 4.4vw, 48px); line-height: 1.15; margin: 0 0 16px; letter-spacing: -.01em; }
.hero p.lead { font-size: 19px; margin: 0 0 28px; color: rgba(255,255,255,.88); max-width: 34ch; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.hero .meta { font-size: 14px; color: rgba(255,255,255,.75); margin-bottom: 64px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 999px; background: rgba(255,255,255,.16); font-size: 14px; font-weight: 500; margin-bottom: 18px; }
.hero-phones { position: relative; height: 560px; }
.hero-phones .phone { position: absolute; width: 250px; }
.hero-phones .phone:nth-child(1) { left: 0; top: 70px; transform: rotate(-6deg); }
.hero-phones .phone:nth-child(2) { right: 10px; top: 20px; transform: rotate(4deg); }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 44px; }
  .hero .meta { margin-bottom: 8px; }
  .hero-phones { height: 420px; }
  .hero-phones .phone { width: 190px; }
  .hero-phones .phone:nth-child(1) { left: calc(50% - 200px); top: 40px; }
  .hero-phones .phone:nth-child(2) { right: calc(50% - 200px); top: 0; }
}

/* Phone frame around raw screenshots */
.phone {
  border-radius: 34px; padding: 8px; background: #111;
  box-shadow: 0 30px 60px rgba(10, 0, 60, .35), inset 0 0 0 1.5px #333;
}
.phone img { border-radius: 27px; width: 100%; }

/* Sections */
section { padding: 72px 0; }
.section-title { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-title h2 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.25; margin: 0 0 10px; }
.section-title p { color: var(--muted); margin: 0; font-size: 17px; }
.eyebrow { color: var(--primary); font-weight: 700; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 24px; box-shadow: 0 1px 2px rgba(0,0,0,.03);
}
.card h3 { margin: 14px 0 6px; font-size: 18px; line-height: 1.35; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.ico {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary-ink);
}
.ico.teal { background: color-mix(in srgb, var(--teal) 20%, transparent); color: #00806f; }
@media (prefers-color-scheme: dark) { .ico.teal { color: #5ee6d2; } }
.ico svg { width: 24px; height: 24px; }

.badge-pro {
  display: inline-block; padding: 1px 8px; border-radius: 6px; color: #fff;
  font-size: 12px; font-weight: 700; letter-spacing: .03em; vertical-align: 2px;
  background: linear-gradient(90deg, var(--pro-a), var(--pro-b));
}

/* Screenshot strip */
.shots { display: flex; gap: 22px; overflow-x: auto; padding: 8px 4px 24px; scroll-snap-type: x mandatory; }
.shots figure { margin: 0; flex: 0 0 220px; scroll-snap-align: center; text-align: center; }
.shots figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); font-weight: 500; }
.alt { background: var(--surface-2); }

/* Split feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split .phone { width: 260px; margin: 0 auto; }
.split ul { padding-left: 0; list-style: none; margin: 18px 0 0; }
.split li { padding-left: 32px; position: relative; margin: 10px 0; }
.split li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 20px; height: 20px; border-radius: 999px;
  background: var(--primary-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b3df5' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center/14px no-repeat;
}
@media (max-width: 760px) { .split { grid-template-columns: 1fr; gap: 28px; } .split .phone { width: 220px; } }

/* Compare table */
.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; font-size: 15px; }
.compare th, .compare td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; }
.compare tr:last-child td { border-bottom: 0; }
.compare th { background: var(--surface-2); font-size: 14px; }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; width: 110px; }
.yes { color: #00a08b; font-weight: 700; }
.no { color: var(--muted); opacity: .6; }

/* CTA band */
.band {
  border-radius: 28px; padding: 44px 32px; text-align: center; color: #fff;
  background: linear-gradient(135deg, var(--hero-a), var(--hero-b));
  box-shadow: var(--shadow);
}
.band h2 { margin: 0 0 8px; font-size: clamp(24px, 3vw, 32px); }
.band p { margin: 0 0 22px; color: rgba(255,255,255,.85); }

/* Document pages (privacy, terms, support…) */
.doc-hero { background: linear-gradient(135deg, var(--hero-a), var(--hero-b)); color: #fff; padding: 48px 0 40px; }
.doc-hero h1 { margin: 0 0 6px; font-size: clamp(28px, 4vw, 40px); line-height: 1.2; }
.doc-hero p { margin: 0; color: rgba(255,255,255,.85); }
.doc-hero .langs { margin-top: 18px; display: flex; gap: 8px; }
.doc-hero .langs a { color: #fff; text-decoration: none; font-size: 14px; font-weight: 600; padding: 4px 14px; border-radius: 999px; background: rgba(255,255,255,.16); }
.doc-hero .langs a:hover { background: rgba(255,255,255,.28); }
.doc { max-width: 780px; margin: 0 auto; padding: 40px 20px 72px; }
.doc h2 { font-size: 26px; line-height: 1.3; margin: 48px 0 8px; padding-top: 28px; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.doc h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.doc h3 { font-size: 19px; line-height: 1.4; margin: 32px 0 6px; scroll-margin-top: 80px; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin: 6px 0; }
.doc .facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; margin: 16px 0 24px;
}
.doc .facts div { font-size: 14px; color: var(--muted); }
.doc .facts strong { display: block; color: var(--fg); font-size: 15px; }
.note {
  background: var(--primary-soft); color: var(--primary-ink); border-radius: 16px; padding: 14px 18px; margin: 18px 0;
}
.steps { counter-reset: s; list-style: none; padding-left: 0 !important; }
.steps li { counter-increment: s; position: relative; padding-left: 48px; margin: 16px 0; min-height: 34px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 999px;
  background: #5b3df5; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 15px;
}
details.faq { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 0 18px; margin: 10px 0; }
details.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--primary); }
details.faq[open] summary::after { content: "–"; }
details.faq > div { padding: 0 0 16px; color: var(--muted); }
details.faq > div p { margin: 0 0 8px; }
.contact-card { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
code, kbd { background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: .92em; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 44px; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; gap: 24px; justify-content: space-between; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--fg); text-decoration: underline; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
