/* ══════════════════════════════════════════════════════════════
   ForgePBL — shared marketing-page stylesheet
   Used by planning.html, implementation.html, assessment.html,
   skill-building.html. Tokens and component classes below are
   copied from public/index.html's design system so these pages
   stay visually consistent with the homepage without depending
   on its (much larger) inline stylesheet.
   ══════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #0F2438;
  --navy-2: #1B3A52;
  --steel: #5C6B76;
  --steel-tint: #7C8B96;
  --light-steel: #EDECE8;
  --flame: #C1573A;
  --mid-flame: #D98F73;
  --light-flame: #F5E1D8;
  --flame-hover: #A84C32;
  --flame-rgb: 193,87,58;
  --offwhite: #F7F6F4;
  --warm-white: #FDFDFC;
  --bg: #FFFFFF;
  --bg2: #F5F4F1;
  --card: #FFFFFF;
  --ink: #0C0B0A;
  --ink-rgb: 12,11,10;
  --ink2: #56514B;
  --ink3: #8C877E;
  --line: rgba(12,11,10,0.12);
  --line2: rgba(12,11,10,0.22);
  --strong: #2E7D5B; --strong-bg: #E6F2EC;
  --radius: 9px;
  --radius-lg: 14px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 2px rgba(12,11,10,0.06);
  --shadow: 0 6px 24px -10px rgba(12,11,10,0.22);
  --shadow-lg: 0 18px 48px -18px rgba(12,11,10,0.34);
  --serif: 'Plus Jakarta Sans', 'Inter', ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --sans: 'Inter', ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --heading-sans: 'Plus Jakarta Sans', var(--sans);
  --pale-flame-tint: #F5E1D8;
  --cream: #FAF6EE;
  --line-bold: rgba(12,11,10,0.4);
}

[data-theme="forge"] {
  --navy: #0A1B2B;
  --navy-2: #163044;
  --steel: #93A3AD;
  --steel-tint: #AEBCC4;
  --light-steel: #E8E6E0;
  --flame: #D97350;
  --mid-flame: #E5A688;
  --light-flame: #3D2419;
  --flame-hover: #BA6242;
  --flame-rgb: 217,115,80;
  --offwhite: #1C1A17;
  --warm-white: #17150F;
  --bg: #151310;
  --bg2: #1E1C18;
  --card: #1E1C18;
  --ink: #EDE8DF;
  --ink-rgb: 237,232,223;
  --ink2: #B8B2A5;
  --ink3: #858074;
  --line: rgba(200,190,170,0.16);
  --line2: rgba(200,190,170,0.28);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow: 0 6px 24px -10px rgba(0,0,0,0.5);
  --shadow-lg: 0 18px 48px -18px rgba(0,0,0,0.6);
  --pale-flame-tint: #2E1E17;
  --cream: #1E1C18;
  --line-bold: rgba(200,190,170,0.45);
}

html { height: 100%; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100%;
}
body::before {
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image: radial-gradient(rgba(var(--ink-rgb),0.03) 1px, transparent 1px);
  background-size: 22px 22px;
}

/* ── Theme toggle ── */
.theme-switch {
  background: rgba(255,255,255,0.06); border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: 999px; cursor: pointer; padding: 0; width: 52px; height: 26px;
  position: relative; flex-shrink: 0; transition: border-color 0.14s, background 0.14s;
}
.theme-switch:hover { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.1); }
.ts-icon {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 13px; height: 13px; color: rgba(255,255,255,0.55); pointer-events: none;
  transition: color 0.3s ease;
}
.ts-icon.ts-sun { left: 6px; }
.ts-icon.ts-moon { right: 6px; }
.theme-switch[aria-pressed="false"] .ts-sun { color: #FFD27A; }
.theme-switch[aria-pressed="true"] .ts-moon { color: #D6D0C5; }
.ts-thumb {
  position: absolute; top: 2px; left: 2px; width: 20px; height: 20px;
  border-radius: 50%; background: #FDFAF5;
  box-shadow: 0 1px 4px rgba(0,0,0,0.45);
  transition: transform 0.28s cubic-bezier(.4,0,.2,1);
}
.theme-switch[aria-pressed="true"] .ts-thumb { transform: translateX(26px); }

/* ── Top bar ── */
.topbar {
  height: 76px; position: sticky; top: 0; z-index: 10;
  background: linear-gradient(180deg, var(--navy-2) 0%, var(--navy) 100%);
  display: flex; align-items: center; padding: 0 28px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.25), 0 6px 20px -12px rgba(0,0,0,0.45);
}
.wordmark {
  font-family: 'Source Serif 4', Georgia, serif; font-weight: 700; font-size: 26px;
  letter-spacing: -0.3px; line-height: 1; user-select: none;
}
.wordmark .forge { color: var(--light-steel); }
.wordmark .pbl   { color: var(--mid-flame); }
.topbar-left { display: flex; align-items: center; gap: 34px; min-width: 0; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.signin-btn {
  font-family: var(--sans); font-size: 13.5px; font-weight: 600;
  letter-spacing: 0.4px; text-transform: uppercase;
  background: none; border: 1.5px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.85); padding: 9px 19px;
  border-radius: var(--radius-sm); cursor: pointer; text-decoration: none; display: inline-block;
  transition: background 0.14s, border-color 0.14s, color 0.14s;
}
.signin-btn:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.6); color: #fff; }
.topbar-access-btn {
  font-family: var(--sans); font-size: 13.5px; font-weight: 600;
  letter-spacing: 0.4px; text-transform: uppercase;
  background: var(--flame); border: 1.5px solid var(--flame);
  color: #fff; padding: 9px 19px;
  border-radius: var(--radius-sm); cursor: pointer; text-decoration: none; display: inline-block;
  transition: background 0.14s, border-color 0.14s;
}
.topbar-access-btn:hover { background: var(--flame-hover); border-color: var(--flame-hover); }

