.home {
  --surface: var(--paper, #fff3df);
  --night: var(--ink, #111a43);
  --tangerine: var(--orange, #ff7411);
  --cut: polygon(0 7px, 4px 7px, 4px 3px, 8px 3px, 8px 0, calc(100% - 8px) 0, calc(100% - 8px) 3px, calc(100% - 4px) 3px, calc(100% - 4px) 7px, 100% 7px, 100% calc(100% - 7px), calc(100% - 4px) calc(100% - 7px), calc(100% - 4px) calc(100% - 3px), calc(100% - 8px) calc(100% - 3px), calc(100% - 8px) 100%, 8px 100%, 8px calc(100% - 3px), 4px calc(100% - 3px), 4px calc(100% - 7px), 0 calc(100% - 7px));
  margin: 0;
  color: var(--night);
  background: var(--surface);
}
.home * { box-sizing: border-box; }
.home a { color: inherit; text-decoration: none; }
.home a:focus-visible { outline: 3px dashed currentColor; outline-offset: 6px; }
.home .shell { width: min(100%, 90rem); margin-inline: auto; padding-inline: clamp(1.25rem, 4.8vw, 5rem); }
.home-skip { position: fixed; inset: -10rem auto auto .8rem; z-index: 20; padding: 1rem; background: var(--surface); }
.home-skip:focus { top: .8rem; }
.cover { position:relative; isolation:isolate; background-color:#2455d3; background-image:linear-gradient(90deg,rgba(12,46,143,.96) 0%,rgba(15,53,155,.9) 42%,rgba(34,84,195,.35) 72%,rgba(34,84,195,.08) 100%),url("assets/blue-ink.webp"); background-size:auto,25rem; overflow:hidden; }
.cover-nav { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding-block: clamp(1.05rem, 2.2vw, 2.05rem) .75rem; }
.cover-nav .blip-brand { justify-self:start; color:var(--surface); display:inline-block; font-size:clamp(2.6rem,4.4vw,3.95rem); }
.cover-nav nav { display: flex; align-items: center; gap: clamp(.55rem, 2.3vw, 2.25rem); }
.paper-key { --key-fill:var(--surface); display:inline-flex; position:relative; isolation:isolate; align-items:center; justify-content:center; color:var(--night); font-weight:600; line-height:1.25; text-align:center; filter:drop-shadow(2px 3px 0 var(--night)); }
.paper-key::before, .paper-key::after { content: ""; position: absolute; inset: 0; clip-path: var(--cut); pointer-events: none; z-index: -1; }
.paper-key::before { background: var(--night); }
.paper-key::after { inset: 2px; background: var(--key-fill); }
.nav-key { min-width:clamp(8rem,13vw,12.5rem); min-height:2.75rem; padding:.6rem 1rem .65rem; font-size:1rem; }
a.paper-key:hover { transform: translateY(-2px); }
a.paper-key:active { transform: translate(1px, 2px); filter: none; }
.race-flag { justify-self: end; position: relative; width: clamp(3rem, 5vw, 4.8rem); aspect-ratio: 1.6; transform: skew(-18deg) rotate(6deg); }
.race-flag::before { content: ""; position: absolute; left: 1px; top: 0; height: 112%; width: 4px; background: var(--surface); box-shadow: 2px 1px var(--night); }
.race-flag i { position: absolute; inset: 0 0 25% 2px; background: repeating-conic-gradient(var(--surface) 0 25%, var(--night) 0 50%) 0 0/25% 64%; clip-path: polygon(0 9%,15% 1%,34% 0,61% 10%,79% 13%,100% 5%,98% 96%,78% 100%,58% 96%,33% 85%,15% 86%,0 95%); }
.hero { position: relative; isolation: isolate; display: grid; align-content: center; min-height: clamp(32rem, 42vw, 42rem); }
.hero-copy { position: relative; z-index: 1; width: max-content; max-width: 60%; padding-block: 2rem 3rem; pointer-events: none; }
.hero-copy h1 { margin:0; color:var(--surface); line-height:1.08; font-size:clamp(3.5rem,7.4vw,7rem); font-style:normal; font-weight:700; letter-spacing:normal; }
.hero-actions { display:flex; flex-direction:column; align-items:flex-start; gap:1rem; margin-top:1.75rem; }
.hero-actions a { pointer-events: auto; }
.hero-prices { display:flex; flex-wrap:wrap; align-items:center; gap:.85rem; }
.color-key, .price-tag { font-size:1.125rem; padding:1rem 1.5rem; }
.color-key { min-height:3.5rem; max-width:100%; }
.price-tag { padding:.8rem 1.2rem; }
.price-tag .price-now { font-size:clamp(2.5rem,3.5vw,3.25rem); }
.old-price-tag { padding:.75rem 1rem; font-size:1.85rem; }
.hero-saving { margin:0; color:var(--surface); font-size:1.125rem; line-height:1.4; }
.color-key { --key-fill: var(--tangerine); }
.price-tag { white-space: nowrap; }
.speed-marks { display: inline-flex; gap: .26em; color: var(--surface); }
.speed-marks i { display: block; background: currentColor; width: .87em; height: 1.3em; clip-path: polygon(0 0,40% 0,40% 15%,55% 15%,55% 30%,70% 30%,70% 42%,100% 42%,100% 58%,70% 58%,70% 70%,55% 70%,55% 85%,40% 85%,40% 100%,0 100%,0 84%,16% 84%,16% 69%,31% 69%,31% 54%,45% 54%,45% 46%,31% 46%,31% 31%,16% 31%,16% 16%,0 16%); }
.hero-copy > .speed-marks { display: flex; width: fit-content; margin: clamp(1.65rem, 2.6vw, 2.8rem) 0 0 1em; font-size: clamp(1.1rem, 1.65vw, 1.6rem); transform: skew(-8deg); }
.hero-visual { position: absolute; z-index: 0; inset: 0 0 0 40%; }
.hero-track { position: absolute; top: -1rem; right: 0; width: 93%; height: 58%; object-fit: fill; pointer-events: none; }
.hero-product { display: block; position: absolute; right: 2%; bottom: -2%; width: 82%; height: 77%; }
.hero-product img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; filter: drop-shadow(2px 5px 2px #0c173c33); transition: transform 180ms ease-out; }
.hero-product:hover img { transform: translateY(-4px) rotate(-1deg); }
.paper-section { position:relative; z-index:1; background:var(--surface); }
.paper-section::before { content: ""; position: absolute; left: 0; right: 0; top: -1.3rem; height: 1.4rem; background: inherit; clip-path: polygon(0 51%,1% 33%,2% 40%,3% 19%,4% 36%,5% 32%,6% 43%,7% 37%,8% 54%,9% 43%,10% 57%,11% 50%,12% 67%,13% 46%,14% 53%,16% 43%,17% 52%,18% 60%,19% 39%,20% 41%,21% 31%,22% 45%,23% 29%,24% 37%,25% 48%,26% 39%,27% 45%,28% 33%,29% 50%,30% 38%,31% 55%,32% 35%,33% 46%,34% 39%,35% 29%,36% 47%,37% 38%,38% 52%,39% 48%,40% 60%,41% 43%,42% 49%,43% 40%,44% 57%,45% 51%,46% 34%,47% 45%,48% 30%,49% 46%,50% 38%,51% 56%,52% 40%,53% 50%,54% 36%,55% 44%,56% 28%,57% 39%,58% 28%,59% 37%,60% 26%,61% 37%,62% 28%,63% 43%,64% 37%,65% 53%,66% 40%,67% 51%,68% 44%,69% 60%,70% 51%,71% 64%,72% 47%,73% 55%,74% 40%,75% 51%,76% 38%,77% 52%,78% 45%,79% 31%,80% 41%,81% 34%,82% 52%,83% 41%,84% 59%,85% 45%,86% 52%,87% 39%,88% 44%,89% 27%,90% 40%,91% 31%,92% 46%,93% 39%,94% 58%,95% 41%,96% 53%,97% 42%,98% 56%,99% 46%,100% 59%,100% 100%,0 100%); }
.how { padding-block: clamp(2rem, 3.3vw, 3.1rem) clamp(2.5rem, 4vw, 4.4rem); }
.how h2 { display:flex; align-items:center; justify-content:center; gap:clamp(.75rem,2.25vw,2.4rem); margin:0; font-size:clamp(1.75rem,2.8vw,2.6rem); line-height:1.2; text-align:center; scroll-margin:1.25rem; }
.how h2 i { width: clamp(1.8rem, 5vw, 4.8rem); height: .64rem; transform: skew(-33deg); border-block: 3px solid #3560ac; }
.demo { display:grid; align-items:start; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); gap:clamp(1rem,2.8vw,3.1rem); margin-top:clamp(1.45rem,2.65vw,2.7rem); }
.steering-panel { width:100%; min-width:0; }
.steering-panel blip-steering-demo { display:block; width:100%; }
.demo-drive-link { margin:1.25rem 0 0; text-align:center; }
.home .demo-drive-link a { display:inline-flex; align-items:center; min-height:44px; font-size:1.25rem; text-decoration:underline; text-underline-offset:.25em; }
.demo figure { margin: 0; }
.panel-image { position: relative; aspect-ratio: 2.06; overflow: hidden; background: #13264c; }
.panel-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.demo .speed-marks { color: var(--night); font-size: clamp(.72rem, 1.15vw, 1.05rem); align-self: center; margin-bottom: 1.75rem; }
.demo figcaption { font-weight:400; font-size:1rem; margin:.7rem 0 0; line-height:1.5; }
.shop-card { position: relative; display: grid; align-items: center; grid-template-columns: minmax(7rem, 21%) 1fr auto auto; gap: clamp(1rem, 2vw, 2rem); margin: clamp(2rem, 3.6vw, 3.6rem) auto 0; max-width: 64rem; padding: .65rem clamp(1rem,2.3vw,2rem); border: 2px solid var(--night); border-radius: 12px 4px 12px 4px; background: #fff5e52b; box-shadow: 3px 3px var(--night); }
.shop-card img { display: block; max-width: 100%; width: 100%; height: clamp(5rem, 8.4vw, 7.2rem); object-fit: contain; }
.card-details { position: relative; display: grid; gap: .25rem; padding-inline-start: clamp(1.1rem, 2vw, 2rem); border-left: 2px solid var(--night); }
.card-details strong, .card-price { font-size:clamp(1.2rem,1.6vw,1.6rem); line-height:1.3; }
.card-details strong { font-weight:650; }
.card-details > span { font-size:1rem; line-height:1.5; }
.card-price { white-space: nowrap; flex-direction:column; align-items:flex-start; gap:.25rem; }
.card-price .price-was { font-size:1rem; }
.card-price .price-now { font-size:clamp(1.4rem,2.15vw,2.1rem); }
.card-action { justify-self:end; text-align:center; padding:.75rem 1rem; border:2px solid var(--night); border-radius:3px; font-weight:600; font-size:1rem; line-height:1.4; }
.shop-card:hover .card-action { background: var(--night); color: var(--surface); }
.bundle-home-offer { display:flex; flex-wrap:wrap; align-items:baseline; gap:.35rem 1rem; max-width:64rem; margin:1.15rem auto 0; font-size:1rem; line-height:1.5; }
.home .bundle-home-offer a { display:inline-flex; align-items:center; min-height:44px; text-decoration:underline; text-underline-offset:.2em; font-weight:600; }
.bundle-home-offer span { font-size:1rem; color:#4b4c61; }
@media (max-width: 57rem) and (min-width: 43.01rem) {
  .hero { min-height: 27rem; }
  .hero-copy h1 { font-size:clamp(3.5rem,7vw,4.5rem); }
  .hero-copy { max-width: 55%; }
  .hero-actions { gap: .55rem; }
  .color-key, .price-tag { padding: .9rem 1rem; }
  .hero-track { top: .4rem; height: 53%; }
}
@media (max-width: 43rem) {
  .home .shell { padding-inline: clamp(1.05rem, 5vw, 2rem); }
  .cover-nav { grid-template-columns: auto 1fr; column-gap: .8rem; padding-block: .95rem .65rem; }
  .cover-nav .blip-brand { font-size: clamp(1.95rem, 8vw, 2.55rem); }
  .cover-nav nav { justify-self: end; gap: .55rem; }
  .nav-key { min-width:0; min-height:2.75rem; padding:.6rem .65rem; font-size:1rem; }
  .race-flag { display: none; }
  .hero { min-height: 0; display: flex; flex-direction: column; }
  .hero-copy { max-width: 100%; padding: 1.25rem 0 0; }
  .hero-copy h1 { font-size:clamp(3rem,12vw,4.8rem); }
  .hero-actions { margin-top:1.4rem; gap:.9rem; }
  .color-key, .price-tag { padding:.9rem 1.15rem; font-size:1rem; }
  .hero-prices { gap:.65rem; }
  .price-tag .price-now { font-size:2.4rem; }
  .old-price-tag { padding:.7rem .85rem; font-size:1.5rem; }
  .hero-copy > .speed-marks { display: none; }
  .hero-visual { position: relative; inset: auto; margin-inline: min(-1.05rem, -5vw); width: auto; height: clamp(12.5rem, 56vw, 21.6rem); margin-top: .45rem; }
  .hero-track { width: 68%; right: 0; top: -9%; height: 62%; }
  .hero-product { width: 75%; right: 13%; height: 90%; bottom: -4%; }
  .how { padding-block: 1.5rem 2.5rem; }
  .how h2 { font-size:clamp(1.75rem,5.5vw,2rem); gap:.55rem; }
  .how h2 i { width: 1.35rem; height: .4rem; border-block-width: 2px; }
  .demo { margin-top:1.1rem; gap:1.5rem; grid-template-columns:1fr; align-items:start; }
  .demo .speed-marks { display: none; }
  .panel-image { aspect-ratio: 1.55; }
  .demo figcaption { font-size:1rem; margin-top:.55rem; }
  .shop-card { margin-top: 1.55rem; grid-template-columns:4.5rem minmax(0,1fr); gap:.6rem .7rem; padding:.8rem; }
  .shop-card img { grid-row:span 3; height:5rem; }
  .card-details { padding-left:.65rem; grid-column:2; }
  .card-details strong { font-size: 1.2rem; }
  .card-details > span { font-size:1rem; }
  .card-price { grid-column:2; flex-direction:row; align-items:baseline; gap:.3rem .65rem; font-size:1.02rem; padding-left:.65rem; }
  .card-action { grid-column:2; justify-self:start; margin-left:.65rem; font-size:1rem; padding:.65rem .75rem; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-product img { transition: none; }
  .hero-product:hover img, a.paper-key:hover { transform: none; }
}
.race-gallery { margin-block-start: clamp(2.75rem, 5.5vw, 5rem); }
.race-gallery h2 { text-transform:none; }
.race-scenes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.65rem, 1.6vw, 1.5rem);
  margin-top: 1.5rem;
}
.race-scene {
  margin: 0;
  overflow: hidden;
  border: 2px solid var(--ink);
  background: var(--paper);
  box-shadow: 3px 3px 0 var(--ink);
}
.race-scene img { display: block; width: 100%; height: auto; border-bottom: 2px solid var(--ink); }
.race-scene figcaption { min-height: 3.1rem; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .35rem; padding: .65rem .8rem; }
.race-scene strong { font-size:clamp(1.125rem,1.6vw,1.4rem); font-weight:650; line-height:1.35; }
.race-scene figcaption span { font-size: 1rem; white-space: nowrap; color: #454359; }
.race-picker { display: none; }
.race-note { margin:.95rem 0 0; font-size:1rem; color:#494456; line-height:1.5; }
@media (max-width: 43rem) {
  .race-picker { position: relative; display: grid; grid-template-columns: .75fr 1.15fr 1.1fr; gap: 5px; margin: 1rem 0 .65rem; padding: 0; border: 0; min-width: 0; }
  .race-picker label { position: relative; min-width: 0; }
  .race-picker input { position: absolute; width: 1px; height: 1px; opacity: 0; }
  .race-picker span {
    display: grid;
    place-items: center;
    height: 100%;
    min-height: 64px;
    padding: .55rem .3rem;
    border: 2px solid var(--ink);
    font-size: 1rem;
    line-height: 1.3;
    font-weight: 500;
    text-align: center;
    background: var(--paper);
    cursor: pointer;
  }
  .race-picker input:checked + span { color: var(--paper); background: var(--ink); box-shadow: inset 0 -3px var(--orange); }
  .race-picker input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
  .race-scenes { display: block; margin-top: 0; }
  .race-scene + .race-scene { margin-top: 1rem; }
  @supports selector(:has(*)) {
    .race-gallery .race-scene { display: none; margin: 0; }
    .race-gallery:has([value="street"]:checked) [data-track="street"],
    .race-gallery:has([value="canyon"]:checked) [data-track="canyon"],
    .race-gallery:has([value="circuit"]:checked) [data-track="circuit"] { display: block; }
  }
  @supports not selector(:has(*)) { .race-picker { display: none; } }
  @media (prefers-reduced-motion: no-preference) {
    .race-scene img { animation: blip-gear-in 180ms ease-out; }
    @keyframes blip-gear-in { from { opacity: .8; transform: translateX(3px); } to { opacity: 1; transform: translateX(0); } }
  }
}

.home .hero.shell, .home .how.shell {
  width: min(calc(100% - 2 * var(--store-gutter)), var(--store-width));
  margin-inline: auto;
  padding-inline: 0;
}
.hero-product-name { margin: .75rem 0 0; color: var(--surface); font-size: clamp(1.25rem, 2vw, 1.65rem); }
.hero-prices { gap: 1.25rem; }
.hero-actions { gap: .4rem; }
.hero-prices .price-tag { color: var(--paper); padding: 0; }
.hero-prices .old-price-tag { background: var(--paper); color: var(--night); padding: .08em .32em; transform: rotate(-4deg); font-size: clamp(1.4rem, 2.5vw, 1.9rem); }
.hero-prices .price-was::after { height: clamp(2px, .095em, 3px); }
.hero-saving { color: #dce6ff; font-size: 1.0625rem; }
.hero-links { margin-top: .85rem; }
.home .hero-links .color-key { color: var(--ink); min-height: 56px; padding: .9rem 1.45rem 1rem; font-size: 1.25rem; }
.home .demo-drive-link a { text-decoration: none; }
.home .shop-card { border-radius: 0; }
.home .shop-card .card-action { border: 0; border-radius: 0; color: var(--ink); background: transparent; margin-left: 0; }
@media (max-width: 43rem) {
  .cover { display:flex; flex-direction:column; min-height:100vh; min-height:100svh; }
  .cover .hero { flex:1; display:grid; grid-template-rows:auto auto minmax(clamp(140px,34vh,292px),1fr) auto; align-content:stretch; padding:clamp(12px,2svh,28px) 0 max(32px,env(safe-area-inset-bottom)); }
  .hero-copy { display:contents; }
  .hero-copy h1 { grid-row:1; font-size:clamp(3.25rem,13vw,5.6rem); }
  .hero-product-name { grid-row:2; margin:.1rem 0 .35rem; font-size:clamp(1.1rem,4.6vw,1.5rem); }
  .hero-visual { grid-row:3; min-width:0; width:auto; height:auto; margin:0 calc(-1 * var(--store-gutter)); }
  .hero-track { inset:0 0 auto auto; width:88%; height:66%; object-fit:fill; }
  .hero-product { width:94%; height:90%; bottom:1%; right:3%; }
  .hero-product img { object-position:center 72%; }
  .hero-actions { grid-row:4; display:grid; grid-template-columns:1fr; gap:.1rem; margin:0; padding-top:4px; }
  .hero-prices .price-now { font-size:clamp(2.3rem,10vw,3.2rem); }
  .hero-links { margin-top:.65rem; }
  .hero-links .color-key { width:100%; }
}
@media (max-width:43rem) and (max-height:620px) {
  .cover .hero { grid-template-rows:auto auto minmax(105px,1fr) auto; padding-block:6px 22px; }
  .hero-copy h1 { font-size:2.8rem; }
  .hero-links { margin-top:4px; }
}
.hero-track { object-fit:contain; object-position:right top; }
@media (max-width:43rem) {
  .hero-track { width:100%; height:51%; top:3%; object-position:right center; }
}
