:root {
  --receipt-canvas: #050505;
  --receipt-surface: #0d0d0d;
  --receipt-surface-raised: #151515;
  --receipt-line: rgba(255, 255, 255, 0.1);
  --receipt-line-strong: rgba(255, 255, 255, 0.18);
  --receipt-text: #f5f5f5;
  --receipt-muted: #a1a1aa;
  --receipt-green: #4ade80;
  --receipt-green-light: #86efac;
  --receipt-orange: #f97316;
  --receipt-font-display: "Outfit", -apple-system, BlinkMacSystemFont, sans-serif;
  --receipt-font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: var(--receipt-canvas);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% 4%, rgba(74, 222, 128, 0.14), transparent 30rem),
    radial-gradient(circle at 92% 30%, rgba(249, 115, 22, 0.065), transparent 30rem),
    var(--receipt-canvas);
  color: var(--receipt-text);
  font-family: var(--receipt-font-body);
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 64px 64px;
  content: "";
  pointer-events: none;
  mask-image: linear-gradient(to bottom, #000, transparent 84%);
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.receipt-shell {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.receipt-hero {
  min-height: 720px;
  padding: 150px 0 92px;
  display: grid;
  align-items: center;
}

.receipt-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(290px, 0.75fr);
  gap: clamp(48px, 9vw, 112px);
  align-items: end;
}

.receipt-kicker,
.receipt-section-kicker {
  color: var(--receipt-green-light);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.receipt-kicker {
  width: fit-content;
  margin-bottom: 24px;
  padding: 10px 14px;
  border: 1px solid rgba(74, 222, 128, 0.24);
  border-radius: 999px;
  background: rgba(74, 222, 128, 0.08);
}

.receipt-hero h1 {
  max-width: 820px;
  margin: 0;
  font-family: var(--receipt-font-display);
  font-size: clamp(54px, 7.2vw, 94px);
  font-weight: 850;
  letter-spacing: -0.058em;
  line-height: 0.93;
}

.receipt-hero h1 span {
  display: block;
  color: var(--receipt-green);
}

.receipt-hero-copy > p {
  max-width: 700px;
  margin: 30px 0 0;
  color: #c9c9cf;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.62;
}

.receipt-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.receipt-button {
  min-height: 54px;
  padding: 15px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 850;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.receipt-button-primary {
  border: 1px solid var(--receipt-green-light);
  background: linear-gradient(135deg, var(--receipt-green-light), var(--receipt-green));
  color: #041008;
  box-shadow: 0 16px 46px rgba(74, 222, 128, 0.2);
}

.receipt-button-secondary {
  border: 1px solid var(--receipt-line-strong);
  background: rgba(255, 255, 255, 0.035);
  color: #efeff1;
}

.receipt-button:hover,
.receipt-button:focus-visible {
  transform: translateY(-2px);
}

.receipt-button-primary:hover,
.receipt-button-primary:focus-visible {
  box-shadow: 0 20px 54px rgba(74, 222, 128, 0.3);
}

.receipt-button-secondary:hover,
.receipt-button-secondary:focus-visible {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.065);
}

.receipt-button:focus-visible,
input:focus-visible,
.receipt-footer a:focus-visible {
  outline: 2px solid var(--receipt-green-light);
  outline-offset: 4px;
}

.receipt-trust {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: #8f8f98;
  font-size: 13px;
  font-weight: 650;
}

.receipt-trust span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.receipt-trust span::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--receipt-green);
  content: "";
  box-shadow: 0 0 12px rgba(74, 222, 128, 0.7);
}

.receipt-manifesto {
  min-height: 310px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--receipt-line);
  border-radius: 26px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012)),
    #0a0a0a;
}

.receipt-manifesto-number {
  color: var(--receipt-green);
  font-family: var(--receipt-font-display);
  font-size: 13px;
  font-weight: 850;
}

.receipt-manifesto::after {
  position: absolute;
  top: -58px;
  right: -24px;
  color: rgba(255, 255, 255, 0.025);
  content: "01";
  font-family: var(--receipt-font-display);
  font-size: 220px;
  font-weight: 900;
  letter-spacing: -0.1em;
}

.receipt-manifesto div {
  position: relative;
  z-index: 1;
}

.receipt-manifesto small {
  display: block;
  margin-bottom: 12px;
  color: #74747d;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.16em;
}

