/* ═══════════════════════════════════════════════════════════════
   PERSONAGEN — Portal Stylesheet (client-onboarding.html)
   Requires: tokens.css loaded first
   Presentation mode: COMMAND CENTRE — editorial, calm, operational
   Container: 880px centered column
   ═══════════════════════════════════════════════════════════════ */

/* ── Ambient ── */
/* .ambient and .ambient-orb defined in tokens.css */

/* ── Body overrides for portal ── */
body { background: var(--bg); color: var(--text); }

/* ── Nav offset ── */
.portal-body { padding-top: 58px; }

/* ── Hero ── */
.hero {
  min-height: 75vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: var(--space-20) var(--space-8) var(--space-16);
  position: relative; z-index: var(--z-content);
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 18px; border-radius: var(--radius-full);
  background: var(--accent-soft); border: 1px solid var(--accent-mid);
  font-size: var(--text-sm); font-weight: var(--weight-semi);
  letter-spacing: var(--tracking-wider); text-transform: uppercase;
  color: var(--accent); margin-bottom: var(--space-8);
  animation: fadeDown 0.7s ease;
}

.hero-eyebrow .pulse {
  width: 7px; height: 7px;
  background: var(--success); border-radius: 50%;
  animation: ambientPulse 2s infinite;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: var(--weight-semi);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-6);
  animation: fadeDown 0.7s ease 0.1s both;
}

.hero h1 .grad {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  max-width: 540px;
  color: var(--text-muted);
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
  animation: fadeDown 0.7s ease 0.2s both;
}

/* ── Scope bar (timeline badges in hero) ── */
.scope-bar {
  display: flex; justify-content: center; gap: var(--space-6);
  flex-wrap: wrap;
  margin-top: var(--space-10);
  animation: fadeDown 0.7s ease 0.3s both;
}

.scope-chip {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--border);
  font-size: var(--text-base); color: var(--text-muted);
}

.scope-chip strong { color: var(--text); font-weight: var(--weight-semi); }
.scope-chip .dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.dot-purple  { background: var(--accent); }
.dot-cyan    { background: var(--cyan); }
.dot-gold    { background: var(--gold); }
.dot-rose    { background: var(--rose); }
.dot-success { background: var(--success); }

/* ── Layout ── */
.container {
  max-width: var(--container-md);
  margin: 0 auto;
  padding: 0 var(--space-8);
  position: relative; z-index: var(--z-content);
}

/* ── Sections ── */
.section { padding: var(--section-py) 0; }

.section-eyebrow {
  display: block;
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-3);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: var(--weight-semi);
  line-height: var(--leading-snug);
  margin-bottom: var(--space-3);
}

.section-desc {
  color: var(--text-muted);
  max-width: 580px;
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-10);
}

/* ── Divider ── */
.divider {
  width: 50px; height: 2px; border-radius: 2px;
  background: var(--gradient);
  margin: var(--space-12) auto;
}

/* ── Journey timeline ── */
.journey { position: relative; }

.journey::before {
  content: '';
  position: absolute; left: 24px; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(to bottom, var(--accent) 0%, var(--cyan) 40%, var(--gold) 70%, var(--success) 100%);
  opacity: 0.2;
}

.phase {
  position: relative;
  padding-left: 64px;
  padding-bottom: var(--space-12);
}

.phase:last-child { padding-bottom: 0; }

.phase-dot {
  position: absolute; left: 13px; top: 6px;
  width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: var(--text-xs); font-weight: var(--weight-bold);
  color: #fff; z-index: var(--z-content);
}

.phase-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem;
  transition: border-color var(--ease-std), box-shadow var(--ease-std);
}

.phase-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 6px 30px rgba(124,106,237,0.05);
}

.phase-scope {
  display: inline-block;
  padding: 3px 10px; border-radius: var(--radius-xs);
  font-size: var(--text-xs); font-weight: var(--weight-semi);
  letter-spacing: var(--tracking-wide); text-transform: uppercase;
  margin-bottom: var(--space-3);
}

