/* ==========================================================================
   EVbike.my v2 "Soft Horizon": nationwide multi-brand EV motorcycle store
   Mobile-first. Breakpoints: 640 / 768 / 1024 / 1280 / 1536
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
/*
   CONTRAST RULES (WCAG AA). BANNED PAIRS, never use:
   - Soft orange #FF9B54 as TEXT on off-white/white (2.01 / 2.09) -> use Terracotta #A84B12
   - Baby blue #B8E5F5 as TEXT on off-white/white (1.30 / 1.35)   -> surface only
   - White text on orange / baby / WhatsApp green (2.09 / 1.35 / 1.98) -> labels are Espresso
   - Orange on baby, or baby on orange (1.55)
   - Terracotta on baby #B8E5F5 for small text (4.23); Terracotta on orange (2.74)
   - Lagoon on orange (3.48); Muted #5F5A55 on orange (3.27)
   - Pebble #7A8592 as text (3.61); Hairline #E3EAF0 for meaningful borders
   - #DC2626 as error TEXT -> use #B91C1C (border only for #DC2626)
   Verified pairs: Espresso on orange 7.26, on baby 11.23; Charcoal on off-white 10.87;
   Muted on off-white 6.56 / baby 5.05; Terracotta on off-white 5.49; Lagoon on off-white 6.99 / baby 5.39.
*/
:root {
  /* Core palette */
  --color-orange: #FF9B54;           /* CTA fills, badges, accents (fill only) */
  --color-orange-hover: #FFB27A;
  --color-orange-pressed: #F2853A;
  --color-peach: #FFF1E6;            /* orange tint surface */
  --color-peach-line: #F8D9C2;
  --color-terracotta: #A84B12;       /* orange TEXT on light surfaces */
  --color-baby: #B8E5F5;             /* backdrops, plinths, secondary fills */
  --color-baby-hover: #A3DCF0;
  --color-baby-pressed: #8FD2EC;
  --color-baby-mist: #E8F6FB;        /* baby tint surface */
  --color-lagoon: #155E75;           /* blue TEXT, links, focus ring */
  --color-lagoon-deep: #0E4A5C;
  --color-offwhite: #F8FBFD;
  --color-white: #FFFFFF;

  /* Text */
  --color-espresso: #2A2522;
  --color-charcoal: #3D3A37;
  --color-muted: #5F5A55;

  /* Lines & states */
  --color-pebble: #7A8592;
  --color-hairline: #E3EAF0;
  --color-hairline-strong: #D3E3EC;
  --color-disabled-bg: #E9EDF1;

  /* WhatsApp */
  --color-whatsapp: #25D366;
  --color-whatsapp-hover: #1EBE5A;

  /* Semantic */
  --color-success: #166534;
  --color-success-bg: #DCFCE7;
  --color-success-tint: #F0FDF4;
  --color-warning: #92400E;
  --color-warning-bg: #FEF3C7;
  --color-neutral: #4B5563;
  --color-neutral-bg: #F1F5F9;
  --color-error: #B91C1C;
  --color-error-border: #DC2626;
  --color-error-bg: #FEF2F2;

  --focus-ring: var(--color-lagoon);

  /* Typography */
  --font-heading: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-display: clamp(2.375rem, 1.6rem + 2.8vw, 4.25rem);
  --fs-h2: clamp(1.875rem, 1.45rem + 2vw, 3.25rem);
  --fs-h3: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --fs-h4: 1.125rem;
  --fs-lead: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-xs: 0.8125rem;
  --fs-eyebrow: 0.8125rem;
  --fs-price: clamp(1.5rem, 1.35rem + 0.6vw, 1.875rem);

  /* Spacing (4/8 scale) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;
  --space-11: 160px;
  --section-pad: clamp(72px, 9vw, 136px);
  --gutter: clamp(20px, 4vw, 48px);
  --container: 1280px;
  --header-h: 64px;

  /* Shape & depth */
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 28px;
  --radius-pill: 999px;
  --shadow-1: 0 1px 2px rgba(42, 37, 34, 0.04), 0 6px 18px rgba(42, 37, 34, 0.06);
  --shadow-2: 0 2px 6px rgba(42, 37, 34, 0.05), 0 18px 40px rgba(42, 37, 34, 0.09);
  --shadow-cta: 0 8px 20px -6px rgba(255, 155, 84, 0.55);
  --shadow-sheet: 0 -8px 40px rgba(42, 37, 34, 0.12);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 160ms;
  --dur: 280ms;
  --dur-slow: 560ms;
}

/* ---------- 2. Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--color-charcoal);
  background: var(--color-offwhite);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

body.is-locked { overflow: hidden; }

[hidden] { display: none !important; }

h1, h2, h3, h4, p, dl, dd, ol, ul, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
address { font-style: normal; }
small { font-size: var(--fs-xs); }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-espresso);
  line-height: 1.2;
}

main:focus { outline: none; }

:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

[tabindex="-1"]:focus { outline: none; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.icon {
  width: 20px; height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--sm { width: 16px; height: 16px; }
.icon--lg { width: 24px; height: 24px; }
.icon--xl { width: 28px; height: 28px; }

.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 100;
  padding: 12px 20px;
  background: var(--color-orange);
  color: var(--color-espresso);
  font-weight: 600;
  border-radius: var(--radius-pill);
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

/* ---------- 3. Sections ---------- */
.section { padding-block: var(--section-pad); }
.section--tight { padding-block: var(--space-7); }
.section--mist { background: var(--color-baby-mist); }

.section-head { max-width: 760px; margin-bottom: var(--space-6); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-title {
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.section-sub {
  margin-top: var(--space-3);
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--color-charcoal);
}

.eyebrow {
  margin-bottom: var(--space-3);
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--color-terracotta);
}
.eyebrow--dot { display: inline-flex; align-items: center; gap: 10px; }
.eyebrow--dot::before {
  content: "";
  flex: none;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-orange);
}

