/* ================================================================
   OMNIFIT — AI systems for fitness businesses
   Design system: dark premium-tech · Trust & Authority
   Brand: coral #F4664C (from legacy #D95A4E) · sage #DCE8CE
   Logical properties throughout → one sheet serves RTL + LTR
   ================================================================ */

:root {
  --bg: #0B0E13;
  --bg-2: #10141C;
  --bg-3: #161B25;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #EDEBE6;
  --muted: #A9B1BD;
  --coral: #F4664C;
  --coral-soft: rgba(244, 102, 76, 0.12);
  --coral-line: rgba(244, 102, 76, 0.35);
  --sage: #DCE8CE;
  --whatsapp: #1FA855;
  --radius: 14px;
  --radius-lg: 22px;
  --font-display: "Heebo", sans-serif;
  --font-body: "Assistant", "Heebo", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
  --z-nav: 50;
  --max: 1120px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

html, body { overflow-x: hidden; overflow-x: clip; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--coral); color: #fff; }

.container { max-width: var(--max); margin-inline: auto; padding-inline: 24px; }

/* ---------- typography ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 900; line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.15rem; font-weight: 700; }
p  { color: var(--muted); }
.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); max-width: 34em; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--coral);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--coral); display: inline-block; }

.accent { color: var(--coral); }
.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: embed; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 14px; inset-inline: 14px; z-index: var(--z-nav);
  max-width: var(--max); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 18px;
  background: rgba(11, 14, 19, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-family: var(--font-display); font-weight: 900; font-size: 1.05rem; letter-spacing: 0.04em; }
.brand svg { display: block; }
.nav-links { display: flex; gap: 26px; list-style: none; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 0.95rem; font-weight: 600; transition: color 0.2s; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--text); }
.nav-cta-group { display: flex; align-items: center; gap: 14px; }
.lang-switch { color: var(--muted); text-decoration: none; font-family: var(--font-mono); font-size: 0.78rem; border: 1px solid var(--line); border-radius: 8px; padding: 5px 10px; transition: border-color .2s, color .2s; }
.lang-switch:hover { color: var(--text); border-color: var(--line-strong); }
@media (max-width: 860px) { .nav-links { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 12px 26px;
  border-radius: 12px; border: 1px solid transparent;
  font-family: var(--font-body); font-size: 1rem; font-weight: 700;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.btn:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; }
.btn-primary { background: var(--coral); color: #14100E; }
.btn-primary:hover { background: #FF7A60; box-shadow: 0 6px 30px rgba(244, 102, 76, 0.35); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--coral-line); color: var(--coral); }
.btn-wa { background: var(--whatsapp); color: #fff; }
.btn-wa:hover { background: #23BD60; box-shadow: 0 6px 30px rgba(31, 168, 85, 0.35); }
.btn svg { flex: none; }

/* ---------- hero ---------- */
.hero { padding: 150px 0 80px; position: relative; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 420px at 82% 8%, rgba(244, 102, 76, 0.10), transparent 65%),
    radial-gradient(520px 380px at 8% 90%, rgba(220, 232, 206, 0.05), transparent 65%);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; position: relative; }
