/* BYD Bangladesh: light, spacious layout with a transparent header, mega menu and design selector */

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(/assets/fonts/montserrat-latin.woff2) format("woff2");
}

:root {
  color-scheme: light;
  --ink: #171a20;
  --ink-2: #393c41;
  --muted: #5c5e62;
  --line: #e2e4e6;
  --soft: #f4f4f4;
  --render: #f3f4f4;
  --white: #fff;
  --black: #000;
  --bar: 56px;
  --sub: 52px;
  --max: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 4px;
  --font: Montserrat, Arial, Helvetica, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bar) + var(--sub) + 12px);
  -webkit-text-size-adjust: 100%;
}

html:has(body.snap) {
  scroll-snap-type: y proximity;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
    scroll-snap-type: none !important;
  }
  * {
    transition: none !important;
    animation: none !important;
  }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 16px/1.6 var(--font);
}

body:not(.has-hero) {
  padding-top: var(--bar);
}

[hidden] {
  display: none !important;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

p {
  margin: 0;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

h1 {
  font-size: clamp(2.3rem, 5.2vw, 3.6rem);
}

h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
}

h3 {
  font-size: 1.05rem;
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

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

.narrow {
  max-width: 760px;
  margin-inline: auto;
}

.center {
  text-align: center;
}

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

.note {
  font-size: 0.8rem;
  color: var(--muted);
}

.note a {
  text-underline-offset: 3px;
}

.eyebrow {
  display: block;
  margin-bottom: 14px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.lede {
  max-width: 62ch;
  margin-top: 18px;
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  color: var(--muted);
}

.center .lede {
  margin-inline: auto;
}

.statement {
  font-size: clamp(1.45rem, 2.8vw, 2.2rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--white);
}

.skip:focus {
  left: 16px;
}

/* Icons */

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.soc {
  display: inline-block;
  width: 20px;
  height: 20px;
  flex: none;
  background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}

.ico {
  width: 20px;
  height: 20px;
  flex: none;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 180px;
  padding: 10px 24px;
  border: 0;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
  font: 500 0.875rem/1.4 var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, opacity 0.2s;
}

.btn:hover {
  background: var(--ink-2);
}

.btn.secondary {
  background: var(--soft);
  color: var(--ink);
}

.btn.secondary:hover {
  background: #e8e8e8;
}

.btn.small {
  min-width: 0;
  padding: 7px 16px;
  font-size: 0.8rem;
}

.on-dark .btn {
  background: var(--white);
  color: var(--ink);
}

.on-dark .btn:hover {
  background: #e6e6e6;
}

.on-dark .btn.secondary {
  background: rgba(23, 26, 32, 0.55);
  color: var(--white);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.on-dark .btn.secondary:hover {
  background: rgba(23, 26, 32, 0.75);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.center .actions,
.actions.center {
  justify-content: center;
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.link .icon {
  transition: transform 0.2s;
}

.link:hover .icon {
  transform: translateX(3px);
}

/* Header */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--bar);
  background: var(--white);
  color: var(--ink);
  transition: background 0.25s, color 0.25s;
}

body.has-hero .site-header:not(.solid) {
  background: transparent;
  color: var(--white);
}

.bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--bar);
  padding-inline: clamp(16px, 2.5vw, 32px);
}

.brand {
  justify-self: start;
  display: block;
  line-height: 0;
}

.logo {
  display: block;
  width: 104px;
  height: 21px;
  background: currentColor;
  -webkit-mask: url(/assets/img/brand/byd-logo-white.svg) center / contain no-repeat;
  mask: url(/assets/img/brand/byd-logo-white.svg) center / contain no-repeat;
}

.bar-end {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list {
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-link {
  display: block;
  padding: 6px 14px;
  border-radius: var(--radius);
  background: transparent;
  color: inherit;
  font: 500 0.875rem/1.5 var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s;
}

.nav-link:hover,
.has-mega.open > .nav-link {
  background: rgba(23, 26, 32, 0.07);
}

body.has-hero .site-header:not(.solid) .nav-link:hover,
body.has-hero .site-header:not(.solid) .has-mega.open > .nav-link {
  background: rgba(255, 255, 255, 0.2);
}

.nav-link[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 6px;
}

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.menu-btn .icon {
  width: 24px;
  height: 24px;
}

.mega {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  border-top: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

.has-mega.open > .mega {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.mega-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 48px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 36px clamp(16px, 5vw, 80px) 44px;
}

.mega-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tile-img {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--soft);
  border-radius: 8px;
}

.tile-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tile-name {
  display: block;
  margin-top: 10px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
}

.tile-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 2px;
  font-size: 0.78rem;
}

.tile-links a {
  color: var(--muted);
  text-underline-offset: 3px;
}

.tile-links a:hover {
  color: var(--ink);
}

.mega-links {
  display: grid;
  align-content: start;
  gap: 12px;
  margin: 0;
  padding: 0 0 0 40px;
  border-left: 1px solid var(--line);
  list-style: none;
}

.mega-links a {
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
}

.mega-links a:hover {
  text-decoration: underline;
}

.mega-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.mega-cols h2 {
  margin-bottom: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.mega-cols ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mega-cols a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}

.mega-cols a:hover b {
  text-decoration: underline;
}

.mega-cols a span {
  font-weight: 400;
  color: var(--muted);
}

.mega-simple .mega-inner {
  grid-template-columns: 1fr;
  max-width: 760px;
}

.scrim {
  position: fixed;
  inset: var(--bar) 0 0 0;
  z-index: -1;
  background: rgba(23, 26, 32, 0.35);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}

.site-header.mega-open .scrim {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 959px) {
  .bar {
    grid-template-columns: 1fr auto;
  }
  .nav {
    position: fixed;
    inset: var(--bar) 0 0 0;
    display: none;
    overflow-y: auto;
    padding: 8px var(--gutter) 40px;
    background: var(--white);
    color: var(--ink);
  }
  .site-header.menu-open .nav {
    display: block;
  }
  .site-header.menu-open {
    background: var(--white);
    color: var(--ink);
  }
  .nav-list {
    display: grid;
    gap: 0;
  }
  .nav-link {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    font-size: 1.05rem;
  }
  .nav-link:hover,
  .has-mega.open > .nav-link {
    background: transparent;
  }
  .menu-btn {
    display: grid;
  }
  .bar-end .nav-link {
    display: none;
  }
  .mega {
    position: static;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .mega-inner,
  .mega-simple .mega-inner {
    display: block;
    padding: 4px 0 12px 12px;
  }
  .mega-tiles {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
  }
  .mega-tiles li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 8px 0;
  }
  .tile-img {
    display: none;
  }
  .tile-name {
    margin: 0;
    text-align: left;
    font-weight: 500;
  }
  .tile-links {
    margin: 0;
  }
  .mega-links {
    margin-top: 8px;
    padding: 0;
    border: 0;
    gap: 8px;
  }
  .mega-cols {
    display: block;
  }
  .mega-cols h2 {
    margin-top: 12px;
  }
  .mega-cols ul {
    gap: 6px;
  }
  .scrim {
    display: none;
  }
}

/* Hero and full-screen panels */

.hero {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 100svh;
  overflow: hidden;
  background: var(--black);
  color: var(--white);
  text-align: center;
}

.hero > img,
.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 34%, rgba(0, 0, 0, 0) 56%, rgba(0, 0, 0, 0.55) 100%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding: calc(var(--bar) + clamp(36px, 11vh, 130px)) var(--gutter) 0;
}

.hero-copy .lede {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.92);
}

.hero-foot {
  position: relative;
  z-index: 1;
  padding: 0 var(--gutter) clamp(28px, 6vh, 64px);
}

.hero-foot .actions {
  justify-content: center;
  margin-top: 0;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px clamp(28px, 6vw, 96px);
  margin: 0 0 clamp(24px, 4vh, 40px);
}

.hero-stats b {
  display: block;
  font-size: clamp(1.5rem, 2.8vw, 2.4rem);
  font-weight: 500;
  line-height: 1.1;
}

.hero-stats span {
  font-size: 0.78rem;
  opacity: 0.92;
}

.panel {
  scroll-snap-align: start;
}

/* Coming-soon panel on the home page (picture element with a portrait image for phones). */
.hero > picture,
.hero > picture img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The teaser image carries its own headline; the badge, heading and buttons sit on the dark ground below it. */
.coming-soon .hero-foot {
  grid-row: 2;
}

.coming-soon .hero-foot .lede {
  max-width: 40ch;
  margin: 8px auto 22px;
  color: rgba(255, 255, 255, 0.88);
}

/* Desktop: a poster layout. The whole teaser stays sharp on the right; the text sits on the dark left side. */
@media (min-width: 960px) {
  .coming-soon {
    grid-template-rows: 1fr;
    text-align: left;
    background: radial-gradient(110% 85% at 78% 42%, #22172f 0%, #0a0911 52%, #040406 100%);
  }

  .coming-soon > picture {
    left: auto;
    width: auto;
    max-width: 62%;
    aspect-ratio: 1600 / 1850;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 26%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 26%);
  }

  .coming-soon .hero-foot {
    grid-row: 1;
    align-self: center;
    width: min(46%, 560px);
    margin-left: clamp(32px, 7vw, 128px);
    padding: calc(var(--bar) + 24px) 0 48px;
  }

  .coming-soon h1 {
    font-size: clamp(3rem, 5.4vw, 4.6rem);
  }

  .coming-soon .hero-foot .lede {
    max-width: 34ch;
    margin: 14px 0 28px;
  }

  .coming-soon .hero-foot .actions {
    justify-content: flex-start;
  }
}

.hero-badge {
  display: inline-block;
  margin: 0 0 14px;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.float-cta {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.14);
  transform: translate(-50%, 140%);
  transition: transform 0.35s;
}

.float-cta.show {
  transform: translate(-50%, 0);
}

/* Sub navigation on model pages */

.subnav {
  position: sticky;
  top: var(--bar);
  z-index: 30;
  height: var(--sub);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.subnav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 100%;
}

.subnav strong {
  font-size: 0.95rem;
  font-weight: 600;
}

.subnav ul {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  list-style: none;
  scrollbar-width: none;
}

.subnav a {
  display: block;
  padding: 6px 12px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  color: var(--muted);
}

.subnav a:hover,
.subnav a.active {
  background: var(--soft);
  color: var(--ink);
}

@media (max-width: 1100px) {
  .subnav strong {
    display: none;
  }
}

@media (max-width: 720px) {
  .subnav .btn {
    display: none;
  }
}

/* Sections */

.section {
  padding: clamp(72px, 11vw, 160px) 0;
}

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

.section.tight {
  padding: clamp(48px, 7vw, 96px) 0;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.section-head p {
  max-width: 56ch;
  margin-top: 12px;
  color: var(--muted);
}

.page-head {
  padding: clamp(56px, 9vw, 120px) 0 clamp(8px, 2vw, 24px);
}

.page-head.dark {
  padding: clamp(72px, 12vw, 160px) 0;
  background: var(--ink);
  color: var(--white);
}

.page-head.dark .lede,
.page-head.dark .eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

.grid {
  display: grid;
  gap: clamp(20px, 2.4vw, 32px);
}

.models {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
}

.tech {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.lines {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
}

.articles {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
}

/* Cards */

.card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
}

.card .media {
  position: relative;
  display: block;
  flex: 0 0 auto;
  min-width: 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--soft);
}

.card .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}

