/* Muscle Guard — shared website styles.
   Single source of truth for the brand identity across all pages.
   Brand colours match the doctor PDF letterhead and the milestone share card. */

:root {
  --mg-green: #0F7B6C;
  --mg-green-dark: #0A5A4F;
  --mg-green-bg: #E8F4F1;
  --mg-gold: #C97E1A;
  --mg-gold-bg: #FFF3E0;
  --mg-text: #1A2520;
  --mg-muted: #5F6E69;
  --mg-bg: #FAFCFB;
  --mg-border: rgba(15, 123, 108, 0.14);
  --mg-white: #FFFFFF;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Arial, sans-serif;
  color: var(--mg-text);
  line-height: 1.65;
  background: var(--mg-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--mg-green);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===================== Header / Nav ===================== */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid var(--mg-border);
  background: var(--mg-white);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo svg { flex-shrink: 0; }
.nav-logo-text {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 1.4px;
  color: var(--mg-green);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-size: 14px;
  color: var(--mg-text);
  text-decoration: none;
}
.nav-links a:hover { color: var(--mg-green); }
.nav-links a.active { color: var(--mg-green); font-weight: 600; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: var(--mg-green);
  color: var(--mg-white) !important;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}
.nav-cta:hover {
  background: var(--mg-green-dark);
  text-decoration: none;
}

/* ===================== Hero ===================== */

.hero {
  padding: 64px 0 48px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: var(--mg-gold-bg);
  color: var(--mg-gold);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 44px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.6px;
  margin-bottom: 20px;
}
.hero h1 .em { color: var(--mg-green); }

.hero-sub {
  font-size: 16px;
  color: var(--mg-muted);
  margin-bottom: 28px;
  line-height: 1.65;
  max-width: 540px;
}

.store-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.store-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  background: var(--mg-text);
  color: var(--mg-white) !important;
  border-radius: 12px;
  text-decoration: none;
  min-width: 170px;
}
.store-btn:hover { background: #000; text-decoration: none; }
.store-btn svg { width: 28px; height: 28px; fill: var(--mg-white); flex-shrink: 0; }
.store-btn-label { display: flex; flex-direction: column; line-height: 1.1; }
.store-btn-label small {
  font-size: 10px;
  opacity: 0.75;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.store-btn-label strong { font-size: 15px; font-weight: 700; }

.trust-line {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--mg-muted);
}
.trust-line .dot {
  width: 6px;
  height: 6px;
  background: var(--mg-green);
  border-radius: 50%;
}

/* Phone mockup on the right */
.phone {
  position: relative;
  aspect-ratio: 9/16;
  max-width: 320px;
  max-height: 580px;
  margin: 0 auto;
  background: var(--mg-text);
  border-radius: 36px;
  padding: 10px;
}
.phone-inner {
  background: var(--mg-bg);
  border-radius: 28px;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.phone-bar {
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.phone-bar .pill { width: 60px; height: 6px; background: var(--mg-text); border-radius: 4px; }
.phone-content { padding: 12px 16px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.phone-greeting { font-size: 12px; color: var(--mg-muted); }
.phone-name { font-size: 16px; font-weight: 700; }
.mgs-card {
  background: var(--mg-white);
  border-radius: 16px;
  padding: 14px;
  border: 1px solid var(--mg-border);
  display: flex;
  gap: 12px;
  align-items: center;
}
.mgs-ring { width: 70px; height: 70px; flex-shrink: 0; position: relative; }
.mgs-ring svg { transform: rotate(-90deg); }
.mgs-num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.mgs-num strong { font-size: 22px; font-weight: 700; color: var(--mg-green); line-height: 1; }
.mgs-num small { font-size: 9px; color: var(--mg-muted); letter-spacing: 0.5px; }
.mgs-meta-label { font-size: 10px; color: var(--mg-muted); letter-spacing: 0.5px; }
.mgs-meta-title { font-size: 13px; font-weight: 700; }
.mgs-meta-sub { font-size: 11px; color: var(--mg-muted); }
.circles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.circle {
  background: var(--mg-white);
  border-radius: 13px;
  padding: 9px 4px;
  border: 1px solid var(--mg-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.circle-ring {
  width: 40px; height: 40px; border-radius: 50%;
  border: 3px solid var(--mg-green-bg);
  border-top-color: var(--mg-green);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; color: var(--mg-text);
}
.circle-label { font-size: 9px; color: var(--mg-muted); letter-spacing: 0.3px; }

/* ===================== Sections ===================== */

.section {
  padding: 64px 0;
}
.section.alt { background: var(--mg-green-bg); }
.section-eyebrow {
  font-size: 12px;
  font-weight: 700;
  color: var(--mg-green);
  letter-spacing: 0.6px;
  margin-bottom: 12px;
}
.section h2 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.4px;
  margin-bottom: 16px;
  max-width: 680px;
}
.section-lede {
  font-size: 15px;
  color: var(--mg-muted);
  max-width: 680px;
  margin-bottom: 36px;
  line-height: 1.65;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.feature-card {
  background: var(--mg-white);
  border: 1px solid var(--mg-border);
  border-radius: 16px;
  padding: 22px;
}
.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--mg-green-bg);
  color: var(--mg-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 14px;
}
.feature-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.feature-card p { font-size: 14px; color: var(--mg-muted); line-height: 1.6; }

/* ===================== Pricing ===================== */

.price-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 720px;
}
.price-card {
  background: var(--mg-white);
  border: 1px solid var(--mg-border);
  border-radius: 18px;
  padding: 28px;
  position: relative;
}
.price-card.featured { border: 2px solid var(--mg-green); }
.price-badge {
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--mg-green);
  color: var(--mg-white);
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  border-radius: 999px;
}
.price-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.price-card-sub { font-size: 13px; color: var(--mg-muted); margin-bottom: 18px; }
.price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 20px;
}
.price-num { font-size: 36px; font-weight: 700; letter-spacing: -0.6px; }
.price-per { font-size: 13px; color: var(--mg-muted); }
.price-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}
.price-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  padding: 5px 0;
}
.price-list li::before {
  content: '✓';
  color: var(--mg-green);
  font-weight: 700;
  flex-shrink: 0;
}
.price-btn {
  display: block;
  text-align: center;
  padding: 12px 16px;
  background: var(--mg-green);
  color: var(--mg-white) !important;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
}
.price-btn:hover { background: var(--mg-green-dark); text-decoration: none; }
.price-btn.ghost {
  background: transparent;
  color: var(--mg-green) !important;
  border: 1px solid var(--mg-green);
}
.price-btn.ghost:hover { background: var(--mg-green-bg); }

