/* ============================================================
   PATHFINDER DESIGN KIT
   ============================================================ */

:root {
  --pf-bg:            #f8fafc;
  --pf-bg-subtle:     #f1f5f9;
  --pf-surface:       #ffffff;
  --pf-surface-alt:   #f9fafb;
  --pf-border:        #e5e7eb;
  --pf-border-strong: #d1d5db;
  --pf-text:          #0f172a;
  --pf-text-muted:    #64748b;
  --pf-text-faint:    #94a3b8;

  --pf-brand:         #1e40af;
  --pf-brand-deep:    #1e3a8a;
  --pf-brand-hover:   #1d3691;
  --pf-brand-light:   #3b82f6;
  --pf-brand-tint:    #eff6ff;
  --pf-brand-pale:    #dbeafe;

  --pf-navy:          #0b1220;
  --pf-navy-soft:     #1e293b;

  --pf-danger:        #dc2626;
  --pf-danger-tint:   #fef2f2;
  --pf-success:       #059669;
  --pf-success-tint:  #ecfdf5;
  --pf-warn:          #d97706;
  --pf-warn-tint:     #fffbeb;
  --pf-warn-pale:     #fef9c3;

  --pf-radius-xs:     4px;
  --pf-radius-sm:     6px;
  --pf-radius:        10px;
  --pf-radius-lg:     14px;
  --pf-radius-xl:     20px;
  --pf-radius-pill:   999px;

  --pf-shadow-xs:     0 1px 2px rgba(15,23,42,0.04);
  --pf-shadow-sm:     0 1px 3px rgba(15,23,42,0.06), 0 1px 2px rgba(15,23,42,0.04);
  --pf-shadow:        0 2px 4px rgba(15,23,42,0.04), 0 1px 2px rgba(15,23,42,0.03);
  --pf-shadow-lg:     0 10px 30px rgba(15,23,42,0.08), 0 4px 10px rgba(15,23,42,0.04);

  --pf-ring-focus:    0 0 0 3px rgba(30,64,175,0.18);
}