.card:hover .media img {
  transform: scale(1.03);
}

.card-body {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(20px, 2.2vw, 28px);
  overflow-wrap: anywhere;
}

.card h3 {
  margin-bottom: 10px;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.3;
}

.card-body > p {
  font-size: 0.94rem;
  line-height: 1.7;
}

.card-body > .note {
  margin-top: auto;
  padding-top: 18px;
  font-size: 0.8rem;
}

.tech-card .claim {
  margin: auto 0 0;
  padding-top: 18px;
}

.card h3 a {
  text-decoration: none;
}

.card .link {
  margin-top: auto;
  padding-top: 14px;
}

.card.pad {
  padding: 28px;
  border-radius: 8px;
  background: var(--soft);
}

.label {
  display: inline-block;
  max-width: 100%;
  margin-bottom: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.label b {
  display: inline-block;
  max-width: 100%;
  margin-right: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--soft);
  font-weight: 600;
  color: var(--ink);
}

.mini-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
  margin: 14px 0 0;
}

.mini-stats dt {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--muted);
}

.mini-stats dd {
  margin: 1px 0 0;
  font-size: 0.88rem;
  font-weight: 600;
}

.icon-badge {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
}

.icon-badge .icon {
  width: 22px;
  height: 22px;
}

.icon-badge img {
  width: 22px;
  height: 22px;
}

