@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("/fonts/source-sans-3-latin-wght-normal.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --rm-page: #0c0d10;
  --rm-card: #16181d;
  --rm-field: #111318;
  --rm-line: rgba(255, 255, 255, 0.1);
  --rm-line-strong: rgba(255, 255, 255, 0.18);
  --rm-muted: #9ba1ab;
  --rm-soft: rgba(255, 255, 255, 0.045);
  --rm-band: #111318;
  --rm-contrast: #f1f3f5;
  --rm-shadow: 0 24px 70px -42px rgba(0, 0, 0, 0.9);
  --rm-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

:root[data-theme="light"] {
  color-scheme: light;
  --rm-page: #f5f6f8;
  --rm-card: #ffffff;
  --rm-field: #f6f7f9;
  --rm-line: rgba(12, 13, 16, 0.1);
  --rm-line-strong: rgba(12, 13, 16, 0.18);
  --rm-muted: #5f6877;
  --rm-soft: rgba(12, 13, 16, 0.045);
  --rm-band: #e9ebef;
  --rm-contrast: #111318;
  --rm-shadow: 0 24px 70px -46px rgba(12, 13, 16, 0.32);
}

/* This page carries only the shared nav and footer styles it renders. Loading
   the complete landing-page bundle here blocked first paint for unused rules. */
:root[data-theme="light"] {
  --bg: #f5f6f8;
  --bg2: #eceef1;
  --panel: #ffffff;
  --panel2: #eceef1;
  --bg-elev: #eceef1;
  --card: #ffffff;
  --card-2: #eceef1;
  --line: rgba(12, 13, 16, 0.1);
  --line2: rgba(12, 13, 16, 0.18);
  --border: rgba(12, 13, 16, 0.1);
  --border-soft: rgba(12, 13, 16, 0.08);
  --border-strong: rgba(12, 13, 16, 0.18);
  --text: #17181c;
  --text-muted: #5c6270;
  --dim: #5c6270;
  --text-faint: #656b75;
  --dim2: #656b75;
  --accent: #4d8000;
  --accent-rgb: 77, 128, 0;
  --accent-pressed: #416d00;
  --accent-glow: rgba(77, 128, 0, 0.22);
  --accent-text: #ffffff;
  --ink: #ffffff;
  --good: #1d9e50;
  --bad: #d64545;
  --danger: #d64545;
  --warm: #c97a2b;
  --warm-glow: rgba(201, 122, 43, 0.16);
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 12px 28px -18px rgba(12, 13, 16, 0.28);
  --shadow-cta: 0 10px 24px -10px rgba(12, 13, 16, 0.35);
}

:root[data-theme="light"] body {
  background: radial-gradient(1200px 600px at 50% -10%, rgba(12, 13, 16, 0.04), transparent 60%), var(--bg);
}

#landing {
  --lp-muted: #a7adb7;
  --lp-faint: #949ba6;
  --accent-ink-text: #ccff00;
  padding-top: calc(60px + var(--safe-top));
}

:root[data-theme="light"] #landing {
  --lp-muted: #566072;
  --lp-faint: #656b75;
  --accent-ink-text: #0c0d10;
}

:where(#landing) a {
  color: var(--text);
  text-decoration: none;
}

.lp-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  padding: calc(14px + var(--safe-top)) 0 14px;
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease;
}

.lp-nav.scrolled {
  border-bottom-color: var(--line);
  background: rgba(12, 13, 16, 0.78);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
}

.lp-nav-inner {
  max-width: 1280px;
  display: flex;
  align-items: center;
  gap: 40px;
  margin: 0 auto;
  padding: 0 56px;
}

.lp-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.lp-mono {
  width: 32px;
  height: 32px;
  display: block;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 9px;
  object-fit: cover;
}

.lp-word {
  font: 700 16px var(--font-ui);
  letter-spacing: -0.2px;
  white-space: nowrap;
}

.lp-menu,
.lp-menu-row {
  display: contents;
}

.lp-nav-links {
  display: flex;
  gap: clamp(17px, 2.1vw, 30px);
  margin-left: 20px;
}

.lp-nav-links a {
  color: var(--lp-muted);
  font: 500 14px var(--font-ui);
}

.lp-nav-links a:hover,
.lp-login:hover {
  color: var(--text);
}