/* ---------- 4. Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: 12px 24px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.btn--sm { min-height: 44px; padding: 10px 18px; font-size: 0.9375rem; }
.btn--lg { min-height: 56px; padding: 16px 28px; }
.btn--block { width: 100%; }

.btn--primary { background: var(--color-orange); color: var(--color-espresso); box-shadow: var(--shadow-1); }
.btn--primary:hover { background: var(--color-orange-hover); box-shadow: var(--shadow-cta); }
.btn--primary:active { background: var(--color-orange-pressed); box-shadow: inset 0 2px 4px rgba(42, 37, 34, 0.18); }

.btn--secondary { background: var(--color-baby); color: var(--color-espresso); border-color: var(--color-baby-pressed); }
.btn--secondary:hover { background: var(--color-baby-hover); }
.btn--secondary:active { background: var(--color-baby-pressed); }

.btn--outline { background: transparent; color: var(--color-espresso); border-color: var(--color-charcoal); }
.btn--outline:hover { background: var(--color-baby-mist); }
.btn--outline:active { background: var(--color-baby); }

.btn--ghost { background: var(--color-white); color: var(--color-espresso); border-color: var(--color-pebble); }
.btn--ghost:hover { background: var(--color-baby-mist); border-color: var(--color-charcoal); }
.btn--ghost:active { background: var(--color-baby); }

.btn--wa { background: var(--color-whatsapp); color: var(--color-espresso); }
.btn--wa:hover { background: var(--color-whatsapp-hover); }
.btn--wa:active { box-shadow: inset 0 2px 4px rgba(42, 37, 34, 0.2); }

.btn:disabled,
.btn[aria-disabled="true"] {
  background: var(--color-disabled-bg);
  color: var(--color-muted);
  border-color: transparent;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 48px; height: 48px;
  flex: none;
  border: 1.5px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: var(--color-espresso);
  cursor: pointer;
  text-decoration: none;
  transition: background-color var(--dur-fast) var(--ease-out);
}
.icon-btn--plain:hover { background: var(--color-baby-mist); }
.icon-btn--wa { background: var(--color-whatsapp); }
.icon-btn--wa:hover { background: var(--color-whatsapp-hover); }

.link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-lagoon);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  cursor: pointer;
}
.link:hover { color: var(--color-lagoon-deep); text-decoration-thickness: 2px; }
.link [aria-hidden="true"] { transition: transform var(--dur-fast) var(--ease-out); }
.link--inline { display: inline; min-height: 0; }

/* ---------- 5. Pills, badges, tags ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs);
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}
.pill--glass { background: rgba(255, 255, 255, 0.9); color: var(--color-espresso); box-shadow: 0 0 0 1px var(--color-hairline); }
.pill--ready { background: var(--color-success-bg); color: var(--color-success); }
.pill--limited { background: var(--color-warning-bg); color: var(--color-warning); }
.pill--preorder { background: var(--color-baby-mist); color: var(--color-lagoon); }
.pill--check { background: var(--color-neutral-bg); color: var(--color-neutral); }
.pill--popular { background: var(--color-orange); color: var(--color-espresso); }

.badge {
  display: inline-grid;
  place-items: center;
  min-width: 22px; height: 22px;
  padding: 0 6px;
  border-radius: var(--radius-pill);
  background: var(--color-orange);
  color: var(--color-espresso);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
}

/* ---------- 6. Header / navbar ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  color: var(--color-espresso);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.site-header.is-solid {
  background: rgba(248, 251, 253, 0.88);
  border-bottom-color: var(--color-hairline);
  box-shadow: var(--shadow-1);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header.is-solid { background: var(--color-offwhite); }
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--color-espresso);
  text-decoration: none;
  flex-shrink: 0;
}
.brand__mark {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--color-peach);
}
.brand__glyph { width: 18px; height: 18px; fill: var(--color-orange); stroke: var(--color-terracotta); stroke-width: 1; }
.brand__name {
  font-family: var(--font-heading);
  font-size: 1.3125rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--color-espresso);
}
.brand__tld { color: var(--color-terracotta); }

.nav__primary { display: none; }
.nav__links { display: flex; gap: 20px; }
.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--color-charcoal);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease-out);
}
.nav__link:hover { color: var(--color-espresso); }
.nav__link[aria-current="true"] { color: var(--color-espresso); font-weight: 600; }
.nav__link[aria-current="true"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 4px;
  height: 3px;
  border-radius: var(--radius-pill);
  background: var(--color-orange);
}

.nav__actions { display: flex; align-items: center; gap: var(--space-2); flex-shrink: 0; }
.nav__actions .nav__cta { white-space: nowrap; }
.nav__actions .nav__lang { display: none; }
.nav__wa,
.nav__cta--full { display: none; }

.nav__wa {
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 var(--space-2);
  color: var(--color-espresso);
  font-weight: 600;
  text-decoration: none;
}
.nav__wa:hover { color: var(--color-lagoon); text-decoration: underline; text-underline-offset: 3px; }
.nav__wa-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-whatsapp); }

.nav__toggle {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--color-espresso);
  cursor: pointer;
}
.nav__toggle:hover { background: var(--color-baby-mist); }

/* Language toggle */
.lang-toggle {
  display: inline-flex;
  padding: 2px;
  border: 1px solid var(--color-pebble);
  border-radius: var(--radius-pill);
  background: var(--color-white);
}
.lang-toggle__btn {
  min-width: 44px;
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--color-charcoal);
  font-size: var(--fs-small);
  font-weight: 600;
  cursor: pointer;
}
.lang-toggle__btn:hover { color: var(--color-espresso); background: var(--color-baby-mist); }
.lang-toggle__btn[aria-pressed="true"] {
  background: var(--color-baby);
  color: var(--color-espresso);
  font-weight: 700;
  box-shadow: inset 0 0 0 1.5px var(--color-lagoon);
}

/* Drawer (light) */
.drawer-scrim,
.filter-scrim {
  position: fixed;
  inset: 0;
  background: rgba(42, 37, 34, 0.35);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.drawer-scrim { z-index: 59; }
.filter-scrim { z-index: 69; }

.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  width: min(380px, 100%);
  height: 100dvh;
  padding: 0 var(--space-5) calc(var(--space-5) + env(safe-area-inset-bottom));
  overflow-y: auto;
  background: var(--color-white);
  color: var(--color-charcoal);
  box-shadow: -12px 0 40px rgba(42, 37, 34, 0.12);
  visibility: hidden;
  transform: translateX(100%);
  transition: transform var(--dur) var(--ease-out), visibility 0s linear var(--dur);
}
.drawer.is-open {
  visibility: visible;
  transform: none;
  transition: transform var(--dur) var(--ease-out), visibility 0s;
}
.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  margin-inline: calc(-1 * var(--space-5));
  padding-inline: var(--space-5) var(--space-3);
  background: var(--color-baby-mist);
}
.drawer__links { display: flex; flex-direction: column; }
.drawer__link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 56px;
  border-bottom: 1px solid var(--color-hairline);
  color: var(--color-espresso);
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 600;
  text-decoration: none;
}
.drawer__num { font-family: var(--font-body); font-size: var(--fs-xs); font-weight: 600; color: var(--color-lagoon); }
.drawer__link[aria-current="true"] { color: var(--color-terracotta); }
.drawer__link[aria-current="true"]::after {
  content: "";
  width: 8px; height: 8px;
  margin-left: auto;
  border-radius: 50%;
  background: var(--color-orange);
}
.drawer .lang-toggle { align-self: flex-start; }
.drawer__actions { display: flex; flex-direction: column; gap: var(--space-3); margin-top: auto; }

