/* Pitch deck builder, in Blueprint Equity Design System v4.
   Every rule is scoped under #pd-root. Tokens only (tokens.css). Mirrors the annual plan builder. */

#pd-root { color: var(--fg-1); font-family: var(--font-sans); }
#pd-root *, #pd-root *::before, #pd-root *::after { box-sizing: border-box; }
#pd-root .pd-loading { padding: var(--space-7) 0; color: var(--fg-2); font-size: 14px; }
#pd-root .pd-app { min-width: 0; }

#pd-root .pd-kicker { font-size: 12.5px; line-height: 1.3; font-weight: 600; letter-spacing: .005em; color: var(--fg-2); }
#pd-root .pd-hint { font-size: 13px; line-height: 1.45; color: var(--fg-2); }
#pd-root .pd-hint-block { margin-top: var(--space-4); font-size: 14px; }
#pd-root .pd-hint a, #pd-root .pd-hint-block a { color: var(--fg-link); }
#pd-root .pd-help { font-size: 17px; line-height: 1.55; color: var(--fg-2); max-width: var(--measure); margin: var(--space-3) 0 var(--space-6); }
#pd-root .pd-title { font-size: 28px; line-height: 1.2; font-weight: 600; letter-spacing: -.015em; margin-top: var(--space-1); }

/* Masthead: company and the step rail. Sticks to the top of the viewport while you work. */
#pd-root .pd-masthead { position: sticky; top: var(--ws-nav-offset, 0px); transition: top var(--ws-nav-ease, 0s); z-index: 20; background: var(--bg-raised); border-bottom: 1px solid var(--rule); }
#pd-root .pd-masthead-row { padding: var(--space-4) 0 var(--space-3); display: flex; align-items: flex-end; gap: var(--space-3); flex-wrap: wrap; }
#pd-root .pd-masthead-title { display: flex; flex-direction: column; gap: 2px; margin-right: auto; }
#pd-root .pd-masthead-name { font-size: 21px; line-height: 1.28; font-weight: 600; letter-spacing: -.01em; }
#pd-root .pd-steps { padding: 0 0 var(--space-2); display: flex; flex-wrap: wrap; border-top: 1px solid var(--rule); }
#pd-root .pd-step {
  appearance: none; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--fg-2);
  border-radius: 0; padding: var(--space-3) 0 10px; margin-right: var(--space-3);
  font: 500 13.5px/1.2 var(--font-sans); cursor: pointer; display: inline-flex; align-items: center; gap: var(--space-2);
}
#pd-root .pd-step:hover { color: var(--fg-1); }
#pd-root .pd-step.is-active { color: var(--fg-1); border-bottom-color: var(--bp-primary); font-weight: 600; }
#pd-root .pd-step-n { font-size: 12.5px; font-weight: 500; color: var(--fg-2); font-variant-numeric: tabular-nums; }
#pd-root .pd-step-dot { width: 7px; height: 7px; border-radius: var(--radius-dot); background: var(--data-ghost); flex: none; }
#pd-root .pd-step.is-done .pd-step-dot { background: var(--status-positive); }

/* Inputs: sunken fills, square, a hairline that turns blue on focus. */
#pd-root .pd-input {
  appearance: none; -webkit-appearance: none;
  background: var(--bg-sunken); border: 0; border-bottom: 1px solid var(--rule-input); border-radius: var(--radius-sheet);
  padding: 10px 12px 9px; font: 400 16px/1.4 var(--font-sans); color: var(--fg-1); width: 100%; min-width: 0;
}
#pd-root .pd-input:hover { border-bottom-color: var(--rule-strong); }
#pd-root .pd-input:focus, #pd-root .pd-input:focus-visible { outline: none; border-bottom: 2px solid var(--focus); padding-bottom: 8px; }
#pd-root .pd-input::placeholder { color: var(--fg-2); opacity: .7; }
#pd-root .pd-input-company { width: 220px; font-weight: 600; }
#pd-root .pd-input-headline { font-size: 18px; font-weight: 600; letter-spacing: -.005em; }
#pd-root .pd-textarea { line-height: 1.5; resize: vertical; }
#pd-root .pd-num { font-weight: 600; font-variant-numeric: tabular-nums lining-nums; }
#pd-root .pd-select { appearance: auto; -webkit-appearance: menulist; width: auto; font-size: 14px; font-weight: 600; padding: 6px 8px; cursor: pointer; }
#pd-root .pd-slider input[type="range"] { width: 100%; accent-color: var(--bp-primary); margin: 10px 0 4px; }

