/* =========================================================
   Wilson Levy — Client & Market Briefing
   Editorial · premium · restrained
   ========================================================= */

:root {
  /* Brand palette */
  --bg:        #F9F8F6;
  --bg-soft:   #F2EFE9;
  --ink:       #1A1A1A;
  --ink-soft:  #3a3a3a;
  --ink-mute:  #6b6660;
  --navy:      #1E3A5F;
  --navy-soft: #3E5873;
  --stone:     #D9D4CB;
  --gold:      #C8B38A;
  --mist:      #D7E2EE;
  --rule:      #E7E2DA;
  --rule-strong: #d4cdbf;

  /* Functional */
  --act:       #8B2E2E;
  --act-bg:    #f4e6e3;
  --monitor:   #8a6d2a;
  --monitor-bg:#f3ecd8;
  --watch:     #3E5873;
  --watch-bg:  #e3eaf2;

  /* Type — brand spec approximation.
     Headings: Libre Baskerville (editorial Baskerville, web-licensed).
     Body/UI:  Manrope — a calm, slightly humanist grotesque served free by
               Google Fonts. It sits very close in feel to Helvetica Neue
               (neutral letterforms, open apertures, moderate contrast) and
               carries a premium, editorial tone that suits senior audiences.
               Inter and the system sans stack provide progressive fallback. */
  --serif: 'Libre Baskerville', 'Baskerville', 'Times New Roman', Georgia, serif;
  --sans:  'Manrope', 'Inter', 'Helvetica Neue', Helvetica, Arial, system-ui, sans-serif;

  /* Layout */
  --max: 1340px;
  --gutter: clamp(20px, 4vw, 56px);
  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 10px;
  --shadow-sm: 0 1px 0 rgba(26,26,26,0.04);
  --shadow-md: 0 1px 2px rgba(26,26,26,0.05), 0 8px 24px -16px rgba(26,26,26,0.10);
}

[data-theme="dark"] {
  --bg:        #14181D;
  --bg-soft:   #1B2026;
  --ink:       #ECE7DD;
  --ink-soft:  #C9C3B8;
  --ink-mute:  #8b867d;
  --navy:      #A9C4E2;
  --navy-soft: #7E97B5;
  --stone:     #2a2f36;
  --gold:      #D6BE8E;
  --mist:      #1f2a36;
  --rule:      #262C33;
  --rule-strong: #353c45;

  --act-bg:    #36211f;
  --monitor-bg:#2f2a1c;
  --watch-bg:  #1f2a36;
  --act:       #E8A19A;
  --monitor:   #E8C883;
  --watch:     #B6CCE6;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.005em;
  transition: background-color 0.4s ease, color 0.4s ease;
}

.bg-grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1200px 800px at 80% -10%, rgba(30,58,95,0.04), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(200,179,138,0.05), transparent 60%);
}
[data-theme="dark"] .bg-grain {
  background:
    radial-gradient(1200px 800px at 80% -10%, rgba(169,196,226,0.05), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(214,190,142,0.04), transparent 60%);
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.012em;
  line-height: 1.18;
  margin: 0;
}

p { margin: 0; }

a { color: var(--navy); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 0.2s; }
a:hover { border-color: var(--navy); }

button { font-family: var(--sans); cursor: pointer; }

.eyebrow {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
}
[data-theme="dark"] .eyebrow { color: var(--navy); }

/* ---------- Masthead ---------- */
.masthead {
  padding-top: 28px;
}
.masthead-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  border: none;
  min-width: 0;
}
.brand:hover { border: none; }
.brand-mark {
  height: 32px;
  width: auto;
  display: block;
  /* JPG ships with a white background; multiply blends it into the off-white page */
  mix-blend-mode: multiply;
  transition: filter 0.4s ease;
  flex-shrink: 0;
}
[data-theme="dark"] .brand-mark {
  /* In dark mode, invert dark glyphs to light and use screen so the white bg disappears */
  mix-blend-mode: screen;
  filter: invert(1) brightness(1.08);
}
.brand-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: 12.5px;
  color: var(--ink-mute);
  padding-left: 16px;
  border-left: 1px solid var(--rule-strong);
  line-height: 1.3;
}
@media (max-width: 760px) {
  .brand-sub { display: none; }
}
.masthead-meta {
  display: flex; flex-direction: column; gap: 4px;
  text-align: right;
  font-size: 11px;
  color: var(--ink-mute);
  font-family: var(--sans);
}
.meta-line { display: flex; gap: 8px; justify-content: flex-end; }
.meta-label { letter-spacing: 0.16em; text-transform: uppercase; }
.meta-value { color: var(--ink); font-weight: 500; }