/* ---------- 7. Placeholder media ---------- */
.media-ph {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.media-ph__label {
  position: absolute;
  left: 16px; bottom: 12px;
  z-index: 2;
  font-size: var(--fs-xs);
  color: var(--color-muted);
}

/* ---------- 8. Hero ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + var(--space-6));
  padding-bottom: var(--space-8);
  background: linear-gradient(180deg, var(--color-offwhite) 0%, var(--color-offwhite) 45%, var(--color-baby-mist) 100%);
  overflow: clip;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-6);
}
.hero__title {
  font-size: var(--fs-display);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.03em;
}
.text-accent {
  background: linear-gradient(transparent 62%, rgba(255, 155, 84, 0.55) 62%, rgba(255, 155, 84, 0.55) 90%, transparent 90%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding-inline: 0.04em;
}
.hero__lead {
  max-width: 50ch;
  margin-top: var(--space-4);
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--color-charcoal);
}
.hero__ctas {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-5);
}
.hero__inst { margin-top: var(--space-2); }

.hero__stage {
  position: relative;
  margin-inline: calc(-1 * var(--gutter));
  aspect-ratio: 4 / 3;
}
.hero__ph {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, var(--color-baby-mist) 0%, var(--color-baby) 100%);
}
.hero__ph::after {
  /* floor shadow */
  content: "";
  position: absolute;
  left: 16%; right: 16%; bottom: 11%;
  height: 7%;
  background: radial-gradient(closest-side, rgba(42, 37, 34, 0.22), rgba(42, 37, 34, 0));
}
.hero__sun {
  position: absolute;
  left: 50%; top: 46%;
  width: 62%;
  aspect-ratio: 1;
  border-radius: 50%;
  translate: -50% -50%;
  background: radial-gradient(circle, rgba(255, 155, 84, 0.55) 0%, rgba(255, 155, 84, 0.22) 45%, rgba(255, 155, 84, 0) 70%);
}
.hero__bike {
  position: relative;
  z-index: 1;
  width: 92%;
  max-width: 880px;
  height: auto;
  aspect-ratio: 240 / 140;
  color: var(--color-lagoon);
}
/* Real photo (drop-in) */
.hero__picture { display: block; width: 100%; height: 100%; }
.hero__img {
  width: 100%;
  height: 100%;
  object-fit: var(--hero-fit, contain);
  object-position: 55% 85%;
}
.hero__stage--scene { --hero-fit: cover; }

.hero__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}
.fact {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 2px;
  padding: 14px 16px;
  background: var(--color-white);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-md);
}
.fact dd {
  font-family: var(--font-heading);
  font-size: clamp(1.125rem, 1rem + 0.6vw, 1.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-espresso);
  font-variant-numeric: tabular-nums;
}
.fact dt { font-size: var(--fs-xs); color: var(--color-muted); }
.hero__note { font-size: var(--fs-xs); color: var(--color-muted); }

/* ---------- 9. USP strip & brands ---------- */
.usp {
  background: var(--color-white);
  border-block: 1px solid var(--color-hairline);
}
.usp__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4) var(--space-5);
  padding-block: var(--space-5);
}
.usp__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: var(--fs-small);
  font-weight: 500;
  line-height: 1.45;
  color: var(--color-espresso);
}
.usp__icon {
  width: 22px; height: 22px;
  flex: none;
  fill: none;
  stroke: var(--color-lagoon);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brands__head { margin-bottom: var(--space-4); }
.brands__title { font-size: var(--fs-h3); font-weight: 700; }
.brands__sub { margin-top: var(--space-1); color: var(--color-muted); font-size: var(--fs-small); }
.brands__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}
.brand-slot {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  min-height: 72px;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-hairline-strong);
  border-radius: var(--radius-md);
  background: var(--color-white);
  color: var(--color-espresso);
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.brand-slot:hover { background: var(--color-baby-mist); border-color: var(--color-lagoon); }
.brand-slot__logo {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  flex: none;
  border-radius: 50%;
  background: var(--color-neutral-bg);
  color: var(--color-muted);
  font-family: var(--font-heading);
  font-weight: 800;
}
.brands__disc { margin-top: var(--space-4); max-width: 75ch; font-size: var(--fs-xs); color: var(--color-muted); }

/* ---------- 10. Catalogue ---------- */
.section--catalogue { padding-top: var(--space-7); }

.catalogue__main { min-width: 0; }

/* Toolbar (sticky on mobile/tablet while the catalogue is in view) */
.cat-toolbar {
  position: sticky;
  top: var(--header-h);
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-3);
  margin-inline: calc(-1 * var(--gutter));
  padding: 10px var(--gutter);
  background: rgba(248, 251, 253, 0.94);
  border-bottom: 1px solid var(--color-hairline);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.cat-toolbar__filters { flex: none; }
.model-count {
  order: 3;
  flex-basis: 100%;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--color-muted);
}
.sort { display: flex; align-items: center; gap: var(--space-2); margin-left: auto; min-width: 0; }
.sort__label {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}
.input.input--sm { min-height: 44px; padding: 8px 36px 8px 14px; font-size: 0.9375rem; max-width: 220px; }

