/* Stellar Osteopenia Landing Page: Stellar brand system
   Palette from stellarphysicaltherapy.net: crimson #941a1f, green #38a735,
   blue #0d6397, navy #1b263b. Typeface: Figtree (site brand font). */

:root {
  /* Type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.83rem + 0.25vw, 1rem);
  --text-base: clamp(1.063rem, 1rem + 0.4vw, 1.188rem); /* 17px floor, seniors-first */
  --text-lg: clamp(1.25rem, 1.05rem + 0.9vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.3rem + 3vw, 3.5rem);

  /* Spacing */
  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem;
  --space-5: 1.25rem; --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem;
  --space-12: 3rem; --space-16: 4rem; --space-20: 5rem; --space-24: 6rem;

  /* Color */
  --font-body: 'Figtree', 'Segoe UI', 'Helvetica Neue', sans-serif;
  --font-display: 'Figtree', 'Segoe UI', 'Helvetica Neue', sans-serif;
  --color-bg: #fbfaf6;
  --color-surface: #ffffff;
  --color-surface-offset: #f4f1ea;
  --color-surface-tint: #eef4ec;
  --color-surface-blue: #edf3f8;
  --color-divider: #e6e1d6;
  --color-border: #d8d2c4;
  --color-text: #1e2530;
  --color-text-muted: #556071;
  --color-text-inverse: #ffffff;
  --color-primary: #941a1f;
  --color-primary-hover: #7c1216;
  --color-accent: #38a735;
  --color-accent-deep: #2a7d28;
  --color-blue: #0d6397;
  --color-blue-hover: #0a4f7a;
  --color-navy: #1b263b;
  --color-cream: #fbfaf6;

  --radius-md: 0.625rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-md: 0 4px 14px rgba(27, 38, 59, 0.08);
  --shadow-lg: 0 14px 40px rgba(27, 38, 59, 0.14);
  --content-default: 1100px;
  --content-narrow: 720px;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: none; text-size-adjust: none;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  scroll-behavior: smooth; scroll-padding-top: var(--space-16);
}
body {
  min-height: 100dvh; line-height: 1.65;
  font-family: var(--font-body); font-size: var(--text-base);
  color: var(--color-text); background-color: var(--color-bg);
}
img, picture, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; text-wrap: balance; }
p, li { text-wrap: pretty; max-width: 72ch; }
a { color: var(--color-blue); transition: color var(--transition-interactive); }
a:hover { color: var(--color-blue-hover); }
:focus-visible { outline: 3px solid var(--color-blue); outline-offset: 3px; border-radius: var(--radius-md); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Layout */
.container { width: min(var(--content-default), 100% - 2 * var(--space-5)); margin-inline: auto; }
.container-narrow { width: min(var(--content-narrow), 100% - 2 * var(--space-5)); margin-inline: auto; }
section { padding-block: clamp(var(--space-12), 5vw, var(--space-20)); }
.section-alt { background: var(--color-surface); }
.section-tint { background: var(--color-surface-offset); }
.section-kicker {
  font-size: var(--text-sm); font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--color-primary); margin-bottom: var(--space-3);
}
.section-title { font-size: var(--text-xl); font-weight: 800; color: var(--color-navy); margin-bottom: var(--space-5); }
.section-lead { color: var(--color-text-muted); margin-bottom: var(--space-8); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(251, 250, 246, 0.95);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--color-divider);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding-block: var(--space-3); }
.site-header img { height: clamp(44px, 5vw, 58px); width: auto; }
.header-cta { display: flex; align-items: center; gap: var(--space-4); }
.header-phone { font-weight: 700; color: var(--color-navy); font-size: var(--text-sm); white-space: nowrap; text-decoration: none; }
.header-phone:hover { color: var(--color-primary); }
@media (max-width: 760px) {
  .header-phone span.long { display: none; }
  .header-cta .btn { display: none; }
  .site-header .header-cta { gap: var(--space-2); }
  .header-phone { font-size: 1.063rem; }
}

