/* VOCA Accounting — landing page. Same brand as the app: deep navy, a gold mark, IBM Plex Sans Thai. */
:root {
  --navy: #1e3a8a; --navy-2: #1e40af; --navy-900: #0f1b3d; --ink: #0f172a; --text: #1e293b; --muted: #475569;
  --line: #e2e8f0; --bg: #ffffff; --bg-2: #f6f8fc; --tint: #eef3ff; --gold: #b7791f; --gold-2: #d69e2e;
  --ok: #166534; --ok-bg: #dcfce7; --wait: #92400e; --wait-bg: #fef3c7;
  --r: 14px; --r-sm: 8px; --shadow: 0 1px 2px rgb(15 23 42 / .05), 0 8px 24px rgb(15 23 42 / .06);
  --shadow-lg: 0 24px 60px -12px rgb(15 27 61 / .28);
  --font: "IBM Plex Sans Thai", "Leelawadee UI", Tahoma, sans-serif; --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.7; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3 { color: var(--ink); line-height: 1.3; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
.sprite { position: absolute; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 40px); }
.skip { position: absolute; left: 12px; top: -60px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: var(--r-sm); z-index: 100; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 2px; border-radius: 4px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent;
  font: 600 15px/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .2s, border-color .2s, color .2s, transform .2s, box-shadow .2s; }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 16px; }
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 6px 16px -6px rgb(30 58 138 / .6); }
.btn-primary:hover { background: var(--navy-2); transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-gold { background: var(--gold-2); color: var(--navy-900); }
.btn-gold:hover { background: #ecc94b; transform: translateY(-1px); }
.btn-outline-light { color: #fff; border-color: rgb(255 255 255 / .45); }
.btn-outline-light:hover { background: rgb(255 255 255 / .1); border-color: #fff; }
.btn .ic { width: 18px; height: 18px; transition: transform .2s; }
.btn:hover .ic { transform: translateX(2px); }

/* navigation */
.nav { position: sticky; top: 0; z-index: 50; background: rgb(255 255 255 / .82); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.nav.scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgb(15 23 42 / .05); }
.nav-row { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 18px; color: var(--ink); }
.brand b { font-weight: 600; color: var(--navy); }
.logo { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: var(--navy-900); font: 700 14px/1 var(--font); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links > a:not(.btn) { padding: 8px 12px; border-radius: 8px; text-decoration: none; color: var(--muted); font-size: 15px; transition: color .2s, background-color .2s; }
.nav-links > a:not(.btn):hover { color: var(--navy); background: var(--tint); }
.nav-links .btn { margin-left: 6px; min-height: 40px; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: #fff; border-radius: 10px; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); }

/* hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 96px;
  background: radial-gradient(900px 480px at 85% -10%, #dbe6ff 0%, transparent 60%), radial-gradient(700px 400px at -10% 20%, #fdf3dc 0%, transparent 55%), var(--bg); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-block; font-size: 14px; font-weight: 600; color: var(--gold); letter-spacing: .02em; margin-bottom: 14px; }
.hero h1 { font-size: clamp(36px, 5vw, 58px); font-weight: 700; line-height: 1.2; }
.hl { background: linear-gradient(90deg, var(--navy), #3b5bdb); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 19px; color: var(--muted); margin: 22px 0 30px; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-points { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 15px; color: var(--muted); }
.hero-points li { display: inline-flex; align-items: center; gap: 6px; }
.hero-points .ic { width: 18px; height: 18px; color: var(--ok); stroke-width: 2.4; }

.hero-visual { position: relative; }
.mock { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; transform: perspective(1600px) rotateY(-6deg) rotateX(2deg); transform-origin: left center; }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #f1f4f9; border-bottom: 1px solid var(--line); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; }
.mock-bar span { margin-left: 10px; font-size: 12px; color: var(--muted); background: #fff; padding: 2px 12px; border-radius: 999px; }
.mock-body { display: grid; grid-template-columns: 150px 1fr; min-height: 360px; font-size: 12px; }
.mock-side { display: flex; flex-direction: column; gap: 2px; padding: 14px 10px; border-right: 1px solid var(--line); background: #fbfcfe; }
.mock-side b { font-size: 12px; color: var(--navy); margin-bottom: 8px; line-height: 1.4; }
.mock-side span { padding: 5px 8px; border-radius: 6px; color: var(--muted); }
.mock-side .on { background: var(--tint); color: var(--navy); font-weight: 600; box-shadow: inset 3px 0 0 var(--navy); }
.mock-main { padding: 16px; display: grid; gap: 12px; align-content: start; }
.mock-title { font-weight: 600; color: var(--ink); font-size: 14px; }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mock-kpis div { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; display: grid; }
.mock-kpis small { color: var(--muted); font-size: 11px; }
.mock-kpis strong { font: 500 15px/1.4 var(--mono); color: var(--ink); }
.mock-kpis em { font-style: normal; font-size: 11px; color: var(--muted); }
.mock-kpis em.up { color: var(--ok); }
.mock-chart { display: flex; align-items: flex-end; gap: 6px; height: 70px; padding: 6px 4px 0; border-bottom: 1px solid var(--line); }
.mock-chart span { flex: 1; height: var(--h); border-radius: 4px 4px 0 0; background: linear-gradient(180deg, #6d8cf0, var(--navy)); opacity: .9; }
.mock-table { width: 100%; border-collapse: collapse; }
.mock-table th { text-align: left; font-weight: 600; color: var(--muted); font-size: 11px; padding: 4px 6px; border-bottom: 1px solid var(--line); }
.mock-table td { padding: 6px; border-bottom: 1px solid #f1f5f9; white-space: nowrap; }
.mock-table td:nth-child(3) { font-family: var(--mono); text-align: right; }
mark { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11px; background: var(--tint); color: var(--navy); }
mark.ok { background: var(--ok-bg); color: var(--ok); }
mark.wait { background: var(--wait-bg); color: var(--wait); }
.float { position: absolute; display: flex; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; box-shadow: var(--shadow); font-size: 13px; line-height: 1.4; }
.float .ic { width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); stroke-width: 2.4; }
.float b { display: block; color: var(--ink); }
.float small { color: var(--muted); }
.float-a { left: -28px; bottom: 36px; }
.float-b { right: -10px; top: -22px; }
.float-b .ic { background: var(--tint); color: var(--navy); }

/* facts strip */
.facts { border-block: 1px solid var(--line); background: #fff; }
.facts-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts-row div { padding: 26px 20px; display: grid; gap: 2px; text-align: center; }
.facts-row div + div { border-left: 1px solid var(--line); }
.facts strong { font-size: 26px; color: var(--navy); font-weight: 700; }
.facts span { color: var(--muted); font-size: 15px; }

/* sections */
.section { padding: 104px 0; }
.section.alt { background: var(--bg-2); }
.head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.head h2, .split h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 700; }
.head p:not(.eyebrow) { color: var(--muted); font-size: 18px; margin-top: 14px; }
.lead-sm { color: var(--muted); font-size: 18px; margin: 16px 0 26px; }

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 980px; margin-inline: auto; }
.compare-col { border-radius: var(--r); padding: 30px 32px; }
.compare-col h3 { font-size: 18px; margin-bottom: 16px; }
.compare-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.compare-col li { display: flex; gap: 10px; align-items: flex-start; }
.before { background: var(--bg-2); color: var(--muted); }
.before li::before { content: ""; flex: none; width: 14px; height: 2px; margin-top: 13px; background: #94a3b8; border-radius: 2px; }
.after { background: var(--navy-900); color: #e2e8f0; box-shadow: var(--shadow-lg); }
.after h3 { color: #fff; }
.after .ic { color: var(--gold-2); stroke-width: 2.4; margin-top: 4px; }

.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 26px; transition: transform .25s, box-shadow .25s, border-color .25s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #c7d2fe; }
.card h3 { font-size: 18px; margin: 16px 0 8px; }
.card p { color: var(--muted); font-size: 15px; line-height: 1.7; }
.card.flat { background: transparent; border-color: transparent; padding: 10px 6px; }
.card.flat:hover { transform: none; box-shadow: none; }
.badge { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--tint); color: var(--navy); }
.badge .ic { width: 22px; height: 22px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks .ic { width: 24px; height: 24px; padding: 4px; margin-top: 2px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); stroke-width: 2.6; }
.ticks b { color: var(--ink); }
.ticks span { color: var(--muted); }

.panel { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 26px; font-size: 15px; }
.panel-head { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.panel-head .ic { color: var(--navy); }
.panel-rows { margin: 14px 0 0; display: grid; gap: 6px; }
.panel-rows div { display: flex; justify-content: space-between; color: var(--muted); }
.panel-rows dd { margin: 0; font-family: var(--mono); color: var(--ink); }
.panel-rows .total { padding-top: 8px; border-top: 1px dashed var(--line); font-weight: 600; color: var(--ink); }
.panel-rows .total dd { color: var(--navy); font-size: 17px; }
.panel-sub { margin: 22px 0 8px; font-size: 13px; font-weight: 600; color: var(--gold); }
.je { width: 100%; border-collapse: collapse; background: var(--bg-2); border-radius: 10px; overflow: hidden; font-size: 14px; }
.je td { padding: 8px 12px; border-bottom: 1px solid #fff; }
.je td + td { font-family: var(--mono); text-align: right; width: 32%; }
.panel-foot { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.panel-foot mark { font-size: 12px; padding: 3px 10px; }

.reverse > :first-child { order: 0; }
.stack-visual { position: relative; display: grid; gap: 14px; max-width: 440px; }
.co-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; box-shadow: var(--shadow); display: grid; gap: 2px; }
.co-card b { color: var(--ink); }
.co-card small { color: var(--muted); font-size: 14px; }
.co-card:nth-child(2) { margin-left: 28px; }
.co-card:nth-child(3) { margin-left: 56px; }
.co-card.add { border: 2px dashed #c7d2fe; background: var(--tint); box-shadow: none; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; }
.co-card.add span { grid-row: span 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--navy); font-size: 22px; }

.dark { background: var(--navy-900); color: #cbd5e1; }
.dark h2, .dark h3 { color: #fff; }
.dark .head p:not(.eyebrow) { color: #94a3b8; }
.dark .eyebrow { color: var(--gold-2); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; }
.steps li { position: relative; padding: 30px; border-radius: var(--r); background: rgb(255 255 255 / .04); border: 1px solid rgb(255 255 255 / .1); }
.steps span { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--gold-2); color: var(--navy-900); font-weight: 700; margin-bottom: 16px; }
.steps h3 { font-size: 19px; margin-bottom: 8px; }
.steps p { font-size: 15px; color: #94a3b8; }

.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: #c7d2fe; box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 600; color: var(--ink); display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: rotate(45deg) translateY(-3px); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq details p { padding: 0 22px 20px; color: var(--muted); }

.cta-band { padding: 88px 0; background: radial-gradient(600px 300px at 90% 0%, rgb(214 158 46 / .25), transparent 60%), linear-gradient(135deg, var(--navy-900), var(--navy)); color: #cbd5e1; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: clamp(26px, 3.2vw, 36px); }
.cta-band p { margin-top: 10px; font-size: 18px; }

.footer { padding: 36px 0; border-top: 1px solid var(--line); }
.foot-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.footer nav a:hover { color: var(--navy); }
.footer small { color: var(--muted); }

/* reveal on scroll (only when motion is welcome and the script runs) */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-grid, .split { grid-template-columns: 1fr; gap: 48px; }
  .mock { transform: none; }
  .float-a { left: 8px; } .float-b { right: 8px; }
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-links { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 20px 20px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgb(15 23 42 / .08); display: none; }
  .nav-links.open { display: flex; }
  .nav-links > a:not(.btn) { padding: 12px; font-size: 16px; }
  .nav-links .btn { margin: 6px 0 0; }
  .grid-3, .steps, .compare { grid-template-columns: 1fr; }
  .facts-row { grid-template-columns: repeat(2, 1fr); }
  .facts-row div:nth-child(3) { border-left: 0; }
  .facts-row div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .section { padding: 72px 0; }
  .hero { padding: 48px 0 72px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .grid-4 { grid-template-columns: 1fr; }
  .mock-body { grid-template-columns: 1fr; }
  .mock-side { display: none; }
  .mock-kpis { grid-template-columns: 1fr 1fr; }
  .mock-kpis div:last-child { display: none; }
  .float { display: none; }
  .cta-row .btn { flex: 1 1 100%; }
  .co-card:nth-child(n) { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* grid children may shrink below their content (the mock table must not widen the hero on phones) */
.hero-grid > *, .split > *, .grid-4 > *, .grid-3 > * { min-width: 0; }
.mock-main { min-width: 0; overflow: hidden; }
/* Thai has no spaces between words: keep short phrases whole and balance heading lines */
.nw { white-space: nowrap; }
h1, h2 { text-wrap: balance; }
@media (max-width: 560px) { .cta-inner .cta-row { width: 100%; } }

/* coming soon: the product is not on sale yet */
.soon-bar { background: var(--navy-900); color: #e2e8f0; font-size: 14px; text-align: center; padding: 8px 0; }
.soon-bar b { color: var(--gold-2); margin-right: 6px; }
.soon-bar a { color: #fff; font-weight: 600; margin-left: 6px; text-underline-offset: 3px; }
.soon-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-2); margin-right: 8px; vertical-align: middle; box-shadow: 0 0 0 0 rgb(214 158 46 / .6); animation: soon-pulse 2s infinite; }
.soon-badge { display: flex; width: fit-content; align-items: center; margin: 0 0 18px; padding: 6px 14px; border-radius: 999px; background: #fdf3dc; border: 1px solid #f3d99b; color: #7a4f0e; font-size: 14px; font-weight: 600; }
.cta-band .eyebrow { color: var(--gold-2); margin-bottom: 8px; }
@keyframes soon-pulse { 70% { box-shadow: 0 0 0 8px rgb(214 158 46 / 0); } 100% { box-shadow: 0 0 0 0 rgb(214 158 46 / 0); } }
@media (max-width: 560px) { .soon-bar { font-size: 13px; padding: 8px 12px; } }
