/* MGx8 home page and product page. Built on site.css (tokens, base, header, footer, buttons).
   One section is about one screen (at least the viewport height), content starts 120 px from the top, text sits on the
   left and the picture on the right on a 12-column grid, sections are told apart by ground or space only.
   The pictures are real application screenshots from assets/img/screens/ and carry no captions. */

/* ── Sections and grid ───────────────────────────────── */
main{position:relative;overflow-x:clip}
.section{position:relative;padding:120px 0}
.section--band{background:var(--band)}
.grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:24px;align-items:start}
.col-text{grid-column:1/6;display:flex;flex-direction:column;gap:28px}
.col-vis{grid-column:7/13}
.col-head{grid-column:1/7}
.col-lead{grid-column:7/13;display:flex;flex-direction:column;align-items:flex-start;gap:24px}
/* a faint hairline between the sections of the home page (the page hairline colour); not under the hero, which melts into the section below it */
.home .section:not(.hero) + .section,.home .showcase + .section,.home main + .site-footer{border-top:1px solid var(--line)}
/* the same faint hairline between the sections of a product page (its hero is a plain one, so there is a line under it too) and above the footer */
.product .section + .section,.product main + .site-footer{border-top:1px solid var(--line)}

/* ── Pictures: one window frame, real screenshots ────── */
.frame{overflow:hidden;border:1px solid var(--line2);border-radius:var(--r-lg);background:var(--bg)}
.frame img{display:block;width:100%;height:100%;object-fit:cover;object-position:left top;transition:transform .6s var(--ease)}
.frame--cut{aspect-ratio:628/540}
.frame--cut img{width:175%;max-width:none;height:auto;object-fit:initial}
.frame--43{aspect-ratio:4/3}
.frame--wide{height:500px}
.frame--wide img{height:auto;object-fit:initial}
.frame--right img{object-position:right top}
.frame--hero{aspect-ratio:628/540}
.shot-missing{display:grid;place-items:center;height:100%;min-height:160px;background:var(--card);color:var(--dim);font:12px var(--mono)}

/* ── Lists ───────────────────────────────────────────── */
.rows{border-bottom:1px solid var(--line)}
.rows li{padding:14px 0;border-top:1px solid var(--line);font-size:16px;line-height:24px}
.dl{display:grid;grid-template-columns:240px minmax(0,1fr);column-gap:24px;padding:16px 0;border-top:1px solid var(--line);font-size:16px;line-height:24px}
.dl:last-child{border-bottom:1px solid var(--line)}
.dl dt{color:var(--muted)}
.dl dd{margin:0}