.masthead-actions { display: flex; gap: 8px; }
.ghost-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 12px;
  background: transparent;
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-md);
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: all 0.18s ease;
}
.ghost-btn:hover {
  border-color: var(--navy);
  color: var(--navy);
  background: var(--bg-soft);
}
.ghost-btn .icon-moon { display: none; }
[data-theme="dark"] .ghost-btn .icon-sun { display: none; }
[data-theme="dark"] .ghost-btn .icon-moon { display: inline; }
.ghost-btn.small { padding: 5px 10px; font-size: 11px; }
.ghost-btn.full { width: 100%; justify-content: center; margin-top: 12px; }

.rule {
  height: 1px; background: var(--rule);
  max-width: var(--max);
  margin: 22px auto 0;
}

/* ---------- Onboarding banner ---------- */
.onboarding {
  padding: 56px 0 28px;
}
.onboarding-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}
.onboarding-eyebrow .eyebrow { display: block; margin-bottom: 18px; }
.onboarding-title {
  font-size: clamp(32px, 4.2vw, 52px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  color: var(--ink);
}
.onboarding-lede {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
  font-weight: 400;
  max-width: 56ch;
}
.onboarding-uses {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 28px;
  border-top: 1px solid var(--rule);
  padding-top: 24px;
}
.onboarding-uses li {
  display: flex; gap: 14px; align-items: flex-start;
}
.use-num {
  font-family: var(--serif);
  font-size: 13px;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-top: 2px;
  flex-shrink: 0;
}
.onboarding-uses strong {
  display: block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 13px;
  color: var(--ink);
  margin-bottom: 3px;
  letter-spacing: 0.005em;
}
.onboarding-uses span {
  display: block;
  font-size: 12.5px;
  color: var(--ink-mute);
  line-height: 1.5;
}

/* ---------- Control bar ---------- */
.control-bar {
  padding: 22px 0 32px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--bg-soft);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
}
[data-theme="dark"] .control-bar { background: rgba(20,24,29,0.92); }

.controls {
  display: grid;
  grid-template-columns: minmax(0, 2.5fr) repeat(3, minmax(0, 1fr)) minmax(180px, 1.4fr);
  gap: 18px;
  align-items: end;
}
.control-group { display: flex; flex-direction: column; gap: 8px; }
.control-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.practice-group { gap: 10px; }
.practice-presets {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.preset-btn {
  padding: 6px 11px;
  background: transparent;
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-md);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: all 0.15s ease;
  letter-spacing: 0.005em;
}
.preset-btn:hover { border-color: var(--navy); color: var(--navy); }
.preset-btn.active {
  background: var(--navy);
  color: #F9F8F6;
  border-color: var(--navy);
}
[data-theme="dark"] .preset-btn.active { color: var(--bg); }

.reset-btn {
  display: inline-flex; align-items: center; gap: 5px;
  background: transparent;
  border: none;
  color: var(--ink-mute);
  font-size: 11px;
  padding: 4px 0;
  align-self: flex-start;
  letter-spacing: 0.02em;
}
.reset-btn:hover { color: var(--navy); }

.select, .search-input {
  width: 100%;
  padding: 9px 12px;
  background: var(--bg);
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-md);
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s;
  appearance: none;
  -webkit-appearance: none;
}
.select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path fill='none' stroke='%231E3A5F' stroke-width='1.4' d='M1 1l4 4 4-4'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 30px;
}
.select:focus, .search-input:focus { border-color: var(--navy); }

