:root {
  color-scheme: light;
  --ink: #373d19;
  --ink-soft: #656c4e;
  --muted: #949b83;
  --line: #c2cab8;
  --paper: #ffffff;
  --wash: #f0f9ed;
  --deep: #373d19;
  --deep-2: #656c4e;
  --green: #758a2f;
  --green-dark: #373d19;
  --amber: #a4ae56;
  --coral: #8c230b;
  --sage: #98beb2;
  --shadow: 0 24px 80px rgba(55, 61, 25, 0.16);
  --radius: 8px;
  --max: 1180px;
  --header-bg: rgba(255, 255, 255, 0.94);
  --header-shadow: 0 10px 30px rgba(55, 61, 25, 0.08);
  --menu-bg: rgba(255, 255, 255, 0.98);
  --hero-overlay-main: rgba(55, 61, 25, 0.92);
  --hero-overlay-mid: rgba(55, 61, 25, 0.74);
  --hero-overlay-light: rgba(55, 61, 25, 0.22);
  --hero-overlay-bottom: rgba(55, 61, 25, 0.9);
  --proof-bg: rgba(55, 61, 25, 0.62);
  --discount-bg: #f9e2c0;
  --toggle-track: rgba(255, 255, 255, 0.24);
  --toggle-thumb: #ffffff;
  --toggle-symbol: #758a2f;
  --button-text: #ffffff;
  --accent-hover: #570f00;
  --on-image: #ffffff;
  --on-image-muted: rgba(255, 255, 255, 0.78);
  --badge-bg: var(--deep);
  --badge-text: var(--on-image);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f0f9ed;
  --ink-soft: #dce7d3;
  --muted: #c2cab8;
  --line: #59613b;
  --paper: #121708;
  --wash: #1d250f;
  --deep: #0b1005;
  --deep-2: #242d13;
  --green: #a4ae56;
  --green-dark: #758a2f;
  --amber: #c2cab8;
  --coral: #e7b2a6;
  --sage: #98beb2;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  --header-bg: rgba(18, 23, 8, 0.94);
  --header-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
  --menu-bg: rgba(18, 23, 8, 0.98);
  --hero-overlay-main: rgba(11, 16, 5, 0.94);
  --hero-overlay-mid: rgba(11, 16, 5, 0.76);
  --hero-overlay-light: rgba(11, 16, 5, 0.28);
  --hero-overlay-bottom: rgba(11, 16, 5, 0.94);
  --proof-bg: rgba(11, 16, 5, 0.68);
  --discount-bg: rgba(164, 174, 86, 0.14);
  --toggle-track: rgba(164, 174, 86, 0.3);
  --toggle-thumb: #f0f9ed;
  --toggle-symbol: #373d19;
  --button-text: #121708;
  --accent-hover: #f0f9ed;
  --on-image: #f0f9ed;
  --on-image-muted: rgba(240, 249, 237, 0.82);
  --badge-bg: #a4ae56;
  --badge-text: #121708;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  transform: translateY(-180%);
  background: var(--paper);
  border: 2px solid var(--green);
  border-radius: var(--radius);
  padding: 10px 14px;
  transition: transform 180ms ease;
}

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

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 10;
  color: var(--on-image);
  transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.site-header.is-scrolled,
.site-header.nav-active {
  color: var(--ink);
  background: var(--header-bg);
  box-shadow: var(--header-shadow);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: min(calc(100% - 40px), var(--max));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 58px;
  height: 58px;
  display: block;
  flex: 0 0 auto;
  border: 2px solid rgba(255, 255, 255, 0.84);
  border-radius: 50%;
  overflow: hidden;
  background:
    var(--deep)
    url("trainerize-logo-crop.jpg")
    center / cover
    no-repeat;
  clip-path: circle(50%);
  box-shadow: 0 8px 20px rgba(55, 61, 25, 0.22);
}

.site-header.is-scrolled .brand-mark,
.site-header.nav-active .brand-mark {
  border-color: var(--line);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.98rem;
  line-height: 1.1;
}

.brand small {
  color: currentColor;
  font-size: 0.78rem;
  opacity: 0.76;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: currentColor;
  font-size: 0.95rem;
  font-weight: 700;
}

.theme-toggle {
  width: 58px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: transparent;
  color: currentColor;
  cursor: pointer;
}

.site-header.is-scrolled .theme-toggle,
.site-header.nav-active .theme-toggle {
  border-color: var(--line);
}

.theme-toggle-track {
  position: relative;
  width: 48px;
  height: 26px;
  display: block;
  border-radius: 999px;
  background: var(--toggle-track);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.theme-toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--toggle-thumb);
  transition: transform 180ms ease, background 180ms ease;
}

.theme-toggle-thumb::before {
  position: absolute;
  inset: 5px;
  content: "";
  border-radius: 50%;
  background: var(--toggle-symbol);
}