.scope-agreement  { background: var(--rose-soft);    color: var(--rose); }
.scope-onboarding { background: var(--accent-soft);  color: var(--accent); }
.scope-project    { background: var(--cyan-soft);    color: var(--cyan); }
.scope-golive     { background: var(--success-soft); color: var(--success); }

.phase-title { font-size: var(--text-lg); font-weight: var(--weight-semi); margin-bottom: var(--space-1); }
.phase-sub   { color: var(--text-muted); font-size: var(--text-base); margin-bottom: var(--space-4); line-height: var(--leading-relaxed); }

.tags { display: flex; flex-wrap: wrap; gap: 6px; }

.tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px; border-radius: 7px;
  font-size: 0.76rem; font-weight: var(--weight-medium);
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text-muted);
}

.tag .ico { font-size: 0.85rem; }

/* ── Gate dividers ── */
.gate {
  position: relative; padding-left: 64px; padding-bottom: var(--space-10);
  display: flex; align-items: center; gap: 12px;
}

.gate-line { flex: 1; height: 1px; background: var(--border); }

.gate-label {
  padding: 4px 14px; border-radius: var(--radius-xs);
  font-size: 0.7rem; font-weight: var(--weight-semi);
  letter-spacing: var(--tracking-wide); text-transform: uppercase;
  white-space: nowrap;
}

.gate-check { background: var(--accent-soft); color: var(--accent); }
.gate-final { background: var(--success-soft); color: var(--success); }

/* ── Expandable details ── */
.phase-details {
  margin-top: var(--space-4);
  border-top: 1px solid var(--border);
  padding-top: var(--space-4);
}

.phase-details summary {
  font-size: var(--text-base); font-weight: var(--weight-semi);
  color: var(--accent); cursor: pointer;
  list-style: none; display: flex; align-items: center; gap: 6px;
  transition: color var(--ease-fast);
}

.phase-details summary::-webkit-details-marker { display: none; }
.phase-details summary::before { content: '▸'; transition: transform 0.2s; display: inline-block; }
.phase-details[open] summary::before { transform: rotate(90deg); }
.phase-details summary:hover { color: var(--rose); }

.detail-content { padding-top: var(--space-4); }

.detail-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap-sm);
}

.detail-item {
  padding: 0.75rem 1rem; border-radius: var(--radius-sm);
  background: var(--surface-2); border: 1px solid var(--border);
}

.detail-item-label {
  font-size: var(--text-xs); font-weight: var(--weight-bold);
  text-transform: uppercase; letter-spacing: var(--tracking-wide);
  margin-bottom: var(--space-1);
}

.detail-item-label.rose   { color: var(--rose); }
.detail-item-label.accent { color: var(--accent); }
.detail-item-label.cyan   { color: var(--cyan); }
.detail-item-label.gold   { color: var(--gold); }
.detail-item-label.green  { color: var(--success); }

.detail-item-value {
  font-size: var(--text-base); color: var(--text-muted);
  line-height: var(--leading-relaxed);
}

/* ── Benefits grid ── */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--gap-md);
}

.benefit {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem;
  transition: transform var(--ease-std), border-color var(--ease-std);
}

.benefit:hover { transform: translateY(-3px); border-color: var(--border-hover); }

.benefit-ico {
  width: 44px; height: 44px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: var(--space-4);
}

.benefit h3 { font-size: var(--text-base); font-weight: var(--weight-semi); margin-bottom: var(--space-1); }
.benefit p  { color: var(--text-muted); font-size: var(--text-base); line-height: var(--leading-relaxed); }

/* ── Scoring grid ── */
.score-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap-md); }

.score-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: var(--space-6); text-align: center;
  transition: border-color var(--ease-std);
}

.score-card:hover { border-color: var(--border-hover); }

.score-num {
  font-family: var(--font-display);
  font-size: 2.2rem; font-weight: var(--weight-bold); line-height: 1;
}