/* Buttons */
.btn {
  display: inline-block; font-family: var(--font-body); font-weight: 800;
  text-align: center; text-decoration: none; cursor: pointer;
  border-radius: var(--radius-full); padding: var(--space-4) var(--space-8);
  font-size: clamp(1.063rem, 1rem + 0.4vw, 1.25rem);
  transition: background var(--transition-interactive), transform var(--transition-interactive), box-shadow var(--transition-interactive);
}
.btn-primary { background: var(--color-primary); color: var(--color-text-inverse); box-shadow: var(--shadow-md); }
.btn-primary:hover { background: var(--color-primary-hover); color: var(--color-text-inverse); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-ghost { background: transparent; color: var(--color-blue); border: 2px solid var(--color-blue); }
.btn-ghost:hover { background: var(--color-surface-blue); color: var(--color-blue-hover); }
.btn-block { display: block; width: 100%; max-width: 460px; }
.cta-note { font-size: var(--text-sm); color: var(--color-text-muted); margin-top: var(--space-3); }
.cta-note a { font-weight: 700; color: var(--color-navy); }

/* Hero */
.hero { padding-top: clamp(var(--space-8), 4vw, var(--space-12)); }
.cred-bar {
  display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5);
  justify-content: center; font-size: var(--text-sm); font-weight: 600;
  color: var(--color-text-muted); margin-bottom: var(--space-8);
}
.cred-bar span { display: inline-flex; align-items: center; gap: var(--space-2); }
.cred-bar svg { width: 16px; height: 16px; color: var(--color-accent-deep); flex-shrink: 0; }
.hero h1 {
  font-size: var(--text-2xl); font-weight: 800; color: var(--color-navy);
  max-width: 21ch; margin-inline: auto; text-align: center;
}
.hero h1 .accent { color: var(--color-primary); }
.hero-sub {
  font-size: var(--text-lg); color: var(--color-text-muted);
  max-width: 60ch; margin: var(--space-6) auto 0; text-align: center;
}
.hero-cta { text-align: center; margin-top: var(--space-8); }
.hero-cta .btn { margin-inline: auto; }
.trust-chips {
  display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3) var(--space-5);
  margin-top: var(--space-8); padding: var(--space-4) var(--space-5);
  background: var(--color-surface); border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
}
.trust-chips span { display: inline-flex; align-items: center; gap: var(--space-2); font-weight: 600; font-size: var(--text-sm); color: var(--color-navy); }
.trust-chips svg { width: 20px; height: 20px; color: var(--color-accent-deep); flex-shrink: 0; }
.hero-band { margin-top: clamp(var(--space-8), 4vw, var(--space-12)); }
.hero-band img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }

/* Offer box */
.offer-box {
  background: var(--color-surface); border: 2px solid var(--color-primary);
  border-radius: var(--radius-xl); padding: clamp(var(--space-6), 4vw, var(--space-12));
  box-shadow: var(--shadow-lg); max-width: 860px; margin-inline: auto;
}
.offer-box .offer-kicker { text-align: center; font-size: var(--text-sm); font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-primary); }
.offer-title { text-align: center; font-size: var(--text-xl); font-weight: 800; color: var(--color-navy); margin: var(--space-2) 0 var(--space-2); }
.offer-subtitle { text-align: center; color: var(--color-text-muted); margin-bottom: var(--space-6); }
.offer-list { list-style: none; margin-bottom: var(--space-8); }
.offer-list li { display: flex; gap: var(--space-3); align-items: flex-start; padding-block: var(--space-2); }
.offer-list svg { width: 24px; height: 24px; color: var(--color-accent-deep); flex-shrink: 0; margin-top: 2px; }
.offer-list strong { color: var(--color-navy); }
.offer-value { text-align: center; font-size: var(--text-base); font-weight: 700; color: var(--color-navy); margin-bottom: var(--space-6); }
.offer-value .value-strike { color: var(--color-text-muted); text-decoration: line-through; font-weight: 600; }
.offer-cta { text-align: center; }

