header.home-header .logo { width: min(350px, 42vw); }
header.home-header nav { align-items: center; gap: clamp(12px, 2vw, 24px); }
header.home-header nav a.button:hover { color: #10140f; background: #ff995f; }

.hero.home-hero { min-height: clamp(460px, 42vw, 620px); }
.home-hero .actions { margin: 26px 0 15px; }
.hero.home-hero p.home-free-plan { font-size: 14px; color: #b8c7b9; margin-bottom: 0; }
.hero-motorcycles { min-width: 0; }
.hero-motorcycle-examples {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.hero-motorcycles .hero-preview figcaption { margin-top: 6px; }

.bike-walkthrough {
  background: radial-gradient(ellipse at top left, #28392e, transparent 56%), #111916;
}
.bike-walkthrough h2 { margin-bottom: 14px; }
.bike-walkthrough .intro-copy { margin-bottom: 26px; }

.bike-story {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  margin: 0 0 14px;
  list-style: none;
}
.bike-story li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px;
  border: 1px solid #455548;
  border-top: 2px solid #ffab75;
  border-radius: 8px;
  background: #18221d;
}
.bike-story h3 { margin-bottom: 12px; font-size: 22px; }
.bike-story p { color: #c9d6c8; }
.bike-story .story-step {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #ffad79;
  margin-bottom: 8px;
}
.bike-story .story-readout {
  color: #f7f2e7;
  font-size: 22px;
  font-weight: 750;
  line-height: 1.2;
  margin-bottom: 12px;
}
.story-readout small { display: block; color: #c9d6c8; font-weight: 500; font-size: 12px; }
.bike-story p:last-child { margin-bottom: 0; }
.story-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: #ffad79;
  font-size: 14px;
  font-weight: 750;
}
.bike-story .story-link { margin-top: auto; }

.sag-demo {
  margin-top: 30px;
  padding: clamp(16px, 3vw, 36px);
  border: 1px solid #516559;
  border-radius: 10px;
  background: #101816;
}
.sag-demo > h3 { font-size: clamp(24px, 3vw, 35px); margin-bottom: 8px; }
.sag-demo > p:not(.eyebrow) { color: #c9d6c8; }
.sag-demo .fine { margin: 14px 0 0; }
.sag-controls { min-inline-size: 0; margin: 0; padding: 0; border: 0; }
.sag-controls legend { font-size: 14px; font-weight: 750; padding: 0; margin-bottom: 10px; }
.sag-controls input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.sag-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sag-options label {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  min-height: 52px;
  padding: 9px 12px;
  border: 1px solid #516559;
  border-radius: 6px;
  background: #1b2822;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.3;
}
.sag-options label span { font-size: 12px; color: #c9d6c8; }
.sag-options label:hover { border-color: #ffad79; }
#sag-balanced:checked ~ .sag-options label[for="sag-balanced"],
#sag-front-low:checked ~ .sag-options label[for="sag-front-low"],
#sag-rear-low:checked ~ .sag-options label[for="sag-rear-low"] {
  border-color: #ffad79;
  background: #4b2c1e;
}
#sag-balanced:focus-visible ~ .sag-options label[for="sag-balanced"],
#sag-front-low:focus-visible ~ .sag-options label[for="sag-front-low"],
#sag-rear-low:focus-visible ~ .sag-options label[for="sag-rear-low"] {
  outline: 3px solid #ffad79;
  outline-offset: 3px;
}
.sag-views {
  --front-height: 34.44%;
  --rear-height: 34.44%;
  --atlas-x: 0%;
  --atlas-y: 0%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr);
  align-items: center;
  gap: clamp(12px, 4vw, 44px);
  margin-top: 14px;
  padding: clamp(12px, 2.5vw, 26px);
  border-radius: 8px;
  background: #0b1211;
}
#sag-front-low:checked ~ .sag-views { --atlas-y: -100%; --front-height: 37.20%; }
#sag-rear-low:checked ~ .sag-views { --atlas-x: -100%; --rear-height: 36.10%; }
.sag-explanation { max-width: 36ch; }
.sag-explanation p { color: #c9d6c8; margin-bottom: 0; }
.sag-explanation .sag-targets { font-size: 13px; margin-bottom: 8px; }
.sag-result { display: none; }
#sag-balanced:checked ~ .sag-views .result-balanced,
#sag-front-low:checked ~ .sag-views .result-front,
#sag-rear-low:checked ~ .sag-views .result-rear { display: block; }
.sag-result h4 { margin: 0 0 5px; color: #ffad79; font-size: clamp(22px, 3vw, 30px); }
.sag-result.result-balanced h4 { color: #62e6a2; }
.sag-visual { position: relative; width: 100%; max-width: 440px; aspect-ratio: 724 / 543; overflow: hidden; justify-self: center; }
.sag-visual img {
  position: absolute;
  width: 200%;
  height: 200%;
  max-width: none;
  border-radius: 0;
  left: var(--atlas-x);
  top: var(--atlas-y);
}
.sag-reference-line { position: absolute; left: 5%; right: 5%; top: 34.44%; height: 2px; background: #62e6a2; }
.sag-marker {
  position: absolute;
  width: 10px;
  height: 10px;
  border: 2px solid #62e6a2;
  border-radius: 50%;
  background: #101816;
  transform: translate(-50%, -50%);
}
.sag-marker-rear { left: 15.19%; top: var(--rear-height); }
.sag-marker-front { left: 75.97%; top: var(--front-height); }
#sag-front-low:checked ~ .sag-views .sag-marker-front,
#sag-rear-low:checked ~ .sag-views .sag-marker-rear { border-color: #ffad79; }

.home-footer-links { justify-content: flex-start; grid-column: 1 / -1; }

html:has(#workbench-preview:target) { scroll-behavior: auto; }
.workbench-preview { margin-top: clamp(22px, 3vw, 40px); }
.workbench-preview a { display: block; border-radius: 6px; }
.workbench-preview img { border: 1px solid #b8c0af; }
.workbench-preview figcaption { color: #4c584d; }

@media (max-width: 1030px) {
  .bike-story { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 580px) {
  header.home-header { gap: 9px; }
  header.home-header .logo { width: min(245px, 75vw); }
  header.home-header nav { width: 100%; gap: 8px 12px; }
  header.home-header nav .button { margin-left: auto; min-height: 44px; padding: 7px 9px; font-size: 12px; }
  .hero.home-hero { min-height: 0; }
  .bike-story, .sag-options, .sag-views { grid-template-columns: 1fr; }
  .bike-story { gap: 10px; }
  .bike-story li { padding: 16px; }
  .sag-options label { min-height: 44px; }
  .sag-views { gap: 8px; }
}
