/* FitForma static site — shared styles.
   Brand colors mirror the app: navy #0B1118, blue #006BFF, green #00D08E. */

:root {
  --bg: #0B1118;
  --surface: #121A24;
  --surface-2: #1A2533;
  --border: #223145;
  --text: #FFFFFF;
  --muted: #9FB0C3;
  --accent: #006BFF;
  --accent-2: #00D08E;
  --accent-soft: rgba(0, 107, 255, 0.14);
  --radius: 18px;
  --maxw: 1080px;
  --maxw-doc: 760px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
}

.section { padding: 56px 0; }

/* ─── Top bar ─────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 17, 24, 0.78);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.brand .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent);
}
.brand .brand-logo {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: block;
}
.brand:hover { text-decoration: none; }

.nav { display: flex; gap: 20px; align-items: center; }
.nav a { color: var(--muted); font-size: 14px; font-weight: 500; }
.nav a:hover { color: var(--text); text-decoration: none; }

/* ─── Language toggle ─────────────────────────────────── */
.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}
.lang-toggle button {
  background: transparent;
  color: var(--muted);
  border: none;
  padding: 6px 12px;
  font-size: 13px;
  cursor: pointer;
  font-weight: 700;
  transition: background 0.15s, color 0.15s;
}
.lang-toggle button.active {
  background: var(--accent);
  color: #fff;
}

