@font-face {
  font-family: "Libre Franklin";
  src: url("./libre-franklin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("./nunito.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --ink: #1d1d1b;
  --ink-soft: #3b3936;
  --muted: #736d66;
  --paper: #f5f1ea;
  --card: #fffdfa;
  --line: #e7e0d5;
  --line-strong: #d6ccbd;
  --orange: #eb5e0b;
  --orange-deep: #c94c04;
  --orange-tint: #fdeee4;
  --green: #18805a;
  --green-tint: #e5f4ec;
  --amber: #9a5b00;
  --amber-tint: #fdf3dc;
  --radius: 22px;
  --shadow: 0 1px 2px rgb(29 29 27 / .05), 0 18px 50px -18px rgb(29 29 27 / .28);
  --display: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  --body: "Nunito", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.11 0 0 0 0 0.1 0 0 0 0 0.09 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: inherit; text-underline-offset: 4px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

/* Header */
.site-header {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: block; line-height: 0; }
.brand img { width: 196px; height: auto; }
.help-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font: 700 14px/1 var(--body);
  text-decoration: none;
  background: var(--card);
  transition: border-color .2s, transform .2s;
}
.help-link:hover { border-color: var(--ink); transform: translateY(-1px); }
.help-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-tint); }

/* Hero */
.hero {
  position: relative;
  margin: 0 16px;
  border-radius: 32px;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: auto -10% -60% 45%;
  height: 140%;
  background: radial-gradient(closest-side, rgb(235 94 11 / .38), transparent 70%);
  z-index: -1;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgb(255 255 255 / .035) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  z-index: -1;
}
.hero-inner {
  max-width: 1148px;
  margin: 0 auto;
  padding: 64px 32px 150px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  font: 700 12px/1 var(--display);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #f7b58c;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--orange); }
h1 {
  max-width: 780px;
  margin: 0 0 20px;
  font: 800 clamp(40px, 6.4vw, 78px)/.98 var(--display);
  letter-spacing: -.035em;
  text-wrap: balance;
}
h1 em {
  font-style: normal;
  color: var(--orange);
  background: linear-gradient(transparent 84%, rgb(235 94 11 / .35) 84%);
}
.intro {
  max-width: 520px;
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  color: #cfc8bd;
}

/* Route strip */
.route {
  margin-top: 46px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  max-width: 760px;
}
.route-stop { display: flex; align-items: center; gap: 12px; }
.route-stop-end { flex-direction: row-reverse; text-align: right; }
.route-pin {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 3px solid var(--paper);
  background: var(--ink);
  flex-shrink: 0;
}
.route-pin-home { background: var(--orange); border-color: var(--orange); box-shadow: 0 0 0 6px rgb(235 94 11 / .22); }
.route-label { font: 700 14px/1.25 var(--display); }
.route-label small { display: block; font: 400 13px/1.4 var(--body); color: #a9a196; }
.route-track { position: relative; height: 40px; }
.route-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 2px dashed rgb(245 241 234 / .35);
}
.route-bike {
  position: absolute;
  top: 2px;
  width: 52px;
  height: 34px;
  color: var(--orange);
  padding: 0 6px;
  filter: drop-shadow(0 0 10px rgb(29 29 27 / .9));
  left: 0;
  animation: ride 7s cubic-bezier(.45, 0, .25, 1) infinite;
}
@keyframes ride {
  0% { left: 0; }
  55%, 100% { left: calc(100% - 52px); }
}

/* Main layout */
.layout {
  width: 100%;
  max-width: 1180px;
  margin: -104px auto 0;
  padding: 0 32px 64px;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr);
  gap: 24px;
  align-items: start;
  position: relative;
}
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px;
}
h2 {
  margin: 0 0 8px;
  font: 800 28px/1.15 var(--display);
  letter-spacing: -.02em;
}
.muted { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.6; }

