/* ─────────────────────────────────────────────────────────────────────────────
   FITNDEX — Main Stylesheet
   Serves: index.html
   ───────────────────────────────────────────────────────────────────────────── */

/* ─── Tokens ─── */
:root {
  /* Surface */
  --bg: #ffffff;
  --tile: #f5f5f7;
  --header-bg: #000000;

  /* Text */
  --text: #1d1d1f;
  --muted: #6e6e73;

  /* Brand */
  --blue: #06c;
  --blue-hover: #0077ed;
  --blue-soft: rgba(0, 102, 204, 0.14);

  /* State */
  --success: #0a7f2e;
  --success-soft: rgba(10, 127, 46, 0.10);
  --warn: #b97309;
  --warn-soft: rgba(185, 115, 9, 0.10);
  --error: #b42318;
  --error-soft: rgba(180, 35, 24, 0.10);
  --gray-soft: rgba(110, 110, 115, 0.10);

  /* Layout */
  --max: 1240px;
  --header-h: 64px;
  --line: rgba(29, 29, 31, 0.12);

  /* Motion */
  --dur: 0.18s;
  --ease: ease;
}

/* ─── Reset ─── */
* { box-sizing: border-box; }
html { margin: 0; padding: 0; }
html, body { margin: 0; padding: 0; }

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

a { text-decoration: none; }
img { display: block; max-width: 100%; }

/* Hide scrollbar */
.hide-scrollbar {
  -ms-overflow-style: none;   /* IE and Edge */
  scrollbar-width: none;       /* Firefox */
  overflow-y: scroll;          /* Show scrollbar space but hide it */
}
.hide-scrollbar::-webkit-scrollbar {
  display: none;               /* Chrome, Safari and Opera */
}

/* ─────────────────────────────────────────────────────────────────────────────
   Header
   ───────────────────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--header-bg);
  color: #fff;
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  height: var(--header-h);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  white-space: nowrap;
}

.brand-mark {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  background: #fff;
  -webkit-mask: url("/assets/img/FITNDEX_Icon.png") no-repeat center;
  -webkit-mask-size: contain;
  mask: url("/assets/img/FITNDEX_Icon.png") no-repeat center;
  mask-size: contain;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  line-height: 1;
}

.brand-name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  color: #fff;
}

.brand-tagline {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .01em;
  color: rgba(255, 255, 255, 0.55);
}

/* Nav */
.header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.nav-link {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  padding: 6px 12px;
  border-radius: 999px;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
  white-space: nowrap;
}

.nav-link:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }

.nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), box-shadow var(--dur) var(--ease), opacity var(--dur) var(--ease);
  white-space: nowrap;
}

.nav-btn:hover            { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18); }
.nav-btn-primary          { background: var(--blue); color: #fff; }
.nav-btn-primary:hover    { background: var(--blue-hover); box-shadow: 0 4px 16px rgba(0, 102, 204, 0.30); }
.nav-btn-ghost            { background: rgba(255,255,255,0.08); color: #fff; border: 1px solid rgba(255,255,255,0.16); }
.nav-btn-ghost:hover      { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.26); }

/* Hamburger (mobile) */
.header-menu {
  position: relative;
  flex: 0 0 auto;
  display: none;
  margin-left: auto;
}

.menu-toggle {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.header-menu:hover .menu-toggle,
.header-menu:focus-within .menu-toggle {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
}

.menu-toggle-lines {
  width: 16px;
  height: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.menu-toggle-lines span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: #fff;
}

.menu-toggle-lines span:nth-child(2) { width: 70%; }

.nav-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 200px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur) var(--ease);
  pointer-events: none;
}

.header-menu:hover .nav-dropdown,
.header-menu:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-dropdown a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 12px;
  border-radius: 10px;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.nav-dropdown a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }

.nav-dropdown-sep {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 4px 0;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Main layout
   ───────────────────────────────────────────────────────────────────────────── */
main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 24px 64px;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Hero
   ───────────────────────────────────────────────────────────────────────────── */
.hero {
  background: var(--tile);
  border-radius: 28px;
  min-height: calc(100vh - var(--header-h) - 56px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 22% 108%, rgba(0, 102, 204, 0.10) 0%, transparent 60%),
    radial-gradient(ellipse 55% 45% at 78% -5%,  rgba(107, 63, 204, 0.08) 0%, transparent 55%);
  animation: heroAura 14s ease-in-out infinite;
}

.hero-inner {
  width: 100%;
  max-width: 720px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero h1 {
  margin: 0;
  font-size: clamp(40px, 6.5vw, 72px);
  line-height: 1.01;
  letter-spacing: -0.05em;
  font-weight: 700;
  color: var(--text);
}

.hero-sub {
  margin: 18px auto 0;
  max-width: 560px;
  font-size: clamp(17px, 2.2vw, 22px);
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--muted);
}

.hero-actions {
  margin-top: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Buttons
   ───────────────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 28px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition:
    transform var(--dur) var(--ease),
    background var(--dur) var(--ease),
    color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    opacity var(--dur) var(--ease);
  text-decoration: none;
}

.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10); }

.btn-primary       { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); box-shadow: 0 4px 20px rgba(0, 102, 204, 0.28); }

.btn-ghost         { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover   { border-color: rgba(29, 29, 31, 0.28); background: rgba(29, 29, 31, 0.04); }

.btn-secondary       { background: transparent; color: var(--blue); border: 1px solid var(--blue); }
.btn-secondary:hover { background: var(--blue-soft); }

.btn-full { width: 100%; }

.btn-link {
  background: transparent;
  color: var(--blue);
  border: none;
  padding: 0;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: gap var(--dur) var(--ease), opacity var(--dur) var(--ease), color var(--dur) var(--ease);
}

.btn-link:hover { gap: 8px; opacity: 0.8; }

.btn-ghost-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  font-family: inherit;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.btn-ghost-sm:hover { color: var(--error); border-color: rgba(180,35,24,0.35); background: var(--error-soft); }

/* ─────────────────────────────────────────────────────────────────────────────
   Features
   ───────────────────────────────────────────────────────────────────────────── */
.features {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-row {
  background: var(--tile);
  border-radius: 28px;
  padding: 56px 64px;
  display: flex;
  align-items: center;
  gap: 64px;
  transition: box-shadow 0.3s var(--ease);
}

.feature-row:hover    { box-shadow: 0 8px 36px rgba(0, 0, 0, 0.07); }
.feature-row.reverse  { flex-direction: row-reverse; }

.feature-content { flex: 1 1 0; min-width: 0; }

.feature-eyebrow {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.feature-content h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 3.5vw, 38px);
  line-height: 1.06;
  letter-spacing: -0.04em;
  font-weight: 700;
  color: var(--text);
}

.feature-desc {
  margin: 0 0 28px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--muted);
}

.feature-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.feature-actions .btn { min-height: 42px; padding: 0 20px; font-size: 14px; }

/* Feature visuals */
.feature-visual {
  flex: 0 0 380px;
  height: 300px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}