.lp-nav-spacer {
  flex: 1;
}

.lp-login {
  color: var(--lp-muted);
  font: 600 14px var(--font-ui);
  white-space: nowrap;
}

.lp-login-drawer,
.lp-menu-close,
.lp-burger {
  display: none;
}

.lp-cta-sm {
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: 700 14px var(--font-ui);
  white-space: nowrap;
}

.lp-cta-sm:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(var(--accent-rgb), 0.08);
}

.lp-theme-toggle,
.lp-burger {
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  flex: none;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: #8a8f98;
}

.lp-theme-toggle {
  display: flex;
}

.lp-theme-toggle svg {
  width: 18px;
  height: 18px;
  display: block;
}

.lp-theme-toggle .i-moon,
.lp-burger .i-close {
  display: none;
}

.lp-theme-toggle .i-sun {
  display: block;
}

.lp-nav.menu-open .lp-burger .i-menu {
  display: none;
}

.lp-nav.menu-open .lp-burger .i-close {
  display: block;
}

:root[data-theme="light"] .lp-nav.scrolled {
  border-bottom-color: var(--line);
  background: rgba(255, 255, 255, 0.82);
}

:root[data-theme="light"] .lp-nav-links a,
:root[data-theme="light"] .lp-login {
  color: #566072;
}

:root[data-theme="light"] .lp-cta-sm,
:root[data-theme="light"] .lp-theme-toggle,
:root[data-theme="light"] .lp-burger {
  border-color: rgba(12, 13, 16, 0.12);
  background: rgba(12, 13, 16, 0.04);
  color: var(--text);
}

:root[data-theme="light"] .lp-theme-toggle {
  color: #566072;
}

:root[data-theme="light"] .lp-theme-toggle .i-sun {
  display: none;
}

:root[data-theme="light"] .lp-theme-toggle .i-moon {
  display: block;
}

.lp-footer {
  max-width: 1280px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
  margin: 0 auto;
  padding: 50px 56px;
  border-top: 1px solid var(--line);
  color: var(--lp-muted);
}

.lp-footer a {
  font: 500 13px var(--font-ui);
}

.lp-footer a:hover {
  color: var(--text);
}

.lp-footer-logo {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  border-radius: 13px;
}

.lp-footer .mono {
  margin-left: auto;
  font: 400 12px var(--font-mono);
}

.lp-flinks,
.lp-social {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}

.lp-social {
  gap: 18px;
}

.lp-social a {
  display: inline-flex;
  color: var(--lp-muted);
}

.lp-social svg {
  width: 18px;
  height: 18px;
  display: block;
}

@media (max-width: 1000px) {
  .lp-burger {
    width: 44px;
    height: 44px;
    display: inline-flex;
  }

  .lp-brand {
    margin-right: auto;
  }

  .lp-nav-inner {
    position: relative;
    z-index: 2;
  }

  .lp-nav.menu-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1;
    background: rgba(6, 7, 9, 0.55);
  }

  .lp-menu {
    width: min(320px, 85vw);
    position: fixed;
    inset: 0 0 0 auto;
    display: flex;
    flex-direction: column;
    padding: calc(74px + var(--safe-top)) 24px 24px;
    overflow-y: auto;
    border-left: 1px solid var(--line);
    background: #0e0f13;
    box-shadow: -28px 0 60px -18px rgba(0, 0, 0, 0.7);
    transform: translateX(102%);
    visibility: hidden;
    transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.3, 1), visibility 0s linear 0.28s;
  }

  .lp-nav.menu-open .lp-menu {
    transform: none;
    visibility: visible;
    transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.3, 1);
  }

  html.lp-drawer-open {
    overflow: hidden;
  }

  .lp-nav-spacer {
    display: none;
  }

  .lp-menu-close {
    width: 44px;
    height: 44px;
    position: absolute;
    top: calc(14px + var(--safe-top));
    right: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: none;
    color: var(--text);
  }

  .lp-menu .lp-cta-sm {
    width: 100%;
    height: auto;
    order: 99;
    margin: 18px 0 0;
    padding: 15px 20px;
    font-size: 15px;
  }

  .lp-nav-links {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-left: 0;
  }

  .lp-nav-links a {
    padding: 15px 2px;
    border-bottom: 1px solid var(--line);
    color: var(--text);
    font: 600 16px var(--font-ui);
  }

  .lp-nav-links .lp-login-drawer {
    display: block;
  }

  .lp-menu-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: auto;
    padding-top: 16px;
  }

  .lp-menu-row .lp-login-original {
    display: none;
  }

  :root[data-theme="light"] .lp-menu {
    border-left-color: var(--line);
    background: #ffffff;
    box-shadow: -28px 0 60px -18px rgba(12, 13, 16, 0.22);
  }
}

