/* =========================================================
   Carlink — Electric Tricycle Malaysia
   Brand: Carlink (final). Palette: warm orange --brand-600 / cream --brand-50.
   Live domain: https://www.carlinkmy.com — variant class names use -tint,
   not colour words, because the palette has already been renamed once.
   ========================================================= */
:root {
  --brand-900: #29251F;   /* deep espresso — headings, dark sections */
  --brand-800: #B5531A;   /* deep orange (thumb arrows) */
  --brand-700: #D94B0C;   /* deep orange — links, hover */
  --brand-600: #F2651B;   /* brand orange — primary buttons, accents */
  --brand-500: #FF8A4D;   /* light orange — gradients, highlights */
  --brand-100: #FFF3E6;   /* light orange wash — chips, icon tiles */
  --brand-50:  #FBF7F0;   /* warm cream — page background */
  --ink:       #29251F;
  --ink-soft:  #6E6555;
  --muted:     #7A6E57;   /* WCAG AA on cream (≈4.7:1) — was #92856F (3.4:1, too low) */
  --line:      #EADFCC;
  --white:     #ffffff;
  --gold:      #F2651B;
  --shadow-sm: 0 1px 3px rgba(41,37,31,.08);
  --shadow-md: 0 8px 24px rgba(41,37,31,.10);
  --shadow-lg: 0 20px 50px rgba(41,37,31,.14);
  --radius:    16px;
  --radius-sm: 10px;
  --maxw:      1240px;
  --font:      "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--brand-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; color: var(--brand-900); }
p { margin: 0 0 1em; }
a { color: var(--brand-700); text-decoration: none; }
/* height:auto is a safety net: if a rule below sets only width (or only height),
   the image still keeps its own ratio instead of being stretched. */
img { max-width: 100%; display: block; height: auto; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
/* Section rhythm. Two adjacent sections stack their padding, so the visible gap
   between them is 2x this value — 84px produced a 168px gap, which read as a big
   empty band between the comparison table and the next heading. 40px gives an
   80px gap: comfortable, but no longer looks like a missing block. */
.section { padding: 40px 0; }
.section-sm { padding: 28px 0; }
.section-tint { background: var(--brand-50); }
.bg-dark  { background: var(--brand-900); color: #F3EAD9; }
.bg-dark h1,.bg-dark h2,.bg-dark h3 { color: #fff; }
.bg-dark p { color: #C9B493; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 15px;
  padding: 13px 24px; border-radius: 999px;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand-600); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { background: var(--brand-700); }
.btn-ghost { background: transparent; color: var(--brand-900); border-color: var(--brand-600); }
.btn-ghost:hover { background: var(--brand-100); }
.btn-light { background: #fff; color: var(--brand-900); }
.btn-light:hover { background: var(--brand-50); }
.btn-gold { background: var(--gold); color: #2a2102; }
.btn-gold:hover { filter: brightness(1.04); }
.btn-block { width: 100%; justify-content: center; }

.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand-600); margin-bottom: 12px;
}
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head p { color: var(--ink-soft); }
.lead { font-size: 18px; color: var(--ink-soft); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--brand-900); letter-spacing: -.02em; }
.brand .logo-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 15px;
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--ink-soft); font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--brand-700); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-cta > .btn {
  /* Match the language toggle / social icon height so the header row looks even */
  height: 34px;
  padding: 0 16px;
  font-size: 13px;
}
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--brand-900); margin: 5px 0; transition: .2s; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #FBF7F0 0%, #ffffff 100%); }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center;
  padding: 72px 0 84px;
}
.hero h1 { font-size: clamp(32px, 4.4vw, 52px); }
.hero .price-chip {
  display: inline-flex; align-items: baseline; gap: 8px;
  background: var(--brand-100); color: var(--brand-900);
  padding: 8px 16px; border-radius: 999px; font-weight: 600; margin-bottom: 22px;
}
.hero .price-chip b { font-size: 20px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.hero-trust { display: flex; gap: 26px; margin-top: 34px; flex-wrap: wrap; }
.hero-trust .t { font-size: 14px; color: var(--muted); }
.hero-trust .t b { display: block; font-size: 22px; color: var(--brand-700); }
.hero-visual { position: relative; display: flex; }
/* HERO IMAGE — fixed 5:4 frame. Do NOT go back to `height: 100%` with the grid
   stretching this column: the tricycle photo is 16:9 but the vehicle only spans
   the middle 57.5% of its width (measured: x 20.6%..78.1%). With object-fit:
   cover, the visible window is (container aspect) x (image height) px wide,
   while the vehicle itself is always 57.5% x 16/9 = 1.022 x the image height
   wide. So any container narrower than ~1.02 aspect MUST slice the cargo box,
   no matter how the source is cropped (horizontal cropping cancels out of the
   inequality — only the height ratio matters).
   Previously the column was stretched to the text height, so the container
   aspect was driven by copy length: English text is taller than Chinese, the
   English container fell to ~0.98 (near square), and ~44% of the width got
   cropped away, cutting the windshield and the cargo box. Chinese (aspect
   ~1.18) stayed above the threshold and looked fine.
   A fixed 5:4 frame keeps the window at ~1.25 aspect on every language and
   every viewport, so the whole vehicle stays ~46px clear of both edges. */
.hero-visual img {
  width: 100%; height: auto; aspect-ratio: 5 / 4; min-height: 0;
  object-fit: cover; object-position: center;
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
}

/* ---------- Logo strip ---------- */
.logostrip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.logostrip .container { display: flex; gap: 36px; align-items: center; justify-content: space-between; padding: 22px; flex-wrap: wrap; }
.logostrip span { color: var(--muted); font-weight: 600; font-size: 14px; letter-spacing: .04em; }

/* ---------- Models ---------- */
.models-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.model-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: #fff; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s;
}
.model-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
/* 16/9 matches the real photo ratio (2848x1600), so cover crops nothing.
   It was 16/10, which cut ~11% off the sides of every vehicle photo. */