.chips {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-4);
  overflow-x: auto;
  padding: 4px 4px 8px;
  margin-inline: -4px;
  scrollbar-width: thin;
}
.chip {
  flex: none;
  min-height: 44px;
  padding: 0 18px;
  border: 1.5px solid var(--color-pebble);
  border-radius: var(--radius-pill);
  background: var(--color-white);
  color: var(--color-espresso);
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.chip:hover { background: var(--color-baby-mist); }
.chip[aria-pressed="true"] {
  background: var(--color-baby);
  border-color: var(--color-lagoon);
  font-weight: 700;
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-3);
  margin-top: var(--space-2);
}
.tags { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px 0 16px;
  border: 1px solid var(--color-lagoon);
  border-radius: var(--radius-pill);
  background: var(--color-baby-mist);
  color: var(--color-espresso);
  font-size: var(--fs-small);
  font-weight: 600;
  cursor: pointer;
}
.tag:hover { background: var(--color-baby); }
.tag__x { font-size: 1.125rem; line-height: 1; color: var(--color-lagoon); }

/* Filter panel: base = bottom sheet (<768) */
.filter-panel {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 70;
  display: flex;
  flex-direction: column;
  max-height: 88dvh;
  background: var(--color-white);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  box-shadow: var(--shadow-sheet);
  visibility: hidden;
  transform: translateY(100%);
  transition: transform var(--dur) var(--ease-out), visibility 0s linear var(--dur);
}
.filter-panel.is-open {
  visibility: visible;
  transform: none;
  transition: transform var(--dur) var(--ease-out), visibility 0s;
}
.filter-panel__head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 12px 8px 20px;
}
.filter-panel__head::before {
  /* grab handle (visual only) */
  content: "";
  position: absolute;
  top: 8px; left: 50%;
  width: 40px; height: 4px;
  margin-left: -20px;
  border-radius: var(--radius-pill);
  background: var(--color-hairline-strong);
}
.filter-panel__title { font-size: var(--fs-h3); font-weight: 700; }
.filter-panel__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 4px 20px 16px;
}
.filter-panel__foot {
  display: flex;
  gap: var(--space-3);
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--color-hairline);
  background: var(--color-white);
}
.filter-panel__reset { flex: none; }
.filter-panel__apply { flex: 1; }

.filter-group {
  margin: 0;
  padding: var(--space-4) 0;
  border: 0;
  border-bottom: 1px solid var(--color-hairline);
  min-width: 0;
}
.filter-group:last-child { border-bottom: 0; }
.filter-group__legend {
  display: block;
  margin-bottom: var(--space-2);
  padding: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-espresso);
}
.filter-group__note { margin-top: var(--space-2); font-size: var(--fs-xs); color: var(--color-muted); }

.check {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  cursor: pointer;
}
.check input {
  width: 20px; height: 20px;
  flex: none;
  margin: 0;
  accent-color: var(--color-lagoon);
}
.check__label { color: var(--color-charcoal); }
.check__count { margin-left: auto; font-size: var(--fs-small); color: var(--color-muted); font-variant-numeric: tabular-nums; }

.search { position: relative; }
.search__icon { position: absolute; left: 14px; top: 50%; translate: 0 -50%; color: var(--color-muted); pointer-events: none; }
.input.search__input { padding-left: 42px; }

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-5);
}

.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: var(--color-white);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
  transition: box-shadow var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.product-card:hover { box-shadow: var(--shadow-2); border-color: var(--color-baby); }
.product-card:has(:focus-visible) { outline: 2px solid var(--color-lagoon); outline-offset: 3px; }
.product-card--featured { border-color: transparent; box-shadow: 0 0 0 1.5px var(--color-orange), var(--shadow-1); }
.product-card--featured:hover { border-color: transparent; box-shadow: 0 0 0 1.5px var(--color-orange), var(--shadow-2); }

.product-card__media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 46%, rgba(255, 155, 84, 0.28) 0, rgba(255, 155, 84, 0) 38%),
    linear-gradient(180deg, var(--color-baby-mist) 0%, var(--color-baby) 100%);
}
.product-card__media::after {
  content: "";
  position: absolute;
  left: 18%; right: 18%; bottom: 12%;
  height: 7%;
  background: radial-gradient(closest-side, rgba(42, 37, 34, 0.2), rgba(42, 37, 34, 0));
}
.product-card__bike {
  position: relative;
  z-index: 1;
  width: 80%;
  height: auto;
  aspect-ratio: 240 / 140;
  color: var(--color-lagoon);
  transition: transform var(--dur) var(--ease-out);
}
.product-card__img { width: 100%; height: 100%; object-fit: contain; }
.product-card__cat { position: absolute; top: 14px; left: 14px; z-index: 2; }
.product-card__avail { position: absolute; top: 14px; right: 14px; z-index: 2; }
.product-card__badge { position: absolute; bottom: 14px; left: 14px; z-index: 2; }

.product-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  padding: 20px 20px 22px;
}
.product-card__brand {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-terracotta);
  margin-bottom: -10px;
}
.product-card__title { font-size: var(--fs-h3); font-weight: 700; letter-spacing: -0.01em; }

.kspecs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-2);
}
.kspecs > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 10px;
  border-radius: var(--radius-sm);
  background: var(--color-offwhite);
  border: 1px solid var(--color-hairline);
}
.kspecs dt {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  line-height: 1.3;
  color: var(--color-muted);
}
.kspecs dt .icon { color: var(--color-lagoon); }
.kspecs dd {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-espresso);
  font-variant-numeric: tabular-nums;
}
.kspecs dd small { font-weight: 500; color: var(--color-muted); }
.kspecs dt span,
.kspecs dd { white-space: nowrap; }

.price { padding-top: 14px; border-top: 1px solid var(--color-hairline); }
.price__cash {
  font-family: var(--font-heading);
  font-size: var(--fs-price);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-espresso);
  font-variant-numeric: tabular-nums;
}
.price__ph {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--color-muted);
  vertical-align: middle;
}
.price__inst { margin-top: var(--space-1); font-size: 0.9375rem; color: var(--color-charcoal); }
.price__inst-link { color: var(--color-lagoon); font-weight: 700; text-underline-offset: 3px; }
.price__inst-link:hover { color: var(--color-lagoon-deep); text-decoration-thickness: 2px; }
.price__ref {
  display: inline-block;
  padding: 0 4px;
  color: var(--color-lagoon);
  font-weight: 700;
  text-decoration: none;
}
.price__note { margin-top: var(--space-1); font-size: var(--fs-xs); color: var(--color-muted); }

.product-card__actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: auto;
}
.product-card__specs { grid-column: 1 / -1; }

.product-grid.is-fading { animation: none; }

