/* Ápice Motos. Showroom concrete, tyre black, brushed steel, and the blue of
   the EU strip on a Spanish plate for the licence and the price. Archivo in
   three widths: expanded for names, normal for reading, condensed for figures.
   Written for phones first. */

:root {
  --wall: #DFE0DD;
  --wall-hi: #E9EAE7;
  --floor: #C9CBC6;
  --floor-lo: #B3B5B0;
  --ink: #1C1D21;
  --ink-2: #4A4D53;
  --steel: #80878E;
  --line: #C2C4C0;
  --paper: #F4F4F2;
  --plate: #1D3D9B;
  --plate-hi: #2A51C4;
  --ok: #2F6B3F;
  --bar: var(--sc-demo-bar, 0px);
  --head: 60px;
  --gut: clamp(16px, 4.5vw, 48px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar) + var(--head) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  padding-top: var(--bar);
  background: var(--wall);
  color: var(--ink);
  font: 400 17px/1.55 Archivo, system-ui, sans-serif;
  font-stretch: 100%;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-stretch: 125%; font-weight: 750; letter-spacing: -.012em; line-height: 1.02; text-wrap: balance; }
p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--plate-hi); outline-offset: 3px; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: calc(var(--bar) + 8px); z-index: 60; padding: 10px 14px; background: var(--paper); }