@media (max-width: 640px) {
  #landing {
    padding-top: calc(56px + var(--safe-top));
  }

  .lp-nav {
    padding: calc(12px + var(--safe-top)) 0 12px;
  }

  .lp-nav-inner {
    gap: 14px;
    padding: 0 20px;
  }

  .lp-menu {
    padding: calc(70px + var(--safe-top)) 20px 20px;
  }

  .lp-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 20px 44px;
  }

  .lp-footer-logo {
    margin-bottom: 10px;
  }

  .lp-flinks {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .lp-flinks a {
    padding: 16px 2px;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
  }

  .lp-social {
    padding-top: 20px;
  }

  .lp-footer .mono {
    margin: 20px 0 0;
    color: var(--lp-faint);
  }
}

html {
  scroll-padding-top: calc(84px + env(safe-area-inset-top, 0px));
}

body {
  min-width: 0;
}

.rm-page {
  min-height: 100vh;
  overflow-x: clip;
  color: var(--text);
  font-family: "Source Sans 3", system-ui, sans-serif;
  background: var(--rm-page);
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--ink);
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 160ms var(--rm-ease-out);
}

.skip-link:focus-visible {
  transform: translateY(0);
}

.rm-page :is(a, button, summary, select):focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.rm-page :is(button, input, select, summary) {
  touch-action: manipulation;
}

.rm-page [hidden] {
  display: none !important;
}

.rm-hero,
.rm-calculator-shell {
  width: min(100% - 40px, 860px);
  margin-inline: auto;
}

.rm-explainer,
.rm-lifts,
.rm-method,
.rm-faq,
.rm-final-cta {
  width: min(100% - 64px, 1120px);
  margin-inline: auto;
}

.rm-intro {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100vh - 60px - var(--safe-top));
  min-height: calc(100dvh - 60px - var(--safe-top));
}

.rm-intro::before,
.rm-intro::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.rm-intro::before {
  z-index: -2;
  background: url("/img/1rm-calculator/bench-press-hero-f030513e.webp") 62% center / cover no-repeat;
  opacity: 0.46;
}

.rm-intro::after {
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(12, 13, 16, 0.68) 0%, rgba(12, 13, 16, 0.78) 58%, var(--rm-page) 100%),
    linear-gradient(90deg, rgba(12, 13, 16, 0.48), transparent 76%);
}

:root[data-theme="light"] .rm-intro::before {
  opacity: 0.22;
}

:root[data-theme="light"] .rm-intro::after {
  background:
    linear-gradient(180deg, rgba(245, 246, 248, 0.74) 0%, rgba(245, 246, 248, 0.88) 62%, var(--rm-page) 100%),
    linear-gradient(90deg, rgba(245, 246, 248, 0.68), transparent 76%);
}

.rm-hero {
  padding-block: clamp(44px, 6vw, 64px) 28px;
}

.rm-hero-copy {
  max-width: 860px;
}

.rm-hero h1 {
  margin: 0;
  font-size: 64px;
  font-weight: 700;
  letter-spacing: -2.6px;
  line-height: 1.06;
  text-wrap: balance;
}

.rm-hero-copy > p {
  max-width: 860px;
  margin: 26px 0 0;
  color: var(--rm-muted);
  font-size: 19px;
  line-height: 1.55;
  text-wrap: pretty;
}

.rm-calculator-shell {
  border: 1px solid var(--rm-line-strong);
  border-radius: 24px;
  background: color-mix(in srgb, var(--rm-card) 94%, transparent);
  box-shadow: var(--rm-shadow);
  -webkit-backdrop-filter: blur(24px) saturate(1.1);
  backdrop-filter: blur(24px) saturate(1.1);
  scroll-margin-top: 92px;
}