/* ── Hero ────────────────────────────────────────────── */
.hero{display:flex;flex-direction:column;min-height:max(100svh,760px);padding:120px 0 64px}
.hero .grid{align-items:start}
.hero-lead{max-width:46ch}
.hero-actions{display:flex;flex-wrap:wrap;gap:12px}
.facts{margin-top:auto;padding-top:56px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:24px}
.facts strong{display:block;font-size:20px;line-height:28px;font-weight:500}
.facts span{display:block;margin-top:4px}
.hero-main{margin-top:auto}
/* the three trust points under the software cards (inside the shop section) */
/* the small print about taxes, under the cards and above the trust strip */
.shop-disclaimer{max-width:80ch;margin:32px auto 0;color:var(--dim);font-size:12px;line-height:18px;text-align:center}
.shop-trust.facts{margin-top:80px;padding-top:0;text-align:center}
.shop-disclaimer + .shop-trust.facts{margin-top:64px}
.shop-trust .ico-lg{display:block;width:60px;height:60px;margin:0 auto 20px;fill:none;stroke:var(--ink2);stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
.shop-trust .small{max-width:36ch;margin-inline:auto}
/* the three points under the hero of a product page: a line icon (the same style as the trust points of the home page) at the LEFT of
   the title and the small text, which stand one under the other; the three columns are equally wide (.facts) and each point is
   centred in its column */
.fact{display:grid;grid-template-columns:auto minmax(0,max-content);justify-content:center;column-gap:16px;align-items:center}
.fact .ico-fact{display:block;grid-row:1/3;width:40px;height:40px;fill:none;stroke:var(--ink2);stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
.fact strong,.fact span{grid-column:2}

/* the hero enters once on load: the h1 rises, the words follow, the picture settles */
@keyframes rise{from{opacity:0;transform:translateY(40px)}to{opacity:1;transform:none}}
@keyframes up{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
@keyframes settle{from{opacity:0;transform:scale(.98)}to{opacity:1;transform:none}}
.enter-h{animation:rise .7s var(--ease) both}
.enter-a{animation:up .52s var(--ease) .32s both}
.enter-b{animation:up .52s var(--ease) .44s both}
.enter-c{animation:up .52s var(--ease) .56s both}
.enter-m{animation:settle .9s var(--ease) .15s both}

/* ── Home hero: the original look of the site ────────────
   The big LOG. TUNE. FLASH. title over three floating application windows under a dark shade. The title rises out of
   word masks, the words and buttons fade in, the windows arrive and then hover; the windows drift a little while the page
   scrolls (landing.js sets --hp). Everything rests under reduced motion. */
.btn-lg{height:50px;padding:0 24px;font-size:15px}
.btn-lg .btn-ico{width:18px;height:18px}
/* the price tag of "See our plans" sat a little high next to the lowercase text (its box is centred, the text's centre is lower): 1 px down */
.hero-actions .btn-main .btn-ico{transform:translateY(1px)}
.hero--stack{--display:"Barlow Condensed",Impact,"Arial Narrow",sans-serif;position:relative;isolation:isolate;flex-direction:row;align-items:center;min-height:clamp(720px,100svh,980px);padding:calc(var(--nav) + 48px) 0 72px;overflow:clip}
.hero--stack .hero-text{position:relative;z-index:1;text-shadow:0 2px 32px rgba(11,13,16,.75)}
.hero-title{font:600 clamp(74px,12vw,196px)/.84 var(--display);letter-spacing:-.022em;text-transform:uppercase}
.hero-title .mask{display:inline-block;overflow:hidden;vertical-align:top;padding:.04em .04em .12em 0;margin:-.04em .2em -.12em 0}
.js .hero-title .mask>span{display:block;transform:translateY(108%);transition:transform 1.1s var(--ease)}
.hero--stack.is-ready .hero-title .mask>span{transform:none}
.hero--stack.is-ready .hero-title .mask:nth-child(2)>span{transition-delay:.1s}
.hero--stack.is-ready .hero-title .mask:nth-child(3)>span{transition-delay:.2s}
.hero-lede{max-width:50ch;margin-top:clamp(24px,3vw,36px);color:var(--muted);font-size:clamp(17px,1.5vw,20px);line-height:1.6}
.hero--stack .hero-actions{margin-top:28px;gap:10px}
.js .hero-lede,.js .hero--stack .hero-actions{opacity:0;transform:translateY(16px)}
.hero--stack.is-ready .hero-lede,.hero--stack.is-ready .hero-actions{opacity:1;transform:none;transition:opacity .9s var(--ease) .45s,transform .9s var(--ease) .45s}
.hero--stack.is-ready .hero-actions{transition-delay:.6s}
html:not(.js) .hero-lede,html:not(.js) .hero--stack .hero-actions,html:not(.js) .win{opacity:1;transform:none}

/* the three application windows hover behind the text; the shade keeps the text readable */
.stack{position:absolute;inset:0;z-index:-2;perspective:2400px;pointer-events:none}
.win{position:absolute}
.win-tuner{z-index:2;left:42%;width:66%;top:14%;translate:calc(var(--hp,0) * 2%) calc(var(--hp,0) * -24px)}
.win-logger{z-index:1;left:4%;width:46%;top:70%;translate:calc(var(--hp,0) * -4%) calc(var(--hp,0) * 30px)}
.win-flasher{z-index:3;left:62%;width:44%;top:57%;translate:calc(var(--hp,0) * 4%) calc(var(--hp,0) * 30px)}
.win .frame{border-radius:var(--r-sm)}
.win-logger .frame{transform:rotateY(12deg);transform-origin:right center}
.win-flasher .frame{transform:rotateY(-12deg);transform-origin:left center}
.win-tuner .frame{border-color:var(--line3)}
.win .frame img{height:auto;object-fit:initial}
/* the shade over the video: dark on the left where the text is, and fading into the page at the top and the bottom (no blue glow
   in the hero any more, the user took it out) */
.hero-shade{--fade:linear-gradient(0deg,var(--band) 0,rgba(13,16,20,.95) 6%,rgba(13,16,20,.82) 14%,rgba(13,16,20,.6) 24%,rgba(13,16,20,.36) 35%,rgba(13,16,20,.16) 46%,rgba(13,16,20,.05) 56%,rgba(13,16,20,0) 64%);position:absolute;inset:0;z-index:-1;pointer-events:none;background:var(--fade),linear-gradient(90deg,rgba(11,13,16,.88) 0%,rgba(11,13,16,.76) 45%,rgba(11,13,16,.52) 100%),linear-gradient(180deg,rgba(11,13,16,.7) 0,rgba(11,13,16,0) 18%)}
/* --fade: the bottom of the hero melts into the colour of the section below it (the software band) over a long, eased stretch */
/* the hero video fills the whole hero (full screen, cropped to fit); a little darker, so the white title stays readable */
.hero-video{position:absolute;z-index:-2;inset:0;overflow:hidden;pointer-events:none}
.hero-video video{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 55%;filter:brightness(.7) saturate(.92)}
.win .frame{--float:10px;animation:float 7s ease-in-out 1.7s infinite}
.win-logger .frame{--float:14px;animation-duration:8.6s;animation-delay:2.2s}
.win-flasher .frame{--float:14px;animation-duration:9.8s;animation-delay:2.7s}
.hero--stack.is-out .win .frame{animation-play-state:paused}
@keyframes float{0%,100%{translate:0 0}50%{translate:0 calc(var(--float) * -1)}}
.js .win{opacity:0;transform:translateY(90px)}
.hero--stack.is-ready .win{opacity:1;transform:none;transition:opacity 1.1s var(--ease),transform 1.3s var(--ease)}
.hero--stack.is-ready .win-logger{transition-delay:.55s}
.hero--stack.is-ready .win-flasher{transition-delay:.7s}
.hero--stack.is-ready .win-tuner{transition-delay:.35s}

/* ── Chips: licenses ────────────────────────────── */
.chip{display:block;min-height:36px;padding:6px 12px;border:1px solid var(--line2);border-radius:var(--r-sm);background:transparent;color:var(--ink2);font-size:13px;font-weight:500;line-height:18px;text-align:left;cursor:pointer;transition:border-color .15s,background .15s,color .15s}
.chip:hover{border-color:var(--line4);color:var(--ink)}
.chip.is-on,.chip:has(input:checked){border-color:var(--focus);background:var(--sel);color:var(--ink)}
.chip:has(input:focus-visible){outline:2px solid var(--focus);outline-offset:2px}
.chip small{display:block;color:var(--dim);font-size:12px;font-weight:400;line-height:18px}

/* Two licenses are one sliding switch, like the on/off switch of iOS: Single VIN left (off), Unlimited VIN right (on) */
.license-switch{grid-column:1/-1;display:grid;grid-template-columns:auto auto auto;justify-content:center;align-items:center;column-gap:12px;row-gap:6px}
.ls-opt{display:inline-flex;color:var(--dim);font-size:13px;font-weight:500;line-height:30px;cursor:pointer;transition:color .2s}
.ls-opt:hover{color:var(--ink2)}
.ls-a,.license-switch.is-on .ls-b{color:var(--ink)}
.license-switch.is-on .ls-a{color:var(--dim)}
.license-switch:not(.is-on):has(.ls-b input:checked) .ls-a{color:var(--dim)}
.license-switch:not(.is-on):has(.ls-b input:checked) .ls-b{color:var(--ink)}
.ls-track{position:relative;flex:none;width:52px;height:30px;border-radius:999px;background:var(--line2);cursor:pointer;transition:background .25s var(--ease)}
.ls-knob{position:absolute;top:2px;left:2px;width:26px;height:26px;border-radius:999px;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.45);transition:transform .25s var(--ease),width .2s var(--ease)}
.license-switch.is-on .ls-track,.license-switch:has(.ls-b input:checked) .ls-track{background:var(--action)}
.license-switch.is-on .ls-knob,.license-switch:has(.ls-b input:checked) .ls-knob{transform:translateX(22px)}
.ls-track:active .ls-knob{width:32px}
.license-switch.is-on .ls-track:active .ls-knob{transform:translateX(16px)}
.license-switch:has(input:focus-visible) .ls-track{outline:2px solid var(--focus);outline-offset:3px}
/* one license type: plain text, no chooser */
.license-one{grid-column:1/-1;color:var(--ink2);font-size:14px;font-weight:500;line-height:30px;text-align:center}

/* ── Shop: four cards, six rows each at the same height (picture, description, license, price, buttons, note) ── */
.shop-head{display:flex;justify-content:space-between;align-items:flex-end;flex-wrap:wrap;gap:16px 24px;margin-bottom:40px}
.cards{position:relative;isolation:isolate;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));column-gap:24px}
/* one round blue glow behind the whole group of cards, very faint (the card ground is opaque, so it shows around and between them) */
.cards::before{content:"";position:absolute;z-index:-1;inset:-210px -280px;border-radius:50%;pointer-events:none;background:radial-gradient(closest-side,rgba(5,123,245,.2) 0%,rgba(5,123,245,.13) 45%,rgba(5,123,245,.05) 75%,rgba(5,123,245,0) 100%)}
.card{position:relative;display:grid;grid-row:span 6;grid-template-rows:subgrid;row-gap:12px;border:1px solid var(--line);border-radius:var(--r-md);background:var(--card);transition:transform .32s var(--ease),border-color .32s,box-shadow .32s}
.card.is-hidden{display:none}
/* an inactive card (MGx8 Tool for now, 'inactive' in index.php): dimmed and greyed, not a link, no price or Buy button, and nothing
   grows or glows under the pointer */