.score-label { font-weight: var(--weight-semi); font-size: var(--text-base); margin: 0.35rem 0 0.15rem; }
.score-eta   { color: var(--accent); font-size: 0.78rem; font-weight: var(--weight-medium); }
.score-desc  { color: var(--text-muted); font-size: 0.75rem; margin-top: var(--space-1); }

/* ── Communication rows ── */
.comm-row {
  display: flex; align-items: center; gap: var(--space-4);
  padding: 1.1rem 1.4rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: var(--gap-sm);
  transition: border-color var(--ease-std);
}

.comm-row:hover { border-color: var(--border-hover); }

.comm-ico {
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; flex-shrink: 0;
}

.comm-body         { flex: 1; }
.comm-body strong  { font-size: var(--text-base); font-weight: var(--weight-semi); }
.comm-body p       { color: var(--text-muted); font-size: 0.8rem; margin-top: 1px; }
.comm-sla          { padding: 3px 11px; border-radius: var(--radius-xs); font-size: 0.72rem; font-weight: var(--weight-semi); white-space: nowrap; }

/* ── Agreement clause grid ── */
.clause-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--gap-md);
}

.clause-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: var(--space-6);
  transition: border-color var(--ease-std);
  border-left: 3px solid var(--accent);
}

.clause-card:hover { border-color: var(--border-hover); }
.clause-card:nth-child(2) { border-left-color: var(--cyan); }
.clause-card:nth-child(3) { border-left-color: var(--rose); }
.clause-card:nth-child(4) { border-left-color: var(--gold); }
.clause-card:nth-child(5) { border-left-color: var(--success); }
.clause-card:nth-child(6) { border-left-color: var(--accent); }
.clause-card:nth-child(7) { border-left-color: var(--cyan); }
.clause-card:nth-child(8) { border-left-color: var(--rose); }

.clause-ico   { font-size: 1.2rem; margin-bottom: var(--space-2); }
.clause-title { font-size: var(--text-base); font-weight: var(--weight-semi); margin-bottom: var(--space-1); }
.clause-desc  { font-size: 0.8rem; color: var(--text-muted); line-height: var(--leading-relaxed); }

/* ── Roadmap ── */
.roadmap-track { position: relative; padding-bottom: var(--space-12); }

.roadmap-track::before {
  content: '';
  position: absolute; top: 28px; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--rose), var(--accent), var(--cyan), var(--gold), var(--success));
  opacity: 0.2; border-radius: 2px;
}

.roadmap-cols {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 0; position: relative;
}

.rm-col {
  display: flex; flex-direction: column; align-items: center;
  position: relative; padding: 0 0.5rem;
}

.rm-node {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; border: 2px solid;
  background: var(--surface); margin-bottom: var(--space-4);
  position: relative; z-index: var(--z-content);
  transition: transform var(--ease-std), box-shadow var(--ease-std);
  cursor: default;
}

.rm-col:hover .rm-node { transform: scale(1.1); }
.rm-node.done   { border-color: var(--success); box-shadow: 0 0 20px rgba(52,211,153,0.15); }
.rm-node.active { border-color: var(--accent);  box-shadow: var(--shadow-accent); animation: rmPulse 2.5s infinite; }
.rm-node.next   { border-color: var(--cyan);    box-shadow: var(--shadow-cyan); }
.rm-node.future { border-color: var(--border);  opacity: 0.5; }

@keyframes rmPulse {
  0%, 100% { box-shadow: 0 0 24px rgba(124,106,237,0.25); }
  50%      { box-shadow: 0 0 40px rgba(124,106,237,0.45); }
}

.rm-status-badge {
  font-size: var(--text-xs); font-weight: var(--weight-bold);
  text-transform: uppercase; letter-spacing: var(--tracking-wider);
  padding: 2px 8px; border-radius: var(--radius-full); margin-bottom: var(--space-2);
}

