/* ============================================
   RUNSMART — components.css
   Reusable UI components used across pages
   ============================================ */

/* ── WHY CARDS GRID ── */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: 52px;
  background: var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.why-card {
  background: var(--white);
  padding: 40px 36px;
  transition: background 0.25s;
}
.why-card:hover { background: var(--body); }
.why-num {
  font-size: 11px;
  font-weight: 600;
  color: var(--green);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.why-card h3 { margin-bottom: 10px; }
.why-card p {
  font-size: 14px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.8;
}
.why-card p strong { color: var(--dark); font-weight: 500; }

/* ── COMPARISON TABLE ── */
.compare-wrap {
  margin-top: 52px;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--white);
}
.compare-head {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.ch {
  padding: 18px 22px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
}
.ch:first-child { text-align: left; }
.ch.feat {
  background: var(--green-light);
  color: var(--green-text);
  font-size: 13px;
  font-weight: 700;
}
.compare-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  border-bottom: 1px solid var(--border);
}
.compare-row:last-child { border-bottom: none; }
.compare-row:nth-child(even) { background: var(--body); }
.cc {
  padding: 13px 22px;
  font-size: 13px;
  color: var(--subtle);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cc:first-child { color: var(--dark); font-weight: 400; justify-content: flex-start; }
.cc.feat { background: rgba(159, 205, 43, 0.05); }
.chk { color: var(--green); font-weight: 700; font-size: 15px; }
.crs { color: var(--disabled); font-size: 15px; }
.maybe { font-size: 12px; color: var(--disabled-light); font-style: italic; }

/* ── PRICING CARDS ── */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 52px auto 0;
  max-width: 800px;
}
.p-card {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 36px;
  position: relative;
  background: var(--white);
  text-align: left;
}
.p-card.feat {
  border-color: var(--green);
  background: var(--green-light);
}
.p-badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: var(--dark);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  padding: 3px 14px;
  border-radius: var(--r-pill);
  text-transform: uppercase;
  white-space: nowrap;
}
.p-tier {
  font-size: 11px;
  font-weight: 600;
  color: var(--subtle);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
}
.p-price {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -1.5px;
  color: var(--dark);
  line-height: 1;
  margin-bottom: 4px;
}
.p-price sup { font-size: 20px; vertical-align: super; font-weight: 400; }
.p-price-period { font-size: 17px; font-weight: 300; color: var(--muted); }
.p-note { font-size: 12px; color: var(--subtle); margin-bottom: 10px; font-weight: 300; }
.p-tagline {
  font-size: 13px;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.65;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.p-features { list-style: none; margin-bottom: 28px; }
.p-features li {
  font-size: 13px;
  color: var(--muted);
  padding: 6px 0;
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-weight: 300;
  border-bottom: 1px solid rgba(26,26,18,0.05);
}
.p-features li:last-child { border-bottom: none; }
.p-features li::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
  font-size: 12px;
  margin-top: 2px;
}
.btn-p {
  width: 100%;
  padding: 13px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
  text-align: center;
  display: block;
  border: none;
}
.btn-p.green { background: var(--green); color: var(--dark); }
.btn-p.green:hover { background: var(--green-dark); }
.btn-p.outline { background: none; color: var(--muted); border: 1px solid rgba(26,26,18,0.2); }
.btn-p.outline:hover { border-color: var(--dark); color: var(--dark); }
.p-fine { font-size: 11px; color: var(--subtle); text-align: center; margin-top: 8px; font-weight: 300; }

/* ── FEATURE CARDS ── */
.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: border-color 0.2s;
}
.feature-card:hover { border-color: rgba(26,26,18,0.18); }
.feature-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.feature-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
}
.feature-desc {
  font-size: 13px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.7;
}
.feature-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 100px;
  vertical-align: middle;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.feature-badge.pro { background: var(--green-light); color: var(--green-text); }
.feature-badge.coming-soon { background: var(--faint); color: var(--muted); }

/* ── IMAGE PLACEHOLDER ── */
.img-placeholder {
  background: var(--faint);
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--subtle);
  text-align: center;
  padding: 24px;
}

/* ── HERO SUB ── */
.hero-sub {
  font-size: 17px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.75;
}
.hero-sub strong { color: var(--dark); font-weight: 500; }

