/* Entry point for your PostCSS build */
/*
 * Shared design language tokens — Newsreader / Instrument Sans / IBM Plex Mono
 * fonts, and the --rp-* color custom properties. Single source, extracted
 * from app/views/reports/show.html.erb (the reference implementation; see
 * ROLE_IA_PLAN.md, WEB_EXPERIENCE_PLAN.md §1). Dark is the default theme.
 *
 * Usage: add `wp-surface` to a page's root element to opt in. Add
 * `wp-theme-light` alongside it for the light/print variant. The `.report` /
 * `.report-theme-light` selectors are included directly (not duplicated)
 * so the career report — already shipped — draws from this same source
 * without any markup changes.
 *
 * Fonts are self-hosted (app/assets/fonts/, Latin subset only — matches what
 * these pages' copy actually uses) rather than the Google Fonts @import this
 * file used to carry (W2 brief: no external font requests in page source).
 * Filenames are relative; Propshaft rewrites them to digested /assets/ paths
 * when it compiles this file (verified: no extra plugin needed).
 */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/ibm-plex-mono-400-d803141a.woff2") format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/ibm-plex-mono-500-3f7bbac1.woff2") format('woff2');
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700; /* variable font, one file covers the whole range */
  font-display: swap;
  src: url("/assets/instrument-sans-variable-570a9648.woff2") format('woff2');
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400 500; /* variable font, one file covers 400 and 500 */
  font-display: swap;
  src: url("/assets/newsreader-normal-4b499f36.woff2") format('woff2');
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/newsreader-italic-400-4de64287.woff2") format('woff2');
}
.wp-surface, .report {
  --rp-bg: #070A10; --rp-text: #EEF2F9; --rp-muted: #97A1B4; --rp-body: #B9C2D0;
  --rp-hair: rgba(255,255,255,0.07); --rp-hair2: rgba(255,255,255,0.14);
  --rp-accent: #3DA5FF; --rp-accent2: #29F2FF;
  /* Added for W2 (concept homepage): dim label / card surface / rule line,
     plus the canonical domain palette (CLAUDE.md) reused as semantic accents
     (Jobprint=violet, Strengths=green, Gaps=red, Neutral=steel). */
  --rp-dim: #5F6A80; --rp-card: #0B0F17; --rp-rule: #39414F; --rp-label2: #C6CEDD;
  --rp-violet: #8B7CFF; --rp-green: #73F59D; --rp-red: #FF4D5E; --rp-steel: #8AA0A8;
}
.wp-surface.wp-theme-light, .report.report-theme-light {
  --rp-bg: #FAF9F5; --rp-text: #10192A; --rp-muted: #5A6474; --rp-body: #39445A;
  --rp-hair: rgba(11,21,36,0.10); --rp-hair2: rgba(11,21,36,0.18);
  --rp-accent: #1F7AD4; --rp-accent2: #0E8FA8;
  --rp-dim: #7A8394; --rp-card: #F1EFE9; --rp-rule: #D8D3C8; --rp-label2: #2C3547;
  --rp-violet: #6E5FCF; --rp-green: #2E8B57; --rp-red: #C23B4A; --rp-steel: #5E7276;
}
/* Base reset for chromeless wp-surface pages (marketing layout body) —
   the report page has its own equivalent inline; this is the shared version
   for any future layout that opts into wp-surface at the <body> level. */