.rm-form {
  padding: clamp(24px, 5vw, 42px);
}

.rm-result-heading h2,
.rm-copy-heading h2,
.rm-final-cta h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 720;
  letter-spacing: -0.6px;
  line-height: 1.1;
  text-wrap: balance;
}

.rm-result-heading p,
.rm-copy-heading > p,
.rm-final-cta p {
  margin: 8px 0 0;
  color: var(--rm-muted);
  font-size: 16px;
  line-height: 1.5;
  text-wrap: pretty;
}

.rm-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.rm-field {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid var(--rm-line-strong);
  border-radius: 15px;
  background: var(--rm-field);
  overflow: visible;
  transition: border-color 160ms var(--rm-ease-out), background-color 160ms var(--rm-ease-out);
}

.rm-weight-field {
  position: relative;
}

.rm-field:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.18);
}

.rm-field > span,
.rm-field-label {
  color: var(--rm-muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}

.rm-field input {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  border: 0;
  border-radius: 9px;
  outline: 0;
  padding: 0;
  background: transparent;
  color: var(--text);
  font: 700 27px/1 "Source Sans 3", system-ui, sans-serif;
  letter-spacing: -0.5px;
  font-variant-numeric: tabular-nums;
}

.rm-field input:focus {
  outline: 0;
}

.rm-weight-input-row {
  display: flex;
  align-items: center;
  min-height: 48px;
  margin-inline: -16px;
  padding-inline: 16px 72px;
}

.rm-weight-input-row input {
  flex: 1;
  padding-inline: 0 12px;
}

.rm-unit-control {
  position: absolute;
  inset: 0 0 0 auto;
  width: 72px;
  border-left: 1px solid var(--rm-line-strong);
  background: var(--rm-soft);
  border-radius: 0 14px 14px 0;
  z-index: 2;
}

.rm-unit-native {
  display: none;
}

.rm-unit-trigger {
  width: 100%;
  height: 100%;
  padding: 0 30px 0 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font: 700 16px/1 "Source Sans 3", system-ui, sans-serif;
  text-align: left;
  cursor: pointer;
}

.rm-unit-chevron {
  position: absolute;
  top: 50%;
  right: 14px;
  color: var(--text);
  pointer-events: none;
  transform: translateY(-50%);
}

.rm-unit-trigger:focus {
  outline: 0;
}

.rm-unit-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 8px;
  width: 116px;
  padding: 6px;
  border: 1px solid var(--rm-line-strong);
  border-radius: 12px;
  background: var(--rm-card);
  box-shadow: var(--rm-shadow);
  z-index: 10;
}

.rm-unit-menu[hidden] {
  display: none;
}

.rm-unit-option {
  width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font: 600 16px/1 "Source Sans 3", system-ui, sans-serif;
  text-align: left;
  cursor: pointer;
}

.rm-unit-option:hover,
.rm-unit-option.is-selected {
  background: var(--rm-soft);
}

.rm-unit-check {
  width: 14px;
  color: var(--accent);
  opacity: 0;
}

.rm-unit-option.is-selected .rm-unit-check {
  opacity: 1;
}

.rm-field input::placeholder {
  color: var(--rm-muted);
  opacity: 0.48;
}

.rm-field-help-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 10px;
}

.rm-field-help {
  margin: 0;
  color: var(--rm-muted);
  font-size: 13px;
  line-height: 1.4;
  white-space: nowrap;
}

.rm-error {
  min-height: 0;
  margin: 12px 0 0;
  color: var(--bad);
  font-size: 13px;
  line-height: 1.4;
}

.rm-error:empty {
  display: none;
}

.rm-calculate,
.rm-final-cta > a {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 14px;
  background: var(--accent);
  color: var(--ink);
  font: 700 16px/1 "Source Sans 3", system-ui, sans-serif;
  text-decoration: none;
  box-shadow: var(--shadow-cta);
  touch-action: manipulation;
  transition: background-color 160ms var(--rm-ease-out), transform 120ms var(--rm-ease-out);
}

.rm-calculate {
  border-radius: 999px;
}

.rm-app-cta {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--rm-line-strong);
  border-radius: 14px;
  background: transparent;
  color: var(--text);
  font: 700 16px/1 "Source Sans 3", system-ui, sans-serif;
  text-decoration: none;
  box-shadow: none;
  touch-action: manipulation;
  transition: background-color 160ms var(--rm-ease-out), border-color 160ms var(--rm-ease-out), transform 120ms var(--rm-ease-out);
}