.card--off{filter:grayscale(.6) brightness(.72);cursor:default}
.card form{display:contents}
.card-shot{display:flex;flex-direction:column;overflow:hidden;border-radius:calc(var(--r-md) - 1px) calc(var(--r-md) - 1px) 0 0;background:var(--bg)}
/* the title bar of the application: product name in the brand blue (#057BF5, Barlow Condensed SemiBold) and the muted version, no logo */
.card-bar{display:flex;align-items:baseline;gap:10px;flex:none;height:46px;padding:10px 16px 0;border-bottom:1px solid var(--line);background:var(--bg)}
.card-bar b{color:#057bf5;font:600 26px/1 var(--display);letter-spacing:.01em;text-transform:uppercase}
.card-bar i{color:var(--muted);font:400 17px/1 var(--font);font-style:normal}
/* an orange bubble on the top edge of the card that sticks out of it (BETA on the Flasher card); the card itself does not clip,
   the title bar rounds its own top corners */
/* The bubble is a little metallic: a gradient fill, a gradient edge that is lighter at the top left, and every few seconds a soft
   glint sweeps across it. */
/* orange by default (BETA); .card-badge--green is the green one (NEW on the Tool card): the colours are custom properties */
.card-badge{--fill1:#43290a;--fill2:#241709;--fill3:#33200a;--edge1:#ffd98a;--edge2:#ff9f1c;--edge3:#b86100;--ink:#ffae3d;--halo:rgba(255,159,28,.18);--sheen:rgba(255,232,190,.6);--glint-delay:1.2s;position:absolute;z-index:3;top:-13px;right:16px;overflow:hidden;padding:6px 11px 5px;border:1px solid transparent;border-radius:999px;background:linear-gradient(135deg,var(--fill1) 0%,var(--fill2) 48%,var(--fill3) 100%) padding-box,linear-gradient(135deg,var(--edge1) 0%,var(--edge2) 45%,var(--edge3) 100%) border-box;color:var(--ink);font:600 12px/1 var(--font);letter-spacing:.09em;text-transform:uppercase;box-shadow:0 4px 14px rgba(0,0,0,.5),0 0 12px var(--halo)}
.card-badge--green{--fill1:#0f3d22;--fill2:#0a2415;--fill3:#0d3019;--edge1:#a6f3bf;--edge2:#2fd16a;--edge3:#0f7a39;--ink:#4fe08a;--halo:rgba(47,209,106,.2);--sheen:rgba(205,255,224,.6);--glint-delay:3.5s}
.card-badge::after{content:"";position:absolute;top:0;bottom:0;left:0;width:45%;pointer-events:none;background:linear-gradient(100deg,transparent 0%,var(--sheen) 50%,transparent 100%);transform:translateX(-160%) skewX(-18deg);animation:badge-glint 4.6s ease-in-out var(--glint-delay) infinite}
@keyframes badge-glint{0%,60%{transform:translateX(-160%) skewX(-18deg)}100%{transform:translateX(330%) skewX(-18deg)}}
@media (prefers-reduced-motion:reduce){.card-badge::after{animation:none}}
/* the screenshot starts below its own title bar, which the bar above replaces; it is shown whole (contained) in a frame of one
   shape (1.85 : 1), centred, with the dark ground of the application around it */
.card-pic{position:relative;display:block;overflow:hidden;aspect-ratio:1.85/1;background:var(--bg)}
.card-pic .pic{position:absolute;inset:0;margin:auto;overflow:hidden;aspect-ratio:var(--ratio,16/9)}
.card-pic .pic-w{width:100%}
.card-pic .pic-h{height:100%}
.card-pic img{display:block;width:100%;height:auto;margin-top:calc(var(--skip,0%) * -1)}
/* a product without a screenshot shows its main features in the same frame */
/* a photograph in the picture frame fills it; --pos (from index.php) says which part of the photo stays in view */
.card-pic--photo img{width:100%;height:100%;margin:0;object-fit:cover;object-position:var(--pos,50% 50%)}
/* TRIAL variant (.cards--photo): the photo is the background of the whole card, under a dark overlay that gets stronger towards the
   bottom, so the text stays readable. The picture frame leaves the flow (it fills the card behind everything, from below the title bar down), the title bar stays a solid
   bar like the title bar of the Logger application, so the photo does not run under it. The card is shorter because the picture row is gone, a little room remains above the text for the photo to show. */
.cards--photo .card{isolation:isolate}
.cards--photo .card-shot{min-height:104px;background:transparent}
.cards--photo .card-pic{position:absolute;inset:46px 0 0 0;z-index:-1;aspect-ratio:auto;border-radius:0 0 calc(var(--r-md) - 1px) calc(var(--r-md) - 1px);background:var(--card)}
.cards--photo .card-pic--photo img{object-position:var(--pos-bg,var(--pos,50% 50%))}
.cards--photo .card-pic::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(6,8,10,.55) 0%,rgba(6,8,10,.72) 12%,rgba(6,8,10,.83) 22%,rgba(6,8,10,.85) 100%)}
.card-pic--list{display:flex;flex-direction:column;justify-content:center;padding:0 16px}
.pic-row{display:block;padding:9px 0;border-top:1px solid var(--line);color:var(--ink2);font-size:14px;line-height:20px}
.pic-row:first-child{border-top:0}
.rows--inset{padding:0 24px;border-bottom:0}
.rows--inset li:first-child{border-top:0}
.more{display:flex;flex-wrap:wrap;align-items:center;gap:12px 24px}
/* the line under the download button and the link of a showcase screen (version and system), on its own row */
.more-note{flex:0 0 100%;margin:0}
/* the notes under the picture of a showcase screen: they explain the small raised numbers of the text beside it, like the notes of the
   software cards (.card-note, .note-more) but a little larger; the picture grows over them a little on hover, so there is room */
.show-note{margin:22px 0 0;color:var(--dim);font-size:12px;line-height:18px}
.show-note sup{font-size:.72em;line-height:0;vertical-align:super}
.lead sup{font-size:.55em;line-height:0;vertical-align:super}
.card-desc{padding:8px 20px 0;font-size:15px;line-height:21px;color:var(--ink2)}
.card-licenses{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:0 20px;align-content:start}
.card-licenses .none{grid-column:1/-1;align-self:center;color:var(--dim);font-size:14px;line-height:21px}
.card-price{display:flex;align-items:baseline;justify-content:flex-end;gap:8px;padding:0 20px;color:var(--dim);font-size:14px;line-height:21px}
.card-price strong{color:var(--ink);font:600 68px/.9 var(--display);letter-spacing:-.005em;font-variant-numeric:tabular-nums}
/* the old price: small, faint and struck through, to the left of the price */
.card-price .price-old{margin-right:4px;color:rgba(138,148,160,.55);font:600 28px/1 var(--display);letter-spacing:0;text-decoration:line-through;text-decoration-thickness:2px}
.card-price .price-old[hidden]{display:none}
.card-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:0 20px}
.card-actions .btn{width:100%;padding:0 12px}
.card-actions .btn:only-child{grid-column:1/-1}
.card-note{padding:0 20px 20px;color:var(--dim);font-size:10px;line-height:15px}
.card sup{font-size:.72em;line-height:0;vertical-align:super}
.card-desc sup{font-size:10px}
/* a later footnote of a card note: its own line, with a little space above */
.note-more{display:block;margin-top:7px}
.shop-more{max-width:80ch;margin-top:32px}
@media (hover:hover) and (pointer:fine){
  /* a software card grows a lot under the pointer and rises above its neighbours; its picture does not move on its own */
  /* and it gets a blue glow of its own (the glow behind the whole group stays) */
  .card:not(.card--off):hover{z-index:4;transform:translateY(-10px) scale(1.09);border-color:rgba(5,123,245,.75);box-shadow:0 0 24px rgba(5,123,245,.6),0 0 96px rgba(5,123,245,.42),0 32px 72px rgba(0,0,0,.55)}
  /* A picture frame (the showcase, the pictures of the product pages, the "Works with" cards) behaves like a software card: the whole
     frame grows and rises under the pointer and gets the same blue border and glow; the picture inside does not zoom on its own. */
  .frame--shot{transition:transform .32s var(--ease),border-color .32s,box-shadow .32s}
  .frame--shot:hover{position:relative;z-index:4;transform:translateY(-10px) scale(1.09);border-color:rgba(5,123,245,.75);box-shadow:0 0 24px rgba(5,123,245,.6),0 0 96px rgba(5,123,245,.42),0 32px 72px rgba(0,0,0,.55)}
}
@supports not (grid-template-rows:subgrid){
  .card,.card form{display:flex;flex-direction:column;gap:12px}
  .card-desc{min-height:84px}
}

