/* shoewoohoo — design tokens */
:root {
  color-scheme: light;
  --bg: #f6f6f3;
  --surface: #ffffff;
  --ink: #0e1111;
  --ink-2: #3d4442;
  --muted: #7a817e;
  --line: #e7e7e2;
  --line-2: #efefeb;
  --lime: #c8f04a;
  --good: #12804c;
  --good-bg: #e6f6ec;
  --bar: linear-gradient(90deg, #16a35a 0%, #eab308 50%, #e5484d 100%);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(14, 17, 17, .04), 0 2px 8px rgba(14, 17, 17, .04);
  --shadow-lg: 0 18px 50px -12px rgba(14, 17, 17, .22), 0 4px 14px rgba(14, 17, 17, .06);
  --ease: cubic-bezier(.2, .75, .2, 1);
  --topbar: 64px;
  --brand-col: 168px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar) + 16px); }
body { margin: 0; overflow-x: clip; background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.5; }
h1, h2, h3, p, ol, dl, dd { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
[hidden] { display: none !important; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  height: var(--topbar);
  display: flex; align-items: center; gap: 24px;
  padding: 0 max(20px, calc((100% - 1320px) / 2));
  background: rgba(246, 246, 243, .82);
  backdrop-filter: saturate(1.6) blur(18px);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  border-bottom: 1px solid rgba(14, 17, 17, .06);
}
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); }
.logo-mark { width: 32px; height: 32px; border-radius: 9px; background: var(--ink); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.logo-mark svg { width: 26px; height: 18px; fill: var(--lime); }
.logo-mark .lace { fill: none; stroke: var(--ink); stroke-width: 1.3; stroke-linecap: round; }
.logo-word { display: inline-flex; align-items: center; font-size: 20px; font-weight: 850; letter-spacing: -.045em; line-height: 1; }
.lw-shoe { color: var(--ink); }
.lw-woohoo { position: relative; margin-left: 3px; padding: 3px 7px 4px; border-radius: 8px; background: var(--lime); color: var(--ink); font-style: italic; transform: rotate(-4deg); box-shadow: 0 2px 0 var(--ink); }
.lw-burst { position: absolute; top: -10px; right: -10px; width: 15px; height: 15px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.lw-tld { margin-left: 5px; color: var(--muted); font-size: .72em; font-weight: 600; letter-spacing: -.01em; }
.topnav { margin-left: auto; }
.topnav a { color: var(--ink-2); font-size: 14px; font-weight: 500; text-decoration: none; padding: 8px 12px; border-radius: 999px; transition: background .2s; }
.topnav a:hover { background: rgba(14, 17, 17, .06); }
.progress { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow-sm); font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.progress b { color: var(--ink); }
.progress-ring { width: 24px; height: 24px; transform: rotate(-90deg); }
.progress-ring circle { fill: none; stroke: var(--line); stroke-width: 4; }
.progress-ring .progress-value { stroke: var(--ink); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset .6s var(--ease); }

/* ---------- toolbar ---------- */
.board-wrap { width: min(1320px, 100% - 40px); margin: 0 auto; padding: 28px 0 72px; }
.toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.toolbar h1 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 750; letter-spacing: -.03em; line-height: 1.15; }
.toolbar-meta { margin-top: 4px; color: var(--muted); font-size: 13.5px; }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; color: var(--muted); font-size: 12px; font-weight: 600; }
.key { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.key i { display: inline-block; width: 18px; height: 8px; border-radius: 99px; }
.key i.key-scale { width: 34px; background: var(--bar); }
.key i.key-deal { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--hot); color: #fff; }
.key i.key-deal svg { width: 11px; height: 11px; fill: currentColor; }
.key i.key-reg { width: 10px; height: 10px; border-radius: 50%; background: var(--good); }
.key-axis { color: var(--muted); font-weight: 500; }

/* ---------- board ---------- */
.board { display: grid; gap: 12px; }
.board-head {
  position: sticky; top: var(--topbar); z-index: 10;
  display: grid; grid-template-columns: var(--brand-col) repeat(5, minmax(0, 1fr)); gap: 10px;
  padding: 12px 12px; margin: 0 -12px;
  background: linear-gradient(var(--bg) 78%, rgba(246, 246, 243, 0));
}
.head-cell { display: flex; flex-direction: column; gap: 1px; padding: 0 4px; }
.head-cell b { font-size: 13.5px; font-weight: 700; letter-spacing: -.01em; }
.head-cell span, .head-brand { color: var(--muted); font-size: 12px; }
.head-brand { justify-content: flex-end; text-transform: uppercase; letter-spacing: .08em; font-size: 11px; font-weight: 600; }

.lane {
  position: relative;
  display: grid; grid-template-columns: var(--brand-col) minmax(0, 1fr); gap: 10px;
  padding: 10px;
  border-radius: calc(var(--radius) + 6px);
  background: rgba(255, 255, 255, .55);
  border: 1px solid var(--line-2);
}
.lane-brand { display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 8px 10px; }
.lane-brand h2 { font-size: 22px; font-weight: 800; letter-spacing: -.035em; line-height: 1.1; }
.lane-brand p { color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.lane-brand em { display: block; color: var(--good); font-style: normal; font-weight: 600; }
.lane-brand .sep { display: none; }
.lane-cards { min-width: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }

/* ---------- card ---------- */
.card {
  position: relative;
  display: flex; flex-direction: column; gap: 8px;
  padding: 10px 10px 12px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  cursor: default;
  outline-offset: 2px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.card[data-id]:hover, .card[data-id]:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card-cat { display: none; }
.card-empty { align-items: center; justify-content: center; min-height: 100%; background: transparent; border-style: dashed; box-shadow: none; color: #b4b9b6; font-size: 13px; }

.art { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); overflow: hidden; display: grid; place-items: center; background: radial-gradient(120% 90% at 30% 20%, #ffffff 0%, var(--tint) 100%); }
.art-marathon { --tint: #e9ecff; }
.art-5k10k { --tint: #fff0e3; }
.art-tempo { --tint: #ffe9ee; }
.art-long-run { --tint: #e4f4ff; }
.art-easy-everyday { --tint: #ebf6e1; }
.shoe { width: 88%; overflow: visible; transform: rotate(-4deg); transition: transform .5s var(--ease); }
.card[data-id]:hover .shoe, .card[data-id]:focus-visible .shoe { transform: translateY(-5px) rotate(-8deg) scale(1.04); }
.art.has-photo { background: #f2f2f2; } /* matches the studio background of press images */
.art > a { display: contents; }
/* standard images: 1600x900 transparent, toe right, shoe on a fixed ground line (scripts/prepare_image.py) */
.shoe-photo { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; /* white and #f2f2f2 studio backgrounds both end up as the tile grey */ transform: translateY(2%); transition: transform .5s var(--ease); }
.card[data-id]:hover .shoe-photo, .card[data-id]:focus-visible .shoe-photo { transform: translateY(-3%) rotate(-3deg) scale(1.04); }
.shoe-shadow { fill: rgba(14, 17, 17, .12); filter: blur(3px); transform-origin: center; transition: transform .5s var(--ease), opacity .5s; }
.card[data-id]:hover .shoe-shadow { transform: scaleX(.86); opacity: .6; }
.shoe-upper { fill: #fff; stroke: #bfc6c2; stroke-width: 1.5; stroke-linejoin: round; }
.shoe-mid { fill: #f7f8f6; stroke: #bfc6c2; stroke-width: 1.4; stroke-linejoin: round; }
.shoe-line { fill: none; stroke: #d3d8d5; stroke-width: 1.4; stroke-linecap: round; }

.card-name { font-size: 14.5px; font-weight: 700; letter-spacing: -.015em; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 2px; }

/* ---------- price ---------- */
:root { --hot: #e5484d; }
.price { padding: 0 2px; }
.price-scale { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: 11px; }
.scale-top, .scale-bottom { grid-column: 2; position: relative; display: block; }
.scale-top { grid-row: 1; }
.price-scale > .axis, .price-scale > .bar { grid-row: 2; }
.scale-bottom { grid-row: 3; }
.scale-top { height: 30px; }
.scale-bottom { height: 22px; }
.axis { color: var(--muted); font-size: 9.5px; line-height: 1; font-variant-numeric: tabular-nums; opacity: .8; }
.bar { position: relative; display: block; height: 8px; border-radius: 99px; background: var(--line); }
.price:not(.is-none) .bar { background: var(--bar); }
.bar::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, transparent calc(33.33% - 1px), rgb(255 255 255 / .95) 0 calc(33.33% + 1px), transparent 0 calc(66.67% - 1px), rgb(255 255 255 / .95) 0 calc(66.67% + 1px), transparent 0); }
.bar i { position: absolute; top: 50%; }
.bar-deal { width: 3px; height: 16px; margin: -8px 0 0 -1.5px; border-radius: 3px; background: var(--hot); box-shadow: 0 0 0 2px var(--surface); }
.bar-reg { width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 3px var(--surface), 0 1px 4px rgb(0 0 0 / .25); }
.scale-top > span:not(.price-note), .scale-bottom > span { position: absolute; transform: translateX(-50%); white-space: nowrap; font-variant-numeric: tabular-nums; }
.scale-top .price-note { position: absolute; left: 0; bottom: 8px; }
.deal-bubble { bottom: 9px; display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px 2px 6px; border-radius: 999px; background: var(--hot); color: #fff; font-size: 12px; font-weight: 650; box-shadow: none; }
.deal-arrow { position: absolute; bottom: 0; width: 0; height: 0; margin-left: -5px; border: 5px solid transparent; border-top-color: var(--hot); }
.flame { width: 11px; height: 11px; flex: none; fill: currentColor; }
.reg-label { top: 8px; color: var(--good); font-size: 12.5px; font-weight: 700; }
.deal-tag { position: absolute; top: 8px; right: 8px; padding: 2px 8px; border-radius: 999px; background: rgb(255 255 255 / .9); color: var(--hot); font-size: 11px; font-weight: 650; box-shadow: 0 0 0 1px rgb(229 72 77 / .25); }
.price-note { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }

/* ---------- loading choreography ---------- */
.lane.is-arriving .lane-brand { animation: rise .7s var(--ease) both; animation-delay: var(--lane-delay, 0ms); }
.lane.is-arriving .card { animation: rise .7s var(--ease) both; animation-delay: calc(var(--lane-delay, 0ms) + 80ms + var(--i) * 55ms); }
@keyframes rise {
  from { opacity: 0; transform: translateY(18px) scale(.985); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: none; }
}

.lane.is-teaser { pointer-events: none; user-select: none; }
.lane.is-teaser > .lane-brand, .lane.is-teaser > .lane-cards { opacity: .42; filter: blur(3px) saturate(.5); transform: translateY(10px) scale(.99); }
.lane.is-teaser::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit;
  background: linear-gradient(180deg, rgba(246, 246, 243, 0) 0%, rgba(246, 246, 243, .7) 55%, var(--bg) 92%);
}
.lane > .lane-brand, .lane > .lane-cards { transition: opacity .6s var(--ease), filter .6s var(--ease), transform .6s var(--ease); }
.teaser-hint {
  position: absolute; z-index: 2; left: 50%; bottom: 18px; transform: translateX(-50%);
  display: inline-flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--ink-2); font-size: 13px; font-weight: 600;
}
.teaser-hint i { width: 18px; height: 28px; border: 2px solid var(--ink-2); border-radius: 10px; position: relative; }
.teaser-hint i::after { content: ""; position: absolute; left: 50%; top: 5px; width: 3px; height: 6px; margin-left: -1.5px; border-radius: 2px; background: var(--ink-2); animation: wheel 1.6s ease-in-out infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(9px); } }
.board-end { padding: 28px 0 4px; text-align: center; color: var(--muted); font-size: 13px; animation: rise .7s var(--ease) both; }

/* ---------- tooltip ---------- */
.tip {
  position: fixed; z-index: 50; width: 268px;
  padding: 14px 16px 14px;
  border-radius: 16px;
  background: rgba(14, 17, 17, .94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #f2f3f1; font-size: 13px; line-height: 1.45;
  box-shadow: 0 24px 60px -16px rgba(0, 0, 0, .45);
  opacity: 0; transform: translateY(6px) scale(.98);
  transition: opacity .18s var(--ease), transform .18s var(--ease);
}
.tip[data-side="below"] { transform: translateY(-6px) scale(.98); }
.tip.is-on { opacity: 1; transform: none; }
.tip-kicker { color: #9ca39f; font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.tip-title { margin: 1px 0 8px; font-size: 16px; font-weight: 750; letter-spacing: -.02em; }
.tip p b { color: var(--lime); }
.tip dl { display: grid; grid-template-columns: 1fr auto; gap: 5px 12px; margin: 10px 0 12px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .12); font-variant-numeric: tabular-nums; }
.tip dt { color: #9ca39f; }
.tip dd { text-align: right; font-weight: 600; }
.tip dd.good { color: var(--lime); }
.tip a { display: inline-block; margin-top: 2px; color: #fff; font-weight: 600; font-size: 12.5px; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .3); }
.tip a:hover { border-color: #fff; }
.tip-credit { margin-top: 10px; color: #8a918d; font-size: 11.5px; }

/* ---------- how prices work ---------- */
.how { background: var(--ink); color: #f2f3f1; }
.how-inner { width: min(1320px, 100% - 40px); margin: 0 auto; padding: 88px 0 80px; }
.kicker { display: inline-block; margin-bottom: 14px; padding: 4px 10px; border-radius: 999px; background: var(--lime); color: var(--ink); font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.how h2 { max-width: 720px; font-size: clamp(30px, 4.2vw, 52px); font-weight: 800; letter-spacing: -.045em; line-height: 1.04; }
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 44px; }
.steps li { padding: 24px; border-radius: var(--radius); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); }
.step-no { color: var(--lime); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.steps h3 { margin: 10px 0 8px; font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
.steps p { color: #a9b0ac; font-size: 14.5px; }
.fineprint { max-width: 720px; margin-top: 32px; color: #8a918d; font-size: 13px; }

.footer { width: min(1320px, 100% - 40px); margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 28px 0 calc(28px + env(safe-area-inset-bottom, 0px)); color: var(--muted); font-size: 13px; }
.footer-logo .logo-word { font-size: 17px; }
.footer-logo .logo-mark { width: 28px; height: 28px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  :root { --brand-col: 128px; }
  .lane-brand h2 { font-size: 19px; }
  .card-name { font-size: 13.5px; }
}

@media (max-width: 860px) {
  :root { --topbar: 58px; }
  .topnav { display: none; }
  .progress { margin-left: auto; }
  .board-wrap { width: 100%; padding-top: 20px; }
  .toolbar { flex-direction: column; align-items: flex-start; gap: 12px; padding: 0 20px; }
  .board-head { display: none; }
  .board { gap: 18px; }
  .lane { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 0; border: 0; background: none; border-radius: 0; }
  .lane-brand { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 12px; padding: 0 20px; }
  .lane-brand p { text-align: right; }
  .lane-brand em { display: inline; }
  .lane-brand .sep { display: inline; }
  .progress { padding-right: 10px; }
  .lane-cards {
    display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory;
    padding: 4px 20px 14px; scroll-padding-inline: 20px;
    scrollbar-width: none;
  }
  .lane-cards::-webkit-scrollbar { display: none; }
  .card { flex: 0 0 min(64vw, 230px); scroll-snap-align: start; }
  .card-empty { display: none; }
  .card-cat { display: block; color: var(--muted); font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; padding: 0 2px; }
  .teaser-hint { bottom: 6px; }
  .steps { grid-template-columns: 1fr; }
  .how-inner { padding: 64px 0 56px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }
}

/* logo on small screens: keep the brand counter on one line */
.progress { white-space: nowrap; }
@media (max-width: 480px) {
  .topbar .lw-tld { display: none; }
  .topbar .logo-word { font-size: 18px; }
}

/* ---------- impressum ---------- */
.legal { width: min(720px, 100% - 40px); margin: 0 auto; padding: 48px 0 64px; }
.legal h1 { font-size: 34px; font-weight: 800; letter-spacing: -.035em; }
.legal-en { margin-top: 4px; color: var(--muted); }
.legal section { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.legal h2 { margin-bottom: 8px; font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.legal p { color: var(--ink-2); }
.legal mark.todo { padding: 0 4px; border-radius: 4px; background: #fde68a; color: var(--ink); }
.credits { margin: 14px 0 0; padding: 0; list-style: none; columns: 2 260px; column-gap: 28px; font-size: 13.5px; }
.credits li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px solid var(--line-2); break-inside: avoid; }
.credits li span:last-child { color: var(--muted); white-space: nowrap; }
.footer a { color: inherit; }
.legal-h1-2 { margin-top: 64px; padding-top: 40px; border-top: 2px solid var(--ink); scroll-margin-top: calc(var(--topbar) + 16px); }
.legal-list { margin: 8px 0 10px; padding-left: 20px; color: var(--ink-2); }
.legal p + p { margin-top: 10px; }