.search-wrap {
  position: relative;
}
.search-wrap svg {
  position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
  color: var(--ink-mute);
}
.search-input { padding-left: 32px; }

.active-context {
  margin-top: 16px;
  font-size: 12px;
  color: var(--ink-mute);
  font-family: var(--serif);
  font-style: italic;
}
.active-context strong {
  font-family: var(--sans); font-style: normal; color: var(--navy); font-weight: 600;
}

/* ---------- Main grid ---------- */
.main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 48px;
  padding-top: 48px;
  padding-bottom: 80px;
}
.col-left, .col-right {
  display: flex; flex-direction: column; gap: 40px;
  min-width: 0;
}

.sticky-panel {
  position: sticky;
  top: 132px;
  background: var(--bg);
  padding: 18px;
  margin: -18px;
  border-radius: var(--r-lg);
  z-index: 5;
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-md);
}
.sticky-panel .panel-head { border-bottom: 1px solid var(--rule); margin-bottom: 18px; padding-bottom: 14px; }

/* ---------- Panels ---------- */
.panel {
  background: transparent;
}
.panel-head {
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule);
}
.panel-head .eyebrow { display: block; margin-bottom: 10px; }
.panel-title {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.018em;
  line-height: 1.15;
  margin-bottom: 8px;
}
.panel-title.sm { font-size: 19px; line-height: 1.2; }
.panel-dek {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-mute);
  line-height: 1.5;
}
.panel-dek.sm { font-size: 12.5px; }
.feed-count {
  font-family: var(--sans); font-style: normal;
  margin-left: 8px; font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-mute);
}

/* ---------- Brief list (60s read) ---------- */
.brief-list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-direction: column;
  gap: 22px;
  counter-reset: brief;
}
.brief-list li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 18px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--rule);
}
.brief-list li:last-child { border-bottom: none; padding-bottom: 0; }
.brief-list li::before {
  counter-increment: brief;
  content: counter(brief, decimal-leading-zero);
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.04em;
  padding-top: 4px;
}
.brief-headline {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
  margin-bottom: 6px;
  letter-spacing: -0.005em;
}
.brief-implication {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.55;
}
.brief-implication strong {
  color: var(--navy); font-weight: 600;
}

/* ---------- Story feed cards ---------- */
.story-feed {
  display: flex; flex-direction: column;
  gap: 20px;
}
.story-card {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: 22px 24px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  position: relative;
}
.story-card:hover {
  border-color: var(--rule-strong);
  box-shadow: var(--shadow-md);
}
.story-card.urgency-Act { border-left: 3px solid var(--act); }
.story-card.urgency-Monitor { border-left: 3px solid var(--monitor); }
.story-card.urgency-Watchlist { border-left: 3px solid var(--watch); }