/* ---------------------------------------------------------------- header */
.top {
  position: sticky; top: var(--bar); z-index: 40;
  height: var(--head);
  display: flex; align-items: center; gap: 12px;
  padding: 0 var(--gut);
  background: color-mix(in srgb, var(--wall) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.2) blur(12px); backdrop-filter: saturate(1.2) blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
}
.brand { display: flex; align-items: baseline; gap: 6px; text-decoration: none; font-stretch: 125%; font-weight: 800; font-size: 23px; letter-spacing: -.02em; line-height: 1; }
.brand span { font-stretch: 100%; font-weight: 500; font-size: 14px; letter-spacing: 0; color: var(--ink-2); }
.top__nav { display: none; margin-left: auto; gap: 26px; }
.top__nav a { text-decoration: none; font-weight: 600; font-size: 15px; padding: 18px 0; }
.top__nav a:hover { color: var(--plate); }
.top__call {
  margin-left: auto; display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 14px; border-radius: 3px;
  background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap;
}
.top__call svg { width: 16px; height: 16px; fill: currentColor; }
@media (max-width: 359px) { .top__call span { display: none; } .top__call { padding: 0 13px; } }
@media (min-width: 820px) { .top__nav { display: flex; } .top__call { margin-left: 26px; } }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 13px 22px;
  border: 0; border-radius: 3px; cursor: pointer;
  background: var(--ink); color: var(--paper);
  font-weight: 650; font-size: 16px; line-height: 1.2; text-decoration: none; text-align: center;
  transition: background-color .2s, transform .15s;
}
.btn:hover { background: #33353b; }
.btn:active { transform: translateY(1px); }
.btn--plate { background: var(--plate); color: #fff; }
.btn--plate:hover { background: var(--plate-hi); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--ghost:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); }
.linkish { background: none; border: 0; padding: 0; color: var(--plate); text-decoration: underline; cursor: pointer; }

/* ---------------------------------------------------------------- the licence, drawn as a plate */
.plate {
  display: inline-flex; align-items: stretch; height: 26px;
  border: 1.5px solid var(--ink); border-radius: 3px; overflow: hidden;
  background: #fff; color: var(--ink); line-height: 1; vertical-align: middle;
}
.plate__eu { display: grid; place-items: end center; width: 13px; padding-bottom: 3px; background: var(--plate); color: #fff; font-size: 9px; font-weight: 700; font-stretch: 100%; }
.plate__l { display: grid; place-items: center; padding: 0 7px; font-stretch: 75%; font-weight: 800; font-size: 16px; letter-spacing: .02em; }
.plate__x { display: grid; place-items: center; padding: 0 7px 0 0; font-size: 12px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }

/* ---------------------------------------------------------------- hero: the showroom */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-rows: auto 1fr auto;
  min-height: calc(100svh - var(--bar) - var(--head));
  padding-top: clamp(22px, 5vh, 56px);
}
/* wall panels, ceiling spots, and the floor meeting the wall at 64% */
.hero__wall {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 38% at 22% 0%, rgba(255,255,255,.75), transparent 70%),
    radial-gradient(50% 34% at 78% 0%, rgba(255,255,255,.6), transparent 70%),
    linear-gradient(to bottom, transparent 0 63.6%, rgba(28,29,33,.18) 64%, transparent 64.4%),
    repeating-linear-gradient(to right, transparent 0 calc(25% - 1px), rgba(28,29,33,.055) calc(25% - 1px) 25%),
    linear-gradient(to bottom, var(--wall-hi) 0%, var(--wall) 63.9%, var(--floor) 64%, var(--floor-lo) 100%);
  -webkit-mask: linear-gradient(#000, #000);
}
.hero__wall::after {
  /* the panel joints stop at the floor; the floor gets a soft sheen instead */
  content: ""; position: absolute; left: 0; right: 0; top: 64%; bottom: 0;
  background:
    radial-gradient(70% 60% at 50% 0%, rgba(255,255,255,.35), transparent 70%),
    linear-gradient(to bottom, var(--floor), var(--floor-lo));
}
.hero__copy { padding: 0 var(--gut); max-width: 760px; position: relative; z-index: 2; }
.hero__copy h1 { font-size: clamp(31px, 8.4vw, 68px); max-width: 15ch; }
.hero__copy p { margin-top: 14px; max-width: 40ch; color: var(--ink-2); font-size: clamp(16px, 2.1vw, 19px); }

.hero__stage { position: relative; min-height: 300px; margin-top: 8px; }
.stand {
  position: absolute; display: block; text-decoration: none; color: inherit;
  transition: transform .7s var(--ease), opacity .55s var(--ease), filter .4s;
}
.stand__bike { position: relative; display: block; }
.stand__bike::after {
  /* the bike's shadow on the polished floor */
  content: ""; position: absolute; left: 6%; right: 6%; bottom: -3%; height: 9%; z-index: -1;
  background: radial-gradient(closest-side, rgba(20,21,24,.42), rgba(20,21,24,0));
}
.stand__card {
  display: inline-flex; flex-direction: column; margin-top: 12px; padding: 8px 12px 9px;
  background: color-mix(in srgb, var(--paper) 92%, transparent); border-radius: 3px;
  box-shadow: 0 1px 0 rgba(28,29,33,.08);
}
.stand__name { font-stretch: 112%; font-weight: 700; font-size: 15px; line-height: 1.15; }
.stand__price { font-stretch: 75%; font-weight: 700; font-size: 17px; color: var(--plate); }
.stand:hover .stand__name { color: var(--plate); }

/* phone: one bike, large, on the floor */
.stand--0, .stand--2 { display: none; }
.stand--1, .stand.is-only { left: 4%; right: 4%; width: auto; bottom: 3%; margin: 0 auto; max-width: 560px; }
.stand--1 .stand__bike img, .stand.is-only .stand__bike img { max-height: 46svh; width: auto; margin: 0 auto; }
.stand__card { margin-left: 4%; }

/* entrances: wheeled on from the right, wheeled off to the left */
.stand.is-in { opacity: 0; transform: translateX(48px); }
.stand.is-out { opacity: 0; transform: translateX(-56px); }

/* larger screens: the words and the question on the left, three bikes on the
   floor to their right, back to front */
@media (min-width: 1100px) {
  .hero__copy h1 { font-size: clamp(38px, 3.9vw, 62px); }
  .hero { grid-template-columns: minmax(360px, .78fr) minmax(0, 1.7fr); grid-template-rows: 1fr auto; column-gap: 0; }
  .hero__copy { grid-column: 1; grid-row: 1; align-self: start; padding-right: 0; }
  .licence { grid-column: 1; grid-row: 2; padding-right: 0; }
  .hero__stage { grid-column: 2; grid-row: 1 / span 2; margin: 0; min-height: 0; }
  .stand { display: block; }
  .stand--0 { left: 0; right: auto; width: 40%; bottom: 40%; z-index: 1; filter: brightness(.95) saturate(.92); }
  .stand--1 { left: 25%; right: auto; width: 45%; bottom: 21%; z-index: 2; margin: 0; max-width: none; }
  .stand--2 { left: auto; right: 2%; width: 46%; bottom: 4%; z-index: 3; }
  .stand--1 .stand__bike img, .stand.is-only .stand__bike img { max-height: none; }
  .stand__bike img { max-height: 46vh; width: auto; }
  .stand__card { margin-left: 0; }
  .stand.is-only { left: 20%; right: auto; width: 56%; bottom: 10%; margin: 0; }
}

/* the licence question */
.licence { position: relative; z-index: 4; padding: 14px var(--gut) calc(18px + env(safe-area-inset-bottom)); }
.licence__q { font-weight: 650; font-size: 16px; margin-bottom: 8px; }
.licence__opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; max-width: 640px; }
@media (min-width: 1100px) and (max-width: 1279px) { .licence__opts { grid-template-columns: minmax(0, 1fr); } .licence__opt { min-height: 0; grid-template-columns: auto 1fr; align-items: center; } }
.licence__opt {
  display: grid; gap: 6px; justify-items: start; align-content: start;
  min-height: 78px; padding: 11px 12px; text-align: left; cursor: pointer;
  background: color-mix(in srgb, var(--paper) 90%, transparent); border: 1.5px solid transparent; border-radius: 4px;
  transition: border-color .2s, background-color .2s;
}
.licence__opt:hover { border-color: color-mix(in srgb, var(--ink) 35%, transparent); }
.licence__opt[aria-checked="true"] { border-color: var(--plate); background: #fff; box-shadow: 0 0 0 1.5px var(--plate); }
.licence__sub { font-size: 13px; line-height: 1.25; color: var(--ink-2); }
.licence__note { margin-top: 10px; font-size: 14.5px; color: var(--ink-2); min-height: 1.5em; max-width: 60ch; }
@media (min-width: 1100px) { .licence { padding-bottom: 28px; } .licence__opt { padding: 12px 14px; } }

/* ---------------------------------------------------------------- the floor */
.floor { padding: clamp(40px, 7vw, 84px) var(--gut) clamp(48px, 8vw, 96px); background: var(--paper); }
.floor__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; max-width: 1320px; margin: 0 auto; }
.floor__head h2 { font-size: clamp(28px, 5.5vw, 48px); }
.floor__count { color: var(--ink-2); font-size: 15px; }