/* Empty state */
.empty {
  margin-top: var(--space-5);
  padding: var(--space-7) var(--space-5);
  border-radius: var(--radius-lg);
  background: var(--color-peach);
  border: 1px solid var(--color-peach-line);
  text-align: center;
}
.empty__bike { width: 120px; height: auto; aspect-ratio: 240 / 140; margin: 0 auto var(--space-4); color: var(--color-terracotta); opacity: 0.45; }
.empty__title { font-size: var(--fs-h3); font-weight: 700; }
.empty__text { max-width: 52ch; margin: var(--space-2) auto 0; }
.empty__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); margin-top: var(--space-5); }

.disclaimer {
  max-width: 80ch;
  margin-top: var(--space-6);
  font-size: var(--fs-xs);
  color: var(--color-muted);
}
.disclaimer:focus { outline: none; background: var(--color-warning-bg); border-radius: var(--radius-sm); }

/* ---------- 11. Why electric ---------- */
.features__split { display: grid; gap: var(--space-6); }
.features__ph {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 70% 35%, rgba(255, 155, 84, 0.35) 0, rgba(255, 155, 84, 0) 32%),
    linear-gradient(180deg, var(--color-white) 0%, var(--color-baby) 100%);
  border: 1px solid var(--color-hairline-strong);
}
.features__bike { width: 70%; height: auto; aspect-ratio: 240 / 140; color: var(--color-lagoon); opacity: 0.85; }

.tiles { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
.tile {
  padding: var(--space-5);
  background: var(--color-white);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-md);
  transition: border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.tile:hover { border-color: var(--color-baby-pressed); box-shadow: var(--shadow-1); }
.tile__icon-wrap {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  margin-bottom: var(--space-4);
  border-radius: 50%;
  background: var(--color-baby-mist);
  color: var(--color-lagoon);
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.tile:hover .tile__icon-wrap { background: var(--color-peach); color: var(--color-terracotta); }
.tile__icon { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.tile__title { font-size: var(--fs-h4); font-weight: 700; }
.tile__text { margin-top: var(--space-2); }

/* ---------- 12. How to buy ---------- */
.paths { display: grid; gap: var(--space-4); }
.path {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-6) var(--space-5);
  background: var(--color-white);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
}
.path--peach { background: var(--color-peach); border-color: var(--color-peach-line); }
.path__icon {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--color-baby-mist);
  color: var(--color-lagoon);
}
.path--peach .path__icon { background: var(--color-white); color: var(--color-terracotta); }
.path__title { font-size: var(--fs-h3); font-weight: 700; }
.path__cta { margin-top: auto; }

.steps__title { margin-top: var(--space-8); font-size: var(--fs-h4); font-weight: 700; text-align: center; }
.steps {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-5);
  counter-reset: none;
}
.step {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--color-white);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-md);
}
.step__num {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  flex: none;
  border-radius: 50%;
  background: var(--color-baby);
  color: var(--color-espresso);
  font-family: var(--font-heading);
  font-weight: 800;
}
.step__text { font-weight: 600; color: var(--color-espresso); line-height: 1.4; }

/* ---------- 13. Delivery ---------- */
.delivery { display: grid; gap: var(--space-7); }
.regions { display: grid; gap: var(--space-3); }
.region {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2px var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: var(--color-white);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-md);
}
.region__icon {
  grid-row: span 2;
  width: 28px; height: 28px;
  margin-top: 2px;
  fill: none; stroke: var(--color-lagoon); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}
.region__title { font-size: var(--fs-h4); font-weight: 700; }
.region__text { font-size: var(--fs-small); color: var(--color-muted); }

.notice {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-5);
  padding: var(--space-4) var(--space-5);
  background: var(--color-peach);
  border: 1px solid var(--color-peach-line);
  border-left: 4px solid var(--color-orange);
  border-radius: var(--radius-sm);
  color: var(--color-espresso);
}
.notice__icon { margin-top: 3px; color: var(--color-terracotta); }
.delivery__cta { margin-top: var(--space-5); }

.coverage {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 155, 84, 0.3) 0, rgba(255, 155, 84, 0) 30%),
    linear-gradient(180deg, var(--color-white), var(--color-baby));
  border: 1px solid var(--color-hairline-strong);
  overflow: hidden;
}
.coverage__land {
  position: absolute;
  background: var(--color-white);
  border: 2px solid var(--color-baby-pressed);
  box-shadow: var(--shadow-1);
}
.coverage__land--pen { left: 10%; top: 20%; width: 18%; height: 52%; border-radius: 40% 60% 45% 55% / 30% 30% 70% 70%; rotate: -12deg; }
.coverage__land--swk { left: 44%; top: 46%; width: 34%; height: 22%; border-radius: 55% 45% 60% 40% / 50% 60% 40% 50%; rotate: -14deg; }
.coverage__land--sbh { left: 72%; top: 24%; width: 18%; height: 22%; border-radius: 50% 60% 40% 50%; }
.coverage__dot {
  position: absolute;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--color-orange);
  box-shadow: 0 0 0 6px rgba(255, 155, 84, 0.25);
}
.coverage__dot--1 { left: 18%; top: 44%; }
.coverage__dot--2 { left: 58%; top: 54%; }
.coverage__dot--3 { left: 80%; top: 33%; }

/* ---------- 14. FAQ ---------- */
.faq__list { max-width: 820px; margin-inline: auto; border-top: 1px solid var(--color-hairline); }
.faq__item { border-bottom: 1px solid var(--color-hairline); }
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 60px;
  padding-block: var(--space-3);
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-espresso);
  list-style: none;
  cursor: pointer;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  flex: none;
  border-radius: 50%;
  background: var(--color-baby-mist);
  color: var(--color-lagoon);
  font-size: 1.25rem;
  line-height: 1;
  transition: transform var(--dur-fast) var(--ease-out);
}
.faq__item[open] .faq__q::after { transform: rotate(45deg); }
.faq__a { max-width: 70ch; padding-bottom: var(--space-5); }

/* ---------- 15. Contact ---------- */
.contact__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "quick"
    "form"
    "info";
  gap: var(--space-5);
}
.quick { grid-area: quick; display: grid; gap: var(--space-3); }
.quick__btn { min-height: 56px; }
.form-card { grid-area: form; }
.info-card { grid-area: info; }

.form-card {
  padding: var(--space-5);
  background: var(--color-white);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
}