.rm-calculate {
  width: 100%;
  margin-top: 20px;
}

.rm-calculate:hover,
.rm-final-cta > a:hover {
  background: var(--accent-pressed);
}

.rm-app-cta:hover {
  border-color: var(--control-outline);
  background: var(--rm-soft);
}

.rm-calculate:active,
.rm-app-cta:active,
.rm-final-cta > a:active {
  transform: scale(0.97);
}

.rm-results {
  padding: clamp(24px, 5vw, 42px);
  border-top: 1px solid var(--rm-line);
  background: var(--rm-soft);
  scroll-margin-top: calc(84px + env(safe-area-inset-top, 0px));
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 240ms var(--rm-ease-out), transform 240ms var(--rm-ease-out);
}

.rm-results.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.rm-result-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.1;
  text-wrap: balance;
}

.rm-result-heading h2 strong {
  color: var(--accent);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  transition: opacity 140ms var(--rm-ease-out), transform 140ms var(--rm-ease-out);
}

.rm-result-heading h2 strong.is-changing {
  opacity: 0.35;
  transform: translateY(4px) scale(0.98);
}

.rm-result-heading p {
  margin: 10px 0 0;
  color: var(--rm-muted);
  font-size: 14px;
  line-height: 1.5;
}

.rm-result-table-wrap {
  margin-top: 24px;
  overflow-x: auto;
  border: 1px solid var(--rm-line-strong);
  border-radius: 15px;
}

.rm-result-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 14px;
}

.rm-result-table th,
.rm-result-table td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--rm-line);
}

.rm-result-table th {
  color: var(--text);
  font-weight: 700;
  line-height: 1.25;
}

.rm-result-table td {
  color: var(--rm-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.rm-result-table tbody tr:nth-child(even) {
  background: var(--rm-soft);
}

.rm-result-table tbody tr:first-child {
  background: rgba(var(--accent-rgb), 0.12);
}

.rm-result-table tbody tr:first-child td {
  color: var(--text);
  font-weight: 700;
}

.rm-result-table tbody tr:last-child td {
  border-bottom: 0;
}

.rm-result-note {
  margin: 14px 0 0;
  color: var(--rm-muted);
  font-size: 14px;
  line-height: 1.5;
}

.rm-app-cta {
  margin-top: 22px;
  padding: 0 20px;
}

.rm-app-cta span {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.rm-app-cta small {
  font-size: 9px;
  letter-spacing: 1.5px;
  opacity: 0.75;
}

.rm-app-cta strong {
  font-size: 16px;
}

.rm-explainer,
.rm-lifts,
.rm-method,
.rm-faq {
  position: relative;
  padding-block: clamp(88px, 10vw, 144px);
}

.rm-copy-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1fr);
  align-items: end;
  gap: clamp(32px, 7vw, 104px);
}

.rm-intro + .rm-explainer {
  padding-top: clamp(64px, 8vw, 104px);
}

.rm-copy-heading h2,
.rm-final-cta h2 {
  font-size: 44px;
  letter-spacing: -1.5px;
  line-height: 1.1;
}

.rm-copy-heading > p,
.rm-final-cta p {
  max-width: 680px;
  margin-top: 0;
  font-size: 17px;
}

.rm-explainer-grid {
  display: grid;
  margin-top: clamp(48px, 7vw, 80px);
  border-top: 1px solid var(--rm-line-strong);
}

.rm-explainer-grid article {
  display: grid;
  grid-template-columns: 104px minmax(220px, 0.7fr) minmax(0, 1.2fr);
  align-items: start;
  gap: 24px;
  padding-block: 28px;
  border-bottom: 1px solid var(--rm-line-strong);
}

.rm-explainer-grid article > span {
  color: var(--accent);
  font-size: 42px;
  font-weight: 750;
  letter-spacing: -0.06em;
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
}

.rm-explainer-grid h3 {
  margin: 0;
  font-size: clamp(22px, 2.5vw, 30px);
  letter-spacing: -0.04em;
  line-height: 1;
  text-wrap: balance;
}

.rm-explainer-grid p {
  max-width: 620px;
  margin: 0;
  color: var(--rm-muted);
  font-size: 16px;
  line-height: 1.6;
}

.rm-lifts {
  isolation: isolate;
}

.rm-lifts::before,
.rm-faq::before {
  content: "";
  position: absolute;
  inset: 0 calc(50% - 50vw);
  z-index: -1;
  background: var(--rm-band);
}

.rm-lifts::after {
  content: "";
  position: absolute;
  top: 32px;
  right: calc(50% - 46vw);
  z-index: -1;
  width: min(34vw, 460px);
  aspect-ratio: 1;
  border: 1px solid rgba(var(--accent-rgb), 0.18);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgba(var(--accent-rgb), 0.035), 0 0 0 68px rgba(var(--accent-rgb), 0.025);
  opacity: 0.7;
}

.rm-lift-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: minmax(150px, auto);
  gap: 16px;
  margin-top: clamp(48px, 7vw, 80px);
}