/* ── TESTIMONIALS ── */
.proof-section {
  background: var(--dark);
  padding: 88px 48px;
}
.proof-h2 {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.12;
  margin-bottom: 14px;
  color: var(--white);
}
.proof-sub {
  font-size: 16px;
  font-weight: 300;
  color: rgba(255,255,255,0.38);
  max-width: 500px;
  line-height: 1.75;
}
.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 52px;
}
.proof-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--r-lg);
  padding: 30px;
  transition: border-color 0.3s;
}
.proof-card:hover { border-color: rgba(159,205,43,0.25); }
.proof-img {
  width: 52px; height: 52px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  margin-bottom: 18px;
  border: 2px solid var(--green);
}
.proof-stars { color: var(--green); font-size: 12px; letter-spacing: 2px; margin-bottom: 14px; }
.proof-quote {
  font-size: 14px;
  color: rgba(255,255,255,0.58);
  line-height: 1.78;
  font-weight: 300;
  font-style: italic;
  margin-bottom: 18px;
}
.proof-rule { height: 1px; background: rgba(255,255,255,0.07); margin-bottom: 14px; }
.proof-name { font-size: 13px; font-weight: 600; color: var(--white); }
.proof-result { font-size: 12px; color: var(--green); margin-top: 2px; font-weight: 400; }

/* ── CTA SECTION ── */
.cta-section {
  background: var(--green);
  padding: 96px 48px;
  text-align: center;
}
.cta-h2 {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 16px;
  color: var(--dark);
}
.cta-p {
  font-size: 16px;
  color: rgba(26,26,18,0.72);
  font-weight: 300;
  max-width: 540px;
  margin: 0 auto 36px;
  line-height: 1.75;
}
.cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.cta-trust-line {
  font-size: 12px;
  color: rgba(26,26,18,0.72);
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-sep { color: rgba(26,26,18,0.2); }

/* ── LEGAL PAGES ── */
.legal-hero {
  background: var(--white);
  padding: 56px 48px 40px;
  border-bottom: 1px solid var(--border);
}
.legal-hero h1 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--dark);
  margin-bottom: 8px;
  line-height: 1.15;
}
.legal-meta {
  font-size: 13px;
  color: var(--subtle);
  font-weight: 300;
}
.legal-body {
  padding: 0 48px 88px;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 64px;
  align-items: start;
}
.legal-notice {
  background: var(--green-light);
  border-left: 3px solid var(--green);
  padding: 12px 16px;
  border-radius: 0 var(--r) var(--r) 0;
  margin-bottom: 32px;
  font-size: 13px;
  color: var(--green-text);
  font-weight: 400;
}
.legal-toc {
  position: sticky;
  top: 84px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}
.toc-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--subtle);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
  display: block;
}
.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.toc-link {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  border-left: 2px solid transparent;
  transition: all 0.2s;
  display: block;
}
.toc-link:hover {
  color: var(--dark);
  background: var(--body);
}
.toc-link.active {
  color: var(--dark);
  font-weight: 500;
  border-left-color: var(--green);
}
.legal-content {
  padding: 48px 0 0;
  max-width: 720px;
}
.legal-content h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--dark);
  margin-top: 48px;
  margin-bottom: 16px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
  letter-spacing: -0.3px;
  line-height: 1.3;
}
.legal-content h2:first-of-type {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}
.legal-content p {
  font-size: 15px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 16px;
}
.legal-content strong {
  font-weight: 600;
  color: var(--dark);
}
.legal-content ul,
.legal-content ol {
  padding-left: 24px;
  margin-bottom: 16px;
}
.legal-content li {
  font-size: 15px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 8px;
}
.legal-content a {
  color: var(--dark);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-content a[href^="mailto"] {
  color: var(--green);
  font-weight: 500;
}

/* ── RESPONSIVE COMPONENTS ── */
@media (max-width: 920px) {
  .why-grid { grid-template-columns: 1fr; }
  .compare-head, .compare-row { grid-template-columns: 1.8fr 1fr 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .proof-grid { grid-template-columns: 1fr; }
  .proof-section { padding: 56px 24px; }
  .cta-section { padding: 60px 24px; }
  .cta-h2 { font-size: 32px; }
  .legal-hero { padding: 40px 24px 32px; }
  .legal-body { padding: 0 24px 56px; grid-template-columns: 1fr; gap: 0; }
  .legal-toc { display: none; }
  .legal-content { padding: 32px 0 0; }
  .legal-content h2 { padding-top: 32px; margin-top: 32px; }
}