.prefill-status {
  margin-bottom: var(--space-5);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  background: var(--color-baby-mist);
  border-left: 4px solid var(--color-lagoon);
  color: var(--color-espresso);
  font-size: var(--fs-small);
  font-weight: 500;
}
.prefill-status:empty { display: none; }

.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-5);
}
.form-grid__sub { display: grid; gap: var(--space-5); }
.inst-group__note { grid-column: 1 / -1; margin-top: calc(-1 * var(--space-3)); }

.field { min-width: 0; }
fieldset.field { margin: 0; padding: 0; border: 0; }
.field__label {
  display: block;
  margin-bottom: 6px;
  padding: 0;
  font-weight: 600;
  color: var(--color-espresso);
}
.req { color: var(--color-error); }
.field__optional { font-weight: 400; color: var(--color-muted); }
.field__hint { margin-top: 6px; font-size: var(--fs-small); color: var(--color-muted); }
.field__error {
  display: flex;
  gap: 6px;
  margin-top: 6px;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--color-error);
}
.field__error:empty { display: none; }
.field__error .icon { width: 18px; height: 18px; margin-top: 1px; }

.input {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid var(--color-pebble);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  color: var(--color-espresso);
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.input::placeholder { color: var(--color-muted); opacity: 1; }
.input:hover { border-color: var(--color-charcoal); }
.input:focus { outline: none; }
.input:focus,
.input:focus-visible {
  border-color: var(--color-lagoon);
  box-shadow: 0 0 0 1px var(--color-lagoon), 0 0 0 4px rgba(21, 94, 117, 0.2);
}
.input[aria-invalid="true"] { border-color: var(--color-error-border); }
.input[aria-invalid="true"]:focus { box-shadow: 0 0 0 1px var(--color-error-border), 0 0 0 4px rgba(220, 38, 38, 0.16); }
.input:disabled { background: var(--color-disabled-bg); border-color: var(--color-hairline); cursor: not-allowed; }

.select {
  appearance: none;
  padding-right: 40px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--color-charcoal) 50%),
    linear-gradient(135deg, var(--color-charcoal) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}
.textarea { min-height: 120px; resize: vertical; }

.input-group { display: flex; }
.input-group__prefix {
  display: flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--color-pebble);
  border-right: 0;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  background: var(--color-baby-mist);
  color: var(--color-espresso);
  font-weight: 600;
}
.input-group .input { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

.choice-group__row { display: flex; flex-wrap: wrap; gap: 0 var(--space-5); }
.choice {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  cursor: pointer;
}
.choice input {
  width: 20px; height: 20px;
  flex: none;
  margin: 0;
  accent-color: var(--color-lagoon);
}
.choice--top { align-items: flex-start; padding-top: 10px; }
.choice--top input { margin-top: 3px; }
.choice input[aria-invalid="true"] { outline: 2px solid var(--color-error-border); outline-offset: 2px; }

.error-summary {
  margin-bottom: var(--space-5);
  padding: var(--space-4);
  border: 2px solid var(--color-error-border);
  border-radius: var(--radius-sm);
  background: var(--color-error-bg);
}
.error-summary:focus { outline: 3px solid var(--color-lagoon); outline-offset: 3px; }
.error-summary__title { font-family: var(--font-body); font-size: 1rem; font-weight: 600; }
.error-summary__list { margin-top: var(--space-2); padding-left: 1.25em; list-style: disc; }
.error-summary__list a { color: var(--color-error); font-weight: 600; }

.form-success {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
  padding: var(--space-4);
  border-left: 4px solid var(--color-success);
  border-radius: var(--radius-sm);
  background: var(--color-success-tint);
  color: var(--color-espresso);
}
.form-success:empty { display: none; }
.form-success:focus { outline: 3px solid var(--color-lagoon); outline-offset: 3px; }
.form-success .icon { color: var(--color-success); margin-top: 2px; }

.info-card {
  padding: var(--space-5);
  background: var(--color-baby-mist);
  border: 1px solid var(--color-hairline-strong);
  border-radius: var(--radius-lg);
}
.info-card__title { margin-bottom: var(--space-4); font-size: var(--fs-h3); font-weight: 700; }
.info-list { display: grid; gap: var(--space-4); }
.info-list li { display: flex; gap: var(--space-3); }
.info-list .icon { margin-top: 3px; color: var(--color-lagoon); }
.info-list .link { overflow-wrap: anywhere; }
.info-list__label { display: block; color: var(--color-espresso); }

.social { display: flex; gap: var(--space-2); margin-top: var(--space-5); }
.social__link {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border: 1px solid var(--color-pebble);
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-espresso);
  font-size: var(--fs-small);
  font-weight: 600;
  text-decoration: none;
}
.social__link:hover { border-color: var(--color-lagoon); color: var(--color-lagoon); }

/* ---------- 16. Footer ---------- */
.site-footer {
  padding: var(--space-8) 0 calc(96px + env(safe-area-inset-bottom));
  background: var(--color-baby-mist);
  border-top: 1px solid var(--color-hairline-strong);
  color: var(--color-charcoal);
}
.footer__grid { display: grid; gap: var(--space-4); }
.footer__tagline { margin-top: var(--space-2); max-width: 36ch; }

.footer__group { border-bottom: 1px solid var(--color-hairline-strong); }
.footer__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-espresso);
  list-style: none;
  cursor: pointer;
}
.footer__summary::-webkit-details-marker { display: none; }
.footer__summary::after { content: "+"; font-size: 1.25rem; line-height: 1; color: var(--color-lagoon); transition: transform var(--dur-fast) var(--ease-out); }
.footer__group[open] .footer__summary::after { transform: rotate(45deg); }

.footer__links { padding-bottom: var(--space-3); }
.footer__links a {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--color-charcoal);
  text-decoration: none;
}
.footer__links a:hover { color: var(--color-lagoon); text-decoration: underline; text-underline-offset: 3px; }

.newsletter { margin-top: var(--space-4); }
.newsletter__label { display: block; margin-bottom: var(--space-2); color: var(--color-espresso); font-weight: 600; }
.newsletter__row { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.newsletter__input { flex: 1 1 180px; width: auto; }
.newsletter__status { margin-top: var(--space-2); font-size: var(--fs-small); }
.newsletter__status.is-error { color: var(--color-error); }
.newsletter__status.is-success { color: var(--color-success); }

.footer__disc { max-width: 90ch; margin-top: var(--space-7); font-size: var(--fs-xs); color: var(--color-muted); }

.footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-hairline-strong);
  font-size: var(--fs-small);
  text-align: center;
}