.receipt-manifesto strong {
  display: block;
  font-family: var(--receipt-font-display);
  font-size: 29px;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.receipt-manifesto p {
  margin: 14px 0 0;
  color: var(--receipt-muted);
  font-size: 14px;
  line-height: 1.6;
}

.receipt-maker-section {
  padding: 104px 0 112px;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
}

.receipt-section-head {
  margin-bottom: 42px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 42px;
}

.receipt-section-head h2,
.receipt-close h2 {
  max-width: 760px;
  margin: 12px 0 0;
  font-family: var(--receipt-font-display);
  font-size: clamp(40px, 5.4vw, 66px);
  letter-spacing: -0.05em;
  line-height: 0.98;
}

.receipt-section-head > p {
  max-width: 420px;
  margin: 0;
  color: var(--receipt-muted);
  font-size: 14px;
  line-height: 1.7;
}

.receipt-workspace {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: 20px;
  align-items: start;
}

.receipt-form {
  padding: 26px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  border: 1px solid var(--receipt-line);
  border-radius: 24px;
  background: rgba(13, 13, 13, 0.88);
}

.receipt-field-wide {
  grid-column: 1 / -1;
}

.receipt-field label,
.receipt-field legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
  color: #b9b9c0;
  font-size: 12px;
  font-weight: 780;
}

.receipt-field legend {
  width: 100%;
}

.receipt-field input[type="text"],
.receipt-field input[type="number"] {
  width: 100%;
  height: 52px;
  padding: 0 15px;
  border: 1px solid var(--receipt-line);
  border-radius: 13px;
  background: #181818;
  color: var(--receipt-text);
  font-size: 17px;
  font-weight: 720;
  transition: border-color 160ms ease, background 160ms ease;
}

.receipt-field input:hover,
.receipt-field input:focus {
  border-color: rgba(134, 239, 172, 0.42);
  background: #1b1b1b;
}

