/* ============================================================================
 * EVCNX Carrent — page styles (implements "EVCNX Carrent v4" from Claude Design)
 * ========================================================================== */

html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ev-paper);
  font-family: var(--font-thai);
  color: var(--color-body-color);
  overflow-x: hidden;
}
body.modal-open { overflow: hidden; }
a { color: var(--ev-green); text-decoration: none; }
a:hover { color: var(--ev-ink); }
button { font: inherit; }

/* --- Keyframes ------------------------------------------------------------ */
@keyframes evUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes evIn { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
@keyframes evFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes evFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes evCharge { 0% { width: 20%; } 70% { width: 85%; } 100% { width: 85%; } }
@keyframes evRoad { from { background-position: 0 0; } to { background-position: -160px 0; } }
@keyframes evMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes evPulse { 0% { box-shadow: 0 0 0 0 rgba(6, 199, 85, .55); } 100% { box-shadow: 0 0 0 18px rgba(6, 199, 85, 0); } }
@keyframes evSpin { to { transform: rotate(360deg); } }
@keyframes evGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes evGrowY { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* Scroll-linked reveal. Browsers without scroll timelines run the 0s
   animation straight to its end state, so content is always visible. */
.reveal {
  animation: evUp linear both;
  animation-timeline: view();
  animation-range: var(--range, entry 0% entry 70%);
}
.reveal-in {
  animation: evIn linear both;
  animation-timeline: view();
  animation-range: var(--range, entry 0% entry 60%);
}

.page { min-height: 100dvh; display: flex; flex-direction: column; font-family: var(--font-thai); }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.num { font-family: var(--font-body); }
.desktop-only { display: none !important; }
@media (min-width: 1040px) { .desktop-only { display: flex !important; } }

/* --- Design-system components (Button / Input / Alert) -------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 16px;
  font-size: var(--text-body); font-family: var(--font-body); font-weight: 500; line-height: 1;
  white-space: nowrap; border-radius: var(--radius); border: 1px solid transparent;
  color: #fff; background: var(--color-primary);
  cursor: pointer; user-select: none; text-decoration: none; box-sizing: border-box;
  transition: background-color .15s ease, border-color .15s ease;
}
.btn:hover { background: var(--color-primary-hover); color: #fff; }
.btn--sm { min-height: 40px; padding: 0 12px; font-size: var(--text-xs); }
.btn--lg { min-height: 48px; padding: 0 20px; font-size: var(--text-md); }
.btn--block { width: 100%; }
.btn--outline { background: var(--color-card); color: var(--color-body-color); border-color: var(--color-border); }
.btn--outline:hover { background: var(--color-default-100); color: var(--color-body-color); }

.input {
  display: block; width: 100%; min-height: 44px; padding: 0 12px;
  font-size: 16px; font-family: var(--font-body); color: var(--color-body-color);
  background: var(--color-card); border: 1px solid var(--color-border); border-radius: var(--radius);
  outline: none; box-sizing: border-box; transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(69, 87, 163, .20); }
.input:focus-visible { outline: none; }

.alert {
  display: flex; gap: 12px; padding: 16px; border-radius: var(--radius);
  border: 1px solid rgba(69, 87, 163, .30); background: rgba(69, 87, 163, .08);
}
.alert__icon { flex-shrink: 0; margin-top: 1px; color: var(--color-primary); display: inline-flex; }
.alert__body { min-width: 0; flex: 1; font-size: var(--text-xs); color: var(--color-default-600); }

/* --- Image slots ---------------------------------------------------------- */
.photo {
  position: relative; display: block; width: 100%; height: 100%;
  font: 13px/1.3 system-ui, -apple-system, sans-serif;
}
.photo--abs { position: absolute; inset: 0; }
.photo__frame { position: absolute; inset: 0; overflow: hidden; background: rgba(127, 127, 127, .08); border-radius: inherit; }
.photo__frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo__empty {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; text-align: center; padding: 12px; box-sizing: border-box;
}
.photo__empty svg { opacity: .45; }
.photo__cap { max-width: 90%; font-weight: 500; letter-spacing: .01em; opacity: .75; }
.photo__ring { position: absolute; inset: 0; pointer-events: none; border: 1.5px dashed currentColor; opacity: .35; border-radius: inherit; }
.photo.is-filled .photo__ring, .photo.is-filled .photo__empty { display: none; }

/* --- Announcement bar & header -------------------------------------------- */
.topbar {
  background: var(--ev-ink-deep); color: var(--ev-gold-light);
  font-size: 12px; font-weight: 500; letter-spacing: .12em; text-align: center;
  padding: 9px 16px; border-bottom: 1px solid rgba(200, 169, 106, .2);
}
.header { position: sticky; top: 0; z-index: 20; background: var(--ev-ink); border-bottom: 1px solid rgba(255, 255, 255, .12); }
.header__inner { max-width: 1200px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__mark {
  position: relative; width: 36px; height: 36px; border-radius: var(--radius);
  border: 1px solid var(--ev-gold); color: var(--ev-gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-body); font-weight: 600; font-size: 15px; overflow: hidden; box-sizing: border-box;
}
.brand__mark span { position: relative; z-index: 1; }
.brand__charge { position: absolute; left: 0; bottom: 0; height: 4px; background: var(--ev-gold-light); animation: evCharge 3s ease-in-out infinite; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--font-body); font-weight: 700; font-size: 17px; color: #fff; }
.brand__tag { font-size: 11px; color: var(--ev-gold-light); }
.nav { gap: 22px; font-size: 14px; margin-left: auto; }
.nav a { color: #fff; }
.nav a:hover { color: var(--ev-gold-light); }
.header__actions { margin-left: auto; display: flex; gap: 8px; }
.pill-btn {
  min-height: 40px; padding: 0 14px; display: inline-flex; align-items: center; gap: 8px;
  border-radius: var(--radius-full); font-size: 14px; font-weight: 600; text-decoration: none; box-sizing: border-box;
}
.pill-btn--ghost { border: 1px solid rgba(255, 255, 255, .4); color: #fff; }
.pill-btn--ghost:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.pill-btn--line { padding: 0 16px; background: var(--ev-line); color: #fff; }
.pill-btn--line:hover { color: #fff; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: evPulse 1.8s ease-out infinite; }

/* --- Hero ----------------------------------------------------------------- */
.hero { position: relative; background: var(--ev-ink); color: #fff; overflow: hidden; }
.hero__ring { position: absolute; border-radius: 50%; }
.hero__ring--a { right: -180px; top: -180px; width: 560px; height: 560px; border: 1px solid rgba(200, 169, 106, .18); animation: evSpin 60s linear infinite; }
.hero__ring--b { right: -80px; top: -80px; width: 360px; height: 360px; border: 1px dashed rgba(200, 169, 106, .22); animation: evSpin 40s linear infinite reverse; }
.hero__grid {
  position: relative; max-width: 1200px; margin: 0 auto; padding: 60px 20px 150px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 48px; align-items: center;
}
.hero__copy { display: flex; flex-direction: column; gap: 22px; }
.hero__chips { display: flex; gap: 8px; flex-wrap: wrap; animation: evUp .7s cubic-bezier(.2, .7, .2, 1) both; }
.hero__chip { padding: 6px 14px; border-radius: var(--radius-full); border: 1px solid rgba(200, 169, 106, .45); font-size: 12px; letter-spacing: .08em; color: var(--ev-gold-light); }
.hero__title {
  margin: 0; font-size: clamp(40px, 5.8vw, 72px); line-height: 1.12; font-weight: 500; letter-spacing: -0.015em;
  text-wrap: balance; animation: evUp .8s .1s cubic-bezier(.2, .7, .2, 1) both;
}
.hero__title em { font-style: normal; color: var(--ev-gold); }
.hero__lead {
  margin: 0; font-size: 18px; line-height: 1.65; color: var(--ev-cream); max-width: 540px; text-wrap: pretty;
  animation: evUp .8s .2s cubic-bezier(.2, .7, .2, 1) both;
}
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; animation: evUp .8s .3s cubic-bezier(.2, .7, .2, 1) both; }
.cta {
  min-height: 52px; padding: 0 26px; display: inline-flex; align-items: center; gap: 10px;
  border-radius: var(--radius); font-size: 16px; font-weight: 600; text-decoration: none; box-sizing: border-box;
}
.cta--gold { background: var(--ev-gold); color: var(--ev-ink); transition: transform .2s ease, background-color .2s ease; }
.cta--gold:hover { transform: translateX(4px); color: var(--ev-ink); background: var(--ev-gold-light); }
.cta--line { background: var(--ev-line); color: #fff; animation: evPulse 2.2s ease-out infinite; }
.cta--line:hover { color: #fff; }
.hero__visual { position: relative; animation: evIn 1s .25s cubic-bezier(.2, .7, .2, 1) both; }
.hero__photo { position: relative; aspect-ratio: 5 / 4; width: 100%; border-radius: 18px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .15); background: var(--ev-ink-soft); }
.float-card { position: absolute; border-radius: var(--radius); box-shadow: 0 12px 32px rgba(0, 0, 0, .22); display: flex; flex-direction: column; }
.float-card--battery {
  left: -18px; bottom: 28px; background: #fff; color: var(--color-default-900); padding: 14px 16px; gap: 8px; min-width: 210px;
  animation: evFloat 5s ease-in-out infinite;
}
.float-card--battery .row { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.float-card--battery strong { font-weight: 600; }
.float-card--battery .ok { color: var(--ev-green); font-weight: 700; }
.bar { height: 10px; border-radius: var(--radius-full); background: var(--ev-cream); overflow: hidden; }
.bar__fill { height: 100%; border-radius: var(--radius-full); background: var(--ev-green); animation: evCharge 3.2s ease-in-out infinite; }
.float-card--price {
  right: -12px; top: 24px; background: var(--ev-ink); color: #fff; border: 1px solid rgba(200, 169, 106, .5);
  padding: 12px 16px; gap: 2px; animation: evFloat 6s 1s ease-in-out infinite;
}
.float-card--price small { font-size: 12px; color: var(--ev-cream); }
.float-card--price b { font-family: var(--font-body); font-size: 22px; font-weight: 700; }
.float-card--price b span { font-size: 13px; font-weight: 400; }
.hero__road {
  position: absolute; left: 0; right: 0; bottom: 44px; height: 1px;
  background-image: repeating-linear-gradient(90deg, rgba(200, 169, 106, .55) 0 60px, transparent 60px 160px);
  animation: evRoad 1.2s linear infinite;
}

/* --- Booking bar ---------------------------------------------------------- */
.booking { position: relative; z-index: 2; max-width: 1200px; margin: -96px auto 0; padding: 0 20px; }
.booking__card {
  background: #fff; border-radius: 16px; box-shadow: 0 20px 50px rgba(12, 26, 21, .16); padding: 22px;
  display: flex; flex-direction: column; gap: 18px; animation: evUp .8s .45s cubic-bezier(.2, .7, .2, 1) both;
}
.booking__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.tabs { display: flex; gap: 4px; padding: 4px; background: var(--ev-paper); border-radius: var(--radius-full); flex-wrap: wrap; }
.tab {
  min-height: 44px; padding: 0 18px; border-radius: var(--radius-full); border: 0; background: transparent;
  color: var(--color-default-800); font-family: var(--font-thai); font-size: 15px; font-weight: 600; cursor: pointer;
  transition: background-color .25s ease, color .25s ease;
}
.tab.is-active { background: var(--ev-green); color: #fff; box-shadow: 0 4px 12px rgba(15, 107, 71, .3); }
.booking__days { font-size: 14px; color: var(--color-default-700); }
.booking__fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 12px; align-items: end; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; color: var(--color-default-800); }
.select {
  height: 44px; padding: 0 12px; border: 1px solid var(--color-border); border-radius: var(--radius); background: #fff;
  font-family: var(--font-thai); font-size: 16px; color: var(--color-body-color);
}
.booking__note {
  font-size: 13px; font-weight: 600; color: var(--ev-ink); background: var(--ev-cream); border-radius: var(--radius);
  padding: 10px 14px; animation: evFade .3s ease both;
}

/* --- Marquee -------------------------------------------------------------- */
.marquee { padding: 44px 0 0; overflow: hidden; }
.marquee__track { display: flex; width: max-content; animation: evMarquee 32s linear infinite; }
.marquee__item {
  display: flex; align-items: center; gap: 28px; padding-right: 28px;
  font-size: clamp(20px, 2.6vw, 30px); font-weight: 700; color: var(--ev-ink); white-space: nowrap;
}
.marquee__item i { width: 10px; height: 10px; border-radius: 50%; background: var(--ev-green); }

/* --- Section scaffolding -------------------------------------------------- */
.section { max-width: 1200px; margin: 0 auto; padding: 88px 20px 0; scroll-margin-top: 70px; }
.band { background: var(--ev-ink); color: #fff; scroll-margin-top: 70px; }
.band__inner { max-width: 1200px; margin: 0 auto; padding: 72px 20px; display: flex; flex-direction: column; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .18em; color: var(--ev-gold-dark); }
.eyebrow--gold { color: var(--ev-gold); }
.h2 { margin: 0; font-size: clamp(30px, 3.6vw, 44px); font-weight: 600; letter-spacing: -0.01em; color: var(--ev-ink); }
.band .h2 { color: #fff; }
.heading { display: flex; flex-direction: column; gap: 8px; }
.card { background: #fff; border: 1px solid var(--color-border); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.card--dark { background: var(--ev-ink); color: #fff; border-color: rgba(200, 169, 106, .35); }
.card__title { font-size: 18px; font-weight: 700; color: var(--color-default-900); }
.card--dark .card__title { color: #fff; }
.muted { color: var(--color-default-700); }
.small { font-size: 13px; line-height: 1.6; color: var(--color-default-700); }
.grid { display: grid; gap: 18px; }
.grid--340 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.grid--420 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }

/* Key/value rows */
.kv { display: flex; flex-direction: column; }
.kv__row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--color-border); font-size: 14px; }
.kv__row > :first-child { color: var(--color-default-700); }
.kv__row > :last-child { font-weight: 700; color: var(--ev-ink); white-space: nowrap; }
.kv__row .num { font-family: var(--font-body); }
.kv--dark .kv__row { padding: 11px 0; border-bottom-color: rgba(200, 169, 106, .25); }
.kv--dark .kv__row > :first-child, .kv--dark .kv__row > :last-child { color: #fff; }
.kv--tight .kv__row { padding: 9px 0; }
.kv__row > .is-free { color: var(--ev-green); }
.note-inherit { font-size: 13px; line-height: 1.6; }
.kv--wrap .kv__row > :last-child { white-space: normal; text-align: right; }

/* Two-column label tables */
.table { background: #fff; border: 1px solid var(--color-border); border-radius: 14px; overflow: hidden; }
.table__row {
  display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 13px 20px;
  border-bottom: 1px solid var(--color-border); font-size: 14px; line-height: 1.6; transition: background-color .2s ease;
}
.table--150 .table__row { grid-template-columns: 150px 1fr; }
.table--hover .table__row:hover { background-color: var(--ev-paper); }
.table__row > :first-child { font-weight: 700; color: var(--ev-ink); }
.table__row > :last-child { color: var(--color-default-700); }

.bullets { display: flex; flex-direction: column; gap: 10px; font-size: 14px; line-height: 1.6; color: var(--color-default-700); }
.bullets div { display: flex; gap: 10px; align-items: start; }
.bullets div::before { content: ''; flex: none; margin-top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--ev-green); }

/* --- USPs ----------------------------------------------------------------- */
.usps { margin-top: 56px; }
.usps .band__inner { gap: 36px; }
.usps .h2 { max-width: 640px; text-wrap: balance; }
.usp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.usp {
  border: 1px solid rgba(200, 169, 106, .25); border-radius: 14px; padding: 24px; display: flex; gap: 16px; align-items: start;
  transition: background-color .3s ease, transform .3s ease;
}
.usp:hover { background-color: rgba(255, 255, 255, .06); transform: translateY(-4px); }
.usp__n {
  flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--ev-gold); color: var(--ev-gold);
  display: flex; align-items: center; justify-content: center; font-family: var(--font-body); font-weight: 400; font-size: 17px; box-sizing: border-box;
}
.usp__body { display: flex; flex-direction: column; gap: 6px; }
.usp__title { font-size: 19px; font-weight: 700; }
.usp__text { font-size: 15px; line-height: 1.6; color: var(--ev-cream); }

/* --- Cars ----------------------------------------------------------------- */
.cars__head { display: flex; flex-direction: column; gap: 18px; margin-bottom: 24px; }
.cars__head p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--color-default-700); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.chips__label { font-size: 13px; font-weight: 600; color: var(--color-default-700); margin-right: 4px; }
.chip {
  min-height: 40px; padding: 0 16px; border-radius: var(--radius-full); border: 1px solid var(--color-border);
  background: #fff; color: var(--color-default-800); font-family: var(--font-thai); font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all .2s ease;
}
.chip.is-active { background: var(--ev-green); color: #fff; border-color: var(--ev-green); }
.chip--brand { min-height: 36px; padding: 0 14px; font-family: var(--font-body); letter-spacing: .02em; }
.car-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 18px; }
.car {
  background: #fff; border: 1px solid var(--color-border); border-radius: 14px; box-shadow: 0 1px 4px rgba(130, 143, 163, .15);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s ease;
  animation: evUp .6s var(--delay, 0s) cubic-bezier(.2, .7, .2, 1) both;
}
.car:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(12, 26, 21, .14); }
.car__media { position: relative; aspect-ratio: 16 / 10; background: var(--ev-cream); }
.car__badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; pointer-events: none; flex-wrap: wrap; }
.badge { padding: 4px 10px; border-radius: var(--radius-full); font-size: 12px; font-weight: 600; background: #fff; color: var(--ev-ink); }
.badge--new { background: var(--ev-gold); font-weight: 700; }
.badge--best { background: var(--ev-green); color: #fff; font-weight: 700; }
.car__body { padding: 18px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.car__names { display: flex; flex-direction: column; gap: 2px; }
.car__brand { font-size: 12px; font-weight: 600; letter-spacing: .06em; color: var(--ev-green); }
.car__name { font-family: var(--font-body); font-weight: 700; font-size: 19px; color: var(--color-default-900); }
.car__short {
  font-size: 13px; line-height: 1.55; color: var(--color-default-700);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.car__specs { display: flex; flex-direction: column; gap: 6px; }
.car__spec { display: flex; justify-content: space-between; font-size: 13px; color: var(--color-default-700); }
.car__spec b { font-weight: 600; color: var(--color-default-900); }
.range { height: 6px; border-radius: var(--radius-full); background: var(--ev-cream); overflow: hidden; }
.range__fill { height: 100%; background: var(--ev-green); border-radius: var(--radius-full); transform-origin: left; animation: evGrow 1s .3s cubic-bezier(.2, .7, .2, 1) both; }
.car__price { display: flex; align-items: baseline; gap: 6px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--color-border); flex-wrap: wrap; }
.car__price b { font-family: var(--font-body); font-size: 28px; font-weight: 500; color: var(--ev-ink); }
.car__price span { font-size: 13px; color: var(--color-default-700); }
.car__price .total { margin-left: auto; }
.car__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.empty-state {
  padding: 40px 20px; text-align: center; background: #fff; border: 1px solid var(--color-border); border-radius: 14px;
  font-size: 15px; color: var(--color-default-700); animation: evFade .4s ease both;
}
.footnote { margin: 16px 0 0; font-size: 13px; line-height: 1.6; color: var(--color-default-700); }

/* --- Pricing -------------------------------------------------------------- */
.pricing { display: flex; flex-direction: column; gap: 24px; }
.stack6 { display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 1.6; color: var(--color-default-700); }
.time-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.time-cell { background: var(--ev-paper); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.time-cell b { font-family: var(--font-body); font-size: 20px; font-weight: 700; color: var(--ev-ink); }
.time-cell span { font-size: 13px; line-height: 1.5; color: var(--color-default-700); }
.card--gap14 { gap: 14px; }
.card--gap12 { gap: 12px; }

/* --- How to book ---------------------------------------------------------- */
.how { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 48px; }
.col { display: flex; flex-direction: column; gap: 24px; }
.steps { position: relative; display: flex; flex-direction: column; gap: 28px; }
.steps__line { position: absolute; left: 23px; top: 24px; bottom: 24px; width: 2px; background: var(--ev-gold-light); }
.steps__line--fill {
  background: var(--ev-green); transform-origin: top;
  animation: evGrowY linear both; animation-timeline: view(); animation-range: entry 20% cover 60%;
}
.step { position: relative; display: flex; gap: 20px; align-items: start; }
.step__n {
  flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--ev-green); color: #fff;
  display: flex; align-items: center; justify-content: center; font-family: var(--font-body); font-size: 18px; font-weight: 700;
  box-shadow: 0 0 0 6px var(--ev-paper);
}
.step__body { display: flex; flex-direction: column; gap: 4px; padding-top: 4px; }
.step__title { font-size: 18px; font-weight: 700; color: var(--color-default-900); }
.step__text { font-size: 15px; line-height: 1.65; color: var(--color-default-700); }
.docs { background: #fff; border: 1px solid var(--color-border); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.docs__title { font-size: 17px; font-weight: 700; color: var(--color-default-900); }
.docs__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; }
.doc { display: flex; gap: 10px; align-items: center; background: var(--ev-paper); border-radius: var(--radius); padding: 10px 12px; font-size: 14px; color: var(--color-default-800); }
.doc b {
  flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--ev-green); color: #fff;
  display: flex; align-items: center; justify-content: center; font-family: var(--font-body); font-size: 12px; font-weight: 700;
}

/* --- Pickup --------------------------------------------------------------- */
.dots { display: flex; flex-direction: column; gap: 14px; }
.dots div { display: flex; gap: 10px; align-items: center; font-size: 15px; }
.dots div::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ev-gold); }
.card--dark .note { margin-top: auto; font-size: 13px; line-height: 1.6; color: var(--ev-cream); }

/* --- Branches ------------------------------------------------------------- */
.branch-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 18px; }
.branch {
  position: relative; border-radius: 16px; overflow: hidden; min-height: 360px; display: flex; flex-direction: column; justify-content: end;
  background: var(--ev-ink); outline: 3px solid transparent; outline-offset: 3px; color: var(--ev-cream);
  transition: outline-color .3s ease, transform .3s ease;
}
.branch:hover { transform: translateY(-4px); }
.branch.is-active { outline-color: var(--ev-green); }
.branch__card { position: relative; margin: 12px; background: #fff; border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.branch__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.branch__name { font-size: 20px; font-weight: 700; color: var(--color-default-900); }
.branch__tag { font-size: 12px; font-weight: 600; color: var(--ev-green); }
.branch__detail { font-size: 14px; line-height: 1.6; color: var(--color-default-700); }
.branch__contact { font-size: 14px; font-weight: 600; color: var(--color-default-900); }

/* --- EV guide ------------------------------------------------------------- */
.ev { margin-top: 88px; }
.ev .band__inner { gap: 32px; }
.battery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 14px; }
.battery { border: 1px solid rgba(200, 169, 106, .25); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.battery b { font-family: var(--font-body); font-size: 30px; font-weight: 700; color: var(--ev-gold); }
.battery span { font-size: 14px; line-height: 1.55; color: var(--ev-cream); }
.acdc { background: #fff; color: var(--color-default-900); border-radius: 14px; overflow: hidden; }
.acdc__row { display: grid; grid-template-columns: 100px 1fr 1fr; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--color-border); font-size: 14px; line-height: 1.5; }
.acdc__row--head { padding: 14px 18px; background: var(--ev-cream); font-weight: 700; color: var(--ev-ink); border-bottom: 0; }
.acdc__row:not(.acdc__row--head) > :first-child { font-weight: 600; }
.acdc__row:not(.acdc__row--head) > :not(:first-child) { color: var(--color-default-700); }
.tips { display: flex; flex-direction: column; gap: 12px; }
.tip { border: 1px solid rgba(200, 169, 106, .25); border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.tip b { font-size: 16px; font-weight: 700; }
.tip span { font-size: 14px; line-height: 1.6; color: var(--ev-cream); }
.map-link {
  align-self: start; min-height: 44px; padding: 0 18px; display: inline-flex; align-items: center; border-radius: var(--radius);
  background: #fff; color: var(--ev-ink); font-size: 14px; font-weight: 700; text-decoration: none;
}
.map-link:hover { color: var(--ev-ink); background: var(--ev-cream); }

/* --- Insurance & rules ---------------------------------------------------- */
.insurance { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 36px; }
.insurance .col { gap: 16px; }
.insurance p { margin: 0; font-size: 15px; line-height: 1.7; color: var(--color-default-700); }
.insurance p a { font-weight: 700; }

/* --- Reviews -------------------------------------------------------------- */
.reviews__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 24px; }
.rating {
  display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--color-border); border-radius: 14px;
  padding: 14px 20px; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease;
}
.rating:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(12, 26, 21, .12); }
.rating__score { font-family: var(--font-body); font-size: 40px; font-weight: 700; line-height: 1; color: var(--ev-ink); }
.rating__meta { display: flex; flex-direction: column; gap: 4px; }
.rating__stars { display: flex; gap: 2px; }
.rating__count { font-size: 13px; color: var(--color-default-700); }
.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 18px; }
.review { position: relative; aspect-ratio: 4 / 5; border-radius: 14px; color: var(--color-default-700); }
.review .photo__frame, .review .photo__ring { border-radius: 14px; }
.review-cta { margin-top: 16px; display: flex; justify-content: center; }
.review-cta a {
  min-height: 44px; padding: 0 20px; display: inline-flex; align-items: center; border-radius: var(--radius);
  border: 1px solid var(--ev-green); font-size: 14px; font-weight: 600; color: var(--ev-green); text-decoration: none; box-sizing: border-box;
}
.review-cta a:hover { background: var(--ev-cream); color: var(--ev-ink); }

/* --- FAQ ------------------------------------------------------------------ */
.faq { max-width: 900px; }
.faq .h2 { margin: 0 0 20px; text-align: center; }
.faq .chips { justify-content: center; margin-bottom: 20px; }
.faq__list { display: flex; flex-direction: column; gap: 10px; }
.qa { background: #fff; border: 1px solid var(--color-border); border-radius: 14px; overflow: hidden; transition: border-color .25s ease; }
.qa.is-open { border-color: var(--ev-green); }
.qa__q {
  width: 100%; min-height: 58px; padding: 14px 20px; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  background: transparent; border: 0; cursor: pointer; text-align: left;
  font-family: var(--font-thai); font-size: 16px; font-weight: 600; color: var(--color-default-900);
}
.qa__icon {
  flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--ev-paper); color: var(--ev-green);
  display: flex; align-items: center; justify-content: center; font-family: var(--font-body); font-size: 20px;
  transition: transform .3s cubic-bezier(.2, .7, .2, 1), background-color .25s ease;
}
.qa.is-open .qa__icon { transform: rotate(45deg); background: var(--ev-green); color: #fff; }
.qa__a { padding: 0 20px 18px; font-size: 15px; line-height: 1.7; color: var(--color-default-700); text-wrap: pretty; animation: evUp .35s ease both; }
.qa__a[hidden] { display: none; }

/* --- Contact CTA ---------------------------------------------------------- */
.contact__card {
  position: relative; overflow: hidden; background: var(--ev-ink); border: 1px solid rgba(200, 169, 106, .35); border-radius: 20px;
  padding: clamp(32px, 6vw, 64px); display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between;
}
.contact__ring { position: absolute; border-radius: 50%; }
.contact__ring--a { right: -120px; bottom: -160px; width: 420px; height: 420px; border: 1px solid rgba(200, 169, 106, .3); animation: evSpin 50s linear infinite; }
.contact__ring--b { right: -40px; bottom: -80px; width: 260px; height: 260px; border: 1px dashed rgba(200, 169, 106, .3); animation: evSpin 30s linear infinite reverse; }
.contact__copy { position: relative; display: flex; flex-direction: column; gap: 10px; max-width: 580px; }
.contact__copy h2 { margin: 0; font-size: clamp(28px, 3.6vw, 42px); font-weight: 700; color: #fff; text-wrap: balance; }
.contact__copy p { margin: 0; font-size: 16px; line-height: 1.65; color: #fff; }
.contact__ctas { position: relative; display: flex; gap: 12px; flex-wrap: wrap; }
.cta--solid-gold { min-height: 54px; padding: 0 28px; background: var(--ev-gold); color: var(--ev-ink); }
.cta--solid-gold:hover { color: var(--ev-ink); background: var(--ev-gold-light); }
.cta--outline-white { min-height: 54px; padding: 0 24px; border: 1px solid rgba(255, 255, 255, .7); color: #fff; }
.cta--outline-white:hover { color: #fff; background: rgba(255, 255, 255, .1); }

/* --- Scam warning --------------------------------------------------------- */
.warning-wrap { max-width: 1200px; margin: 0 auto; padding: 28px 20px 72px; }
.warning { display: flex; gap: 14px; align-items: start; background: #FFF4E5; border: 1px solid #FFD8A8; border-radius: 14px; padding: 18px 20px; }
.warning svg { flex: none; margin-top: 2px; }
.warning__body { display: flex; flex-direction: column; gap: 4px; font-size: 14px; line-height: 1.6; color: #7C2D12; }
.warning__body strong { font-weight: 700; }

/* --- Footer --------------------------------------------------------------- */
.footer { background: var(--ev-ink); padding: 40px 20px; color: var(--ev-cream); }
.footer__grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 24px; font-size: 14px; line-height: 1.7; }
.footer__col { display: flex; flex-direction: column; gap: 4px; }
.footer__col strong { font-weight: 700; color: #fff; }
.footer__brand { font-family: var(--font-body); font-weight: 700; font-size: 17px; color: #fff; }
.footer a { color: var(--ev-cream); }
.footer a:hover { color: #fff; }

/* --- Mobile sticky bar ---------------------------------------------------- */
.sticky-bar { display: none; }
@media (max-width: 759px) {
  .sticky-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: #fff; border-top: 1px solid var(--color-border);
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    box-shadow: 0 -4px 20px rgba(12, 26, 21, .12); animation: evUp .5s ease both;
  }
  .sticky-bar a {
    min-height: 44px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius);
    font-size: 14px; font-weight: 600; text-decoration: none; box-sizing: border-box;
  }
  .sticky-bar__call { border: 1px solid var(--ev-green); color: var(--ev-green); }
  .sticky-bar__line { background: var(--ev-line); color: #fff; }
  .sticky-bar__line:hover { color: #fff; }
  body.has-sticky .footer { padding-bottom: 96px; }
}

/* --- Car detail modal ----------------------------------------------------- */
.modal {
  position: fixed; inset: 0; z-index: 40; background: rgba(8, 14, 12, .7);
  display: flex; align-items: center; justify-content: center; padding: 16px; animation: evFade .25s ease both;
}
.modal[hidden] { display: none; }
.modal__dialog {
  background: #fff; border-radius: 18px; width: 100%; max-width: 740px; max-height: calc(100dvh - 32px); overflow: auto;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .3); animation: evIn .35s cubic-bezier(.2, .7, .2, 1) both;
}
.modal__media { position: relative; aspect-ratio: 16 / 8; background: var(--ev-cream); color: var(--color-default-700); }
.modal__close {
  position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff;
  cursor: pointer; font-size: 22px; color: var(--color-default-900); box-shadow: 0 4px 12px rgba(0, 0, 0, .15); transition: transform .2s ease;
}
.modal__close:hover { transform: rotate(90deg); }
.modal__body { padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.modal__top { display: flex; justify-content: space-between; align-items: start; gap: 12px; flex-wrap: wrap; }
.modal__names { display: flex; flex-direction: column; gap: 4px; }
.modal__brand { font-size: 12px; font-weight: 600; letter-spacing: .06em; color: var(--ev-green); }
.modal__name { font-family: var(--font-body); font-size: 26px; font-weight: 700; color: var(--color-default-900); }
.modal__price { display: flex; flex-direction: column; align-items: end; }
.modal__price b { font-family: var(--font-body); font-size: 28px; font-weight: 500; color: var(--ev-ink); }
.modal__price b span { font-size: 14px; font-weight: 400; color: var(--color-default-700); }
.modal__price small { font-size: 13px; color: var(--color-default-700); }
.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.spec { background: var(--ev-paper); border-radius: var(--radius); padding: 12px; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.spec span { color: var(--color-default-700); }
.spec b { font-weight: 700; color: var(--ev-ink); }
.features { display: flex; flex-direction: column; gap: 6px; }
.features__title { font-size: 14px; font-weight: 700; color: var(--color-default-900); }
.features__list { display: flex; flex-wrap: wrap; gap: 6px; }
.features__list span { padding: 6px 12px; border-radius: var(--radius-full); background: var(--ev-cream); font-size: 13px; color: var(--ev-ink); }
.incl { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; font-size: 14px; line-height: 1.6; }
.incl div { display: flex; flex-direction: column; gap: 6px; }
.incl strong { font-weight: 700; color: var(--color-default-900); }
.incl span { color: var(--color-default-700); }