.feature-visual-inner {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fv-workout {
  background: linear-gradient(140deg, #e8f0fe 0%, #c7d9fd 35%, #d4e4fe 65%, #e8f0fe 100%);
  background-size: 200% 200%;
  animation: gradDrift 10s ease-in-out infinite;
}

.fv-score {
  background: linear-gradient(140deg, #e6f9f1 0%, #bbf0d8 35%, #d0f2e4 65%, #e6f9f1 100%);
  background-size: 200% 200%;
  animation: gradDrift 10s ease-in-out infinite;
  animation-delay: -2.5s;
}

.fv-coach {
  background: linear-gradient(140deg, #fef3e8 0%, #fdddb7 35%, #fde8cc 65%, #fef3e8 100%);
  background-size: 200% 200%;
  animation: gradDrift 10s ease-in-out infinite;
  animation-delay: -5s;
}

.fv-progress {
  background: linear-gradient(140deg, #f0eafe 0%, #ddd0fc 35%, #e6dafd 65%, #f0eafe 100%);
  background-size: 200% 200%;
  animation: gradDrift 10s ease-in-out infinite;
  animation-delay: -7.5s;
}

.fv-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.65);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.10);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.feature-row:hover .fv-icon {
  transform: scale(1.08) translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14);
}

.fv-icon svg { width: 36px; height: 36px; }

/* ─────────────────────────────────────────────────────────────────────────────
   Footer
   ───────────────────────────────────────────────────────────────────────────── */
.site-footer {
  margin-top: 40px;
  padding: 20px 24px 28px;
  background: var(--bg);
}

.footer-inner { max-width: var(--max); margin: 0 auto; }

.footer-divider { height: 1px; background: var(--line); margin-bottom: 14px; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}

.footer-right {
  margin-left: auto;
  display: flex;
  gap: 4px;
  align-items: center;
}

.footer-right a {
  color: var(--muted);
  font-size: 12px;
  transition: color var(--dur) var(--ease);
}

.footer-right a:hover { color: var(--text); }

.footer-sep { margin: 0 4px; color: var(--line); }

/* ─────────────────────────────────────────────────────────────────────────────
   Modal system
   ───────────────────────────────────────────────────────────────────────────── */
body.modal-open { overflow: hidden; }

.site-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.site-modal[hidden] { display: none; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: mBackdropIn 220ms ease both;
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 620px;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  background: var(--bg);
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  overscroll-behavior: contain;
  animation: mPanelIn 280ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.modal-panel-lg { max-width: 780px; }

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 22px;
}

.modal-eyebrow {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.modal-title {
  margin: 0;
  font-size: clamp(22px, 3.5vw, 30px);
  line-height: 1.06;
  letter-spacing: -0.04em;
  font-weight: 700;
  color: var(--text);
}

.modal-close {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.modal-close:hover { background: rgba(29,29,31,0.06); color: var(--text); border-color: rgba(29,29,31,0.24); }
/* ─── Modal tabs ─── */
.modal-tab {
  flex: 0 0 auto;
  padding: 14px 0;
  margin: 0;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: color var(--dur) var(--ease);
  position: relative;
  padding-right: 20px;
}

.modal-tab:first-child { padding-left: 24px; }
.modal-tab:not(:last-child)::after { content: ''; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 1px; height: 16px; background: var(--line); }

.modal-tab:hover { color: var(--text); }
.modal-tab.active { color: var(--blue); }

.modal-tab-content {
  padding: 24px;
  animation: fadeIn 200ms var(--ease) both;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
/* ─── Modal card (inner sections) ─── */
.modal-card {
  background: var(--tile);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 14px;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Forms
   ───────────────────────────────────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; font-weight: 600; color: var(--text); }

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid rgba(29, 29, 31, 0.14);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  padding: 12px 16px;
  outline: none;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236e6e73' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.field textarea { min-height: 100px; resize: vertical; }

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: rgba(0, 102, 204, 0.65);
  box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.10);
}

.form-grid { display: flex; flex-direction: column; gap: 14px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.form-status           { margin-top: 12px; font-size: 14px; min-height: 20px; }
.form-status.success   { color: var(--success); }
.form-status.error     { color: var(--error); }
.check-actions { margin-top: 14px; }
.status-msg { margin-top: 12px; font-size: 14px; min-height: 20px; }
.status-msg.error { color: var(--error); }

.result { display: none; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 6px 0 4px; animation: fdFadeUp 400ms cubic-bezier(0.2,0.7,0.2,1) both; }
.result-badge { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; animation: fdBadgePop 500ms cubic-bezier(0.2,0.8,0.2,1.05) both; }
.result-badge.success { background: linear-gradient(150deg, #34d399 0%, #10b981 60%, #059669 100%); box-shadow: 0 12px 28px rgba(16,185,129,0.30), inset 0 1px 0 rgba(255,255,255,0.3); }
.result-badge.warn    { background: linear-gradient(150deg, #fcd34d 0%, #f59e0b 60%, #d97706 100%); box-shadow: 0 12px 28px rgba(245,158,11,0.28), inset 0 1px 0 rgba(255,255,255,0.3); }
.result-badge.danger  { background: linear-gradient(150deg, #fca5a5 0%, #ef4444 60%, #b91c1c 100%); box-shadow: 0 12px 28px rgba(239,68,68,0.28), inset 0 1px 0 rgba(255,255,255,0.3); }
.result-headline { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; margin: 0; color: var(--text); }
.result-lead { font-size: 14px; line-height: 1.55; color: var(--muted); margin: 0; max-width: 340px; }
.result-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.result-pill.ok { background: var(--success-soft); color: var(--success); border: 1px solid rgba(10,127,46,0.22); }
.result-pill.pending { background: var(--warn-soft); color: var(--warn); border: 1px solid rgba(185,115,9,0.22); }
.result-pill-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.result-countdown { font-size: 13px; color: var(--muted); margin: 0; }
.result-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }
/* ─────────────────────────────────────────────────────────────────────────────
   Success state
   ───────────────────────────────────────────────────────────────────────────── */
.success-state {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 8px 4px;
  animation: fdFadeUp 520ms cubic-bezier(.2,.7,.2,1) both;
}

.success-state.on { display: flex; }

.success-badge {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, #34d399 0%, #10b981 60%, #059669 100%);
  box-shadow: 0 14px 30px rgba(16, 185, 129, 0.32), inset 0 1px 0 rgba(255,255,255,0.3);
  animation: fdBadgePop 560ms cubic-bezier(0.2, 0.8, 0.2, 1.05) both;
  animation-delay: 80ms;
}

.success-headline { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; color: var(--text); margin: 0; }
.success-lead     { font-size: 15px; line-height: 1.55; color: var(--muted); margin: 0; max-width: 460px; }
.success-detail   { font-size: 13px; color: var(--muted); line-height: 1.55; max-width: 440px; margin: 0; }
.success-detail strong { color: var(--text); font-weight: 600; }
.success-actions  { margin-top: 4px; display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* Info pills */
.info-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

.info-pill.email-ok      { background: var(--success-soft); border: 1px solid rgba(10,127,46,0.22);  color: var(--success); }
.info-pill.email-pending { background: var(--warn-soft);    border: 1px solid rgba(185,115,9,0.22); color: var(--warn); }

.info-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 22%, transparent);
}

/* ─────────────────────────────────────────────────────────────────────────────
   Beta admin (tester table)
   ───────────────────────────────────────────────────────────────────────────── */
.list-header { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 14px; gap: 12px; flex-wrap: wrap; }
.list-title  { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; margin: 0; }
.list-meta   { font-size: 13px; color: var(--muted); }

.tester-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.tester-table th,
.tester-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tester-table th { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); border-bottom-width: 2px; }
.tester-table tbody tr:last-child td { border-bottom: none; }
.tester-table .col-email  { font-weight: 500; word-break: break-all; }
.tester-table .col-date   { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; font-size: 13px; }
.tester-table .col-action { text-align: right; white-space: nowrap; }

.pill          { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; border: 1px solid transparent; }
.pill-invited  { background: var(--blue-soft);    color: var(--blue);    border-color: rgba(0,102,204,0.22); }
.pill-accepted { background: var(--success-soft); color: var(--success); border-color: rgba(10,127,46,0.22); }
.pill-canceled { background: var(--gray-soft);    color: var(--muted);   border-color: rgba(110,110,115,0.22); }
.pill-expired  { background: var(--warn-soft);    color: var(--warn);    border-color: rgba(185,115,9,0.22); }

.empty { text-align: center; padding: 28px 12px; color: var(--muted); font-size: 14px; }

/* ─────────────────────────────────────────────────────────────────────────────
   fd-overlay (busy spinner)
   ───────────────────────────────────────────────────────────────────────────── */
.fd-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  place-items: center;
  padding: 18px 12px;
  background:
    radial-gradient(80% 60% at 50% 40%, var(--blue-soft), transparent 70%),
    rgba(245, 245, 247, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.fd-overlay.on { display: grid; animation: fdOvFadeIn 220ms ease both; }

.fd-card {
  width: min(360px, calc(100vw - 24px));
  padding: 28px 22px 22px;
  border-radius: 22px;
  border: 1px solid rgba(29,29,31,0.10);
  background: rgba(255,255,255,0.95);
  box-shadow: 0 30px 80px rgba(15,23,42,0.16), inset 0 1px 0 rgba(255,255,255,0.8);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  animation: fdCardPop 320ms cubic-bezier(0.2, 0.8, 0.2, 1.05) both;
}

.fd-orb-wrap { position: relative; width: 96px; height: 96px; display: grid; place-items: center; margin-top: 2px; }

.fd-aura {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0,102,204,0.45) 0%, transparent 70%);
  filter: blur(8px);
  animation: fdBreathe 2400ms ease-in-out infinite;
}

.fd-orb {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background:
    radial-gradient(60% 60% at 50% 35%, rgba(255,255,255,0.24), transparent 60%),
    linear-gradient(150deg, #4a9eff 0%, #06c 55%, #003e80 100%);
  box-shadow: 0 18px 38px rgba(0,102,204,0.38), inset 0 1px 0 rgba(255,255,255,0.25);
  display: grid;
  place-items: center;
}

.fd-orb-inner {
  width: 60%;
  height: 60%;
  border-radius: 50%;
  background: radial-gradient(60% 60% at 50% 40%, rgba(255,255,255,0.22), rgba(255,255,255,0) 70%);
  display: grid;
  place-items: center;
  animation: fdGlyphPulse 1800ms ease-in-out infinite;
}

.fd-ring-a, .fd-ring-b { position: absolute; border-radius: 50%; border: 1.5px solid transparent; pointer-events: none; }
.fd-ring-a { inset: -8px;  border-top-color: rgba(0,102,204,0.85);  border-right-color: rgba(0,102,204,0.30);  animation: fdSpinA 1800ms linear infinite; }
.fd-ring-b { inset: -16px; border-bottom-color: rgba(74,158,255,0.85); border-left-color: rgba(74,158,255,0.30); animation: fdSpinB 2600ms linear infinite reverse; }

.fd-title      { font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; color: var(--text); text-align: center; margin-top: 4px; }
.fd-status-box { position: relative; width: 100%; height: 22px; overflow: hidden; }
.fd-status     { position: absolute; inset: 0; display: grid; place-items: center; font-size: 0.82rem; font-weight: 500; color: var(--muted); opacity: 0; transform: translateY(6px); transition: opacity 380ms var(--ease), transform 380ms var(--ease); }
.fd-status.on  { opacity: 1; transform: translateY(0); }
.fd-bar        { width: 100%; height: 4px; border-radius: 999px; background: rgba(29,29,31,0.08); overflow: hidden; position: relative; margin-top: 2px; }
.fd-bar-fill   { position: absolute; inset: 0; width: 40%; border-radius: 999px; background: linear-gradient(90deg, transparent, rgba(0,102,204,0.85), transparent); animation: fdSweep 1600ms ease-in-out infinite; }

/* ─────────────────────────────────────────────────────────────────────────────
   Keyframes
   ───────────────────────────────────────────────────────────────────────────── */
@keyframes heroAura {
  0%, 100% { opacity: 0.65; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.06); }
}

@keyframes gradDrift {
  0%, 100% { background-position: 0% 50%; }
  50%       { background-position: 100% 50%; }
}

@keyframes mBackdropIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes mPanelIn {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes fdFadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fdBadgePop {
  from { transform: scale(0.6); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

@keyframes fdOvFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fdCardPop  { from { transform: translateY(8px) scale(0.98); opacity: 0; } to { transform: translateY(0) scale(1); opacity: 1; } }
@keyframes fdBreathe  { 0%,100% { transform: scale(1); opacity: 0.85; } 50% { transform: scale(1.08); opacity: 1; } }
@keyframes fdGlyphPulse { 0%,100% { transform: scale(1); opacity: 0.96; } 50% { transform: scale(1.08); opacity: 1; } }
@keyframes fdSpinA    { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes fdSpinB    { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes fdSweep    { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }

/* ─────────────────────────────────────────────────────────────────────────────
   Accessibility
   ───────────────────────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .hero::before,
  .fv-workout, .fv-score, .fv-coach, .fv-progress,
  .fd-aura, .fd-orb-inner, .fd-ring-a, .fd-ring-b, .fd-bar-fill,
  .modal-backdrop, .modal-panel, .success-badge, .success-state {
    animation: none !important;
  }
}

/* ─────────────────────────────────────────────────────────────────────────────
   Responsive
   ───────────────────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .feature-row { padding: 40px 36px; gap: 40px; }
  .feature-visual { flex: 0 0 280px; height: 240px; }
}

@media (max-width: 700px) {
  .header-nav  { display: none; }
  .header-menu { display: flex; }

  main { padding: 16px 14px 48px; }

  .hero { padding: 48px 20px; border-radius: 20px; }
  .hero-actions .btn { width: 100%; }

  .features { gap: 12px; }

  .feature-row {
    flex-direction: column !important;
    padding: 32px 24px;
    gap: 32px;
    border-radius: 20px;
  }

  .feature-visual { flex: none; width: 100%; height: 220px; }
  .footer-right   { margin-left: 0; }
}

@media (max-width: 680px) {
  .modal-panel { padding: 20px; border-radius: 22px; }
  .form-row    { grid-template-columns: 1fr; }
  .tester-table thead .col-date,
  .tester-table tbody .col-date { display: none; }
}
