/* Ballast walkthrough. Builds on ../assets/styles.css (fonts, colour tokens, .wrap). */

.wt-top { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--rule); }
.wt-top-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.wt-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-size: 1.35rem; font-weight: 500; }
.wt-brand svg { width: 34px; height: auto; }
.wt-top-nav { display: flex; align-items: center; gap: 20px; font-size: 0.95rem; }
.wt-top-nav a { text-decoration: none; }
.wt-top-nav a:hover { text-decoration: underline; }
.wt-cta-small { background: var(--ink); color: var(--paper) !important; padding: 8px 14px; border-radius: 999px; }
.wt-cta-small:hover { text-decoration: none !important; background: var(--accent); }

.wt-main { padding-top: 48px; padding-bottom: 72px; }
.wt-main:focus { outline: none; }

.wt-intro { max-width: 820px; }
.wt-eyebrow { font: 500 0.8rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.wt-intro h1 { font-family: var(--serif); font-size: clamp(2rem, 4.5vw, 3.2rem); line-height: 1.08; letter-spacing: -0.015em; }
.wt-lede { margin-top: 18px; font-size: 1.1rem; color: var(--ink-2); max-width: 680px; }

.wt-picker { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.wt-chip { font: 500 0.95rem/1 var(--sans); padding: 11px 16px; border-radius: 999px; border: 1px solid var(--rule-strong); background: transparent; color: var(--ink); cursor: pointer; }
.wt-chip:hover { background: var(--paper-2); }
.wt-chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.wt-notice { margin-top: 16px; font-size: 0.88rem; color: var(--muted); }
.wt-notice b { color: var(--ink); }

.wt-firm { display: flex; align-items: center; gap: 14px; margin-top: 40px; padding: 18px 20px; background: #fff; border: 1px solid var(--rule); border-radius: 14px; }
.wt-firm-logo { flex: none; width: 48px; height: 48px; border-radius: 12px; background: var(--accent); color: var(--paper); display: grid; place-items: center; font: 600 1rem/1 var(--sans); letter-spacing: 0.04em; }
.wt-firm-name { font-family: var(--serif); font-size: 1.35rem; line-height: 1.2; }
.wt-firm-sub { font-size: 0.9rem; color: var(--muted); }

/* Steps */
.wt-steps { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 24px; scroll-margin-top: 76px; }
.wt-step { width: 100%; height: 100%; display: flex; gap: 10px; align-items: flex-start; text-align: left; padding: 12px; border: 1px solid var(--rule); border-radius: 12px; background: transparent; color: var(--ink); cursor: pointer; font: inherit; }
.wt-step:hover { background: var(--paper-2); }
.wt-step-n { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--ink); display: grid; place-items: center; font: 500 0.8rem/1 var(--mono); }
.wt-step-t { display: flex; flex-direction: column; gap: 2px; }
.wt-step-title { font-weight: 600; font-size: 0.95rem; line-height: 1.25; }
.wt-step-when { font-size: 0.78rem; color: var(--muted); }
.wt-step.is-done .wt-step-n { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.wt-step.is-current { border-color: var(--ink); background: #fff; box-shadow: inset 0 -3px 0 var(--signal); }
.wt-step.is-current .wt-step-n { background: var(--signal); border-color: var(--signal); color: var(--ink); }

/* Panel */
.wt-panel { margin-top: 16px; padding: 32px; background: #fff; border: 1px solid var(--rule); border-radius: 16px; min-height: 420px; }
.wt-panel:focus { outline: none; }
.wt-panel-head { margin-bottom: 14px; }
.wt-panel-when { font: 500 0.78rem/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.wt-panel-head h2 { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.15; }
.wt-panel-lede { font-size: 1.05rem; color: var(--ink-2); max-width: 760px; margin-bottom: 24px; }
.wt-panel h3 { font-size: 1rem; font-weight: 600; margin-bottom: 10px; }

.wt-cols { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; }
.wt-card { padding: 20px; border: 1px solid var(--rule); border-radius: 12px; background: var(--paper); }
.wt-card-quiet { background: transparent; }
.wt-card-dark { background: var(--dark); color: var(--dark-ink); border-color: var(--dark); margin-top: 16px; }
.wt-list { padding-left: 1.2em; display: grid; gap: 8px; }
.wt-ticks, .wt-crosses { list-style: none; padding-left: 0; }
.wt-ticks li, .wt-crosses li { position: relative; padding-left: 26px; }
.wt-ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 600; }
.wt-card-dark .wt-ticks li::before { color: var(--signal); }
.wt-crosses li::before { content: "×"; position: absolute; left: 2px; color: var(--error); font-weight: 600; }

/* Gaps */
.wt-gaps { display: grid; gap: 18px; }
.wt-gap-top { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.wt-gap-title { font-weight: 500; }
.wt-gap-value { font: 500 1rem/1 var(--mono); white-space: nowrap; }
.wt-bar { height: 10px; background: var(--paper-2); border-radius: 999px; overflow: hidden; margin: 8px 0 6px; }
.wt-bar span { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 999px; transition: width 0.6s ease; }
.wt-gap-math { font: 400 0.85rem/1.4 var(--mono); color: var(--muted); }
.wt-skip { margin-top: 22px; }
.wt-foot-note { margin-top: 14px; font-size: 0.88rem; color: var(--muted); }

/* Systems */
.wt-systems { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.wt-system p { font-size: 0.95rem; }
.wt-meta { margin-top: 10px; font-size: 0.88rem !important; color: var(--ink-2); }
.wt-human { padding-top: 10px; border-top: 1px dashed var(--rule); }

/* Launch */
.wt-flow { display: grid; gap: 8px; max-width: 720px; }
.wt-arrow { text-align: center; color: var(--muted); font-size: 1.2rem; line-height: 1; }
.wt-msg { padding: 16px 18px; border-radius: 12px; border: 1px solid var(--rule); }
.wt-msg-in { background: var(--paper); }
.wt-msg-draft { background: #fff; border-color: var(--accent); box-shadow: inset 4px 0 0 var(--accent); }
.wt-msg-meta { font: 500 0.78rem/1.3 var(--mono); color: var(--muted); margin-bottom: 6px; }
.wt-msg-src { margin-top: 8px; font-size: 0.82rem; color: var(--muted); }
.wt-approve { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 14px 0; }
.wt-approve-status { font-size: 0.95rem; color: var(--ink-2); }
.wt-approve-status.ok { color: var(--accent); font-weight: 500; }
.wt-approve-status:focus { outline: none; }

/* Month six */
.wt-chart { margin: 0 0 22px; }
.wt-chart-bars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; align-items: end; height: 220px; padding-bottom: 4px; border-bottom: 1px solid var(--ink); }
.wt-col { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 6px; }
.wt-col-bar { display: block; width: 100%; max-width: 64px; height: 0; background: var(--accent); border-radius: 6px 6px 0 0; transition: height 0.7s ease; }
.wt-col:last-child .wt-col-bar { background: var(--signal); }
.wt-col-v { font: 500 0.82rem/1 var(--mono); }
.wt-chart-labels { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 8px; text-align: center; font-size: 0.78rem; color: var(--muted); }
.wt-chart figcaption { margin-top: 10px; font-size: 0.85rem; color: var(--muted); }
.wt-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.wt-kpi { padding: 16px; border: 1px solid var(--rule); border-radius: 12px; }
.wt-kpi-v { font-family: var(--serif); font-size: 2rem; line-height: 1.1; }
.wt-kpi-l { font-size: 0.9rem; margin-top: 4px; }
.wt-kpi-was { font-size: 0.82rem; color: var(--muted); }
.wt-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.wt-table td { padding: 9px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.wt-table td:last-child { text-align: right; font-family: var(--mono); white-space: nowrap; padding-left: 16px; }
.wt-table .wt-strong td { font-weight: 600; }

/* Pager and end */
.wt-pager { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; gap: 12px; }
.wt-count { font-size: 0.88rem; color: var(--muted); }
.wt-btn { display: inline-block; font: 500 0.98rem/1 var(--sans); padding: 13px 20px; border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); text-decoration: none; cursor: pointer; }
.wt-btn:hover { background: var(--accent); border-color: var(--accent); }
.wt-btn:disabled { opacity: 0.35; cursor: default; background: var(--ink); }
.wt-btn-ghost { background: transparent; color: var(--ink); }
.wt-btn-ghost:hover { background: var(--paper-2); border-color: var(--ink); }
.wt-btn-ghost:disabled, .wt-btn-ghost:disabled:hover { background: transparent; color: var(--ink); border-color: var(--ink); }
.wt-btn[hidden] { display: none; }

.wt-end { margin-top: 48px; padding: 36px; border-radius: 16px; background: var(--dark); color: var(--dark-ink); }
.wt-end h2 { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.2rem); }
.wt-end p { margin-top: 10px; color: var(--dark-muted); max-width: 640px; }
.wt-end.is-ready { box-shadow: 0 0 0 3px var(--signal); }
.wt-end-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.wt-end .wt-btn { background: var(--signal); border-color: var(--signal); color: var(--ink); }
.wt-end .wt-btn:hover { background: var(--paper); border-color: var(--paper); }
.wt-end .wt-btn-ghost { background: transparent; color: var(--dark-ink); border-color: var(--dark-ink); }
.wt-end .wt-btn-ghost:hover { background: var(--dark-rule); color: var(--dark-ink); }

.wt-foot { border-top: 1px solid var(--rule); padding: 24px 0 40px; font-size: 0.85rem; color: var(--muted); }

@media (max-width: 900px) {
  .wt-steps { grid-template-columns: repeat(5, minmax(150px, 1fr)); overflow-x: auto; padding-bottom: 6px; }
  .wt-cols, .wt-systems, .wt-kpis { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap.wt-main, .wt-top .wrap, .wt-foot .wrap { padding-left: 16px; padding-right: 16px; }
  .wt-top-nav a:not(.wt-cta-small) { display: none; }
  .wt-panel { padding: 20px 16px; }
  .wt-end { padding: 26px 18px; }
  .wt-chart-bars { gap: 6px; height: 180px; }
  .wt-chart-labels { gap: 6px; font-size: 0.68rem; }
  .wt-gap-top { flex-direction: column; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .wt-bar span, .wt-col-bar { transition: none; }
}