/* Feature grid */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-5); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card {
  background: var(--color-surface); border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg); padding: var(--space-6); box-shadow: var(--shadow-md);
}
.card h3 { font-size: var(--text-lg); font-weight: 800; color: var(--color-navy); margin-bottom: var(--space-2); }
.card p { color: var(--color-text-muted); }
.card .card-icon { width: 44px; height: 44px; border-radius: var(--radius-md); background: var(--color-surface-blue); color: var(--color-blue); display: grid; place-items: center; margin-bottom: var(--space-4); }
.card .card-icon svg { width: 24px; height: 24px; }
.card.tinted .card-icon { background: var(--color-surface-tint); color: var(--color-accent-deep); }
.card.tinted-red .card-icon { background: #f9e9ea; color: var(--color-primary); }

/* Testimonials */
.quote-card { background: var(--color-surface); border: 1px solid var(--color-divider); border-radius: var(--radius-lg); padding: var(--space-6); box-shadow: var(--shadow-md); display: flex; flex-direction: column; gap: var(--space-4); }
.quote-card blockquote { font-size: var(--text-base); color: var(--color-text); font-style: italic; }
.quote-card .quote-mark { color: var(--color-primary); font-size: 2rem; font-weight: 800; line-height: 1; font-family: Georgia, serif; }
.quote-card cite { font-style: normal; font-weight: 700; color: var(--color-navy); font-size: var(--text-sm); }
.quote-card .stars { color: #e8a800; letter-spacing: 2px; font-size: var(--text-base); }
.quote-featured { max-width: 820px; margin-inline: auto; border-left: 6px solid var(--color-primary); }

/* Check list (breakdown) */
.check-list { list-style: none; columns: 2; column-gap: var(--space-8); }
.check-list li { display: flex; gap: var(--space-3); align-items: flex-start; padding-block: var(--space-2); break-inside: avoid; }
.check-list svg { width: 24px; height: 24px; color: var(--color-accent-deep); flex-shrink: 0; margin-top: 2px; }
.check-list strong { color: var(--color-navy); }
.check-list span.txt { color: var(--color-text-muted); }
@media (max-width: 820px) { .check-list { columns: 1; } }

/* Bonuses */
.bonus-card { position: relative; background: var(--color-surface); border: 1px solid var(--color-divider); border-radius: var(--radius-lg); padding: var(--space-6); padding-top: var(--space-10); box-shadow: var(--shadow-md); }
.bonus-badge {
  position: absolute; top: calc(-1 * var(--space-4)); left: var(--space-6);
  background: var(--color-primary); color: #fff; font-size: var(--text-xs); font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase; padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
}
.bonus-card h3 { font-size: var(--text-lg); font-weight: 800; color: var(--color-navy); }
.bonus-card .bonus-line { color: var(--color-primary); font-weight: 700; margin-bottom: var(--space-3); }
.bonus-card p { color: var(--color-text-muted); margin-bottom: var(--space-3); }
.bonus-card ul { list-style: none; margin-bottom: var(--space-4); }
.bonus-card ul li { display: flex; gap: var(--space-2); align-items: flex-start; color: var(--color-text-muted); padding-block: var(--space-1); }
.bonus-card ul svg { width: 18px; height: 18px; color: var(--color-accent-deep); flex-shrink: 0; margin-top: 4px; }
.bonus-value { font-weight: 800; color: var(--color-navy); font-size: var(--text-sm); }
.bonus-value .value-strike { color: var(--color-text-muted); text-decoration: line-through; font-weight: 600; margin-right: var(--space-2); }

/* Old vs New */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); align-items: stretch; }
@media (max-width: 820px) { .compare { grid-template-columns: 1fr; } }
.compare-panel { border-radius: var(--radius-lg); padding: var(--space-6); }
.compare-old { background: var(--color-surface-offset); border: 1px solid var(--color-divider); }
.compare-new { background: var(--color-surface-tint); border: 2px solid var(--color-accent); }
.compare-panel h3 { font-size: var(--text-lg); font-weight: 800; margin-bottom: var(--space-4); }
.compare-old h3 { color: var(--color-text-muted); }
.compare-new h3 { color: var(--color-accent-deep); }
.compare-panel ul { list-style: none; }
.compare-panel li { display: flex; gap: var(--space-2); align-items: flex-start; padding-block: var(--space-2); }
.compare-panel svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 4px; }
.compare-old svg { color: #b3402f; }
.compare-new svg { color: var(--color-accent-deep); }
.compare-old li { color: var(--color-text-muted); }
.compare-new li { color: var(--color-text); }
.compare-new li strong { color: var(--color-navy); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); align-items: center; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.split img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; }

/* Situations */
.situation-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
@media (max-width: 720px) { .situation-grid { grid-template-columns: 1fr; } }
.situation {
  display: flex; gap: var(--space-3); align-items: flex-start;
  background: var(--color-surface); border: 1px solid var(--color-divider);
  border-radius: var(--radius-md); padding: var(--space-4) var(--space-5);
}
.situation svg { width: 22px; height: 22px; color: var(--color-blue); flex-shrink: 0; margin-top: 3px; }
.situation p { color: var(--color-text); font-weight: 600; }
.root-cause {
  text-align: center; font-size: var(--text-lg); font-weight: 700; color: var(--color-navy);
  max-width: 56ch; margin: var(--space-8) auto 0;
}
.root-cause strong { color: var(--color-primary); }

