/* ===== TrainSkool homepage — promo components (external, CSP style-src 'self') =====
   Reuses the global design tokens from styles.css. Loaded only on the homepage. */

/* Hero trust chips */
.hero-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 9px; margin: 22px 0 0; padding: 0; }
.hero-trust li { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--ink-soft); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px; box-shadow: var(--shadow-sm); }
.hero-trust svg { width: 14px; height: 14px; fill: var(--teal); flex: none; }

/* Centered section head */
.center-head { text-align: center; max-width: 780px; margin: 0 auto; }
.center-head .eyebrow { justify-content: center; }
.center-head h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.1; letter-spacing: -.01em; color: var(--ink); margin: 10px 0 0; }
.center-head p.lead { margin: 16px auto 0; max-width: 640px; }

/* ---- AI section ---- */
.ai-section { padding: clamp(52px, 7vw, 92px) clamp(20px, 7vw, 92px); background: linear-gradient(140deg, var(--teal-soft), var(--surface-subtle)); }
.ai-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px; font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--teal-deep); box-shadow: var(--shadow-sm); text-transform: uppercase; }
.ai-badge svg { width: 15px; height: 15px; fill: var(--gold); }
.ai-grid { margin: clamp(30px, 4vw, 50px) auto 0; max-width: 1080px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 20px; }
.ai-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease; }
.ai-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.ai-ico { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; background: var(--teal); margin-bottom: 18px; }
.ai-ico svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ai-card h3 { font-size: 18px; font-weight: 650; color: var(--ink); margin: 0 0 7px; }
.ai-card p { color: var(--ink-soft); font-size: 13.5px; line-height: 1.65; margin: 0; }

/* ---- Feature grid ---- */
.feature-section { padding: clamp(52px, 7vw, 92px) clamp(20px, 7vw, 92px); }
.feature-section.alt { background: var(--surface-subtle); }
.features-hero { padding: clamp(48px, 7vw, 92px) clamp(20px, 7vw, 92px) clamp(20px, 3vw, 32px); text-align: center; background: linear-gradient(140deg, var(--teal-soft), var(--surface-subtle)); }
.features-hero h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(30px, 5vw, 50px); line-height: 1.08; letter-spacing: -.01em; color: var(--ink); margin: 12px auto 0; max-width: 780px; }
.features-hero .lead { max-width: 660px; margin: 18px auto 0; }
.group-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); }
.feature-grid { margin: clamp(30px, 4vw, 48px) auto 0; max-width: 1120px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 18px; }
.feature-card { display: flex; gap: 15px; align-items: flex-start; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; transition: border-color .18s ease, box-shadow .18s ease; }
.feature-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.feature-card .fico { flex: none; width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--teal-soft); }
.feature-card .fico svg { width: 21px; height: 21px; fill: none; stroke: var(--teal-deep); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature-card h3 { font-size: 15px; font-weight: 650; color: var(--ink); margin: 0 0 4px; }
.feature-card p { font-size: 12.5px; color: var(--muted); line-height: 1.55; margin: 0; }

/* ---- CTA band ---- */
.cta-band { padding: clamp(52px, 7vw, 96px) clamp(20px, 7vw, 92px); background: linear-gradient(135deg, var(--teal-deep), var(--teal)); text-align: center; }
.cta-band h2 { font-family: var(--font-display); color: #fff; font-size: clamp(28px, 3.8vw, 44px); font-weight: 600; letter-spacing: -.01em; margin: 0; }
.cta-band p { color: #d9ede9; margin: 16px auto 0; max-width: 580px; font-size: 15.5px; line-height: 1.6; }
.cta-actions { margin: 30px 0 0; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-actions a { text-decoration: none; font-weight: 650; font-size: 15px; padding: 14px 28px; border-radius: 11px; transition: transform .15s ease, background .15s ease; }
.cta-actions a:hover { transform: translateY(-1px); }
.cta-actions .solid { background: #fff; color: var(--teal-deep); box-shadow: var(--shadow); }
.cta-actions .ghost { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.55); }
.cta-actions .ghost:hover { background: rgba(255,255,255,.16); }
.cta-note { margin: 18px 0 0; color: #bfe0da; font-size: 12.5px; }
.cta-note-link { color: #fff; text-decoration: underline; }

@media (max-width: 640px) {
  .hero-trust { justify-content: flex-start; }
}
