:root {
  --primary: #266f26;
  --bg: #ffffff;
  --text: #0b0f14;
  --muted: #4b5a52;
  --radius: 14px;
  --ring-c1: #266f26;
  --ring-c2: #22c55e;
  --ring-speed: 3s;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Vazirmatn", system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  line-height: 1.8;
}
.brand {
  color: var(--primary);
  font-size: 25px;
  font-weight: bold;
}
a {
  color: inherit;
  text-decoration: none;
}
.container {
  max-width: 1140px;
  margin-inline: auto;
  padding: 0 16px;
}
.section {
  padding: clamp(48px, 8vw, 80px) 0;
}
.section.alt {
  background: #f9fafb;
}
.section-title {
  text-align: center;
  margin: 0 0 18px;
  font-size: clamp(22px, 3.2vw, 32px);
}
.muted {
  color: var(--muted);
  text-align: justify;
}
.muted-download {
  text-align: center;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  transition: box-shadow 0.2s;
}
.site-header.scrolled {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
}
.menu {
  display: flex;
  gap: 16px;
  align-items: center;
}
.menu a {
  padding: 8px 6px;
  border-radius: 8px;
}
.menu a:hover {
  background: #f3f4f6;
}
.nav-cta {
  margin-inline-start: 8px;
}
.burger {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  font-size: 20px;
}
@media (max-width: 860px) {
  .menu,
  .nav-cta {
    display: none;
  }
  .burger {
    display: inline-flex;
  }
  .mobile-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
  }
  .mobile-menu a {
    padding: 10px 12px;
    border-radius: 8px;
  }
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  opacity: 0.95;
}
.btn-outline {
  background: #fff;
  border-color: var(--primary);
  color: var(--primary);
}
.btn-outline:hover {
  background: #f3fff7;
}
.hero {
  position: relative;
  padding-top: clamp(36px, 6vw, 64px);
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
  pointer-events: none;
  z-index: -1;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}
.hero-copy h1 {
  margin: 0 0 8px;
  font-size: clamp(26px, 4.2vw, 40px);
  line-height: 1.28;
  color: #266f26 !important;
}
.lead {
  color: var(--muted);
  margin: 0 0 18px;
}
.cta-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.bmi-card {
  margin-top: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px;
}
.bmi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
  align-items: end;
}
.bmi-card input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
}
#bmi-out {
  font-weight: 800;
  padding: 8px 10px;
  border-radius: 10px;
  background: #f3fff7;
  color: #065f2f;
}
.phone {
  width: clamp(260px, 36vw, 360px);
  aspect-ratio: 9/18;
  border: 2px solid #e5e7eb;
  border-radius: 28px;
  padding: 10px;
  background: #111;
  position: relative;
  margin-inline: auto;
}
.phone::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 30%;
  height: 6px;
  background: #1f2937;
  border-radius: 6px;
}
.screen {
  position: absolute;
  inset: 14px;
  border-radius: 20px;
  overflow: hidden;
}
.screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.screen img.active {
  opacity: 1;
}
.athlete {
  margin-top: 14px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}
.feature-card {
  position: relative;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 16px;
  overflow: hidden;
  background: #fff;
  transform: none;
  opacity: 1;
  border-color: var(--primary);
}

.feature-card h3 {
  margin: 0 0 6px;
  font-size: clamp(16px, 2.4vw, 20px);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 900px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .cta-row {
    display: none;
  }
  .hero-copy h1 {
    font-size: 25px;
    text-align: center;
    margin-bottom: 40px;
  }
}
.lead-form input:focus-visible {
  outline-color: var(--primary);
}
.lead-form textarea:focus-visible {
  outline-color: var(--primary);
}
.step-box {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 16px;
  background: #fff;
  transform: none;
  opacity: 1;
}

.step-box .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 900px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}
.price-card {
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  padding: 18px;
  background: #fff;
  text-align: center;
  transform: none;
  opacity: 1;
  position: relative;
}
.price-card:hover {
  border-color: var(--primary);
  cursor: pointer;
  transition: all 1s;
}
.price-card h3 {
  color: var(--primary);
  font-size: 30px;
  margin: 10px 0 15px 0px;
}
.price-card .price {
  margin: 6px 0 12px;
  font-size: 28px;
  font-weight: bold;
}
.send {
  text-align: center;
  display: inline;
}
.price-card ul {
  list-style: "✓ ";
  text-align: right;
  margin: 0 0 12px;
  padding-inline-start: 16px;
}
.price-card .ribbon {
  position: absolute;
  top: -1px;
  inset-inline-end: -6px;
  background: var(--primary);
  color: #fff;
  padding: 6px 10px;
  border-radius: 14px 0 0 0px;
  font-weight: 800;
  left: -1px;
}
.price-card.highlight {
  box-shadow: 0 10px 24px rgba(22, 163, 74, 0.12);
}
.accordion {
  max-width: 820px;
  margin: 0 auto;
}
.acc-item {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  margin-bottom: 10px;
  background: #fff;
  overflow: hidden;
  transform: none;
  opacity: 1;
}

