/* ============================================================
   DELIVAN - L3CC All-Electric Commercial Van Landing Page
   1920 design, PC-only, rem = design px / 100 (resizeRoot)
   ============================================================ */

/* ---------- page basics ---------- */
body.l3cc-page {
  background: #000;
  font-family: 'OpenSans-Regular', Arial, sans-serif;
  color: #fff;
}

/* ---------- full-screen section base ---------- */
.l3cc .l3-sec {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #030303;
}

.l3-sec .l3-bg {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

/* typography helpers */
.l3-title {
  font-family: 'OpenSans-Bold', Arial, sans-serif;
  font-size: 0.42rem;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
}

.l3-title .c-cyan { color: #58C1EC; }

/* shared section headline container: every content section (02-08) uses
   .l3-head > h2.l3-title + (optional) p.l3-sub, centered at the section top */
.l3-head {
  position: absolute;
  top: 1.2rem;
  left: 0;
  width: 100%;
  text-align: center;
  z-index: 4;
  pointer-events: none;
}

.l3-body {
  font-size: 0.2rem;
  line-height: 1.95;
  color: rgba(255, 255, 255, 0.62);
}

.l3-body .hl { color: #fff; font-family: 'OpenSans-SemiBold', Arial, sans-serif; }

/* ============================================================
   SECTION 1 - BANNER
   ============================================================ */
.l3-banner {
  height: 100vh;
  background: #000;
}

/* banner artwork: inline --bg (PC) / --bg-m (mobile) */
.l3-banner .l3-bg {
  background-image: var(--bg);
}

/* banner headline is wrapped in the shared .l3-head (absolute, top 1.2rem,
   full-width centered) so its positioning matches every content section */

/* small cyan eyebrow above the model name */
.l3-banner .banner-subtitle {
  font-family: 'OpenSans-Bold', Arial, sans-serif;
  font-size: 0.2rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04rem;
  text-transform: uppercase;
  color: #58C1EC;
  margin-bottom: 0.2rem;
}

/* model name: two solid halves with a hard edge — left half #fff,
   right half #d2f0fa (no gradient) */
.l3-banner h1 {
  display: inline-block;
  font-family: 'OpenSans-Bold', Arial, sans-serif;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 0.8;
  /* margin: 0.2rem 0 0; */
  color: transparent;
  background: linear-gradient(to left, #d2f0fa 0%, #d2f0fa 40%, #f3f5f6 60%, #f3f5f6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* banner bottom spec bar */
.banner-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  height: 1.92rem;
}

.banner-bar .bar-inner {
  width: 100%;
  max-width: 16.8rem;
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.banner-bar .bar-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.16rem;
  text-align: center;
}

.banner-bar .bar-cell .l3-num {
  font-family: 'OpenSans-Regular', Arial, sans-serif;
  font-size: 0.4rem;
  line-height: 1.1;
  color: #fff;
  white-space: nowrap;
}

.banner-bar .bar-cell .l3-num.md {
  font-family: 'OpenSans-SemiBold', Arial, sans-serif;
}

/* reserve the final digit width while count-up runs, so the bar layout
   does not shift as each number grows from 0 to its target */
.banner-bar .bar-cell .l3-num .c {
  display: inline-block;
  min-width: 4ch;
  text-align: center;
}

.banner-bar .bar-cell .lbl {
  font-size: 0.16rem;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.8);
  white-space: nowrap;
  height: .38rem;
}

.banner-bar .vline {
  width: 2px;
  height: 0.66rem;
  background: rgba(255, 255, 255, 0.4);
}

/* shared section sub-title under .l3-title */
.l3-sub {
  font-family: 'OpenSans-Bold', Arial, sans-serif;
  font-size: 0.2rem;
  font-weight: 700;
  margin: 0.2rem auto 0;
  line-height: 1.4;
  color: #fff;
}

/* ============================================================
   SECTION 6 - FAST CHARGING  (#sec-charge / .l3-charge)
   stat layout shared with SECTION 3 (.l3-cargo)
   ============================================================ */
.l3-charge { background: #000; }

.l3-charge .l3-bg {
  background-image: var(--bg);
}

.l3-charge .l3-stats,
.l3-cargo .l3-stats {
  justify-content: center;
  align-items: flex-start;
  flex-direction: column;
  padding-left: 4rem;
}

.l3-charge .l3-stats .stat-cell,
.l3-cargo .l3-stats .stat-cell {
  padding: 0;
  text-align: left;
}

.l3-charge .l3-stats .stat-cell .lbl,
.l3-cargo .l3-stats .stat-cell .lbl {
  margin: 0 0 0.05rem 0;
  font-family: 'OpenSans-Bold', Arial, sans-serif;
  font-size: 0.2rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: normal;
  text-transform: none;
  color: #fff;
}

.l3-charge .l3-stats .stat-cell .l3-num,
.l3-cargo .l3-stats .stat-cell .l3-num {
  font-size: 0.69rem;
  line-height: 1.1;
}
.l3-charge .l3-stats .stat-cell .l3-num>p+p,
.l3-cargo .l3-stats .stat-cell .l3-num>p+p {
  font-size: 0;
}
.l3-charge .l3-stats .stat-cell .l3-num>p+p .unit,
.l3-cargo .l3-stats .stat-cell .l3-num>p+p .unit{
  font-size: .18rem;
}
.l3-charge .l3-stats .stat-cell .l3-num .unit,
.l3-cargo .l3-stats .stat-cell .l3-num .unit {
  font-size: 0.3rem;
  color: #fff;
}

.l3-charge .l3-stats .stat-cell .l3-num .slash {
  display: inline-block;
  font-size: 0.7rem;
  line-height: 1;
  margin: 0 0.04em;
  color: #fff;
}


.l3-charge .l3-stats .stat-cell+.stat-cell{
  margin-top: .48rem;
}
.l3-cargo .l3-stats .stat-cell+.stat-cell{
  margin-top: .64rem;
}

.l3-charge .l3-desc,
.l3-cargo .l3-desc { bottom: 1rem; }

.l3-charge .l3-desc {
  left: 0;
  right: 0;
  width: 10.74rem;
  max-width: 94%;
  margin: 0 auto;
  transform: none;
}

.l3-cargo .l3-desc {
  left: 0;
  right: 0;
  width: 16.65rem;
  max-width: 94%;
  margin: 0 auto;
  transform: none;
}

.l3-charge .l3-desc .l3-body,
.l3-cargo .l3-desc .l3-body {
  font-size: 0.2rem;
  font-weight: 400;
  line-height: 1.4;
  color: #fff;
}

/* ============================================================
   generic stat layout used by charge / cargo
   ============================================================ */
.l3-stats {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.l3-stats .stat-cell {
  text-align: center;
  padding: 0 1.05rem;
}

.l3-stats .stat-cell .l3-num {
  font-family: 'OpenSans-Bold', Arial, sans-serif;
  font-size: 0.72rem;
  line-height: 1;
  color: #fff;
  white-space: nowrap;
}

.l3-stats .stat-cell .l3-num .unit {
  font-size: 0.3rem;
  color: #58C1EC;
  letter-spacing: 0;
}

.l3-stats .stat-cell .lbl {
  margin-top: 0.22rem;
  font-size: 0.15rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6;
  max-width: 4.2rem;
  margin-left: auto;
  margin-right: auto;
}

/* bottom description paragraph inside stat screens */
.l3-desc {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 1.28rem;
  z-index: 4;
  width: 10.4rem;
  text-align: center;
}

.l3-desc .l3-body { font-size: 0.17rem; }

/* ============================================================
   SECTION 3 - HIGH PAYLOAD CAPACITY  (#sec-cargo / .l3-cargo)
   ============================================================ */
.l3-cargo { background: #000; }

.l3-cargo .l3-bg { background-image: var(--bg); }

/* ============================================================
   SECTION 2 - BUILT FOR YOUR BUSINESS  (#sec-business / .l3-business)
   ============================================================ */
.l3-business { background: #000; }

.l3-business .l3-bg { background-image: var(--bg); }

.l3-business .business-car {
  position: absolute;
  left: calc(50% + 0.2rem);
  bottom: 1.6rem;
  transform: translateX(-50%);
  width: 12rem;
  height: auto;
  z-index: 5;
  pointer-events: none;
}

/* ============================================================
   SECTION 4 / 5 / 7 - UPFIT-FRIENDLY CHASSIS · OPEN TELEMATICS PLATFORM
   · POWER SUPPLY CAPABILITY  (shared full-bleed layout)
   .l3-full = shared layout; .l3-upfit / .l3-telematics / .l3-power are
   per-section hooks for future overrides
   ============================================================ */
.l3-full { background: #000; }

.l3-full .l3-bg { background-image: var(--bg); }

.l3-full .sec-bot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1rem;
  z-index: 4;
  text-align: center;
}

.l3-full .sec-note {
  width: 13.93rem;
  margin: 0 auto;
  font-size: 0.2rem;
  font-weight: 400;
  line-height: 1.4;
  color: #fff;
}

/* ============================================================
   SECTION 8 - PARAMETERS
   ============================================================ */
.l3-params { background: #000; }

.l3-params .l3-bg { background-image: var(--bg); }

.l3-params .l3-bg .l3-veil {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* one glass card (canvas 221_191): categories inside the card, data rows
   expand below the active category; card right edge sits at the design
   position (right edge of 1920 canvas = x1754, leaving a 166px gutter) */
.l3-params .params-panel {
  position: absolute;
  right: 1.66rem;
  top: 2rem;
  z-index: 4;
  width: 10.22rem;
  max-width: calc(100% - 1.66rem - 0.5rem);
  box-sizing: border-box;
  border-radius: 0.18rem;
  background: linear-gradient(180deg, rgba(54, 88, 115, 0.44), rgba(7, 18, 32, 0.36));
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  box-shadow: 0 0.16rem 0.6rem rgba(0, 0, 0, 0.32);
  overflow: hidden;
}

/* column labels sitting above the two value columns (N1 / N2); the grid
   tracks match .p-row so every label lines up with its value cell */
.l3-params .p-head {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 0.1rem;
  padding: 0.16rem 0.66rem 0.04rem;
}

.l3-params .p-head .p-col {
  grid-column: 2;
  font-family: 'OpenSans-Bold', Arial, sans-serif;
  font-size: 0.2rem;
  line-height: 1.2;
  color: #fff;
  white-space: nowrap;
}

.l3-params .p-head .p-col + .p-col { grid-column: 3; }

.l3-params .p-groups { padding: 0.1rem 0 0.18rem; }

.l3-params .p-group + .p-group { margin-top: 0.1rem; }

/* category rows: every row (expanded or collapsed) is a white band inset by
   the same left/right gap as the brand row above (0.28rem each side) */
.l3-params .p-group .anc {
  display: flex;
  align-items: center;
  gap: 0.14rem;
  box-sizing: border-box;
  width: calc(100% - 0.56rem);
  margin: 0 0.28rem;
  padding: 0.1rem 0.16rem;
  border: 0;
  background: #fff;
  text-align: left;
  font-family: 'OpenSans-SemiBold', Arial, sans-serif;
  font-size: 0.2rem;
  line-height: 1.05;
  letter-spacing: 0.02em;
  color: #6C879B;
  cursor: pointer;
  transition: box-shadow 0.3s ease;
}

.l3-params .p-group .anc .mark {
  flex: none;
  width: 0.24rem;
  text-align: center;
  font-family: 'OpenSans-SemiBold', Arial, sans-serif;
  font-size: 0.2rem;
  line-height: 1;
  color: #1E7FB0;
  opacity: 0.85;
}

.l3-params .p-group .anc:hover { box-shadow: 0 0.04rem 0.12rem rgba(20, 45, 68, 0.28); }

/* expanded row keeps the same white band, only highlighted a bit more */
.l3-params .p-group.on .anc { box-shadow: 0 0.05rem 0.14rem rgba(20, 45, 68, 0.32); }

.l3-params .p-group.on .anc .mark {
  opacity: 1;
}

.l3-params .p-content {
  display: none;
  padding: 0.04rem 0.66rem 0;
}

.l3-params .p-group.on .p-content {
  display: block;
  animation: pContentOpen 0.35s ease both;
}

@keyframes pContentOpen {
  from { opacity: 0; transform: translateY(-0.04rem); }
  to { opacity: 1; transform: translateY(0); }
}

/* data rows: parameter name in the first column, one cell per variant
   (N1 / N2) in the two value columns */
.l3-params .p-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  align-items: baseline;
  gap: 0.1rem;
  padding: 0.07rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
}

.l3-params .p-row:last-child { border-bottom: none; }

.l3-params .p-row .p-k {
  min-width: 0;
  text-align: left;
  font-size: 0.16rem;
  letter-spacing: 0.02em;
  color: #fff;
  /* white-space: nowrap; */
  overflow: hidden;
  text-overflow: ellipsis;
}

.l3-params .p-row .p-k small,
.l3-params .p-row .p-v small {
  font-family: 'OpenSans-Regular', Arial, sans-serif;
  font-size: 0.13rem;
  color: rgba(255, 255, 255, 0.55);
}

.l3-params .p-row .p-v {
  min-width: 0;
  text-align: left;
  font-family: 'OpenSans-SemiBold', Arial, sans-serif;
  font-size: 0.16rem;
  color: #fff;
  /* white-space: nowrap; */
  overflow: hidden;
  text-overflow: ellipsis;
}

/* a value shared by both variants (or a variant list) spans both columns */
.l3-params .p-row .p-v.span2 {
  grid-column: 2 / span 2;
  white-space: normal;
}

/* ============================================================
   entrance animation pre-state (antAnimate)
   ============================================================ */
.l3cc .ant {
  opacity: 1;
}

@media (max-width: 768px) {
  .l3-banner .banner-subtitle { font-size: 0.3rem; }
  .l3-banner h1 { font-size: 0.8rem; }

  /* banner core spec bar: two cells per row on phones */
  .l3-banner .banner-bar {
    height: auto;
    padding: 0.24rem 0.2rem 1rem;
    box-sizing: border-box;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.55) 100%);
  }
  .l3-banner .bar-inner {
    height: auto;
    max-width: none;
    display: flex;
    flex-wrap: wrap;
    column-gap: 0.12rem;
    row-gap: 0.34rem;
    padding: 0 .6rem;
    box-sizing: border-box;
  }
  .l3-banner .vline { display: none; }
  .l3-banner .bar-cell { gap: 0.06rem; }
  /* phones: size (cell 1) and cargo volume (cell 2) each take a full row,
     payload and wheelbase share the last row; nth-child(3) is the 2nd cell
     because the hidden .vline dividers are children of .bar-inner too */
  .l3-banner .bar-cell:first-child,
  .l3-banner .bar-cell:nth-child(3){
    width: 100%;
  }
  .l3-banner .bar-cell .lbl{
    height: auto;
  }
  .l3-banner .bar-cell:first-child .lbl{
    height: .62rem;
  }
  .l3-banner .bar-cell .l3-num { font-size: 0.36rem; }
  .l3-banner .bar-cell .lbl {
    font-size: 0.24rem;
    line-height: 1.3;
    white-space: normal;
  }

  .l3-sub { font-size: 0.24rem;}
  .l3-head {
    padding: 0 0.2rem;
    box-sizing: border-box;
    top: 1.6rem;
  }
  .l3-title{
    line-height: 1.1;
  }
  .l3-charge .l3-desc .l3-body, .l3-cargo .l3-desc .l3-body {
    font-size: 0.24rem;
  }
  .l3-body {
    padding: 0 0.4rem;
  }
  .l3-charge .l3-stats, .l3-cargo .l3-stats {
    padding-left: 0;
    justify-content: center;
    flex-direction: row;
    top: auto;
    flex-wrap: wrap;
    bottom: 3rem;
    padding: 0 0.4rem;
  }
  .l3-cargo .l3-stats{
    bottom: 4.6rem;
  }
  /* .l3-charge .l3-stats .stat-cell-2, .l3-cargo .l3-stats .stat-cell-2{
    margin-top: 0;
  } */

  .l3-charge .l3-stats .stat-cell+.stat-cell{
    margin-top: 0;
  }
  .l3-cargo .l3-stats .stat-cell+.stat-cell{
    margin-top: 0;
  }

  /* .l3-charge .l3-stats .stat-cell-2, .l3-cargo .l3-stats .stat-cell-2 {
    margin-top: 0;
  } */
  

  
  /* mobile artwork for the banner / cargo / business / charge sections */
  .l3-banner .l3-bg,
  .l3-cargo .l3-bg,
  .l3-business .l3-bg, 
  .l3-upfit .l3-bg,
  .l3-telematics .l3-bg,
  .l3-power .l3-bg,
  .l3-charge .l3-bg,
  .l3-params .l3-bg {
    background-image: var(--bg-m);
  }
  .l3-charge .l3-bg{
    background-position: 84% center;
  }
  .l3-business .business-car{
    bottom: 4rem;
    width: 90%;
  }

  .l3-full .sec-note{
    width: 100%;
    padding: 0 .4rem;
    box-sizing: border-box;
    font-size: .24rem;
  }
  .l3-params .l3-bg{
    background-position: 64% center;
  }
  .l3-params .params-panel{
    width: 90%;
    left: 5%;
    top: 4.2rem;
    right: auto;
    max-width: 100%;
  }
  .l3-params .p-head{
    padding: .12rem .4rem .04rem;
    gap: .06rem;
  }
  .l3-params .p-head .p-col{
    font-size: .24rem;
  }
  .l3-params .p-group .anc .mark{
    font-size: .24rem;
  }
  .l3-params .p-group .anc{
    font-size: .24rem;
  }
  .l3-params .p-content{
    padding: 0.04rem 0.4rem 0;
  }
  .l3-params .p-row{
    gap: .06rem;
  }
  .l3-params .p-row .p-k, .l3-params .p-row .p-v{
    font-size: .22rem;
  }
}