/* ─── Hero ────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 72px 0 40px;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  width: 760px;
  height: 760px;
  background: radial-gradient(circle, rgba(0, 107, 255, 0.22), transparent 60%);
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.hero-copy { max-width: 560px; }

.pill {
  display: inline-block;
  background: var(--accent-soft);
  border: 1px solid rgba(0, 107, 255, 0.35);
  color: #bfe0ff;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(36px, 5.4vw, 60px);
  line-height: 1.04;
  margin: 0 0 18px;
  letter-spacing: -0.03em;
  font-weight: 900;
}
.grad {
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p.lead {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--muted);
  max-width: 520px;
  margin: 0 0 30px;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  color: #fff;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 8px 24px rgba(0, 107, 255, 0.30);
  transition: transform 0.12s, filter 0.12s;
}
.btn:hover { text-decoration: none; filter: brightness(1.06); transform: translateY(-1px); }
.btn.secondary {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: none;
}
.play-ico { font-size: 13px; }
.trust { color: var(--muted); font-size: 13.5px; }

/* Phone mockup */
.hero-art { display: flex; justify-content: center; }
.phone {
  position: relative;
  width: 240px;
  height: 480px;
  background: linear-gradient(160deg, #16202c, #0b1118);
  border: 2px solid #2a3a4d;
  border-radius: 38px;
  padding: 14px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
}
.phone-notch {
  position: absolute;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  width: 90px; height: 18px;
  background: #0b1118;
  border-radius: 0 0 14px 14px;
  z-index: 2;
}
.phone-screen {
  height: 100%;
  border-radius: 26px;
  background: radial-gradient(120% 60% at 50% 0%, #16202c, #0b1118);
  padding: 40px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.ring {
  width: 130px; height: 130px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(closest-side, #0e1620 79%, transparent 80% 100%),
    conic-gradient(var(--accent) 68%, #243240 0);
}
.ring-num { font-size: 26px; font-weight: 800; }
.ring-label { font-size: 12px; color: var(--muted); }
.macro { display: flex; gap: 18px; align-items: flex-end; height: 60px; }
.macro div { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.macro .bar { width: 16px; border-radius: 6px 6px 0 0; display: block; }
.macro .bar.p { height: 44px; background: #38BDF8; }
.macro .bar.c { height: 30px; background: var(--accent-2); }
.macro .bar.f { height: 22px; background: #FBBF24; }
.macro small { color: var(--muted); font-size: 11px; }
.rows { width: 100%; display: flex; flex-direction: column; gap: 10px; }
.rows .row { height: 34px; border-radius: 10px; background: #131c27; border: 1px solid #223145; }
.rows .row.short { width: 70%; }

/* ─── Stats strip ─────────────────────────────────────── */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 8px 0 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.stat { text-align: center; }
.stat strong {
  display: block;
  font-size: 30px;
  font-weight: 900;
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat span { color: var(--muted); font-size: 14px; }

/* ─── Section heads ───────────────────────────────────── */
.section-head { text-align: center; max-width: 620px; margin: 0 auto 36px; }
.section-head h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  margin: 0 0 10px;
  letter-spacing: -0.02em;
  font-weight: 800;
}
.section-sub { color: var(--muted); font-size: 17px; margin: 0; }

/* ─── Feature grid ────────────────────────────────────── */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.15s, border-color 0.15s;
}
.card:hover { transform: translateY(-3px); border-color: rgba(0, 107, 255, 0.45); }
.card h3 { margin: 0 0 8px; font-size: 18px; font-weight: 700; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card .ico {
  display: inline-flex;
  width: 46px; height: 46px;
  border-radius: 13px;
  background: var(--accent-soft);
  align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 14px;
}

/* ─── How it works ────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px 24px;
}
.step-n {
  display: inline-flex;
  width: 38px; height: 38px;
  border-radius: 50%;
  align-items: center; justify-content: center;
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 800;
  font-size: 17px;
  margin-bottom: 14px;
}
.step h3 { margin: 0 0 6px; font-size: 18px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

/* ─── Privacy banner ──────────────────────────────────── */
.privacy-banner {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: linear-gradient(120deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 28px;
}
.privacy-banner .big-ico { font-size: 34px; line-height: 1; }
.privacy-banner h3 { margin: 0 0 8px; font-size: 20px; }
.privacy-banner p { margin: 0 0 12px; color: var(--muted); }
.inline-link { font-weight: 600; }

/* ─── Final CTA ───────────────────────────────────────── */
.final-cta {
  text-align: center;
  background:
    radial-gradient(120% 140% at 50% 0%, rgba(0, 107, 255, 0.16), transparent 70%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 54px 24px;
}
.final-cta h2 { font-size: clamp(26px, 3.4vw, 34px); margin: 0 0 10px; font-weight: 800; }
.final-cta p { color: var(--muted); margin: 0 0 24px; font-size: 17px; }

/* ─── Legal / content pages ───────────────────────────── */
.doc {
  max-width: var(--maxw-doc);
  margin: 0 auto;
  padding: 48px 0 80px;
}
.doc h1 { font-size: 32px; margin: 0 0 4px; }
.doc .updated { color: var(--muted); font-size: 14px; margin-bottom: 32px; }
.doc h2 {
  font-size: 21px;
  margin: 36px 0 12px;
  padding-top: 8px;
}
.doc h3 { font-size: 17px; margin: 22px 0 8px; }
.doc p, .doc li { color: #c7d2de; }
.doc ul { padding-left: 20px; }
.doc li { margin-bottom: 6px; }
.doc strong { color: var(--text); }

/* The legal/content pages set a narrower container — override the wide one. */
.doc-page .container { max-width: var(--maxw-doc); }

/* Placeholder highlight — anything still to be filled in. */
.todo {
  background: var(--accent-soft);
  border: 1px dashed var(--accent);
  color: #bfe0ff;
  border-radius: 6px;
  padding: 1px 7px;
  font-size: 0.92em;
  font-weight: 600;
}

.callout {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 16px 18px;
  margin: 20px 0;
}
.callout p { margin: 0; }

/* ─── Footer ──────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 44px 0 32px;
  color: var(--muted);
  font-size: 14px;
  margin-top: 40px;
}
.footer-top { margin-bottom: 26px; }
.footer-tag { margin: 10px 0 0; color: var(--muted); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.footer a { color: var(--muted); }
.footer a:hover { color: var(--text); }
.footer .links { display: flex; gap: 18px; flex-wrap: wrap; }
.credit { margin: 20px 0 0; font-size: 13px; color: #5f6b7a; }

/* ─── Language visibility ─────────────────────────────── */
[data-lang] { display: none; }
[data-lang].lang-visible { display: block; }
span[data-lang].lang-visible,
a[data-lang].lang-visible { display: inline; }

/* ─── Responsive ──────────────────────────────────────── */
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .phone { width: 200px; height: 400px; }
  .hero { padding-top: 48px; }
}
@media (max-width: 560px) {
  .nav { gap: 12px; }
  .nav a { display: none; }
  .stats { grid-template-columns: 1fr; }
  .privacy-banner { flex-direction: column; }
}