.acc-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-weight: 700;
}
.acc-btn img {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}
.acc-btn[aria-expanded="true"] img {
  transform: rotate(180deg);
}
.acc-panel {
  padding: 0 14px 12px;
  color: var(--muted);
}
.lead-form {
  display: grid;
  gap: 10px;
  max-width: 460px;
  margin: 0 auto;
}
.lead-form input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
}
.lead-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
}
.site-footer {
  border-top: 1px solid #e5e7eb;
}
.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

to {
  opacity: 1;
  transform: none;
}
to {
  opacity: 1;
  transform: none;
}

/* === Continuous rotating gradient border === */
@keyframes spin360 {
  to {
    transform: rotate(360deg);
  }
}
/* For users preferring reduced motion, stop it */
/* @media (prefers-reduced-motion: reduce) {
  .feature-card::before,
  .price-card::before {
    animation: none;
  }
} */
.feature-card,
.price-card {
  position: relative;
}
/* .feature-card::before,
.price-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 0;
  background: conic-gradient(
    from 0deg,
    var(--ring-c1),
    var(--ring-c2),
    var(--ring-c1)
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: spin360 var(--ring-speed) linear infinite;
} */
.feature-card::after,
.price-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: #fff;
  z-index: 0;
}
.feature-card > *,
.price-card > * {
  position: relative;
  z-index: 1;
}

/* Sprite runner */

@keyframes runsteps {
  from {
    background-position: 0 0;
  }
  to {
    background-position: -960px 0;
  }
} /* 6*160 = 960 */

/* Toggle button (floating) */

@media (max-width: 560px) {
}

@media (max-width: 560px) {
}

/* Side positions */

@media (max-width: 560px) {
}

/* Sprite with variable speed */

@keyframes runsteps {
  from {
    background-position: 0 0;
  }
  to {
    background-position: -1920px 0;
  }
} /* 12*160 */

/* Reveal exit animations */
.reveal.out-up {
  animation: slideOutUp 0.45s ease both;
}
.reveal.out-down {
  animation: slideOutDown 0.45s ease both;
}
@keyframes slideOutUp {
  from {
    opacity: 1;
    transform: none;
  }
  to {
    opacity: 0;
    transform: translateY(-22px);
  }
}
@keyframes slideOutDown {
  from {
    opacity: 1;
    transform: none;
  }
  to {
    opacity: 0;
    transform: translateY(22px);
  }
}