/* ---------- 17. Floating WhatsApp ---------- */
.wa-fab {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 40;
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border: 2px solid var(--color-white);
  border-radius: 50%;
  background: var(--color-whatsapp);
  color: var(--color-espresso);
  box-shadow: 0 12px 28px -6px rgba(42, 37, 34, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), visibility 0s linear var(--dur);
}
.wa-fab.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), visibility 0s;
}
.wa-fab:hover { background: var(--color-whatsapp-hover); }
.wa-fab:focus-visible { outline: 3px solid var(--color-lagoon); outline-offset: 3px; box-shadow: 0 0 0 6px var(--color-white); }
body.is-locked .wa-fab { opacity: 0; visibility: hidden; }

/* ---------- 18. Specs & options dialog ---------- */
.modal {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--color-white);
  color: var(--color-charcoal);
}
.modal::backdrop {
  background: rgba(42, 37, 34, 0.45);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.modal__inner { padding: var(--space-5) var(--space-5) 0; }
.modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-4); }
.modal__head .eyebrow { margin-bottom: var(--space-1); }
.modal__title { font-size: var(--fs-h3); font-weight: 800; }
.modal__title:focus { outline: none; }
.modal__meta { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-2); }

.modal__media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  margin-top: var(--space-5);
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 155, 84, 0.3) 0, rgba(255, 155, 84, 0) 34%),
    linear-gradient(180deg, var(--color-baby-mist), var(--color-baby));
  overflow: hidden;
}
.modal__bike { width: 62%; height: auto; aspect-ratio: 240 / 140; color: var(--color-lagoon); }

.modal__subtitle { margin: var(--space-6) 0 var(--space-3); font-size: var(--fs-h4); font-weight: 700; }

.table-scroll { overflow-x: auto; }
.spec-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.spec-table th,
.spec-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--color-hairline);
  text-align: left;
  vertical-align: top;
}
.spec-table th { width: 45%; font-weight: 500; color: var(--color-muted); }
.spec-table td { color: var(--color-espresso); }
.spec-table--grid th { width: auto; }
.option-card--peach .spec-table th,
.option-card--peach .spec-table td { border-bottom-color: var(--color-peach-line); }

.modal__options { display: grid; gap: var(--space-4); }
.option-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-md);
}
.option-card--peach { background: var(--color-peach); border-color: var(--color-peach-line); }
.option-card__title { font-size: var(--fs-h4); font-weight: 700; }
.option-card__price { font-family: var(--font-heading); font-size: var(--fs-price); font-weight: 700; color: var(--color-espresso); }
.option-card__text { font-size: var(--fs-small); }
.option-card .btn { margin-top: auto; }

.modal__delivery {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-5);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  background: var(--color-baby-mist);
  color: var(--color-espresso);
  font-size: var(--fs-small);
}
.modal__delivery .icon { margin-top: 2px; color: var(--color-lagoon); }
.modal__disclaimer { margin-top: var(--space-3); font-size: var(--fs-xs); color: var(--color-muted); }

.modal__ctas {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  margin: var(--space-5) calc(-1 * var(--space-5)) 0;
  padding: var(--space-3) var(--space-5) calc(var(--space-3) + env(safe-area-inset-bottom));
  background: var(--color-white);
  border-top: 1px solid var(--color-hairline);
}

/* ==========================================================================
   Breakpoints
   ========================================================================== */

/* ---------- sm: 640px ---------- */
@media (min-width: 640px) {
  .hero__ctas,
  .empty__actions { flex-direction: row; flex-wrap: wrap; }

  .model-count { order: 0; flex-basis: auto; flex: 1 1 auto; }
  .sort { margin-left: 0; }
  .sort__label {
    position: static;
    width: auto; height: auto;
    margin: 0;
    overflow: visible; clip: auto;
    font-size: var(--fs-small);
    font-weight: 600;
    color: var(--color-espresso);
  }

  .usp__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }

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

  .product-grid { max-width: 560px; margin-inline: auto; }

  .quick { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field--full,
  .choice-group { grid-column: 1 / -1; }
  .form-grid__sub { grid-template-columns: repeat(2, minmax(0, 1fr)); }

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

  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-6); }
  .footer__brand,
  .newsletter { grid-column: 1 / -1; }

  .modal {
    width: min(820px, calc(100% - 32px));
    height: auto;
    max-height: calc(100dvh - 32px);
    margin: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-2);
  }
  .modal__inner { padding: var(--space-6) var(--space-6) 0; }
  .modal__ctas {
    margin-inline: calc(-1 * var(--space-6));
    padding-inline: var(--space-6);
    display: flex;
    justify-content: flex-end;
  }
}