/* ── The sequence: hero, Logger, Tuner, Flasher and the software cards ──
   On a big screen (html.show-pin: set by the script in the head of index.php, kept by landing.js, which also checks that every screen
   fits the window) the stage is pinned (sticky) while the page scrolls through the section, and every step of the scrolling slides
   the next screen up into its place as an ANIMATION (landing.js sets --y on the screens and .is-active on the one in place). The hero
   is the first screen and the software cards the last one; the notes under the cards and everything after them are ordinary page.
   Without that (a small or short screen, no script) the screens simply follow each other: the three programs on the band ground with
   a hairline between them, then the cards on the page ground. No status bar or caption on top (the user took it out). */
.show-panel--body{padding:96px 0;background:var(--band)}
.show-panel--body + .show-panel--body{border-top:1px solid var(--line)}
.show-panel--shop{padding:96px 0 120px;background:var(--bg);border-top:1px solid var(--line)}
.frame--shot img{height:auto;object-fit:initial}
/* a screen recording in a picture frame (store_video() in store-lib.php) fills it at its own ratio, like a screenshot */
.frame video{display:block;width:100%;height:auto;background:var(--bg)}
/* an animated SVG scene (store_scene() in store-lib.php) fills it the same way; only the outer <svg>, not the ones nested in it */
.frame > svg{display:block;width:100%;height:auto}
/* a panel with .show-panel--flip is mirrored on wide screens: the picture on the left (columns 1-6), the text on the right (8-12). Both
   get an explicit row, otherwise the grid would put the second item on a new row. Below 1024 px the text comes first, as in the others. */
