/* ─────────────────────────────────────────────────────────
   Gym Assist — shared marketing site styles
   Used by: index.html, features.html, ai-coach.html,
            progress.html, nutrition.html, pricing.html
───────────────────────────────────────────────────────── */
:root {
  --bg: #0a0a0a;
  --card: #141414;
  --card-hover: #1a1a1a;
  --border: #222;
  --text: #e5e5e5;
  --muted: #888;
  --green: #30d158;
  --blue: #0a84ff;
  --orange: #ff9f0a;
  --purple: #bf5af2;
  --red: #ff453a;
  --cyan: #5ac8fa;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.6;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: 680px; margin: 0 auto; padding: 0 20px; }
.wrap-wide { max-width: 900px; margin: 0 auto; padding: 0 20px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(10,10,10,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 900px; margin: 0 auto; padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; text-decoration: none; }
.nav-icon { width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(135deg,#1a1a1a,#2a2a2a); border:1px solid var(--border); display:flex; align-items:center; justify-content:center; font-size:15px; }
.nav-links { display: flex; gap: 18px; font-size: 13px; color: var(--muted); align-items: center; }
.nav-links a { text-decoration: none; white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-row { display: flex; align-items: center; gap: 18px; }
@media (max-width: 760px) { .nav-links { display: none; } }

/* Lang toggle */
.lang-bar { display: flex; gap: 8px; }
.lang-btn {
  padding: 5px 14px; border-radius: 20px; border: 1px solid var(--border);
  background: var(--card); color: var(--muted); cursor: pointer; font-size: 12px; transition: all .2s;
}
.lang-btn.active { background: var(--green); color: #000; border-color: var(--green); font-weight: 600; }

/* Page hero (sub-pages) */
.page-hero { padding: 56px 20px 40px; text-align: center; position: relative; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; top: -140px; left: 50%; transform: translateX(-50%);
  width: 480px; height: 280px;
  background: radial-gradient(ellipse at center, rgba(48,209,88,.14), transparent 70%);
  pointer-events: none;
}
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .04em;
  color: var(--green); background: rgba(48,209,88,.1); border: 1px solid rgba(48,209,88,.25);
  padding: 5px 12px; border-radius: 20px; margin-bottom: 18px;
}
.page-hero h1 { font-size: clamp(28px, 6vw, 40px); line-height: 1.14; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 14px; }
.page-hero p.sub { color: var(--muted); font-size: 16px; max-width: 480px; margin: 0 auto; }

/* Buttons */
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: 14px;
  font-weight: 600; font-size: 14px; text-decoration: none; transition: transform .15s, opacity .15s;
  border: 1px solid transparent; cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green); color: #000; }
.btn-primary:hover { opacity: .9; }
.btn-secondary { background: var(--card); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { background: var(--card-hover); }

/* Sections */
.section-block { padding: 8px 20px 56px; }
.section-heading { text-align: center; margin-bottom: 32px; }
.section-heading h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 8px; }
.section-heading p { color: var(--muted); font-size: 14px; }

/* Icon circle */
.icon-circle { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }

/* Feature grid / cards */
.feature-grid { display: grid; grid-template-columns: 1fr; gap: 12px; max-width: 680px; margin: 0 auto; }
.feature-card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 20px; transition: border-color .2s, transform .2s; }
.feature-card:hover { border-color: #333; transform: translateY(-2px); }
.feature-header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.feature-title { font-weight: 700; font-size: 15px; }
.feature-body { color: var(--muted); font-size: 13px; line-height: 1.65; }
.feature-body ul { list-style: none; margin-top: 8px; }
.feature-body li { padding-left: 16px; position: relative; margin-bottom: 4px; }
.feature-body li::before { content: "–"; position: absolute; left: 0; color: #444; }

/* Big split section with phone mockup */
.split {
  display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center;
  max-width: 900px; margin: 0 auto;
}
@media (min-width: 760px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split.reverse .split-text { order: 2; }
  .split.reverse .split-visual { order: 1; }
}
.split-text h2 { font-size: 26px; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 14px; line-height: 1.2; }
.split-text p { color: var(--muted); font-size: 14.5px; line-height: 1.7; margin-bottom: 14px; }
.split-text ul { list-style: none; margin-top: 16px; }
.split-text li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; font-size: 14px; color: var(--text); }
.split-text li .check { color: var(--green); flex-shrink: 0; font-size: 15px; line-height: 1.4; }
.split-visual { display: flex; justify-content: center; }

/* Phone frame */
.phone-frame {
  width: 260px; border-radius: 34px; border: 6px solid #1c1c1c; background: #000;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.6), 0 0 0 1px #2a2a2a;
  overflow: hidden; position: relative;
}
.phone-frame img { width: 100%; display: block; }
.phone-frame.small { width: 220px; }
.phone-frame.large { width: 290px; }

/* Two-phone stack */
.phone-stack { display: flex; gap: 16px; justify-content: center; align-items: flex-end; flex-wrap: wrap; }
.phone-stack .phone-frame:nth-child(2) { margin-bottom: 24px; }

/* Chat mockup (AI Coach) */
.chat-mock { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 20px; max-width: 460px; margin: 0 auto; }
.chat-bubble { border-radius: 16px; padding: 12px 16px; font-size: 13.5px; line-height: 1.55; margin-bottom: 12px; max-width: 88%; }
.chat-bubble.user { background: rgba(10,132,255,.14); border: 1px solid rgba(10,132,255,.25); margin-left: auto; color: var(--text); }
.chat-bubble.coach { background: rgba(48,209,88,.1); border: 1px solid rgba(48,209,88,.25); color: var(--text); }
.chat-label { font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 4px; }

/* Trust strip */
.trust { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 24px; display: flex; align-items: center; gap: 16px; max-width: 680px; margin: 0 auto; }
.trust .icon-circle { background: rgba(48,209,88,.12); }
.trust-title { font-weight: 700; font-size: 14px; margin-bottom: 3px; }
.trust-body { color: var(--muted); font-size: 13px; }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: 1fr; gap: 16px; max-width: 720px; margin: 0 auto; }
@media (min-width: 640px) { .pricing-grid { grid-template-columns: 1fr 1fr; } }
.price-card { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 26px 24px; position: relative; }
.price-card.highlight { border-color: rgba(48,209,88,.4); background: linear-gradient(180deg, rgba(48,209,88,.06), var(--card) 40%); }
.price-badge { position: absolute; top: -12px; right: 20px; background: var(--green); color: #000; font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 20px; }
.price-name { font-weight: 700; font-size: 16px; margin-bottom: 6px; }
.price-amount { font-size: 32px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 2px; }
.price-period { color: var(--muted); font-size: 13px; margin-bottom: 20px; }
.price-list { list-style: none; margin-bottom: 22px; }
.price-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--text); margin-bottom: 11px; }
.price-list li.muted { color: var(--muted); }
.price-list .check { color: var(--green); flex-shrink: 0; }
.price-list .dash { color: #444; flex-shrink: 0; }
.price-note { text-align: center; color: var(--muted); font-size: 12.5px; margin-top: 18px; }

/* Comparison (gym vs calisthenics) */
.compare-grid { display: grid; grid-template-columns: 1fr; gap: 12px; max-width: 680px; margin: 0 auto; }
@media (min-width: 640px) { .compare-grid { grid-template-columns: 1fr 1fr; } }
.compare-card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 20px; }
.compare-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.compare-card ul { list-style: none; }
.compare-card li { padding-left: 16px; position: relative; margin-bottom: 8px; font-size: 13.5px; color: var(--muted); }
.compare-card li::before { content: "–"; position: absolute; left: 0; color: #444; }

/* FAQ accordion (shared with support.html look) */
.faq { background: var(--card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; max-width: 680px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-q { width: 100%; text-align: left; background: none; border: none; color: var(--text); font-size: 14px; font-weight: 600; padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; gap: 12px; }
.faq-q:hover { background: var(--card-hover); }
.faq-q .chevron { color: var(--muted); transition: transform .2s; flex-shrink: 0; font-size: 12px; }
.faq-item.open .faq-q .chevron { transform: rotate(180deg); color: var(--green); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease, padding .25s ease; color: var(--muted); font-size: 13px; line-height: 1.65; padding: 0 18px; }
.faq-item.open .faq-a { max-height: 400px; padding: 0 18px 18px; }

/* Final CTA */
.final-cta { text-align: center; padding: 56px 20px 72px; border-top: 1px solid var(--border); }
.final-cta h2 { font-size: 26px; font-weight: 800; margin-bottom: 12px; letter-spacing: -0.01em; }
.final-cta p { color: var(--muted); font-size: 14px; margin-bottom: 8px; }

/* Footer */
.footer { text-align: center; color: var(--muted); font-size: 12px; padding: 24px 20px 40px; border-top: 1px solid var(--border); }
.footer a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.footer a:hover { color: var(--text); }
.footer-links { display: flex; gap: 16px; justify-content: center; margin-top: 10px; flex-wrap: wrap; }
.social-row { display: flex; gap: 10px; justify-content: center; margin-top: 16px; }
.social-icon { width: 34px; height: 34px; border-radius: 50%; background: var(--card); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--muted); transition: color .2s, border-color .2s, transform .15s; }
.social-icon:hover { color: var(--text); border-color: #333; transform: translateY(-1px); }
.social-icon svg { width: 16px; height: 16px; }

/* Lang visibility */
.de, .en { display: block; }
body.lang-en .de { display: none; }
body.lang-en .en { display: block; }
body.lang-de .en { display: none; }
body.lang-de .de { display: block; }
span.de, span.en { display: inline; }
body.lang-en span.de { display: none; }
body.lang-en span.en { display: inline; }
body.lang-de span.en { display: none; }
body.lang-de span.de { display: inline; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