.hero-grid > * { min-width: 0; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { margin: 18px 0 20px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-note { margin-top: 18px; font-size: 0.85rem; color: var(--muted); font-family: var(--font-mono); }
/* IBM Plex Mono has no Hebrew glyphs — fall back to body font for Hebrew UI text */
html[lang="he"] .hero-note, html[lang="he"] .stat small { font-family: var(--font-body); }

/* phone mock */
.phone {
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  border-radius: 30px;
  padding: 18px 16px 22px;
  max-width: min(360px, 100%);
  margin-inline: auto;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.phone-head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.phone-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--coral); display: grid; place-items: center; font-family: var(--font-display); font-weight: 900; font-size: 0.75rem; color: #14100E; }
.phone-title { font-size: 0.9rem; font-weight: 700; }
.phone-sub { font-size: 0.72rem; color: var(--whatsapp); font-family: var(--font-mono); }
.chat { display: flex; flex-direction: column; gap: 10px; min-height: 300px; }
.bubble {
  max-width: 85%; padding: 10px 14px; border-radius: 16px;
  font-size: 0.92rem; line-height: 1.5;
  opacity: 0; transform: translateY(10px);
  animation: bubble-in 0.45s ease forwards;
}
.bubble .t { display: block; font-family: var(--font-mono); font-size: 0.62rem; color: rgba(255,255,255,0.4); margin-top: 5px; direction: ltr; text-align: end; }
.bubble.in  { background: var(--bg-3); border: 1px solid var(--line); align-self: flex-start; border-start-start-radius: 4px; }
.bubble.out { background: #0E3D24; border: 1px solid rgba(31,168,85,0.35); align-self: flex-end; border-start-end-radius: 4px; }
.bubble:nth-child(1) { animation-delay: 0.4s; }
.bubble:nth-child(2) { animation-delay: 1.3s; }
.bubble:nth-child(3) { animation-delay: 2.3s; }
.bubble:nth-child(4) { animation-delay: 3.2s; }
.bubble:nth-child(5) { animation-delay: 4.1s; }
@keyframes bubble-in { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .bubble { opacity: 1; transform: none; } }
.chat-caption { margin-top: 14px; text-align: center; font-family: var(--font-mono); font-size: 0.72rem; color: var(--coral); }

/* ---------- stats strip ---------- */
.stats { border-block: 1px solid var(--line); background: var(--bg-2); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { padding: 34px 22px; text-align: center; }
.stat + .stat { border-inline-start: 1px solid var(--line); }
.stat b { display: block; font-family: var(--font-mono); font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--text); font-weight: 500; }
.stat span { font-size: 0.9rem; color: var(--muted); }
.stat small { display:block; margin-top: 6px; font-size: 0.68rem; color: rgba(169,177,189,.55); font-family: var(--font-mono); }
@media (max-width: 720px) { .stats-grid { grid-template-columns: 1fr; } .stat + .stat { border-inline-start: 0; border-block-start: 1px solid var(--line); } }

/* ---------- sections ---------- */
.section { padding: 96px 0; }
.section-head { max-width: 620px; margin-bottom: 54px; }
.section-head h2 { margin: 16px 0 14px; }

/* ---------- tiers ---------- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
@media (max-width: 960px) { .tiers { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }
.tier {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px 26px; display: flex; flex-direction: column;
  transition: border-color 0.25s, transform 0.25s;
}
.tier:hover { border-color: var(--line-strong); }
.tier.featured { background: linear-gradient(180deg, rgba(244,102,76,0.09), rgba(244,102,76,0.02) 45%), var(--bg-2); border-color: var(--coral-line); position: relative; }
.tier-badge {
  position: absolute; top: -13px; inset-inline-start: 26px;
  background: var(--coral); color: #14100E;
  font-size: 0.72rem; font-weight: 700; font-family: var(--font-mono);
  padding: 4px 12px; border-radius: 99px; letter-spacing: 0.08em;
}
.tier-name { font-family: var(--font-mono); font-size: 0.8rem; color: var(--coral); letter-spacing: 0.12em; }
.tier h3 { font-size: 1.35rem; margin: 10px 0 4px; }
.tier-for { font-size: 0.88rem; color: var(--muted); min-height: 2.6em; }
.tier-price { margin: 22px 0 4px; font-family: var(--font-mono); }
.tier-price b { font-size: 1.9rem; font-weight: 500; color: var(--text); }
.tier-price span { font-size: 0.85rem; color: var(--muted); }
.tier-setup { font-size: 0.8rem; color: var(--muted); font-family: var(--font-mono); margin-bottom: 20px; }
.tier ul { list-style: none; display: flex; flex-direction: column; gap: 11px; padding-block: 20px; border-block-start: 1px solid var(--line); margin-block-end: 26px; flex: 1; }
.tier li { display: flex; gap: 10px; font-size: 0.94rem; color: var(--text); align-items: flex-start; }
.tier li svg { flex: none; margin-top: 4px; color: var(--coral); }
.tier .btn { width: 100%; }
.tier-sla { margin-top: 14px; font-size: 0.8rem; color: var(--sage); background: rgba(220,232,206,0.06); border: 1px solid rgba(220,232,206,0.14); border-radius: 10px; padding: 10px 12px; text-align: center; }

/* ---------- ROI calculator ---------- */
.roi { background: var(--bg-2); border-block: 1px solid var(--line); }
.roi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .roi-grid { grid-template-columns: 1fr; } }
.roi-controls { display: flex; flex-direction: column; gap: 26px; }
.ctrl label { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; font-size: 0.95rem; margin-bottom: 10px; }
.ctrl output { font-family: var(--font-mono); color: var(--coral); font-size: 1rem; }
input[type="range"] {
  width: 100%; appearance: none; -webkit-appearance: none; height: 4px; border-radius: 2px;
  background: linear-gradient(to left, var(--coral) var(--fill, 50%), var(--bg-3) var(--fill, 50%));
  cursor: pointer;
}
html[dir="ltr"] input[type="range"] { background: linear-gradient(to right, var(--coral) var(--fill, 50%), var(--bg-3) var(--fill, 50%)); }
input[type="range"]::-webkit-slider-thumb {
  appearance: none; -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--text); border: 5px solid var(--coral); cursor: pointer;
  transition: box-shadow 0.2s;
}
input[type="range"]:focus-visible { outline: 2px solid var(--coral); outline-offset: 4px; }
input[type="range"]::-webkit-slider-thumb:hover { box-shadow: 0 0 0 7px var(--coral-soft); }
input[type="range"]::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--text); border: 5px solid var(--coral); cursor: pointer; }
.roi-result {
  background: var(--bg); border: 1px solid var(--coral-line); border-radius: var(--radius-lg);
  padding: 36px 32px; text-align: center; position: sticky; top: 110px;
}
.roi-result .label { font-size: 0.9rem; color: var(--muted); }
.roi-figure { font-family: var(--font-mono); font-weight: 500; font-size: clamp(2.4rem, 6vw, 3.6rem); color: var(--coral); margin: 10px 0 4px; direction: ltr; }
.roi-sub { font-size: 0.95rem; color: var(--text); margin-bottom: 26px; }
.roi-sub b { color: var(--sage); }
.roi-assump { margin-top: 26px; text-align: start; }
.roi-assump summary { cursor: pointer; font-size: 0.8rem; color: var(--muted); font-family: var(--font-mono); }
.roi-assump p { font-size: 0.8rem; margin-top: 10px; line-height: 1.7; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px 26px; position: relative; }
.step-num { font-family: var(--font-mono); font-size: 0.78rem; color: var(--coral); letter-spacing: 0.15em; }
.step h3 { margin: 12px 0 10px; }
.step p { font-size: 0.94rem; }

