/* ============================================================
   Landing page design system — Elite Trainer Architect

   Extends the app's own dark palette (same --accent cyan / --accent2
   violet / --green / --orange tokens the logged-in product already
   uses) rather than inventing a separate marketing identity — a
   trainer who clicks through from this page to the real login screen
   should feel continuity, not a bait-and-switch.

   Type system:
     Display — Manrope: humanist, rounded terminals, built for
       numbers and short declarative lines. Used sparingly, at scale.
     Body — Inter: quiet, does not compete with Manrope.
     Data/mono — JetBrains Mono: for anything that reads like a
       measurement — week counts, percentages, RPE/tempo/rest badges —
       echoing the badge treatment already used inside the real app.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@500;600&display=swap');

:root {
  --bg:#12141f; --bg2:#181b2c; --panel:#1c1f33; --panel2:#242840;
  --accent:#4fc3f7; --accent2:#7c83fd; --green:#43d6a0; --orange:#ffa552; --red:#ff6b6b;
  --text:#eef1fb; --text2:#98a0c3; --text3:#666e93; --border:#2c2f4a;
  --font-display: 'Manrope', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

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

html { scroll-behavior: smooth; }

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

img, svg { display: block; max-width: 100%; }

a { color: inherit; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ── Nav ── */
.lnav {
  position: sticky; top: 0; z-index: 40; background: rgba(18,20,31,0.88);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--border);
}
.lnav-row { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; }
.lnav-brand { font-family: var(--font-display); font-weight: 700; font-size: 17px; text-decoration: none; color: var(--text); }
.lnav-links { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.lnav-links a { font-size: 14px; font-weight: 500; color: var(--text2); text-decoration: none; }
.lnav-links a:hover { color: var(--text); }
.lnav-cta {
  background: var(--accent); color: #0a0c14; padding: 9px 18px; border-radius: 8px;
  font-weight: 600; font-size: 14px; text-decoration: none;
}
.lnav-cta:hover { filter: brightness(1.08); }
.lnav-switch {
  font-size: 12px; color: var(--text3); border: 1px solid var(--border); padding: 6px 12px;
  border-radius: 20px; text-decoration: none;
}
.lnav-switch:hover { border-color: var(--accent); color: var(--accent); }

/* ── Hero ── */
.hero { padding: 88px 0 64px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.eyebrow {
  font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent2); margin-bottom: 18px; display: block;
}
.hero h1 {
  font-family: var(--font-display); font-size: 46px; line-height: 1.08; font-weight: 700;
  letter-spacing: -0.01em; margin-bottom: 22px;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub { font-size: 17px; color: var(--text2); max-width: 480px; margin-bottom: 32px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-primary-l {
  background: var(--accent); color: #0a0c14; padding: 14px 24px; border-radius: 9px;
  font-weight: 600; font-size: 15px; text-decoration: none; display: inline-block;
}
.btn-primary-l:hover { filter: brightness(1.08); }
.btn-ghost-l {
  border: 1px solid var(--border); color: var(--text); padding: 14px 24px; border-radius: 9px;
  font-weight: 600; font-size: 15px; text-decoration: none; display: inline-block;
}
.btn-ghost-l:hover { border-color: var(--accent2); }

/* ── Sections ── */
.section { padding: 72px 0; border-top: 1px solid var(--border); }
.section-head { max-width: 620px; margin-bottom: 48px; }
.section-eyebrow {
  font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text3); margin-bottom: 12px; display: block;
}
.section h2 {
  font-family: var(--font-display); font-size: 30px; font-weight: 700; letter-spacing: -0.01em;
  margin-bottom: 14px; line-height: 1.2;
}
.section-lead { color: var(--text2); font-size: 16px; }

/* ── Feature grid ── */
.fgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.fgrid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.fcard { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 26px; }
.fcard-icon { font-size: 22px; margin-bottom: 14px; }
.fcard h3 { font-family: var(--font-display); font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.fcard p { color: var(--text2); font-size: 14px; }

/* ── Modality badges ── */
.mod-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.mod-badge {
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 600; padding: 9px 16px;
  border-radius: 20px; border: 1px solid var(--border); color: var(--text2);
}
.mod-badge.on { border-color: var(--accent); color: var(--accent); background: rgba(79,195,247,0.08); }

/* ── Workflow steps (trainers page — genuine sequence) ── */
.wf-list { display: flex; flex-direction: column; }
.wf-step { display: grid; grid-template-columns: 64px 1fr; gap: 22px; padding: 26px 0; border-top: 1px solid var(--border); }
.wf-step:first-child { border-top: none; }
.wf-num { font-family: var(--font-mono); font-size: 13px; color: var(--accent2); font-weight: 600; padding-top: 3px; }
.wf-step h3 { font-family: var(--font-display); font-size: 19px; font-weight: 600; margin-bottom: 6px; }
.wf-step p { color: var(--text2); font-size: 14.5px; max-width: 560px; }

/* ── Stat row ── */
.stat-row { display: flex; gap: 40px; flex-wrap: wrap; }
.stat b { font-family: var(--font-display); font-size: 30px; display: block; color: var(--accent); }
.stat span { font-size: 13px; color: var(--text2); }

/* ── CTA band ── */
.cta-band {
  background: linear-gradient(135deg, var(--panel), var(--panel2));
  border: 1px solid var(--border); border-radius: 20px; padding: 56px 48px;
  text-align: center; margin: 0 auto;
}
.cta-band h2 { font-family: var(--font-display); font-size: 28px; margin-bottom: 14px; }
.cta-band p { color: var(--text2); margin-bottom: 28px; }

/* ── Contact form ── */
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: start; }
.contact-form {
  background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 28px;
}
.contact-form .f { margin-bottom: 16px; }
.contact-form label { display: block; font-size: 12px; font-weight: 600; color: var(--text2); margin-bottom: 6px; }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%; padding: 11px 13px; border-radius: 9px; border: 1px solid var(--border);
  background: var(--bg2); color: var(--text); font-family: var(--font-body); font-size: 14px;
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
  outline: 2px solid var(--accent); border-color: var(--accent);
}
/* The dropdown POPUP is rendered using each <option>'s own color, not
   inherited from the closed <select> — without this, a dark theme's
   options render as light text on the browser's default white popup. */
.contact-form select option { background: var(--bg2); color: var(--text); }
.contact-form .row2 { display: flex; gap: 14px; }
.contact-form .row2 .f { flex: 1; min-width: 0; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Searchable trainer picker — replaces a giant <select> once the
   trainer list is large. */
.trainer-picker { position: relative; }
.trainer-picker-selected {
  display: none; align-items: center; gap: 8px; padding: 9px 13px; border-radius: 9px;
  border: 1px solid var(--accent); background: var(--bg2); font-size: 14px; color: var(--text);
}
.trainer-picker-selected.showing { display: flex; }
.trainer-picker-clear {
  margin-left: auto; background: none; border: none; color: var(--text3); cursor: pointer;
  font-size: 18px; line-height: 1; padding: 0 2px;
}
.trainer-picker-results {
  display: none; position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 20;
  background: var(--bg2); border: 1px solid var(--border); border-radius: 9px;
  max-height: 240px; overflow-y: auto; box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}
.trainer-picker-results.showing { display: block; }
.trainer-picker-option {
  display: block; width: 100%; text-align: left; padding: 10px 13px; background: none;
  border: none; border-bottom: 1px solid var(--border); color: var(--text); font-size: 14px;
  cursor: pointer; font-family: var(--font-body);
}
.trainer-picker-option:last-child { border-bottom: none; }
.trainer-picker-option:hover, .trainer-picker-option:focus { background: var(--panel); outline: none; }
.trainer-picker-empty { padding: 12px 13px; font-size: 13px; color: var(--text3); }
.contact-sent {
  background: rgba(67,214,160,0.1); border: 1px solid var(--green); color: var(--green);
  padding: 14px 18px; border-radius: 10px; font-size: 14px; margin-bottom: 24px;
}
.contact-direct {
  background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 28px;
  display: flex; flex-direction: column;
}
.contact-direct-line {
  font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--accent);
  text-decoration: none; margin-bottom: 10px;
}
.contact-direct-line:hover { text-decoration: underline; }

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-form .row2 { flex-direction: column; gap: 0; }
}