@media (min-width:1024px){
  .show-panel--flip .col-text{grid-column:8/13;grid-row:1}
  .show-panel--flip .col-vis{grid-column:1/7;grid-row:1}
}
.col-text{position:relative;z-index:1}
/* a round blue glow behind every picture column: the screens of the home page and the hero and detail pictures of the product pages,
   as faint as the glow behind the cards (same blue, same alphas); on the home page it comes and goes with its panel, and the text
   stays above it */
.col-vis{position:relative;isolation:isolate}
.col-vis::before{content:"";position:absolute;z-index:-1;inset:-130px -170px;border-radius:50%;pointer-events:none;background:radial-gradient(closest-side,rgba(5,123,245,.2) 0%,rgba(5,123,245,.13) 45%,rgba(5,123,245,.05) 75%,rgba(5,123,245,0) 100%)}
/* the first section of a product page has the photograph of the product behind it (.hero-photo), so its picture rests without the round
   glow; the blue border and glow of .frame--shot:hover (above) stay */
.product .hero .col-vis::before{content:none}

/* the pinned stage: the section is the stage plus one step of scrolling (--step svh) for every screen but the last (--panels must be the
   number of screens) plus --last for the last one (one step, or in px the part of the last screen that does not fit the window,
   which landing.js sets); landing.js changes the screen when the scroll position enters the next step; a longer --step means more
   scrolling per screen */
