@layer reset, base, components, sections, responsive;

@layer reset {
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }

  html {
    scroll-behavior: smooth;
  }

  html.is-inertial-scrolling {
    scroll-behavior: auto;
  }

  body,
  h1,
  h2,
  h3,
  p,
  ol,
  ul,
  dl,
  dd,
  fieldset {
    margin: 0;
  }

  ol,
  ul {
    padding: 0;
    list-style: none;
  }

  button,
  input,
  select,
  textarea {
    color: inherit;
    font: inherit;
  }

  button,
  a,
  summary,
  select,
  input[type="file"] {
    -webkit-tap-highlight-color: transparent;
  }

  button {
    border: 0;
  }

  img,
  video,
  svg {
    display: block;
    max-width: 100%;
  }

  [hidden] {
    display: none !important;
  }

  .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    margin: -1px;
    padding: 0;
    border: 0;
    white-space: nowrap;
  }
}



@layer base {
  :root {
    --ink: #0b0e0a;
    --ink-soft: #171b15;
    --ink-muted: #343a31;
    --paper: #f2f0e7;
    --paper-deep: #e5e1d5;
    --paper-warm: #f7f3e8;
    --acid: #d8ff48;
    --orange: #f5642a;
    --moss: #73803b;
    --orange-ink: #98320e;
    --moss-ink: #4f5d20;
    --line: rgba(11, 14, 10, 0.18);
    --line-light: rgba(242, 240, 231, 0.2);
    --muted: #5f675d;
    --error-ink: #812512;
    --header-height: 78px;
    --shell: min(100% - 64px, 1440px);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-standard: cubic-bezier(0.65, 0, 0.35, 1);
  }

  ::selection {
    color: var(--ink);
    background: var(--acid);
  }

  html {
    background: var(--ink);
  }

  body {
    min-width: 300px;
    color: var(--ink);
    background: var(--paper);
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-weight: 450;
    line-height: 1.45;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
  }

  body.menu-open,
  body.dialog-open {
    overflow: hidden;
  }

  a {
    color: inherit;
    text-decoration: none;
  }

  button {
    background: none;
    cursor: pointer;
  }

  :focus-visible {
    outline: 3px solid #fff;
    outline-offset: 2px;
    box-shadow: 0 0 0 5px var(--ink);
  }

  em {
    color: var(--moss);
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
  }

  h1,
  h2,
  h3 {
    font-weight: 760;
    letter-spacing: -0.055em;
    text-wrap: balance;
  }

  .shell {
    width: var(--shell);
    margin-inline: auto;
  }

  .section {
    padding-block: clamp(88px, 10vw, 156px);
  }

  .page-noise {
    position: fixed;
    z-index: 500;
    inset: 0;
    opacity: 0.028;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.75'/%3E%3C/svg%3E");
    mix-blend-mode: multiply;
  }

  .js [data-reveal] {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
    transition:
      opacity 0.72s var(--ease-out),
      transform 0.72s var(--ease-out);
  }

  .js [data-reveal].is-visible {
    opacity: 1;
    transform: none;
  }

  .js .section--first [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@layer components {
  .site-header {
    position: fixed;
    z-index: 200;
    top: 0;
    right: 0;
    left: 0;
    height: var(--header-height);
    color: #fff;
    border-bottom: 1px solid transparent;
    isolation: isolate;
    transition:
      color 0.3s ease,
      background-color 0.3s ease,
      border-color 0.3s ease;
  }

  .site-header.is-solid,
  .site-header--solid-at-top,
  .site-header.is-menu-open {
    color: var(--ink);
    border-color: var(--line);
    background: rgba(242, 240, 231, 0.94);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
  }

  .header-inner {
    position: relative;
    z-index: 2;
    display: grid;
    align-items: center;
    height: 100%;
    grid-template-columns: auto 1fr auto;
    gap: 34px;
  }

  .brand {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 14px;
    font-weight: 850;
    letter-spacing: 0.09em;
  }

  .desktop-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(18px, 2vw, 34px);
    font-size: 12px;
    font-weight: 650;
  }

  .desktop-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    position: relative;
    padding-block: 12px;
  }

  .desktop-nav a::after {
    position: absolute;
    right: 0;
    bottom: 6px;
    left: 0;
    height: 1px;
    background: var(--orange);
    content: "";
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.32s var(--ease-out);
  }

  .desktop-nav a:hover::after,
  .desktop-nav a[aria-current="page"]::after {
    transform: scaleX(1);
    transform-origin: left;
  }

  .header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
  }

  .header-phone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    gap: 7px;
    font-size: 12px;
    font-weight: 650;
  }

  .header-phone svg {
    width: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.6;
  }

  .header-cta,
  .button,
  .form-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    min-height: 50px;
    padding: 13px 20px;
    font-size: 13px;
    font-weight: 750;
    line-height: 1;
    transition:
      color 0.25s ease,
      background-color 0.25s ease,
      border-color 0.25s ease,
      transform 0.35s var(--ease-out);
  }

  .header-cta {
    min-height: 44px;
    padding: 0 2px;
    color: inherit;
    border-bottom: 1px solid currentColor;
    border-radius: 0;
    background: transparent;
    gap: 11px;
    font-size: 12px;
  }

  .button:hover,
  .form-submit:hover:not(:disabled) {
    transform: translateY(-2px);
  }

  .header-cta:hover {
    opacity: 0.72;
    transform: none;
  }

  .header-cta svg {
    width: 16px;
    transition: transform 0.25s var(--ease-out);
  }

  .header-cta:hover svg {
    transform: translateX(3px);
  }

  .header-cta svg,
  .button svg,
  .form-submit svg,
  .text-link svg,
  .symptom-grid svg,
  .transport-list svg,
  .direction-list svg {
    width: 19px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.5;
  }

  .header-cta svg {
    width: 16px;
  }

  .button--primary {
    color: var(--ink);
    background: var(--acid);
  }

  .button--dark {
    color: var(--paper);
    background: var(--ink);
  }

  .button--light {
    color: var(--ink);
    background: var(--paper);
  }

  .button--ghost-light {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: rgba(0, 0, 0, 0.08);
  }

  .button--ghost-light:hover {
    color: var(--ink);
    background: var(--paper);
    border-color: var(--paper);
  }

  .button--outline {
    color: var(--ink);
    border: 1px solid currentColor;
    background: transparent;
  }

  .button--outline:hover {
    color: var(--paper);
    background: var(--ink);
    border-color: var(--ink);
  }

  .text-link,
  .text-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    max-width: 100%;
    min-height: 44px;
    padding: 0;
    border-bottom: 1px solid currentColor;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.8;
    overflow-wrap: anywhere;
  }

  .text-link svg {
    width: 16px;
    transition: transform 0.3s var(--ease-out);
  }

  .text-link:hover svg {
    transform: translateX(4px);
  }

  .bike-card {
    position: relative;
    isolation: isolate;
  }

  .bike-card__availability {
    display: grid;
    gap: 4px;
    margin: 0;
  }

  .bike-card__availability > span {
    color: currentColor;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.06em;
    line-height: 1.1;
    opacity: 0.64;
    text-transform: uppercase;
  }

  .bike-card__availability > strong {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.1;
  }

  [data-client-form][inert] {
    opacity: 0.55;
    pointer-events: none;
  }

  .client-form-fallback {
    max-width: 420px;
    margin-top: 18px;
    font-size: 14px;
    line-height: 1.45;
  }

  .client-form-fallback a {
    display: inline-flex;
    min-height: 44px;
    border-bottom: 1px solid currentColor;
    font-weight: 700;
    align-items: center;
    vertical-align: middle;
  }

  .section-head {
    display: grid;
    min-width: 0;
    max-width: 900px;
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    margin-bottom: clamp(42px, 6vw, 84px);
  }

  .section-head > * {
    min-width: 0;
  }

  .section-eyebrow,
  .hero-kicker {
    color: var(--muted);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.14em;
    line-height: 1.2;
    text-transform: uppercase;
  }

  .section-head h2,
  .purchase-copy h2 {
    font-size: clamp(48px, 6.4vw, 96px);
    line-height: 0.92;
  }

  .section-intro {
    max-width: 670px;
    color: var(--ink-muted);
    font-size: clamp(17px, 1.55vw, 22px);
    line-height: 1.5;
  }

  .section-actions {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-top: 46px;
  }

  .split-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(52px, 9vw, 150px);
  }

  .split-layout--wide {
    grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.45fr);
  }

  .split-layout > .section-head {
    align-content: start;
    margin-bottom: 0;
  }

  .split-layout > * {
    min-width: 0;
  }

  .split-layout .section-head h2 {
    font-size: clamp(44px, 4.6vw, 70px);
    hyphens: auto;
    overflow-wrap: anywhere;
  }

  .breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    color: rgba(255, 255, 255, 0.66);
    font-size: 11px;
    font-weight: 600;
  }

  .breadcrumbs a:hover {
    color: var(--acid);
  }

  .menu-toggle {
    position: relative;
    display: none;
    width: 46px;
    height: 46px;
  }

  .menu-toggle span {
    position: absolute;
    top: 50%;
    left: 11px;
    width: 24px;
    height: 1.5px;
    background: currentColor;
    transition: transform 0.28s var(--ease-out);
  }

  .menu-toggle span:first-child {
    transform: translateY(-4px);
  }

  .menu-toggle span:last-child {
    transform: translateY(4px);
  }

  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: rotate(-45deg);
  }

  .mobile-menu {
    position: absolute;
    z-index: 1;
    top: 100%;
    inset-inline: 0;
    display: none;
    width: 100%;
    height: calc(100vh - var(--header-height));
    height: calc(100dvh - var(--header-height));
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    color: var(--ink);
    background: var(--paper);
    transform: translateY(-14px);
    transition:
      opacity 0.28s ease,
      transform 0.28s var(--ease-out),
      visibility 0.28s;
  }

  .mobile-menu.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .mobile-menu__inner {
    display: flex;
    height: 100%;
    overflow-y: auto;
    padding: 28px 24px 50px;
    flex-direction: column;
  }

  .mobile-menu__inner > a:not(.mobile-menu__phone) {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
    font-size: clamp(28px, 9vw, 44px);
    font-weight: 720;
    letter-spacing: -0.05em;
  }

  .mobile-menu__inner > a span {
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 0.1em;
  }

  .mobile-menu__phone {
    margin-top: 24px;
    font-size: 22px;
    font-weight: 700;
  }

  .mobile-action-bar {
    position: fixed;
    z-index: 180;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    left: 12px;
    display: none;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    grid-template-columns: 1fr 54px;
    gap: 8px;
    padding: 7px;
    background: rgba(11, 14, 10, 0.94);
    box-shadow: 0 12px 38px rgba(0, 0, 0, 0.25);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    transform: translateY(calc(100% + 18px));
    transition:
      opacity 0.2s ease,
      transform 0.24s var(--ease-out),
      visibility 0.24s;
  }

  .mobile-action-bar--single {
    grid-template-columns: minmax(0, 1fr);
  }

  .mobile-action-bar.is-visible:not([hidden]) {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .mobile-action-bar a {
    display: grid;
    min-height: 50px;
    place-items: center;
  }

  .mobile-action-bar .mobile-action-bar__primary {
    color: var(--ink);
    border: 0;
    background: var(--acid);
    font-size: 13px;
    font-weight: 800;
  }

  .mobile-action-bar .mobile-action-bar__phone {
    color: var(--paper);
    border: 1px solid var(--line-light);
  }

  .mobile-action-bar svg {
    width: 22px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.6;
  }

  .parts-installation--dialog {
    display: grid;
    min-width: 0;
    padding: 0;
    border: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .parts-installation--dialog legend {
    margin-bottom: 9px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  .parts-installation--dialog label {
    position: relative;
    min-width: 0;
  }

  .parts-installation--dialog input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
  }

  .parts-installation--dialog label span {
    display: grid;
    min-height: 48px;
    padding: 10px;
    border: 1px solid var(--line);
    place-items: center;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
  }

  .parts-installation--dialog input:checked + span {
    color: var(--paper);
    border-color: var(--ink);
    background: var(--ink);
  }

  .parts-installation--dialog input:focus-visible + span {
    outline: 3px solid #fff;
    outline-offset: 2px;
    box-shadow: 0 0 0 5px var(--ink);
  }
}