.rm-status-badge.done   { background: var(--success-soft); color: var(--success); }
.rm-status-badge.active { background: var(--accent-soft);  color: var(--accent); }
.rm-status-badge.next   { background: var(--cyan-soft);    color: var(--cyan); }
.rm-status-badge.future { background: rgba(255,255,255,0.05); color: var(--text-dim); }

.rm-phase-title { font-size: 0.78rem; font-weight: var(--weight-semi); text-align: center; margin-bottom: var(--space-1); line-height: var(--leading-snug); }
.rm-timeline    { font-size: var(--text-xs); color: var(--text-dim); margin-bottom: var(--space-2); }

.rm-items {
  font-size: 0.68rem; color: var(--text-muted);
  text-align: center; line-height: var(--leading-loose);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 0.75rem; width: 100%;
}

/* ── Post-launch roadmap ── */
.postlaunch-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-md); margin-top: var(--space-12);
}

.pl-quarter {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: var(--space-6); border-top: 3px solid;
}

.pl-quarter:nth-child(1) { border-top-color: var(--accent); }
.pl-quarter:nth-child(2) { border-top-color: var(--cyan); }
.pl-quarter:nth-child(3) { border-top-color: var(--gold); }

.pl-q-label { font-size: var(--text-xs); font-weight: var(--weight-bold); text-transform: uppercase; letter-spacing: var(--tracking-wider); color: var(--text-dim); margin-bottom: var(--space-1); }
.pl-q-title { font-size: var(--text-base); font-weight: var(--weight-semi); margin-bottom: var(--space-4); }

.pl-milestone {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 0.76rem; color: var(--text-muted);
  margin-bottom: var(--space-2); line-height: var(--leading-snug);
}

.pl-milestone::before { content: '→'; flex-shrink: 0; font-weight: var(--weight-bold); margin-top: 1px; }
.pl-quarter:nth-child(1) .pl-milestone::before { color: var(--accent); }
.pl-quarter:nth-child(2) .pl-milestone::before { color: var(--cyan); }
.pl-quarter:nth-child(3) .pl-milestone::before { color: var(--gold); }

/* ── CTA section ── */
.cta {
  text-align: center; padding: var(--section-py) var(--space-8);
  position: relative; z-index: var(--z-content);
}

.cta h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--weight-semi);
  margin-bottom: var(--space-3);
}

.cta p { color: var(--text-muted); max-width: 440px; margin: 0 auto var(--space-8); font-size: var(--text-base); }

.cta-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 34px; border-radius: 12px;
  background: var(--gradient-subtle);
  color: #fff; font-weight: var(--weight-semi); font-size: var(--text-base);
  text-decoration: none; border: none; cursor: pointer;
  transition: transform var(--ease-fast), box-shadow var(--ease-std);
  font-family: var(--font-body);
}

.cta-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-accent); }

/* ── Footer ── */
footer {
  text-align: center; padding: 2.5rem var(--space-8);
  border-top: 1px solid var(--border);
  color: var(--text-dim); font-size: 0.78rem;
  position: relative; z-index: var(--z-content);
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 900px) {
  .roadmap-cols     { grid-template-columns: repeat(3, 1fr); }
  .roadmap-track::before { display: none; }
  .postlaunch-grid  { grid-template-columns: 1fr; }
  .score-grid       { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .hero             { padding: 3.5rem 1.5rem 3rem; }
  .container        { padding: 0 var(--space-5); }
  .phase            { padding-left: 50px; }
  .journey::before  { left: 18px; }
  .phase-dot        { left: 7px; }
  .score-grid       { grid-template-columns: 1fr; }
  .scope-bar        { gap: 0.75rem; }
  .detail-grid      { grid-template-columns: 1fr; }
  .clause-grid      { grid-template-columns: 1fr; }
  .roadmap-cols     { grid-template-columns: repeat(2, 1fr); }
  .pg-nav-links .pg-nav-link:not(.active):not(.pg-nav-cta) { display: none; }
}