/* Guarantee */
.guarantee-card {
  max-width: 860px; margin-inline: auto; text-align: center;
  background: var(--color-surface); border: 2px solid var(--color-blue);
  border-radius: var(--radius-xl); padding: clamp(var(--space-6), 4vw, var(--space-12));
  box-shadow: var(--shadow-lg);
}
.guarantee-card .shield { width: 64px; height: 64px; margin: 0 auto var(--space-4); color: var(--color-blue); }
.guarantee-card h3 { font-size: var(--text-xl); font-weight: 800; color: var(--color-navy); margin-bottom: var(--space-4); }
.guarantee-card p { margin-inline: auto; color: var(--color-text-muted); }
.guarantee-points { list-style: none; text-align: left; max-width: 560px; margin: var(--space-6) auto; }
.guarantee-points li { display: flex; gap: var(--space-3); align-items: flex-start; padding-block: var(--space-2); color: var(--color-text); }
.guarantee-points svg { width: 22px; height: 22px; color: var(--color-accent-deep); flex-shrink: 0; margin-top: 3px; }

/* Scrollers recap */
.recap { background: var(--color-navy); color: #e8ecf4; }
.recap .section-kicker { color: #9fc9a8; }
.recap .section-title { color: #ffffff; }
.recap-list { list-style: none; margin-bottom: var(--space-8); }
.recap-list li { display: flex; gap: var(--space-3); align-items: flex-start; padding-block: var(--space-2); }
.recap-list svg { width: 22px; height: 22px; color: #7fce7c; flex-shrink: 0; margin-top: 3px; }
.recap-list strong { color: #ffffff; }
.recap-list span.txt { color: #c3cbdb; }
.recap .cta-note a { color: #ffffff; text-decoration: underline; }
.recap .cta-note { color: #c3cbdb; }

/* FAQ */
.faq { max-width: 820px; margin-inline: auto; }
.faq details { background: var(--color-surface); border: 1px solid var(--color-divider); border-radius: var(--radius-md); margin-bottom: var(--space-3); box-shadow: var(--shadow-md); }
.faq summary {
  cursor: pointer; list-style: none; padding: var(--space-4) var(--space-6);
  font-weight: 700; color: var(--color-navy); font-size: var(--text-base);
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-4);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.5rem; font-weight: 400; color: var(--color-primary); line-height: 1; flex-shrink: 0; }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { padding: 0 var(--space-6) var(--space-5); color: var(--color-text-muted); }

/* Final CTA */
.final-cta { background: linear-gradient(in oklab, var(--color-primary), #6d1114); color: #fff; text-align: center; }
.final-cta h2 { font-size: var(--text-xl); font-weight: 800; color: #fff; max-width: 26ch; margin-inline: auto; }
.final-cta p { margin: var(--space-5) auto 0; max-width: 60ch; color: #f4d9da; }
.final-cta .btn { margin-top: var(--space-8); background: #fff; color: var(--color-primary); box-shadow: var(--shadow-lg); }
.final-cta .btn:hover { background: var(--color-surface-offset); color: var(--color-primary-hover); }
.final-cta .cta-note { color: #e9c8ca; }
.final-cta .cta-note a { color: #fff; text-decoration: underline; }
.final-sign { margin-top: var(--space-6); font-weight: 700; color: #fff; }
.final-sign small { display: block; font-weight: 400; color: #e9c8ca; margin-top: var(--space-1); }

/* Footer */
.site-footer { background: var(--color-surface-offset); border-top: 1px solid var(--color-divider); padding-block: var(--space-10); font-size: var(--text-sm); color: var(--color-text-muted); }
.site-footer .footer-brand { font-weight: 800; color: var(--color-navy); margin-bottom: var(--space-3); }
.site-footer p { max-width: none; margin-bottom: var(--space-3); }
.site-footer a { color: var(--color-navy); font-weight: 600; }
.footer-legal { border-top: 1px solid var(--color-divider); margin-top: var(--space-6); padding-top: var(--space-6); }

/* Mobile call bar */
.call-bar { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: 72px; }
  .call-bar {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
    background: var(--color-primary); color: #fff; text-decoration: none;
    align-items: center; justify-content: center; gap: var(--space-2);
    font-weight: 800; padding: var(--space-4); font-size: 1.063rem;
    box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.15);
  }
  .call-bar svg { width: 20px; height: 20px; }
}