/* ── Footer ── */
.lfooter { border-top: 1px solid var(--border); padding: 32px 0; }
.lfooter-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.lfooter-row span { font-size: 13px; color: var(--text3); }
.lfooter-row a { font-size: 13px; color: var(--text3); text-decoration: none; }
.lfooter-row a:hover { color: var(--text2); }

/* ── Mock UI card (hero visual) ── */
.mock-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 4px;
  box-shadow: 0 30px 70px -20px rgba(0,0,0,0.55);
}
.mock-inner { background: var(--bg2); border-radius: 13px; padding: 20px; }
.mock-topline { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.mock-day { font-family: var(--font-display); font-weight: 700; font-size: 14px; }
.mock-mods { font-family: var(--font-mono); font-size: 11px; color: var(--text3); }
.mock-ex-row { display: flex; align-items: flex-start; gap: 10px; padding: 12px 0; border-top: 1px solid var(--border); }
.mock-ex-row:first-of-type { border-top: none; }
.mock-box {
  flex: 0 0 20px; width: 20px; height: 20px; border-radius: 6px; border: 2px solid var(--text3); margin-top: 2px;
}
.mock-box.checked { background: var(--green); border-color: var(--green); position: relative; }
.mock-box.checked::after {
  content: "\2713"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: #0a0c14; font-weight: 900;
}
.mock-ex-name { font-weight: 600; font-size: 13.5px; }
.mock-ex-presc { font-size: 12px; color: var(--text2); margin-top: 2px; }
.mock-badges { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.mock-badge { font-family: var(--font-mono); font-size: 10px; padding: 2px 7px; border-radius: 6px; background: var(--panel2); color: var(--accent2); }
.mock-progress-wrap { background: var(--panel2); border-radius: 20px; height: 8px; overflow: hidden; margin-top: 16px; }
.mock-progress-bar { height: 100%; background: linear-gradient(90deg, var(--accent2), var(--accent)); border-radius: 20px; width: 0%; transition: width 1.8s cubic-bezier(.2,.8,.2,1); }
.mock-progress-label { font-family: var(--font-mono); font-size: 11px; color: var(--text3); margin-top: 8px; }

/* ── Volume chart hero visual (trainers page) ── */
.vchart-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 26px;
  box-shadow: 0 30px 70px -20px rgba(0,0,0,0.55);
}
.vchart-title { font-family: var(--font-mono); font-size: 12px; color: var(--text3); margin-bottom: 18px; text-transform: uppercase; letter-spacing: .06em; }
.vchart-bars { display: flex; align-items: flex-end; gap: 10px; height: 160px; }
.vchart-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.vchart-bar { width: 100%; border-radius: 5px 5px 0 0; transition: height 1.6s cubic-bezier(.2,.8,.2,1); height: 0%; }
.vchart-bar.load { background: linear-gradient(180deg, var(--accent2), var(--accent)); }
.vchart-bar.deload { background: var(--orange); }
.vchart-lbl { font-family: var(--font-mono); font-size: 10px; color: var(--text3); margin-top: 8px; }
.vchart-legend { display: flex; gap: 18px; margin-top: 18px; font-size: 12px; color: var(--text2); }
.vchart-swatch { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 6px; }

/* ── "Builder vs generator" comparison section ── */
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.compare-col { border-radius: 16px; padding: 28px; border: 1px solid var(--border); background: var(--panel); }
.compare-them { opacity: 0.7; }
.compare-us { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.compare-label {
  display: block; font-family: var(--font-display); font-weight: 700; font-size: 14px;
  margin-bottom: 18px; text-transform: uppercase; letter-spacing: .04em;
}
.compare-them .compare-label { color: var(--text3); }
.compare-us .compare-label { color: var(--accent); }
.compare-list { list-style: none; display: flex; flex-direction: column; gap: 15px; }
.compare-list li { font-size: 14.5px; line-height: 1.55; padding-left: 28px; position: relative; }
.compare-them .compare-list li { color: var(--text3); }
.compare-them .compare-list li::before { content: '\2715'; position: absolute; left: 0; top: 1px; font-weight: 700; }
.compare-us .compare-list li { color: var(--text); }
.compare-us .compare-list li::before { content: '\2713'; position: absolute; left: 0; top: 1px; color: var(--accent); font-weight: 700; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
  .fgrid { grid-template-columns: 1fr; }
  .wf-step { grid-template-columns: 40px 1fr; }
  .cta-band { padding: 40px 24px; }
  .lnav-links { display: none; }
  .compare-grid { grid-template-columns: 1fr; }
  .fgrid-2 { grid-template-columns: 1fr; }
}

/* ── Trial / pricing (trainers page) ── */
.hero-note { font-size: 12px; color: var(--text2); margin-top: 12px; }
.fact-list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin: 22px 0 0; }
.fact-list li { font-size: 14.5px; color: var(--text2); line-height: 1.5; padding-left: 26px; position: relative; }
.fact-list li::before { content: '\2713'; position: absolute; left: 0; top: 1px; color: var(--accent); font-weight: 700; }
.pricing-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 28px;
}
.pricing-card h3 { margin: 0 0 18px; font-size: 18px; }
.promo-banner {
  background: var(--orange); color: #0a0c14; font-weight: 700; font-size: 13.5px;
  text-align: center; padding: 10px 14px; border-radius: 10px; margin: -6px -6px 18px;
}
.price-row {
  display: grid; grid-template-columns: 80px 1fr; gap: 2px 14px;
  padding: 13px 0; border-bottom: 1px solid var(--border); align-items: baseline;
}
.price-row:last-of-type { border-bottom: none; }
.price-tier { font-weight: 700; color: var(--accent); font-size: 14px; grid-row: span 2; }
.price-amount { font-size: 20px; font-weight: 700; }
.price-per { font-size: 12px; color: var(--text2); font-weight: 400; }
.price-note { font-size: 12px; color: var(--text2); }
.hint-small { font-size: 11.5px; color: var(--text2); margin-top: 10px; line-height: 1.5; }

/* ── Flash messages on landing pages ── */
.landing-flash-wrap { padding-top: 18px; }
.landing-flash {
  background: var(--panel); border: 1px solid var(--accent); border-radius: 10px;
  padding: 12px 16px; font-size: 14px; margin-bottom: 8px;
}
.landing-flash-error { border-color: #ff6b6b; color: #ff9b9b; }