.filters { max-width: 1320px; margin: 18px auto 0; }
.filters__open {
  display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 16px;
  border: 1.5px solid var(--ink); border-radius: 3px; background: transparent; font-weight: 650; cursor: pointer;
}
.filters__open span:not(:empty) { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--plate); color: #fff; font-size: 13px; }
.filters__panel { display: none; }
.filters__sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.filters__sheet-head p { font-stretch: 112%; font-weight: 700; font-size: 18px; }
.filters__close { min-height: 44px; padding: 0 14px; border: 0; border-radius: 3px; background: var(--ink); color: var(--paper); font-weight: 650; cursor: pointer; }
.filters__group { border: 0; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.filters__group legend { padding: 0; margin-bottom: 8px; font-size: 14px; font-weight: 650; color: var(--ink-2); }
.filters__reset { margin-top: 16px; min-height: 44px; padding: 0; border: 0; background: none; color: var(--plate); text-decoration: underline; font-weight: 600; cursor: pointer; }

.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 14px; border-radius: 3px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; font-weight: 550; white-space: nowrap; }
.chip input:checked + span { background: var(--ink); color: var(--paper); box-shadow: none; }
.chip input:focus-visible + span { outline: 3px solid var(--plate-hi); outline-offset: 2px; }

/* phone: the filters come up from the bottom, where the thumb is */
@media (max-width: 899px) {
  .filters__panel {
    display: block; position: fixed; z-index: 50; left: 0; right: 0; bottom: 0;
    max-height: 82svh; overflow-y: auto; overscroll-behavior: contain;
    padding: 16px var(--gut) calc(18px + env(safe-area-inset-bottom));
    background: var(--paper); border-radius: 12px 12px 0 0; box-shadow: 0 -18px 50px rgba(20,21,24,.25);
    transform: translateY(105%); visibility: hidden;
    transition: transform .35s var(--ease), visibility 0s linear .35s;
  }
  .filters.is-open .filters__panel { transform: none; visibility: visible; transition: transform .35s var(--ease); }
  .filters.is-open::before { content: ""; position: fixed; inset: 0; z-index: 49; background: rgba(20,21,24,.35); }
}
@media (min-width: 900px) {
  .filters__open, .filters__sheet-head { display: none; }
  .filters__panel { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 28px; }
  .filters__group { margin: 0; }
  .filters__reset { margin: 0 0 0 auto; }
}

