/* ==========================================================================
   Zontes Care — customer storefront & owner portal (Release B, written from scratch)
   Flagship "store" look: generous whitespace, native system type, quiet surfaces,
   GPU-only motion (opacity/transform), tactile swipe rails, Wallet-style warranty pass.
   Admin pages never load this file (they use admin-theme.css + care-admin.css).
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --ink: #1d1d1f;
  --ink-2: #424245;
  --muted: #6e6e73;
  --faint: #86868b;
  --line: #d2d2d7;
  --line-soft: #e8e8ed;
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --bg-dark: #101012;
  --brand: #c8102e;
  --brand-ink: #a50d26;
  --brand-soft: #fdecef;
  --link: #0066cc;
  --ok: #1a7f37;
  --ok-soft: #e7f6ec;
  --warn: #9a6700;
  --warn-soft: #fff4d6;
  --off: #c8102e;
  --off-soft: #fdecef;
  --info: #0b5cad;
  --info-soft: #e8f1fc;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue",
          "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --r-sm: 10px;
  --r: 14px;
  --r-lg: 22px;
  --r-xl: 30px;
  --pill: 980px;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;

  --shadow-1: 0 1px 2px rgba(0, 0, 0, .04), 0 4px 16px rgba(0, 0, 0, .05);
  --shadow-2: 0 2px 6px rgba(0, 0, 0, .06), 0 18px 48px rgba(0, 0, 0, .12);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --nav-h: 56px;
  --wrap: 1120px;
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.5; letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
body.has-sheet { overflow: hidden; }
/* Top navigation loading bar */
.nav-bar { position: fixed; top: 0; left: 0; z-index: 9999; height: 3px; background: var(--brand); width: 0; transition: width .4s var(--ease), opacity .3s; opacity: 0; pointer-events: none; border-radius: 0 2px 2px 0; }
.nav-bar.is-loading { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .nav-bar { transition: none; } }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.022em; line-height: 1.1; color: var(--ink); }
p { margin: 0; }
p + p { margin-top: var(--s4); }
code, .mono { font-family: var(--mono); font-size: .92em; letter-spacing: 0; }
hr { border: 0; border-top: 1px solid var(--line-soft); margin: var(--s6) 0; }
:focus-visible { outline: 3px solid rgba(0, 102, 204, .45); outline-offset: 2px; border-radius: 6px; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--pill); }
.skip-link:focus { left: 16px; }
.visually-hidden, .sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* 3. Layout ---------------------------------------------------------------- */
.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.wrap--mid { width: min(960px, 100% - 48px); margin-inline: auto; }
.wrap--narrow { width: min(720px, 100% - 48px); margin-inline: auto; }
.wrap--form { width: min(640px, 100% - 48px); margin-inline: auto; }
.section { padding-block: var(--s9); }
.section--tight { padding-block: var(--s8); }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--bg-dark); color: #f5f5f7; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #f5f5f7; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto var(--s7); }
.section-head .lede { margin-top: var(--s4); }
.stack > * + * { margin-top: var(--s5); }
.stack-lg > * + * { margin-top: var(--s7); }
.grid-2 { display: grid; gap: var(--s5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-3 { display: grid; gap: var(--s5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.split { display: grid; gap: var(--s7); grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: var(--s6); } }
@media (max-width: 734px) {
  body { font-size: 16px; }
  .section { padding-block: var(--s8); }
  .section--tight { padding-block: var(--s7); }
  .wrap, .wrap--mid, .wrap--narrow, .wrap--form { width: calc(100% - 40px); }
}

/* 4. Type scale ------------------------------------------------------------ */
.eyebrow { display: block; font-size: .82rem; font-weight: 600; letter-spacing: .02em; color: var(--brand); margin-bottom: var(--s3); }
.display { font-size: clamp(2.6rem, 6.4vw, 5rem); line-height: 1.04; letter-spacing: -.035em; }
.headline { font-size: clamp(2rem, 4.6vw, 3.5rem); line-height: 1.07; letter-spacing: -.03em; }
.title-1 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
.title-2 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); letter-spacing: -.018em; }
.title-3 { font-size: 1.15rem; letter-spacing: -.012em; }
.lede { font-size: clamp(1.1rem, 1.8vw, 1.35rem); line-height: 1.45; color: var(--muted); letter-spacing: -.012em; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.tiny { font-size: .78rem; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.prose { color: var(--ink-2); max-width: 70ch; }
.prose h2 { font-size: 1.45rem; margin: var(--s7) 0 var(--s4); color: var(--ink); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.15rem; margin: var(--s6) 0 var(--s3); }
.prose p, .prose ul, .prose ol { margin: 0 0 var(--s4); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: var(--s2); }
.prose strong { color: var(--ink); }

/* 5. Buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 46px; padding: 12px 24px; border-radius: var(--pill); border: 1px solid transparent;
  font: 600 1rem/1.2 var(--font); letter-spacing: -.01em; text-align: center; text-decoration: none !important;
  cursor: pointer; background: var(--bg-alt); color: var(--ink); white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .18s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow .2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn:not([disabled]):not(.is-disabled):hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,.12); }
.btn[disabled], .btn.is-disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn--primary, .btn-primary { background: var(--brand); color: #fff; }
.btn--primary:hover, .btn-primary:hover { background: var(--brand-ink); }
.btn--dark, .btn-dark { background: var(--ink); color: #fff; }
.btn--dark:hover, .btn-dark:hover { background: #000; }
.btn--light { background: var(--line-soft); color: var(--ink); }
.btn--light:hover { background: #dcdce1; }
.btn--ghost, .btn-outline, .btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--ghost:hover, .btn-outline:hover, .btn-ghost:hover { border-color: var(--ink); }
.btn--on-dark { background: rgba(255, 255, 255, .14); color: #fff; }
.btn--on-dark:hover { background: rgba(255, 255, 255, .24); }
.btn--danger, .btn-danger { background: var(--off-soft); color: var(--off); }
.btn--danger:hover, .btn-danger:hover { background: #f9d3da; }
.btn--link { background: none; padding: 0; min-height: 0; color: var(--link); font-weight: 500; }
.btn--link:hover { text-decoration: underline !important; }
.btn--sm, .btn-sm { min-height: 36px; padding: 8px 16px; font-size: .9rem; }
.btn--lg { min-height: 54px; padding: 15px 32px; font-size: 1.08rem; }
.btn--block { display: flex; width: 100%; }
.btn-row, .actions-row, .actions, .dash-actions, .care-actions { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }
.btn-row--center { justify-content: center; }
.link-arrow { font-weight: 500; }
.link-arrow::after { content: " ›"; }

/* 6. Global navigation ------------------------------------------------------ */
.gnav {
  position: sticky; top: 0; z-index: 90; height: var(--nav-h);
  background: rgba(255, 255, 255, .78); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, .08);
}
.gnav__inner { height: 100%; display: flex; align-items: center; gap: var(--s5); }
.gnav__brand { font-weight: 800; letter-spacing: .06em; font-size: 1rem; color: var(--ink); text-decoration: none !important; white-space: nowrap; }
.gnav__brand span { color: var(--brand); }
.gnav__links { display: flex; align-items: center; gap: var(--s1); margin-left: auto; }
.gnav__links a { color: var(--ink-2); font-size: .9rem; padding: 8px 12px; border-radius: var(--pill); text-decoration: none; transition: color .2s, background-color .2s; }
.gnav__links a:hover, .gnav__links a[aria-current="page"] { color: var(--ink); background: rgba(0, 0, 0, .05); }
.gnav__tools { display: flex; align-items: center; gap: var(--s2); }
.gnav__icon {
  position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  color: var(--ink); background: transparent; border: 0; cursor: pointer; text-decoration: none !important;
}
.gnav__icon:hover { background: rgba(0, 0, 0, .05); }
.gnav__icon svg { width: 20px; height: 20px; }
.gnav__count { position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--brand); color: #fff; font-size: .7rem; font-weight: 700; display: grid; place-items: center; }
.gnav__account { font-size: .88rem; font-weight: 600; padding: 8px 16px; border-radius: var(--pill); background: var(--ink); color: #fff; text-decoration: none !important; white-space: nowrap; }
.gnav__account:hover { background: #000; }
.gnav__toggle { display: none; }
.gnav__sheet { display: none; }
@media (max-width: 1023px) {
  .gnav__links, .gnav__account--desk { display: none; }
  .gnav__tools { margin-left: auto; }
  .gnav__toggle { display: inline-grid; }
  /* Sheet is a sibling of <header> in the DOM so backdrop-filter on .gnav
     does not create a containing block that would trap position:fixed children.
     Use explicit top/right/bottom/left (not the inset shorthand) for Samsung
     Internet compatibility, plus an explicit height so the drawer fills the
     full viewport below the nav on all mobile/tablet browsers. */
  .gnav__sheet {
    display: block;
    position: fixed;
    top: var(--nav-h); right: 0; bottom: 0; left: 0;
    height: calc(100dvh - var(--nav-h));
    height: calc(100vh - var(--nav-h));
    z-index: 89;
    background: rgba(255, 255, 255, .97);
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    padding: var(--s5) 28px var(--s8);
    overflow-y: auto; -webkit-overflow-scrolling: touch;
    opacity: 0; transform: translate3d(0, -6px, 0); pointer-events: none;
    transition: opacity .22s var(--ease), transform .22s var(--ease);
  }
  body.has-sheet .gnav__sheet { opacity: 1; transform: none; pointer-events: auto; }
  .gnav__sheet a { display: block; padding: 14px 0; font-size: 1.35rem; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line-soft); text-decoration: none; }
  .gnav__sheet .gnav__sheet-group { margin-top: var(--s6); font-size: .8rem; font-weight: 600; color: var(--muted); }
  .gnav__sheet .gnav__sheet-group + a { border-top: 0; }
}
.subnav {
  position: sticky; top: var(--nav-h); z-index: 80; background: rgba(251, 251, 253, .85);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0, 0, 0, .06);
}
.subnav__inner { display: flex; align-items: center; gap: var(--s5); min-height: 52px; }
.subnav__title { font-weight: 600; font-size: 1.15rem; letter-spacing: -.015em; white-space: nowrap; }
.subnav__links { display: flex; gap: var(--s1); margin-left: auto; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.subnav__links::-webkit-scrollbar { display: none; }
.subnav__links a { font-size: .85rem; color: var(--ink-2); padding: 8px 12px; border-radius: var(--pill); white-space: nowrap; text-decoration: none; }
.subnav__links a:hover { color: var(--ink); }
.subnav__links a.is-on { color: var(--ink); background: rgba(0, 0, 0, .06); font-weight: 600; }
@media (max-width: 734px) { .subnav__title { display: none; } .subnav__links { margin-left: 0; } }

/* 7. Hero ------------------------------------------------------------------ */
.hero { position: relative; overflow: hidden; text-align: center; padding: var(--s9) 0 var(--s7); }
.hero > .wrap { position: relative; z-index: 1; }
.hero .lede { max-width: 640px; margin: var(--s5) auto 0; }
.hero .btn-row { justify-content: center; margin-top: var(--s6); }
.hero__media { margin-top: var(--s7); }
.hero--page { padding: var(--s8) 0 var(--s6); }
.hero--page .display, .hero--page .headline { font-size: clamp(2.2rem, 5vw, 3.75rem); }
.hero--left { text-align: left; }
.hero--left .lede { margin-left: 0; }
.hero--left .btn-row { justify-content: flex-start; }
/* Ambient gradient mesh on hero — slow colour drift */
.hero::before { content: ''; position: absolute; inset: 0; z-index: 0; background: radial-gradient(ellipse 80% 60% at 20% 40%, rgba(200,16,46,.07) 0%, transparent 70%), radial-gradient(ellipse 60% 80% at 80% 60%, rgba(96,16,200,.05) 0%, transparent 70%); animation: hero-mesh 10s ease-in-out infinite alternate; pointer-events: none; }
@keyframes hero-mesh { from { opacity: .6; transform: scale(1); } to { opacity: 1; transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .hero::before { animation: none; } }
/* YouTube ambient background video — poster hold-screen + smooth fade-in */
.hero__bg-video { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; display: none; }
.hero--has-video .hero__bg-video { display: block; }
.hero__bg-poster { position: absolute; inset: 0; background-size: cover; background-position: center; background-repeat: no-repeat; }
.hero__bg-poster::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,.58) 0%, rgba(0,0,0,.45) 60%, rgba(0,0,0,.62) 100%); }
.hero__bg-frame { position: absolute; inset: 0; overflow: hidden; }
.hero__bg-frame::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,.58) 0%, rgba(0,0,0,.45) 60%, rgba(0,0,0,.62) 100%); z-index: 1; }
.hero__bg-frame iframe { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(1.14); min-width: 177.78vh; min-height: 56.25vw; width: 100%; height: 100%; border: none; opacity: 0; transition: opacity .8s ease; }
.hero__bg-frame iframe.is-playing { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .hero__bg-frame iframe { transition: none; opacity: 1; } }
/* Fix 1: Hero text always white + legible when video is active */
.hero--has-video .eyebrow,
.hero--has-video .display,
.hero--has-video .lede { color: #fff !important; text-shadow: 0 2px 16px rgba(0,0,0,.45); }
.hero--has-video .btn--light { background: rgba(255,255,255,.18); color: #fff !important; border: 1.5px solid rgba(255,255,255,.55); }
.hero--has-video .btn--light:hover { background: rgba(255,255,255,.28); border-color: #fff; }
.hero--has-video .btn--ghost, .hero--has-video .btn--outline, .hero--has-video .btn-ghost { color: #fff; border-color: rgba(255,255,255,.55); }
.hero--has-video .btn--ghost:hover, .hero--has-video .btn--outline:hover, .hero--has-video .btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }

/* 8. Tiles & cards ---------------------------------------------------------- */
.tile-grid { display: grid; gap: var(--s5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.tile {
  position: relative; display: flex; flex-direction: column; gap: var(--s3); padding: var(--s7) var(--s6);
  border-radius: var(--r-xl); background: var(--bg-alt); color: var(--ink); text-decoration: none !important; overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
a.tile:hover { transform: translate3d(0, -5px, 0) scale(1.008); box-shadow: var(--shadow-2); transition: transform .35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow .35s var(--ease); }
.tile--white { background: var(--bg); box-shadow: var(--shadow-1); }
.tile--dark { background: var(--bg-dark); color: #f5f5f7; }
.tile--dark h3, .tile--dark h2 { color: #f5f5f7; }
.tile--dark .muted { color: #a1a1a6; }
.tile--brand { background: linear-gradient(135deg, #c8102e, #7d0a1d); color: #fff; }
.tile--brand h3, .tile--brand h2 { color: #fff; }
.tile--brand .muted { color: rgba(255, 255, 255, .78); }
.tile__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(200, 16, 46, .1); color: var(--brand); margin-bottom: var(--s2); }
.tile--dark .tile__icon, .tile--brand .tile__icon { background: rgba(255, 255, 255, .14); color: #fff; }
.tile__icon svg { width: 22px; height: 22px; }
.tile .link-arrow { margin-top: auto; padding-top: var(--s4); color: var(--link); }
.tile--dark .link-arrow, .tile--brand .link-arrow { color: #fff; }
.card { background: var(--bg); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: var(--s6); box-shadow: var(--shadow-1); }
.card + .card { margin-top: var(--s5); }
.card--flat { box-shadow: none; }
.card--alt { background: var(--bg-alt); border-color: transparent; box-shadow: none; }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; margin-bottom: var(--s5); }
.card__head h2, .card__head h3 { font-size: 1.3rem; }
.card__foot { margin-top: var(--s5); padding-top: var(--s5); border-top: 1px solid var(--line-soft); }
@media (max-width: 734px) { .card { padding: var(--s5); } .tile { padding: var(--s6) var(--s5); border-radius: var(--r-lg); } }

/* 9. Forms ----------------------------------------------------------------- */
.form > * + * { margin-top: var(--s5); }
.fields { display: grid; gap: var(--s5) var(--s5); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fields > .field--full, .fields > .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .fields { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: var(--s2); min-width: 0; }
.field__label, .field > label, .form-group > label { font-size: .92rem; font-weight: 600; color: var(--ink); letter-spacing: -.005em; }
.req { color: var(--brand); font-weight: 700; }
.field__hint, .form-hint, .field-hint { font-size: .85rem; line-height: 1.45; color: var(--muted); }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=date],
input[type=search], input:not([type]), select, textarea {
  width: 100%; min-height: 50px; padding: 13px 16px; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--bg); color: var(--ink); font: 400 1rem/1.35 var(--font); letter-spacing: -.01em;
  transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none;
}
textarea { min-height: 110px; resize: vertical; }
select {
  padding-right: 42px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%236e6e73' stroke-width='1.6' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--link); box-shadow: 0 0 0 4px rgba(0, 102, 204, .15); }
input[type=file] { width: 100%; padding: 14px; border: 1px dashed var(--line); border-radius: var(--r); background: var(--bg-alt); font: inherit; font-size: .92rem; }
input[type=checkbox], input[type=radio] { width: 20px; height: 20px; accent-color: var(--brand); }
.js-upper, .upper { text-transform: uppercase; }
.check { display: flex; align-items: flex-start; gap: var(--s3); font-size: .95rem; cursor: pointer; }
.form-actions { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; margin-top: var(--s7) !important; }
.form-actions .btn--primary { min-width: 200px; }
.form-legal { font-size: .82rem; color: var(--muted); margin-top: var(--s4); }
.captcha-box, .form-group.captcha-box { margin-top: var(--s6) !important; }
.captcha-box .form-hint { margin-top: var(--s2); }
.captcha-mock { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); max-width: 340px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-alt); }
.captcha-mock__check { display: flex; align-items: center; gap: var(--s3); font-size: .95rem; font-weight: 500; cursor: pointer; margin: 0; }
.captcha-mock__check input { width: 24px; height: 24px; }
.captcha-mock__brand { font-size: .7rem; color: var(--muted); text-align: right; line-height: 1.25; }
.captcha-mock__brand small { display: block; color: var(--warn); font-weight: 700; }
.captcha-mock.is-checking { opacity: .65; }
.captcha-mock.is-ok { border-color: var(--ok); background: var(--ok-soft); }
.zc-hp, .honeypot { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; font-weight: 700; font-size: 1.2rem; letter-spacing: -.015em; margin-bottom: var(--s5); }
.form-section + .form-section { margin-top: var(--s7); padding-top: var(--s7); border-top: 1px solid var(--line-soft); }
.form-section__num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; font-size: .85rem; font-weight: 700; margin-right: var(--s3); vertical-align: 2px; }

/* 10. Notices, chips, key/value --------------------------------------------- */
.notice, .alert { display: flex; gap: var(--s3); align-items: flex-start; padding: 16px 20px; border-radius: var(--r); background: var(--info-soft); color: #0a3d75; font-size: .95rem; line-height: 1.45; }
.notice + *, .alert + * { margin-top: var(--s5); }
.notice--error, .alert-error { background: var(--off-soft); color: #8c0b20; }
.notice--success, .alert-success { background: var(--ok-soft); color: #11552a; }
.notice--warn { background: var(--warn-soft); color: #6b4800; }
.notice a, .alert a { color: inherit; font-weight: 600; text-decoration: underline; }
.chip, .badge, .dash-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: var(--pill); font-size: .78rem; font-weight: 600; letter-spacing: 0; background: var(--line-soft); color: var(--ink-2); white-space: nowrap; }
.chip--ok, .dash-chip--ok, .badge-accepted, .badge-completed, .badge-ready, .badge-active, .badge-success { background: var(--ok-soft); color: var(--ok); }
.chip--warn, .dash-chip--warn, .badge-pending, .badge-rescheduled, .badge-picking { background: var(--warn-soft); color: var(--warn); }
.chip--off, .badge-declined, .badge-cancelled, .badge-no_show, .badge-rejected, .badge-revoked { background: var(--off-soft); color: var(--off); }
.chip--info, .dash-chip--ship, .dash-chip--live, .badge-default { background: var(--info-soft); color: var(--info); }
.chip--dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.kv, .dash-kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: var(--s5); margin: 0; }
.kv > div, .dash-kv > div { min-width: 0; }
.kv dt, .dash-kv dt { font-size: .8rem; color: var(--muted); margin-bottom: 4px; }
.kv dd, .dash-kv dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.list { list-style: none; margin: 0; padding: 0; }
.list > li { display: flex; justify-content: space-between; align-items: center; gap: var(--s4); padding: var(--s4) 0; border-bottom: 1px solid var(--line-soft); }
.list > li:last-child { border-bottom: 0; }
.empty, .empty-state { text-align: center; padding: var(--s8) var(--s5); color: var(--muted); }
.empty .btn, .empty-state .btn { margin-top: var(--s5); }

/* 11. Tables --------------------------------------------------------------- */
.table-wrap, .table-wrapper { overflow-x: auto; border-radius: var(--r); -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th { text-align: left; font-size: .8rem; font-weight: 600; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 14px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; }

/* 12. Swipe rail (carousel) -------------------------------------------------- */
.rail { position: relative; }
.rail__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(78%, 360px); gap: var(--s5);
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: max(24px, calc((100vw - var(--wrap)) / 2));
  padding: var(--s2) max(24px, calc((100vw - var(--wrap)) / 2)) var(--s5); scrollbar-width: none; -webkit-overflow-scrolling: touch; cursor: grab;
}
.rail__track::-webkit-scrollbar { display: none; }
.rail__track.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.rail__track.is-dragging a, .rail__track.is-dragging img { pointer-events: none; }
.rail--wide .rail__track { grid-auto-columns: min(88%, 760px); }
.rail__item { scroll-snap-align: start; min-width: 0; }
.rail__nav { display: flex; justify-content: flex-end; gap: var(--s3); width: min(var(--wrap), 100% - 48px); margin: 0 auto; }
.rail__btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--line-soft); color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: background-color .2s, opacity .2s; }
.rail__btn:hover { background: #dcdce1; }
.rail__btn[disabled] { opacity: .35; cursor: default; }
.rail__btn svg { width: 16px; height: 16px; }
.rail__dots { display: flex; justify-content: center; gap: 8px; margin-top: var(--s3); }
.rail__dot { width: 8px; height: 8px; border-radius: 4px; background: var(--line); border: 0; padding: 0; cursor: pointer; transition: width .3s var(--ease), background-color .3s; }
.rail__dot.is-on { width: 24px; background: var(--ink); }

/* 13. Model showcase cards --------------------------------------------------- */
.model-card { display: flex; flex-direction: column; height: 100%; border-radius: var(--r-lg); background: var(--bg); overflow: hidden; box-shadow: var(--shadow-1); color: var(--ink); text-decoration: none !important; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
a.model-card:hover { transform: translate3d(0, -4px, 0); box-shadow: var(--shadow-2); }
.model-card__media { aspect-ratio: 16 / 10; background: #111; overflow: hidden; }
.model-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
a.model-card:hover .model-card__media img { transform: scale(1.04); }
.model-card__body { padding: var(--s5); display: flex; flex-direction: column; gap: var(--s2); flex: 1; }
.model-card__name { font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em; }
.hero-shot { position: relative; border-radius: var(--r-xl); overflow: hidden; background: #0b0b0d; aspect-ratio: 16 / 8; }
.hero-shot img { width: 100%; height: 100%; object-fit: cover; }
.hero-shot__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: var(--s7) var(--s6) var(--s5); color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .65)); display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; }
.hero-shot__cap h3 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.25rem); }
.colour-dots { display: flex; gap: 6px; align-items: center; padding: 2px 0; }
.colour-dot { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(0,0,0,.25); flex-shrink: 0; }
.colour-dot::before { content: ''; display: block; width: 12px; height: 12px; border-radius: 50%; background: var(--dot-c, #888); border: 1.5px solid rgba(255,255,255,.55); pointer-events: none; transition: transform .3s cubic-bezier(0.34, 1.56, 0.64, 1); }
.colour-dot[data-colour-id] { cursor: pointer; }
.colour-dot[data-colour-id]:hover::before, .colour-dot[data-colour-id]:focus-visible::before { transform: scale(1.4); }
.colour-dot.is-active { outline: 2px solid #fff; outline-offset: 2px; }
.colour-dot.is-active::before { transform: scale(1.2); }
.hero-shot__img { display: contents; }
/* Colour dot on light backgrounds */
.colour-dot--light { background: rgba(0,0,0,.06); }
.colour-dot--light::before { border-color: rgba(0,0,0,.18); }
/* Compact colour dot on the wallet pass card (dark surface, no backing ring) */
.pass .colour-dot { width: 14px; height: 14px; background: none; }
.pass .colour-dot::before { width: 14px; height: 14px; }
.bike-colour { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 734px) { .hero-shot { aspect-ratio: 4 / 3; border-radius: var(--r-lg); } }

/* 14. Products & quick-view sheet -------------------------------------------- */
.product-grid { display: grid; gap: var(--s5); grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.product { display: flex; flex-direction: column; border-radius: var(--r-lg); background: var(--bg-alt); overflow: hidden; }
.product__media { aspect-ratio: 1 / 1; background: #fff; display: grid; place-items: center; overflow: hidden; }
.product__media img { width: 100%; height: 100%; object-fit: cover; }
.product__media .no-img { color: var(--faint); font-size: .85rem; }
.product__body { padding: var(--s5); display: flex; flex-direction: column; gap: var(--s2); flex: 1; }
.product__name { font-weight: 700; font-size: 1.08rem; letter-spacing: -.015em; }
.product__price { font-size: 1rem; color: var(--ink-2); }
.product__body .btn { margin-top: auto; align-self: flex-start; }
dialog.sheet {
  width: min(880px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); margin: auto; padding: 0;
  border: 0; border-radius: var(--r-xl); background: var(--bg); color: var(--ink); box-shadow: var(--shadow-2); overflow: hidden;
}
dialog.sheet[open] { display: flex; flex-direction: column; animation: sheetIn .32s var(--ease); }
dialog.sheet::backdrop { background: rgba(0, 0, 0, .45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fadeIn .25s ease; }
.sheet__scroll { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.sheet__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.sheet__media { background: var(--bg-alt); min-height: 260px; display: grid; place-items: center; }
.sheet__media img { width: 100%; height: 100%; object-fit: cover; }
.sheet__body { padding: var(--s7) var(--s6) var(--s6); display: flex; flex-direction: column; gap: var(--s4); }
.sheet__close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .06); color: var(--ink); font-size: 1.4rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.sheet__close:hover { background: rgba(0, 0, 0, .12); }
@media (max-width: 734px) {
  dialog.sheet { width: 100vw; max-height: 92dvh; margin: auto 0 0; border-radius: var(--r-xl) var(--r-xl) 0 0; }
  dialog.sheet[open] { animation: sheetUp .32s var(--ease); }
  .sheet__grid { grid-template-columns: 1fr; }
  .sheet__media { min-height: 0; aspect-ratio: 4 / 3; }
  .sheet__body { padding: var(--s6) var(--s5) calc(var(--s6) + env(safe-area-inset-bottom)); }
}
.size-picker { display: flex; flex-wrap: wrap; gap: var(--s2); }
.size-picker label { position: relative; }
.size-picker input { position: absolute; opacity: 0; pointer-events: none; }
.size-picker span { display: inline-grid; place-items: center; min-width: 54px; height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r-sm); font-weight: 600; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.size-picker input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.size-picker input:focus-visible + span { outline: 3px solid rgba(0, 102, 204, .45); outline-offset: 2px; }
.size-picker input:disabled + span { color: var(--faint); text-decoration: line-through; cursor: not-allowed; background: var(--bg-alt); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--pill); overflow: hidden; }
.qty button { width: 44px; height: 44px; border: 0; background: transparent; font-size: 1.25rem; cursor: pointer; color: var(--ink); }
.qty input { width: 52px; min-height: 44px; border: 0; text-align: center; padding: 0; border-radius: 0; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty input:focus { box-shadow: none; }

/* 15. Basket / summary ------------------------------------------------------ */
.line-item { display: grid; grid-template-columns: 1fr auto; gap: var(--s4); padding: var(--s5) 0; border-bottom: 1px solid var(--line-soft); }
.line-item:first-child { padding-top: 0; }
.line-item__name { font-weight: 600; }
.line-item__meta { font-size: .88rem; color: var(--muted); margin-top: 4px; }
.line-item__side { display: flex; flex-direction: column; align-items: flex-end; gap: var(--s2); }
.summary { position: sticky; top: calc(var(--nav-h) + 24px); }
.summary__row { display: flex; justify-content: space-between; gap: var(--s4); padding: var(--s3) 0; }
.summary__total { font-size: 1.3rem; font-weight: 700; border-top: 1px solid var(--line); margin-top: var(--s3); padding-top: var(--s4); }
.ref-code { font-family: var(--mono); font-size: clamp(2rem, 7vw, 3rem); font-weight: 700; letter-spacing: .06em; color: var(--ink); }

/* 16. Wallet-style warranty pass -------------------------------------------- */
.pass {
  position: relative; overflow: hidden; border-radius: 26px; color: #fff; isolation: isolate;
  background: radial-gradient(120% 90% at 0% 0%, #3a3a40 0%, #18181b 55%, #0b0b0d 100%);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .45), 0 2px 6px rgba(0, 0, 0, .2);
  transform-style: preserve-3d; transition: transform .15s var(--ease);
  transform: perspective(900px) rotateX(var(--ty, 0deg)) rotateY(var(--tx, 0deg));
}
.pass::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.08) 50%, transparent 65%); background-size: 200% 200%; animation: pass-shimmer 3s ease-in-out infinite; pointer-events: none; border-radius: inherit; }
@keyframes pass-shimmer { 0%, 100% { background-position: 200% 0; } 50% { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .pass::after { animation: none; } .pass { transition: none; transform: none; } }
.pass--off { background: radial-gradient(120% 90% at 0% 0%, #4a2a30 0%, #23161a 55%, #0f0a0b 100%); }
.pass__media { position: absolute; inset: 0; z-index: -2; opacity: .32; }
.pass__media img { width: 100%; height: 100%; object-fit: cover; }
.pass__head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s4); padding: var(--s5) var(--s5) 0; }
.pass__brand { font-weight: 800; letter-spacing: .08em; font-size: .95rem; }
.pass__brand span { color: #ff4d67; }
.pass__label { font-size: .68rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.pass__value { font-size: 1rem; font-weight: 600; margin-top: 2px; overflow-wrap: anywhere; }
.pass__model { padding: var(--s5) var(--s5) 0; }
.pass__model strong { display: block; font-size: clamp(1.8rem, 6vw, 2.4rem); line-height: 1; letter-spacing: -.03em; }
.pass__fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); padding: var(--s5); }
.pass__tiers { display: grid; gap: var(--s4); padding: 0 var(--s5) var(--s5); }
.tier { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .08); border-radius: 16px; padding: var(--s4); }
.tier__top { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s3); flex-wrap: wrap; }
.tier__name { font-weight: 600; font-size: .95rem; }
.tier__state { font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: var(--pill); background: rgba(52, 199, 89, .2); color: #6ee28b; }
.tier--off .tier__state { background: rgba(255, 77, 103, .2); color: #ff8a9b; }
.tier--pending .tier__state { background: rgba(255, 214, 10, .18); color: #ffd60a; }
.tier__terms { font-size: .78rem; color: rgba(255, 255, 255, .6); margin-top: 4px; }
.meter { margin-top: var(--s3); }
.meter__row { display: flex; justify-content: space-between; font-size: .76rem; color: rgba(255, 255, 255, .7); margin-bottom: 6px; gap: var(--s3); }
.meter__track { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.meter__fill { height: 100%; width: var(--pct, 0%); border-radius: inherit; background: linear-gradient(90deg, #34c759, #30d158); transform-origin: left; animation: meterGrow 1s var(--ease) both; }
.meter__fill.is-high { background: linear-gradient(90deg, #ff9f0a, #ffb340); }
.tier--off .meter__fill { background: linear-gradient(90deg, #ff375f, #ff6482); }
.tier__badge { margin-top: var(--s3); font-size: .8rem; font-weight: 700; color: #ff8a9b; }
.pass__foot { display: flex; align-items: center; gap: var(--s4); padding: var(--s5); border-top: 1px dashed rgba(255, 255, 255, .18); }
.pass__qr { flex: 0 0 auto; width: 96px; height: 96px; padding: 7px; border-radius: 14px; background: #fff; border: 0; cursor: zoom-in; transition: transform .2s var(--ease); }
.pass__qr:active { transform: scale(.96); }
.pass__qr svg { width: 100%; height: 100%; }
.pass__note { font-size: .8rem; color: rgba(255, 255, 255, .7); line-height: 1.45; }
.pass__odo { font-size: 1.6rem; font-weight: 700; letter-spacing: -.02em; }
@media (max-width: 420px) { .pass__fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
dialog.qr-zoom { border: 0; padding: var(--s6); border-radius: var(--r-xl); background: #fff; width: min(420px, calc(100vw - 32px)); text-align: center; box-shadow: var(--shadow-2); }
dialog.qr-zoom[open] { animation: sheetIn .28s var(--ease); }
dialog.qr-zoom::backdrop { background: rgba(0, 0, 0, .6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
dialog.qr-zoom svg { width: 100%; height: auto; margin: var(--s4) 0; }
.wallet-status { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--muted); }
.wallet-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.is-offline .wallet-status::before { background: var(--warn); }

/* Release A warranty block (service lookup) — store look */
.warranty-tiers { display: grid; gap: var(--s4); }
.warranty-tiers__title { font-size: 1.3rem; }
.warranty-tier { display: grid; gap: var(--s3); padding: var(--s5); border-radius: var(--r); background: var(--bg-alt); border-left: 4px solid var(--ok); }
.warranty-tier__head { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.warranty-tier__name { font-weight: 700; }
.warranty-tier__limit { font-size: .88rem; color: var(--muted); }
.warranty-tier__status { font-size: .78rem; font-weight: 700; padding: 4px 11px; border-radius: var(--pill); background: var(--ok-soft); color: var(--ok); }
.warranty-tier--expired_time, .warranty-tier--expired_mileage, .warranty-tier--revoked { border-left-color: var(--off); }
.warranty-tier--expired_time .warranty-tier__status, .warranty-tier--expired_mileage .warranty-tier__status, .warranty-tier--revoked .warranty-tier__status { background: var(--off-soft); color: var(--off); }
.warranty-tier--pending { border-left-color: var(--warn); }
.warranty-bars { display: grid; gap: var(--s2); }
.warranty-bar { display: grid; grid-template-columns: 5rem 1fr auto; gap: var(--s3); align-items: center; font-size: .82rem; color: var(--muted); }
.warranty-bar__track { height: 6px; border-radius: 3px; background: var(--line-soft); overflow: hidden; }
.warranty-bar__fill { display: block; height: 100%; border-radius: inherit; background: var(--ok); }
.warranty-tier--expired_time .warranty-bar__fill, .warranty-tier--expired_mileage .warranty-bar__fill, .warranty-tier--revoked .warranty-bar__fill { background: var(--off); }
.warranty-bar__value { white-space: nowrap; font-variant-numeric: tabular-nums; }
.warranty-badge { font-size: .85rem; font-weight: 700; }
.warranty-badge--off { color: var(--off); }
.warranty-odo { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px var(--s3); }
.warranty-odo__label { font-size: .8rem; color: var(--muted); }
.warranty-odo__value { font-size: 1.5rem; letter-spacing: -.02em; }
.warranty-odo__meta { font-size: .8rem; color: var(--muted); }
.warranty-policy-inline summary { cursor: pointer; font-weight: 600; margin-top: var(--s2); }
@media (max-width: 480px) { .warranty-bar { grid-template-columns: 1fr auto; } .warranty-bar__track { grid-column: 1 / -1; grid-row: 2; } }

/* 17. Timeline, steps, result ---------------------------------------------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline li { position: relative; padding: 0 0 var(--s5) var(--s6); }
.timeline li::before { content: ""; position: absolute; left: 6px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--line); }
.timeline li::after { content: ""; position: absolute; left: 11px; top: 22px; bottom: 0; width: 2px; background: var(--line-soft); }
.timeline li:last-child::after { display: none; }
.timeline li.is-done::before { background: var(--ok); }
.timeline li.is-now::before { background: var(--brand); box-shadow: 0 0 0 5px var(--brand-soft); }
.timeline strong { display: block; }
.progress-rail { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; margin: var(--s5) 0; }
.progress-rail span { height: 6px; border-radius: 3px; background: var(--line-soft); }
.progress-rail span.is-done { background: var(--ok); }
.progress-rail span.is-now { background: var(--brand); }
.result { text-align: center; padding: var(--s7) var(--s5); }
.result__icon { width: 64px; height: 64px; margin: 0 auto var(--s5); border-radius: 50%; display: grid; place-items: center; }
.result__icon svg { width: 30px; height: 30px; }
.result--ok .result__icon { background: var(--ok-soft); color: var(--ok); }
.result--off .result__icon { background: var(--warn-soft); color: var(--warn); }
.result h2 { font-size: 1.6rem; }
.result p { margin-top: var(--s3); color: var(--muted); }

/* 18. Footer --------------------------------------------------------------- */
.gfoot { background: var(--bg-alt); color: var(--muted); font-size: .8rem; padding: var(--s7) 0 var(--s6); margin-top: 0; }
.gfoot__grid { display: grid; gap: var(--s6); grid-template-columns: 1.4fr repeat(3, 1fr); padding-bottom: var(--s6); border-bottom: 1px solid var(--line); }
.gfoot h4 { font-size: .8rem; font-weight: 600; color: var(--ink); margin-bottom: var(--s3); letter-spacing: 0; }
.gfoot ul { list-style: none; margin: 0; padding: 0; }
.gfoot li + li { margin-top: var(--s2); }
.gfoot a { color: var(--ink-2); }
.gfoot__brand { font-weight: 800; letter-spacing: .06em; color: var(--ink); font-size: .95rem; margin-bottom: var(--s3); }
.gfoot__brand span { color: var(--brand); }
.gfoot__bottom { display: flex; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; padding-top: var(--s5); }
.footer-lang { display: flex; gap: var(--s2); align-items: center; }
.footer-lang__link { color: var(--ink-2); }
.footer-lang__link.active { color: var(--ink); font-weight: 700; }
.footer-lang__sep { color: var(--line); }
@media (max-width: 734px) { .gfoot__grid { grid-template-columns: 1fr 1fr; } .gfoot__grid > :first-child { grid-column: 1 / -1; } }

/* 19. Motion --------------------------------------------------------------- */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes sheetIn { from { opacity: 0; transform: translate3d(0, 16px, 0) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes sheetUp { from { transform: translate3d(0, 100%, 0); } to { transform: none; } }
@keyframes meterGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.js-motion [data-reveal] { opacity: 0; transform: translate3d(0, 32px, 0); transition: opacity .7s var(--ease), transform .7s var(--ease); will-change: opacity, transform; }
.js-motion [data-reveal="zoom"] { transform: scale(.94); }
.js-motion [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js-motion [data-reveal] { opacity: 1; transform: none; }
}

/* 20. Compatibility layer for secondary pages (news, downloads, contact, legal, portal sub-pages) --- */
.container { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
main > .container:last-child, main > .container:last-of-type { padding-bottom: var(--s9); }
.page-hero { padding: var(--s8) 0 var(--s6); text-align: center; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); letter-spacing: -.03em; }
.page-hero p { max-width: 640px; margin: var(--s4) auto 0; color: var(--muted); font-size: 1.15rem; }
.panel, .care-panel { background: var(--bg); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: var(--s6); box-shadow: var(--shadow-1); }
.panel + .panel { margin-top: var(--s5); }
.form-grid { display: grid; gap: var(--s5); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.form-group { display: flex; flex-direction: column; gap: var(--s2); }
.section-title { font-size: 1.5rem; margin: var(--s7) 0 var(--s5); }
.section-label { font-size: .8rem; color: var(--muted); font-weight: 600; }
.settings-subhead { font-size: 1.15rem; margin: var(--s6) 0 var(--s3); }
.portal-shell { width: min(var(--wrap), 100% - 48px); margin: 0 auto; padding: var(--s7) 0 var(--s9); }
.care-hero { padding: var(--s6) 0; }
.care-hero h1 { font-size: clamp(2rem, 4.4vw, 3rem); }
.care-hero__eyebrow { color: var(--brand); font-weight: 600; font-size: .85rem; margin-bottom: var(--s2); }
.dash-grid { display: grid; gap: var(--s5); grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
@media (max-width: 900px) { .dash-grid { grid-template-columns: 1fr; } }
.dash-stack { display: grid; gap: var(--s5); align-content: start; }
.dash-card { background: var(--bg); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: var(--s6); box-shadow: var(--shadow-1); }
.dash-card__head { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); flex-wrap: wrap; margin-bottom: var(--s5); }
.dash-card__title { font-size: 1.25rem; }
.inst-stat-grid { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.inst-stat { background: var(--bg-alt); border-radius: var(--r); padding: var(--s5); }
.inst-stat__label { font-size: .8rem; color: var(--muted); }
.inst-stat__value { font-size: 1.4rem; font-weight: 700; margin-top: 4px; }
.coming-soon { text-align: center; padding: var(--s8) var(--s5); }
.news-toolbar { display: flex; gap: var(--s3); flex-wrap: wrap; align-items: center; margin-bottom: var(--s6); }
.news-search { flex: 1 1 260px; }
.filter-pills { display: flex; gap: var(--s2); flex-wrap: wrap; }
.filter-pill { padding: 8px 16px; border-radius: var(--pill); background: var(--bg-alt); color: var(--ink-2); font-size: .88rem; text-decoration: none !important; }
.filter-pill.active, .filter-pill.is-on, .filter-pill:hover { background: var(--ink); color: #fff; }
.pill-count { opacity: .7; margin-left: 4px; }
.news-grid { display: grid; gap: var(--s5); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.news-card { display: flex; flex-direction: column; gap: var(--s3); padding: var(--s6); border-radius: var(--r-lg); background: var(--bg-alt); color: var(--ink); text-decoration: none !important; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.news-card:hover { transform: translate3d(0, -3px, 0); box-shadow: var(--shadow-1); }
.news-card.is-pinned { background: var(--brand-soft); }
.news-card-title { font-weight: 700; font-size: 1.2rem; letter-spacing: -.015em; }
.news-card-excerpt { color: var(--muted); font-size: .95rem; }
.news-card-meta, .article-meta { display: flex; gap: var(--s3); flex-wrap: wrap; font-size: .8rem; color: var(--faint); }
.news-badge { align-self: flex-start; padding: 3px 10px; border-radius: var(--pill); font-size: .75rem; font-weight: 600; background: var(--line-soft); color: var(--ink-2); }
.article-card { max-width: 760px; margin: 0 auto; }
.article-card h1 { font-size: clamp(2rem, 4.6vw, 3rem); margin: var(--s4) 0; }
.article-content, .news-prose { color: var(--ink-2); font-size: 1.08rem; line-height: 1.65; margin-top: var(--s6); }
.location-grid { display: grid; gap: var(--s5); grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.location-card, .emergency-card { background: var(--bg-alt); border-radius: var(--r-lg); padding: var(--s6); }
.location-photo { border-radius: var(--r); overflow: hidden; margin-bottom: var(--s4); aspect-ratio: 16 / 9; object-fit: cover; }
.emergency-split { display: grid; gap: var(--s5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.phone-big { font-size: clamp(2rem, 6vw, 3rem); font-weight: 700; letter-spacing: -.02em; }
.search-box { display: flex; gap: var(--s3); flex-wrap: wrap; }
.catalogue-stamp { font-size: .8rem; color: var(--muted); }
.part-img { width: 56px; height: 56px; border-radius: var(--r-sm); object-fit: cover; background: var(--bg-alt); }
.hist-card { padding: var(--s5); border-radius: var(--r); background: var(--bg-alt); }
.hist-card + .hist-card { margin-top: var(--s4); }
.hist-card__title { font-weight: 700; }
.hist-card__meta { font-size: .85rem; color: var(--muted); margin-top: 4px; }
.hist-card__amt { font-weight: 700; }
.service-photo-grid { display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); margin-top: var(--s4); }
.service-photo-grid img { border-radius: var(--r-sm); aspect-ratio: 1; object-fit: cover; }
.inst-tabs { display: flex; gap: var(--s2); flex-wrap: wrap; margin-bottom: var(--s5); }
.pdpa-optout { margin-top: var(--s6); }
.recall-banner { background: var(--ink); color: #fff; font-size: .9rem; }
.recall-banner .inner { display: flex; justify-content: center; gap: var(--s4); flex-wrap: wrap; padding: 12px 24px; text-align: center; }
.recall-banner a { color: #ff8a9b; font-weight: 600; }
.mt-0 { margin-top: 0 !important; } .mt-1 { margin-top: var(--s4) !important; } .mt-2 { margin-top: var(--s5) !important; } .mt-3 { margin-top: var(--s6) !important; }
.mb-0 { margin-bottom: 0 !important; } .mb-1 { margin-bottom: var(--s4) !important; }
.stack-sm > * + * { margin-top: var(--s3); }

/* Release B polish (from visual review) */
.gnav__links a { white-space: nowrap; padding: 8px 10px; font-size: .86rem; }

.qty { align-self: flex-start; }
@media (max-width: 734px) { .sheet__media { aspect-ratio: auto; height: min(30dvh, 240px); } .sheet__body { gap: var(--s3); } .sheet__body .title-1 { font-size: 1.5rem; } }
@media (max-width: 734px) {
  .sheet__body .form-actions { position: sticky; bottom: 0; z-index: 1; margin: var(--s4) calc(-1 * var(--s5)) 0 !important; padding: var(--s4) var(--s5) calc(var(--s4) + env(safe-area-inset-bottom)); background: linear-gradient(rgba(255,255,255,0), #fff 30%); }
}
.form-section > legend { float: left; width: 100%; }
.form-section > legend + * { clear: both; }
.news-search { display: flex; gap: var(--s3); width: 100%; }
.news-search input { flex: 1; }
.filter-pills { margin-bottom: var(--s6); }
.news-grid > .empty-state { grid-column: 1 / -1; }
.location-card h3, .emergency-card h3 { margin-bottom: var(--s3); font-size: 1.3rem; }
.location-card p, .emergency-card p { margin-top: var(--s3); }
.location-card .btn-row, .location-card .actions { margin-top: var(--s5); }

/* ===== Navigation: 1024px breakpoint (21 Nov 2026) ===== */
/* Desktop nav ≥1024px: single row, no wrapping, Account link visible. */
@media (min-width: 1024px) {
  .gnav__links { display: flex; }
  .gnav__links a { white-space: nowrap; }
  .gnav__account--desk { display: inline-flex !important; }
  .gnav__toggle { display: none; }
}

/* Two-up blocks (engine / electronics) stay side by side from small tablets up. */
.duo { display: grid; gap: var(--s5); grid-template-columns: 1fr; align-items: stretch; }
.duo > * { min-width: 0; }
@media (min-width: 480px) { .duo { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Service QR = the hero of the warranty card */
.pass__fields { border-top: 1px solid rgba(255,255,255,.1); }
/* Showcase on wide screens: card left, details right */
.showcase { display: grid; gap: var(--s6); grid-template-columns: minmax(0, 440px) minmax(0, 1fr); align-items: start; }
@media (max-width: 900px) { .showcase { grid-template-columns: 1fr; } .showcase > :first-child { max-width: 480px; } }



/* ===== UI tweaks (21 Nov 2026): warranty QR back in the card's bottom row; spacious Coming Soon card ===== */
.pass__foot { align-items: flex-start; }
.pass__qrcol { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: var(--s2); }
.pass__qrcol .pass__qr { width: 112px; height: 112px; padding: 8px; }

.pass__foot-info { min-width: 0; display: flex; flex-direction: column; gap: 4px; padding-top: 4px; }
.pass__foot-info .pass__value { overflow-wrap: anywhere; }
.notice-wrap { min-height: calc(100vh - var(--nav-h, 64px) - 120px); min-height: calc(100svh - var(--nav-h, 64px) - 120px); display: flex; align-items: center; justify-content: center; }
.notice-card { width: 100%; max-width: 520px; margin: 0 auto; padding: var(--s7) var(--s6); text-align: center; display: flex; flex-direction: column; align-items: center; }
.notice-card > * { margin: 0; }
.notice-card .result__icon { margin: 0 0 var(--s5); }
.notice-card .eyebrow { margin: 0 0 var(--s2); }
.notice-card .title-1 { margin: 0 0 var(--s4); text-wrap: balance; }
.notice-card__body { max-width: 40ch; margin: 0 0 var(--s6); line-height: 1.6; }
.notice-card__actions { display: flex; flex-direction: column; align-items: center; gap: var(--s4); width: 100%; }
.notice-card__actions .btn { min-width: 220px; justify-content: center; }
.notice-card__link { font-size: .92rem; font-weight: 600; color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 520px) { .notice-card { padding: var(--s6) var(--s5); } .notice-card__actions .btn { width: 100%; min-width: 0; } }

/* Book-a-Service dynamic preview */
.bs-bike-switcher { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: var(--s4); }
.bs-bike-pill { background: var(--bg-alt); border: 1.5px solid var(--line-soft); border-radius: var(--pill); padding: 6px 14px; font-size: .85rem; font-weight: 500; cursor: pointer; color: var(--ink); transition: background .15s, border-color .15s, transform .15s cubic-bezier(0.34, 1.56, 0.64, 1); }
.bs-bike-pill.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.bs-bike-pill:hover:not(.is-on) { border-color: var(--ink-2); }
.bs-preview-card .model-card__media { transition: opacity .3s ease; }
.bs-preview-card .model-card__media.is-fading { opacity: 0; }
.bs-placeholder { padding: var(--s5); text-align: center; }

/* Showroom Lightbox */
.lb-overlay { position: fixed; inset: 0; z-index: 10000; background: rgba(0,0,0,.78); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); display: flex; align-items: center; justify-content: center; padding: var(--s5); opacity: 0; pointer-events: none; transition: opacity .25s var(--ease); }
.lb-overlay.is-open { opacity: 1; pointer-events: auto; }
.lb-modal { background: var(--surface); border-radius: 20px; overflow: hidden; max-width: 540px; width: 100%; max-height: calc(100dvh - 2 * var(--s5)); display: flex; flex-direction: column; box-shadow: 0 32px 80px rgba(0,0,0,.45); transform: scale(.96) translateY(8px); transition: transform .3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity .25s var(--ease); position: relative; }
.lb-overlay.is-open .lb-modal { transform: scale(1) translateY(0); }
.lb-close { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border-radius: 50%; background: rgba(0,0,0,.18); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #fff; z-index: 1; transition: background .15s; }
.lb-close:hover { background: rgba(0,0,0,.35); }
.lb-img-wrap { width: 100%; aspect-ratio: 4/3; overflow: hidden; background: var(--bg-alt); position: relative; }
.lb-img-wrap img { width: 100%; height: 100%; object-fit: contain; transition: opacity .25s ease; }
.lb-img-wrap img.is-fading { opacity: 0; }
.lb-body { padding: var(--s5); overflow-y: auto; }
.lb-model-name { font-size: 1.3rem; font-weight: 700; margin-bottom: var(--s3); }
.lb-colour-badge { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; color: var(--ink-2); margin-bottom: var(--s4); }
.lb-swatches { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: var(--s5); }
.lb-swatches .colour-dot[data-colour-id]:hover::before { transform: scale(1.4); }
.lb-cta { width: 100%; text-align: center; }
/* Carousel photo as lightbox trigger button */
.lb-trigger { background: none; border: none; cursor: zoom-in; padding: 0; display: contents; }
.lb-trigger:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: var(--r-xl); }
@media (prefers-reduced-motion: reduce) { .lb-overlay, .lb-modal { transition: none; } .lb-img-wrap img { transition: none; } }