.story-meta {
  display: flex; align-items: center; gap: 10px;
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.03em;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.story-meta .dot { width: 3px; height: 3px; background: var(--ink-mute); border-radius: 50%; }
.story-meta .src { color: var(--navy); font-weight: 600; }
.src-tag {
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 600;
}
.src-tag.indep { background: var(--mist); color: var(--navy); }
.src-tag.commentary { background: var(--bg-soft); color: var(--ink-soft); border: 1px solid var(--rule); }
.src-tag.vendor { background: rgba(200,179,138,0.18); color: var(--ink-soft); }

.story-headline {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 10px;
  letter-spacing: -0.008em;
}
.story-headline a { color: inherit; }
.story-headline a:hover { color: var(--navy); border: none; }
.story-summary {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.story-why {
  background: var(--bg-soft);
  border-left: 2px solid var(--gold);
  padding: 12px 14px;
  margin-bottom: 14px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.story-why strong {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
  display: block;
  margin-bottom: 6px;
}

.story-footer {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 14px;
}
.story-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag {
  font-size: 10.5px;
  padding: 3px 9px;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  color: var(--ink-mute);
  letter-spacing: 0.02em;
  font-weight: 500;
}

.story-scores {
  display: flex; gap: 12px; align-items: center;
}
.score {
  display: flex; flex-direction: column; align-items: center;
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.score-num {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0;
}
.score-num.hi { color: var(--act); }
.score-num.med { color: var(--monitor); }

.urgency-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 3px;
}
.urgency-badge.Act { background: var(--act-bg); color: var(--act); }
.urgency-badge.Monitor { background: var(--monitor-bg); color: var(--monitor); }
.urgency-badge.Watchlist { background: var(--watch-bg); color: var(--watch); }

.priority-marker {
  position: absolute;
  top: 18px; right: 18px;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--gold);
  font-weight: 600;
  text-transform: uppercase;
}

/* ---------- Grouped pricing ---------- */
.grouped {
  display: flex; flex-direction: column; gap: 24px;
}
.group-card {
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: 22px 24px;
  background: var(--bg);
}
.group-title {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.group-meta { font-size: 11px; color: var(--ink-mute); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 14px; }
.group-stories { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.group-stories li {
  font-size: 13px; color: var(--ink-soft); padding-left: 16px;
  position: relative; line-height: 1.5;
}
.group-stories li::before {
  content: '—'; position: absolute; left: 0; color: var(--gold);
}
.group-takeaway {
  background: var(--bg-soft);
  padding: 12px 14px;
  border-left: 2px solid var(--navy);
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.55;
}
.group-takeaway strong {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
  display: block; margin-bottom: 6px;
}

/* ---------- Advantage grid ---------- */
.advantage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.adv-card {
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: 20px;
  background: var(--bg);
  display: flex; flex-direction: column;
}
.adv-eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.adv-title {
  font-family: var(--serif);
  font-size: 15.5px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
  color: var(--ink);
}
.adv-body {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* ---------- Right rail panels ---------- */

/* ROI */
.roi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}
.roi-stat {
  text-align: center;
  padding: 14px 8px;
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  background: var(--bg);
}
.roi-num {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 6px;
}
.roi-label {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 8px;
  line-height: 1.3;
}
.roi-controls { display: flex; justify-content: center; gap: 4px; }
.roi-controls button {
  width: 22px; height: 22px;
  border: 1px solid var(--rule-strong);
  background: transparent;
  border-radius: 3px;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1;
  display: grid; place-items: center;
}
.roi-controls button:hover { border-color: var(--navy); color: var(--navy); }
.roi-impact {
  text-align: center;
  padding: 16px;
  background: var(--bg-soft);
  border-radius: var(--r-md);
}
.roi-impact-label {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 4px;
}
.roi-impact-value {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.roi-impact-note {
  font-size: 11px;
  color: var(--ink-mute);
  font-family: var(--serif);
  font-style: italic;
}

/* Trends */
.trends { display: flex; flex-direction: column; gap: 14px; }
.trend-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  display: flex; gap: 12px;
}
.trend-item:last-child { border-bottom: none; padding-bottom: 0; }
.trend-arrow {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 14px;
  color: var(--gold);
  flex-shrink: 0;
  width: 22px;
}
.trend-arrow.up { color: #2f6b3f; }
.trend-arrow.down { color: var(--act); }
[data-theme="dark"] .trend-arrow.up { color: #6FB57E; }
.trend-title {
  font-family: var(--serif);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
  line-height: 1.35;
}
.trend-note {
  font-size: 12px;
  color: var(--ink-mute);
  line-height: 1.5;
}

/* Watchlist */
.watchlist {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 12px;
}
.watchlist li {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
.watchlist li:last-child { border-bottom: none; padding-bottom: 0; }
.watch-when {
  font-family: var(--serif);
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.04em;
  padding-top: 2px;
}
.watch-text {
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.watch-text strong {
  display: block;
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 3px;
}

/* Toolkit */
.toolkit { display: flex; flex-direction: column; gap: 18px; }
.tk-block .tk-label {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
}
.tk-block ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 6px;
}
.tk-block li {
  font-size: 12.5px;
  color: var(--ink-soft);
  padding-left: 14px;
  position: relative;
  line-height: 1.5;
}
.tk-block li::before {
  content: '—';
  position: absolute; left: 0;
  color: var(--gold);
}

/* Framework */
.framework {
  list-style: none; margin: 0; padding: 0;
  counter-reset: fw;
  display: flex; flex-direction: column; gap: 12px;
}
.framework li {
  counter-increment: fw;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
}
.framework li:last-child { border-bottom: none; padding-bottom: 0; }
.framework li::before {
  content: 'Q' counter(fw);
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  padding-top: 2px;
}
.framework li span {
  font-size: 12.5px; color: var(--ink-soft); line-height: 1.5;
}

/* Playbook */
.playbook {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.playbook li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 12.5px; color: var(--ink-soft); line-height: 1.5;
}
.playbook input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--navy);
}
.playbook li.done span { text-decoration: line-through; color: var(--ink-mute); }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--rule);
  padding: 40px 0 56px;
  background: var(--bg-soft);
  margin-top: 40px;
}
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: 48px;
}
.footer-brand {
  display: flex; flex-direction: column; gap: 14px; align-items: flex-start;
}
.footer-mark {
  height: 78px;
  width: auto;
  display: block;
  mix-blend-mode: multiply;
  transition: filter 0.4s ease;
}
[data-theme="dark"] .footer-mark {
  mix-blend-mode: screen;
  filter: invert(1) brightness(1.08);
}
.footer-line {
  font-family: var(--serif);
  font-style: italic;
  font-size: 12.5px;
  color: var(--ink-mute);
  max-width: 42ch;
  line-height: 1.55;
}
.footer-meta {
  font-size: 11.5px;
  color: var(--ink-mute);
  display: flex; flex-direction: column; gap: 8px;
  line-height: 1.55;
}
.footer-meta .src-tag { margin-right: 4px; }
.footer-fineprint { font-style: italic; font-family: var(--serif); margin-top: 8px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 28px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: var(--bg);
  padding: 10px 18px;
  border-radius: 4px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 100;
  box-shadow: var(--shadow-md);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Progression strip (Catch up → Assess → Achieve fluency) ---------- */
.progression-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}
.progression-lede {
  font-family: var(--serif);
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  letter-spacing: 0.005em;
  max-width: 58ch;
}
.progression-lede em {
  font-style: italic;
  color: var(--ink);
}
.progression-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  text-decoration: none;
  padding: 9px 14px;
  border: 1px solid var(--navy);
  border-radius: 4px;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.progression-cta svg {
  transition: transform 0.2s ease;
}
.progression-cta:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}
.progression-cta:hover svg { transform: translateX(3px); }
[data-theme="dark"] .progression-cta:hover {
  background: var(--gold);
  color: #14181D;
}
@media (max-width: 640px) {
  .progression-strip { gap: 14px; }
  .progression-lede { font-size: 13px; }
}

/* ---------- Share button & modal ---------- */
.ghost-btn.primary {
  border-color: var(--navy);
  color: var(--navy);
  background: var(--bg-soft);
}
.ghost-btn.primary:hover {
  background: var(--navy);
  color: var(--bg);
  border-color: var(--navy);
}
[data-theme="dark"] .ghost-btn.primary {
  background: rgba(169, 196, 226, 0.10);
  border-color: var(--navy);
  color: var(--navy);
}
[data-theme="dark"] .ghost-btn.primary:hover {
  background: var(--navy);
  color: var(--bg);
}

.share-modal {
  position: fixed; inset: 0;
  display: none;
  align-items: center; justify-content: center;
  z-index: 200;
  padding: 24px;
}
.share-modal.open { display: flex; }
.share-backdrop {
  position: absolute; inset: 0;
  background: rgba(20, 24, 29, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: shareFadeIn 180ms ease-out;
}
.share-card {
  position: relative;
  width: 100%;
  max-width: 560px;
  background: var(--bg);
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-lg);
  box-shadow: 0 24px 64px -20px rgba(0,0,0,0.30), 0 4px 12px -4px rgba(0,0,0,0.10);
  padding: 32px 32px 24px;
  animation: shareSlideUp 220ms cubic-bezier(.2,.7,.2,1);
}
.share-close {
  position: absolute; top: 14px; right: 14px;
  background: transparent; border: none; cursor: pointer;
  padding: 6px; border-radius: 999px;
  color: var(--ink-mute);
  transition: all 0.15s;
}
.share-close:hover { background: var(--bg-soft); color: var(--ink); }
.share-title {
  font-family: var(--serif);
  font-size: 22px; line-height: 1.25;
  margin: 6px 0 8px;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.share-lede {
  color: var(--ink-soft);
  margin: 0 0 18px;
  font-size: 14px; line-height: 1.55;
}
.share-lede strong { color: var(--ink); font-weight: 600; }
.share-url-row {
  display: flex; gap: 8px;
  background: var(--bg-soft);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: 6px;
  margin-bottom: 14px;
}
.share-url {
  flex: 1; min-width: 0;
  background: transparent; border: none; outline: none;
  font-family: var(--mono, ui-monospace, 'SF Mono', Menlo, monospace);
  font-size: 12.5px;
  color: var(--ink);
  padding: 8px 10px;
}
.primary-btn {
  background: var(--navy);
  color: var(--bg);
  border: 1px solid var(--navy);
  padding: 8px 16px;
  border-radius: 6px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.primary-btn:hover { filter: brightness(1.08); }
.primary-btn.copied {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}
.share-actions {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 14px;
}
.share-fineprint {
  font-family: var(--serif);
  font-style: italic;
  font-size: 12px;
  color: var(--ink-mute);
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid var(--rule);
}
@keyframes shareFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes shareSlideUp {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------- Read-only mode (deep-linked recipients) ---------- */
[data-readonly="true"] .roi-controls,
[data-readonly="true"] #share-link,
[data-readonly="true"] .reset-btn { display: none !important; }
[data-readonly="true"] .preset-btn:not(.active) { opacity: 0.45; pointer-events: none; }
[data-readonly="true"] .playbook-check { pointer-events: none; opacity: 0.6; }
[data-readonly="true"] .masthead-actions::before {
  content: "Read-only view";
  display: inline-flex; align-items: center;
  font-family: var(--sans);
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 5px 10px; border-radius: 4px;
  margin-right: 4px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .main-grid { grid-template-columns: 1fr; gap: 56px; }
  .sticky-panel { position: static; }
  .advantage-grid { grid-template-columns: 1fr 1fr; }
  .controls {
    grid-template-columns: 1fr 1fr;
  }
  .practice-group { grid-column: 1 / -1; }
  .control-search { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  :root { --gutter: 18px; }
  .masthead-inner {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .masthead-meta { text-align: left; }
  .meta-line { justify-content: flex-start; }
  .masthead-actions { flex-wrap: wrap; }
  .onboarding-grid { grid-template-columns: 1fr; gap: 32px; }
  .onboarding { padding: 36px 0 18px; }
  .onboarding-uses { grid-template-columns: 1fr; gap: 16px; }
  .controls { grid-template-columns: 1fr; }
  .panel-title { font-size: 24px; }
  .advantage-grid { grid-template-columns: 1fr; }
  .roi-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .story-card { padding: 18px; }
  .priority-marker { position: static; margin-bottom: 8px; display: inline-block; }
}

/* ---------- Print ---------- */
@media print {
  .control-bar, .masthead-actions, .roi-controls,
  .ghost-btn, .footer, .share-modal { display: none !important; }
  body { background: white; color: black; font-size: 11pt; }
  .panel { break-inside: avoid; }
  .story-card, .group-card, .adv-card { break-inside: avoid; box-shadow: none; }
  .main-grid { grid-template-columns: 1fr; gap: 24px; padding-top: 16px; }
  .sticky-panel { position: static; }
  .bg-grain { display: none; }
  a { color: black; text-decoration: none; }
  .panel-title { font-size: 18pt; }
  .brief-headline, .story-headline { font-size: 13pt; }
}