/* Scrollable mock content inside phone */
.screen {
  position: absolute;
  inset: 14px;
  border-radius: 20px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
}
.mock-list {
  display: grid;
  gap: 10px;
  padding: 12px;
}
.mock-item {
  border-radius: 12px;
  padding: 14px 12px;
  color: #0b0f14;
  font-weight: 700;
  border: 1px solid #e5e7eb;
}
.mock-item.tone-1 {
  background: linear-gradient(135deg, #ecfdf5, #ffffff);
}
.mock-item.tone-2 {
  background: linear-gradient(135deg, #f0fdf4, #ffffff);
}
.mock-item.tone-3 {
  background: linear-gradient(135deg, #f5fef9, #ffffff);
}
.mock-item.tone-4 {
  background: linear-gradient(135deg, #eefcf7, #ffffff);
}
.mock-item.tone-5 {
  background: linear-gradient(135deg, #effdf5, #ffffff);
}

/* BMI section (two-column) */
.bmi-section-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  align-items: stretch;
}
@media (max-width: 900px) {
  .bmi-section-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}
.bmi-card.standalone {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 16px;
  background: #fff;
}
.bmi-card .small {
  font-size: 0.85rem;
}
.bmi-visual {
  border: 1px dashed #d1d5db;
  border-radius: 14px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(
    45deg,
    #f9fafb,
    #f9fafb 12px,
    #ffffff 12px,
    #ffffff 24px
  );
}
.bmi-visual .ph {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 12px;
  background: linear-gradient(135deg, #e6ffe6, #ffffff);
  border: 1px solid #e5e7eb;
}

/* Hero slider (auto-activated when images exist) */
.slider {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  overflow: hidden;
}
.slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.slider img.active {
  opacity: 1;
}

/* BMI picture slot */
.bmi-pic {
  display: block;
  width: 100%;
  height: auto;
}
.bmi-pic img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

/* Ensure hidden truly hides */
[hidden] {
  display: none !important;
}

/* Mobile drawer menu */
@media (max-width: 860px) {
  .mobile-menu {
    position: fixed;
    top: 56px;
    inset-inline-end: 0;
    inset-inline-start: auto;
    inset-block-end: 0;
    width: min(86vw, 360px);
    background: #fff;
    border-inline-start: 1px solid #e5e7eb;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 60;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: calc(100dvh - 56px);
    overflow: auto;
  }
  .mobile-menu.open {
    transform: translateX(0);
  }
  .menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: saturate(120%) blur(2px);
    z-index: 50;
  }
}
/* Burger visible on mobile already; add z-index */
.burger {
  z-index: 61;
}

/* Buttons inherit font */
button,
input,
select,
textarea {
  font: inherit;
}

/* Phone mock slider */
.mock-slider {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
}
.mock-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease;
}
.mock-slide {
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  color: #0b0f14;
  border: 1px solid #e5e7eb;
}
.mock-slide.tone-1 {
  background: linear-gradient(135deg, #ecfdf5, #ffffff);
}
.mock-slide.tone-2 {
  background: linear-gradient(135deg, #f0fdf4, #ffffff);
}
.mock-slide.tone-3 {
  background: linear-gradient(135deg, #f5fef9, #ffffff);
}
.mock-slide.tone-4 {
  background: linear-gradient(135deg, #eefcf7, #ffffff);
}
.mock-slide.tone-5 {
  background: linear-gradient(135deg, #effdf5, #ffffff);
}

/* Repeatable reveal animations based on direction */
.reveal {
}
.reveal.in-left {
  animation: swipeInLeft 0.45s ease both;
}
.reveal.in-right {
  animation: swipeInRight 0.45s ease both;
}
.reveal.out-left {
  animation: swipeOutLeft 0.3s ease both;
}
.reveal.out-right {
  animation: swipeOutRight 0.3s ease both;
}
@keyframes swipeInLeft {
  from {
    opacity: 0;
    transform: translateX(-22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes swipeInRight {
  from {
    opacity: 0;
    transform: translateX(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes swipeOutLeft {
  from {
    opacity: 1;
    transform: none;
  }
  to {
    opacity: 0;
    transform: translateX(-18px);
  }
}
@keyframes swipeOutRight {
  from {
    opacity: 1;
    transform: none;
  }
  to {
    opacity: 0;
    transform: translateX(18px);
  }
}

/* Accordion improvements */
.acc-btn {
  font-family: inherit;
}
.acc-panel[hidden] {
  display: none !important;
}

/* ToTop button */
.to-top {
  position: fixed;
  right: 14px;
  bottom: 16px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #0b0f14;
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  z-index: 40;
  display: grid;
  place-items: center;
}
.to-top[hidden] {
  display: none;
}

html,
body {
  overflow-x: hidden;
}

.feature-card:hover {
  border-color: var(--ring-c2);
  box-shadow: 0 8px 22px rgba(22, 163, 74, 0.08);
  transform: translateY(-2px);
  cursor: pointer;
}
.step-box:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 22px rgba(22, 163, 74, 0.08);
  transform: translateY(-2px);
}
.contact-list {
  display: grid;
  gap: 8px;
  max-width: 640px;
  margin: 0 auto;
  padding: 0;
  font-size: 17px;
  font-weight: 600;
  list-style: none;
}
.contact-list a {
  color: var(--primary);
}

/* Prevent horizontal scroll & overscroll issues */
html,
body {
  overflow-x: hidden;
}
body.lock-scroll {
  height: 100dvh;
  overflow: hidden;
  touch-action: none;
}

/* Safer media sizing */
img,
svg,
video {
  max-width: 100%;
  height: auto;
}

/* Header active link */
.nav a.active {
  color: var(--primary);
  font-weight: 800;
}

/* ToTop icon style */
.to-top {
  font-size: 18px;
  line-height: 1;
}

/* Cards hover fine-tune */
.feature-card,
.step-box {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

/* Section containers avoid overflow */
.container {
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: 16px;
}

/* Hero visual containment */
.hero-visual {
  overflow: hidden;
}

#lead-form input.invalid,
#lead-form textarea.invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}