/* ---------- md: 768px ---------- */
@media (min-width: 768px) {
  .nav__actions .nav__lang { display: inline-flex; }

  .hero__stage { margin-inline: 0; aspect-ratio: 16 / 10; }
  .hero__ph { border-radius: var(--radius-lg); }
  .hero__facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  .brands__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-4); }
  .brands__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  /* Side sheet (768-1023) */
  .filter-panel {
    top: 0; bottom: 0; left: auto; right: 0;
    width: min(400px, 100%);
    max-height: none;
    height: 100dvh;
    border-radius: var(--radius-xl) 0 0 var(--radius-xl);
    transform: translateX(100%);
  }
  .filter-panel__head::before { display: none; }
  .filter-panel__head { padding-top: 16px; }

  .product-grid {
    max-width: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  /* Odd last visible card spans both columns as a horizontal card (class set by JS) */
  .product-grid__item.is-wide { grid-column: 1 / -1; }
  .product-grid__item.is-wide .product-card { flex-direction: row; }
  .product-grid__item.is-wide .product-card__media { flex: 0 0 45%; aspect-ratio: auto; min-height: 100%; }

  .paths { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .step { flex-direction: column; align-items: flex-start; padding: var(--space-4); }

  .regions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .region { grid-template-columns: minmax(0, 1fr); }
  .region__icon { grid-row: auto; margin-bottom: var(--space-2); }

  .form-card { padding: var(--space-6); }

  /* Footer accordions become always-open columns (JS keeps them open) */
  .footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__group { border-bottom: 0; }
  .footer__summary { min-height: 0; margin-bottom: var(--space-2); cursor: default; }
  .footer__summary::after { display: none; }

  .footer__bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* ---------- lg: 1024px ---------- */
@media (min-width: 1024px) {
  :root { --header-h: 76px; }

  .nav__primary { display: block; }
  .nav__cta--full { display: inline-flex; }
  .nav__cta--short,
  .nav__toggle { display: none; }

  /* Hero: 12-column split, stage bleeds to the right viewport edge */
  .hero { padding-bottom: var(--space-9); }
  .hero__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--space-6);
    row-gap: var(--space-5);
    align-items: center;
  }
  .hero__copy { grid-column: 1 / 7; grid-row: 1; }
  .hero__stage {
    grid-column: 7 / 13;
    grid-row: 1;
    align-self: stretch; /* match the copy column so the facts card overlaps its bottom edge */
    aspect-ratio: auto;
    min-height: clamp(460px, 64vh, 740px);
    margin-right: calc((100vw - min(100vw, var(--container) + 2 * var(--gutter))) / -2 - var(--gutter));
  }
  .hero__ph { border-radius: var(--radius-lg) 0 0 var(--radius-lg); }
  .hero__facts {
    position: relative;
    z-index: 2;
    grid-column: 7 / 13;
    grid-row: 2;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin: -88px var(--space-5) 0;
    padding: var(--space-2);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--color-hairline);
    border-radius: 20px;
    box-shadow: var(--shadow-2);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }
  .fact { background: transparent; border: 0; border-radius: 0; }
  .fact::before {
    content: "";
    display: block;
    order: 3;
    width: 24px; height: 3px;
    margin-bottom: 6px;
    border-radius: var(--radius-pill);
    background: var(--color-orange);
  }
  .hero__note { grid-column: 1 / 7; grid-row: 2; align-self: end; }

  .usp__list { grid-template-columns: repeat(5, minmax(0, 1fr)); }

  /* Catalogue: sticky sidebar + grid */
  .catalogue {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: var(--space-6);
    align-items: start;
  }
  .filter-panel {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    left: auto; right: auto; bottom: auto;
    z-index: 1;
    width: auto;
    height: auto;
    max-height: calc(100dvh - var(--header-h) - 48px);
    border: 1px solid var(--color-hairline);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-1);
    visibility: visible;
    transform: none;
    transition: none;
  }
  .filter-panel__head { padding: 20px 20px 4px; }
  .filter-panel__close,
  .filter-panel__apply { display: none; }
  .filter-panel__foot { padding: 12px 20px 16px; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
  .filter-panel__reset { flex: 1; }

  .cat-toolbar {
    position: static;
    margin-inline: 0;
    padding: 0;
    background: transparent;
    border: 0;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .cat-toolbar__filters { display: none; }
  .chips { margin-top: var(--space-3); }

  .features__split { grid-template-columns: 5fr 7fr; align-items: start; }
  .features__media { position: sticky; top: calc(var(--header-h) + 24px); }
  .features__ph { aspect-ratio: 4 / 5; }

  .delivery { grid-template-columns: 7fr 5fr; align-items: center; column-gap: var(--space-8); }

  /* Contact: form 7/12, quick + info stacked 5/12 */
  .contact__layout {
    grid-template-columns: 7fr 5fr;
    grid-template-areas:
      "form quick"
      "form info";
    grid-template-rows: auto 1fr;
    column-gap: var(--space-6);
    align-items: start;
  }
  .quick { grid-template-columns: minmax(0, 1fr); }

  .footer__grid {
    grid-template-columns: 4fr 2fr 2fr 2fr 3fr;
    column-gap: var(--space-6);
  }
  .footer__brand,
  .newsletter { grid-column: auto; }
  .newsletter { margin-top: 0; }

  .wa-fab { right: 32px; bottom: calc(32px + env(safe-area-inset-bottom)); }
}

/* 2-column card layouts (768px and up): keep the odd-last horizontal card */
@media (min-width: 1024px) {
  .product-grid__item.is-wide .product-card__media { flex-basis: 42%; }
}

/* ---------- xl: 1280px ---------- */
@media (min-width: 1280px) {
  .nav__links { gap: 28px; }
  .nav__wa { display: inline-flex; }

  /* Hero facts stay 2x2: in the 6/12 stage column a 4-up row wraps "Peninsular · Sabah · Sarawak" badly */

  /* Cards stay 2-up beside the 280px sidebar: 3-up made them ~270px and cramped the specs */

  .quick { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .quick__btn { padding-inline: 12px; }
}

/* ---------- 2xl: 1536px ---------- */
@media (min-width: 1536px) {
  .hero__stage { min-height: 720px; }
}

/* ==========================================================================
   Motion (only when the user has not asked for reduced motion)
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  .btn--primary:hover,
  .btn--secondary:hover,
  .btn--wa:hover { transform: translateY(-1px); }
  .btn:active { transform: translateY(0); }
  .link:hover [aria-hidden="true"] { transform: translateX(4px); }
  .product-card:hover { transform: translateY(-3px); }
  .product-card:hover .product-card__bike { transform: scale(1.03); }
  .tile:hover { transform: translateY(-2px); }
  .wa-fab.is-visible:hover { transform: scale(1.05); }

  .hero__copy > * { animation: rise var(--dur-slow) var(--ease-out) both; }
  .hero__copy > :nth-child(2) { animation-delay: 80ms; }
  .hero__copy > :nth-child(3) { animation-delay: 160ms; }
  .hero__copy > :nth-child(4) { animation-delay: 240ms; }
  .hero__copy > :nth-child(5) { animation-delay: 320ms; }
  .hero__bike { animation: drive-in 640ms var(--ease-out) 120ms both; }
  .hero__sun { animation: sun-rise 800ms var(--ease-out) both; }

  .product-grid.is-fading { animation: fade-in var(--dur-fast) var(--ease-out); }

  @keyframes rise {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
  }
  @keyframes drive-in {
    from { opacity: 0; transform: translateX(32px); }
    to { opacity: 1; transform: none; }
  }
  @keyframes sun-rise {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: none; }
  }
  @keyframes fade-in {
    from { opacity: 0.4; }
    to { opacity: 1; }
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
  .btn:hover,
  .product-card:hover,
  .product-card:hover .product-card__bike,
  .tile:hover,
  .link:hover [aria-hidden="true"],
  .wa-fab { transform: none !important; }
}