/* Buttons: soft corners for pressing. Ink primary, outlined secondary. */
#pd-root .pd-btn {
  appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  height: 44px; padding: 0 20px; border: 1px solid transparent; border-radius: var(--radius-press);
  font: 500 15px/1 var(--font-sans); cursor: pointer; white-space: nowrap;
  transition: background-color .12s ease, color .12s ease, border-color .12s ease;
}
#pd-root .pd-btn svg { flex: none; }
#pd-root .pd-btn-primary { background: var(--action-primary); color: var(--fg-on-action); }
#pd-root .pd-btn-primary:hover { background: var(--action-primary-hover); color: var(--fg-on-action-hover); }
#pd-root .pd-btn-secondary, #pd-root .pd-btn-ghost { background: transparent; color: var(--fg-1); border-color: var(--rule-strong); }
#pd-root .pd-btn-secondary:hover, #pd-root .pd-btn-ghost:hover { background: var(--fg-1); color: var(--bg-page); }
#pd-root .pd-btn-ghost { border-color: var(--rule); color: var(--fg-2); }
#pd-root .pd-btn-dashed { align-self: flex-start; height: 38px; padding: 0 14px; background: transparent; border: 1px dashed var(--rule-input); color: var(--fg-1); font-size: 14px; }
#pd-root .pd-btn-dashed:hover { border-style: solid; border-color: var(--rule-strong); }
#pd-root .pd-btn-back { background: transparent; color: var(--fg-1); padding: 0 4px; }
#pd-root .pd-btn-back:hover { color: var(--fg-link); }
#pd-root .pd-x {
  appearance: none; flex-shrink: 0; display: inline-grid; place-items: center; width: 32px; height: 32px;
  background: transparent; border: 0; border-radius: var(--radius-press); color: var(--fg-2); cursor: pointer; padding: 0;
}
#pd-root .pd-x:hover { color: var(--status-negative); background: var(--bg-sunken); }
#pd-root .pd-link { appearance: none; background: none; border: 0; padding: 0; font: 500 14px/1.2 var(--font-sans); color: var(--fg-link); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* A slide step: the number, the job, then the form beside the live slide and the guidance. */
#pd-root .pd-content { padding-top: var(--space-6); }
#pd-root .pd-head { display: flex; align-items: flex-start; gap: var(--space-5); }
#pd-root .pd-num { font-size: 64px; font-weight: 600; letter-spacing: -.045em; line-height: .85; font-variant-numeric: tabular-nums lining-nums; }
#pd-root .pd-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: var(--space-6); align-items: start; }
#pd-root .pd-form { display: flex; flex-direction: column; gap: var(--space-5); min-width: 0; }
#pd-root .pd-side { position: sticky; top: calc(var(--ws-nav-offset, 0px) + 132px); transition: top var(--ws-nav-ease, 0s); display: flex; flex-direction: column; gap: var(--space-5); min-width: 0; }

#pd-root .pd-card {
  background: var(--bg-page); border: 1px solid var(--rule); border-radius: var(--radius-sheet);
  padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-4); min-width: 0;
}
#pd-root .pd-card-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; }
#pd-root .pd-inline { display: inline-flex; align-items: center; gap: var(--space-2); }
#pd-root .pd-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
#pd-root .pd-field.is-wide { grid-column: 1 / -1; }
#pd-root .pd-label { font-size: 12.5px; line-height: 1.3; font-weight: 600; letter-spacing: .005em; color: var(--fg-1); }
#pd-root .pd-grid { display: grid; gap: var(--space-3) var(--space-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); align-items: start; }
#pd-root .pd-grid-pair { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
#pd-root .pd-grid-mkt { grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); }
#pd-root .pd-grid-tier { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr); padding-top: var(--space-3); border-top: 1px solid var(--rule); }#pd-root .pd-grid-alt { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); }
#pd-root .pd-grid-eq { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: var(--space-4); }
#pd-root .pd-list { display: flex; flex-direction: column; gap: var(--space-4); }
#pd-root .pd-list-item { display: flex; flex-direction: column; gap: var(--space-2); padding-top: var(--space-3); border-top: 1px solid var(--rule); }
#pd-root .pd-list-head { display: flex; align-items: center; justify-content: space-between; min-height: 32px; }

/* Live slide and the framework's guidance */
#pd-root .pd-preview { border: 1px solid var(--rule); border-radius: var(--radius-sheet); overflow: hidden; background: var(--bg-inverse); }
#pd-root .pd-preview-frame { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }
#pd-root .pd-preview-wait { aspect-ratio: 16 / 9; }
#pd-root .pd-guide { border-top: 1px solid var(--rule-strong); display: flex; flex-direction: column; }
#pd-root .pd-guide-block { padding: var(--space-4) 0; border-bottom: 1px solid var(--rule); }
#pd-root .pd-guide-block p, #pd-root .pd-guide-block ul { margin: var(--space-2) 0 0; font-size: 15px; line-height: 1.5; }
#pd-root .pd-guide-block ul { padding-left: 1.1em; }
#pd-root .pd-guide-block li + li { margin-top: 4px; }
#pd-root .pd-guide-q p { font-size: 18px; font-weight: 600; letter-spacing: -.005em; }