.theme-toggle-thumb::after {
  position: absolute;
  top: 3px;
  right: 2px;
  width: 12px;
  height: 12px;
  content: "";
  border-radius: 50%;
  background: var(--toggle-thumb);
  opacity: 0;
  transition: opacity 180ms ease;
}

:root[data-theme="dark"] .theme-toggle-thumb {
  transform: translateX(22px);
}

:root[data-theme="dark"] .theme-toggle-thumb::after {
  opacity: 1;
}

.nav-links > a:not(.button) {
  position: relative;
  opacity: 0.86;
}

.nav-links > a:not(.button)::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.nav-links > a:not(.button):hover::after,
.nav-links > a:not(.button):focus-visible::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: currentColor;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.site-header.is-scrolled .nav-toggle,
.site-header.nav-active .nav-toggle {
  border-color: var(--line);
  background: var(--paper);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.section-inner {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: min(760px, 84svh);
  display: flex;
  align-items: end;
  overflow: hidden;
  color: var(--on-image);
  background-image:
    linear-gradient(90deg, var(--hero-overlay-main) 0%, var(--hero-overlay-mid) 42%, var(--hero-overlay-light) 100%),
    url("https://images.unsplash.com/photo-1517836357463-d25dfeac3438?auto=format&fit=crop&w=1800&q=80");
  background-position: center;
  background-size: cover;
}

.hero-overlay {
  position: absolute;
  inset: auto 0 0;
  height: 44%;
  background: linear-gradient(180deg, rgba(55, 61, 25, 0), var(--hero-overlay-bottom));
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 156px 0 54px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--amber);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.04;
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 22px;
  font-size: clamp(3rem, 9vw, 6.7rem);
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(2rem, 5vw, 4.2rem);
}

h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.hero-copy {
  max-width: 710px;
  margin: 0 0 30px;
  color: var(--on-image-muted);
  font-size: clamp(1.05rem, 2vw, 1.32rem);
}

.hero-actions,
.footer-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid var(--green);
  border-radius: var(--radius);
  background: var(--green);
  color: var(--button-text);
  font-weight: 800;
  box-shadow: 0 16px 34px rgba(117, 138, 47, 0.26);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
  background: var(--green-dark);
  box-shadow: 0 20px 42px rgba(117, 138, 47, 0.3);
  transform: translateY(-2px);
}

.button-ghost {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  box-shadow: none;
}

.button-ghost:hover,
.button-ghost:focus-visible {
  background: rgba(255, 255, 255, 0.18);
}

.button-small {
  min-height: 42px;
  padding: 0 16px;
  box-shadow: none;
}

.button-block {
  width: 100%;
}

.button-accent {
  border-color: var(--coral);
  background: var(--coral);
  box-shadow: 0 16px 34px rgba(140, 35, 11, 0.22);
}

.button-accent:hover,
.button-accent:focus-visible {
  background: var(--accent-hover);
  box-shadow: 0 20px 42px rgba(140, 35, 11, 0.28);
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 760px;
  margin: 46px 0 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  overflow: hidden;
}

.hero-proof div {
  padding: 18px;
  background: var(--proof-bg);
  backdrop-filter: blur(12px);
}

.hero-proof dt {
  font-size: 1.7rem;
  font-weight: 900;
}

.hero-proof dd {
  margin: 2px 0 0;
  color: var(--on-image-muted);
  font-size: 0.92rem;
}

.intro-section,
.process-section,
.resources-section {
  background: var(--wash);
}

.intro-section {
  padding: 70px 0;
}

.intro-grid,
.plans-topline,
.resources-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.72fr);
  gap: clamp(32px, 8vw, 96px);
  align-items: start;
}

.intro-grid h2,
.plans-topline h2,
.resources-grid h2 {
  margin-bottom: 0;
}

.intro-grid > p,
.plans-topline > p {
  margin: 36px 0 0;
  color: var(--ink-soft);
  font-size: 1.1rem;
}

.coaching-section {
  padding: 96px 0;
  background: var(--paper);
}

.coaching-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(34px, 5vw, 58px);
  align-items: start;
}

.media-panel {
  width: min(100%, 1080px);
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--deep);
  box-shadow: var(--shadow);
}

.coach-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.coaching-copy {
  width: min(100%, 1080px);
  margin: 0 auto;
}

.coaching-copy h2 {
  max-width: 860px;
  font-size: clamp(2rem, 4.8vw, 3.7rem);
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.feature-list article,
.process-grid article,
.price-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.feature-list article {
  padding: 24px;
}

.feature-number {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--coral);
  font-weight: 900;
}

.feature-list p,
.process-grid p,
.price-note,
.discount,
.resources-grid p {
  margin: 0;
  color: var(--muted);
}

