/* DV60 BRICKRUNNER 01 — bright clean studio, condensed type (REFERENCE_CONTRACT.md). Light only: never follows the OS. */
:root {
  color-scheme: light;
  --page: #F3F9FA; --page-2: #E8F0F2; --card: #FFFFFF;
  --ink: #17181B; --ink-2: #3A3D42; --dim: #8D9094; --line: #D9E2E5;
  --teal: #2EC6CF; --teal-d: #0C838B; --magenta: #E8458E; --yellow: #F4C83A;
  --display: 'Bebas Neue', 'Barlow Condensed', Impact, 'Arial Narrow', sans-serif;
  --cond: 'Barlow Condensed', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  --gut: clamp(16px, 4.6vw, 112px);
  --focus: 0 0 0 3px #fff, 0 0 0 5.5px var(--teal-d);
}
* { box-sizing: border-box; }
html { background: var(--page); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--page); color: var(--ink); font-family: var(--cond); font-weight: 500;
  overflow-x: clip; -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -70px; min-height: 44px; display: inline-flex; align-items: center; z-index: 50; background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 10px; text-decoration: none; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.skip:focus { top: 12px; }

/* ---------------------------------------------------------------- nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 20; height: 76px; display: flex; align-items: center; gap: clamp(20px, 3.4vw, 52px);
  padding: 0 var(--gut); pointer-events: none;
}
.nav > * { pointer-events: auto; }
.brand { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--cond); font-weight: 700; font-size: clamp(22px, 1.5vw, 32px); letter-spacing: .02em; text-decoration: none; text-transform: uppercase; }
.links { display: flex; gap: clamp(16px, 2.2vw, 32px); }
.links a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; justify-content: center; font-weight: 600; font-size: clamp(14.5px, 1vw, 21px); letter-spacing: .05em; text-transform: uppercase; text-decoration: none; position: relative; }
.links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 6px; height: 2px; background: var(--magenta); transform: scaleX(0); transform-origin: left; transition: transform .22s ease; }
.links a:hover::after { transform: scaleX(1); }
.nav-count { display: none; margin: 0; font-weight: 700; font-size: 17px; letter-spacing: .03em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.tools { margin-left: auto; display: flex; gap: 4px; }
.icon { position: relative; width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: transparent; border-radius: 12px; transition: background .2s; }
.icon:hover { background: rgba(23, 24, 27, .06); }
.icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.badge { position: absolute; top: 5px; right: 3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--magenta); color: #fff; font-size: 12px; font-weight: 700; line-height: 18px; text-align: center; }
.badge.pop { animation: pop .42s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes pop { 0% { transform: scale(.4); } 100% { transform: scale(1); } }

/* ---------------------------------------------------------------- the build: one tall section, a sticky stage */
.build { position: relative; height: 640vh; }
.stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  background:
    radial-gradient(60% 55% at 52% 46%, #FFFFFF 0%, rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, #F5FAFB 0%, #F1F7F8 62%, #E9F1F3 100%);
}
.gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.still { position: absolute; left: 50%; top: 56%; width: min(64vw, 900px); height: auto; transform: translate(-46%, -50%); opacity: 0; pointer-events: none; }
.no-gl .still { opacity: 1; }
.no-gl .gl, .no-gl .leaders, .no-gl .callout { display: none; }