/* Steps */
.steps {
  list-style: none;
  margin: 0 0 30px;
  padding: 0 0 24px;
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  counter-reset: none;
}
.step {
  display: flex;
  align-items: center;
  gap: 9px;
  font: 700 13px/1 var(--display);
  color: #a39b90;
  padding-right: 18px;
  position: relative;
  white-space: nowrap;
}
.step:not(:last-child)::after {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--line);
  margin-left: 8px;
}
.step span {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--line-strong);
  font-size: 12px;
}
.step.is-active { color: var(--ink); }
.step.is-active span { background: var(--orange); border-color: var(--orange); color: #fff; }
.step.is-done { color: var(--ink-soft); }
.step.is-done span { background: var(--ink); border-color: var(--ink); color: transparent; position: relative; }
.step.is-done span::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 5px;
  border: 2px solid #fff;
  border-top: 0;
  border-right: 0;
  transform: translateY(-1px) rotate(-45deg);
}

/* Date tiles */
.date-list {
  border: 0;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 12px;
}
.date-list legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.date {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 18px 16px 16px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  background: #fff;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
  animation: tile-in .5s cubic-bezier(.2, .7, .2, 1) both;
}
.date:nth-child(2) { animation-delay: .04s; }
.date:nth-child(3) { animation-delay: .08s; }
.date:nth-child(4) { animation-delay: .12s; }
.date:nth-child(5) { animation-delay: .16s; }
.date:nth-child(6) { animation-delay: .2s; }
.date:nth-child(n+7) { animation-delay: .24s; }
@keyframes tile-in { from { opacity: 0; transform: translateY(10px); } }
.date:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: 0 10px 24px -14px rgb(29 29 27 / .45); }
.date input { position: absolute; opacity: 0; pointer-events: none; }
.date:has(input:focus-visible) { outline: 3px solid var(--orange); outline-offset: 3px; }
.date-weekday { font: 700 12px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.date-day { font: 800 44px/1 var(--display); letter-spacing: -.04em; margin-top: 6px; }
.date-month { font-size: 15px; font-weight: 700; color: var(--ink-soft); }
.date-tag {
  justify-self: start;
  margin-top: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--paper);
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.date-check {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  transition: all .2s ease;
}
.date:has(input:checked) {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -16px rgb(29 29 27 / .7);
}
.date:has(input:checked) .date-weekday,
.date:has(input:checked) .date-month { color: #d9d2c7; }
.date:has(input:checked) .date-tag { background: rgb(235 94 11 / .18); color: #ffb98d; }
.date:has(input:checked) .date-check { background: var(--orange); border-color: var(--orange); }
.date:has(input:checked) .date-check::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  width: 8px;
  height: 4px;
  border: 2px solid #fff;
  border-top: 0;
  border-right: 0;
  transform: rotate(-45deg);
}

/* Confirm bar */
.confirm-bar {
  margin-top: 24px;
  padding: 16px 16px 16px 22px;
  border-radius: 18px;
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.choice-label { display: block; font: 700 12px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.choice-value { font: 700 17px/1.3 var(--display); }
.choice-value.is-empty { color: #a39b90; font-weight: 500; }
.button {
  appearance: none;
  border: 0;
  border-radius: 14px;
  min-height: 54px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font: 700 16px/1 var(--display);
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.button-primary { background: var(--orange); color: #fff; box-shadow: 0 10px 22px -12px rgb(235 94 11 / .9); }
.button-primary:hover:not(:disabled) { background: var(--orange-deep); transform: translateY(-1px); }
.button-primary:disabled { background: #e4ddd2; color: #9b9387; box-shadow: none; cursor: not-allowed; }
.button-secondary { background: var(--ink); color: var(--paper); }
a.button { text-decoration: none; }
.button-secondary:hover { background: #000; transform: translateY(-1px); }
.button-arrow { transition: transform .2s; }
.button:hover:not(:disabled) .button-arrow { transform: translateX(3px); }
.fine { margin: 14px 2px 0; color: var(--muted); font-size: 13px; line-height: 1.6; }

/* States */
.state { margin-top: 26px; padding: 30px; border-radius: 18px; background: var(--paper); line-height: 1.6; }
.state h3 { margin: 18px 0 6px; font: 800 22px/1.2 var(--display); letter-spacing: -.01em; }
.state p { margin: 0; color: var(--muted); font-size: 16px; }
.state .button { margin-top: 22px; }
.state-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--ink);
}
.state-icon svg { width: 28px; height: 28px; }
.state-warning { background: var(--amber-tint); }
.state-warning .state-icon { color: var(--amber); }
.state-success { background: var(--green-tint); }
.state-success .state-icon { background: var(--green); color: #fff; border-radius: 50%; animation: pop .5s cubic-bezier(.3, 1.6, .5, 1) both; }
.state-success .confirmed-date { display: block; margin-top: 4px; font: 800 30px/1.15 var(--display); color: var(--ink); letter-spacing: -.02em; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.spinner {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 3px solid var(--line-strong);
  border-top-color: var(--orange);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px; margin-top: 26px; }
.skeleton {
  height: 142px;
  border-radius: 16px;
  background: linear-gradient(100deg, #efe9df 30%, #f8f4ee 50%, #efe9df 70%) 0 0 / 300% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}
@keyframes shimmer { to { background-position: -150% 0; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Ticket */
.ticket {
  position: sticky;
  top: 24px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.ticket-top, .ticket-bottom { padding: 30px; }
.ticket-top { padding-bottom: 24px; }
.ticket-bottom { padding-top: 24px; }
.ticket-kicker {
  margin: 0 0 10px;
  font: 700 12px/1 var(--display);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--orange);
}
.ticket h2 { font-size: 24px; margin-bottom: 18px; }
.ticket-cut {
  position: relative;
  height: 0;
  border-top: 2px dashed var(--line);
  margin: 0 22px;
}
.ticket-cut::before, .ticket-cut::after {
  content: "";
  position: absolute;
  top: -15px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--paper);
}
.ticket-cut::before { left: -38px; }
.ticket-cut::after { right: -38px; }
.bikes { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.bike {
  display: flex;
  align-items: center;
  gap: 14px;
  font: 700 16px/1.35 var(--display);
}
.bike.placeholder { color: #a39b90; font-weight: 500; }
.bike-icon {
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--orange-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 40' fill='none' stroke='%23eb5e0b' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='13' cy='27' r='10'/%3E%3Ccircle cx='51' cy='27' r='10'/%3E%3Cpath d='M13 27 24 11h20l7 16M24 11l9 16h-20M33 27l11-16M21 6h8M41 6h6l3 5'/%3E%3C/svg%3E") center / 36px no-repeat;
}
address { font-style: normal; font-size: 16px; line-height: 1.6; color: var(--ink-soft); }
address strong { display: block; font: 700 16px/1.5 var(--display); color: var(--ink); }
.address-help { margin: 16px 0 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.address-help a { color: var(--ink); font-weight: 700; }

/* Footer */
.site-footer {
  margin-top: auto;
  width: 100%;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding: 26px 32px 34px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.site-footer a { color: var(--ink); font-weight: 700; }

/* Page load */
.reveal { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.r2 { animation-delay: .06s; }
.r3 { animation-delay: .12s; }
.r4 { animation-delay: .18s; }
.r5 { animation-delay: .26s; }
.r6 { animation-delay: .34s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .ticket { position: static; }
}
@media (max-width: 640px) {
  .site-header { padding: 16px 18px; }
  .brand img { width: 150px; }
  .help-link { padding: 9px 13px; font-size: 13px; }
  .hero { margin: 0 8px; border-radius: 24px; }
  .hero-inner { padding: 40px 22px 124px; }
  .intro { font-size: 16px; }
  .route { gap: 10px; margin-top: 34px; }
  .route-label { font-size: 12px; }
  .route-label small { font-size: 11px; }
  .layout { padding: 0 12px 40px; margin-top: -92px; gap: 16px; }
  .card { padding: 24px 20px; }
  .steps { gap: 4px; }
  .step { padding-right: 4px; font-size: 13px; }
  .step:not(.is-active) { font-size: 0; gap: 0; }
  .step:not(.is-active) span { font-size: 12px; }
  .step:not(:last-child)::after { width: 10px; margin-left: 4px; }
  h2 { font-size: 24px; }
  .date-list, .skeleton-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .date-day { font-size: 38px; }
  .confirm-bar { flex-direction: column; align-items: stretch; padding: 18px; }
  .button { justify-content: space-between; }
  .ticket-top, .ticket-bottom { padding: 24px 22px; }
  .site-footer { flex-direction: column; padding: 22px 20px 30px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .route-bike { left: calc(50% - 26px); }
}