.process-section {
  padding: 92px 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 42px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.process-grid article {
  padding: 26px;
}

.process-grid span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 34px;
  border-radius: 50%;
  background: var(--badge-bg);
  color: var(--badge-text);
  font-weight: 900;
}

.plans-section {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--deep) 0%, var(--deep-2) 100%);
  color: var(--on-image);
}

.plans-section .eyebrow {
  color: var(--amber);
}

.plans-topline {
  margin-bottom: 42px;
}

.plans-topline > p {
  color: var(--on-image-muted);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.price-card {
  position: relative;
  padding: clamp(26px, 4vw, 38px);
  color: var(--ink);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.16);
}

.price-card-featured {
  border-color: rgba(164, 174, 86, 0.58);
}

.offer-badge {
  display: inline-flex;
  margin-bottom: 22px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(164, 174, 86, 0.18);
  color: var(--deep);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.price-card-top {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.plan-name {
  margin: 0;
  color: var(--green-dark);
  font-weight: 900;
  text-transform: uppercase;
}

.price {
  margin: 0;
  font-size: clamp(3rem, 7vw, 5.2rem);
  font-weight: 950;
  line-height: 0.9;
}

.price span {
  display: inline-block;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 800;
}

.price-card ul {
  display: grid;
  gap: 13px;
  margin: 28px 0 32px;
  padding: 0;
  list-style: none;
}

.price-card li {
  position: relative;
  padding-left: 28px;
  color: var(--ink-soft);
}

.price-card li::before {
  position: absolute;
  top: 0.08em;
  left: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  content: "";
  background:
    linear-gradient(135deg, transparent 46%, var(--paper) 47% 54%, transparent 55%),
    var(--green);
}

.discount {
  padding: 14px 16px;
  border-left: 4px solid var(--amber);
  background: var(--discount-bg);
}

.resources-section {
  padding: 86px 0;
}

.resource-links {
  display: grid;
  gap: 14px;
}

.resource-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font-weight: 900;
  box-shadow: 0 10px 30px rgba(55, 61, 25, 0.05);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.resource-links a:hover,
.resource-links a:focus-visible {
  border-color: rgba(117, 138, 47, 0.5);
  box-shadow: 0 20px 42px rgba(55, 61, 25, 0.09);
  transform: translateY(-2px);
}

.resource-links span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--badge-bg);
  color: var(--badge-text);
  font-size: 0.76rem;
  flex: 0 0 auto;
}

.site-footer {
  padding: 28px 0;
  background: var(--deep);
  color: rgba(255, 255, 255, 0.78);
}

.footer-inner {
  justify-content: space-between;
}

.footer-inner p {
  margin: 0;
}

.footer-inner a {
  font-weight: 800;
}

@media (max-width: 920px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 76px;
    right: 0;
    left: 0;
    display: grid;
    gap: 0;
    padding: 10px 20px 22px;
    background: var(--menu-bg);
    color: var(--ink);
    box-shadow: 0 26px 44px rgba(55, 61, 25, 0.14);
    transform: translateY(-132%);
    transition: transform 220ms ease;
  }

  .nav-links.is-open {
    transform: translateY(0);
  }

  .nav-links a {
    padding: 15px 0;
  }

  .nav-links .button {
    margin-top: 10px;
  }

  .theme-toggle {
    justify-self: start;
    margin: 8px 0;
  }

  .intro-grid,
  .coaching-grid,
  .plans-topline,
  .pricing-grid,
  .resources-grid {
    grid-template-columns: 1fr;
  }

  .intro-grid > p,
  .plans-topline > p {
    margin-top: 0;
  }

  .coaching-grid {
    align-items: start;
  }

  .media-panel {
    max-width: 100%;
  }

  .feature-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .nav-shell,
  .section-inner {
    width: min(calc(100% - 28px), var(--max));
  }

  .brand strong {
    font-size: 0.9rem;
  }

  .hero {
    min-height: 88svh;
    background-position: 58% center;
  }

  .hero-inner {
    padding: 126px 0 34px;
  }

  h1 {
    font-size: clamp(2.45rem, 10.5vw, 3rem);
  }

  .hero-copy {
    font-size: 1rem;
  }

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

  .button {
    width: 100%;
  }

  .hero-proof,
  .feature-list,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .hero-proof {
    margin-top: 32px;
  }

  .intro-section,
  .coaching-section,
  .process-section,
  .plans-section,
  .resources-section {
    padding: 64px 0;
  }

  .media-panel {
    max-width: 100%;
  }

  .price-card {
    padding: 24px;
  }

  .resource-links a {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
}

@media (max-width: 560px) {
  .nav-shell,
  .section-inner {
    width: auto;
    max-width: 362px;
    margin-right: 14px;
    margin-left: 14px;
  }
}

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