:root {
  color-scheme: light;
  --ink: #12201a;
  --muted: #536159;
  --line: #dce5de;
  --panel: #ffffff;
  --soft: #f4f8f5;
  --green: #187a45;
  --green-dark: #0d5631;
  --lime: #c7f26a;
  --gold: #f2b84b;
  --blue: #226c8f;
  --shadow: 0 18px 45px rgba(18, 32, 26, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f8faf8;
  color: var(--ink);
  line-height: 1.55;
}

a {
  color: var(--green-dark);
  font-weight: 700;
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

.site-header {
  align-items: center;
  background: rgba(248, 250, 248, 0.94);
  border-bottom: 1px solid rgba(220, 229, 222, 0.82);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 72px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  align-items: center;
  color: var(--ink);
  display: inline-flex;
  font-size: 1rem;
  gap: 10px;
  letter-spacing: 0;
}

.brand img {
  border-radius: 8px;
  height: 38px;
  width: 38px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: flex-end;
}

.nav a {
  color: #2e3d34;
  font-size: 0.95rem;
  font-weight: 700;
}

.hero {
  background:
    linear-gradient(135deg, rgba(13, 86, 49, 0.95), rgba(24, 122, 69, 0.88)),
    url("my-gym-coach-icon.png");
  background-position: center;
  background-size: cover, 360px;
  color: #ffffff;
  min-height: 78vh;
  overflow: hidden;
  padding: clamp(56px, 9vw, 104px) clamp(20px, 6vw, 80px) 38px;
  position: relative;
}

.hero-inner {
  display: grid;
  gap: clamp(34px, 6vw, 76px);
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.72fr);
  margin: 0 auto;
  max-width: 1180px;
}

.eyebrow {
  color: var(--lime);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

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

h1 {
  font-size: clamp(2.75rem, 7vw, 5.9rem);
  max-width: 780px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

h3 {
  font-size: 1.2rem;
}

.hero-copy {
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  margin: 22px 0 0;
  max-width: 690px;
}

.hero-actions,
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  border: 0;
  align-items: center;
  background: var(--lime);
  border-radius: 8px;
  color: #102015;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 900;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #ffffff;
}

.phone {
  align-self: center;
  background: #111a16;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 30px;
  box-shadow: var(--shadow);
  margin-left: auto;
  max-width: 360px;
  min-height: 560px;
  padding: 18px;
  width: 100%;
}

.phone-screen {
  background: #f8fbf8;
  border-radius: 22px;
  color: var(--ink);
  min-height: 524px;
  overflow: hidden;
  padding: 20px;
}

.phone-top {
  align-items: center;
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.phone-top img {
  border-radius: 8px;
  height: 46px;
  width: 46px;
}

.phone-title {
  font-size: 1.05rem;
  font-weight: 900;
}

.phone-subtitle {
  color: var(--muted);
  font-size: 0.86rem;
}

.workout-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 12px;
  padding: 14px;
}

.workout-card strong {
  display: block;
}

.meter {
  background: #e7eee9;
  border-radius: 999px;
  height: 8px;
  margin-top: 12px;
  overflow: hidden;
}

.meter span {
  background: var(--green);
  display: block;
  height: 100%;
}

.stats {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 18px;
}

.stat {
  background: #eaf3ed;
  border-radius: 8px;
  padding: 12px 8px;
  text-align: center;
}

.stat b {
  display: block;
  font-size: 1.1rem;
}

.main {
  margin: 0 auto;
  max-width: 1180px;
  padding: 64px clamp(20px, 5vw, 72px);
}

.section {
  border-bottom: 1px solid var(--line);
  padding: 56px 0;
}

.section:first-child {
  padding-top: 0;
}

.section:last-child {
  border-bottom: 0;
}

.lead {
  color: var(--muted);
  font-size: 1.1rem;
  margin: 14px 0 0;
  max-width: 760px;
}

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

.feature {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}

.feature-mark {
  align-items: center;
  background: #e8f4ec;
  border-radius: 8px;
  color: var(--green-dark);
  display: inline-flex;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  margin-bottom: 16px;
  width: 34px;
}

.two-column {
  display: grid;
  gap: 36px;
  grid-template-columns: minmax(0, 0.78fr) minmax(280px, 0.42fr);
}

.contact-box,
.policy-note {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}

.page-hero {
  background: #123623;
  color: #ffffff;
  padding: 76px clamp(20px, 6vw, 80px);
}

.compact-hero {
  padding-bottom: 58px;
  padding-top: 58px;
}

.page-hero div {
  margin: 0 auto;
  max-width: 980px;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.12rem;
  max-width: 760px;
}

.legal {
  margin: 0 auto;
  max-width: 900px;
  padding: 54px clamp(20px, 5vw, 72px);
}

.checkout-page {
  margin: 0 auto;
  max-width: 980px;
  padding: 54px clamp(20px, 5vw, 72px);
}

.checkout-panel {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.52fr);
}

.checkout-panel > div:first-child {
  grid-column: 1 / -1;
}

.checkout-form,
.payment-note {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}

.checkout-form {
  display: grid;
  gap: 12px;
}

.checkout-form label {
  font-weight: 900;
}

.checkout-form input {
  border: 1px solid #b9c7bd;
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  min-height: 48px;
  padding: 0 12px;
  width: 100%;
}

.checkout-form input:focus {
  border-color: var(--green);
  outline: 3px solid rgba(24, 122, 69, 0.18);
}

.form-message {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 4px 0 0;
  min-height: 1.5em;
}

.legal section {
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
}

.legal section:last-child {
  border-bottom: 0;
}

.legal ul,
.support-list {
  padding-left: 22px;
}

.site-footer {
  background: #101a15;
  color: rgba(255, 255, 255, 0.78);
  padding: 34px clamp(20px, 5vw, 72px);
}

.footer-inner {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1180px;
}

.footer-inner a {
  color: #ffffff;
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner,
  .two-column,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .phone {
    margin: 0;
    max-width: 420px;
    min-height: auto;
  }

  .phone-screen {
    min-height: 470px;
  }

  .main {
    padding-top: 48px;
  }
}

@media (max-width: 520px) {
  .hero-actions,
  .cta-row {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .checkout-panel {
    grid-template-columns: 1fr;
  }
}