.lots { list-style: none; margin: 26px auto 0; padding: 0; max-width: 1320px; display: grid; gap: 30px 22px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .lots { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .lots { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.lot { min-width: 0; }
.lot__link { display: grid; gap: 12px; text-decoration: none; color: inherit; border-radius: 4px; }
.lot__floor {
  position: relative; isolation: isolate; display: grid; place-items: end center; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 4px;
  padding: 8% 7% 9%;
  background:
    radial-gradient(70% 40% at 50% 0%, rgba(255,255,255,.7), transparent 70%),
    linear-gradient(to bottom, var(--wall-hi) 0, var(--wall) 66%, var(--floor) 66.2%, var(--floor-lo) 100%);
}
.lot__floor::after {
  content: ""; position: absolute; left: 14%; right: 14%; bottom: 7%; height: 7%; z-index: -1;
  background: radial-gradient(closest-side, rgba(20,21,24,.38), rgba(20,21,24,0));
}
.lot__floor img { max-height: 100%; width: auto; object-fit: contain; transition: transform .45s var(--ease); }
@media (hover: hover) { .lot__link:hover .lot__floor img { transform: translateY(-4px); } .lot__link:hover .lot__name { color: var(--plate); } }
.lot__text { display: grid; gap: 3px; min-width: 0; }
.lot__brand { font-size: 14px; color: var(--steel); font-weight: 600; }
.lot__name { font-stretch: 125%; font-weight: 750; font-size: clamp(21px, 2.3vw, 26px); line-height: 1.08; letter-spacing: -.01em; overflow-wrap: anywhere; }
.lot__line { font-size: 15px; color: var(--ink-2); max-width: 44ch; }
.lot__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-top: 6px; }
.lot__price { font-stretch: 70%; font-weight: 750; font-size: 27px; line-height: 1; color: var(--plate); white-space: nowrap; }
.lot__why { font-size: 14px; color: var(--ink-2); }
.lot.is-out .lot__floor, .lot.is-out .lot__name, .lot.is-out .lot__line, .lot.is-out .lot__foot { opacity: .45; }
.lot.is-out .lot__floor img { filter: grayscale(.8); }
.lot[hidden] { display: none; }
.lots__divider { grid-column: 1 / -1; padding-top: 10px; border-top: 1px solid var(--line); color: var(--ink-2); font-weight: 600; font-size: 15px; list-style: none; }
.lots__empty { max-width: 1320px; margin: 24px auto 0; }

/* ---------------------------------------------------------------- buying, the ride, visiting */
.buying { padding: clamp(48px, 8vw, 96px) var(--gut); max-width: 1320px; margin: 0 auto; }
.buying h2 { font-size: clamp(27px, 5vw, 44px); max-width: 18ch; }
.steps { list-style: none; counter-reset: step; margin: 30px 0 0; padding: 0; display: grid; gap: 26px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; }
.steps li::before { content: counter(step); grid-row: span 2; font-stretch: 70%; font-weight: 800; font-size: 40px; line-height: .9; color: var(--plate); }
.steps__t { font-stretch: 112%; font-weight: 700; font-size: 19px; line-height: 1.2; margin-bottom: 6px; }
.steps p:not(.steps__t) { color: var(--ink-2); max-width: 46ch; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; } }
.buying__finance { margin-top: 28px; font-weight: 600; }

.ride { display: grid; background: var(--ink); color: var(--paper); }
.ride__photo { margin: 0; }
.ride__photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 2; }
.ride__text { padding: clamp(32px, 6vw, 72px) var(--gut); align-self: center; }
.ride__text h2 { font-size: clamp(26px, 4.6vw, 42px); max-width: 16ch; }
.ride__text p { margin-top: 14px; max-width: 46ch; color: #C9CCD1; }
@media (min-width: 900px) { .ride { grid-template-columns: 1.15fr 1fr; } .ride__photo img { aspect-ratio: auto; min-height: 460px; } }

.visit { padding: clamp(48px, 8vw, 96px) var(--gut); max-width: 1320px; margin: 0 auto; }
.visit h2 { font-size: clamp(27px, 5vw, 44px); }
.visit__grid { display: grid; gap: 24px; margin-top: 24px; }
.visit__addr { font-size: 19px; font-weight: 600; margin-bottom: 14px; }
.visit__hours { margin: 0; display: grid; gap: 8px; }
.visit__hours div { display: grid; gap: 0; }
.visit__hours dt { font-weight: 650; }
.visit__hours dd { margin: 0; color: var(--ink-2); }
.visit__talk { display: grid; gap: 10px; align-content: start; }
@media (min-width: 900px) { .visit__grid { grid-template-columns: 1fr 1fr 1fr; } }

.foot { background: var(--ink); color: #C9CCD1; padding: 40px var(--gut) calc(110px + env(safe-area-inset-bottom)); }
.foot__in { max-width: 1320px; margin: 0 auto; display: grid; gap: 14px; font-size: 15px; }
.foot__name { font-stretch: 125%; font-weight: 750; font-size: 20px; color: var(--paper); }
.foot a { color: var(--paper); }
.foot__small { font-size: 13.5px; max-width: 70ch; color: #9EA3AA; }
@media (min-width: 900px) { .foot { padding-bottom: 48px; } }

/* ---------------------------------------------------------------- a bike's page */
.bike { padding: 14px var(--gut) 40px; max-width: 1320px; margin: 0 auto; display: grid; gap: 26px; grid-template-columns: minmax(0, 1fr); }
.crumbs { font-size: 14px; color: var(--ink-2); }
.crumbs a { color: var(--ink-2); }
.bike__stage {
  position: relative; isolation: isolate; display: grid; place-items: end center; aspect-ratio: 5 / 4; overflow: hidden;
  margin: 0 calc(var(--gut) * -1); padding: 10% 6% 9%;
  background:
    radial-gradient(60% 40% at 50% 0%, rgba(255,255,255,.8), transparent 70%),
    linear-gradient(to bottom, var(--wall-hi), var(--wall) 68%, var(--floor) 68.2%, var(--floor-lo));
}
.bike__stage::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: 7%; height: 7%; z-index: -1; background: radial-gradient(closest-side, rgba(20,21,24,.42), rgba(20,21,24,0)); }
.bike__img { max-height: 100%; width: auto; object-fit: contain; }
.bike__brand { color: var(--steel); font-weight: 600; }
.bike__name { margin-top: 4px; font-size: clamp(34px, 9vw, 64px); overflow-wrap: anywhere; }
.bike__line { margin-top: 10px; font-size: 18px; color: var(--ink-2); max-width: 40ch; }

.bike__buy { display: grid; gap: 18px; }
.price, .finance { padding: 18px; background: #fff; border-radius: 4px; box-shadow: 0 0 0 1px var(--line); }
.price__t, .finance__t { font-stretch: 100%; font-weight: 650; font-size: 15px; color: var(--ink-2); letter-spacing: 0; }
.price__total { font-stretch: 70%; font-weight: 800; font-size: 50px; line-height: 1; color: var(--plate); margin-top: 4px; }
.price__lines { margin: 14px 0 0; display: grid; gap: 6px; font-size: 15px; }
.price__lines div { display: flex; justify-content: space-between; gap: 16px; padding-top: 6px; border-top: 1px solid #ECEDEA; }
.price__lines dt { color: var(--ink-2); }
.price__lines dd { margin: 0; font-weight: 650; white-space: nowrap; }
.price__small { margin-top: 12px; font-size: 14px; color: var(--ink-2); }
.toggle { display: flex; align-items: center; gap: 10px; margin-top: 14px; min-height: 44px; font-weight: 600; cursor: pointer; }
.toggle input { width: 22px; height: 22px; accent-color: var(--plate); flex: none; }

.finance__row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; margin-top: 12px; font-weight: 600; }
.finance__row input { width: 100%; accent-color: var(--plate); min-height: 32px; }
.finance__row output { font-stretch: 75%; font-weight: 750; font-size: 18px; min-width: 3ch; text-align: right; }
.finance__months { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 12px; }
.finance__months button { min-height: 44px; padding: 4px; border: 0; border-radius: 3px; background: #F0F0EE; font-size: 14px; font-weight: 600; cursor: pointer; line-height: 1.15; }
.finance__months button[aria-checked="true"] { background: var(--ink); color: var(--paper); }
.finance__pay { margin-top: 14px; font-weight: 600; }
.finance__pay span { font-stretch: 70%; font-weight: 800; font-size: 36px; color: var(--ink); margin-right: 4px; }
.finance__small { margin-top: 4px; font-size: 13.5px; color: var(--ink-2); }

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

.bike__fit h2, .bike__about h2, .bike__ride h2, .bike__more h2 { font-size: clamp(22px, 4vw, 30px); margin-bottom: 14px; }
.fit { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.fit li { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px; font-weight: 550; }
.fit li.is-no { color: var(--ink-2); }
.fit li.is-no .plate { opacity: .45; }
.fit li.is-yours span { color: var(--plate); font-weight: 700; }

.notes { margin: 0; padding-left: 1.1em; display: grid; gap: 8px; max-width: 60ch; }
.specs { margin: 22px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.specs div { display: grid; padding-top: 8px; border-top: 1px solid var(--line); }
.specs dt { font-size: 13.5px; color: var(--ink-2); }
.specs dd { margin: 0; font-stretch: 85%; font-weight: 700; font-size: 18px; overflow-wrap: anywhere; }

.form { display: grid; gap: 14px; max-width: 560px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.form input:not([type=radio]):not([type=checkbox]), .form select {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid #B9BBB7; border-radius: 3px; background: #fff; font-size: 17px;
}
.form input:focus, .form select:focus { outline: none; border-color: var(--plate); box-shadow: 0 0 0 3px color-mix(in srgb, var(--plate) 20%, transparent); }
.form fieldset { border: 0; padding: 0; margin: 0; }
.form legend { padding: 0; font-weight: 600; font-size: 15px; margin-bottom: 8px; }
.form__slots { display: flex; flex-wrap: wrap; gap: 8px; }
.form__help { font-weight: 400; font-size: 13.5px; color: var(--ink-2); }
.form__warn { padding: 10px 12px; border-radius: 3px; background: #FFF4D6; font-size: 15px; }
.form__status { min-height: 1.5em; font-weight: 600; }
.form__status.is-bad { color: #A3261B; }
.form__status.is-good { color: var(--ok); }

.lots--small { margin-top: 0; }

/* the price and the reserve button stay under the thumb on a phone */
.buybar {
  position: fixed; z-index: 45; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px var(--gut) calc(10px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 -1px 0 var(--line);
  transition: transform .3s var(--ease);
}
.buybar.is-hidden { transform: translateY(110%); }
.buybar__p { display: grid; line-height: 1.05; }
.buybar__l { font-size: 12.5px; color: var(--ink-2); }
.buybar__p span:last-child { font-stretch: 70%; font-weight: 800; font-size: 26px; color: var(--plate); white-space: nowrap; }
.buybar .btn { min-height: 48px; padding: 10px 16px; font-size: 15px; }

@media (min-width: 1000px) {
  .bike { grid-template-columns: minmax(0, 1.45fr) minmax(340px, 1fr); column-gap: 48px; align-items: start; }
  .crumbs { grid-column: 1 / -1; }
  .bike__stage { grid-column: 1; grid-row: 2 / span 2; margin: 0; border-radius: 4px; }
  .bike__head { grid-column: 2; grid-row: 2; }
  .bike__buy { grid-column: 2; grid-row: 3 / span 4; position: sticky; top: calc(var(--bar) + var(--head) + 16px); }
  .bike__fit, .bike__about, .bike__ride { grid-column: 1; }
  .bike__more { grid-column: 1 / -1; }
  .buybar { display: none; }
}

/* ---------------------------------------------------------------- checkout */
.co { padding: 20px var(--gut) 60px; max-width: 680px; margin: 0 auto; }
.co__t { font-size: clamp(28px, 6vw, 40px); }
.co__sum { margin-top: 16px; display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; align-items: center; padding: 14px; background: #fff; border-radius: 4px; box-shadow: 0 0 0 1px var(--line); }
.co__sum > p { grid-column: 1 / -1; }
.co__sum .lot__floor { aspect-ratio: 4 / 3; padding: 8%; }
.co__sum-name { font-stretch: 112%; font-weight: 700; font-size: 18px; line-height: 1.15; }
.co__sum-line { font-size: 14.5px; color: var(--ink-2); margin-top: 4px; }
.co__form { margin-top: 26px; max-width: none; gap: 26px; }
.co__step { display: grid; gap: 14px; }
.co__step legend { font-stretch: 112%; font-weight: 700; font-size: 20px; color: var(--ink); margin-bottom: 12px; }
.opt { display: grid !important; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; align-items: start; padding: 14px; background: #fff; border-radius: 4px; box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 400 !important; cursor: pointer; }
.opt input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--plate); }
.opt b { display: block; font-weight: 650; }
.opt:has(input:checked) { box-shadow: inset 0 0 0 2px var(--plate); }
.co__card { display: grid; gap: 12px; }
.co__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.co__pay { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.co__today { display: grid; line-height: 1.05; }
.co__today span:first-child { font-size: 14px; color: var(--ink-2); }
.co__today span:last-child { font-stretch: 70%; font-weight: 800; font-size: 34px; color: var(--plate); }
.co__pay .btn { min-width: 200px; }
@media (max-width: 480px) { .co__pay .btn { width: 100%; } }
.co__done { margin-top: 26px; padding: 22px; background: #fff; border-radius: 4px; box-shadow: 0 0 0 1px var(--line); }
.co__done h2 { font-size: 26px; }
.co__done p { margin-top: 10px; }
.co__done ol { margin: 14px 0 0; padding-left: 1.2em; display: grid; gap: 8px; }

.plain { padding: 30px var(--gut) 60px; max-width: 760px; margin: 0 auto; }
.plain h1 { font-size: clamp(28px, 6vw, 44px); }
.plain p { margin-top: 14px; }
.credits { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; font-size: 15px; }
.credits li { display: grid; gap: 2px; }
.credits span { color: var(--ink-2); overflow-wrap: anywhere; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .stand.is-in, .stand.is-out { transform: none; }
}

/* phones: the floor as compact rows, picture left, so thirteen bikes scan in a
   couple of swipes; the bike's own page is where it is shown large */
@media (max-width: 639px) {
  .lots:not(.lots--small) { gap: 14px; }
  .lots .lot__link { grid-template-columns: minmax(0, 42%) minmax(0, 1fr); gap: 12px; align-items: center; }
  .lots .lot__floor { aspect-ratio: 1 / 1; padding: 10% 6% 12%; }
  .lots .lot__name { font-size: min(1.25rem, 5.4vw); }
  .lots .lot__brand { font-size: 13px; }
  .lots .lot__line { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .lots .lot__foot { margin-top: 4px; gap: 6px; }
  .lots .lot__price { font-size: 24px; }
  .lots .plate__x { display: none; }
  .lots__divider { padding-top: 14px; }
}
