/* Coming-soon page. Every colour, font and size comes from design-system/tokens.css. */

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-fg);
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

.wrap {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-left: max(var(--space-4), env(safe-area-inset-left, 0px));
  padding-right: max(var(--space-4), env(safe-area-inset-right, 0px));
}

.skip {
  position: absolute; left: var(--space-4); top: -100px;
  background: var(--color-accent); color: var(--color-on-accent);
  padding: var(--space-2) var(--space-4); font-weight: 700; z-index: 10;
}
.skip:focus { top: var(--space-4); }

:focus-visible { outline: 3px solid var(--color-fg); outline-offset: 3px; }

.muted { color: var(--color-muted); }

/* ---------- Type ---------- */
.display, .display-sm {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  line-height: 1.02;
  margin: 0;
  text-wrap: balance;
}
.display { font-size: var(--text-3xl); }
.display-sm { font-size: var(--text-xl); }

/* Highlight as one block: an inline highlight's background is taller than the
   tight display line-height and would cover the line above. */
mark {
  display: inline-block;
  max-width: 100%;
  background: var(--color-accent);
  color: var(--color-on-accent);
  padding: 0.04em 0.14em 0;
  margin-top: 0.06em;
}

.eyebrow {
  margin: 0 0 var(--space-4);
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-ink);
}

.lede {
  font-size: var(--text-lg);
  color: var(--color-muted);
  max-width: 36ch;
  margin: var(--space-6) 0 0;
}

/* ---------- Buttons: slanted like the 9 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px;
  padding: var(--space-3) calc(var(--space-6) + var(--cut) / 2);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: var(--text-md);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  clip-path: var(--slant);
  transition: filter var(--duration-fast) var(--ease-out);
}
.btn-sm { min-height: 40px; font-size: var(--text-sm); padding-inline: calc(var(--space-4) + var(--cut) / 2); }
.btn-accent { background: var(--color-accent); color: var(--color-on-accent); }
.btn-outline { background: var(--color-bar); color: var(--color-on-bar); }
.btn:hover { filter: brightness(1.08); }
/* clip-path would hide the focus ring, so a focused button drops its slant */
.btn:focus-visible { clip-path: none; outline: 3px solid var(--color-fg); outline-offset: 3px; }

.cta-row { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }

.link-btn {
  font: inherit; font-weight: 600; color: var(--color-ink);
  background: none; border: 0; padding: var(--space-1) 0; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
}

/* ---------- Header ---------- */
.top { padding-block: var(--space-4); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }
.brand { display: block; flex: none; }
.logo { width: clamp(150px, 30vw, 210px); height: auto; }
.logo-light { display: var(--show-on-light); }
.logo-dark { display: var(--show-on-dark); }
.top-actions { display: flex; align-items: center; gap: var(--space-3); }

.theme-toggle {
  width: 40px; height: 40px; display: grid; place-items: center;
  background: var(--color-surface); color: var(--color-fg);
  border: 1px solid var(--color-line); cursor: pointer; padding: 0;
}
.theme-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.theme-toggle .icon-moon { fill: currentColor; stroke: none; }
.theme-toggle .icon-sun { display: var(--show-on-dark); }
.theme-toggle .icon-moon { display: var(--show-on-light); }

/* ---------- Hero ---------- */
.hero { padding-block: var(--space-12) var(--space-16); }
.hero-grid { display: grid; gap: var(--space-12); align-items: center; }
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.05fr 1fr; }
}

/* ---------- Barbell ---------- */
.barbell {
  margin: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  padding: var(--space-6);
  display: grid;
  gap: var(--space-4);
  position: relative;
}
.barbell::before {
  content: ""; position: absolute; left: 0; top: 0; width: 72px; height: 6px;
  background: var(--color-accent); clip-path: polygon(0 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}
.barbell-readout { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-4); flex-wrap: wrap; }
.readout-label { margin: 0; font-weight: 600; font-size: var(--text-sm); letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-muted); }
.barbell[data-state="loading"] .when-loaded,
.barbell[data-state="loaded"] .when-loading { display: none; }
.readout-total {
  margin: 0;
  font-family: var(--font-display); font-style: italic; font-weight: 900;
  font-size: clamp(3rem, 8vw, 4.5rem); line-height: 0.9;
  font-variant-numeric: tabular-nums;
}
.readout-total .unit { font-size: 0.4em; margin-left: 0.15em; color: var(--color-muted); text-transform: uppercase; }