.rm-lift-grid article {
  position: relative;
  min-width: 0;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--rm-line);
  background: color-mix(in srgb, var(--rm-card) 88%, transparent);
  overflow: hidden;
}

.rm-lift-grid article::before {
  position: absolute;
  top: 20px;
  right: 24px;
  color: var(--rm-muted);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.16em;
}

.rm-lift-grid article:nth-child(1) {
  grid-column: span 7;
  grid-row: span 2;
  min-height: 372px;
  background: linear-gradient(145deg, rgba(var(--accent-rgb), 0.15), transparent 58%), var(--rm-card);
}

.rm-lift-grid article:nth-child(1)::before { content: "01 / BENCH"; }
.rm-lift-grid article:nth-child(2) { grid-column: span 5; }
.rm-lift-grid article:nth-child(2)::before { content: "02 / SQUAT"; }
.rm-lift-grid article:nth-child(3) { grid-column: span 5; }
.rm-lift-grid article:nth-child(3)::before { content: "03 / DEADLIFT"; }
.rm-lift-grid article:nth-child(4) { grid-column: 1 / -1; }
.rm-lift-grid article:nth-child(4)::before { content: "04 / PULL-UP"; }

.rm-lift-grid h3 {
  max-width: 430px;
  margin: 0;
  font-size: clamp(24px, 3vw, 36px);
  letter-spacing: -0.045em;
  line-height: 1.02;
  text-wrap: balance;
}

.rm-lift-grid p {
  max-width: 520px;
  margin: 12px 0 0;
  color: var(--rm-muted);
  font-size: 15px;
  line-height: 1.55;
}

.rm-method .rm-copy-heading {
  grid-template-columns: minmax(0, 0.72fr) minmax(480px, 1.25fr);
}

.rm-method-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(32px, 6vw, 84px);
  margin-top: clamp(48px, 7vw, 80px);
}

.rm-formula-display {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(28px, 5vw, 52px);
  background: var(--accent);
  color: var(--ink);
}

.rm-formula-display > span,
.rm-method-grid article > span {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 1.5px;
}

.rm-formula-display > span {
  color: color-mix(in srgb, var(--ink) 70%, transparent);
}

.rm-formula-display strong {
  display: block;
  margin-top: auto;
  font-size: clamp(88px, 12vw, 156px);
  font-weight: 760;
  letter-spacing: -0.09em;
  line-height: 0.76;
}

.rm-formula-display code {
  margin-top: 44px;
  font: 700 clamp(18px, 2.4vw, 28px)/1.15 "Source Sans 3", system-ui, sans-serif;
  letter-spacing: -0.03em;
}

.rm-method-grid {
  display: grid;
  align-content: start;
  border-top: 1px solid var(--rm-line-strong);
}

.rm-method-grid article {
  padding-block: 32px;
  border-bottom: 1px solid var(--rm-line-strong);
}

.rm-method-grid article > span {
  display: block;
  margin-bottom: 30px;
  color: var(--rm-muted);
}

.rm-method-grid h3 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.045em;
  line-height: 1.05;
  text-wrap: balance;
}

.rm-method-grid p {
  max-width: 560px;
  margin: 12px 0 0;
  color: var(--rm-muted);
  font-size: 16px;
  line-height: 1.6;
}