/* Review */
#pd-root .pd-review-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-5); flex-wrap: wrap; }
#pd-root .pd-review-actions { display: flex; gap: var(--space-2); flex-wrap: wrap; }
#pd-root .pd-score { display: flex; align-items: baseline; gap: var(--space-3); flex-wrap: wrap; margin: var(--space-5) 0; padding-top: var(--space-4); border-top: 1px solid var(--rule-strong); }
#pd-root .pd-score-n { font-size: 44px; line-height: 1; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums lining-nums; }
#pd-root .pd-score-label { font-size: 17px; color: var(--fg-2); }
#pd-root .pd-preview-full { margin-top: var(--space-2); }
#pd-root .pd-review { margin-top: var(--space-6); display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: var(--space-5) var(--space-6); }
#pd-root .pd-review-slide { border-top: 1px solid var(--rule-strong); padding-top: var(--space-3); }
#pd-root .pd-review-slide-head { display: flex; align-items: baseline; gap: var(--space-3); margin-bottom: var(--space-2); }
#pd-root .pd-review-n { font-size: 14px; font-weight: 500; color: var(--fg-2); font-variant-numeric: tabular-nums; }
#pd-root .pd-review-name { font-size: 18px; font-weight: 600; margin-right: auto; }
#pd-root .pd-checks { list-style: none; margin: 0; padding: 0; }
#pd-root .pd-checks li { position: relative; padding: 7px 0 7px 20px; font-size: 14px; line-height: 1.45; border-bottom: 1px solid var(--rule); }
#pd-root .pd-checks li::before { content: ""; position: absolute; left: 0; top: 13px; width: 8px; height: 8px; border-radius: var(--radius-dot); }
#pd-root .pd-checks li.is-ok { color: var(--fg-2); }
#pd-root .pd-checks li.is-ok::before { background: var(--status-positive); }
#pd-root .pd-checks li.is-gap::before { background: var(--status-negative); }
#pd-root .pd-rehearse { margin-top: var(--space-7); }
#pd-root .pd-rehearse-lede { margin: 0; font-size: 16px; line-height: 1.55; color: var(--fg-2); max-width: var(--measure); }
#pd-root .pd-questions { margin: 0; padding: 0; list-style: none; counter-reset: q; columns: 2; column-gap: var(--space-6); }
#pd-root .pd-questions li { counter-increment: q; break-inside: avoid; padding: 10px 0; border-top: 1px solid var(--rule); font-size: 15px; line-height: 1.45; }
#pd-root .pd-questions li span { display: block; font-size: 12.5px; font-weight: 600; color: var(--fg-2); margin-bottom: 2px; }
#pd-root .pd-questions li span::before { content: counter(q, decimal-leading-zero) "  "; }

/* Footer nav */
#pd-root .pd-footer-nav { display: flex; justify-content: space-between; gap: var(--space-4); margin-top: var(--space-6); padding-top: var(--space-5); border-top: 1px solid var(--rule); }

@media (max-width: 1000px) {
  #pd-root .pd-split { grid-template-columns: minmax(0, 1fr); }
  #pd-root .pd-side { position: static; order: -1; }
}
@media (max-width: 900px) {
  #pd-root .pd-masthead-title { flex-basis: 100%; }
  #pd-root .pd-input-company { flex: 1 1 140px; width: auto; }
  #pd-root .pd-card { padding: var(--space-4); }
  #pd-root .pd-num { font-size: 48px; }
  #pd-root .pd-title { font-size: 24px; }
}
@media (max-width: 560px) {
  #pd-root .pd-masthead { position: static; }
  #pd-root .pd-masthead-row .pd-btn { flex: 1 1 auto; }
  #pd-root .pd-step { margin-right: var(--space-3); font-size: 13px; }
  #pd-root .pd-head { gap: var(--space-3); }
  #pd-root .pd-grid-pair, #pd-root .pd-grid-mkt, #pd-root .pd-grid-tier, #pd-root .pd-grid-alt { grid-template-columns: minmax(0, 1fr); }
  #pd-root .pd-review-actions .pd-btn { flex: 1 1 auto; }
  #pd-root .pd-questions { columns: 1; }
}