.receipt-unit-field {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.receipt-segmented {
  padding: 4px;
  display: grid;
  grid-template-columns: 0.75fr 0.75fr 1.5fr;
  gap: 4px;
  border: 1px solid var(--receipt-line);
  border-radius: 14px;
  background: #101010;
}

.receipt-segmented label {
  margin: 0;
  cursor: pointer;
}

.receipt-segmented input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.receipt-segmented span {
  min-height: 42px;
  padding: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #888891;
  font-size: 12px;
  font-weight: 800;
  transition: background 150ms ease, color 150ms ease;
}

.receipt-segmented input:checked + span {
  background: rgba(74, 222, 128, 0.13);
  color: var(--receipt-green-light);
  box-shadow: inset 0 0 0 1px rgba(74, 222, 128, 0.2);
}

.receipt-segmented input:focus-visible + span {
  outline: 2px solid var(--receipt-green-light);
  outline-offset: 2px;
}

.receipt-field-group {
  padding: 17px;
  border: 1px solid var(--receipt-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.018);
}

.receipt-target-group {
  border-color: rgba(74, 222, 128, 0.24);
  background: rgba(74, 222, 128, 0.04);
}

.receipt-group-title {
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.receipt-group-title span {
  font-family: var(--receipt-font-display);
  font-size: 17px;
  font-weight: 780;
}

.receipt-group-title small {
  color: #777780;
  font-size: 10px;
  font-weight: 700;
}

.receipt-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.receipt-field input[type="range"] {
  width: 100%;
  height: 18px;
  margin: 8px 0 0;
  accent-color: var(--receipt-green);
}

#workoutOutput {
  color: var(--receipt-green-light);
  font-weight: 850;
}

.receipt-range-labels {
  display: flex;
  justify-content: space-between;
  color: #666670;
  font-size: 10px;
  font-weight: 750;
}

.receipt-form-actions {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 10px;
}

.receipt-status {
  min-height: 20px;
  margin: -3px 0 0;
  color: #85858e;
  font-size: 11px;
  line-height: 1.5;
}

.receipt-preview-wrap {
  position: sticky;
  top: 96px;
  padding: 20px;
  border: 1px solid var(--receipt-line);
  border-radius: 24px;
  background: rgba(13, 13, 13, 0.88);
}

.receipt-preview-label {
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #8a8a93;
  font-size: 10px;
  font-weight: 820;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.receipt-preview-label small {
  color: #5f5f68;
  font-size: inherit;
}

.proof-card {
  aspect-ratio: 4 / 5;
  padding: clamp(22px, 4.2vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(134, 239, 172, 0.2);
  border-radius: 20px;
  background:
    radial-gradient(circle at 100% 0, rgba(74, 222, 128, 0.19), transparent 35%),
    linear-gradient(155deg, #111511, #050605 64%);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.44);
}

.proof-card::after {
  position: absolute;
  right: -7%;
  bottom: -20%;
  color: rgba(255, 255, 255, 0.028);
  content: "07";
  font-family: var(--receipt-font-display);
  font-size: clamp(190px, 38vw, 420px);
  font-weight: 900;
  letter-spacing: -0.12em;
  line-height: 1;
  pointer-events: none;
}

.proof-card-grid {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
}

.proof-card-top,
.proof-card-copy,
.proof-card-bottom {
  position: relative;
  z-index: 1;
}

.proof-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.proof-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--receipt-font-display);
  font-size: clamp(14px, 2vw, 19px);
  letter-spacing: 0.08em;
}

.proof-brand img {
  width: clamp(27px, 4vw, 38px);
  height: clamp(27px, 4vw, 38px);
  border-radius: 9px;
}

.proof-series {
  color: #7d837e;
  font-size: clamp(8px, 1.2vw, 11px);
  font-weight: 850;
  letter-spacing: 0.12em;
}

.proof-series b {
  color: var(--receipt-green-light);
}

.proof-eyebrow {
  color: var(--receipt-green-light);
  font-size: clamp(9px, 1.4vw, 12px);
  font-weight: 850;
  letter-spacing: 0.15em;
}

.proof-card-copy h3 {
  max-width: 90%;
  margin: 12px 0 clamp(24px, 5vw, 46px);
  overflow-wrap: anywhere;
  font-family: var(--receipt-font-display);
  font-size: clamp(38px, 7vw, 78px);
  letter-spacing: -0.055em;
  line-height: 0.94;
}

.proof-results {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: clamp(10px, 2vw, 20px);
  align-items: center;
}

.proof-result {
  min-width: 0;
  padding: clamp(14px, 2.6vw, 24px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
}

.proof-result-target {
  border-color: rgba(74, 222, 128, 0.28);
  background: rgba(74, 222, 128, 0.08);
}

.proof-result span {
  display: block;
  margin-bottom: 8px;
  color: #777d78;
  font-size: clamp(7px, 1.1vw, 10px);
  font-weight: 850;
  letter-spacing: 0.14em;
}

.proof-result strong {
  display: block;
  overflow-wrap: anywhere;
  font-family: var(--receipt-font-display);
  font-size: clamp(16px, 3.2vw, 30px);
  letter-spacing: -0.025em;
  line-height: 1.04;
}

.proof-result-target strong {
  color: var(--receipt-green-light);
}

.proof-arrow {
  color: var(--receipt-green);
  font-size: clamp(19px, 3vw, 30px);
}

.proof-card-bottom {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.proof-card-bottom strong {
  color: var(--receipt-green-light);
  font-family: var(--receipt-font-display);
  font-size: clamp(12px, 1.8vw, 17px);
  letter-spacing: 0.08em;
}

.proof-card-bottom span {
  color: #6f756f;
  font-size: clamp(8px, 1.1vw, 10px);
  font-weight: 750;
}

.receipt-close {
  padding: 100px 0 112px;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
}

.receipt-close-card {
  padding: clamp(34px, 6vw, 68px);
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 48px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(74, 222, 128, 0.23);
  border-radius: 30px;
  background:
    radial-gradient(circle at 88% 0, rgba(74, 222, 128, 0.16), transparent 25rem),
    #0b0b0b;
}

.receipt-close-card > div {
  position: relative;
  z-index: 1;
}

.receipt-close h2 {
  max-width: 680px;
}

.receipt-close p {
  max-width: 650px;
  margin: 20px 0 0;
  color: #b5b5bd;
  font-size: 17px;
  line-height: 1.7;
}

.receipt-close .receipt-button {
  flex: 0 0 auto;
  position: relative;
  z-index: 1;
}

.receipt-footer {
  padding: 30px 0 42px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.receipt-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #777780;
  font-size: 12px;
}

.receipt-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.receipt-footer a {
  color: #a6a6ae;
  text-decoration: none;
}

.receipt-footer a:hover {
  color: #fff;
}

@media (max-width: 980px) {
  .receipt-hero-grid {
    grid-template-columns: 1fr;
  }

  .receipt-manifesto {
    min-height: 230px;
  }

  .receipt-workspace {
    grid-template-columns: 1fr;
  }

  .receipt-preview-wrap {
    position: static;
  }

  .receipt-section-head,
  .receipt-close-card {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .receipt-shell {
    width: min(100% - 28px, 1180px);
  }

  .receipt-hero {
    min-height: auto;
    padding: 118px 0 72px;
  }

  .receipt-hero h1 {
    font-size: clamp(46px, 14vw, 68px);
  }

  .receipt-hero-copy > p {
    font-size: 17px;
  }

  .receipt-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .receipt-button {
    width: 100%;
  }

  .receipt-trust {
    display: grid;
  }

  .receipt-maker-section,
  .receipt-close {
    padding: 76px 0 84px;
  }

  .receipt-section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .receipt-form {
    padding: 18px;
  }

  .receipt-group-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .receipt-form-actions {
    grid-template-columns: 1fr;
  }

  .receipt-preview-wrap {
    padding: 12px;
  }

  .proof-card {
    padding: 20px;
    border-radius: 16px;
  }

  .proof-results {
    grid-template-columns: 1fr;
  }

  .proof-arrow {
    justify-self: center;
    transform: rotate(90deg);
  }

  .proof-card-bottom span {
    display: none;
  }

  .receipt-close-card {
    gap: 30px;
  }

  .receipt-footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .receipt-pair {
    grid-template-columns: 1fr;
  }

  .receipt-segmented {
    grid-template-columns: 1fr 1fr;
  }

  .receipt-segmented label:last-child {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .receipt-button {
    transition: none;
  }
}