.rm-copy-heading code {
  padding: 2px 6px;
  border: 1px solid var(--rm-line-strong);
  border-radius: 6px;
  color: var(--text);
  background: var(--rm-soft);
  font: 600 0.95em/1.2 "Source Sans 3", system-ui, sans-serif;
  white-space: nowrap;
}

.rm-faq {
  isolation: isolate;
  display: block;
}

.rm-faq .rm-copy-heading {
  display: block;
}

.rm-faq .rm-copy-heading h2 {
  position: static;
}

.rm-faq-list {
  margin-top: 40px;
  border-top: 1px solid var(--rm-line-strong);
}

.rm-faq details {
  border-bottom: 1px solid var(--rm-line-strong);
}

.rm-faq summary {
  position: relative;
  min-height: 72px;
  display: flex;
  align-items: center;
  padding: 22px 60px 22px 0;
  color: var(--text);
  cursor: pointer;
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 700;
  line-height: 1.25;
  list-style: none;
}

.rm-faq summary::-webkit-details-marker {
  display: none;
}

.rm-faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--rm-line-strong);
  border-radius: 50%;
  color: var(--rm-muted);
  transform: translateY(-50%);
}

.rm-faq details[open] summary::after {
  content: "-";
}

.rm-faq details p {
  max-width: 720px;
  margin: -4px 0 24px;
  color: var(--rm-muted);
  font-size: 16px;
  line-height: 1.6;
}

.rm-final-cta {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 36px;
  width: 100%;
  margin-block: 0;
  padding-inline: max(32px, calc((100vw - 1120px) / 2));
  padding-block: clamp(72px, 9vw, 112px);
  background: var(--accent);
  overflow: hidden;
}

.rm-final-cta::before {
  content: "IRONI";
  position: absolute;
  inset: 0;
  z-index: -1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: rgba(0, 0, 0, 0.07);
  font-size: min(27vw, 380px);
  font-weight: 800;
  letter-spacing: -0.09em;
  line-height: 0.7;
  white-space: nowrap;
  overflow: hidden;
}

.rm-final-cta h2,
.rm-final-cta p {
  color: var(--ink);
}

.rm-final-cta p {
  opacity: 0.72;
}

.rm-final-cta > a {
  min-width: 174px;
  padding-inline: 22px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  background: var(--ink);
  color: var(--accent);
  box-shadow: none;
}

.rm-final-cta > a:hover {
  background: color-mix(in srgb, var(--ink) 88%, white);
}

#lp-lang:empty {
  display: none;
}

@media (min-width: 701px) {
  .rm-hero h1 {
    white-space: nowrap;
  }
}

@media (max-width: 1000px) {
  .rm-hero h1 {
    font-size: 50px;
    letter-spacing: -2px;
  }

  .rm-hero-copy > p {
    font-size: 18px;
  }

  .rm-copy-heading h2,
  .rm-final-cta h2 {
    font-size: 40px;
    letter-spacing: -1.4px;
  }
}

@media (max-width: 900px) {
  .rm-copy-heading,
  .rm-method .rm-copy-heading {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 20px;
  }

  .rm-method-layout {
    gap: 32px;
  }

  .rm-lift-grid article:nth-child(1) {
    grid-column: span 7;
  }

}

