:root {
  --bg: #ffffff;
  --ink: #111111;
  --soft: #f5f5f5;
  --line: #d8d8d8;
  --shadow: 6px 6px 0 #111111;
  --radius: 18px;
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif;
}
body {
  min-height: 100vh;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 28px 28px;
}
button, input, textarea { font: inherit; }
button { cursor: pointer; }
img, svg { display: block; max-width: 100%; }
.panel {
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.inset {
  box-shadow: 3px 3px 0 var(--ink);
}
.site-header,
.site-footer,
.site-main {
  width: min(1440px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}
.site-header {
  margin-top: 16px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 12px;
  z-index: 50;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  padding: 0;
}
.brand strong {
  display: block;
  font-size: 28px;
  letter-spacing: 1px;
}
.brand span {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.brand-icon {
  width: 76px;
  height: 28px;
  fill: #fff;
  stroke: var(--ink);
  stroke-width: 2;
}

.brand-logo {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: #fff;
  flex: 0 0 auto;
}
.nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  flex: 1;
}
.nav button,
.link-button,
.menu-btn {
  background: transparent;
  border: 0;
  padding: 10px 12px;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--ink);
}
.nav button:hover,
.link-button:hover,
.menu-btn:hover {
  text-decoration: underline;
}
.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.button {
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  padding: 12px 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 3px 3px 0 var(--ink);
}
.button:hover {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}
.button-solid {
  background: var(--ink);
  color: #fff;
}
.menu-btn { display: none; }
.site-main { padding: 20px 0 32px; }
.page { display: none; }
.page.active { display: block; }
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  padding: 24px;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.hero h1,
.section-head h2,
.workout-header h2,
.results-copy h2,
.about-layout h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 66px);
  line-height: 0.98;
}
.hero-text,
.section-note,
.about-text,
.feature-card p,
.notice p,
.machine-card p,
.scene-hint,
.coach-box p {
  color: #222;
  line-height: 1.6;
}
.hero-text { font-size: 18px; max-width: 620px; margin: 16px 0 0; }
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 22px 0;
}
.notice {
  max-width: 420px;
  padding: 14px 16px;
  background: #fff;
}
.notice strong { display: block; margin-bottom: 6px; text-transform: uppercase; }
.hero-art {
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 440px;
}
.hero-strip {
  width: 100%;
  display: grid;
  gap: 14px;
}
.hero-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.home-sections,
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 18px;
}
.feature-card,
.section-panel,
.workout-layout,
.results-layout {
  padding: 20px;
}
.feature-card h2,
.section-head h2,
.results-copy h2,
.workout-header h2,
.about-layout h2 { font-size: clamp(28px, 4vw, 46px); }
.feature-card h2, .section-head h2 { margin-bottom: 10px; }
.section-panel { margin-top: 18px; }
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 18px;
}
.section-head.compact { align-items: center; }
.link-button {
  padding: 0;
  font-weight: 700;
}
.machine-preview-grid,
.machine-grid {
  display: grid;
  gap: 16px;
}
.machine-preview-grid { grid-template-columns: repeat(4, 1fr); }
.machine-grid { grid-template-columns: repeat(3, 1fr); }
.machine-card,
.preview-card {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.machine-card h3,
.preview-card h3 {
  margin: 0;
  font-size: 24px;
}
.machine-card p,
.preview-card p { margin: 0; }
.machine-card-footer,
.preview-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}
.machine-meta {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.preview-svg,
.card-art,
.profile-mini-art,
.results-art,
.about-gallery .panel {
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 16px;
}
.preview-svg,
.card-art { padding: 10px; }
.preview-svg { min-height: 180px; }
.card-art { min-height: 230px; }
.workout-layout { margin-top: 18px; }
.workout-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 18px;
}
.workout-body {
  display: grid;
  grid-template-columns: 120px 1fr 280px;
  gap: 16px;
}
.stats-column,
.coach-column { display: grid; gap: 12px; }
.stat-box,
.coach-box,
.meter-card,
.info-list,
.callout,
.achievement {
  padding: 14px;
}
.stat-box span,
.stat-box small,
.meter-card label,
.info-list span {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.stat-box strong {
  display: block;
  font-size: 42px;
  margin: 8px 0 2px;
}
.workout-scene {
  min-height: 520px;
  padding: 16px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.scene-status {
  position: absolute;
  top: 12px;
  right: 12px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 8px 12px;
  background: #fff;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}
.scene-hint {
  margin: 12px 0 0;
  text-align: center;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.coach-box strong,
.info-list strong { display: block; }
.coach-box p { margin: 8px 0 0; }
.meter {
  margin-top: 8px;
  height: 16px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}
.meter i {
  display: block;
  width: 8%;
  height: 100%;
  background: repeating-linear-gradient(90deg, #111 0 10px, #fff 10px 20px);
  transition: width 0.18s ease;
}
.meter-wide { margin: 0 0 8px; }
.info-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.info-list div:last-child { border-bottom: 0; }
.results-layout {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 18px;
  align-items: center;
}
.results-art {
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.results-table {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}
.results-table .row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 2px solid var(--ink);
  border-radius: 14px;
}
.results-calls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}
.callout {
  font-weight: 700;
  min-width: 180px;
}
.leaderboard-list {
  display: grid;
  gap: 10px;
}
.leader-row,
.you-row {
  display: grid;
  grid-template-columns: 70px 1.6fr 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 14px;
}
.you-row { margin-top: 12px; }
.profile-mini-art {
  width: 140px;
  min-height: 110px;
  padding: 8px;
}
.profile-stats {
  display: grid;
  gap: 10px;
}
.profile-stats .row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 2px solid var(--ink);
  border-radius: 14px;
}
.achievement-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.achievement {
  text-align: center;
  font-weight: 700;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-layout {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}
.about-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.about-gallery .panel { min-height: 180px; padding: 10px; }
.site-footer {
  margin-top: 0;
  margin-bottom: 18px;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Illustration styling */

#exerciseArt {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.scene-svg {
  width: min(100%, 900px);
  height: auto;
}
.dg-ill svg,
.preview-svg svg,
.scene-svg,
.results-art svg,
.profile-mini-art svg,
.about-gallery svg,
.hero-strip svg { width: 100%; height: auto; }
.dg-ill svg,
.preview-svg svg,
.scene-svg,
.results-art svg,
.profile-mini-art svg,
.about-gallery svg,
.hero-strip svg {
  stroke: var(--ink);
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.fill-white { fill: #fff; }
.fill-soft { fill: var(--soft); }
.scene-svg .moving,
.scene-svg .moving-line,
.scene-svg .moving-plate,
.scene-svg .belt-lines,
.scene-svg .left-leg,
.scene-svg .right-leg,
.scene-svg .plank-body,
.scene-svg .forearm-left,
.scene-svg .forearm-right {
  transform-box: fill-box;
  transform-origin: center;
}
.scene-svg .caption,
.preview-svg .caption,
.results-art .caption,
.profile-mini-art .caption,
.hero-strip .caption,
.about-gallery .caption {
  font: 700 16px Arial, Helvetica, sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.scene-svg .stage-line,
.preview-svg .stage-line,
.results-art .stage-line,
.profile-mini-art .stage-line,
.hero-strip .stage-line,
.about-gallery .stage-line {
  stroke-width: 3;
}
.scene-svg.running .belt-lines {
  animation: beltSlide 0.5s linear infinite;
}
.scene-svg.running .left-leg {
  animation: legSwingA 0.32s ease-in-out infinite alternate;
  transform-origin: 220px 208px;
}
.scene-svg.running .right-leg {
  animation: legSwingB 0.32s ease-in-out infinite alternate;
  transform-origin: 276px 208px;
}
.scene-svg.planking .plank-body {
  animation: plankShake 0.16s linear infinite alternate;
}
.burst {
  opacity: 0;
  transition: opacity 0.12s ease;
}
.scene-svg.flash .burst,
.scene-svg.running .burst,
.scene-svg.beast .burst { opacity: 1; }
.scene-svg.beast { filter: contrast(1.15); }
@keyframes beltSlide {
  from { transform: translateX(0); }
  to { transform: translateX(-22px); }
}
@keyframes legSwingA {
  from { transform: rotate(14deg); }
  to { transform: rotate(-12deg); }
}
@keyframes legSwingB {
  from { transform: rotate(-12deg); }
  to { transform: rotate(14deg); }
}
@keyframes plankShake {
  from { transform: translateY(0px) rotate(-0.5deg); }
  to { transform: translateY(-1px) rotate(0.5deg); }
}

@media (max-width: 1180px) {
  .hero,
  .results-layout,
  .about-layout,
  .stats-grid,
  .home-sections,
  .machine-grid,
  .machine-preview-grid { grid-template-columns: 1fr 1fr; }
  .workout-body { grid-template-columns: 120px 1fr; }
  .coach-column { grid-column: 1 / -1; grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
  .site-header { flex-wrap: wrap; }
  .nav {
    display: none;
    width: 100%;
    justify-content: flex-start;
    border-top: 2px solid var(--ink);
    padding-top: 10px;
  }
  .nav.open { display: flex; }
  .menu-btn { display: inline-block; }
  .header-actions .button { display: none; }
  .hero,
  .results-layout,
  .about-layout,
  .home-sections,
  .stats-grid,
  .machine-grid,
  .machine-preview-grid { grid-template-columns: 1fr; }
  .hero-art { min-height: auto; }
  .hero-row { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .site-header,
  .site-footer,
  .site-main { width: min(1440px, calc(100% - 18px)); }
  .workout-body { grid-template-columns: 1fr; }
  .stats-column { grid-template-columns: repeat(2, 1fr); }
  .coach-column { grid-template-columns: 1fr; }
  .leader-row,
  .you-row { grid-template-columns: 54px 1fr; }
  .leader-row div:nth-child(3),
  .leader-row div:nth-child(4),
  .you-row strong { grid-column: 2; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .site-footer { flex-direction: column; }
}

/* Coin page */
.x-button {
  width: 42px;
  height: 42px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}
.x-button:hover {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}
.x-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
}
.coin-hero {
  margin-top: 18px;
  padding: 24px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 18px;
  align-items: stretch;
}
.coin-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.coin-ticker {
  margin: 0;
  font-size: clamp(46px, 7vw, 92px);
  line-height: .92;
  letter-spacing: -3px;
  word-break: break-word;
}
.coin-lead {
  max-width: 650px;
  font-size: 20px;
  line-height: 1.55;
  margin: 18px 0 0;
}
.coin-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 22px 0;
}
.coin-actions a { text-decoration: none; }
.ca-box {
  padding: 14px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  max-width: 760px;
}
.ca-box > span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}
.ca-value {
  min-width: 0;
  overflow-wrap: anywhere;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
}
.copy-ca {
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  padding: 9px 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.copy-ca:hover { background: var(--soft); }
.coin-disclaimer {
  max-width: 680px;
  font-size: 13px;
  line-height: 1.55;
  margin: 16px 0 0;
}
.coin-art {
  padding: 20px;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.coin-logo-image {
  width: min(100%, 420px);
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: #fff;
}

.coin-art svg {
  width: 100%;
  height: auto;
  max-height: 430px;
  stroke: var(--ink);
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.coin-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 18px;
}
.coin-card {
  padding: 20px;
}
.coin-card h3 {
  margin: 0 0 10px;
  font-size: 28px;
  overflow-wrap: anywhere;
}
.coin-card p {
  margin: 0;
  line-height: 1.55;
}
.coin-tech-panel code,
.config-preview code {
  overflow-wrap: anywhere;
}
.config-preview {
  padding: 18px;
  background: var(--soft);
}
@media (max-width: 980px) {
  .coin-hero,
  .coin-grid { grid-template-columns: 1fr; }
  .ca-box { grid-template-columns: 1fr; }
  .copy-ca { justify-self: start; }
}


/* Final SVG rendering fix: explicit child strokes and fills. */
.art-svg,
.preview-svg svg,
.card-art svg,
#exerciseArt svg,
.results-art svg,
.profile-mini-art svg,
.about-gallery svg,
.hero-strip svg,

.coin-logo-image {
  width: min(100%, 420px);
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: #fff;
}

.coin-art svg {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  overflow: visible !important;
  fill: none !important;
  stroke: none !important;
  color: #111 !important;
}

.preview-svg svg line,
.preview-svg svg path,
.preview-svg svg rect,
.preview-svg svg circle,
.card-art svg line,
.card-art svg path,
.card-art svg rect,
.card-art svg circle,
#exerciseArt svg line,
#exerciseArt svg path,
#exerciseArt svg rect,
#exerciseArt svg circle,
.results-art svg line,
.results-art svg path,
.results-art svg rect,
.results-art svg circle,
.profile-mini-art svg line,
.profile-mini-art svg path,
.profile-mini-art svg rect,
.profile-mini-art svg circle,
.about-gallery svg line,
.about-gallery svg path,
.about-gallery svg rect,
.about-gallery svg circle,
.hero-strip svg line,
.hero-strip svg path,
.hero-strip svg rect,
.hero-strip svg circle,
.coin-art svg line,
.coin-art svg path,
.coin-art svg rect,
.coin-art svg circle {
  stroke: #111 !important;
  stroke-width: 4 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  fill: none;
  vector-effect: non-scaling-stroke;
}

.preview-svg svg .fill-white,
.card-art svg .fill-white,
#exerciseArt svg .fill-white,
.results-art svg .fill-white,
.profile-mini-art svg .fill-white,
.about-gallery svg .fill-white,
.hero-strip svg .fill-white,
.coin-art svg .fill-white {
  fill: #fff !important;
}

.preview-svg svg .fill-soft,
.card-art svg .fill-soft,
#exerciseArt svg .fill-soft,
.results-art svg .fill-soft,
.profile-mini-art svg .fill-soft,
.about-gallery svg .fill-soft,
.hero-strip svg .fill-soft,
.coin-art svg .fill-soft {
  fill: #f5f5f5 !important;
}

.preview-svg svg text,
.card-art svg text,
#exerciseArt svg text,
.results-art svg text,
.profile-mini-art svg text,
.about-gallery svg text,
.hero-strip svg text,
.coin-art svg text {
  fill: #111 !important;
  stroke: none !important;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
}

.preview-svg,
.card-art,
#exerciseArt,
.results-art,
.profile-mini-art,
.about-gallery .panel,
.hero-strip .preview-svg {
  overflow: hidden;
}

.preview-svg svg,
.card-art svg {
  min-height: 170px;
}

#exerciseArt {
  min-height: 420px;
}

#exerciseArt svg {
  width: min(100%, 820px) !important;
  max-height: 470px;
}

.brand strong,
h1, h2, h3,
.button,
.nav button,
.machine-meta,
.eyebrow {
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}
