/* ==========================================================================
   JomPOS — car battery store landing page
   ========================================================================== */

:root {
  --ink: #101014;
  --ink-2: #33333c;
  --muted: #6c6c76;
  --paper: #fbfaf8;
  --soft: #f2f1ed;
  --line: #e4e2dc;
  --white: #fff;

  --blue: #1f1fe0;
  --blue-deep: #0b0bc2;
  --blue-tint: #eeeeff;
  --orange: #f26b21;
  --gold: #f9b707;
  --green: #188038;
  --wa: #0b6b5d;
  --wa-bg: #ece5dc;

  --font: "Schibsted Grotesk", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --radius: 18px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

/* Language switching */
html[data-lang="en"] [data-l]:not([data-l="en"]),
html[data-lang="zh"] [data-l]:not([data-l="zh"]),
html[data-lang="ms"] [data-l]:not([data-l="ms"]) { display: none !important; }

html[data-lang="zh"] h1,
html[data-lang="zh"] h2 { letter-spacing: 0; line-height: 1.22; }
html[data-lang="zh"] body { line-height: 1.7; }
html[data-lang="zh"] h1 { font-size: clamp(36px, 5.4vw, 70px); }
html[data-lang="zh"] h2 { font-size: clamp(28px, 3.6vw, 46px); }
html[data-lang="zh"] .warranty h2 { font-size: clamp(34px, 4.4vw, 56px); }
html[data-lang="zh"] :is(h1, h2, h3, .feature-title, .first-choice-line) {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

.muted { color: var(--muted); }
.gold { color: var(--gold); }
.blue { color: var(--blue); }

/* ---------- Type ---------- */

h1, h2 { text-wrap: balance; }

h1 {
  font-size: clamp(42px, 6.2vw, 80px);
  line-height: 1;
  letter-spacing: -0.035em;
  font-weight: 800;
}

h2 {
  font-size: clamp(32px, 4.2vw, 54px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 700;
}

h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }

h1 em, h2 em {
  font-style: normal;
  color: var(--blue);
}

.lead {
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--muted);
  max-width: 34em;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 18px;
}

/* the orange dot from the JomPOS logo */
.kicker::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--orange);
  flex: none;
}

.kicker-blue { color: var(--blue); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform .25s var(--ease), background-color .2s, box-shadow .25s, border-color .2s;
  white-space: nowrap;
}

.btn svg { transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(.98); }

.btn-blue { background: var(--blue); color: #fff; box-shadow: 0 6px 20px -8px rgba(31, 31, 224, .7); }
.btn-blue:hover { background: var(--blue-deep); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #2a2a33; }
.btn-ghost { border-color: var(--line); background: var(--white); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14.5px; }
.btn-lg { height: 60px; padding: 0 32px; font-size: 19px; }

:focus-visible { outline: 2.5px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 248, .96);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}

.nav.scrolled { border-bottom-color: var(--line); }

.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
}

.nav-logo img { width: 116px; height: auto; }

.nav-links {
  display: flex;
  gap: 26px;
  margin-right: auto;
  font-size: 15px;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-2);
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}

.nav-links a:hover::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }

.lang-switch {
  display: flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
}

.lang-switch button {
  border: 0;
  background: none;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--muted);
  transition: background-color .2s, color .2s;
}

