/* Shared kit for the sales pages (front page, HS-systemet, Bliv forhandler, Om Scanlock, Find forhandler, VAN-LOCK): hero, spec row,
   feature sections and the dark band with the two routes. Loaded before the
   page's own stylesheet, so a page can still adjust. */
/* hero: white, the image in its own column right of the text, never under it, with room around it.
   The column runs from the end of the text (560px + a gap) to the right edge of the page content. */
.hero{position:relative;overflow:hidden;background:#fff;border-bottom:1px solid var(--line)}
.hero-media{position:absolute;top:12%;bottom:12%;left:calc(max(0px,(100% - var(--content)) / 2) + var(--gutter) + 560px + var(--s6));right:calc(max(0px,(100% - var(--content)) / 2) + var(--gutter))}
.hero-media img{width:100%;height:100%;object-fit:contain;object-position:50% 50%;display:block;filter:drop-shadow(0 22px 24px rgba(18,32,47,.14))}

/* a photographed scene fills the slot; the drop shadow belongs to cut-out parts */
.hero-media.photo img{object-fit:cover;filter:none}
.hero-in{position:relative;z-index:2;min-height:620px;display:flex;align-items:center}
.hero-txt{max-width:560px;padding-top:var(--s6);padding-bottom:var(--s6)}
.h1{font-size:58px;line-height:1.0;margin:var(--s2) 0 var(--s3);text-wrap:balance}
.h1 span{display:block}
.lede{font-size:20px;line-height:1.45;color:var(--ink-2);margin:0 0 var(--s4);max-width:27em}
.cta{display:flex;gap:12px;flex-wrap:wrap}

.specs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-bottom:1px solid var(--line);margin:0}
.spec{padding:var(--s4);border-left:1px solid var(--line)}
.spec:first-child{border-left:0;padding-left:0}
.specs dt,.specs dd{margin:0}
.spec .v{font-family:var(--f-head);font-weight:700;font-size:44px;margin:var(--s1) 0 2px;line-height:1.0;font-variant-numeric:tabular-nums}
.spec .d{font-size:16px;color:var(--ink-2)}

.band{padding-top:var(--s7);padding-bottom:var(--s7)}
.sec-h{font-size:38px;line-height:1.04;margin:12px 0 0;text-wrap:balance}
.body{font-size:18px;line-height:1.55;color:var(--ink-2);margin:var(--s2) 0 0;max-width:34em}
.src-note{font-size:14px;color:var(--ink-3);margin:var(--s2) 0 0;line-height:1.5}

/* feature: media left, text right; .rev swaps them */
.feat{display:grid;grid-template-columns:minmax(0,6fr) minmax(0,5fr);gap:var(--s6);align-items:center}
.feat.rev .feat-media{order:2}
.feat-media{min-width:0}
.feat-media.photo-field{aspect-ratio:4/3}
.feat-media.photo-field.wide{aspect-ratio:2/1}
.feat-media.photo-field img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}
.feat-media.photo-field.fill img{width:100%;height:100%;max-width:none;max-height:none;object-fit:cover}
/* scenes (side-code close-up, van) run edge to edge with no frame */
.feat-media.photo-field{background:none;border:0;padding:0}
/* product shots are cut out (transparent): no box, a soft shadow where the floor shadow was */
.feat-media.cutout{aspect-ratio:4/3;display:flex;align-items:center;justify-content:center}
.feat-media.cutout img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;filter:drop-shadow(0 18px 20px rgba(18,32,47,.14))}
/* rhythm: sections alternate between the page colour and a light tint, separated by space, not
   hairlines */
.feat-band{background:var(--tint)}
.band.ruled::before{display:none}
.ticks{list-style:none;padding:0;margin:var(--s3) 0 0;border-top:1px solid var(--line)}
.ticks li{padding:12px 0;border-bottom:1px solid var(--line);font-size:17px}
.feat .more{margin-top:var(--s3)}
.links{display:flex;gap:var(--s3);flex-wrap:wrap;font-size:16px;font-weight:600;margin-top:var(--s3)}
.links a{color:var(--ink)}
.links a:hover{color:var(--brass-ink)}

/* the two routes, on the dark band */
.dealer{background:var(--ink);color:var(--paper)}
.dealer .eyebrow{color:#D9BE8F}
.dealer .sec-h{color:var(--paper)}
.dealer .body{color:var(--on-dark)}
.dealer .more{color:var(--paper)}
.dealer .more:hover{color:var(--brass)}
.routes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--s6)}
.route{display:flex;flex-direction:column}
.route .body{margin-bottom:var(--s4)}
.route:first-child{border-right:1px solid var(--on-dark-line);padding-right:var(--s6)}
.field{display:flex;border:1px solid var(--on-dark-line)}
.field input.in{flex:1;height:56px;border:0;background:transparent;padding:0 18px;color:var(--paper);font-size:18px;width:auto;min-width:0}
.field input.in::placeholder{color:#A9B0B7}
.field input.in:focus{outline:2px solid var(--paper);outline-offset:-2px}
.field .btn{height:56px;border:0;border-radius:0}

@media (max-width:900px){
  .hero{background:#fff}
  .hero-media{position:relative;top:auto;bottom:auto;left:auto;right:auto;width:100%;height:300px;height:clamp(180px,30svh,300px);padding:var(--s3) var(--gutter) 0}
  /* the image scales with the visible screen so the buttons stay above the fold on a phone */
  .hero-media img{object-fit:contain;object-position:50% 50%}
  .hero-in{min-height:0}
  .hero-txt{padding-top:var(--s1);padding-bottom:var(--s5)}
  .h1{font-size:38px}
  .lede{font-size:18px}
  .cta .btn{flex:1;padding:0 12px}
  .specs{grid-template-columns:1fr}
  .spec,.spec:first-child{border-left:0;border-top:1px solid var(--line);padding:var(--s3) 0}
  .spec:first-child{border-top:0}
  .spec .v{font-size:34px}
  .band{padding-top:var(--s6);padding-bottom:var(--s6)}
  .sec-h{font-size:30px}
  .feat,.routes{grid-template-columns:minmax(0,1fr);gap:var(--s4)}
  .feat.rev .feat-media{order:0}
  .route:first-child{border-right:0;padding-right:0;border-bottom:1px solid var(--on-dark-line);padding-bottom:var(--s5)}
}