#siteNavTabs { display: flex; align-items: center; gap: 2px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
#siteNavTabs::-webkit-scrollbar { display: none; }
.site-nav-tab {
  background: none; border: none; cursor: pointer; white-space: nowrap; text-decoration: none;
  font-family: var(--sans); font-size: 14.5px; font-weight: 600;
  color: rgba(255,255,255,0.55); padding: 9px 16px; display: inline-block;
  border-radius: 999px; transition: color 0.14s, background 0.14s;
}
.site-nav-tab:hover { color: rgba(255,255,255,0.85); }
.site-nav-tab.active { color: #fff; background: rgba(255,255,255,0.14); }
.site-nav-tab--soon { color: rgba(255,255,255,0.4); }
.site-nav-tab--soon:hover { color: rgba(255,255,255,0.7); }
.site-nav-tab--soon-badge {
  font-size: 8.5px; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase;
  background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.65);
  border-radius: 3px; padding: 1px 5px; margin-left: 6px; vertical-align: 1px;
}

/* ── Page shell ── */
.page-body { max-width: 1120px; margin: 0 auto; padding: 0 40px 0; position: relative; z-index: 1; }

/* ── Hero ── */
.home-hero { padding: 64px 0 88px; }
.home-hero-eyebrow {
  font-family: var(--sans); font-size: 11.5px; font-weight: 700;
  letter-spacing: 1.4px; text-transform: uppercase; color: var(--flame); margin-bottom: 16px;
}
.home-hero-title {
  font-family: var(--serif); font-size: 46px; font-weight: 800;
  line-height: 1.08; letter-spacing: -0.5px; color: var(--ink); margin-bottom: 20px; max-width: 640px;
}
.home-hero-sub { font-family: var(--sans); font-size: 17px; color: var(--ink2); line-height: 1.55; max-width: 520px; margin-bottom: 30px; }
.home-hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.home-hero-cta-primary {
  padding: 15px 30px; border-radius: 999px; border: none;
  background: var(--flame); color: #fff; font-family: var(--sans);
  font-size: 14.5px; font-weight: 700; cursor: pointer; text-decoration: none; display: inline-block;
  box-shadow: 0 4px 16px -4px rgba(var(--flame-rgb),0.45);
  transition: background 0.14s, transform 0.14s;
}
.home-hero-cta-primary:hover { background: var(--flame-hover); transform: translateY(-1px); }
.home-hero-cta-primary[disabled], .home-hero-cta-primary.is-soon {
  background: var(--bg2); color: var(--ink3); box-shadow: none; cursor: default; pointer-events: none;
  border: 1.5px solid var(--line-bold);
}
.home-hero-cta-secondary {
  padding: 15px 30px; border-radius: 999px; border: 1.5px solid var(--line-bold);
  background: transparent; color: var(--ink); font-family: var(--sans);
  font-size: 14.5px; font-weight: 700; cursor: pointer; text-decoration: none; display: inline-block;
  transition: border-color 0.14s, background 0.14s;
}
.home-hero-cta-secondary:hover { border-color: var(--navy); background: var(--card); }
.soon-pill {
  font-family: var(--sans); font-size: 10px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase;
  background: var(--light-flame); color: var(--flame); border-radius: 4px; padding: 4px 9px;
}

