/* =========================================================
   FLEXI MOVE — DESIGN SYSTEM
   Palette: warm clinical-trust meets active relief
   ========================================================= */
:root {
  --ink: #1f2a2e; /* deep charcoal-teal, body text / headers */
  --ink-soft: #4b5a5e; /* muted text */
  --canvas: #fbf7f0; /* warm cream page background */
  --canvas-alt: #f1eae0; /* alternating section background */
  --brand: #f7631c; /* Flexi Move signature orange */
  --brand-dark: #c94e12; /* pressed / hover state */
  --brand-tint: #fee7d8; /* light orange wash */
  --calm: #4f7c77; /* sage-teal, "science / trust" accent */
  --calm-tint: #e4eeec;
  --line: #e4dacb; /* hairline border */
  --white: #ffffff;

  --font-display: "Fraunces", "Georgia", serif;
  --font-body:
    "Sora", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;
  --shadow-soft: 0 20px 45px -25px rgba(31, 42, 46, 0.35);
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--canvas);
  line-height: 1.65;
  font-size: 20px;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.01em;
}
h1 {
  font-size: clamp(2.4rem, 4.5vw, 3.75rem);
  line-height: 1.05;
  font-weight: 600;
}
h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  line-height: 1.15;
}
h3 {
  font-size: clamp(1.25rem, 2vw, 1.6rem);
}
p {
  color: var(--ink-soft);
}

.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: var(--calm);
  font-weight: 600;
}

a {
  color: var(--brand-dark);
  text-decoration: none;
}
a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--calm);
  outline-offset: 3px;
}

.container-narrow {
  max-width: 1500px;
  margin: 0 auto;
  padding-inline: 1.25rem;
}

/* ---------- Buttons ---------- */
.btn-flexi {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--brand);
  color: var(--white);
  border: none;
  padding: 1rem 2rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 14px 30px -12px rgba(247, 99, 28, 0.55);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}
.btn-flexi:hover {
  background: var(--brand-dark);
  transform: translateY(-2px);
  color: var(--white);
  box-shadow: 0 18px 34px -12px rgba(201, 78, 18, 0.6);
}
.btn-outline-flexi {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
  padding: 0.95rem 2rem;
  border-radius: 999px;
  font-weight: 600;
  transition: all 0.18s ease;
}
.btn-outline-flexi:hover {
  background: var(--ink);
  color: var(--white);
}

/* ---------- Nav ---------- */
.flexi-nav {
  background: rgba(251, 247, 240, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.flexi-nav .navbar-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--ink);
}
.flexi-nav .navbar-brand span {
  color: var(--brand);
}
.flexi-nav .nav-link {
  color: var(--ink);
  font-weight: 500;
}
.flexi-nav .nav-link:hover {
  color: var(--brand);
}

/* ---------- Hero ---------- */
.hero {
  padding: 4.5rem 0 3rem;
  background:
    radial-gradient(circle at 85% 10%, var(--brand-tint) 0%, transparent 45%),
    var(--canvas);
  overflow: hidden;
}
.hero .badge-trust {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--calm-tint);
  color: var(--calm);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}
.hero-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.hero-stats .stat-num {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--brand);
  display: block;
}
.hero-stats .stat-label {
  font-size: 0.8rem;
  color: var(--ink-soft);
}

/* Signature element: nerve/joint relief pathway */
.relief-pathway-wrap {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 1.5rem;
  border: 1px solid var(--line);
}
.relief-path {
  fill: none;
  stroke: var(--line);
  stroke-width: 3;
}
.relief-path-active {
  fill: none;
  stroke: var(--brand);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-dasharray: 14 260;
  animation: travel 3.2s linear infinite;
}
@keyframes travel {
  0% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: -274;
  }
}
.relief-node {
  fill: var(--calm);
}
.relief-node.hot {
  fill: var(--brand);
}

/* ---------- Sections generic ---------- */
section {
  padding: 4.5rem 0;
}
.section-alt {
  background: var(--canvas-alt);
}
.section-head {
  max-width: 680px;
  margin-bottom: 2.75rem;
}
.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.card-flexi {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  height: 100%;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.card-flexi:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}
.card-flexi .icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--brand-tint);
  color: var(--brand-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

/* image placeholder block, per master-prompt spec */
.image-placeholder {
  background: var(--calm-tint);
  border: 1.5px dashed var(--calm);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 0.35rem;
  padding: 1.25rem 1.5rem;
  min-height: 220px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-soft);
}
.image-placeholder strong {
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.85rem;
}