.show-pin .showcase{--panels:5;--step:50;height:calc(100svh + (var(--panels) - 1) * var(--step) * 1svh + var(--last, calc(var(--step) * 1svh)))}
.show-pin .show-stage{position:sticky;top:0;height:100svh;overflow:clip;background:var(--band);transition:background-color .6s ease}
.show-pin .show-stage.is-last{background:var(--bg)}
/* The screens sit one below the other like the parts of a long page, each centred in the stage (which clips them), the hero filling
   it; landing.js sets --y on each, and the change of --y is ANIMATED: when the next step of the scrolling begins, the screen in place
   glides up and out while the next one glides up into its place (a slow-ending ease), so the page cannot be held half way between two
   screens. The screen that leaves fades out only once it is mostly gone (the delay), the one that arrives is there at once. */
.show-pin .show-panels{display:grid;height:100%}
.show-pin .show-panel{grid-area:1/1;align-self:center;margin:calc(var(--nav) - 20px) 0 0;transform:translate3d(0,var(--y,0px),0);opacity:0;transition:transform .95s cubic-bezier(.4,0,.1,1),opacity .3s ease .5s;will-change:transform}
.show-pin .show-panel.is-active{opacity:1;transition:transform .95s cubic-bezier(.4,0,.1,1),opacity .2s ease}
.show-pin .show-panel--body,.show-pin .show-panel--shop{padding:0;border:0;background:transparent}
.show-pin .show-panel--hero{align-self:stretch;height:100%;min-height:0;margin:0}
/* the last screen (cards, tax note, trust points) when its notes stick out below the room under the header: it stands with the cards
   centred (--top, set by landing.js) and the part below scrolls up inside the stage by --off (set from the scroll position, no
   transition, like a page) after the cards have rested for a step */
.show-pin .show-panel--shop.is-tall{align-self:start;margin-top:var(--top,calc(var(--nav) + 12px))}
.show-pin .show-panel--shop .wrap{transform:translate3d(0,calc(var(--off,0px) * -1),0)}
.show-pin .show-body{align-items:center}
/* a little tighter than elsewhere, so the longest panel (Logger) fits a laptop screen */
.show-pin .show-body .h2{font-size:clamp(40px,min(5.4vw,9svh),84px)}
.show-pin .show-body .col-text{gap:24px}
.show-pin .show-body .rows li{padding:11px 0}

/* ── Questions and vehicles ──────────────────────────── */
.faq{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:24px}
.q{padding:20px 0;border-top:1px solid var(--line)}
.q h3{margin-bottom:6px;font-size:18px;line-height:26px;font-weight:500}
.q p{color:var(--muted);font-size:15px;line-height:24px}
.q a{color:var(--link);text-decoration:underline;text-underline-offset:3px}
.vehicle-list{columns:2;column-gap:24px;border-bottom:1px solid var(--line)}
.vehicle-list li{break-inside:avoid;padding:12px 0;border-top:1px solid var(--line);font-size:15px;line-height:24px}
.content-message{column-span:all;color:var(--muted)}

/* ── Product page ────────────────────────────────────── */
.buy-box{display:flex;flex-direction:column;gap:16px}
/* The left side of a product page's hero is a CARD like the software cards of the home page: a card ground and a hairline, a solid
   header bar like the title bar of the programs (the MGx8 logo, the product name in the brand blue in Barlow Condensed capitals, the
   muted version) which is the title (h1) of the page, then the line about the product and the buy box. The buy box fills the card and
   Buy and Download share its width. */
/* The photograph of the product behind the first section, like the background of the software cards of the home page: the photo fills
   the section, a dark overlay (the same strength as on the cards, .55 at the top to .85) keeps the card and the text readable, and
   the bottom melts into the colour of the next section. It sits under everything (z-index -1 in the stacking context of the section). */
.product .hero{isolation:isolate}
.hero-photo{position:absolute;z-index:-1;inset:0;background-repeat:no-repeat;background-size:cover;pointer-events:none}
.hero-photo::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(6,8,10,.55) 0,rgba(6,8,10,.72) 18%,rgba(6,8,10,.85) 55%,rgba(6,8,10,.86) 72%,var(--band) 100%)}
.product-card{overflow:hidden;border:1px solid var(--line);border-radius:var(--r-md);background:var(--card)}
/* The proportions are those of the title bar of the programs, measured on the Flasher window (logo 102 px wide and 15 high, the name 12 px
   high in capitals and 54 px wide, the version 9 px high, all standing on one baseline; the gaps 13 px and 5 px), scaled by 1.6 so that
   the name is the 26 px of the home cards: the logo is the big part, the name about half as wide as the logo, the version a little smaller. */