.home-hero-grid { display: flex; align-items: center; gap: 48px; }
.home-hero-copy { flex: 1; min-width: 0; }
.home-hero-visual { flex-shrink: 0; width: 340px; }
.hero-mock-card {
  background: var(--card); border: 1.5px solid var(--line-bold); border-radius: var(--radius-lg);
  padding: 20px; box-shadow: var(--shadow-lg);
}
.hero-mock-dots { display: flex; gap: 6px; margin-bottom: 16px; }
.hero-mock-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--line-bold); }
.hero-mock-bubble--user {
  background: var(--bg2); border-radius: 12px 12px 12px 2px; padding: 12px 14px;
  font-family: var(--sans); font-size: 12px; color: var(--ink2); margin-bottom: 12px; max-width: 88%;
}
.hero-mock-bubble--ai {
  background: var(--pale-flame-tint); border-radius: 12px 12px 2px 12px; padding: 14px;
  margin-left: auto; margin-bottom: 18px; max-width: 92%;
}
.hero-mock-ai-line { height: 8px; border-radius: 4px; background: rgba(var(--flame-rgb),0.25); margin-bottom: 8px; }
.hero-mock-ai-line:last-child { margin-bottom: 0; }
.hero-mock-stages { display: flex; gap: 8px; }
.hero-mock-stage {
  flex: 1; text-align: center; font-family: var(--sans); font-size: 10px; font-weight: 700;
  letter-spacing: 0.4px; text-transform: uppercase; padding: 8px 4px; border-radius: 8px;
  background: var(--bg2); color: var(--ink3);
}
.hero-mock-stage.active { background: var(--flame); color: #fff; }

/* ── "How it works" style mockup rows (also used as the interface preview) ── */
.hiw-section { margin-top: 96px; }
.hiw-intro { text-align: center; max-width: 620px; margin: 0 auto 64px; }
.hiw-eyebrow {
  font-family: var(--sans); font-size: 11.5px; font-weight: 700;
  letter-spacing: 1.4px; text-transform: uppercase; color: var(--flame); margin-bottom: 14px;
}
.hiw-title { font-family: var(--serif); font-size: 30px; font-weight: 800; color: var(--ink); line-height: 1.15; }
.hiw-row { display: flex; align-items: center; gap: 64px; padding: 56px 0; border-top: 1px solid var(--line); }
.hiw-row:first-of-type { border-top: none; padding-top: 0; }
.hiw-row--reverse { flex-direction: row-reverse; }
.hiw-row-visual { flex: 1; min-width: 0; display: flex; }
.hiw-row--reverse .hiw-row-visual { justify-content: flex-end; }
.hiw-row-copy { flex: 1; min-width: 0; }
.hiw-mock-card {
  background: var(--card); border: 1.5px solid var(--line-bold); border-radius: var(--radius-lg);
  padding: 26px; box-shadow: var(--shadow-lg); width: 100%; max-width: 420px;
}
.hiw-mock-dots { display: flex; gap: 6px; margin-bottom: 18px; }
.hiw-mock-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--line-bold); }
.hiw-mock-line { height: 9px; border-radius: 4px; background: var(--bg2); margin-bottom: 11px; }
.hiw-mock-chip {
  display: inline-block; margin-top: 8px; font-family: var(--sans); font-size: 11px; font-weight: 700;
  color: var(--flame); background: var(--pale-flame-tint); padding: 6px 12px; border-radius: 999px;
}
.hiw-mock-roster-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.hiw-mock-roster-row:last-child { margin-bottom: 0; }
.hiw-mock-roster-row .hiw-mock-line { margin-bottom: 0; flex: 1; }
.hiw-mock-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.hiw-mock-dot--ahead { background: #2E7D5B; }
.hiw-mock-dot--ontrack { background: var(--steel); }
.hiw-mock-dot--needs { background: var(--flame); }
.hiw-mock-rubric-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.hiw-mock-rubric-row:last-child { margin-bottom: 0; }
.hiw-mock-rubric-row .hiw-mock-line { margin-bottom: 0; flex: 1; }
.hiw-mock-check {
  width: 20px; height: 20px; border-radius: 50%; background: #2E7D5B; color: #fff;
  font-size: 11px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.hiw-mock-check--pending { background: var(--bg2); color: var(--ink3); }
.hiw-mock-bar { height: 7px; border-radius: 4px; background: var(--bg2); margin-top: 18px; overflow: hidden; }
.hiw-mock-bar-fill { height: 100%; background: var(--flame); border-radius: 4px; }
.hiw-mock-badge {
  display: inline-flex; align-items: center; gap: 6px; font-family: var(--sans); font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.4px; text-transform: uppercase; color: var(--ink3); background: var(--bg2);
  padding: 5px 10px; border-radius: 6px; margin-bottom: 16px;
}
.hiw-step-label {
  font-family: var(--sans); font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.8px; text-transform: uppercase; color: var(--steel); margin-bottom: 14px;
}
.hiw-step-head { font-family: var(--serif); font-size: 24px; font-weight: 800; color: var(--ink); line-height: 1.2; margin-bottom: 14px; max-width: 420px; }
.hiw-step-desc { font-family: var(--sans); font-size: 15px; color: var(--ink2); line-height: 1.65; max-width: 420px; }

/* ── Benefits / feature checklist (Brisk "no more..." style) ── */
.benefits-section { margin-top: 96px; display: flex; align-items: center; gap: 64px; }
.benefits-section--reverse { flex-direction: row-reverse; }
.benefits-copy { flex: 1; min-width: 0; }
.benefits-eyebrow {
  font-family: var(--sans); font-size: 11.5px; font-weight: 700;
  letter-spacing: 1.4px; text-transform: uppercase; color: var(--flame); margin-bottom: 14px;
}
.benefits-title { font-family: var(--serif); font-size: 28px; font-weight: 800; color: var(--ink); margin-bottom: 16px; line-height: 1.2; max-width: 460px; }
.benefits-body { font-family: var(--sans); font-size: 15px; color: var(--ink2); line-height: 1.65; max-width: 460px; margin-bottom: 22px; }
.benefits-list { display: flex; flex-direction: column; gap: 14px; }
.benefits-list li { display: flex; align-items: flex-start; gap: 12px; font-family: var(--sans); font-size: 14.5px; color: var(--ink); line-height: 1.5; list-style: none; }
.benefits-check {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--strong-bg); color: var(--strong);
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; margin-top: 1px;
}
.benefits-visual { flex-shrink: 0; width: 380px; }

/* ── Feature icon grid ── */
.features-section { margin-top: 96px; text-align: center; }
.features-intro { max-width: 620px; margin: 0 auto 48px; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; text-align: left; }
.feature-card {
  background: var(--card); border: 1.5px solid var(--line-bold); border-radius: var(--radius-lg);
  padding: 24px 22px; display: flex; flex-direction: column; gap: 12px;
}
.feature-icon { width: 34px; height: 34px; color: var(--flame); }
.feature-name { font-family: var(--serif); font-size: 15.5px; font-weight: 700; color: var(--ink); }
.feature-desc { font-family: var(--sans); font-size: 13px; color: var(--ink2); line-height: 1.55; }

/* ── Coming-soon overview panel ── */
.coming-soon-badge {
  display:inline-block; font-family: var(--sans); font-size: 10px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase;
  background: var(--light-flame); color: var(--flame); border-radius: 4px; padding: 3px 8px; margin-bottom: 12px;
}

/* ── Closing CTA band ── */
.close-section { margin-top: 96px; }
.cta-card {
  max-width: 1120px; margin: 0 auto; background: var(--cream); border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center; gap: 32px; flex-wrap: wrap;
  padding: 56px; text-align: center;
}
.cta-card-copy { flex: none; display: flex; flex-direction: column; align-items: center; }
.cta-card-title { font-family: var(--serif); font-size: 28px; font-weight: 800; color: var(--ink); margin-bottom: 22px; max-width: 480px; }

/* ── Footer ── */
.home-band--navy { background: var(--navy); color: #fff; margin: 96px calc(-50vw + 50%) 0; padding: 48px calc(50vw - 50%) 0; }
.site-footer { display: flex; flex-direction: column; gap: 20px; padding-bottom: 32px; }
.site-footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; max-width: 1120px; margin: 0 auto; width: 100%; padding: 0 40px; }
.site-footer-tagline { font-family: var(--sans); font-size: 12.5px; color: rgba(255,255,255,0.6); margin-top: 6px; }
.site-footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.site-footer-links a { font-family: var(--sans); font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,0.75); text-decoration: none; }
.site-footer-links a:hover { color: #fff; }
.site-footer-bottom {
  font-family: var(--sans); font-size: 11px; color: rgba(255,255,255,0.4);
  border-top: 1px solid rgba(255,255,255,0.12); padding: 16px 40px 0;
  max-width: 1120px; margin: 0 auto; width: 100%;
}

@media (max-width: 860px) {
  .page-body { padding: 0 20px; }
  .home-hero-grid, .hiw-row, .hiw-row--reverse, .benefits-section, .benefits-section--reverse { flex-direction: column; align-items: flex-start; }
  .home-hero-visual, .benefits-visual { width: 100%; }
  .home-hero-title { font-size: 34px; }
  .site-nav-tab { padding: 7px 11px; font-size: 12.5px; }
  .site-nav-tab--soon-badge { display: none; }
  .topbar { padding: 0 16px; flex-wrap: wrap; height: auto; gap: 10px; padding-top: 10px; padding-bottom: 10px; }
}