.wp-marketing-body {
  margin: 0;
  background: var(--rp-bg, #070A10);
  color: var(--rp-text, #EEF2F9);
  font-family: 'Instrument Sans', -apple-system, sans-serif;
}
/* Small reusable typographic voice, matching the report page's grammar
   (numbered section labels, mono data labels) for any surface that adopts
   wp-surface without needing to redeclare font-family/letter-spacing. */
.wp-mono { font-family: 'IBM Plex Mono', monospace; }
.wp-serif { font-family: 'Newsreader', Georgia, serif; }
.wp-kicker {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--rp-accent);
  margin: 0 0 10px;
}
/*
 * The concept homepage + explore-deeper page (W2 brief). Real ERB + CSS
 * port of design_previews/dark.html (mockup "1a"), section by section —
 * homepage_transcript.md is the copy source. Uses design_tokens.css's
 * --rp-* tokens exclusively; no inline hex colors.
 * Section class prefix: .mk-
 */
.mk-page { max-width: 1264px; margin: 0 auto; }
/* ── Nav ─────────────────────────────────────────────────────────── */
.mk-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 48px; border-bottom: 1px solid var(--rp-hair);
}
.mk-nav-brand { display: flex; align-items: center; gap: 9px; }
.mk-nav-brand span { font-size: 13.5px; font-weight: 600; letter-spacing: 0.14em; color: var(--rp-text); }
.mk-nav-right { display: flex; align-items: center; gap: 30px; }
.mk-nav-link { font-size: 13px; color: var(--rp-muted); text-decoration: none; }
.mk-nav-link:hover { color: var(--rp-text); }
.mk-btn-primary {
  background: var(--rp-accent); color: #04101E; font-size: 13px; font-weight: 600;
  padding: 10px 18px; border-radius: 8px; text-decoration: none; border: none; cursor: pointer;
  font-family: inherit; display: inline-block;
}
.mk-btn-primary:hover { background: var(--rp-accent2); }
.mk-btn-secondary {
  border: 1px solid var(--rp-hair2); background: rgba(255,255,255,0.02); color: var(--rp-text);
  font-size: 13.5px; font-weight: 500; padding: 13px 22px; border-radius: 8px; text-decoration: none;
  display: inline-block;
}
.mk-btn-secondary:hover { border-color: var(--rp-accent); color: var(--rp-accent); }
/* ── Hero ────────────────────────────────────────────────────────── */
.mk-hero {
  display: grid; grid-template-columns: 1fr 620px; gap: 56px; align-items: center;
  padding: 64px 88px 72px;
}
.mk-hero-title {
  font-family: 'Newsreader', Georgia, serif; font-size: 62px; line-height: 1.07;
  font-weight: 400; letter-spacing: -0.02em; color: var(--rp-text); margin: 0;
}
.mk-hero-sub { font-size: 16.5px; line-height: 1.6; color: var(--rp-muted); margin: 26px 0 0; max-width: 460px; }
.mk-hero-sub2 { font-size: 14px; line-height: 1.65; color: var(--rp-dim); margin: 14px 0 0; max-width: 440px; }
.mk-hero-actions { display: flex; align-items: center; gap: 12px; margin-top: 34px; }
.mk-hero-render { width: 100%; max-width: 620px; }
.mk-hero-render svg { width: 100%; height: auto; display: block; }
/* ── Section shell ───────────────────────────────────────────────── */
.mk-section { border-top: 1px solid var(--rp-hair); padding: 72px 88px; }
.mk-section-tight { padding-bottom: 56px; }
.mk-eyebrow {
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--rp-dim);
}
.mk-eyebrow b { color: var(--rp-accent); font-weight: 400; }
.mk-h2 {
  font-family: 'Newsreader', Georgia, serif; font-size: 36px; line-height: 1.22;
  font-weight: 400; letter-spacing: -0.015em; color: var(--rp-text); margin: 18px 0 0; max-width: 640px;
}
/* ── 01 Problem ──────────────────────────────────────────────────── */
.mk-problem-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; margin-top: 44px; }
.mk-problem-card {
  background: var(--rp-card); border: 1px solid var(--rp-hair2); border-radius: 12px;
  padding: 26px; min-height: 230px; display: flex; flex-direction: column;
}
.mk-problem-card.mk-problem-reality { border-color: rgba(61,165,255,0.25); }
.mk-problem-label { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--rp-dim); }
.mk-problem-reality .mk-problem-label { color: var(--rp-accent); }
.mk-problem-rows { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.mk-problem-row { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--rp-muted); }
.mk-problem-row.mk-primary { font-size: 14px; font-weight: 500; color: var(--rp-text); }
.mk-problem-row::before { content: ""; width: 12px; height: 1px; background: var(--rp-rule); flex: none; }
.mk-problem-row.mk-primary::before { background: var(--rp-accent); }
.mk-problem-reality .mk-problem-columns { display: flex; gap: 18px; margin-top: 18px; }
.mk-problem-icon { margin-top: auto; padding-top: 18px; color: var(--rp-dim); }
/* ── 02 Insight ──────────────────────────────────────────────────── */
.mk-insight-inputs { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; margin-top: 48px; }
.mk-insight-input { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 110px; }
.mk-insight-icon {
  display: flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border: 1px solid var(--rp-hair2); border-radius: 50%; color: var(--rp-muted);
}
.mk-insight-input span { font-size: 11.5px; color: var(--rp-muted); text-align: center; }
.mk-insight-render { margin-top: 24px; }
.mk-insight-render svg { width: 100%; height: auto; display: block; }
.mk-insight-notes { display: flex; flex-direction: column; gap: 9px; max-width: 400px; margin: 24px auto 0; text-align: center; }
.mk-insight-notes p { font-size: 13.5px; color: var(--rp-muted); margin: 0; }
.mk-insight-notes p.mk-insight-conclusion { font-size: 14.5px; line-height: 1.55; color: var(--rp-text); margin-top: 12px; }
/* ── 03 Inside ───────────────────────────────────────────────────── */
.mk-inside-grid { display: grid; grid-template-columns: 220px 1fr 220px; gap: 36px; align-items: center; margin-top: 36px; }
.mk-inside-labels { display: flex; flex-direction: column; gap: 15px; }
.mk-inside-labels.mk-right { align-items: flex-start; }
.mk-inside-labels.mk-left { align-items: flex-end; }
.mk-inside-label { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--rp-muted); }
.mk-inside-labels.mk-left .mk-inside-label { flex-direction: row-reverse; }
.mk-inside-label::before { content: ""; width: 22px; height: 1px; background: var(--rp-rule); flex: none; }
.mk-inside-render { display: block; cursor: pointer; transition: opacity 0.2s; }
.mk-inside-render:hover { opacity: 0.85; }
.mk-inside-render svg { width: 100%; height: auto; display: block; }
.mk-inside-hint {
  text-align: center; font-family: 'IBM Plex Mono', monospace; font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--rp-dim); margin-top: 20px;
}
/* ── 04 Compatibility ────────────────────────────────────────────── */
.mk-compat-labels { display: flex; justify-content: space-between; padding: 0 120px; margin-top: 40px; }
.mk-compat-labels span { font-family: 'Newsreader', Georgia, serif; font-size: 21px; }
.mk-compat-labels .mk-compat-job { color: var(--rp-violet); }
.mk-compat-render { position: relative; }
.mk-compat-render svg { width: 100%; height: auto; display: block; }
.mk-compat-score {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: var(--rp-card); border: 1px solid var(--rp-hair2); border-radius: 12px;
  padding: 16px 28px; text-align: center;
}
.mk-compat-score b { font-family: 'Newsreader', Georgia, serif; font-size: 34px; font-weight: 400; color: var(--rp-text); display: block; }
.mk-compat-score span { font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--rp-dim); margin-top: 4px; display: block; }
.mk-compat-legend { display: flex; justify-content: center; gap: 28px; margin-top: 16px; }
.mk-compat-legend-item { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--rp-muted); }
.mk-compat-legend-item::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--dot); }
/* ── 05 AI capability chips ──────────────────────────────────────── */
.mk-ai-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; margin-top: 44px; }
.mk-ai-chip { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.mk-ai-chip span { font-size: 13px; line-height: 1.5; color: var(--rp-muted); }
/* ── 06 Personas ─────────────────────────────────────────────────── */
.mk-persona-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 36px; }
.mk-persona-card { background: var(--rp-card); border: 1px solid var(--rp-hair2); border-radius: 12px; padding: 24px; }
.mk-persona-card .mk-insight-icon { width: 38px; height: 38px; }
.mk-persona-card b { font-size: 15px; font-weight: 600; color: var(--rp-text); margin-top: 16px; display: block; }
.mk-persona-card span { font-size: 13.5px; color: var(--rp-muted); margin-top: 6px; display: block; }
/* ── 07 Eras timeline ────────────────────────────────────────────── */
.mk-eras-row { display: flex; align-items: center; justify-content: space-between; margin-top: 44px; padding: 0 40px; gap: 12px; }
.mk-eras-col { width: 280px; }
.mk-eras-era { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--rp-dim); }
.mk-eras-col.mk-eras-current .mk-eras-era { color: var(--rp-accent); }
.mk-eras-label { font-size: 17px; font-weight: 500; color: var(--rp-text); margin-top: 8px; }
.mk-eras-col.mk-eras-current .mk-eras-label { color: var(--rp-accent); }
.mk-eras-viz { margin-top: 14px; }
.mk-eras-arrow { flex: none; color: var(--rp-dim); }
/* ── 08 Build grid ───────────────────────────────────────────────── */
.mk-build-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-top: 36px; }
.mk-build-card {
  background: var(--rp-card); border: 1px solid var(--rp-hair2); border-radius: 10px;
  padding: 20px 10px; display: flex; flex-direction: column; align-items: center; gap: 12px; color: var(--rp-muted);
}
.mk-build-card span { font-size: 12.5px; font-weight: 500; color: var(--rp-label2); text-align: center; }
/* ── 09 Explainable ──────────────────────────────────────────────── */
.mk-explain-grid { display: grid; grid-template-columns: 1fr 520px; gap: 64px; align-items: center; margin-top: 8px; }
.mk-explain-copy { font-size: 14px; line-height: 1.65; color: var(--rp-muted); margin: 14px 0 0; max-width: 400px; }
.mk-explain-card { background: var(--rp-card); border: 1px solid var(--rp-hair2); border-radius: 12px; padding: 20px 22px; margin-top: 28px; max-width: 360px; }
.mk-explain-card-head { display: flex; align-items: center; justify-content: space-between; font-size: 14px; font-weight: 600; color: var(--rp-text); }
.mk-explain-rule { height: 1px; background: var(--rp-hair2); margin: 16px 0; }
.mk-explain-list { display: flex; flex-direction: column; gap: 12px; }
.mk-explain-list div { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--rp-muted); }
.mk-explain-list div::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--dot); flex: none; }
.mk-explain-render svg { width: 100%; height: auto; display: block; }
/* ── 10 Join Early ───────────────────────────────────────────────── */
.mk-join { display: flex; align-items: center; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.mk-join-title { font-family: 'Newsreader', Georgia, serif; font-size: 30px; line-height: 1.25; font-weight: 400; letter-spacing: -0.015em; color: var(--rp-text); margin: 16px 0 0; max-width: 520px; }
.mk-join-form { display: flex; gap: 12px; flex: none; flex-wrap: wrap; }
.mk-join-input {
  background: rgba(255,255,255,0.03); border: 1px solid var(--rp-hair2); border-radius: 8px;
  padding: 13px 16px; width: 280px; font-family: 'Instrument Sans', sans-serif; font-size: 13.5px;
  color: var(--rp-text); outline: none;
}
.mk-join-input:focus { border-color: var(--rp-accent); }
.mk-join-hp { position: absolute; left: -9999px; opacity: 0; }
.mk-join-flash { font-size: 13px; margin-top: 10px; width: 100%; }
.mk-join-flash-ok { color: var(--rp-green); }
.mk-join-flash-err { color: var(--rp-red); }
.mk-join-flash-hint { color: var(--rp-dim); }
/* ── Manifesto interlude (explore-deeper only) ──────────────────── */
.mk-manifesto {
  border-top: 1px solid var(--rp-hair); border-bottom: 1px solid var(--rp-hair);
  padding: 88px 88px; text-align: center;
}
.mk-manifesto p {
  font-family: 'Newsreader', Georgia, serif; font-style: italic; font-size: 26px;
  line-height: 1.6; color: var(--rp-text); max-width: 720px; margin: 0 auto;
}
/* ── Footer ──────────────────────────────────────────────────────── */
.mk-footer { border-top: 1px solid var(--rp-hair); padding: 56px 88px 40px; }
.mk-footer-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 32px; }
.mk-footer-brand { display: flex; align-items: center; gap: 9px; }
.mk-footer-brand span { font-size: 12.5px; font-weight: 600; letter-spacing: 0.14em; color: var(--rp-text); }
.mk-footer-manifesto { font-size: 13px; line-height: 1.7; color: var(--rp-muted); margin: 16px 0 0; max-width: 320px; }
.mk-footer-links { display: flex; gap: 64px; flex-wrap: wrap; }
.mk-footer-nav { display: flex; flex-direction: column; gap: 11px; font-size: 13px; color: var(--rp-muted); }
.mk-footer-bottom {
  display: flex; justify-content: space-between; margin-top: 44px; flex-wrap: wrap; gap: 8px;
  font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; letter-spacing: 0.14em; color: var(--rp-dim);
}
/* Domain-color dot utilities (compat legend, explain list) */
.mk-dot-green { --dot: var(--rp-green); }
.mk-dot-red { --dot: var(--rp-red); }
.mk-dot-steel { --dot: var(--rp-steel); }
.mk-dot-blue { --dot: var(--rp-accent); }
.mk-dot-amber { --dot: #FFD166; }
/* ── Responsive (real breakpoints, not attribute hacks) ─────────── */
@media (max-width: 860px) {
  .mk-nav { padding: 16px 20px; }
  .mk-nav-right .mk-nav-link { display: none; }

  .mk-hero { grid-template-columns: 1fr; padding: 40px 20px 48px; gap: 32px; }
  .mk-hero-title { font-size: 34px; line-height: 1.15; }
  .mk-hero-render { max-width: 100%; order: -1; }

  .mk-section { padding: 48px 20px; }
  .mk-h2 { font-size: 26px; }

  .mk-problem-grid, .mk-ai-grid, .mk-persona-grid { grid-template-columns: 1fr; }
  .mk-build-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }

  .mk-insight-inputs { justify-content: center; }
  .mk-insight-input { width: 84px; }

  .mk-inside-grid { grid-template-columns: 1fr; gap: 20px; }
  .mk-inside-labels { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 10px 16px; }
  .mk-inside-labels.mk-left .mk-inside-label, .mk-inside-labels .mk-inside-label { flex-direction: row; }
  .mk-inside-label::before { display: none; }

  .mk-compat-labels { padding: 0 12px; }
  .mk-compat-score { padding: 10px 16px; }
  .mk-compat-score b { font-size: 24px; }

  .mk-explain-grid { grid-template-columns: 1fr; gap: 28px; }

  .mk-eras-row { flex-direction: column; padding: 0; gap: 28px; }
  .mk-eras-col { width: 100%; text-align: center; }
  .mk-eras-arrow { transform: rotate(90deg); }

  .mk-join { flex-direction: column; align-items: flex-start; }
  .mk-join-form { width: 100%; }
  .mk-join-input { width: 100%; flex: 1; min-width: 0; }

  .mk-manifesto { padding: 56px 20px; }
  .mk-manifesto p { font-size: 20px; }

  .mk-footer { padding: 40px 20px 32px; }
  .mk-footer-top { flex-direction: column; }
  .mk-footer-bottom { flex-direction: column; }
}