html, body { margin:0; padding:0; }
body {
  background: var(--pf-bg);
  color: var(--pf-text);
  font-family: 'DM Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
* { box-sizing: border-box; }
a { color: var(--pf-brand); text-decoration: none; }
a:hover { color: var(--pf-brand-hover); }
h1, h2, h3, h4, h5 { margin: 0; color: var(--pf-text); font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.375rem; }
h3 { font-size: 1.125rem; }
p { margin: 0; }
hr { border: 0; border-top: 1px solid var(--pf-border); margin: 1rem 0; }

/* ---------- buttons ---------- */
.pf-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .625rem 1.125rem;
  font-family: inherit; font-size: .875rem; font-weight: 600; line-height: 1;
  border: 1px solid transparent; border-radius: var(--pf-radius-pill);
  cursor: pointer; user-select: none;
  transition: all .15s ease;
  text-decoration: none; white-space: nowrap;
}
.pf-btn:focus-visible { outline: none; box-shadow: var(--pf-ring-focus); }
.pf-btn.primary { background: var(--pf-brand); color: #fff; }
.pf-btn.primary:hover { background: var(--pf-brand-hover); color:#fff; transform: translateY(-1px); box-shadow: 0 6px 14px rgba(30,64,175,.24); }
.pf-btn.outline { background: #fff; color: var(--pf-brand); border-color: var(--pf-brand); }
.pf-btn.outline:hover { background: var(--pf-brand-tint); }
.pf-btn.ghost { background: transparent; color: var(--pf-text-muted); }
.pf-btn.ghost:hover { background: var(--pf-bg-subtle); color: var(--pf-text); }
.pf-btn.danger { background: var(--pf-danger); color: #fff; }
.pf-btn.danger:hover { background: #b91c1c; }
.pf-btn.sm { padding: .4rem .75rem; font-size: .8125rem; }
.pf-btn.lg { padding: .875rem 1.5rem; font-size: .9375rem; }
.pf-btn.block { display:flex; width: 100%; }
.pf-btn[disabled], .pf-btn.disabled { opacity: .5; cursor: not-allowed; }

/* ---------- cards ---------- */
.pf-card {
  background: var(--pf-surface);
  border: 1px solid var(--pf-border);
  border-radius: var(--pf-radius-lg);
  box-shadow: var(--pf-shadow-sm);
  overflow: hidden;
}
.pf-card.flat { box-shadow: none; }
.pf-card-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--pf-border);
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
}
.pf-card-body { padding: 1.25rem; }
.pf-card-title { font-weight: 700; font-size: 1rem; }
.pf-card-meta { color: var(--pf-text-muted); font-size: .8125rem; }

/* ---------- forms ---------- */
.pf-input, .pf-select, .pf-textarea {
  width: 100%; padding: .625rem .75rem;
  font-family: inherit; font-size: .875rem; color: var(--pf-text);
  background: #fff; border: 1px solid var(--pf-border); border-radius: var(--pf-radius);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.pf-textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.pf-input:focus, .pf-select:focus, .pf-textarea:focus {
  outline: none; border-color: var(--pf-brand); box-shadow: var(--pf-ring-focus);
}
.pf-label { display:block; font-size: .8125rem; font-weight: 600; color: var(--pf-text); margin-bottom: .375rem; }
.pf-hint { font-size: .75rem; color: var(--pf-text-muted); margin-top: .375rem; }
.pf-field { margin-bottom: 1rem; }

/* ---------- badges ---------- */
.pf-badge {
  display: inline-flex; align-items: center; gap: .375rem;
  padding: .2rem .625rem; border-radius: var(--pf-radius-pill);
  font-size: .75rem; font-weight: 500;
  background: var(--pf-bg-subtle); color: var(--pf-text-muted);
  border: 1px solid var(--pf-border);
}
.pf-badge.brand { background: var(--pf-brand-tint); color: var(--pf-brand); border-color: var(--pf-brand-pale); }
.pf-badge.brand-solid { background: var(--pf-brand); color: #fff; border-color: var(--pf-brand); }
.pf-badge.success { background: var(--pf-success-tint); color: var(--pf-success); border-color: #a7f3d0; }
.pf-badge.warn { background: var(--pf-warn-tint); color: var(--pf-warn); border-color: #fde68a; }
.pf-badge.danger { background: var(--pf-danger-tint); color: var(--pf-danger); border-color: #fecaca; }
.pf-badge.outline { background: #fff; border-color: var(--pf-border); color: var(--pf-text-muted); }

/* ---------- tabs ---------- */
.pf-tabs {
  display: flex; gap: 2rem; border-bottom: 1px solid var(--pf-border);
  margin-bottom: 1.5rem;
}
.pf-tab {
  position: relative;
  padding: .875rem .125rem; margin-bottom: -1px;
  font-size: .9375rem; font-weight: 600; color: var(--pf-text-muted);
  background: transparent; border: 0; cursor: pointer;
  text-decoration: none; font-family: inherit;
  transition: color .15s ease;
}
.pf-tab:hover { color: var(--pf-text); }
.pf-tab.active, .pf-tab.pf-tab--active { color: var(--pf-brand); }
.pf-tab.active::after, .pf-tab.pf-tab--active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px;
  height: 3px; background: var(--pf-brand); border-radius: 3px 3px 0 0;
}

/* segmented tabs (for Reflection Journal row) */
.pf-segments {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  background: var(--pf-bg-subtle);
  border-radius: var(--pf-radius);
  padding: .25rem;
  gap: 0;
  margin-bottom: 1.5rem;
}
.pf-segment {
  padding: .625rem 1rem; text-align: center;
  background: transparent; border: 0; cursor: pointer; font-family: inherit;
  font-size: .875rem; font-weight: 600; color: var(--pf-text-muted);
  border-radius: calc(var(--pf-radius) - 2px);
  transition: all .15s ease;
}
.pf-segment.active, .pf-segment.pf-tab--active {
  background: #fff; color: var(--pf-text);
  box-shadow: var(--pf-shadow-xs);
}

/* ---------- breadcrumb ---------- */
.pf-breadcrumb {
  display: flex; align-items: center; gap: .5rem;
  font-size: .875rem; color: var(--pf-text-muted);
}
.pf-breadcrumb a { color: var(--pf-text-muted); }
.pf-breadcrumb a:hover { color: var(--pf-text); }
.pf-breadcrumb .sep { color: var(--pf-text-faint); opacity: .7; }
.pf-breadcrumb .current, .pf-breadcrumb .text-gray-900 { color: var(--pf-text); font-weight: 600; }

/* ---------- progress ---------- */
.pf-ring { position: relative; width: 56px; height: 56px; flex-shrink: 0; }
.pf-ring svg { transform: rotate(-90deg); }
.pf-ring .track { fill: none; stroke: var(--pf-bg-subtle); stroke-width: 4; }
.pf-ring .bar { fill: none; stroke: var(--pf-brand); stroke-width: 4; stroke-linecap: round; transition: stroke-dashoffset .4s ease; }
.pf-ring .label {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 600; color: var(--pf-text);
}

.pf-progress {
  width: 100%; height: .625rem;
  background: var(--pf-bg-subtle);
  border-radius: var(--pf-radius-pill);
  overflow: hidden;
}
.pf-progress-bar {
  height: 100%; background: var(--pf-brand);
  transition: width .4s ease;
  border-radius: var(--pf-radius-pill);
}

/* ---------- collapse ---------- */
.pf-collapse { border: 1px solid var(--pf-border); border-radius: var(--pf-radius-lg); background: #fff; box-shadow: var(--pf-shadow-sm); }
.pf-collapse + .pf-collapse { margin-top: 1rem; }
.pf-collapse > summary {
  list-style: none; cursor: pointer;
  padding: 1.125rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
}
.pf-collapse > summary::-webkit-details-marker { display: none; }
.pf-collapse > summary .chev { transition: transform .2s ease; color: var(--pf-text-muted); }
.pf-collapse[open] > summary .chev { transform: rotate(180deg); }
.pf-collapse > summary .title { font-weight: 700; font-size: 1rem; }
.pf-collapse > summary .count { color: var(--pf-text-muted); font-size: .875rem; }
.pf-collapse > .body { padding: 0 1.25rem 1.25rem; }

/* ---------- table ---------- */
table.pf-tbl { width: 100% !important; border-collapse: separate !important; border-spacing: 0 !important; }
table.pf-tbl thead th, .pf-tbl th {
  text-align: left !important;
  padding: .75rem 1rem !important;
  font-size: .75rem !important;
  font-weight: 600 !important;
  color: var(--pf-text-muted) !important;
  text-transform: uppercase !important;
  letter-spacing: .04em !important;
  background: var(--pf-bg-subtle) !important;
  border-bottom: 1px solid var(--pf-border) !important;
  white-space: nowrap !important;
}
table.pf-tbl tbody td, .pf-tbl td {
  padding: .875rem 1rem !important;
  border-bottom: 1px solid var(--pf-border) !important;
  font-size: .875rem !important;
  vertical-align: middle !important;
  color: var(--pf-text);
}
table.pf-tbl tbody tr:last-child td { border-bottom: 0 !important; }
table.pf-tbl tbody tr:hover td { background: var(--pf-bg-subtle); }

/* ---------- layout helpers ---------- */
.pf-stack { display: flex; flex-direction: column; gap: 1rem; }
.pf-row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.pf-grid { display: grid; gap: 1rem; }
.pf-muted { color: var(--pf-text-muted); }
.pf-faint { color: var(--pf-text-faint); }
.pf-right { margin-left: auto; }
.pf-center { text-align: center; }

/* ---------- empty states ---------- */
.pf-empty {
  padding: 3rem 1.5rem; text-align: center; color: var(--pf-text-muted);
}
.pf-empty-icon {
  width: 48px; height: 48px; margin: 0 auto 1rem;
  border-radius: var(--pf-radius); background: var(--pf-bg-subtle);
  display: flex; align-items: center; justify-content: center;
  color: var(--pf-text-faint);
}
.pf-empty-title { font-weight: 700; color: var(--pf-text); font-size: 1.125rem; margin-bottom: .375rem; }
.pf-empty-text { color: var(--pf-text-muted); margin-bottom: 1rem; font-size: .875rem; line-height: 1.55; }

.pf-empty-warn {
  padding: 2.5rem 1.5rem; text-align: center;
  background: var(--pf-warn-pale);
  border: 2px solid #fde68a; border-radius: var(--pf-radius-lg);
  max-width: 640px; margin: 2rem auto;
}
.pf-empty-warn .icon {
  width: 48px; height: 48px; margin: 0 auto 1rem;
  color: var(--pf-warn);
  display: flex; align-items: center; justify-content: center;
}

/* ---------- modals ---------- */
.pf-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(15,23,42,.55);
  z-index: 50;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(2px);
}
.pf-modal {
  background: #fff;
  border-radius: var(--pf-radius-lg);
  box-shadow: var(--pf-shadow-lg), 0 30px 60px rgba(15,23,42,.2);
  max-width: 520px; width: 100%;
  padding: 1.75rem;
  max-height: 90vh; overflow-y: auto;
}

/* ---------- table overflow ---------- */
.pf-card > .pf-tbl, .pf-card > table.pf-tbl { margin: 0; }
.pf-tbl-scroll { overflow-x: auto; }

/* ---------- alerts ---------- */
.pf-alert { padding: .875rem 1rem; border-radius: var(--pf-radius); border: 1px solid; font-size: .875rem; display: flex; gap: .625rem; align-items: flex-start; }
.pf-alert.info { background: var(--pf-brand-tint); border-color: var(--pf-brand-pale); color: var(--pf-brand-deep); }
.pf-alert.success { background: var(--pf-success-tint); border-color: #a7f3d0; color: var(--pf-success); }
.pf-alert.warn { background: var(--pf-warn-tint); border-color: #fde68a; color: var(--pf-warn); }
.pf-alert.danger { background: var(--pf-danger-tint); border-color: #fecaca; color: var(--pf-danger); }

/* =================================================================
   APP SHELL
   ================================================================= */
.pf-app { display: flex; min-height: 100vh; }

.pf-sidebar {
  width: 256px; flex-shrink: 0;
  background: #fff; border-right: 1px solid var(--pf-border);
  display: flex; flex-direction: column; height: 100vh;
  position: sticky; top: 0;
}
.pf-sidebar-brand {
  display: flex; align-items: center; gap: .625rem;
  padding: 1.125rem 1.25rem; text-decoration: none;
}
.pf-sidebar-brand img { width: 28px; height: 28px; border-radius: 6px; }
.pf-sidebar-brand .name { font-weight: 700; font-size: .9375rem; color: var(--pf-text); }
.pf-sidebar-brand .sub { font-size: .75rem; color: var(--pf-text-muted); }
.pf-sidebar-body { flex: 1; overflow-y: auto; padding: .5rem .75rem 1rem; }
.pf-nav-primary {
  display: flex; align-items: center; gap: .625rem;
  background: var(--pf-brand); color: #fff;
  padding: .75rem 1rem; margin: .25rem 0 1rem;
  border-radius: var(--pf-radius);
  font-weight: 600; font-size: .9375rem;
  box-shadow: 0 2px 6px rgba(30,64,175,.25);
}
.pf-nav-primary:hover { background: var(--pf-brand-hover); color:#fff; }
.pf-nav-section {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem .75rem .5rem;
  font-size: .6875rem; font-weight: 700; letter-spacing: .08em;
  color: var(--pf-text-faint); text-transform: uppercase;
  background: none; border: 0; width: 100%; cursor: pointer;
  font-family: inherit;
}
.pf-nav-item {
  display: flex; align-items: center; gap: .625rem;
  padding: .5rem .75rem; border-radius: var(--pf-radius-sm);
  font-size: .875rem; font-weight: 500; color: var(--pf-text);
  text-decoration: none;
  transition: background .12s ease;
}
.pf-nav-item:hover { background: var(--pf-bg-subtle); }
.pf-nav-item.active { background: var(--pf-brand-tint); color: var(--pf-brand); font-weight: 600; }
.pf-nav-item .icon { width: 16px; height: 16px; color: var(--pf-text-muted); flex-shrink: 0; }
.pf-nav-item.active .icon { color: var(--pf-brand); }
.pf-sidebar-footer {
  padding: .75rem 1rem; border-top: 1px solid var(--pf-border);
  display: flex; align-items: center; justify-content: flex-start;
}

.pf-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pf-topbar {
  height: 56px; padding: 0 1.75rem;
  background: #fff; border-bottom: 1px solid var(--pf-border);
  display: flex; align-items: center; gap: 1rem;
  position: sticky; top: 0; z-index: 20;
}
.pf-topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 1rem; }
.pf-icon-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: transparent; border: 0; color: var(--pf-text-muted);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; position: relative;
  transition: background .12s ease, color .12s ease;
}
.pf-icon-btn:hover { background: var(--pf-bg-subtle); color: var(--pf-text); }
.pf-icon-btn .badge {
  position: absolute; top: 4px; right: 4px;
  background: var(--pf-danger); color: #fff;
  font-size: .6875rem; font-weight: 700;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff;
}
.pf-content { flex: 1; padding: 2rem 2.5rem; max-width: 1200px; width: 100%; margin: 0 auto; }

@media (max-width: 900px) {
  .pf-sidebar { position: fixed; left: -280px; top: 0; bottom: 0; z-index: 40; transition: left .2s ease; }
  .pf-sidebar.open { left: 0; }
  .pf-content { padding: 1.25rem; }
  .pf-topbar { padding: 0 1rem; }
  .pf-mobile-toggle { display: inline-flex !important; }
  .pf-sidebar-overlay { display: block; }
}
.pf-mobile-toggle {
  display: none;
  width: 36px; height: 36px; border-radius: 8px;
  background: transparent; border: 1px solid var(--pf-border); color: var(--pf-text);
  align-items: center; justify-content: center; cursor: pointer;
}
.pf-sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(15,23,42,.35); z-index: 30; }
.pf-sidebar.open ~ .pf-sidebar-overlay { display: block; }

/* =================================================================
   MARKETING / LANDING
   ================================================================= */
.pf-landing { background: #fff; color: var(--pf-text); }
.pf-mkt-nav {
  display: flex; align-items: center; gap: 2rem;
  padding: 1.25rem 2.5rem;
  max-width: 1200px; margin: 0 auto;
}
.pf-mkt-nav .brand { display: flex; align-items: center; gap: .625rem; text-decoration: none; color: var(--pf-text); font-weight: 700; }
.pf-mkt-nav .brand img { width: 32px; height: 32px; }
.pf-mkt-nav .spacer { flex: 1; }
.pf-mkt-nav .links { display: flex; gap: 2rem; }
.pf-mkt-nav .links a { color: var(--pf-text); font-size: .9375rem; font-weight: 500; }
.pf-mkt-nav .links a:hover { color: var(--pf-brand); }
.pf-mkt-nav .links a.active { color: var(--pf-brand); }

.pf-hero {
  padding: 4rem 2.5rem 5rem;
  max-width: 1100px; margin: 0 auto;
  text-align: center;
}
.pf-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .4rem 1rem;
  background: var(--pf-brand-tint); color: var(--pf-brand-deep);
  border: 1px solid var(--pf-brand-pale);
  border-radius: var(--pf-radius-pill);
  font-size: .8125rem; font-weight: 600;
  margin-bottom: 1.5rem;
}
.pf-h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--pf-text);
  margin: 0 auto 1.5rem;
  max-width: 900px;
}
.pf-h1 .accent { color: var(--pf-brand-light); }
.pf-lead {
  font-size: 1.0625rem;
  color: var(--pf-text-muted);
  max-width: 620px;
  margin: 0 auto 2rem;
  line-height: 1.65;
}
.pf-hero-ctas { display: inline-flex; gap: .75rem; margin-bottom: 3.5rem; flex-wrap: wrap; justify-content: center; }

.pf-shot {
  max-width: 960px; margin: 0 auto;
  border-radius: var(--pf-radius-lg);
  box-shadow: var(--pf-shadow-lg), 0 30px 60px rgba(30,64,175,.12);
  border: 1px solid var(--pf-border);
  overflow: hidden;
  background: #fff;
}
.pf-shot img { width: 100%; display: block; }

.pf-section {
  padding: 5rem 2.5rem;
  max-width: 1200px; margin: 0 auto;
}
.pf-section.alt { background: var(--pf-bg); border-radius: 0; max-width: 100%; }
.pf-section.alt > .inner { max-width: 1200px; margin: 0 auto; }
.pf-section-title {
  text-align: center;
  font-size: 2rem; font-weight: 800; letter-spacing: -0.02em;
  margin-bottom: .5rem;
}
.pf-section-lead {
  text-align: center; max-width: 620px; margin: 0 auto 3rem;
  color: var(--pf-text-muted); font-size: 1rem; line-height: 1.65;
}

/* Why cards (Problem / Approach) */
.pf-why-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem;
  max-width: 1000px; margin: 0 auto;
}
@media (max-width: 800px) { .pf-why-grid { grid-template-columns: 1fr; } }
.pf-why-col { background: #fff; border: 1px solid var(--pf-border); border-radius: var(--pf-radius-lg); padding: 1.75rem; box-shadow: var(--pf-shadow-sm); }
.pf-why-col h3 { font-size: 1.125rem; margin-bottom: 1rem; }
.pf-why-col.problem h3 { color: var(--pf-danger); }
.pf-why-col.approach h3 { color: var(--pf-success); }
.pf-why-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .875rem; }
.pf-why-col li {
  position: relative; padding-left: 1.25rem;
  color: var(--pf-text-muted); font-size: .9375rem; line-height: 1.55;
}
.pf-why-col li::before {
  content: '•'; position: absolute; left: 0; top: -1px;
  font-size: 1.25rem; line-height: 1;
}
.pf-why-col.problem li::before { color: var(--pf-danger); }
.pf-why-col.approach li::before { color: var(--pf-success); }

/* What You Can Do / Built For grids */
.pf-feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; max-width: 1100px; margin: 0 auto; }
@media (max-width: 900px) { .pf-feature-grid { grid-template-columns: 1fr; } }
.pf-feature-card {
  background: #fff; border: 1px solid var(--pf-border); border-radius: var(--pf-radius-lg);
  padding: 1.75rem;
  box-shadow: var(--pf-shadow-xs);
  transition: transform .15s ease, box-shadow .15s ease;
}
.pf-feature-card:hover { transform: translateY(-2px); box-shadow: var(--pf-shadow-lg); }
.pf-feature-icon {
  width: 48px; height: 48px; border-radius: var(--pf-radius);
  background: var(--pf-brand-tint); color: var(--pf-brand);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}
.pf-feature-title { font-size: 1.125rem; font-weight: 700; margin-bottom: .625rem; }
.pf-feature-desc { color: var(--pf-text-muted); font-size: .9375rem; line-height: 1.6; }

/* One Platform. Both Missions. */
.pf-mission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; max-width: 1000px; margin: 0 auto; }
@media (max-width: 800px) { .pf-mission-grid { grid-template-columns: 1fr; } }
.pf-mission {
  background: #fff; border: 1px solid var(--pf-border); border-radius: var(--pf-radius-lg);
  padding: 2rem; box-shadow: var(--pf-shadow-sm);
}
.pf-mission-head { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.5rem; font-size: 1.125rem; font-weight: 700; }
.pf-mission-head i { color: var(--pf-brand); }
.pf-mission ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .75rem; }
.pf-mission li { display: flex; gap: .625rem; color: var(--pf-text); font-size: .9375rem; align-items: flex-start; }
.pf-mission li::before {
  content: '✓'; color: var(--pf-brand); font-weight: 700;
  flex-shrink: 0; line-height: 1.45;
}

/* CTA band */
.pf-cta-band {
  background: linear-gradient(180deg, #fff 0%, var(--pf-brand-tint) 100%);
  padding: 4rem 2.5rem;
  text-align: center;
  border-top: 1px solid var(--pf-border);
}
.pf-cta-band h2 { font-size: 1.75rem; margin-bottom: .5rem; }
.pf-cta-band p { color: var(--pf-text-muted); margin-bottom: 1.5rem; }
.pf-cta-band .actions { display: inline-flex; gap: .75rem; flex-wrap: wrap; justify-content: center; }

/* Footer */
.pf-footer {
  background: var(--pf-navy); color: #cbd5e1;
  padding: 4rem 2.5rem 2rem;
}
.pf-footer-grid {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 3rem;
}
@media (max-width: 800px) { .pf-footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
.pf-footer h4 { color: #fff; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1rem; }
.pf-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .625rem; }
.pf-footer a { color: #cbd5e1; font-size: .875rem; }
.pf-footer a:hover { color: #fff; }
.pf-footer-bottom {
  max-width: 1100px; margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; justify-content: space-between; align-items: center;
  font-size: .8125rem; color: #64748b;
}

/* =================================================================
   AUTH PAGES
   ================================================================= */
.pf-auth-wrap {
  min-height: 100vh; background: linear-gradient(180deg, var(--pf-bg) 0%, #fff 100%);
  display: flex; align-items: center; justify-content: center; padding: 2rem 1rem;
}
.pf-auth-card {
  width: 100%; max-width: 420px;
  background: #fff; border: 1px solid var(--pf-border); border-radius: var(--pf-radius-lg);
  box-shadow: var(--pf-shadow-lg);
  padding: 2.25rem;
}
.pf-auth-brand { display: flex; align-items: center; gap: .625rem; margin-bottom: 2rem; justify-content: center; }
.pf-auth-brand img { width: 36px; height: 36px; }
.pf-auth-brand .name { font-weight: 800; font-size: 1.125rem; letter-spacing: -0.01em; }
.pf-auth-h { font-size: 1.5rem; font-weight: 700; margin-bottom: .5rem; text-align: left; }
.pf-auth-sub { color: var(--pf-text-muted); margin-bottom: 1.75rem; font-size: .9375rem; }
.pf-auth-meta { text-align: center; margin-top: 1.25rem; font-size: .875rem; color: var(--pf-text-muted); }

/* Split login */
.pf-auth-split {
  min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr;
}
@media (max-width: 960px) { .pf-auth-split { grid-template-columns: 1fr; } .pf-auth-split .right { display:none; } }
.pf-auth-split .left { padding: 3rem 3rem 2rem; display: flex; flex-direction: column; }
.pf-auth-split .left-inner { max-width: 420px; width: 100%; margin: 0 auto; flex: 1; display:flex; flex-direction:column; justify-content:center; padding: 2rem 0; }
.pf-auth-split .right {
  background: radial-gradient(circle at top right, #1d4ed8 0%, var(--pf-brand-deep) 60%, #0b2461 100%);
  color: #fff;
  padding: 4rem 3rem;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
}
.pf-auth-split .right::before, .pf-auth-split .right::after {
  content: ''; position: absolute; border-radius: 50%;
  background: rgba(255,255,255,.04);
}
.pf-auth-split .right::before { width: 420px; height: 420px; top: -180px; right: -80px; }
.pf-auth-split .right::after { width: 280px; height: 280px; bottom: -100px; right: 80px; }
.pf-auth-split .right-inner { position: relative; max-width: 440px; }
.pf-auth-split .right h2 { color: #fff; font-size: 1.75rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: 1rem; }
.pf-auth-split .right p.intro { color: rgba(255,255,255,.78); font-size: 1rem; line-height: 1.55; margin-bottom: 2.5rem; }
.pf-step { display: flex; gap: 1rem; padding: .75rem 0; align-items: flex-start; color: rgba(255,255,255,.88); }
.pf-step .n {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,.15); color: #fff; font-weight: 700; font-size: .8125rem;
  display: flex; align-items: center; justify-content: center;
}
.pf-step .text { font-size: .9375rem; line-height: 1.5; }

/* =================================================================
   DASHBOARD / GOAL LIST / CONTENT
   ================================================================= */
.pf-goal-row {
  display: flex; align-items: center; gap: .875rem;
  padding: .875rem 1rem;
  border: 1px solid var(--pf-border); border-radius: var(--pf-radius);
  background: #fff;
  margin-bottom: .625rem;
  transition: border-color .12s ease, box-shadow .12s ease;
}
.pf-goal-row:hover { border-color: var(--pf-brand-pale); box-shadow: var(--pf-shadow-xs); }
.pf-goal-check {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--pf-brand); flex-shrink: 0;
}
.pf-goal-check.done { background: var(--pf-brand); position: relative; }
.pf-goal-check.done::after { content: '✓'; color:#fff; font-size: 12px; position:absolute; inset:0; display:flex; align-items:center; justify-content:center; }
.pf-goal-title { font-weight: 600; font-size: .9375rem; color: var(--pf-text); }
.pf-goal-meta { color: var(--pf-text-muted); font-size: .8125rem; margin-top: 2px; }

/* Page header (hero within app shell) */
.pf-page-header { margin-bottom: 1.75rem; display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.pf-page-header h1 { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.02em; }
.pf-page-header .pf-page-sub { color: var(--pf-text-muted); font-size: .9375rem; margin-top: .375rem; }

/* Feedback header (big score right-hand block) */
.pf-score-hero {
  display: flex; gap: 1rem; align-items: center;
}
.pf-score-hero .num { font-size: 2.5rem; font-weight: 800; color: var(--pf-brand); line-height: 1; letter-spacing: -.02em; }
.pf-score-hero .denom { font-size: .875rem; color: var(--pf-text-muted); margin-top: .25rem; }

/* Circular score meter for domains */
.pf-dial { display: flex; flex-direction: column; align-items: center; gap: .625rem; }
.pf-dial .ring {
  width: 80px; height: 80px; position: relative;
  border-radius: 50%;
  background: conic-gradient(var(--pf-brand) calc(var(--val, 70) * 1%), var(--pf-bg-subtle) 0);
  display: flex; align-items: center; justify-content: center;
}
.pf-dial .ring::before {
  content: ''; position: absolute; inset: 6px; border-radius: 50%; background: #fff;
}
.pf-dial .ring .v { position: relative; font-size: 1.25rem; font-weight: 800; color: var(--pf-text); }
.pf-dial .ring .of { position: relative; font-size: .625rem; color: var(--pf-text-muted); margin-left: 2px; }
.pf-dial .lbl { font-size: .8125rem; color: var(--pf-text-muted); font-weight: 500; text-align: center; }

/* SMART criteria grid (action plan) */
.pf-smart-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.25rem; }
@media (max-width: 720px) { .pf-smart-grid { grid-template-columns: 1fr; } }
.pf-smart {
  background: var(--pf-surface-alt); border: 1px solid var(--pf-border); border-radius: var(--pf-radius);
  padding: 1rem;
}
.pf-smart .lbl { font-size: .75rem; font-weight: 600; color: var(--pf-text); margin-bottom: .5rem; display: flex; gap: .5rem; align-items: baseline; }
.pf-smart .lbl .q { color: var(--pf-text-muted); font-weight: 400; font-size: .75rem; }
.pf-smart .val { font-size: .875rem; color: var(--pf-text); line-height: 1.5; }

/* Goal 1 badge row */
.pf-goal-label { display: inline-flex; align-items: center; gap: .5rem; padding: .25rem .625rem; background: var(--pf-bg-subtle); border: 1px solid var(--pf-border); border-radius: var(--pf-radius-pill); font-size: .75rem; font-weight: 600; color: var(--pf-text); }

/* Progress legend */
.pf-progress-legend { display: flex; gap: 1.25rem; font-size: .8125rem; color: var(--pf-text-muted); margin-top: .625rem; }
.pf-progress-legend .dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: .375rem; vertical-align: middle; }

/* Mood picker */
.pf-mood-row { display: flex; gap: .5rem; flex-wrap: wrap; }
.pf-mood {
  padding: .5rem .875rem; font-size: .875rem; font-weight: 500;
  background: #fff; border: 1px solid var(--pf-border); border-radius: var(--pf-radius-pill);
  color: var(--pf-text-muted); cursor: pointer; display: inline-flex; align-items: center; gap: .375rem;
  font-family: inherit;
  transition: all .12s ease;
}
.pf-mood:hover { border-color: var(--pf-border-strong); }
.pf-mood.active.excellent   { background: var(--pf-success-tint); border-color: #a7f3d0; color: var(--pf-success); }
.pf-mood.active.good        { background: var(--pf-brand-tint); border-color: var(--pf-brand-pale); color: var(--pf-brand); }
.pf-mood.active.neutral     { background: var(--pf-bg-subtle); border-color: var(--pf-border-strong); color: var(--pf-text); }
.pf-mood.active.challenging { background: var(--pf-warn-tint); border-color: #fde68a; color: var(--pf-warn); }
.pf-mood.active.difficult   { background: var(--pf-danger-tint); border-color: #fecaca; color: var(--pf-danger); }