.barbell-art { width: 100%; height: auto; overflow: visible; }
.barbell-art .floor { stroke: var(--color-line); stroke-width: 2; }
.barbell-art .sleeve { fill: var(--color-muted); }
.barbell-art .shaft { fill: var(--color-muted); }
.barbell-art .knurl rect { fill: var(--color-fg); opacity: 0.35; }
.barbell-art .collar { fill: var(--color-fg); }
.plate-25 rect, .plate-5 rect { fill: var(--color-accent); }
.plate-10 rect { fill: var(--color-fg); }
.plate text {
  fill: var(--color-on-accent);
  font-family: var(--font-display); font-style: italic; font-weight: 900; font-size: 15px;
  text-anchor: middle; dominant-baseline: middle;
}

.plate { transform-box: view-box; transition: transform 450ms var(--ease-out), opacity 300ms var(--ease-out); }
.plate:not(.is-on) { opacity: 0; }
.plate-left:not(.is-on) { transform: translateX(-90px); }
.plate-right:not(.is-on) { transform: translateX(90px); }

.barbell-foot { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); flex-wrap: wrap; font-size: var(--text-sm); }
.formula { color: var(--color-muted); font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  .plate, .btn { transition: none; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--space-16); border-top: 1px solid var(--color-line); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4); flex-wrap: wrap; margin-bottom: var(--space-8); }
.section-head p { margin: 0; }
.note { margin: var(--space-6) 0 0; }

/* Price bars: black bar, yellow slanted price tab */
.tiers { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
@media (min-width: 760px) { .tiers { grid-template-columns: 1fr 1fr; } }
.tier {
  display: grid; grid-template-columns: 1fr auto; align-items: stretch;
  background: var(--color-bar); color: var(--color-on-bar);
  border-left: 4px solid var(--color-accent);
  min-height: 72px;
}
.tier-name {
  padding: var(--space-3) var(--space-4);
  display: grid; align-content: center;
  font-family: var(--font-display); font-style: italic; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.04em; font-size: var(--text-lg);
}
.tier-name small {
  font-family: var(--font-body); font-style: normal; font-weight: 500;
  text-transform: none; letter-spacing: 0; font-size: var(--text-sm);
  color: var(--color-bar-muted);
}
.tier-price {
  background: var(--color-accent); color: var(--color-on-accent);
  display: flex; align-items: center; gap: var(--space-2);
  padding: var(--space-3) var(--space-6) var(--space-3) calc(var(--space-6) + 18px);
  clip-path: polygon(22px 0, 100% 0, 100% 100%, 0 100%);
  font-family: var(--font-display); font-style: italic; font-weight: 900;
  font-size: var(--text-xl); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.tier-price small { font-size: var(--text-xs); font-weight: 800; }
.tier-best { outline: 2px solid var(--color-accent); outline-offset: 2px; }

/* Find us */
.find-grid { display: grid; gap: var(--space-8); }
@media (min-width: 760px) { .find-grid { grid-template-columns: 1fr 1fr; align-items: end; } }
.address { font-style: normal; font-size: var(--text-lg); margin-top: var(--space-4); line-height: 1.5; }
.phone { margin: 0; display: grid; gap: var(--space-1); }
.phone .muted { font-size: var(--text-sm); }
.phone-number {
  font-family: var(--font-display); font-style: italic; font-weight: 800;
  font-size: var(--text-xl); font-variant-numeric: tabular-nums; user-select: all;
}
.find-actions .cta-row { margin-top: var(--space-4); }

/* Footer */
.foot { border-top: 1px solid var(--color-line); padding-block: var(--space-6) calc(var(--space-6) + env(safe-area-inset-bottom, 0px)); color: var(--color-muted); font-size: var(--text-sm); }
.foot-row { display: flex; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; }

/* 404 */
.not-found { min-height: 100vh; display: grid; align-content: center; gap: var(--space-6); padding-block: var(--space-16); }
.not-found .lede { margin: 0; }
.not-found .cta-row { margin-top: 0; }