@media (max-width: 700px) {
  .rm-hero,
  .rm-calculator-shell,
  .rm-explainer,
  .rm-lifts,
  .rm-method,
  .rm-faq,
  .rm-final-cta {
    width: min(100% - 32px, 860px);
  }

  .rm-hero {
    padding-block: 32px 24px;
  }

  .rm-intro {
    min-height: calc(100vh - 56px - var(--safe-top));
    min-height: calc(100dvh - 56px - var(--safe-top));
  }

  .rm-intro::before {
    background-position: 68% center;
    opacity: 0.3;
  }

  .rm-intro::after {
    background: linear-gradient(180deg, rgba(12, 13, 16, 0.7) 0%, rgba(12, 13, 16, 0.84) 68%, var(--rm-page) 100%);
  }

  :root[data-theme="light"] .rm-intro::before {
    opacity: 0.16;
  }

  :root[data-theme="light"] .rm-intro::after {
    background: linear-gradient(180deg, rgba(245, 246, 248, 0.8) 0%, rgba(245, 246, 248, 0.92) 68%, var(--rm-page) 100%);
  }

  .rm-calculator-shell {
    width: 100%;
    margin-inline: 0;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .rm-hero h1 {
    font-size: 50px;
  }

  .rm-hero-copy > p {
    margin-top: 18px;
    font-size: 18px;
  }

  .rm-field-grid {
    grid-template-columns: 1fr;
  }

  .rm-field-help-row {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2px 16px;
  }

  .rm-result-heading h2 {
    font-size: 28px;
  }

  .rm-result-table {
    font-size: 13px;
  }

  .rm-result-table th,
  .rm-result-table td {
    padding: 12px 10px;
  }

  .rm-result-table th {
    font-size: 10px;
  }

  .rm-explainer-grid {
    margin-top: 36px;
  }

  .rm-explainer-grid article {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 16px;
    padding-block: 24px;
  }

  .rm-explainer-grid h3 {
    margin-top: 0;
  }

  .rm-explainer-grid p {
    grid-column: 2;
  }

  .rm-lift-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    margin-top: 36px;
  }

  .rm-lift-grid article,
  .rm-lift-grid article:nth-child(1),
  .rm-lift-grid article:nth-child(2),
  .rm-lift-grid article:nth-child(3),
  .rm-lift-grid article:nth-child(4) {
    grid-column: 1;
    grid-row: auto;
    min-height: 220px;
  }

  .rm-lift-grid article:nth-child(1) {
    min-height: 300px;
  }

  .rm-lifts::after {
    right: -72px;
    width: 280px;
  }

  .rm-method-layout {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 36px;
  }

  .rm-formula-display {
    min-height: 320px;
  }

  .rm-final-cta {
    width: 100%;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 28px;
    padding-inline: 16px;
  }

  .rm-final-cta::before {
    justify-content: flex-end;
    font-size: 48vw;
  }
}

@media (max-width: 640px) {
  .rm-hero h1 {
    font-size: 42px;
    letter-spacing: -1.5px;
  }

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

  .rm-copy-heading h2,
  .rm-final-cta h2 {
    font-size: 32px;
    letter-spacing: -1px;
  }

  .rm-faq summary {
    font-size: 16px;
    padding-left: 0;
  }

  .rm-faq details p {
    margin-left: 0;
  }
}

@media (max-width: 420px) {
  .rm-field input {
    font-size: 27px;
  }

  .rm-form,
  .rm-results {
    padding: 22px 18px;
  }

  .rm-result-table th,
  .rm-result-table td {
    padding-inline: 8px;
  }

}

@media (max-width: 700px) {
  .rm-intro {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .rm-hero {
    padding-block: 24px 20px;
  }

  .rm-hero h1 {
    font-size: 40px;
    letter-spacing: -1.3px;
    line-height: 1;
  }

  .rm-hero-copy > p {
    margin-top: 16px;
    font-size: 16px;
    line-height: 1.5;
  }

  .rm-calculator-shell {
    border: 0;
    background: transparent;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .rm-form {
    padding: 20px 20px 28px;
  }

  .rm-field-grid {
    gap: 12px;
    margin-top: 0;
  }

  .rm-field {
    padding: 12px 16px;
    border-radius: 18px;
    background: var(--rm-card);
  }

  .rm-unit-control {
    width: 80px;
    border-radius: 0 17px 17px 0;
  }

  .rm-weight-input-row {
    padding-inline-right: 80px;
  }

  .rm-calculate {
    min-height: 56px;
    margin-top: 20px;
  }

  .rm-field-help-row {
    gap: 4px 16px;
    margin-top: 12px;
  }
}

@media (max-width: 360px) {
  .rm-form {
    padding-inline: 16px;
  }

  .rm-unit-control {
    width: 72px;
    border-radius: 0 17px 17px 0;
  }

  .rm-weight-input-row {
    padding-inline-right: 72px;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .rm-calculator-shell {
    background: var(--rm-card);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rm-page *,
  .rm-page *::before,
  .rm-page *::after {
    scroll-behavior: auto !important;
    animation-duration: 150ms !important;
    animation-iteration-count: 1 !important;
  }

  .rm-results {
    transform: none;
    transition: opacity 150ms ease-out;
  }

  .rm-result-heading h2 strong.is-changing {
    transform: none;
  }
}