html[data-lang="en"] .lang-switch [data-set-lang="en"],
html[data-lang="zh"] .lang-switch [data-set-lang="zh"],
html[data-lang="ms"] .lang-switch [data-set-lang="ms"] { background: var(--ink); color: #fff; }

/* ---------- Reveal on scroll ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--d, 0s);
}

.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- Sections ---------- */

.section { padding: 120px 0; }

.section-head { margin-bottom: 56px; max-width: 760px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .kicker { justify-content: center; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero { padding: 56px 0 96px; overflow: hidden; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
  min-height: min(720px, calc(100vh - 140px));
}

.hero h1 { margin-bottom: 26px; }
.hero .lead { margin-bottom: 36px; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }


.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 8px;
}

/* receipt printer */
.printer { width: 330px; position: relative; }

.printer-body {
  position: relative;
  z-index: 2;
  height: 64px;
  border-radius: 16px 16px 10px 10px;
  background: linear-gradient(#2b2b33, #18181d);
  box-shadow: 0 18px 30px -18px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .08);
}

.printer-body::after { /* paper slot */
  content: "";
  position: absolute;
  left: 18px; right: 18px; bottom: 12px;
  height: 6px;
  border-radius: 4px;
  background: #050507;
}

.printer-led {
  position: absolute;
  top: 16px; right: 20px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #3ddc84;
  box-shadow: 0 0 8px #3ddc84;
  animation: blink 1.2s steps(2) 3 .4s;
}

.receipt-clip {
  position: relative;
  margin: -16px 30px 0;
  padding: 0 14px 40px;
  overflow: hidden;
}

.receipt-move {
  filter: drop-shadow(0 14px 18px rgba(16, 16, 20, .14));
  transform: translateY(-100%);
  animation: print 3s var(--ease) .5s forwards;
}

.receipt {
  background: #fff;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.55;
  color: #222;
  padding: 30px 20px 34px;
  --tooth: 12px;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / var(--tooth) 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / var(--tooth) 100%;
}

.receipt hr { border: 0; border-top: 1.5px dashed #c9c9c9; margin: 12px 0; }
.r-shop { text-align: center; font-weight: 600; font-size: 14px; letter-spacing: .14em; }
.r-sub { text-align: center; color: #777; font-size: 10.5px; }
.r-row { display: flex; justify-content: space-between; gap: 12px; }
.r-row span:last-child { text-align: right; white-space: nowrap; }
.r-minor { color: #666; }
.r-total { font-weight: 600; font-size: 14px; margin-bottom: 4px; }

.r-qr { display: flex; align-items: center; gap: 14px; margin: 16px 0 12px; color: #555; font-size: 10.5px; }
.r-qr .qr { width: 66px; height: 66px; flex: none; }
.r-thanks { text-align: center; letter-spacing: .12em; font-size: 10.5px; color: #777; }

.qr rect { fill: #111; }

/* WhatsApp notification */
.notif {
  position: relative;
  z-index: 3;
  margin: -26px 0 0;
  width: 290px;
  padding: 14px 16px 15px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 24px 40px -22px rgba(16, 16, 20, .35);
  font-size: 13.5px;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(16px) scale(.97);
  animation: pop-in .6s var(--ease) 3.4s forwards;
}

.notif-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 13px; }
.notif-app {
  width: 22px; height: 22px;
  border-radius: 6px;
  background: #25d366;
  display: grid; place-items: center;
}
.notif-time { margin-left: auto; color: var(--muted); font-size: 12px; }
.notif p { color: var(--ink-2); }
.notif-ask { margin-top: 4px; font-weight: 600; color: var(--ink) !important; }

@keyframes print {
  0%   { transform: translateY(-100%); }
  16%  { transform: translateY(-78%); }
  24%  { transform: translateY(-78%); }
  44%  { transform: translateY(-50%); }
  52%  { transform: translateY(-50%); }
  74%  { transform: translateY(-22%); }
  80%  { transform: translateY(-22%); }
  100% { transform: translateY(0); }
}

@keyframes pop-in { to { opacity: 1; transform: none; } }
@keyframes blink { 50% { opacity: .2; } }

/* ==========================================================================
   Versus
   ========================================================================== */

.versus { padding-top: 110px; border-top: 1px solid var(--line); }

.vs-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 28px;
  align-items: center;
  max-width: 980px;
  margin: 0 auto;
}

.place {
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: box-shadow .6s var(--ease), transform .6s var(--ease), border-color .6s;
}

.place-photo {
  width: 108px;
  height: 108px;
  border-radius: 12px;
  object-fit: cover;
  flex: none;
}

.place-body { display: grid; gap: 3px; font-size: 15px; align-content: center; }
.place h3 { font-size: 19px; margin-bottom: 2px; }

.rating { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.rating b { font-weight: 500; }

.stars {
  position: relative;
  display: inline-block;
  font-size: 15px;
  letter-spacing: 1px;
  line-height: 1;
  white-space: nowrap;
}

.stars::before { content: "★★★★★"; color: #dadce0; }
.stars::after {
  content: "★★★★★";
  position: absolute;
  left: 0; top: 0;
  width: var(--pct, 100%);
  overflow: hidden;
  color: var(--gold);
}

.open { color: var(--green); }

.vs-mark {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 92px;
  font-weight: 800;
  font-style: italic;
  font-size: 46px;
  letter-spacing: -0.06em;
  line-height: 1;
  color: #fff;
}

.vs-mark::before { /* skewed badge */
  content: "";
  position: absolute;
  inset: 14px 6px;
  background: var(--ink);
  transform: skewX(-14deg) rotate(-6deg);
  border-radius: 8px;
  box-shadow: 6px 6px 0 var(--orange);
}

.vs-mark::after { /* clash streaks */
  content: "";
  position: absolute;
  left: 50%; top: -10px; bottom: -10px;
  width: 3px;
  background: linear-gradient(transparent, var(--orange) 30%, var(--orange) 70%, transparent);
  transform: rotate(24deg);
  z-index: -1;
}

.vs-v, .vs-s { position: relative; display: inline-block; padding-right: .04em; }
.vs-v { color: #fff; }
.vs-s { color: var(--orange); }

.js .vs-mark[data-reveal] { transform: scale(2.2) rotate(-12deg); }
.js .vs-mark[data-reveal].in {
  transform: none;
  transition: opacity .25s ease-out, transform .45s cubic-bezier(.3, 1.8, .5, 1);
  transition-delay: var(--d, 0s);
}
.vs-mark.in .vs-v { animation: vs-in-l .5s cubic-bezier(.3, 1.6, .5, 1) .4s backwards; }
.vs-mark.in .vs-s { animation: vs-in-r .5s cubic-bezier(.3, 1.6, .5, 1) .4s backwards; }
.vs-grid:has(.vs-mark.in) .place { animation: clash .35s ease-out .75s; }

@keyframes vs-in-l { from { transform: translateX(-26px); opacity: 0; } }
@keyframes vs-in-r { from { transform: translateX(26px); opacity: 0; } }
@keyframes clash {
  30% { translate: -4px 0; }
  60% { translate: 3px 0; }
}

.place { position: relative; }

.place-win::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1.5px solid var(--blue);
  box-shadow: 0 0 0 5px var(--blue-tint), 0 30px 50px -30px rgba(31, 31, 224, .45);
  opacity: 0;
  pointer-events: none;
  transition: opacity .6s var(--ease) 1s;
}

.place-win.in::after { opacity: 1; }

.vs-answer {
  max-width: 640px;
  margin: 48px auto 0;
  text-align: center;
  font-size: clamp(18px, 1.7vw, 22px);
  color: var(--ink-2);
}

.vs-answer strong { color: var(--blue); font-weight: 700; }

/* ==========================================================================
   SEO banner
   ========================================================================== */

.seo { padding-top: 0; }

.seo-banner {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 110px 28px 96px;
  border-radius: 28px;
  background: var(--soft);
}

.seo-banner h2 { position: relative; max-width: 820px; margin: 0 auto 28px; }

.seo-banner u {
  text-decoration: none;
  color: var(--blue);
  background: linear-gradient(transparent 70%, rgba(242, 107, 33, .22) 0) no-repeat 0 0 / 0 100%;
  transition: background-size 1s var(--ease) .5s;
}

.seo-banner.in u { background-size: 100% 100%; }

.big-stars { position: relative; display: flex; justify-content: center; gap: 8px; font-size: 48px; line-height: 1; }

.big-stars i {
  font-style: normal;
  color: var(--gold);
  transform: scale(0) rotate(-30deg);
  transition: transform .5s cubic-bezier(.3, 1.6, .5, 1);
}

.seo-banner.in .big-stars i { transform: none; }
.seo-banner.in .big-stars i:nth-child(1) { transition-delay: .6s; }
.seo-banner.in .big-stars i:nth-child(2) { transition-delay: .7s; }
.seo-banner.in .big-stars i:nth-child(3) { transition-delay: .8s; }
.seo-banner.in .big-stars i:nth-child(4) { transition-delay: .9s; }
.seo-banner.in .big-stars i:nth-child(5) { transition-delay: 1s; }

/* ==========================================================================
   Why reviews matter
   ========================================================================== */

.why { padding-top: 40px; }

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.why h2 { margin-bottom: 44px; max-width: 13em; }

.stat { padding: 26px 0; border-top: 1px solid var(--line); max-width: 460px; }
.stat p:last-child { color: var(--muted); font-size: 18px; }

.stat-num {
  font-size: clamp(64px, 7vw, 96px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
  margin-bottom: 8px;
}

.search {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 40px 60px -48px rgba(16, 16, 20, .4);
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 52px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 16.5px;
  margin-bottom: 14px;
}

.search-text { color: var(--ink); }

.caret {
  width: 1.5px; height: 20px;
  background: var(--ink);
  margin-left: -10px;
  animation: blink 1s steps(2) infinite;
}

.results { display: grid; gap: 4px; }

.result {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 16px 16px;
  border-radius: 14px;
  font-size: 14.5px;
  line-height: 1.5;
  border: 1.5px solid transparent;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .5s var(--ease), transform .5s var(--ease), border-color .5s, background-color .5s;
}

.result + .result { border-top-color: var(--line); border-radius: 0; }
.result h3 { font-size: 17px; color: #1a0dab; font-weight: 500; }

.search.run .result { opacity: 1; transform: none; }
.search.run .result:nth-child(2) { transition-delay: .12s; }
.search.run .result:nth-child(3) { transition-delay: .24s; }

.search.done .result-top { border-color: var(--blue); background: var(--blue-tint); }

.result-badge {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 13px;
  color: #fff;
  background: var(--orange);
  border-radius: 999px;
  padding: 4px 10px;
  transform: scale(0);
  transition: transform .45s cubic-bezier(.3, 1.6, .5, 1) .2s;
}

.search.done .result-badge { transform: none; }

.first-choice {
  margin-top: 110px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  align-items: baseline;
}

.first-choice-line {
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.no1 {
  display: inline-grid;
  place-items: center;
  font-size: .62em;
  font-weight: 700;
  color: #fff;
  background: var(--orange);
  border-radius: 999px;
  padding: 2px 14px 3px;
  vertical-align: .18em;
}

/* ==========================================================================
   Old flow
   ========================================================================== */

.flow { background: var(--soft); }

.old-flow {
  display: grid;
  grid-template-columns: 1fr 2.1fr;
  gap: 40px;
  align-items: center;
}

.old-branches { display: grid; gap: 22px; position: relative; padding-left: 40px; }

.old-branches::before { /* dashed bracket */
  content: "";
  position: absolute;
  left: 0; top: 25%; bottom: 25%;
  width: 28px;
  border: 2px dashed #b8b6ae;
  border-right: 0;
  border-radius: 10px 0 0 10px;
}

.old-branches::after {
  content: "";
  position: absolute;
  left: -40px; top: 50%;
  width: 40px;
  border-top: 2px dashed #b8b6ae;
}

.old-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; }

.old-arrow { font-size: 22px; color: #9a988f; }

.old-step {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--ink);
}

.old-step img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(.55);
}

.old-step figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 36px 16px 14px;
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.3;
  background: linear-gradient(transparent, rgba(10, 10, 14, .82));
}

.old-step-wa {
  background: var(--white);
  border: 1px solid var(--line);
}
.old-step-wa figcaption { background: none; color: var(--ink); padding-top: 0; }

.wa-graphic {
  position: absolute;
  inset: 12px 16px 46px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.old-step-wa .wa-photo {
  width: auto;
  height: 100%;
  aspect-ratio: 554 / 585;
  object-fit: cover;
  border-radius: 12px;
  filter: none;
  box-shadow: 0 10px 20px -12px rgba(16, 16, 20, .45);
}

.wa-dash { width: 18%; max-width: 70px; border-top: 2.5px dashed #b9b8b2; margin: 0 6px; }

.wa-icon {
  flex: none;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: #25d366;
  display: grid; place-items: center;
  box-shadow: 0 10px 20px -10px rgba(10, 120, 60, .6);
}

/* ==========================================================================
   Automated reviews
   ========================================================================== */

.auto-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 80px;
  align-items: center;
}

.auto h2 { margin-bottom: 20px; }
.auto .lead { margin-bottom: 48px; }

.steps { counter-reset: step; display: grid; }

.steps li {
  position: relative;
  padding: 0 0 30px 64px;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0; top: -4px;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: 17px;
}

.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 19px; top: 42px; bottom: 0;
  border-left: 2px dotted #a9a9f5;
}

.steps h3 { font-size: 21px; margin-bottom: 4px; }
.steps p { color: var(--muted); }

/* phone + chat */
.phone {
  justify-self: center;
  width: 100%;
  max-width: 370px;
  border-radius: 40px;
  border: 10px solid var(--ink);
  background: var(--wa-bg);
  overflow: hidden;
  box-shadow: 0 50px 70px -50px rgba(16, 16, 20, .6);
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 26px 18px 14px;
  background: var(--wa);
  color: #fff;
  line-height: 1.25;
}

.chat-head small { display: block; opacity: .75; font-size: 12.5px; }

.chat-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: #f5c400;
  color: var(--ink);
  font-weight: 800;
  font-size: 13px;
  display: grid; place-items: center;
}

.chat-body { position: relative; padding: 18px 14px 26px; min-height: 470px; }

.bubble {
  position: relative;
  background: var(--white);
  border-radius: 4px 16px 16px 16px;
  padding: 14px 16px 8px;
  font-size: 14px;
  line-height: 1.45;
  color: #1b1b1f;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .08);
}

.bubble p + p { margin-top: 10px; }
.bubble a { color: #027eb5; word-break: break-all; }
.bubble-time { display: block; text-align: right; font-size: 11.5px; color: #8a8a90; margin-top: 4px; }

.bubble-actions { margin: 10px -16px -8px; border-top: 1px solid #eee; }
.bubble-actions span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px;
  color: #027eb5;
  font-weight: 600;
  font-size: 14px;
}
.bubble-actions span + span { border-top: 1px solid #eee; }

.chat-typing {
  position: absolute;
  top: 18px; left: 14px;
  display: flex;
  gap: 4px;
  padding: 14px 16px;
  background: var(--white);
  border-radius: 4px 16px 16px 16px;
  transition: opacity .3s;
}

.chat-typing i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #9a9aa2;
  animation: typing 1s infinite;
}
.chat-typing i:nth-child(2) { animation-delay: .15s; }
.chat-typing i:nth-child(3) { animation-delay: .3s; }

@keyframes typing { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }

.js [data-chat] .chat-body .bubble {
  opacity: 0;
  transform: translateY(12px) scale(.98);
  transform-origin: top left;
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}

[data-chat].run .chat-typing { opacity: 0; }
[data-chat].run .chat-body .bubble { opacity: 1; transform: none; }

/* ==========================================================================
   Warranty
   ========================================================================== */

.warranty {
  background: var(--blue);
  color: #fff;
  overflow: hidden;
  padding-top: 110px;
}

.warranty-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 40px;
  align-items: end;
}

.warranty-copy { padding-bottom: 120px; align-self: center; }
.warranty h2 { margin-bottom: 24px; font-size: clamp(38px, 5vw, 64px); }
.warranty .lead { color: rgba(255, 255, 255, .82); }

.warranty-icons { display: flex; align-items: center; margin-bottom: 36px; }

.w-bell {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  display: grid; place-items: center;
  transform-origin: 50% 10%;
}

.warranty-icons.in .w-bell { animation: ring 1.2s ease-in-out .6s 2; }

.w-line {
  width: 96px;
  border-top: 2px dashed rgba(255, 255, 255, .45);
}

.w-date {
  width: 56px; height: 60px;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  display: grid;
  place-items: center;
  align-content: center;
  font-weight: 800;
  font-size: 22px;
  line-height: 1;
  overflow: hidden;
}

.w-date small {
  display: block;
  width: 100%;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .1em;
  color: #fff;
  background: var(--orange);
  text-align: center;
  padding: 3px 0;
  margin: -6px 0 6px;
}

@keyframes ring {
  0%, 100% { transform: rotate(0); }
  15% { transform: rotate(14deg); }
  30% { transform: rotate(-12deg); }
  45% { transform: rotate(8deg); }
  60% { transform: rotate(-5deg); }
}

.warranty-visual { position: relative; min-height: 560px; }

.warranty-photo {
  position: absolute;
  right: -40px; bottom: 0;
  width: min(420px, 80%);
  height: auto;
  -webkit-mask: linear-gradient(90deg, transparent, #000 28%, #000 80%, transparent), linear-gradient(transparent, #000 22%);
  -webkit-mask-composite: source-in;
  mask: linear-gradient(90deg, transparent, #000 28%, #000 80%, transparent), linear-gradient(transparent, #000 22%);
  mask-composite: intersect;
}

.bubble-float {
  position: absolute;
  left: 0;
  bottom: 18px;
  width: min(310px, 58%);
  padding: 18px 20px 8px;
  font-size: 14px;
  border-radius: 22px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 40, .55);
  color: var(--ink);
}

/* ==========================================================================
   POS
   ========================================================================== */

.pos-section { overflow: hidden; }

.pos-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 56px;
  align-items: center;
}

.pos {
  position: relative;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 60px 80px -60px rgba(16, 16, 20, .45);
  font-size: 12px;
  overflow: visible;
}

.pos-top {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 46px;
  padding: 0 14px;
  border-radius: 20px 20px 0 0;
  background: var(--blue-deep);
  color: #fff;
}

.pos-menu {
  display: grid;
  grid-template-columns: repeat(2, 5px);
  gap: 3px;
  padding: 6px;
  border-radius: 7px;
  background: rgba(255, 255, 255, .2);
}
.pos-menu i { width: 5px; height: 5px; border-radius: 1.5px; background: #fff; }

.pos-mode { margin: 0 auto; font-weight: 600; font-size: 13px; }
.pos-mode em { font-style: normal; font-weight: 500; border: 1px solid rgba(255, 255, 255, .6); padding: 2px 8px; border-radius: 6px; margin-left: 6px; font-size: 12px; }
.pos-icons { display: flex; gap: 14px; opacity: .9; }

.pos-body {
  display: grid;
  grid-template-columns: 86px 1fr 250px;
  min-height: 470px;
}

.pos-brands { padding: 12px 10px; display: grid; gap: 8px; align-content: start; border-right: 1px solid #f0f0f0; }
.pos-brands li {
  padding: 12px 4px;
  text-align: center;
  border: 1px solid #ececec;
  border-radius: 8px;
  color: var(--ink-2);
}
.pos-brands li.on { border-color: var(--blue); color: var(--blue); font-weight: 600; }

.pos-products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px 4px;
  padding: 12px 10px;
  align-content: start;
}

.tile {
  position: relative;
  display: grid;
  justify-items: center;
  text-align: center;
  padding: 18px 4px 10px;
  border-radius: 10px;
  border: 1.5px solid transparent;
  line-height: 1.3;
  transition: border-color .4s, background-color .4s, opacity .4s;
}

.tile img { width: 62px; height: 62px; object-fit: contain; margin-bottom: 6px; }
.tile b { font-size: 11.5px; }
.tile small { font-size: 10px; color: var(--muted); }
.tile .left {
  position: absolute;
  top: 4px; right: 6px;
  font-size: 9.5px;
  color: var(--blue);
  background: var(--blue-tint);
  padding: 1px 6px;
  border-radius: 99px;
}

.tile-picked { border-color: var(--blue); }

.pos-cart {
  position: relative;
  display: flex;
  flex-direction: column;
  border-left: 1px solid #ececec;
  background: #fafafa;
  border-radius: 0 0 20px 0;
}

.cart-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  padding: 14px 14px 8px;
  font-weight: 500;
}
.cart-item b { color: var(--blue); font-weight: 600; }

.cart-mods {
  margin: 0 12px 10px;
  padding: 6px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #eee;
}

.mod {
  display: flex;
  justify-content: space-between;
  padding: 5px 8px;
  border-radius: 6px;
  color: var(--muted);
  transition: background-color .4s, color .4s, transform .4s var(--ease);
}

.cart-total { padding: 12px 14px; border-top: 1px solid #eee; border-bottom: 1px solid #eee; background: #f3f3f3; }
.cart-total p { display: flex; justify-content: space-between; }
.cart-total p:first-child { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.cart-total .muted { font-size: 11px; }

.cart-fields { margin-top: auto; }
.cart-fields p {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-top: 1px solid #eee;
  transition: background-color .4s;
}
.tick { color: var(--green); margin-right: 4px; }
.filled { color: var(--blue); font-weight: 600; opacity: 0; transition: opacity .4s; }

.cart-pay {
  display: flex;
  justify-content: space-between;
  margin: 10px 12px 12px;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--blue-deep);
  color: #fff;
  font-size: 13px;
}

/* focus states driven by the feature list */
.pos[data-focus="campaign"] .mod-campaign,
.pos[data-focus="warranty"] .mod-warranty,
.pos[data-focus="tradein"] .mod-tradein {
  background: #fff1e8;
  color: var(--ink);
  font-weight: 600;
  transform: translateX(-2px);
  box-shadow: inset 3px 0 0 var(--orange);
}

.pos[data-focus="customer"] .field-customer,
.pos[data-focus="vehicle"] .field-vehicle { background: var(--blue-tint); }

.pos[data-focus="customer"] .field-customer .filled,
.pos[data-focus="vehicle"] .field-vehicle .filled { opacity: 1; }

.pos[data-focus="vehicle"] .tile-suggest { border-color: var(--orange); background: #fff8f3; }

.pop {
  position: absolute;
  right: calc(100% - 26px);
  bottom: 70px;
  width: 270px;
  padding: 16px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 30px 60px -20px rgba(16, 16, 20, .35), 0 0 0 1px rgba(16, 16, 20, .05);
  font-size: 12.5px;
  opacity: 0;
  transform: translateY(10px) scale(.97);
  pointer-events: none;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}

.pos[data-focus="customer"] .pop-customer,
.pos[data-focus="vehicle"] .pop-vehicle { opacity: 1; transform: none; }

.pop-head { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; line-height: 1.3; }
.pop-head strong { font-size: 15px; display: block; }
.pop-head small { color: var(--muted); }
.pop-avatar {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--soft);
  display: grid; place-items: center;
  font-weight: 700;
  color: var(--ink-2);
}
.pop-car { background: var(--blue-tint); color: var(--blue); }
.pop-label { font-weight: 600; margin-bottom: 4px; }
.pop-list li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid #f0f0f0; }
.pop-list li span:first-child { color: var(--muted); }
.pop-suggest span:last-child { color: var(--orange); font-weight: 600; }

/* feature list */
.features { display: grid; gap: 4px; }

.feature {
  position: relative;
  display: grid;
  gap: 6px;
  text-align: left;
  background: none;
  border: 0;
  border-top: 1px solid var(--line);
  padding: 20px 4px 22px;
  cursor: pointer;
  overflow: hidden;
}

.feature-title { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; color: #9a9aa3; transition: color .3s; }
.feature-text {
  color: var(--muted);
  font-size: 16px;
  max-height: 0;
  opacity: 0;
  transition: max-height .5s var(--ease), opacity .4s;
}

.feature:hover .feature-title { color: var(--ink-2); }
.feature.on .feature-title { color: var(--ink); }
.feature.on .feature-text { max-height: 140px; opacity: 1; }

.feature-bar {
  position: absolute;
  left: 0; top: -1px;
  height: 2px;
  width: 0;
  background: var(--blue);
}

.feature.on .feature-bar { width: 100%; transition: width .4s var(--ease); }
.features.autoplay .feature.on .feature-bar { animation: progress 5s linear forwards; }

@keyframes progress { from { width: 0; } to { width: 100%; } }

/* ==========================================================================
   Digital receipt
   ========================================================================== */

.receipt-section { background: var(--soft); }

.receipt-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 72px;
  align-items: center;
}

.receipt-visual { position: relative; padding-right: 80px; }
.receipt-visual > img { border-radius: 24px; width: 100%; height: auto; aspect-ratio: 4 / 3.3; object-fit: cover; object-position: 20% 30%; }

.paid {
  position: absolute;
  right: 0;
  top: 50%;
  translate: 0 -50%;
  width: 268px;
  padding: 24px 22px 18px;
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 40px 60px -30px rgba(16, 16, 20, .45);
  text-align: center;
  font-size: 13px;
}

.paid-check { width: 46px; height: 46px; margin: 0 auto 10px; }
.paid-check circle { fill: #22b45a; }
.paid-check path {
  fill: none;
  stroke: #fff;
  stroke-width: 4.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
}

.in .paid-check path { animation: draw .5s var(--ease) .8s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.paid-title { font-weight: 600; font-size: 16px; margin-bottom: 14px; }
.paid-rows { border-top: 1px solid #eee; border-bottom: 1px solid #eee; padding: 10px 0; margin-bottom: 16px; }
.paid-rows p { display: flex; justify-content: space-between; color: var(--muted); }
.paid-rows p span:last-child { color: var(--ink); }
.paid .qr { width: 104px; height: 104px; margin: 0 auto 8px; }
.paid-qr-label { font-size: 12px; margin-bottom: 16px; }

.paid-foot { display: flex; align-items: center; gap: 6px; padding-top: 14px; border-top: 1px solid #eee; font-size: 11.5px; }
.chip { width: 30px; height: 30px; border-radius: 50%; border: 1px solid #e6e6e6; display: grid; place-items: center; }
.chip-wa { color: #25d366; }
.chip-mail { color: var(--orange); }
.paid-print { margin-left: auto; background: var(--blue-deep); color: #fff; padding: 8px 12px; border-radius: 8px; font-weight: 600; }

.receipt-copy h2 { margin-bottom: 22px; }

/* ==========================================================================
   Reports
   ========================================================================== */

.reports { overflow: hidden; }

.reports-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  align-items: center;
}

.reports h2 { margin-bottom: 36px; max-width: 11em; }

.checks { display: grid; gap: 4px; }

.checks li {
  position: relative;
  padding: 14px 0 14px 42px;
  font-size: 19px;
  border-bottom: 1px solid var(--line);
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0; top: 17px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--blue-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' fill='none' stroke='%231f1fe0' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}

.reports-visual { margin-right: -120px; }
.reports-visual img {
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;
  -webkit-mask: linear-gradient(90deg, transparent, #000 8%), linear-gradient(0deg, transparent, #000 8%);
  -webkit-mask-composite: source-in;
  mask: linear-gradient(90deg, transparent, #000 8%), linear-gradient(0deg, transparent, #000 8%);
  mask-composite: intersect;
}

/* ==========================================================================
   Hardware
   ========================================================================== */

.hardware { padding-top: 40px; }

.hw-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.hw-grid li {
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: 40px 20px 32px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 18px;
  text-align: center;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}

.hw-grid li:hover { transform: translateY(-6px); box-shadow: 0 30px 40px -30px rgba(16, 16, 20, .35); }
.hw-grid img { height: 140px; width: auto; object-fit: contain; mix-blend-mode: multiply; transition: transform .5s var(--ease); }
.hw-grid li:hover img { transform: scale(1.05) rotate(-2deg); }

/* ==========================================================================
   Demo / contact
   ========================================================================== */

.demo { padding-bottom: 140px; }

.demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.demo h2 { margin-bottom: 22px; }
.demo .lead { margin-bottom: 26px; color: var(--ink-2); }
.demo .lead strong { color: var(--ink); }
.demo-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.inline-logo {
  display: inline-block;
  height: .74em;
  width: auto;
  vertical-align: -0.04em;
}

.contact { margin-top: 56px; display: grid; gap: 22px; max-width: 30em; }
.contact dt { font-weight: 600; font-size: 15px; margin-bottom: 2px; }
.contact dd { color: var(--muted); font-size: 16px; }
.contact a { text-decoration-color: var(--line); text-underline-offset: 3px; }
.contact a:hover { color: var(--blue); }

.demo-photo img {
  width: 100%;
  height: auto;
  border-radius: 120px 0 120px 0;
  aspect-ratio: 4 / 4.4;
  object-fit: cover;
}

/* ---------- Floating WhatsApp ---------- */

.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 0;
  height: 60px;
  padding: 0 15px;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  box-shadow: 0 14px 30px -10px rgba(10, 80, 40, .55);
  animation: wa-in .6s cubic-bezier(.3, 1.5, .5, 1) 1.2s backwards;
  transition: gap .3s var(--ease), padding .3s var(--ease), background-color .2s;
}

.wa-float::before { /* soft pulse ring */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, .55);
  animation: wa-pulse 2.6s ease-out 2s infinite;
}

.wa-float-label {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: max-width .35s var(--ease);
}

.wa-float:hover { background: #1ebe5a; gap: 10px; padding: 0 22px 0 16px; }
.wa-float:hover .wa-float-label { max-width: 160px; }

@keyframes wa-in { from { transform: scale(0) rotate(-20deg); opacity: 0; } }
@keyframes wa-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .5); }
  70%, 100% { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0); }
}

/* ---------- Footer ---------- */

.footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: 14px; color: var(--muted); }
.footer-inner { display: flex; align-items: center; gap: 24px; }
.footer-inner p { margin-right: auto; }
.footer-links { display: flex; gap: 20px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--ink); }

/* Plain pages (privacy, error) */
.page-plain { padding: 80px 0 120px; }
.page-plain h1 { font-size: 44px; margin-bottom: 20px; }

/* ==========================================================================
   Checkout
   ========================================================================== */

.checkout-hero { padding: 64px 0 48px; }
.checkout-hero h1 { font-size: clamp(38px, 5.4vw, 66px); margin-bottom: 22px; max-width: 14em; }
html[data-lang="zh"] .checkout-hero h1 { font-size: clamp(32px, 4.6vw, 56px); }

.checkout { padding-bottom: 140px; }

.checkout-form {
  display: grid;
  grid-template-columns: 1fr 390px;
  gap: 32px;
  align-items: start;
}

/* [hidden] loses to the display:grid above at equal specificity. */
.checkout-form[hidden] { display: none; }

.checkout-main { display: grid; gap: 24px; min-width: 0; }

.checkout-block {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.checkout-block-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 28px; }
.checkout-block-head h2 { font-size: 24px; letter-spacing: -0.02em; }
.checkout-block-head p { color: var(--muted); font-size: 15px; margin-top: 2px; }

.checkout-block-num {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--blue-tint);
  color: var(--blue);
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 600;
}

/* ---------- Fields ---------- */

.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.field-optional { font-style: normal; font-weight: 400; color: var(--muted); }

.field input {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}

.field input::placeholder { color: #a6a5ad; }
.field input:hover { border-color: #cfccc4; }
.field input:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 4px var(--blue-tint);
}

/* visibility (not display) keeps the line reserved, so an error appearing
   never shifts the fields below it. */
.field-error { display: block; visibility: hidden; min-height: 1.5em; font-size: 13px; color: #c62828; }
.field.is-invalid input { border-color: #c62828; }
.field.is-invalid .field-error { visibility: visible; }

/* Phone country picker (intl-tel-input) */
.iti {
  display: block;
  width: 100%;
  --iti-border-color: var(--line);
  --iti-dialcode-color: var(--ink-2);
  --iti-arrow-color: var(--muted);
  --iti-hover-color: var(--blue-tint);
  --iti-spacer-horizontal: 10px;
}

.iti__selected-country { border-radius: 12px 0 0 12px; }
.iti__selected-country-primary { padding: 0 6px 0 14px; }
.iti .iti__selected-dial-code { font-size: 16px; }

.iti__dropdown-content {
  border: 1.5px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 50px -24px rgba(16, 16, 20, .35);
}

.field .iti__search-input {
  height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 0;
  background: var(--white);
  font: inherit;
  font-size: 15px;
  box-shadow: none;
}

.iti--inline-dropdown .iti__country-list { max-height: 260px; }
.iti__country { padding: 9px 12px; font-size: 15px; }
.iti__country.iti__highlight { background-color: var(--blue-tint); }
.iti__dial-code { color: var(--muted); }

.stepper { display: flex; gap: 8px; }
.stepper input { text-align: center; font-weight: 600; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button,
.stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

.stepper-btn {
  flex: none;
  width: 50px;
  height: 50px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: border-color .2s, background-color .2s;
}

.stepper-btn:hover { border-color: var(--ink); }
.stepper-btn:active { background: var(--soft); }

/* ---------- Terms checkbox ---------- */

.terms-field { margin-top: 10px; }

.checkbox-field {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  font-size: 15px;
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color .2s, background-color .2s;
}

.checkbox-field:hover { border-color: #cfccc4; }
.checkbox-field:has(input:checked) { border-color: var(--blue); background: var(--blue-tint); }
.checkbox-field:has(input:focus-visible) { outline: 2.5px solid var(--blue); outline-offset: 3px; }
.checkbox-field input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.checkbox-field a { color: var(--blue); text-underline-offset: 3px; }

.checkbox-box {
  flex: none;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border: 1.5px solid #c4c2ba;
  border-radius: 6px;
  background: var(--white);
  color: #fff;
  transition: background-color .2s, border-color .2s;
}

.checkbox-box svg { opacity: 0; transform: scale(.6); transition: opacity .2s, transform .25s var(--ease); }
.checkbox-field input:checked + .checkbox-box { background: var(--blue); border-color: var(--blue); }
.checkbox-field input:checked + .checkbox-box svg { opacity: 1; transform: none; }

.terms-field .field-error { margin-top: 6px; }
.terms-field.is-invalid .field-error { visibility: visible; }
.terms-field.is-invalid .checkbox-field,
.terms-field.is-invalid .checkbox-box { border-color: #c62828; }

/* ---------- Summary ---------- */

.checkout-summary { position: sticky; top: 92px; }

.summary-card {
  padding: 32px;
  border-radius: 24px;
  background: var(--white);
  border: 1.5px solid var(--blue);
  box-shadow: 0 40px 70px -46px rgba(31, 31, 224, .55);
}

.summary-card .kicker { margin-bottom: 12px; }

.summary-plan { padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.summary-plan h3 { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.summary-rate { margin-top: 4px; color: var(--muted); font-size: 15px; }

.trial-badge {
  display: inline-block;
  vertical-align: middle;
  margin-left: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e6f4ea;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

.summary-feats { display: grid; gap: 9px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.summary-feats li { position: relative; padding-left: 26px; font-size: 15px; color: var(--ink-2); }
.summary-feats li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .42em;
  width: 11px;
  height: 6px;
  border-left: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(-45deg);
}

.summary-lines { padding: 16px 0 10px; font-size: 15px; color: var(--muted); }
.summary-lines { display: grid; gap: 6px; }
.summary-lines p { display: flex; justify-content: space-between; gap: 12px; }
.summary-lines b { color: var(--ink); font-weight: 600; }

.summary-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-weight: 600; }
.summary-total b { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; color: var(--blue); }

.summary-promo { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }

.summary-submit { width: 100%; justify-content: center; margin-top: 22px; }
.summary-submit[disabled] { cursor: progress; opacity: .8; transform: none; }
.summary-submit[aria-busy="true"] svg { display: none; }

.btn-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

.summary-submit[aria-busy="true"] .btn-spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

.checkout-form[aria-busy="true"] .checkout-main,
.checkout-form[aria-busy="true"] .summary-promo { pointer-events: none; opacity: .55; transition: opacity .3s; }

.summary-error {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fdecea;
  color: #b71c1c;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.summary-fine { margin-top: 14px; font-size: 13px; color: var(--muted); text-align: center; }

/* ---------- Confirmation ---------- */

.checkout-done {
  max-width: 600px;
  margin: 0 auto;
  padding: 56px 40px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
}

.checkout-done:focus { outline: none; }

.checkout-done-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: #22b45a;
  color: #fff;
  box-shadow: 0 16px 34px -14px rgba(24, 128, 56, .7);
}

.checkout-done h1,
.checkout-done h2 { font-size: clamp(28px, 3.4vw, 38px); line-height: 1.1; margin-bottom: 14px; }
.checkout-done p + p { margin-top: 10px; }

.checkout-done-icon-blue { background: var(--blue); box-shadow: 0 16px 34px -14px rgba(31, 31, 224, .7); }
.checkout-done-icon-error { background: #c62828; box-shadow: 0 16px 34px -14px rgba(198, 40, 40, .6); }

/* Verify email page: the card sits on its own, with no hero above it. */
.checkout-verify { padding: 96px 0 140px; }

.verify-progress { width: min(360px, 100%); margin: 26px auto 0; text-align: left; }
.verify-progress[hidden] { display: none; }
.verify-progress-bar { height: 6px; border-radius: 6px; background: var(--soft); overflow: hidden; }
.verify-progress-bar i { display: block; height: 100%; width: 0; background: var(--blue); transition: width .25s linear; }
.verify-progress-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--muted);
}

.btn[aria-busy="true"] { cursor: progress; opacity: .8; }
.checkout-done p { color: var(--ink-2); }
.checkout-done strong { color: var(--ink); overflow-wrap: anywhere; }
.checkout-done .checkout-done-hint { margin-top: 12px; font-size: 14.5px; color: var(--muted); }
.checkout-done-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }

@media (max-width: 960px) {
  .checkout-form { grid-template-columns: 1fr; }
  .checkout-summary { position: static; }
}

@media (max-width: 640px) {
  .checkout-hero { padding: 40px 0 32px; }
  .checkout { padding-bottom: 100px; }
  .checkout-block { padding: 24px 18px; }
  .checkout-block-head { gap: 12px; margin-bottom: 22px; }
  .field-grid { grid-template-columns: 1fr; }
  .summary-card { padding: 26px 20px; }
  .checkout-done { padding: 44px 20px; }
  .checkout-verify { padding: 48px 0 100px; }
  .checkout-done-actions .btn { flex: 1 1 100%; justify-content: center; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1100px) {
  .pos-body { grid-template-columns: 1fr 240px; }
  .pos-brands { display: none; }
  .reports-visual { margin-right: -28px; }
}

@media (max-width: 960px) {
  .section { padding: 88px 0; }
  .nav-links { display: none; }

  .hero { padding-top: 32px; }
  .hero-grid,
  .why-grid,
  .auto-grid,
  .warranty-grid,
  .pos-grid,
  .receipt-grid,
  .reports-grid,
  .demo-grid { grid-template-columns: 1fr; gap: 48px; }

  .hero-grid { min-height: 0; }
  .hero-visual { padding-bottom: 20px; }

  .first-choice { grid-template-columns: 1fr; gap: 0; margin-top: 72px; }

  .old-flow { grid-template-columns: 1fr; }
  .old-branches { padding-left: 0; }
  .old-branches::before, .old-branches::after { display: none; }

  .warranty-copy { padding-bottom: 0; }
  .warranty-visual { min-height: 520px; }
  .warranty-photo { right: -28px; }

  .receipt-visual { padding-right: 0; padding-bottom: 260px; }
  .paid { top: auto; bottom: 0; translate: 0; right: 20px; }

  .reports-visual { margin-right: 0; }

  .hw-grid { grid-template-columns: repeat(2, 1fr); }

  .demo-photo { order: -1; }
}

@media (max-width: 760px) {
  .pos-body { grid-template-columns: 1fr; min-height: 0; }
  .pos-products { display: none; }
  .pos-cart { border-left: 0; border-radius: 0 0 20px 20px; min-height: 420px; }
  .pop { right: 12px; left: 12px; width: auto; bottom: 120px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .section { padding: 72px 0; }
  .nav-inner { gap: 12px; height: 60px; }
  .nav-logo img { width: 96px; }
  .nav-actions { gap: 8px; }
  .lang-switch button { padding: 5px 7px; }
  .nav-actions .btn-sm { padding: 0 14px; height: 36px; font-size: 13.5px; }

  .hero-cta .btn { flex: 1 1 auto; justify-content: center; }
  .printer { width: 290px; }
  .notif { width: 260px; }

  .vs-grid { grid-template-columns: 1fr; gap: 14px; }
  .vs-mark { justify-self: center; width: 76px; height: 76px; font-size: 38px; }
  .place { padding: 16px; }
  .place-photo { width: 84px; height: 84px; }

  .seo-banner { padding: 72px 18px 64px; border-radius: 20px; }
  .big-stars { font-size: 36px; }

  .search { padding: 14px; border-radius: 20px; }
  .search-bar { font-size: 15px; padding: 0 16px; }

  .old-row { grid-template-columns: 1fr; }
  .old-arrow { transform: rotate(90deg); justify-self: center; }

  .phone { border-width: 8px; border-radius: 34px; }

  .warranty { padding-top: 80px; }
  .warranty-visual { min-height: 480px; }
  .warranty-visual { min-height: 0; display: flex; flex-direction: column; }
  .warranty-photo { position: relative; right: auto; width: 82%; margin: 0 -16px 0 auto; }
  .bubble-float { position: relative; bottom: auto; width: 82%; font-size: 14px; z-index: 2; margin: -110px 0 28px; }

  .receipt-visual { padding-bottom: 300px; }
  .paid { right: 50%; translate: 50% 0; }

  .checks li { font-size: 17px; }

  .hw-grid { gap: 12px; }
  .hw-grid li { padding: 26px 12px 22px; font-size: 15px; }
  .hw-grid img { height: 96px; }

  .demo-cta .btn { flex: 1 1 100%; justify-content: center; padding: 0 20px; font-size: 17px; }
  .demo-photo img { border-radius: 72px 0 72px 0; }
  .wa-float { right: 16px; bottom: 16px; height: 56px; padding: 0 13px; }
  .footer-inner { flex-wrap: wrap; gap: 10px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .receipt-move { transform: none; }
}