/* ---------- founder ---------- */
.founder { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 44px; }
@media (max-width: 760px) { .founder { grid-template-columns: 1fr; text-align: center; } .founder-mark { margin-inline: auto; } }
.founder-mark { width: 120px; height: 120px; border-radius: 50%; border: 2px solid var(--coral-line); background: var(--coral-soft); display: grid; place-items: center; }
.founder h2 { font-size: 1.6rem; margin-bottom: 12px; }
.founder p { max-width: 56em; }
.founder-points { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; list-style: none; }
@media (max-width: 760px) { .founder-points { justify-content: center; } }
.founder-points li { font-size: 0.82rem; font-family: var(--font-mono); color: var(--sage); border: 1px solid rgba(220,232,206,0.2); border-radius: 99px; padding: 6px 14px; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin-inline: auto; display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color 0.2s; }
.faq details[open] { border-color: var(--coral-line); }
.faq summary { cursor: pointer; padding: 20px 24px; font-weight: 700; font-size: 1.02rem; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); color: var(--coral); font-size: 1.3rem; transition: transform 0.25s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 24px 22px; color: var(--muted); font-size: 0.96rem; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; padding: 110px 24px; background: radial-gradient(560px 320px at 50% 0%, rgba(244,102,76,0.13), transparent 70%), var(--bg); border-block-start: 1px solid var(--line); }
.cta-band h2 { max-width: 17em; margin: 16px auto 14px; }
.cta-band .actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* ---------- footer ---------- */
footer { border-block-start: 1px solid var(--line); padding: 44px 0 60px; }
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.foot p, .foot a { color: var(--muted); font-size: 0.85rem; text-decoration: none; }
.foot a:hover { color: var(--text); }
.foot-links { display: flex; gap: 22px; }
.foot-tag { width: 100%; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: 0.72rem; color: rgba(169,177,189,0.55); }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.on { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