.intro { position: absolute; left: var(--gut); top: 27.5%; width: 36vw; z-index: 2; }
.k-phone { display: none; }
.kicker { margin: 0 0 6px; font-weight: 600; font-size: clamp(14px, 1.25vw, 28px); letter-spacing: .02em; text-transform: uppercase; }
.title { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(54px, 6.5vw, 150px); line-height: .92; letter-spacing: .005em; text-transform: uppercase; }
.hint {
  margin: clamp(22px, 3.3vh, 36px) 0 0; padding: 6px 0; border: 0; background: none; text-align: left;
  font-weight: 600; font-size: clamp(14px, 1.2vw, 27px); line-height: 1.12; letter-spacing: .03em; text-transform: uppercase; display: inline-flex; align-items: flex-end; gap: 6px; min-height: 44px;
  transition: opacity .3s;
}
.done .hint { display: none; }
.hint .arrow { display: inline-block; transition: transform .25s; }
.hint:hover .arrow { transform: translateX(4px); }
.buyline { position: absolute; z-index: 3; right: var(--gut); top: calc(40% + clamp(150px, 13.6vw, 290px)); display: flex; align-items: center; gap: 18px; opacity: 0; transform: translateY(12px); pointer-events: none; visibility: hidden; transition: opacity .45s ease, transform .45s cubic-bezier(.2, .9, .3, 1.2), visibility 0s .45s; }
.done .buyline { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition: opacity .45s ease, transform .45s cubic-bezier(.2, .9, .3, 1.2), visibility 0s; }
.price { margin: 0; font-family: var(--display); font-size: clamp(34px, 3vw, 68px); line-height: 1; }
.cta {
  border: 0; border-radius: 999px; padding: 0 clamp(30px, 2vw, 44px); min-height: clamp(52px, 3.6vw, 76px); background: var(--teal-d); color: #fff;
  font-weight: 700; font-size: clamp(17px, 1.15vw, 25px); letter-spacing: .06em; text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -10px 18px rgba(0, 0, 0, .12), 0 10px 26px -10px rgba(12, 131, 139, .75);
  transition: transform .18s ease, box-shadow .2s ease, background .2s;
}
.cta:hover { transform: translateY(-1px); background: #0A747B; }
.cta:active { transform: translateY(1px) scale(.99); }
.cta.wide { width: 100%; }

.counter { position: absolute; right: var(--gut); top: 40%; z-index: 2; text-align: left; min-width: 15ch; }
.clabel { margin: 0 0 4px; font-weight: 600; font-size: clamp(14px, 1.25vw, 28px); letter-spacing: .02em; text-transform: uppercase; }
.cnum { margin: 0; font-family: var(--cond); font-weight: 600; font-size: clamp(44px, 4.6vw, 108px); line-height: 1; letter-spacing: -.005em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cnum b { font-weight: 600; color: var(--ink); }
.cnum .of { font-weight: 400; color: var(--dim); }
.phase { margin: 10px 0 0; font-weight: 600; font-size: clamp(13.5px, .95vw, 21px); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.phase::before { content: ''; display: inline-block; width: 18px; height: 3px; border-radius: 2px; margin: 0 8px 3px 0; background: linear-gradient(90deg, var(--magenta), var(--teal)); vertical-align: middle; }

.leaders { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; overflow: visible; }
.leaders path { fill: none; stroke: var(--ink); stroke-width: 1.4; opacity: var(--o, 0); }
.leaders circle { fill: var(--ink); opacity: var(--o, 0); }
.callout { position: absolute; left: 0; top: 0; margin: 0; z-index: 1; font-weight: 600; font-size: clamp(12.5px, 1vw, 22px); line-height: 1.1; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; opacity: var(--o, 0); will-change: transform; pointer-events: none; }

.rail, .rail-next, .foot { display: none; }

/* ---------------------------------------------------------------- after the build */
.buy { position: relative; background: var(--card); border-top: 1px solid var(--line); padding: clamp(64px, 9vw, 120px) var(--gut); }
.buy-in { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.h2 { margin: 0 0 18px; font-family: var(--display); font-weight: 400; font-size: clamp(48px, 5.4vw, 80px); line-height: .92; text-transform: uppercase; }
.h2.small { font-size: clamp(36px, 3.6vw, 54px); }
.lede { margin: 0 0 28px; font-family: var(--cond); font-weight: 500; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.4; color: var(--ink-2); max-width: 34em; }
.lede b { color: var(--ink); }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0; border-top: 1px solid var(--line); }
.facts div { padding: 16px 12px 0 0; }
.facts dt { font-weight: 600; font-size: 13px; letter-spacing: .07em; text-transform: uppercase; color: var(--dim); }
.facts dd { margin: 4px 0 0; font-family: var(--display); font-size: 30px; line-height: 1; }
.buy-form { background: var(--page); border-radius: 24px; padding: clamp(22px, 2.6vw, 34px); box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 24px 60px -36px rgba(18, 52, 60, .45); }
.price.big { font-size: 52px; margin-bottom: 16px; }
.sizes { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
.sizes legend { padding: 0; margin-bottom: 10px; font-weight: 600; font-size: 14px; letter-spacing: .07em; text-transform: uppercase; }
.size-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.size { position: relative; }
.size input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.size span, .qsize { display: grid; place-items: center; min-height: 48px; border-radius: 12px; background: var(--card); border: 1.5px solid var(--line); font-weight: 600; font-size: 17px; font-variant-numeric: tabular-nums; transition: border-color .15s, background .15s, color .15s, transform .15s; }
.qsize { width: 100%; padding: 0; }
.size input:hover + span, .qsize:hover { border-color: var(--ink); }
.size input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.size input:focus-visible + span { box-shadow: var(--focus); }
.size input:disabled + span { color: var(--dim); background: repeating-linear-gradient(135deg, transparent 0 6px, rgba(0, 0, 0, .05) 6px 7px); text-decoration: line-through; cursor: not-allowed; }
.err { margin: 10px 0 0; color: #B3245F; font-weight: 600; font-size: 15px; }
.sizes.invalid .size span { border-color: #E7A3BF; }
.note { margin: 12px 0 0; text-align: center; color: var(--dim); font-weight: 500; font-size: 14px; letter-spacing: .03em; }

.parts { padding: clamp(56px, 8vw, 110px) var(--gut); background: var(--page); }
.parts-in { max-width: 1180px; margin: 0 auto; }
.inventory { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.inventory li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.inventory .n { margin-left: auto; font-family: var(--display); font-size: 26px; line-height: 1; font-variant-numeric: tabular-nums; }
.inventory .k { font-weight: 600; font-size: 15px; letter-spacing: .03em; text-transform: uppercase; line-height: 1.1; }
.inventory .k small { display: block; font-weight: 500; font-size: 12.5px; color: var(--dim); letter-spacing: .04em; }
.inventory svg { width: 40px; height: 30px; flex: none; }
.footer { padding: 28px var(--gut) 40px; background: var(--page); border-top: 1px solid var(--line); }
.footer a { display: inline-flex; align-items: center; min-height: 44px; }
.footer p { margin: 0; max-width: 1180px; margin-inline: auto; color: var(--ink-2); font-weight: 500; font-size: 15px; letter-spacing: .02em; }

/* ---------------------------------------------------------------- dialogs */
.scrim { position: fixed; inset: 0; z-index: 30; background: rgba(15, 30, 36, .28); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.sheet {
  position: fixed; z-index: 31; top: 12px; right: 12px; width: min(400px, calc(100vw - 24px)); max-height: calc(100vh - 24px); overflow: auto;
  background: #fff; border-radius: 22px; padding: 14px 18px 20px; box-shadow: 0 30px 80px -30px rgba(10, 40, 50, .55);
  animation: sheet-in .28s cubic-bezier(.2, .9, .3, 1);
}
@keyframes sheet-in { from { opacity: 0; transform: translateY(-10px) scale(.98); } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.sheet-title { margin: 0; font-family: var(--display); font-size: 30px; line-height: 1; text-transform: uppercase; }
.menu-links { display: grid; }
.menu-links a { padding: 12px 4px; border-bottom: 1px solid var(--line); font-family: var(--display); font-size: 34px; text-decoration: none; text-transform: uppercase; }
.field input { width: 100%; min-height: 48px; border-radius: 12px; border: 1.5px solid var(--line); padding: 0 14px; font: 500 18px var(--cond); color: var(--ink); background: var(--page); }
.field input:focus { outline: none; border-color: var(--teal-d); box-shadow: 0 0 0 3px rgba(12, 131, 139, .2); }
.results { list-style: none; margin: 10px 0 0; padding: 0; }
.results a, .results p { display: block; padding: 12px 6px; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: 17px; letter-spacing: .03em; text-transform: uppercase; }
.results small { display: block; font-weight: 500; color: var(--dim); text-transform: none; letter-spacing: 0; font-size: 14px; }
.results p { color: var(--ink-2); text-transform: none; font-weight: 500; }
#sizes .size-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lines { list-style: none; margin: 0; padding: 0; }
.lines li { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.lines .sw { width: 56px; height: 40px; border-radius: 10px; background: linear-gradient(135deg, var(--teal) 0 33%, var(--magenta) 33% 66%, var(--yellow) 66%); }
.lines .t { font-weight: 700; font-size: 17px; text-transform: uppercase; letter-spacing: .03em; }
.lines .t small { display: block; font-weight: 500; color: var(--dim); font-size: 14px; text-transform: none; letter-spacing: .02em; }
.lines .rm { border: 0; background: none; min-height: 44px; padding: 0 6px; font-weight: 600; font-size: 14px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.empty { color: var(--ink-2); font-size: 17px; margin: 10px 0; }
.subtotal { display: flex; justify-content: space-between; font-weight: 600; font-size: 18px; text-transform: uppercase; letter-spacing: .04em; margin: 16px 0 12px; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 40; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: 16px; letter-spacing: .03em; box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .5); animation: sheet-in .25s ease; white-space: nowrap; }

/* ---------------------------------------------------------------- tablet portrait and narrower desktop */
@media (max-width: 1100px) and (min-width: 721px) {
  .intro { top: 22%; width: 50vw; }
  .counter { top: 22%; }
  .buyline { top: calc(22% + 170px); }
}

/* ---------------------------------------------------------------- phone (the concept's phone frame) */
@media (max-width: 720px) {
  .nav { height: 64px; gap: 12px; }
  .brand, .links { display: none; }
  .nav-count { display: block; }
  .tools [data-open=search] { display: none; }
  .build { height: 560vh; }
  .intro { left: var(--gut); right: var(--gut); top: auto; bottom: calc(44px + env(safe-area-inset-bottom)); width: auto; }
  .k-desk { display: none; }
  .k-phone { display: inline; }
  .intro .kicker { font-size: 15px; letter-spacing: .04em; margin-bottom: 2px; }
  .title { font-size: clamp(46px, 14vw, 62px); }
  .intro .hint { display: none; }
  .buyline { left: var(--gut); right: var(--gut); top: auto; bottom: calc(150px + env(safe-area-inset-bottom)); justify-content: space-between; }
  .counter { display: none; }
  .callout, .leaders { display: none; }
  .foot { display: block; position: absolute; left: var(--gut); right: var(--gut); bottom: calc(22px + env(safe-area-inset-bottom)); }
  .bar { height: 5px; border-radius: 3px; background: rgba(23, 24, 27, .08); overflow: hidden; }
  .bar span { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--magenta), #C982B3 45%, var(--teal)); border-radius: 3px; }
  .rail { display: block; position: absolute; right: calc(var(--gut) + 20px); top: 57%; width: 3px; height: 14vh; border-radius: 2px; background: rgba(23, 24, 27, .1); overflow: hidden; }
  .rail-fill { display: block; width: 100%; height: 100%; transform-origin: top; transform: scaleY(var(--p, 0)); background: linear-gradient(180deg, var(--teal), #20A9B2); }
  .rail-next { display: grid; place-items: center; position: absolute; right: var(--gut); top: calc(57% + 14vh + 2px); width: 44px; height: 44px; border: 0; background: none; border-radius: 12px; }
  .rail-next svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .done .rail-next { opacity: 0; pointer-events: none; }
  .buy-in { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts div { padding-bottom: 12px; }
  .size-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sheet { top: auto; bottom: 0; right: 0; left: 0; width: 100%; border-radius: 22px 22px 0 0; max-height: 86vh; padding-bottom: calc(20px + env(safe-area-inset-bottom)); animation-name: sheet-up; }
  @keyframes sheet-up { from { transform: translateY(30px); opacity: 0; } }
  .still { width: 92vw; top: 44%; transform: translate(-50%, -50%); }
}
/* a phone on its side: copy on the left, the shoe on the right, nothing at the bottom */
@media (max-width: 950px) and (max-height: 500px) and (orientation: landscape) {
  .nav { height: 56px; }
  .intro { top: 26%; width: 40vw; }
  .title { font-size: clamp(38px, 6.4vw, 56px); }
  .counter { top: 26%; }
  .cnum { font-size: 40px; }
  .buyline { left: var(--gut); right: auto; top: calc(26% + 112px); }
  .callout, .leaders { display: none; }
  .build { height: 520vh; }
}

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