/* ---------- How it works timeline ---------- */
.step-row {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.step-num {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--brand);
  border: 1.5px solid var(--brand);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-row + .step-row {
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px dashed var(--line);
}

/* ---------- Ingredients ---------- */
.ingredient-card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  padding: 1.5rem;
  height: 100%;
}
.ingredient-dose {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--calm);
  background: var(--calm-tint);
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  display: inline-block;
  margin-top: 0.5rem;
}

/* ---------- Reviews ---------- */
.review-card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  padding: 1.75rem;
  height: 100%;
}
.review-stars {
  color: var(--brand);
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
}
.review-name {
  font-weight: 700;
  font-family: var(--font-display);
}
.review-tag {
  font-size: 0.75rem;
  color: var(--ink-soft);
  font-family: var(--font-mono);
}
.disclosure-note {
  font-size: 0.72rem;
  color: var(--ink-soft);
  font-style: italic;
  margin-top: 0.5rem;
}

/* ---------- Pricing ---------- */
.price-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 2px solid var(--line);
  padding: 2rem;
  height: 100%;
  position: relative;
  text-align: center;
  transition:
    border-color 0.2s ease,
    transform 0.2s ease;
}
.price-card:hover {
  transform: translateY(-4px);
}
.price-card.featured {
  border-color: var(--brand);
  box-shadow: var(--shadow-soft);
}
.price-card .ribbon {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  white-space: nowrap;
}
.price-card .price-big {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--brand);
}
.price-card .price-per {
  color: var(--ink-soft);
  font-size: 0.85rem;
}
.price-card .price-old {
  text-decoration: line-through;
  color: #b7aba0;
}

/* ---------- Guarantee ---------- */
.guarantee-seal {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 2.5px dashed var(--calm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: var(--calm);
  font-family: var(--font-mono);
  text-align: center;
  font-size: 0.75rem;
  margin-inline: auto;
}
.guarantee-seal strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--ink);
  display: block;
}

/* ---------- FAQ ---------- */
.accordion-flexi .accordion-item {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
}
.accordion-flexi .accordion-button {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  background: transparent;
  padding: 1.25rem 0;
  box-shadow: none;
}
.accordion-flexi .accordion-button:not(.collapsed) {
  color: var(--brand-dark);
  background: transparent;
}
.accordion-flexi .accordion-button::after {
  filter: none;
}
.accordion-flexi .accordion-body {
  padding: 0 0 1.25rem;
  color: var(--ink-soft);
}

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  background: var(--white);
  border-top: 1px solid var(--line);
  padding: 0.75rem 1rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 -10px 30px -20px rgba(0, 0, 0, 0.4);
}
.sticky-cta .price-mini {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--brand);
}
@media (min-width: 992px) {
  .sticky-cta {
    display: none;
  }
}

/* ---------- Footer ---------- */
footer.flexi-footer {
  background: var(--ink);
  color: #d8dedf;
  padding: 3.5rem 0 2rem;
  margin-bottom: 0;
}
footer.flexi-footer a {
  color: #d8dedf;
}
footer.flexi-footer a:hover {
  color: var(--brand);
}
footer.flexi-footer .brand-mark {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 1.3rem;
}
footer.flexi-footer .disclaimer-box {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 2rem;
  padding-top: 1.5rem;
  font-size: 0.78rem;
  color: #9ba6a7;
}

/* ---------- Legal pages ---------- */
.legal-page {
  padding: 3.5rem 0 5rem;
}
.legal-page h1 {
  margin-bottom: 0.5rem;
}
.legal-page .updated {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-bottom: 2rem;
}
.legal-page h2 {
  font-size: 1.4rem;
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
}
.legal-page p,
.legal-page li {
  color: var(--ink-soft);
}

/* ---------- 404 ---------- */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.error-page .code {
  font-family: var(--font-mono);
  font-size: 5rem;
  color: var(--brand);
  font-weight: 700;
}

/* responsive tweaks */
@media (max-width: 767.98px) {
  section {
    padding: 3rem 0;
  }
  .hero {
    padding-top: 2.5rem;
    text-align: left;
  }
  body {
    padding-bottom: 68px;
  } /* room for sticky cta */
}