/* Insight cards: the whole card opens the article, text is clamped so a row stays level. */

.article {
  position: relative;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.article:hover,
.article:focus-within {
  border-color: var(--ink);
  box-shadow: 0 6px 20px rgba(23, 26, 32, 0.08);
}

.article h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.article h3 a:focus-visible {
  outline: none;
}

.article:has(h3 a:focus-visible) {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.article .note a {
  position: relative;
  z-index: 1;
}

.article h3,
.article .card-body > p.muted {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
}

.article h3 {
  -webkit-line-clamp: 3;
}

.article .card-body > p.muted {
  -webkit-line-clamp: 4;
}

@media (min-width: 720px) {
  .article.featured {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: stretch;
  }
  .article.featured .media {
    height: 100%;
    min-height: 280px;
    aspect-ratio: auto;
  }
  .article.featured .card-body {
    justify-content: center;
    padding: clamp(24px, 3vw, 40px);
  }
  .article.featured h3 {
    font-size: clamp(1.3rem, 2.4vw, 1.6rem);
    -webkit-line-clamp: 4;
  }
  .article.featured .card-body > p.muted {
    -webkit-line-clamp: 6;
  }
}

/* EV vs petrol savings calculator */

.savings-section {
  background: #fff;
}

.savings-page {
  padding-top: clamp(56px, 7vw, 96px);
}

.savings-intro h1,
.savings-intro h2 {
  max-width: 22ch;
}

.savings-intro .link {
  font-size: 0.85rem;
  font-weight: 500;
  text-underline-offset: 5px;
}

.savings-calculator {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  overflow: clip;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.savings-mobile-preview {
  position: sticky;
  top: var(--bar);
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid #d8e9df;
  background: #eef8f1;
  color: #244d36;
}

.savings-mobile-preview > div {
  min-width: 0;
}

.savings-mobile-preview > div + div {
  padding-left: 12px;
  border-left: 1px solid #c9dfd0;
}

.savings-mobile-preview span {
  display: block;
  font-size: 0.65rem;
  line-height: 1.5;
}

.savings-mobile-preview strong {
  display: block;
  margin-top: 6px;
  font-size: clamp(0.85rem, 3.2vw, 1.05rem);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.has-extra-cost .savings-mobile-preview {
  background: #fff3e5;
  color: #7f461c;
}

.savings-controls,
.savings-panel {
  min-width: 0;
  padding: clamp(20px, 3vw, 40px);
}

.savings-control-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}

.savings-control-head .eyebrow {
  margin: 0;
  font-size: 0.68rem;
}

.savings-reset {
  padding: 7px 0 7px 12px;
  border: 0;
  background: none;
  color: var(--muted);
  font: 500 0.8rem var(--font);
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.savings-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 16px;
}

.savings-prices {
  margin-top: 28px;
}

.savings-field {
  min-width: 0;
}

.savings-field > label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.5;
}

.savings-input {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.savings-input:focus-within {
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
}

.savings-input input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  font: 500 1.25rem/1.4 var(--font);
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
  appearance: textfield;
}

.savings-input input::-webkit-inner-spin-button,
.savings-input input::-webkit-outer-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.savings-input:has([aria-invalid="true"]) {
  border-color: #a33925;
  box-shadow: 0 0 0 1px #a33925;
}

.savings-input > span,
.savings-field small {
  font-size: 0.7rem;
  color: var(--muted);
}

.savings-distance .savings-field > label {
  margin-bottom: 12px;
  font-size: 1.05rem;
}

.savings-distance .savings-input {
  flex-direction: row;
  align-items: baseline;
  gap: 12px;
  padding: 12px 16px;
}

.savings-distance .savings-input input {
  font-size: 2.8rem;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.savings-distance .savings-input > span {
  flex: none;
  font-size: 0.8rem;
}

.savings-range {
  --range-progress: 4%;
  display: block;
  width: 100%;
  height: 6px;
  margin: 26px 0 14px;
  border-radius: 99px;
  background: linear-gradient(to right, var(--ink) var(--range-progress), var(--line) var(--range-progress));
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.savings-range::-webkit-slider-thumb {
  width: 24px;
  height: 24px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
  -webkit-appearance: none;
}

.savings-range::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
}

.savings-scale {
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
  font-size: 0.68rem;
  color: var(--muted);
}

.savings-presets {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.savings-presets button {
  min-height: 42px;
  padding: 7px 4px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: 500 0.78rem var(--font);
  cursor: pointer;
}

.savings-presets button[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.savings-rate-note {
  margin-top: 12px;
  font-size: 0.72rem;
  line-height: 1.65;
  color: var(--muted);
}

.savings-assumptions {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.savings-assumptions summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8rem;
  font-weight: 500;
  list-style: none;
  cursor: pointer;
}

.savings-assumptions summary::-webkit-details-marker {
  display: none;
}

.savings-assumptions .savings-fields {
  margin-top: 20px;
}

.savings-assumptions[open] summary .icon {
  transform: rotate(180deg);
}

.savings-error {
  margin-top: 20px;
  font-size: 0.8rem;
  color: #a33925;
}

.savings-panel {
  background: var(--ink);
  color: #fff;
}

.savings-highlights {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.savings-highlight {
  min-width: 0;
  padding: clamp(16px, 2vw, 24px);
  border: 1px solid #638a71;
  border-radius: 10px;
  background: #253b2e;
}

.savings-highlight .savings-result-label {
  color: #d0f4dc;
  font-weight: 600;
}

.savings-results.is-extra .savings-highlight {
  border-color: #8e6a43;
  background: #413326;
}

.savings-results.is-extra .savings-highlight .savings-result-label {
  color: #ffe0b9;
}

.savings-result-label {
  display: block;
  font-size: 0.75rem;
  line-height: 1.6;
  color: #c7cdcf;
}

.savings-total {
  display: block;
  margin: 10px 0 12px;
  color: #b9efcd;
  font-size: clamp(1.75rem, 3.3vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.2;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}

.savings-context {
  font-size: 0.74rem;
  color: #c7cdcf;
}

.savings-monthly {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 22px;
  border-bottom: 1px solid #3e4247;
}

.savings-monthly strong {
  font-size: 1.2rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.savings-comparison {
  margin-top: 26px;
}

.savings-comparison h3 {
  margin-bottom: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

.savings-cost-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 0.8rem;
}

.savings-cost-label > span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.savings-cost-label strong {
  font-weight: 500;
  overflow-wrap: anywhere;
}

.savings-dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
}

.savings-track {
  height: 8px;
  margin-bottom: 18px;
  overflow: hidden;
  border-radius: 99px;
  background: #353a40;
}

.savings-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  transition: width 0.25s;
}

.savings-track .fuel,
.savings-dot.fuel {
  background: #a4adb2;
}

.savings-track .ev,
.savings-dot.ev {
  background: #b9efcd;
}

.savings-per-km {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  font-size: 0.7rem;
  color: #c7cdcf;
}

.savings-per-km b {
  display: block;
  margin-top: 4px;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.savings-distance-cost {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #3e4247;
  font-size: 0.7rem;
  color: #c7cdcf;
}

.savings-distance-cost p {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-top: 7px;
}

.savings-distance-cost b {
  font-weight: 500;
  color: #fff;
}

.savings-verdict {
  margin-top: 22px;
  font-size: 0.75rem;
  color: #b9efcd;
}

.savings-results.is-extra .savings-total,
.savings-results.is-extra .savings-verdict {
  color: #ffd39b;
}

.savings-placeholder {
  padding-block: 24px;
}

.savings-placeholder p {
  margin-top: 16px;
  font-size: 0.9rem;
  color: #c7cdcf;
}

.savings-notes {
  display: grid;
  gap: 12px;
  margin-top: 20px;
  font-size: 0.72rem;
  line-height: 1.75;
  color: var(--muted);
}

.savings-notes summary {
  width: fit-content;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
}

.savings-notes details p {
  max-width: 110ch;
  margin-top: 12px;
}

.savings-noscript {
  grid-column: 1 / -1;
  padding: 20px;
  background: var(--soft);
  font-size: 0.85rem;
}

@media (min-width: 900px) {
  .savings-calculator {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  }
  .savings-mobile-preview {
    display: none;
  }
}

/* Model-specific energy inputs and source data */
.savings-model-selects { margin-bottom: 24px; }
.savings-field select {
  width: 100%; min-width: 0; min-height: 52px; padding: 12px 30px 12px 12px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--soft);
  color: var(--ink); font: 500 .8rem/1.5 var(--font); text-overflow: ellipsis;
}
.savings-field select:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.savings-field select:disabled { opacity: .6; }
.savings-basis { grid-column: 1 / -1; }
.savings-vehicle { margin-bottom: 28px; padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: #f7f8f7; }
.savings-vehicle-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.savings-vehicle-head img { width: 96px; height: 60px; object-fit: contain; mix-blend-mode: multiply; }
.savings-vehicle-head .eyebrow { margin-bottom: 5px; font-size: .55rem; }
.savings-vehicle-head h3 { font-size: .8rem; line-height: 1.5; }
.savings-vehicle-facts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.savings-vehicle-facts dt { font-size: .63rem; line-height: 1.5; color: var(--muted); }
.savings-vehicle-facts dd { margin: 5px 0 0; font-size: .9rem; font-weight: 600; }
.savings-vehicle-formula { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); font-size: .72rem; }
.savings-vehicle a, .savings-reference a { text-decoration: underline; text-underline-offset: 3px; }
.savings-baseline { margin-top: 28px; }
.savings-field small { display: block; margin-top: 7px; line-height: 1.6; }
.savings-hybrid { margin-top: 24px; padding: 20px; border: 1px solid #e3c39f; border-radius: 8px; background: #fff8ef; }
.savings-hybrid h3 { font-size: .85rem; }
.savings-hybrid > p { margin-block: 12px; font-size: .73rem; line-height: 1.65; }
.savings-fuel-source { display: block; margin-block: 12px; font-size: .72rem; text-decoration: underline; text-underline-offset: 3px; }
.savings-hybrid .savings-reset { padding-left: 0; text-align: left; color: var(--ink); }
.savings-placeholder h3 { margin-top: 18px; font-size: clamp(1.8rem,3vw,2.6rem); line-height: 1.25; }
.savings-placeholder .eyebrow { color: #b9efcd; font-size: .65rem; }
.savings-placeholder-steps { display: grid; gap: 18px; margin-top: 36px; padding-top: 26px; border-top: 1px solid #3e4247; font-size: .76rem; color: #c7cdcf; }
.savings-energy-detail { margin-top: 24px; padding-top: 22px; border-top: 1px solid #3e4247; }
.savings-energy-detail h3 { font-size: .85rem; font-weight: 500; }
.savings-energy-detail > p { margin-top: 7px; font-size: .7rem; line-height: 1.6; color: #c7cdcf; }
.savings-energy-detail dl { display: grid; gap: 12px; margin-top: 20px; font-size: .73rem; }
.savings-energy-detail dl > div { display: flex; justify-content: space-between; gap: 16px; }
.savings-energy-detail dt { color: #c7cdcf; }
.savings-energy-detail dd { margin: 0; font-weight: 500; text-align: right; }
.savings-result-note { margin-top: 16px; font-size: .7rem; color: #c7cdcf; line-height: 1.7; }
.savings-notes > * { min-width: 0; }
.savings-table-scroll { width: 100%; max-width: 100%; margin-top: 18px; overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
.savings-reference table { width: 100%; min-width: 650px; border-collapse: collapse; text-align: left; font-size: .75rem; }
.savings-reference caption { padding: 16px; text-align: left; background: var(--soft); font-weight: 500; }
.savings-reference th, .savings-reference td { padding: 14px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.savings-reference th { font-weight: 500; color: var(--ink); }
.savings-reference small { display: block; margin-top: 4px; color: var(--muted); }
@media (min-width:900px) {
  .savings-results, .savings-placeholder { position: sticky; top: calc(var(--bar) + 24px); }
}
@media (max-width:480px) {
  .savings-model-selects { grid-template-columns: minmax(0,1fr); gap: 16px; }
  .savings-vehicle { padding: 14px; }
  .savings-vehicle-head { gap: 10px; }
  .savings-vehicle-head img { width: 72px; }
  .savings-vehicle-facts { grid-template-columns: minmax(0,1fr); gap: 10px; }
  .savings-vehicle-facts > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
  .savings-vehicle-facts dd { margin: 0; white-space: nowrap; font-size: .8rem; }
  .savings-energy-detail dl > div { gap: 10px; font-size: .68rem; }
}

/* Filters and chips */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font: 500 0.85rem/1.3 var(--font);
  cursor: pointer;
}

.pill:hover {
  border-color: var(--ink);
}

.pill[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 28px;
}

/* Stats */

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 24px;
  text-align: center;
}

@media (min-width: 900px) {
  .stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat b {
  display: block;
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.stat span {
  display: block;
  margin-top: 8px;
  font-size: 0.88rem;
  color: var(--muted);
}

/* Split, callouts, CTA */

.split {
  display: grid;
  gap: 32px;
  align-items: center;
}

.split.top {
  align-items: start;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: clamp(48px, 7vw, 112px);
  }
}

.split .media {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--soft);
}

.split .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner img {
  width: 100%;
  height: auto;
}

.callout {
  padding: 18px 22px;
  border-radius: 8px;
  background: var(--soft);
  font-size: 0.92rem;
}

.cta {
  padding: clamp(40px, 7vw, 96px) var(--gutter);
  border-radius: 8px;
  background: var(--soft);
  text-align: center;
}

.cta p {
  max-width: 52ch;
  margin: 12px auto 0;
  color: var(--muted);
}

.cta .actions {
  justify-content: center;
}

/* Timeline, tables, FAQ */

.timeline {
  margin: 0 0 0 6px;
  padding: 0;
  border-left: 1px solid var(--ink);
  list-style: none;
}

.timeline li {
  position: relative;
  padding: 0 0 28px 28px;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 8px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--ink);
}

.timeline time {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
}

.table-wrap {
  overflow-x: auto;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 0 0 1px var(--line);
}

table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

tr:last-child td,
tr:last-child th {
  border-bottom: 0;
}

tbody th[scope="row"] {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}

table.spec {
  min-width: 460px;
}

table.spec.single {
  min-width: 0;
}

table.spec thead th:first-child {
  width: 46%;
}

table.spec td.both {
  text-align: center;
}

table.compare {
  min-width: 980px;
}

table.compare th[scope="row"] {
  position: sticky;
  left: 0;
  background: var(--white);
  white-space: nowrap;
}

table.compare thead th a {
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--ink);
}

table.compare td {
  font-size: 0.9rem;
}

.spec-stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
}

.spec-group {
  min-width: 0;
}

.spec-group h3 {
  margin-bottom: 12px;
}

details.faq {
  padding: 0 4px;
  border-bottom: 1px solid var(--line);
}

details.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 0;
  font-weight: 500;
  list-style: none;
  cursor: pointer;
}

details.faq summary::-webkit-details-marker {
  display: none;
}

details.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 300;
  line-height: 1;
}

details.faq[open] summary::after {
  content: "\2212";
}

details.faq p {
  padding: 0 0 20px;
  color: var(--muted);
}

.warranty {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.warranty-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.warranty-card b {
  font-size: 3.4rem;
  font-weight: 400;
  line-height: 1;
}

.warranty-card .unit {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.warranty-card .km {
  margin-top: 6px;
  font-size: 1.05rem;
  font-weight: 600;
}

.warranty-card .label {
  margin: 4px 0 0;
}

.social-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.social-list a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  text-decoration: none;
}

.social-list a:hover {
  text-decoration: underline;
}

.social-list a .soc {
  width: 22px;
  height: 22px;
}

.checklist {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.checklist .icon {
  margin-top: 3px;
}

.price {
  display: grid;
  gap: 6px;
  padding: 20px 24px;
  border-radius: 8px;
  background: var(--soft);
}

.price b {
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1.2;
}

.price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.price-row span {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
}

.price-row b {
  font-size: 1.4rem;
}

.price-wrap {
  margin-top: 28px;
}

/* Gallery and lightbox */

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 900px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  .gallery.details {
    grid-template-columns: repeat(4, 1fr);
  }
}

.gallery.details {
  margin-top: 16px;
}

.gallery a {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--soft);
}

.gallery.details a {
  aspect-ratio: 3 / 2;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}

.gallery a:hover img {
  transform: scale(1.05);
}

.lightbox {
  width: auto;
  max-width: 96vw;
  padding: 0;
  border: 0;
  background: var(--black);
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.85);
}

.lightbox .lb-photo {
  display: block;
  max-width: 96vw;
  max-height: 90vh;
  width: auto;
  height: auto;
}

.lb-close {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 6px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  cursor: pointer;
}

.lb-close img {
  width: 100%;
  height: 100%;
}

/* Design selector (model pages) */

.design {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 960px) {
  .design {
    grid-template-columns: minmax(0, 1.55fr) minmax(380px, 1fr);
  }
}

.design-stage {
  position: relative;
  background: var(--render);
}

.stage-sticky {
  display: grid;
  place-items: center;
  padding: clamp(24px, 4vw, 56px);
}

@media (min-width: 960px) {
  .stage-sticky {
    position: sticky;
    top: calc(var(--bar) + var(--sub));
    height: calc(100svh - var(--bar) - var(--sub));
  }
}

.stage-sticky img {
  width: 100%;
  max-width: 1000px;
  height: auto;
}

.stage-caption {
  position: absolute;
  left: clamp(16px, 3vw, 40px);
  bottom: 20px;
  font-size: 0.85rem;
  color: var(--muted);
}

.design-panel {
  padding: clamp(28px, 4vw, 64px) clamp(20px, 4vw, 64px) clamp(100px, 12vw, 140px);
}

.design-panel h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.design-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 28px 0;
  padding: 20px 0;
  border-block: 1px solid var(--line);
  text-align: center;
}

.design-stats b {
  display: block;
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.15;
}

.design-stats span {
  font-size: 0.74rem;
  color: var(--muted);
}

fieldset {
  min-width: 0;
  margin: 0 0 28px;
  padding: 0;
  border: 0;
}

legend {
  margin-bottom: 12px;
  padding: 0;
  font-size: 1rem;
  font-weight: 600;
}

.opts {
  display: grid;
  gap: 10px;
}

.opt {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}

.opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.opt:has(input:checked) {
  padding: 15px 17px;
  border: 2px solid var(--ink);
}

.opt:has(input:focus-visible) {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.opt strong {
  display: block;
  font-size: 0.95rem;
}

.opt small {
  display: block;
  margin-top: 2px;
  font-size: 0.78rem;
  color: var(--muted);
}

.opt-price {
  font-size: 0.9rem;
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
}

.paint {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.dot {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  cursor: pointer;
}

.dot input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.dot::before {
  content: "";
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
}

.dot:has(input:checked)::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid var(--ink);
  border-radius: 50%;
}

.dot:has(input:focus-visible) {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.paint-name {
  margin-top: 8px;
  font-size: 0.9rem;
  font-weight: 500;
}

.summary-bar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 40;
  border-top: 1px solid var(--line);
  background: var(--white);
  transform: translateY(100%);
  transition: transform 0.3s;
}

.summary-bar.show {
  transform: none;
}

.summary-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px var(--gutter);
}

.summary-text strong {
  display: block;
  font-size: 1rem;
}

.summary-text span {
  font-size: 0.78rem;
  color: var(--muted);
}

.summary-price {
  margin-left: auto;
  text-align: right;
}

.summary-price b {
  display: block;
  font-size: 1.05rem;
}

.summary-price span {
  font-size: 0.75rem;
  color: var(--muted);
}

@media (max-width: 560px) {
  .summary-text span {
    display: none;
  }
  .summary-bar .btn {
    min-width: 0;
    padding-inline: 16px;
  }
}

/* Shop */

.shop {
  display: grid;
  gap: clamp(24px, 4vw, 56px);
}

@media (min-width: 960px) {
  .shop {
    grid-template-columns: 250px minmax(0, 1fr);
    align-items: start;
  }
}

.sidebar {
  font-size: 0.9rem;
}

@media (min-width: 960px) {
  .sidebar {
    position: sticky;
    top: calc(var(--bar) + 24px);
  }
}

.sidebar summary {
  padding: 12px 0;
  font-weight: 600;
  cursor: pointer;
}

@media (min-width: 960px) {
  .sidebar > summary {
    display: none;
  }
}

.side-group {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.side-group h2 {
  margin-bottom: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
  cursor: pointer;
}

.check input {
  width: 18px;
  height: 18px;
  accent-color: var(--ink);
}

.check small {
  margin-left: auto;
  color: var(--muted);
}

.reset {
  margin-top: 8px;
}

.vgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.vcard {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 0 0 1px var(--line);
}

.vimg {
  display: grid;
  place-items: center;
  padding: 8px 8px 0;
  background: var(--render);
}

.vimg img {
  width: 100%;
  height: auto;
  aspect-ratio: 1400 / 808;
  object-fit: cover;
}

.vbody {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}

.vbody h3 {
  font-size: 1.2rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 16px;
}

.tag {
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--soft);
  font-size: 0.72rem;
  font-weight: 500;
}

.tag.dark {
  background: var(--ink);
  color: var(--white);
}

.vstats {
  display: grid;
  gap: 12px;
  margin: 0 0 16px;
}

.vstats div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.vstats dt {
  font-size: 0.78rem;
  color: var(--muted);
}

.vstats dd {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 500;
}

.vprice {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 1.1rem;
  font-weight: 600;
}

.vprice small {
  display: block;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--muted);
}

.vactions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}

.vactions .btn {
  min-width: 0;
  padding-inline: 10px;
}

.vcompare {
  margin-top: 12px;
  font-size: 0.85rem;
}

.compare-bar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 40;
  border-top: 1px solid var(--line);
  background: var(--white);
  transform: translateY(100%);
  transition: transform 0.3s;
}

.compare-bar.show {
  transform: none;
}

.compare-dialog {
  width: min(960px, 94vw);
  padding: 0;
  border: 0;
  border-radius: 8px;
}

.compare-dialog::backdrop {
  background: rgba(23, 26, 32, 0.55);
}

.compare-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
}

.compare-dialog .table-wrap {
  margin: 0;
  box-shadow: none;
  border-radius: 0;
}

.compare-dialog table {
  min-width: 480px;
}

/* Footer */

.site-footer {
  padding: clamp(48px, 7vw, 96px) 0 32px;
  border-top: 1px solid var(--line);
  background: var(--white);
  font-size: 0.88rem;
}

.footer-grid {
  display: grid;
  gap: 36px;
}

@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
  }
}