.product-bar{display:flex;flex-wrap:wrap;align-items:baseline;align-content:center;gap:0 20px;height:64px;margin:0;padding:0 24px;border-bottom:1px solid var(--line);background:var(--bg)}
.product-bar img{display:block;width:auto;height:28px}
/* the bottom of the words is in one line with the bottom of the logo as it is SEEN: the logo picture has a little empty margin under its
   letters, so the words (standing on the bottom edge of the picture) are lifted by that margin (measured: 1.7 px at this size) */
.product-bar span{display:flex;align-items:baseline;gap:8px;transform:translateY(-3.2px)}
.product-bar b{color:#057bf5;font:600 26px/1 var(--display);letter-spacing:.01em;text-transform:uppercase}
.product-bar i{color:var(--muted);font:400 19px/1 var(--font);font-style:normal}
.product-card-body{display:flex;flex-direction:column;gap:24px;padding:24px}
.product-card .buy-box{padding-top:24px;border-top:1px solid var(--line)}
/* Side by side (>= 1024 px) the picture of the program is the big part: seven columns wide and reaching 56 px past the right edge of
   the page content (the card has five columns), the frame takes exactly the shape of the screenshot (nothing cropped, no empty
   margin in it), and the card on the left grows to the height of the picture, its buy box standing at the bottom. On hover the
   enlarged picture comes OVER the card (the picture column rises above the text column), not under it. */
@media (min-width:1024px){
  .hero .grid{align-items:stretch}
  .hero .product-card{display:flex;flex:1;flex-direction:column}
  .hero .product-card-body{flex:1}
  .hero .product-card .buy-box{margin-top:auto}
  .hero .col-vis{display:flex;align-self:start;grid-column:6/13;margin-right:-56px;z-index:0}
  .hero .col-vis:hover{z-index:2}
  /* it grows mostly to the left, over the card, so that on hover its right edge stays inside the window */
  .hero .col-vis .frame--shot{flex:1;min-width:0;transform-origin:70% 50%}
}
.buy-box .card-licenses{padding:0}
.buy-price{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:flex-end;gap:4px 12px;color:var(--dim);font-size:14px;line-height:21px}
.buy-box .license-switch,.buy-box .license-one{justify-self:center}
.buy-price strong{color:var(--ink);font:600 88px/.9 var(--display);letter-spacing:-.005em}
/* the license choice (left) and the price (right) stand side by side; the tax note is a small line under the price. On a narrow
   column the price drops under the choice and stays at the right. */
.buy-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px 12px}
.buy-row .card-licenses{display:flex;padding:0}
.buy-cost{display:flex;flex-direction:column;align-items:center;gap:4px;margin-left:auto}
.buy-amount{display:flex;align-items:baseline;gap:8px;color:var(--dim);font-size:14px;line-height:21px}
.buy-amount strong{color:var(--ink);font:600 88px/.9 var(--display);letter-spacing:-.005em;font-variant-numeric:tabular-nums}
.buy-tax{color:var(--dim);font-size:11px;line-height:16px;text-align:center}
.buy-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:12px}
.buy-actions .btn{flex:1 1 0;min-width:0}
/* a note next to the buttons ("Download after purchase.") sits on its own line under them */
.buy-actions .small{flex:0 0 100%;text-align:center}
/* What a product can do, as rows between hairlines: the title on the left, the text, a short list and a small note on the right
   (product-page.php 'features'; no pictures, no icons, no numbers) */
.features-head{margin-bottom:56px}
.feature-row{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:24px;padding:36px 0;border-top:1px solid var(--line)}
.feature-row h3{grid-column:1/5;font-size:28px;line-height:34px;font-weight:500;letter-spacing:-.02em}
.feature-body{grid-column:5/13;display:flex;flex-direction:column;gap:20px}
.feature-body > p:first-child{max-width:68ch;color:var(--ink2);font-size:17px;line-height:27px}
.points{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 40px}
.points li{position:relative;padding-left:18px;color:var(--muted);font-size:15px;line-height:23px}
.points li::before{content:"";position:absolute;left:0;top:12px;width:8px;height:1px;background:var(--line4)}
.work{position:relative;isolation:isolate;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:24px}
/* one round blue glow behind the "Works with" cards, the same blue and the same faint alphas as the glow behind the software cards of the
   home page (.cards::before); it is kept inside the section vertically (the card ground is opaque, so it shows around and between them) */
.work::before{content:"";position:absolute;z-index:-1;inset:-90px -280px;border-radius:50%;pointer-events:none;background:radial-gradient(closest-side,rgba(5,123,245,.2) 0%,rgba(5,123,245,.13) 45%,rgba(5,123,245,.05) 75%,rgba(5,123,245,0) 100%)}
/* The "Works with" cards are built like the software cards of the home page (.cards--photo): a solid title bar on top (the MGx8 logo, the
   name in the brand blue and the muted version), the photograph of the product filling the card behind everything from below the bar
   down (the same file as the home card) under a dark overlay that gets stronger towards the bottom, then the line about the product and
   a "Learn more" arrow. On hover the WHOLE card grows and rises and gets the blue border and glow of the software cards, and the arrow
   moves. --bar is the height of the title bar (.product-bar), where the photograph starts. */
