/* MotoCounter marketing site — shared styles for Thai (/) and English (/en/) */

:root {
  --paper: #f6f3ec;
  --paper-2: #efebe3;
  --surface: #ffffff;
  --ink: #15171c;
  --ink-2: #3a3f4a;
  --muted: #626977;
  --line: #e3ddd1;
  --accent: #e25a12;
  --accent-ink: #b8440a;
  --accent-on-dark: #ff7a33;
  --accent-soft: #fde9dc;
  --ok: #1f9d55;
  --line-green: #06c755;
  --on-dark: #f6f3ec;
  --on-dark-2: rgba(246, 243, 236, 0.78);
  --radius: 14px;
  --maxw: 1120px;
  --font-body: "IBM Plex Sans Thai", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --font-head: "Bai Jamjuree", "IBM Plex Sans Thai", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
html[lang="en"] body { line-height: 1.6; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.25;
  text-wrap: balance;
}
html[lang="en"] h1, html[lang="en"] h2 { letter-spacing: -0.015em; }
html[lang="th"] h1, html[lang="th"] h2, html[lang="th"] h3 { line-height: 1.4; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.nw { white-space: nowrap; }
.sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.icons { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- Header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(21, 23, 28, 0.94);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  color: var(--on-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.top .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
  font-family: var(--font-head); font-weight: 700; font-size: 20px;
  letter-spacing: -0.01em; line-height: 1;
}
.brand svg { width: 30px; height: 30px; flex: none; }
.brand span b { color: var(--accent-on-dark); font-weight: 700; }
.nav { display: none; gap: 28px; margin-left: auto; }
.nav a { text-decoration: none; font-size: 15px; color: var(--on-dark-2); }
.nav a:hover { color: #fff; }
.top-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.lang {
  font-size: 14px; font-weight: 600; text-decoration: none; line-height: 1;
  padding: 9px 12px; border: 1px solid rgba(255, 255, 255, 0.24); border-radius: 999px;
}
.lang:hover { border-color: #fff; }
@media (min-width: 900px) {
  .nav { display: flex; }
  .top-actions { margin-left: 28px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 24px;
  border-radius: 12px; border: 0;
  font: 600 17px/1.2 var(--font-body);
  text-decoration: none; cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, transform 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-line { background: var(--line-green); color: #052a12; }
.btn-line:hover { background: #19d266; }
.btn-ghost { border: 1.5px solid rgba(246, 243, 236, 0.35); color: var(--on-dark); }
.btn-ghost:hover { border-color: var(--on-dark); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 15px; border-radius: 10px; gap: 7px; }
.btn-sm svg { width: 18px; height: 18px; }

/* ---------- Odometer digits (the "counter") ---------- */
.odo {
  display: inline-flex; align-items: flex-end; gap: 0.08em;
  font-family: var(--font-head); font-weight: 700; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.odo b {
  position: relative; display: inline-grid; place-items: center;
  font-size: 0.72em; width: 1.1em; height: 1.6em; border-radius: 0.2em;
  background: linear-gradient(180deg, #343843 0%, #1d2027 48%, #111318 52%, #292d35 100%);
  color: #fff; font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07), 0 1px 2px rgba(0, 0, 0, 0.18);
}
.odo b::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px;
  background: rgba(0, 0, 0, 0.55);
}
.odo b.hot { background: linear-gradient(180deg, #f2702c 0%, #dc560f 48%, #c64b0b 52%, #e3631c 100%); }
.odo i { font-style: normal; padding: 0 0.02em; }

/* ---------- Hero ---------- */
.hero { background: var(--ink); color: var(--on-dark); padding: 56px 0 84px; overflow: hidden; }
.hero .wrap { display: grid; gap: 64px; }
@media (min-width: 980px) {
  .hero { padding: 88px 0 112px; }
  .hero .wrap { grid-template-columns: 1.08fr 0.92fr; align-items: center; gap: 56px; }
}
.eyebrow {
  display: inline-block;
  font-size: 15px; font-weight: 600; line-height: 1.4;
  color: var(--accent-ink);
}
html[lang="en"] .eyebrow { font-size: 13px; text-transform: uppercase; letter-spacing: 0.09em; }
.hero .eyebrow { color: var(--accent-on-dark); }
.hero h1 { font-size: clamp(40px, 7.4vw, 66px); margin: 14px 0 22px; line-height: 1.12; }
html[lang="th"] .hero h1 { line-height: 1.32; }
html[lang="en"] .hero h1 { font-size: clamp(38px, 6.4vw, 60px); }
.hero h1 em { display: block; font-style: normal; color: var(--accent-on-dark); }
.lead { font-size: clamp(17px, 2vw, 19px); color: var(--on-dark-2); max-width: 36em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.proofline {
  display: flex; align-items: center; gap: 10px;
  margin-top: 30px; font-size: 15px; color: var(--on-dark-2);
}
.proofline a { color: var(--on-dark); font-weight: 600; text-underline-offset: 3px; }
.pulse {
  width: 8px; height: 8px; border-radius: 50%; flex: none;
  background: #2fd06e; box-shadow: 0 0 0 4px rgba(47, 208, 110, 0.2);
}

/* Hero illustration: availability calendar */
.demo { position: relative; width: 100%; max-width: 470px; justify-self: center; padding: 34px 0; }
.cal {
  background: var(--surface); color: var(--ink);
  border-radius: 18px; padding: 20px 18px 18px;
  box-shadow: 0 36px 70px -24px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.05);
}
.cal-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.cal-title { font-weight: 600; font-size: 15px; line-height: 1.3; }
.live {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  font-size: 12px; font-weight: 600; line-height: 1;
  color: var(--ok); background: #e6f6ec; padding: 6px 10px; border-radius: 999px;
}
.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.grid {
  display: grid; grid-template-columns: auto repeat(7, minmax(0, 1fr));
  gap: 5px; align-items: center; font-size: 13px; line-height: 1.2;
}
.grid .d { text-align: center; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; padding-bottom: 2px; }
.grid .bike { font-weight: 500; white-space: nowrap; padding-right: 8px; }
.grid i { height: 28px; border-radius: 6px; background: #e6f6ec; border: 1px solid #bfe6cd; }
.grid i.b { background: #2b2f38; border-color: #2b2f38; }
.grid i.s { background: var(--accent); border-color: var(--accent); }
.cal-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-size: 12px; color: var(--muted); line-height: 1.3; }
.cal-legend span::before {
  content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 6px; vertical-align: -1px;
  border-radius: 3px; background: #e6f6ec; border: 1px solid #bfe6cd;
}
.cal-legend .b::before { background: #2b2f38; border-color: #2b2f38; }
.cal-legend .s::before { background: var(--accent); border-color: var(--accent); }
.cal-btn {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  margin-top: 16px; padding: 13px 15px; border-radius: 12px;
  background: var(--ink); color: #fff; font-weight: 600; font-size: 14px; line-height: 1.3;
}
.cal-btn span:last-child { color: var(--accent-on-dark); white-space: nowrap; }
.chip {
  position: absolute; display: flex; align-items: center; gap: 8px;
  background: var(--surface); color: var(--ink);
  font-size: 13px; font-weight: 600; line-height: 1.3;
  padding: 10px 14px; border-radius: 12px;
  box-shadow: 0 16px 34px -12px rgba(0, 0, 0, 0.55);
}
.chip svg { width: 18px; height: 18px; flex: none; color: var(--ok); }
.chip-1 { top: 2px; right: 18px; }
.chip-2 { bottom: 2px; left: 18px; }

/* ---------- Sections ---------- */
.sec { padding: 88px 0; }
.sec + .sec { padding-top: 0; }
@media (max-width: 640px) { .sec { padding: 64px 0; } }
.sec-head { max-width: 740px; margin-bottom: 40px; }
.sec h2 { font-size: clamp(29px, 4.4vw, 44px); margin-top: 10px; }
.sec-head p { margin-top: 14px; color: var(--muted); font-size: 18px; }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}

/* Gap */
.gap-grid { display: grid; gap: 16px; }
@media (min-width: 840px) { .gap-grid { grid-template-columns: repeat(3, 1fr); } }
.gap-card { padding: 28px 26px; }
.gap-card .mark {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--paper-2); color: var(--muted);
}
.gap-card .mark svg { width: 18px; height: 18px; }
.gap-card h3 { font-size: 21px; margin: 16px 0 8px; }
.gap-card p { color: var(--ink-2); }
.gap-card.yes { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.gap-card.yes p { color: var(--on-dark-2); }
.gap-card.yes .mark { background: var(--accent); color: #fff; }

/* Proof */
.proof {
  display: grid; gap: 28px; align-items: center;
  padding: 34px 28px; border-radius: 22px;
}
@media (min-width: 820px) { .proof { grid-template-columns: auto 1fr; gap: 56px; padding: 48px 56px; } }
.proof-badge { display: grid; justify-items: center; gap: 12px; }
.proof-badge .odo { font-size: 68px; }
.proof-badge small { font-size: 14px; font-weight: 600; color: var(--muted); }
.proof h2 { font-size: clamp(27px, 3.6vw, 38px); margin-top: 8px; }
.proof p { margin-top: 12px; font-size: 18px; color: var(--ink-2); }
.textlink {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 18px; font-weight: 600; color: var(--accent-ink);
  text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 1px;
}
.textlink:hover { color: var(--accent); }

/* Features */
.feat { display: grid; gap: 14px; }
@media (min-width: 720px) { .feat { grid-template-columns: repeat(2, 1fr); } }
.f { display: flex; gap: 18px; padding: 22px 22px 24px; }
.ic {
  flex: none; width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-ink);
}
.ic svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic-lang { font-family: var(--font-head); font-weight: 700; font-size: 16px; line-height: 1; letter-spacing: 0.02em; }
.f h3 { font-size: 18px; line-height: 1.4; }
.f p { margin-top: 4px; color: var(--muted); font-size: 16px; }

/* Setups */
.setups { display: grid; gap: 16px; }
@media (min-width: 900px) { .setups { grid-template-columns: repeat(3, 1fr); } }
.setup { padding: 28px 26px; display: flex; flex-direction: column; }
.setup .n { font-family: var(--font-head); font-weight: 700; font-size: 15px; color: var(--accent-ink); letter-spacing: 0.04em; }
.setup h3 { font-size: 22px; margin: 8px 0 10px; }
.setup > p { color: var(--ink-2); }
.checks { margin-top: auto; padding-top: 22px; display: grid; gap: 10px; font-size: 15px; line-height: 1.4; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.checks .y svg { color: var(--ok); }
.checks .x { color: #9aa0aa; }
.setup.pick { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }

/* Pricing */
.price-grid { display: grid; gap: 16px; }
@media (min-width: 960px) { .price-grid { grid-template-columns: 1fr 2fr; } }
.pcard { padding: 28px 26px; border-radius: 18px; }
.pcard.dark { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.plabel { font-weight: 600; font-size: 15px; color: var(--muted); }
.pcard.dark .plabel { color: var(--on-dark-2); }
.amount { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 10px; margin: 16px 0 12px; }
.amount .cur { font-family: var(--font-head); font-weight: 700; font-size: 30px; line-height: 1.2; }
.amount .unit { font-weight: 600; font-size: 16px; line-height: 1.3; padding-bottom: 2px; }
.pcard .amount .odo { font-size: 40px; }
.pcard.dark p { color: var(--on-dark-2); }
.tiers { display: grid; gap: 12px; margin-top: 16px; }
@media (min-width: 640px) { .tiers { grid-template-columns: repeat(3, 1fr); } }
.tier { border: 1px solid var(--line); border-radius: 14px; padding: 18px 18px 16px; }
.tier .size { font-weight: 600; line-height: 1.4; }
.tier .amount { margin: 12px 0 0; gap: 8px; }
.tier .amount .odo { font-size: 26px; }
.tier .amount .cur { font-size: 22px; }
.tier .amount .unit { font-size: 14px; color: var(--muted); }
.pnote { margin-top: 18px; color: var(--ink-2); }
.addons { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.addons strong { margin-right: 6px; }
.pill {
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 15px; font-size: 15px; line-height: 1.4;
}

/* Support */
.sla { display: grid; gap: 14px; }
@media (min-width: 840px) { .sla { grid-template-columns: repeat(3, 1fr); } }
.sla-item { padding: 26px; }
.sla-item .amount { margin: 0 0 14px; }
.sla-item .amount .odo { font-size: 46px; }
.sla-item .amount .unit { font-size: 20px; font-family: var(--font-head); font-weight: 700; padding-bottom: 4px; }
.sla-item p { font-weight: 600; font-size: 18px; line-height: 1.45; }
.sla-item.crit { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.rule { margin-top: 16px; display: grid; gap: 14px; }
@media (min-width: 840px) { .rule { grid-template-columns: 1fr 1fr; } }
.rule > div { padding: 20px 22px; border-radius: var(--radius); background: var(--paper-2); }
.rule b { display: block; font-size: 17px; margin-bottom: 2px; }
.rule span { color: var(--ink-2); }

/* Contact band */
.cta-band {
  background: var(--ink); color: var(--on-dark);
  border-radius: 26px; padding: 56px 28px; text-align: center;
}
.cta-band h2 { font-size: clamp(32px, 5vw, 50px); margin-top: 0; }
.cta-band p { margin: 14px auto 30px; max-width: 30em; color: var(--on-dark-2); font-size: 18px; }

/* Footer */
.foot { padding: 0 0 56px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.foot .wrap > div {
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--line); padding-top: 28px;
}
.foot a { font-weight: 600; color: var(--ink); text-decoration: none; }
.foot a:hover { color: var(--accent-ink); }

/* Pricing: plus line, worked examples, payment steps, included list, yearly */
.pplus { margin-top: 14px; font-weight: 600; color: var(--accent-ink); font-size: 17px; }
.examples { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 10px; color: var(--muted); font-size: 15px; }
.examples b { color: var(--ink); font-weight: 600; }
.paysteps { display: grid; gap: 14px; margin-top: 16px; }
@media (min-width: 860px) { .paysteps { grid-template-columns: repeat(3, 1fr); } }
.paystep { padding: 24px 24px 22px; }
.paystep .when { font-size: 15px; font-weight: 600; color: var(--muted); line-height: 1.4; }
.paystep .what { font-family: var(--font-head); font-weight: 700; font-size: 28px; line-height: 1.3; margin-top: 8px; }
.paystep .what span { color: var(--accent-ink); padding: 0 2px; }
.paystep small { display: block; margin-top: 8px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.yearly {
  margin-top: 16px; padding: 20px 24px; font-size: 17px; line-height: 1.6;
  background: var(--accent-soft); border: 1px solid #f3cbb0; border-radius: var(--radius);
}
.yearly b { color: var(--accent-ink); }
.incl { margin-top: 16px; padding: 32px 28px; border-radius: 18px; background: var(--ink); color: var(--on-dark); }
.incl h3 { font-size: 21px; margin-bottom: 18px; }
.incl ul { display: grid; gap: 12px; }
@media (min-width: 780px) { .incl ul { grid-template-columns: 1fr 1fr; gap: 12px 32px; } }
.incl li { display: flex; gap: 11px; align-items: flex-start; color: var(--on-dark-2); font-size: 16px; line-height: 1.55; }
.incl li svg { width: 18px; height: 18px; flex: none; margin-top: 4px; color: #2fd06e; }
.incl .final { margin-top: 20px; font-weight: 600; color: var(--on-dark); font-size: 17px; }