.site-footer .brand {
  color: var(--ink);
}

.site-footer h2 {
  margin-bottom: 14px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-footer ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a {
  text-decoration: none;
}

.site-footer li a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.site-footer li a:hover {
  text-decoration: underline;
}

.brand-note {
  max-width: 38ch;
  margin-top: 18px;
  color: var(--muted);
}

.footer-address {
  margin-top: 16px;
  font-style: normal;
  line-height: 1.7;
  color: var(--muted);
}

.footer-address a {
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--muted);
}

body.has-bar .site-footer {
  padding-bottom: 96px;
}

.not-found {
  display: grid;
  place-items: center;
  min-height: 70svh;
  text-align: center;
}

.hero h2 {
  font-size: clamp(2.3rem, 5.2vw, 3.6rem);
}

.mobile-only {
  display: none;
}

@media (max-width: 959px) {
  .mobile-only {
    display: block;
  }
}

/* Hero and compact summary spacing */

.hero .lede {
  margin-inline: auto;
}

.hero-foot {
  padding-bottom: clamp(76px, 11vh, 120px);
}

@media (max-width: 560px) {
  .summary-inner {
    gap: 10px;
    padding-block: 10px;
  }
  .summary-text {
    flex: 1;
    min-width: 0;
  }
  .summary-text strong {
    overflow: hidden;
    font-size: 0.85rem;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .summary-price span {
    display: none;
  }
  .summary-price b {
    font-size: 0.85rem;
    white-space: nowrap;
  }
  .summary-bar .btn {
    padding: 8px 12px;
    font-size: 0.78rem;
    white-space: nowrap;
  }
}

/* Wayfinding and the calculator's direct primary-navigation link. */
.breadcrumbs { margin-bottom: 24px; color: var(--muted); font-size: .72rem; line-height: 1.5; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 10px; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li { display: flex; align-items: baseline; gap: 10px; }
.breadcrumbs li + li::before { content: '/'; opacity: .55; }
.breadcrumbs a { text-decoration: none; text-underline-offset: 4px; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs [aria-current] { font-weight: 500; }
.breadcrumbs-hero, .page-head.dark .breadcrumbs { color: rgba(255,255,255,.85); }
.breadcrumbs-hero { text-shadow: 0 1px 8px rgba(0,0,0,.7); }
.savings-page .breadcrumbs ol { justify-content: flex-start; }
@media (min-width:960px) { .nav-savings { font-weight: 600; } }
@media (max-width:959px) { .nav-savings-item { order: -1; } .nav-savings { font-weight: 600; } }

/* CMS-authored articles and additional page sections. */
.cms-prose{overflow-wrap:anywhere;line-height:1.8}
.cms-prose>img{width:100%;height:auto;margin-bottom:40px}
.cms-prose h2,.cms-prose h3{margin:36px 0 16px}
.cms-prose p,.cms-prose ul,.cms-prose ol,.cms-prose blockquote{margin-bottom:20px}
.cms-prose blockquote{padding:12px 24px;border-left:3px solid var(--line);color:var(--muted)}
.cms-prose img{max-width:100%;height:auto}
.cms-prose table{width:100%;border-collapse:collapse}
.cms-prose figure{margin:0 0 20px;overflow-x:auto}
.cms-prose figure table{margin:0}
.cms-prose td,.cms-prose th{padding:12px;border:1px solid var(--line)}

.lead-form{padding:32px;background:#fff;border:1px solid var(--line);border-radius:8px}
.lead-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.lead-form label{font-size:.8rem;font-weight:500;display:block}
.lead-form input:not([type=checkbox]),.lead-form select,.lead-form textarea{display:block;width:100%;font:inherit;color:var(--ink);background:#fff;border:1px solid var(--line);border-radius:4px;padding:13px 12px;margin-top:8px}
.lead-form input:focus,.lead-form textarea:focus,.lead-form select:focus{outline:2px solid #617c6f;outline-offset:2px}
.lead-full{grid-column:1/-1}.lead-form .lead-consent{display:flex;gap:10px;align-items:flex-start;margin:22px 0;font-weight:400;line-height:1.6}
.lead-consent input{margin-top:5px;flex-shrink:0;width:16px;height:16px;accent-color:#1a1f29}
.lead-trap{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden;clip:rect(0,0,0,0)}
.lead-status{margin-top:20px;padding:14px;font-size:.85rem;border-radius:4px}.lead-status.success{background:#edf5ef;color:#25634e}.lead-status.error{background:#fff0ee;color:#a83b35}
@media(max-width:560px){.lead-grid{grid-template-columns:1fr}.lead-form{padding:22px}.lead-form .btn{width:100%}}

/* Contact page: large call link with icon, and the WhatsApp button. */
.contact-actions{margin-top:28px}
.contact-actions-label{margin:0 0 14px;font-size:.8rem;color:var(--muted)}
.contact-actions-row{display:flex;flex-wrap:wrap;align-items:center;gap:16px 28px}
.call-link{display:inline-flex;align-items:center;gap:14px;color:var(--ink);text-decoration:none}
.call-icon{display:grid;place-items:center;flex:none;width:52px;height:52px;border-radius:50%;background:var(--ink);color:var(--white);transition:background .2s}
.call-icon svg{width:24px;height:24px}
.call-text{display:grid;gap:2px}
.call-text b{font-size:clamp(1.5rem,1.1rem + 1.6vw,2.125rem);font-weight:600;line-height:1.1;letter-spacing:-.01em}
.call-link:hover .call-icon{background:var(--ink-2)}
.call-link:hover .call-text b{text-decoration:underline;text-underline-offset:4px}
.call-link:focus-visible,.btn.whatsapp:focus-visible{outline:2px solid #617c6f;outline-offset:3px}
.btn.whatsapp{min-width:0;padding:14px 24px;gap:10px;background:#25d366;color:var(--ink);font-weight:600}
.btn.whatsapp:hover{background:#1fbd5a}
.btn.whatsapp svg{width:22px;height:22px;flex:none}
@media(max-width:560px){.contact-actions-row{flex-direction:column;align-items:stretch}.call-link{justify-content:flex-start}.btn.whatsapp{width:100%}}

/* Price tables, running cost and FAQ on the model pages and the price list. */

table.data-table {
  min-width: 640px;
}

table.data-table td {
  font-size: 0.9rem;
}

table.data-table th small,
table.data-table td small {
  display: block;
  margin-top: 4px;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
}

table.data-table tbody th[scope="row"] a {
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
}

.fine-print {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding-left: 18px;
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--muted);
}

.faq {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(20px, 2.4vw, 32px) clamp(28px, 4vw, 56px);
}

.faq-item {
  min-width: 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  overflow-wrap: anywhere;
}

.faq-item h3 {
  margin-bottom: 8px;
  font-size: 1.02rem;
  line-height: 1.4;
}

.faq-item p {
  font-size: 0.94rem;
  line-height: 1.7;
  color: var(--ink-2);
}

#choose h3 {
  margin-bottom: 12px;
}

.video-toggle{position:absolute;right:clamp(20px,4vw,64px);bottom:clamp(26px,4vw,56px);z-index:4;border:1px solid #ffffff80;border-radius:6px;background:#101218b8;color:#fff;padding:10px 16px;font:inherit;font-size:13px;cursor:pointer}.video-toggle:focus-visible{outline:3px solid white;outline-offset:4px}@media(max-width:700px){.video-toggle{bottom:20px;right:20px}.hero:has(.video-toggle) .hero-foot{padding-bottom:86px}}

.design-stats>div{min-width:0}.design-stats b,.design-stats span,.shop-card dd,dialog td{overflow-wrap:anywhere}