.work-card{--bar:64px;position:relative;isolation:isolate;display:flex;flex-direction:column;overflow:hidden;border:1px solid var(--line);border-radius:var(--r-md);background:var(--card);transition:transform .32s var(--ease),border-color .32s,box-shadow .32s}
.work-photo{position:absolute;z-index:-1;inset:var(--bar) 0 0 0;display:block;background:var(--card)}
.work-photo img{display:block;width:100%;height:100%;object-fit:cover;object-position:var(--pos,50% 50%)}
.work-photo::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(6,8,10,.55) 0%,rgba(6,8,10,.72) 12%,rgba(6,8,10,.83) 22%,rgba(6,8,10,.85) 100%)}
.work-body{display:flex;flex-direction:column;align-items:flex-start;gap:10px;flex:1;padding:80px 24px 24px}
.work-blurb{color:var(--ink2);font-size:16px;line-height:25px}
.work-more{display:inline-flex;align-items:center;gap:8px;margin-top:auto;padding-top:6px;color:var(--link);font-size:14px;font-weight:500;line-height:20px}
.work-more .btn-ico{transition:transform .2s var(--ease)}
@media (hover:hover) and (pointer:fine){
  .work-card:hover{position:relative;z-index:4;transform:translateY(-10px) scale(1.09);border-color:rgba(5,123,245,.75);box-shadow:0 0 24px rgba(5,123,245,.6),0 0 96px rgba(5,123,245,.42),0 32px 72px rgba(0,0,0,.55)}
  .work-card:hover .work-more .btn-ico{transform:translateX(4px)}
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width:1023px){
  .section{padding:96px 0}
  .hero{min-height:0;padding:104px 0 56px}
  .hero--stack{min-height:clamp(720px,100svh,980px);padding:calc(var(--nav) + 48px) 0 72px}
  .hero-shade{background:var(--fade),linear-gradient(90deg,rgba(11,13,16,.9) 0%,rgba(11,13,16,.72) 55%,rgba(11,13,16,.5) 100%),linear-gradient(180deg,rgba(11,13,16,.7) 0,rgba(11,13,16,0) 18%)}
  .col-text,.col-vis,.col-head,.col-lead{grid-column:1/-1}
  .col-vis,.col-lead{margin-top:40px}
  .col-head{margin-bottom:0}
  .col-vis::before{inset:-90px -70px}
  .feature-row h3{grid-column:1/-1;margin-bottom:12px}
  .feature-body{grid-column:1/-1}
  .frame--wide{height:auto}
  .facts{margin-top:48px;padding-top:0;row-gap:20px}
  .cards{grid-template-columns:repeat(2,minmax(0,1fr))}
  .card{margin-bottom:24px}
  .dl{grid-template-columns:minmax(0,1fr);row-gap:4px}
}
@media (max-width:760px){
  /* on a phone the text sits at the bottom of the hero with the windows above it */
  .hero--stack{align-items:flex-end;min-height:clamp(660px,100svh,920px);padding:calc(var(--nav) + 24px) 0 44px}
  .win-tuner{left:-8%;width:116%;top:8%}
  .win-logger{left:-30%;width:88%;top:30%}
  .win-flasher{left:42%;width:88%;top:20%}
  .win-logger .frame,.win-flasher .frame{transform:none}
  .hero-shade{background:var(--fade),linear-gradient(180deg,rgba(11,13,16,.8) 0,rgba(11,13,16,0) 12%),linear-gradient(180deg,rgba(11,13,16,.4) 0%,rgba(11,13,16,.5) 22%,rgba(11,13,16,.86) 46%,rgba(11,13,16,.94) 100%)}
}
@media (max-width:639px){
  .section{padding:72px 0}
  /* the title bar of a product page's card on a phone: the same proportions, smaller, so that it stays on one line */
  .product-bar{height:52px;gap:0 14px;padding:0 18px}
  .work-card{--bar:52px}
  .product-bar img{height:20px}
  .product-bar span{gap:6px;transform:translateY(-2.2px)}
  .product-bar b{font-size:20px}
  .product-bar i{font-size:14px}
  .product-card-body{padding:20px}
  .show-panel--body{padding:72px 0}
  .points{grid-template-columns:minmax(0,1fr)}
  .features-head{margin-bottom:40px}
  .show-panel--shop{padding:72px 0}
  .facts,.faq,.work{grid-template-columns:minmax(0,1fr)}
  .product .facts{width:fit-content;max-width:calc(100% - 2 * var(--gut))}
  .product .fact{grid-template-columns:40px minmax(0,1fr)}
  .cards{grid-template-columns:minmax(0,1fr)}
  .vehicle-list{columns:1}
  .hero-actions .btn,.buy-actions .btn{width:100%}
  .hero--stack .hero-actions .btn{width:auto}
  .shop-head{margin-bottom:28px}
  .card-actions{grid-template-columns:minmax(0,1fr)}
}