.model-card .card-img { background: var(--brand-50); aspect-ratio: 16/9; display: grid; place-items: center; }
.model-card .card-img img { width: 100%; height: 100%; object-fit: cover; }
.model-card .card-body { padding: 26px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.model-card h3 { margin: 0; font-size: 24px; }
.spec-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; margin: 6px 0 4px; }
.spec-mini div { font-size: 14px; color: var(--ink-soft); }
.spec-mini b { display: block; color: var(--brand-900); font-size: 16px; }
.model-card .price { font-weight: 700; color: var(--brand-700); font-size: 18px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.stat {
  background: rgba(243,234,217,.07); border: 1px solid rgba(243,234,217,.16);
  border-radius: var(--radius); padding: 26px; text-align: center;
}
.stat b { display: block; font-size: 34px; color: #fff; }
.stat span { color: #C9B493; font-size: 14px; }

/* ---------- Use cases ---------- */
.usecase-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.usecase {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  background: #fff; transition: box-shadow .2s, transform .2s;
}
.usecase:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.usecase .ic {
  width: 48px; height: 48px; border-radius: 12px; background: var(--brand-100);
  color: var(--brand-700); display: grid; place-items: center; margin-bottom: 16px;
}
.usecase h3 { font-size: 19px; margin-bottom: 8px; }
.usecase p { font-size: 14.5px; color: var(--ink-soft); margin: 0; }

/* ---------- Platform features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature { padding: 30px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.feature .ic { width: 52px; height: 52px; border-radius: 14px; background: linear-gradient(135deg,var(--brand-500),var(--brand-700)); color:#fff; display:grid; place-items:center; margin-bottom: 18px; }
.feature h3 { font-size: 20px; }
.feature p { color: var(--ink-soft); margin: 0; font-size: 15px; }
.feature .num { font-size: 13px; font-weight: 800; color: var(--brand-600); letter-spacing: .1em; }

/* ---------- Calculator ---------- */
.calc {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-md); display: grid; grid-template-columns: 1fr 1fr; gap: 28px;
}
.calc label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--ink); }
.calc input, .calc select {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  font-size: 15px; font-family: inherit; color: var(--ink);
}
.calc input:focus, .calc select:focus { outline: none; border-color: var(--brand-500); }
.calc .field { margin-bottom: 16px; }
.calc-result { background: var(--brand-50); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; justify-content: center; }
.calc-result .big { font-size: 40px; font-weight: 800; color: var(--brand-700); line-height: 1; }
.calc-result .lbl { color: var(--ink-soft); font-size: 14px; margin-top: 8px; }
.calc-result .sub { color: var(--muted); font-size: 13px; margin-top: 14px; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { font-size: clamp(26px, 3.4vw, 38px); }
.cta-band p { color: #C9B493; max-width: 560px; margin: 0 auto 26px; }

/* ---------- Footer ---------- */
.footer { background: var(--brand-900); color: #C9B493; padding: 60px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 16px; letter-spacing: .02em; }
.footer a { color: #E8A06A; display: block; padding: 5px 0; font-size: 14.5px; }
.footer a:hover { color: #fff; }
.footer .brand { color: #fff; margin-bottom: 14px; }
.footer .muted { color: #A89A82; font-size: 14px; }
.footer-bottom { border-top: 1px solid rgba(243,234,217,.14); margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13px; color: #A89A82; }

/* ---------- Product page ---------- */
.page-hero { background: linear-gradient(180deg,#FBF7F0,#fff); padding: 60px 0 40px; }
.page-hero .crumb { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.page-hero .crumb a { color: var(--brand-600); }
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: stretch; }
.product-grid > div { display: flex; flex-direction: column; }
.product-actions { margin-top: auto; padding-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.product-actions .btn { margin-top: 0 !important; }
.product-gallery .main { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
/* 16/9 to match the source photos — 4/3 was cropping ~25% off the sides,
   which cut the front/rear wheels off the tricycle. */
.product-gallery .main img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }

/* Thumbnail carousel: show 3 per row, slide the rest */
.thumb-carousel { position: relative; margin-top: 14px; }
.thumb-window { overflow: hidden; border-radius: 12px; }
.thumb-track { display: flex; transition: transform .35s ease; }
.thumb-item {
  flex: 0 0 calc((100% - 24px) / 3);
  margin-right: 12px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--line);
  aspect-ratio: 16/9;   /* matches photo ratio — was 1/1 (cropped ~44% off the sides) */
  background: var(--brand-50);
  cursor: pointer;
  transition: border-color .2s, opacity .2s;
}
.thumb-item img { width: 100%; height: 100%; object-fit: cover; }
.thumb-item.active { border-color: var(--brand-600); }
.thumb-item:hover { opacity: .85; }
.thumb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.95);
  color: var(--brand-800);
  box-shadow: 0 2px 10px rgba(0,0,0,.12);
  cursor: pointer;
  z-index: 2;
  display: grid;
  place-items: center;
  font-size: 14px;
  transition: background .2s, transform .2s;
}
.thumb-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.thumb-arrow:disabled { opacity: .35; cursor: not-allowed; }
.thumb-prev { left: -12px; }
.thumb-next { right: -12px; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img {
  max-width: 92vw; max-height: 86vh;
  border-radius: 12px;
  object-fit: contain;
  transform: scale(.96);
  transition: transform .25s ease;
}
.lightbox.open img { transform: scale(1); }
.lightbox-close {
  position: absolute; top: 18px; right: 24px;
  width: 44px; height: 44px;
  background: rgba(255,255,255,.12); color: #fff;
  border: 0; border-radius: 50%;
  font-size: 28px; line-height: 1;
  cursor: pointer;
  display: grid; place-items: center;
}
.lightbox-close:hover { background: rgba(255,255,255,.25); }
.lightbox-nav {
  position: absolute; top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  background: rgba(255,255,255,.12); color: #fff;
  border: 0; border-radius: 50%;
  font-size: 20px; cursor: pointer;
  display: grid; place-items: center;
}
.lightbox-nav:hover { background: rgba(255,255,255,.25); }
.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }
.lightbox-counter {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  color: #fff; font-size: 14px; background: rgba(0,0,0,.4);
  padding: 6px 14px; border-radius: 20px;
}
.spec-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
/* Row labels are <th scope="row"> so assistive tech ties each spec name to its
   value. These resets keep the rendered look identical to the old all-<td>
   markup — a bare <th> would default to bold and centred. */
.spec-table th, .spec-table td { padding: 13px 4px; border-bottom: 1px solid var(--line); font-size: 15px; text-align: left; }
.spec-table th { font-weight: 400; color: var(--muted); width: 46%; }
.spec-table td { font-weight: 600; color: var(--brand-900); }

.spec-table-wrap { display: flex; flex-direction: column; flex: 1 1 auto; }
.spec-table-wrap:not(.expanded) .spec-hidden { display: none; }
.spec-table-wrap.expanded .spec-hidden { display: table-row-group; }

.spec-toggle {
  margin-top: auto;
  background: #f7f8f8; color: var(--brand-900);
  border-color: #e3e7e7;
}
.spec-toggle:hover { background: #eef1f1; border-color: #d7dddd; }
.spec-toggle::after { content: "+"; font-size: 18px; line-height: 1; }
.spec-table-wrap.expanded .spec-toggle::after { content: "−"; }
.highlights { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 22px; }
.highlight { display: flex; gap: 12px; align-items: flex-start; }
.highlight .ic { color: var(--brand-600); flex: none; }
.highlight b { display: block; font-size: 15px; color: var(--brand-900); }
.highlight span { font-size: 13.5px; color: var(--ink-soft); }
.price-box { background: var(--brand-50); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin: 0 0 22px; box-sizing: border-box; aspect-ratio: 4/3; display: flex; flex-direction: column; justify-content: center; }
.price-box .from { font-size: 13px; color: var(--muted); }
.price-box .amt { font-size: 30px; font-weight: 800; color: var(--brand-700); }
.price-box .note { font-size: 13px; color: var(--ink-soft); }

/* ---------- Floating WhatsApp ---------- */
.whatsapp-float {
  position: fixed; bottom: 22px; right: 22px; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; color: #fff; box-shadow: 0 6px 20px rgba(37,211,102,.35);
  transition: transform .2s ease, box-shadow .2s ease;
  text-decoration: none;
}
.whatsapp-float:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 10px 28px rgba(37,211,102,.45); }
.whatsapp-float svg { width: 32px; height: 32px; }

/* ---------- Social links ---------- */
.social-links { display: flex; gap: 12px; align-items: center; }
.social-links a {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px;
  background: rgba(255,255,255,.08); color: #fff; transition: background .2s, transform .2s;
}
.social-links a:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); }
.social-links svg { width: 20px; height: 20px; }
.header .social-links { gap: 8px; }
.header .social-links a { width: 34px; height: 34px; border-radius: 8px; background: var(--brand-100); color: var(--brand-700); }
.header .social-links a:hover { background: var(--brand-500); color: #fff; }
.header .social-links svg { width: 18px; height: 18px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: start; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.form-card label { display: block; font-weight: 600; font-size: 14px; margin: 14px 0 6px; }
.form-card input, .form-card select, .form-card textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  font-size: 15px; font-family: inherit;
}
.form-card textarea { min-height: 120px; resize: vertical; }
.form-card input:focus, .form-card select:focus, .form-card textarea:focus { outline:none; border-color: var(--brand-500); }
.info-card { background: var(--brand-900); color: #F3EAD9; border-radius: var(--radius); padding: 30px; }
.info-card h3 { color:#fff; }
.info-card .row { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(243,234,217,.14); }
.info-card .row:last-child { border-bottom: 0; }
.info-card .ic { color: var(--gold); flex: none; }
.info-card .row b { display:block; color:#fff; font-size: 14px; font-weight:600; }
.info-card .row span { color: #C9B493; font-size: 14px; }
.form-success { display:none; background: var(--brand-100); color: var(--brand-900); border:1px solid var(--brand-500); border-radius: 12px; padding: 16px; margin-top: 14px; font-weight: 600; }
/* Inline validation message — replaces alert(). `hidden` + this rule together,
   so removing the attribute is all it takes to reveal it. */
.form-error {
  display: none;
  background: #FDECEA; color: #8A1C13;
  border: 1px solid #F0B3AB; border-radius: 12px;
  padding: 14px 16px; margin-top: 14px; font-weight: 600;
}
.form-error:not([hidden]) { display: block; }

/* ---------- No-JS fallback blocks ----------
   Everything inside a <noscript> only renders when JavaScript is unavailable.
   These blocks stand in for sections that js/main.js would otherwise fill, so a
   no-JS visitor (or anyone whose script failed to load) never sees a blank page. */
.nojs {
  background: #FFF9F0; border: 1px dashed var(--brand-500); border-radius: var(--radius);
  padding: 18px 20px; margin-top: 18px; font-size: 15px; color: var(--ink-soft);
}
.nojs p { margin: 0 0 10px; }
.nojs p:last-child { margin-bottom: 0; }
.nojs strong { color: var(--brand-900); }
.nojs a { color: var(--brand-700); font-weight: 600; }
.nojs-list { margin: 0 0 12px; }
.nojs-list li { padding: 9px 0; border-bottom: 1px solid var(--line); }
.nojs-list li:last-child { border-bottom: 0; }
.nojs-list b { color: var(--brand-900); }
.nojs-list span { display: block; font-size: 13.5px; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .feature-grid, .usecase-grid, .stats,
  .calc, .product-grid, .contact-grid { grid-template-columns: 1fr; }
  .usecase-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links, .nav-cta .btn { display: none; }
  /* Single column: the hero image keeps the same fixed 5:4 frame as desktop
     (it is set on .hero-visual img above). Dropping back to 16:9 here would
     re-introduce a vertical crop and shave the top of the windshield. */
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 22px 18px; box-shadow: var(--shadow-md);
  }
  .nav-links.open a { padding: 12px 0; border-bottom: 1px solid var(--line); }
}
/* Tablets and small laptops (iPad portrait is 768px) still have room for two
   model cards side by side. The old rule dropped straight to a single column at
   960px, which wasted half the width and doubled the scrolling on the most
   important section of the page. Two columns now hold down to 700px. */
@media (max-width: 700px) {
  .models-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .usecase-grid, .footer-grid, .highlights, .spec-mini { grid-template-columns: 1fr; }
  .section { padding: 32px 0; }
  .hero-grid { padding: 48px 0 56px; }
  .price-box { aspect-ratio: auto; min-height: auto; }
}

/* ---------- Language toggle (EN / 中文) ---------- */
.nav-lang { display: flex; align-items: center; gap: 6px; margin-right: 2px; }
.lang-btn {
  display: inline-flex; align-items: center;
  height: 34px;
  background: none; border: 1px solid var(--line); color: var(--ink-soft);
  font-weight: 600; font-size: 13px; padding: 6px 11px; border-radius: 999px;
  cursor: pointer; transition: .15s;
}
.lang-btn:hover { border-color: var(--brand-600); color: var(--brand-700); }
.lang-btn.active { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }
.nav-lang .sep { color: var(--muted); }

/* ---------- Our Story values ---------- */
.story-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.story-value { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px 22px; box-shadow: var(--shadow-sm); }
.story-value h4 { color: var(--brand-900); margin: 0 0 6px; font-size: 17px; }
.story-value p { color: var(--ink-soft); margin: 0; font-size: 14.5px; }

/* ---------- Two ways to buy (B2C / B2B) ---------- */
.path-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.path-card { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 30px; box-shadow: var(--shadow-sm); }
.path-card .tag {
  display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--brand-700); background: var(--brand-100);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 14px;
}
.path-card h3 { margin: 0 0 10px; font-size: 22px; }
.path-card p { color: var(--ink-soft); }
.path-card ul { display: flex; flex-direction: column; gap: 10px; margin: 16px 0 22px; }
.path-card li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: var(--ink); }
.path-card li svg { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 3px; color: var(--brand-600); }

/* ---------- Comparison table ---------- */
.compare-wrap { overflow-x: auto; }
.compare { width: 100%; border-collapse: collapse; margin-top: 8px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.compare th, .compare td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.compare thead th { background: var(--brand-900); color: #fff; font-weight: 700; font-size: 15px; }
.compare tbody th[scope="row"] { color: var(--ink-soft); font-weight: 600; width: 26%; text-align: left; }
.compare tbody tr:nth-child(even) { background: var(--brand-50); }
.compare .hl { color: var(--brand-700); font-weight: 700; }

/* ---------- FAQ accordion ---------- */
.faq { max-width: 840px; margin: 0 auto; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 12px; background: #fff; overflow: hidden; }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 14px;
  padding: 18px 20px; background: none; border: 0; cursor: pointer;
  font-size: 16px; font-weight: 600; color: var(--brand-900); text-align: left;
}
.faq-q .icon { position: relative; width: 18px; height: 18px; flex: 0 0 auto; }
.faq-q .icon::before, .faq-q .icon::after { content: ""; position: absolute; background: var(--brand-600); border-radius: 2px; }
.faq-q .icon::before { top: 8px; left: 0; width: 18px; height: 2px; }
.faq-q .icon::after { top: 0; left: 8px; width: 2px; height: 18px; transition: .2s; }
.faq-item.open .faq-q .icon::after { transform: rotate(90deg); opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-item.open .faq-a { max-height: 420px; }
.faq-a-inner { padding: 0 20px 18px; color: var(--ink-soft); font-size: 15px; }

@media (max-width: 760px) {
  .path-grid, .story-values { grid-template-columns: 1fr; }
}

/* =========================================================
   Accessibility
   ---------------------------------------------------------
   1) Visible focus ring for keyboard users. The rules above
      remove outlines on :focus (inputs get a border tint
      instead), so we restore a proper ring on :focus-visible
      (keyboard/AT only — mouse clicks stay clean).
   2) Respect "reduce motion" for users with vestibular
      disorders: kill smooth scrolling and long transitions.
   ========================================================= */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.faq-q:focus-visible,
.thumb-item:focus-visible,
.lang-btn:focus-visible {
  outline: 2px solid var(--brand-700);
  outline-offset: 2px;
  border-radius: 6px;
}
.calc input:focus-visible,
.form-card input:focus-visible,
.form-card select:focus-visible,
.form-card textarea:focus-visible {
  outline: 2px solid var(--brand-700);
  outline-offset: 1px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