/* ===================== CTA section ===================== */

.cta-section {
  background: var(--mg-green);
  color: var(--mg-white);
  text-align: center;
  padding: 64px 0;
}
.cta-section h2 { color: var(--mg-white); margin-bottom: 10px; }
.cta-section p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 440px;
  margin: 0 auto 28px;
  font-size: 15px;
}
.cta-section .store-row { justify-content: center; }
.cta-section .store-btn { background: var(--mg-white); color: var(--mg-text) !important; }
.cta-section .store-btn svg { fill: var(--mg-text); }
.cta-section .store-btn:hover { background: rgba(255,255,255,0.92); }

/* ===================== Footer ===================== */

.footer {
  background: var(--mg-text);
  color: rgba(255, 255, 255, 0.78);
  padding: 48px 0 24px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.foot-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.foot-logo .lt { font-size: 15px; font-weight: 700; color: var(--mg-white); letter-spacing: 1.4px; }
.foot-tag { font-size: 13px; color: rgba(255,255,255,0.62); max-width: 280px; line-height: 1.55; }
.foot h4 {
  font-size: 12px;
  color: var(--mg-white);
  letter-spacing: 0.6px;
  margin-bottom: 12px;
  font-weight: 700;
}
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot ul li { padding: 5px 0; font-size: 13px; }
.foot ul li a { color: rgba(255,255,255,0.65); }
.foot ul li a:hover { color: var(--mg-white); }
.foot-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  flex-wrap: wrap;
  gap: 10px;
}

/* ===================== Legal / Content pages ===================== */

.page-hero {
  padding: 56px 0 32px;
  border-bottom: 1px solid var(--mg-border);
  background: var(--mg-white);
}
.page-hero h1 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.4px;
  margin-bottom: 8px;
}
.page-hero .updated {
  font-size: 13px;
  color: var(--mg-muted);
}

.content {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 64px;
  font-size: 15px;
  line-height: 1.75;
}
.content h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--mg-green-dark);
  margin: 36px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--mg-border);
}
.content h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 24px 0 8px;
}
.content p { margin-bottom: 14px; color: var(--mg-text); }
.content ul, .content ol { margin: 8px 0 16px 24px; }
.content li { margin-bottom: 6px; }
.content strong { font-weight: 700; }
.content em { font-style: italic; color: var(--mg-muted); }
.content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 14px;
}
.content th, .content td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--mg-border);
  vertical-align: top;
}
.content th { background: var(--mg-green-bg); color: var(--mg-green-dark); font-weight: 700; }
.content hr { border: 0; border-top: 1px solid var(--mg-border); margin: 32px 0; }

.content .callout {
  background: var(--mg-gold-bg);
  border-left: 3px solid var(--mg-gold);
  padding: 14px 18px;
  border-radius: 0 8px 8px 0;
  margin: 18px 0;
  font-size: 14px;
}

/* ===================== Contact ===================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 28px;
}
.contact-card {
  background: var(--mg-white);
  border: 1px solid var(--mg-border);
  border-radius: 16px;
  padding: 24px;
}
.contact-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--mg-green-bg);
  color: var(--mg-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 14px;
}
.contact-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.contact-card p { font-size: 13px; color: var(--mg-muted); margin-bottom: 12px; line-height: 1.6; }
.contact-card a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--mg-green);
  font-size: 14px;
  font-weight: 600;
}

.faq {
  background: var(--mg-bg);
  padding: 48px 0;
}
.faq h2 { font-size: 22px; font-weight: 700; margin-bottom: 20px; }
.faq-item {
  background: var(--mg-white);
  border: 1px solid var(--mg-border);
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 10px;
}
.faq-item h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.faq-item p { font-size: 14px; color: var(--mg-muted); line-height: 1.65; margin: 0; }

/* ===================== Responsive ===================== */

@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 40px 0 32px;
  }
  .hero h1 { font-size: 32px; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .store-row { justify-content: center; }
  .trust-line { justify-content: center; }
  .phone { display: none; }
  .nav-links a:not(.nav-cta) { display: none; }
  .price-row { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .section h2 { font-size: 26px; }
  .page-hero h1 { font-size: 28px; }
}

@media (max-width: 480px) {
  .foot-grid { grid-template-columns: 1fr; }
  .container { padding: 0 18px; }
}

