/* ==========================================================
   Foundations page styles
   - surface-map (M365 surfaces)
   - licence-grid (3-tier comparison)
   - trust-grid (4-card baseline)
   - connect-line (small narrative line below stack)
   ========================================================== */

/* ─── How they connect (line under stack-grid) ─── */
.connect-line {
  max-width: 720px; margin: 28px auto 0;
  padding: 14px 20px; background: white;
  border: 1px dashed var(--border); border-radius: var(--radius);
  text-align: center; font-size: 13px; color: var(--navy-soft);
  font-style: italic;
}
.connect-line strong { color: var(--navy); font-style: normal; font-weight: 700; }

/* (Surface Map removed — Tool Arsenal grid below replaces it) */

/* ─── Mini TOC strip (sub-hero) ─── */
.foundations-toc {
  display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px;
}
.foundations-toc-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; background: white;
  border: 1px solid var(--border); border-radius: 100px;
  font-size: 12px; font-weight: 600; color: var(--navy-soft);
  transition: all .25s; cursor: pointer;
}
.foundations-toc-pill:hover {
  border-color: var(--toc-color, var(--red));
  color: var(--toc-color, var(--red));
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.foundations-toc-num {
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  color: var(--toc-color, var(--red)); letter-spacing: .04em;
}

/* ─── Licence tier grid ─── */
.licence-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 18px; max-width: 1020px; margin: 0 auto;
}
.licence-card {
  background: white; border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px 22px;
  position: relative; overflow: hidden;
  transition: all .35s var(--ease-out);
  display: flex; flex-direction: column;
}
.licence-card.is-default {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(230,30,40,.06);
}
.licence-card.is-default::after {
  content: 'Arup default'; position: absolute; top: 14px; right: 14px;
  padding: 3px 8px; background: var(--red); color: white;
  font-family: var(--font-mono); font-size: 9px; font-weight: 700;
  border-radius: 4px; text-transform: uppercase; letter-spacing: .2em;
}
.licence-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.licence-tier {
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  color: var(--licence-color, var(--slate)); letter-spacing: .2em; text-transform: uppercase;
  margin-bottom: 8px;
}
.licence-card h3 {
  font-family: var(--font-display); font-size: 18px; font-weight: 700;
  letter-spacing: -.02em; margin-bottom: 14px;
}
.licence-card ul { list-style: none; padding: 0; margin: 0 0 18px 0; flex: 1; }
.licence-card li {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 7px 0; font-size: 13px; color: var(--navy-soft); line-height: 1.5;
  border-top: 1px solid var(--border-light);
}
.licence-card li:first-child { border-top: none; }
.licence-card li::before {
  content: '✓'; color: var(--licence-color, var(--teal));
  font-weight: 700; flex-shrink: 0;
}
.licence-who {
  padding: 10px 14px; background: var(--bg-alt);
  border-radius: 8px; font-size: 12px; color: var(--slate); line-height: 1.5;
}
.licence-who strong { color: var(--navy); font-weight: 600; }

.licence-footnote {
  margin-top: 24px; max-width: 640px; margin-left: auto; margin-right: auto;
  padding: 10px 16px; background: var(--amber-light);
  border: 1px solid rgba(245,158,11,.2); border-radius: var(--radius);
  font-size: 12px; color: #92400e; text-align: center;
}
.licence-footnote strong { color: #78350f; font-weight: 700; }

@media (max-width: 880px) { .licence-grid { grid-template-columns: 1fr; } }

/* ─── Trust baseline (4-card grid) ─── */
.trust-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px; max-width: 1100px; margin: 0 auto;
}
.trust-card {
  background: white; border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px 20px;
  transition: all .35s var(--ease-out);
  position: relative; overflow: hidden;
}
.trust-card::before {
  content: ''; position: absolute; top: 0; left: 0; bottom: 0;
  width: 3px; background: var(--trust-color, var(--red));
}
.trust-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }

.trust-icon {
  width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; margin-bottom: 12px;
  background: var(--trust-bg, var(--red-light));
  color: var(--trust-color, var(--red));
}
.trust-icon svg { width: 18px; height: 18px; }
.trust-card h3 {
  font-family: var(--font-display); font-size: 14px; font-weight: 700;
  letter-spacing: -.01em; margin-bottom: 6px;
}
.trust-card p { font-size: 12px; color: var(--slate); line-height: 1.55; }

@media (max-width: 880px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .trust-grid { grid-template-columns: 1fr; } }

/* ════════════════════════════════════════════════════════════
   AI GOVERNANCE — five-pillar section
   ════════════════════════════════════════════════════════════ */
.govern-head {
  text-align: center;
  max-width: 880px;
  margin: 0 auto 36px;
}
.govern-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}
.govern-symbol {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}
.govern-symbol svg {
  width: 18px;
  height: 18px;
  color: var(--red);
}
.govern-uphold {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.govern-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 38px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-bottom: 18px;
}
.govern-intro {
  font-size: 15px;
  line-height: 1.65;
  color: var(--navy-soft);
  margin-bottom: 18px;
}
.govern-italic {
  display: block;
  font-style: italic;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--slate);
  background: var(--bg-alt);
  border-radius: 8px;
  padding: 10px 18px;
  margin: 0 auto;
  max-width: 720px;
}

.govern-section-label {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 32px 0 22px;
}

.govern-pillars {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto 40px;
}

.govern-pillar {
  position: relative;
  background: white;
  border: 1px solid var(--border);
  border-left: 4px solid var(--red);
  border-radius: 10px;
  padding: 0;
  transition: box-shadow .25s, transform .25s, border-color .25s;
  overflow: hidden;
}
.govern-pillar[open] {
  grid-column: 1 / -1;
  box-shadow: 0 1px 2px rgba(15,23,42,.05), 0 16px 36px rgba(15,23,42,.08);
}
.govern-pillar:hover { box-shadow: 0 4px 14px rgba(15,23,42,.06); }

.govern-pillar > summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 18px 16px;
  position: relative;
}
.govern-pillar > summary::-webkit-details-marker { display: none; }

.govern-pill-num {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}
.govern-pillar h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  line-height: 1.2;
}
.govern-pill-sub {
  font-size: 13px;
  line-height: 1.5;
  color: var(--navy-soft);
  margin-bottom: 14px;
}
.govern-pill-meta {
  border-top: 1px solid var(--border-light);
  padding-top: 10px;
}
.govern-pill-meta-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.govern-pill-meta-tags {
  display: block;
  font-size: 11.5px;
  color: var(--slate);
  line-height: 1.45;
}

.govern-pill-toggle {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--red);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background .2s, color .2s, transform .2s;
}
.govern-pillar:hover .govern-pill-toggle { background: var(--red); color: white; }
.govern-pillar[open] .govern-pill-toggle { background: var(--red); color: white; transform: rotate(45deg); }

.govern-pill-detail {
  padding: 18px 22px 22px;
  border-top: 1px solid var(--border-light);
  background: var(--bg-alt);
  animation: govern-fade .35s ease-out;
}
.govern-pill-detail p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--navy-soft);
  margin-bottom: 12px;
  max-width: 820px;
}
.govern-pill-detail p:last-child { margin-bottom: 0; }
.govern-pill-detail strong { color: var(--navy); }
@keyframes govern-fade {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .govern-pill-detail { animation: none; }
}

/* The Foundation — dark navy callout, full width */
.govern-foundation {
  position: relative;
  background: linear-gradient(135deg, var(--navy) 0%, #1e293b 100%);
  border: none;
  border-left: 4px solid var(--red);
  border-radius: 12px;
  color: white;
  padding: 0;
  max-width: 1200px;
  margin: 0 auto 32px;
  overflow: hidden;
}
.govern-foundation > summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 26px;
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 24px;
  align-items: center;
  position: relative;
}
.govern-foundation > summary::-webkit-details-marker { display: none; }
.govern-found-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--red);
}
.govern-foundation h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: white;
  letter-spacing: -0.015em;
  margin: 0 0 4px 0;
}
.govern-found-sub {
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(255,255,255,.72);
  max-width: 640px;
  margin: 0 0 8px 0;
}
.govern-foundation .govern-found-meta-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 4px;
}
.govern-found-meta-tags {
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,.85);
  line-height: 1.5;
}
.govern-foundation .govern-pill-toggle {
  position: static;
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.15);
  color: white;
  flex-shrink: 0;
}
.govern-foundation:hover .govern-pill-toggle { background: var(--red); border-color: var(--red); color: white; }
.govern-foundation[open] .govern-pill-toggle { background: var(--red); border-color: var(--red); color: white; transform: rotate(45deg); }

.govern-found-detail {
  padding: 22px 26px 26px;
  border-top: 1px solid rgba(255,255,255,.10);
  animation: govern-fade .35s ease-out;
}
.govern-found-detail p {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,.8);
  margin-bottom: 12px;
  max-width: 820px;
}
.govern-found-detail strong { color: white; }
.govern-found-detail ul {
  list-style: none;
  margin: 12px 0 14px 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 18px;
}
.govern-found-detail ul li {
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(255,255,255,.78);
  padding-left: 18px;
  position: relative;
}
.govern-found-detail ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 8px; height: 8px;
  background: var(--red);
  border-radius: 50%;
}

/* Closing line */
.govern-closing {
  max-width: 880px;
  margin: 28px auto 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--slate);
  text-align: center;
  font-style: italic;
}
.govern-closing strong { color: var(--navy); font-style: normal; }

/* Responsive */
@media (max-width: 1100px) {
  .govern-pillars { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .govern-pillars { grid-template-columns: 1fr; gap: 12px; }
  .govern-foundation > summary {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .govern-found-detail ul { grid-template-columns: 1fr; }
}

/* ============================================================
   Foundations hero radar (replaces .orbit-wrap on this page)
   - Concentric ring field, cross-hair guides, rotating sweep
   - Vanilla SVG/CSS adaptation of the supplied React radar-effect
   ============================================================ */
.radar-wrap {
  position: relative;
  width: 340px; height: 340px;
  margin: 0 auto;
  isolation: isolate;
}
.radar-wrap::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(closest-side, rgba(15,23,41,.04) 0%, transparent 70%);
  pointer-events: none;
}
.radar-ring {
  position: absolute;
  top: 50%; left: 50%;
  border-radius: 50%;
  border: 1px solid rgba(71,85,105,.22);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.radar-ring.r1 { width: 110px; height: 110px; border-color: rgba(71,85,105,.32); }
.radar-ring.r2 { width: 180px; height: 180px; border-color: rgba(71,85,105,.22); }
.radar-ring.r3 { width: 250px; height: 250px; border-color: rgba(71,85,105,.14); }
.radar-ring.r4 { width: 320px; height: 320px; border-color: rgba(71,85,105,.09); }

.radar-axis {
  position: absolute;
  top: 50%; left: 50%;
  background: rgba(71,85,105,.10);
  pointer-events: none;
}
.radar-axis-h { width: 320px; height: 1px; transform: translate(-50%, -50%); }
.radar-axis-v { width: 1px;   height: 320px; transform: translate(-50%, -50%); }

/* Sweep — a thin red beam rotating around the centre */
.radar-sweep {
  position: absolute;
  top: 50%; right: 50%;
  width: 170px; height: 4px;
  transform-origin: right center;
  z-index: 1;
  animation: radar-spin 8s linear infinite;
  pointer-events: none;
  overflow: hidden;
}
.radar-sweep-line {
  display: block;
  width: 100%; height: 1px;
  margin-top: 1px;
  background: linear-gradient(to right,
    rgba(230,30,40,0) 35%,
    rgba(230,30,40,.65) 100%);
  filter: drop-shadow(0 0 4px rgba(230,30,40,.5));
}
@keyframes radar-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .radar-sweep { animation: none; }
  .radar-sweep-line { opacity: .35; }
}

/* Tool blips — same role as old .o-node, slightly more elevated */
.radar-blip {
  position: absolute;
  width: 62px; height: 62px;
  background: #fff; border: 1.5px solid var(--border); border-radius: 13px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px;
  box-shadow: var(--shadow-md);
  transition: transform .3s var(--ease-spring), box-shadow .3s var(--ease-out);
  z-index: 3;
}
.radar-blip:hover { transform: scale(1.04); box-shadow: var(--shadow-lg); }
.radar-blip svg { width: 18px; height: 18px; }
.radar-blip span { font-size: 9px; font-weight: 600; }

@media (max-width: 880px) {
  .radar-wrap { width: 280px; height: 280px; }
  .radar-ring.r1 { width: 92px;  height: 92px; }
  .radar-ring.r2 { width: 150px; height: 150px; }
  .radar-ring.r3 { width: 210px; height: 210px; }
  .radar-ring.r4 { width: 270px; height: 270px; }
  .radar-axis-h { width: 270px; }
  .radar-axis-v { height: 270px; }
  .radar-sweep { width: 140px; }
}

/* ============================================================
   In-60-Seconds orientation grid
   ============================================================ */
.sixty-grid {
  list-style: none; padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  max-width: 1100px;
  margin: 0 auto;
}
.sixty-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  position: relative;
  transition: border-color .25s var(--ease-out),
              box-shadow .25s var(--ease-out),
              transform .25s var(--ease-out);
}
.sixty-card:hover {
  border-color: color-mix(in srgb, var(--red) 35%, var(--border));
  box-shadow: 0 4px 14px -6px rgba(15,23,41,.10);
  transform: translateY(-1px);
}
.sixty-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 700; letter-spacing: .12em;
  color: var(--red);
  margin-bottom: 8px;
}
.sixty-card p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--navy);
  margin: 0;
}
@media (max-width: 980px) {
  .sixty-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .sixty-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Task pathways grid — "What are you trying to do?"
   ============================================================ */
.task-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 1100px;
  margin: 0 auto;
}
.task-card {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--navy);
  text-decoration: none;
  font-size: 13.5px; font-weight: 600;
  letter-spacing: -.005em;
  transition: border-color .25s var(--ease-out),
              box-shadow .25s var(--ease-out),
              transform .25s var(--ease-out);
}
.task-card:hover {
  border-color: color-mix(in srgb, var(--red) 40%, var(--border));
  box-shadow: 0 6px 18px -8px rgba(15,23,41,.16);
  transform: translateY(-1px);
}
.task-card:focus-visible {
  outline: 2px solid var(--red); outline-offset: 2px;
}
.task-icon {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
}
.task-icon svg { width: 16px; height: 16px; }
.task-label { flex: 1 1 auto; line-height: 1.3; }
.task-arrow {
  flex-shrink: 0;
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: 14px;
  transition: transform .25s var(--ease-spring), color .25s var(--ease-out);
}
.task-card:hover .task-arrow { transform: translateX(3px); color: var(--red); }
@media (prefers-reduced-motion: reduce) {
  .task-card, .task-card:hover, .task-arrow { transform: none !important; transition: none; }
}
@media (max-width: 980px) {
  .task-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .task-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Before You Start — access status cards + how-to accordion
   Replaces the old #licence section. Onboarding-focused.
   ============================================================ */
.access-grid {
  list-style: none; padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}
.access-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-top: 3px solid var(--access-tone, var(--muted));
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  transition: border-color .25s var(--ease-out),
              box-shadow .25s var(--ease-out),
              transform .25s var(--ease-out);
}
.access-card:hover {
  box-shadow: 0 6px 18px -8px rgba(15,23,41,.14);
  transform: translateY(-1px);
}
.access-card-neutral { --access-tone: #94a3b8; --access-tone-soft: #f1f5f9; }
.access-card-amber   { --access-tone: #f59e0b; --access-tone-soft: #fffbeb; }
.access-card-green   { --access-tone: #16a34a; --access-tone-soft: #f0fdf4; }

.access-card-status {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono);
  font-size: 10.5px; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--access-tone, var(--muted));
  margin-bottom: 10px;
  padding: 4px 9px 4px 8px;
  background: var(--access-tone-soft, var(--bg-alt));
  border-radius: 100px;
}
.access-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--access-tone, var(--muted));
}
.access-card h3 {
  font-family: var(--font-display);
  font-size: 16px; font-weight: 700;
  letter-spacing: -.015em;
  color: var(--navy);
  margin: 0 0 10px;
}
.access-points {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 6px;
}
.access-points li {
  position: relative;
  padding-left: 16px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--slate);
}
.access-points li::before {
  content: ''; position: absolute;
  left: 0; top: 9px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--access-tone, var(--muted));
  opacity: .55;
}
.access-card-badge {
  position: absolute;
  top: 12px; right: 12px;
  font-family: var(--font-mono);
  font-size: 9.5px; font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #fff;
  background: var(--access-tone, var(--red));
  padding: 4px 10px;
  border-radius: 100px;
  box-shadow: 0 2px 8px -2px rgba(22,163,74,.45);
}

/* ─── Action row ─── */
.access-actions {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 12px;
  justify-content: center;
  margin: 28px auto 0;
  max-width: 1100px;
}
.access-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  border-radius: 100px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: .005em;
  text-decoration: none;
  transition: background .2s var(--ease-out),
              border-color .2s var(--ease-out),
              color .2s var(--ease-out),
              box-shadow .25s var(--ease-out),
              transform .2s var(--ease-out);
}
.access-cta svg { width: 14px; height: 14px; transition: transform .25s var(--ease-spring); }
.access-cta:hover svg { transform: translateX(2px); }

.access-cta-primary {
  background: var(--red);
  color: #fff;
  border: 1.5px solid var(--red);
  box-shadow: 0 4px 12px -4px rgba(230,30,40,.45);
}
.access-cta-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -6px rgba(230,30,40,.55);
}
.access-cta-secondary {
  background: #fff;
  color: var(--navy);
  border: 1.5px solid var(--border);
}
.access-cta-secondary:hover {
  border-color: var(--navy);
  box-shadow: 0 4px 12px -6px rgba(15,23,41,.18);
}
.access-cta-tertiary {
  background: transparent;
  color: var(--slate);
  border: 1px solid transparent;
  padding: 10px 12px;
  font-weight: 500;
  border-bottom: 1px dashed color-mix(in srgb, var(--slate) 35%, transparent);
  border-radius: 0;
}
.access-cta-tertiary:hover {
  color: var(--red);
  border-bottom-color: var(--red);
}
.access-cta:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* ─── How-to accordion ─── */
.access-howto {
  max-width: 1100px;
  margin: 28px auto 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.access-howto > summary {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--navy);
  transition: background .2s var(--ease-out);
}
.access-howto > summary::-webkit-details-marker { display: none; }
.access-howto > summary::marker { display: none; content: ''; }
.access-howto > summary:hover { background: var(--bg-alt); }
.access-howto > summary:focus-visible { outline: 2px solid var(--red); outline-offset: -2px; }
.access-howto-chev svg {
  width: 16px; height: 16px;
  color: var(--muted);
  transition: transform .25s var(--ease-out);
}
.access-howto[open] > summary .access-howto-chev svg { transform: rotate(180deg); }

.access-howto-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  padding: 4px 22px 22px;
  border-top: 1px solid var(--border);
}
.access-method {
  background: var(--bg-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
}
.access-method-num {
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 700; letter-spacing: .2em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.access-method h4 {
  font-family: var(--font-display);
  font-size: 14.5px; font-weight: 700;
  letter-spacing: -.015em;
  color: var(--navy);
  margin: 0 0 12px;
}
.access-method ol,
.access-method ul.access-method-points {
  margin: 0; padding-left: 20px;
  font-size: 13px;
  color: var(--slate);
  line-height: 1.6;
}
.access-method ol li,
.access-method-points li { margin-bottom: 4px; }

.access-method-legend {
  margin-top: 14px;
  display: flex; flex-direction: column; gap: 6px;
  border-top: 1px dashed var(--border);
  padding-top: 12px;
}
.access-legend-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: 12px;
  color: var(--slate);
}
.access-legend-tag {
  font-family: var(--font-mono);
  font-size: 10.5px; font-weight: 700;
  padding: 3px 8px;
  border-radius: 100px;
  letter-spacing: .04em;
}
.access-legend-tag[data-tone="neutral"] { background: #f1f5f9; color: #475569; }
.access-legend-tag[data-tone="amber"]   { background: #fffbeb; color: #b45309; }
.access-legend-tag[data-tone="green"]   { background: #f0fdf4; color: #166534; }

.access-advanced {
  grid-column: 1 / -1;
  margin-top: 6px;
  padding: 12px 16px;
  background: #fff;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}
.access-advanced > summary {
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 700; letter-spacing: .2em;
  color: var(--muted);
  text-transform: uppercase;
  list-style: none;
}
.access-advanced > summary::-webkit-details-marker,
.access-advanced > summary::marker { display: none; content: ''; }
.access-advanced > summary::after {
  content: ' ▾';
  font-family: var(--font-body);
  font-size: 12px;
}
.access-advanced[open] > summary::after { content: ' ▴'; }
.access-advanced-body {
  margin-top: 10px;
  font-size: 13px;
  color: var(--slate);
  line-height: 1.65;
}
.access-advanced-body p { margin: 0 0 8px; }
.access-advanced-body ul {
  padding-left: 20px;
  margin: 0 0 8px;
}
.access-advanced-body ul li { margin-bottom: 4px; }
.access-advanced-note {
  margin-top: 8px !important;
  padding: 10px 12px;
  background: #fffbeb;
  border-left: 3px solid #f59e0b;
  border-radius: 4px;
  font-size: 12.5px;
  color: #92400e;
}

/* ─── Helper card: "Most users should start here" ─── */
.access-helper {
  max-width: 1100px;
  margin: 22px auto 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px 14px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px;
}
.access-helper-head {
  display: inline-flex; align-items: center; gap: 8px;
  flex-shrink: 0;
}
.access-helper-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #f0fdf4; color: #16a34a;
}
.access-helper-icon svg { width: 14px; height: 14px; }
.access-helper-head strong {
  font-family: var(--font-display);
  font-size: 13.5px; font-weight: 700;
  color: var(--navy);
  letter-spacing: -.005em;
}
.access-helper-apps {
  display: inline-flex; flex-wrap: wrap; gap: 6px;
}
.access-helper-app {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 600;
  letter-spacing: .04em;
  color: var(--navy);
  background: var(--bg-alt);
  border: 1px solid var(--border-light);
  padding: 3px 9px;
  border-radius: 100px;
}
.access-helper p {
  margin: 0;
  flex: 1 1 220px;
  font-size: 12.5px;
  color: var(--slate);
  line-height: 1.55;
}

/* ─── Mobile ─── */
@media (max-width: 880px) {
  .access-grid { grid-template-columns: 1fr; gap: 12px; }
  .access-howto-body { grid-template-columns: 1fr; }
  .access-actions { gap: 10px; }
  .access-cta { font-size: 13px; }
}
@media (max-width: 540px) {
  .access-cta-primary,
  .access-cta-secondary { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .access-card,
  .access-card:hover,
  .access-cta,
  .access-cta:hover,
  .access-cta svg,
  .access-howto-chev svg { transition: none !important; transform: none !important; }
}

/* ==========================================================
   Foundations · "In 60 seconds" — restrained stepper
   ========================================================== */
.sixty-section { padding-top: 26px; padding-bottom: 26px; }
.sixty-block {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 22px 14px;
  box-shadow: var(--shadow-sm);
}
.sixty-head {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-light);
}
.sixty-eyebrow {
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .2em;
  color: var(--red);
  flex-shrink: 0;
}
.sixty-title {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 700; letter-spacing: -.01em;
  color: var(--navy);
  margin: 0;
  flex-shrink: 0;
}
.sixty-sub {
  font-size: 12.5px; color: var(--muted);
  margin: 0;
  flex: 1; min-width: 200px;
}
.sixty-stepper {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.sixty-step {
  padding: 8px 14px;
  border-right: 1px solid var(--border-light);
  display: flex; gap: 10px; align-items: flex-start;
}
.sixty-step:first-child { padding-left: 0; }
.sixty-step:last-child { padding-right: 0; border-right: none; }
.sixty-step-num {
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 700;
  letter-spacing: .08em;
  color: var(--muted);
  flex-shrink: 0;
  padding-top: 2px;
}
.sixty-step-text {
  font-size: 12.5px; line-height: 1.45; color: var(--navy-soft);
}
.sixty-step-text b {
  display: block;
  font-size: 13px; font-weight: 700;
  color: var(--navy);
  margin-bottom: 1px;
  letter-spacing: -.005em;
}
@media (max-width: 1080px) {
  .sixty-stepper { grid-template-columns: repeat(2, 1fr); }
  .sixty-step { border-right: none; border-bottom: 1px solid var(--border-light); padding: 10px 0; }
  .sixty-step:nth-last-child(-n+1) { border-bottom: none; }
  .sixty-step:nth-child(2n) { padding-left: 14px; border-left: 1px solid var(--border-light); }
}
@media (max-width: 600px) {
  .sixty-block { padding: 14px 16px 10px; }
  .sixty-stepper { grid-template-columns: 1fr; }
  .sixty-step { padding: 8px 0 !important; border-left: none !important; }
  .sixty-step:last-child { border-bottom: none; }
}

/* ==========================================================
   Foundations · Start Here Workspace
   ========================================================== */
.ws-section { padding-top: 32px; padding-bottom: 56px; }
.ws-header { text-align: center; margin-bottom: 22px; }
.ws-header .sec-title { margin: 6px 0 6px; }
.ws-header .sec-desc { max-width: 620px; margin: 0 auto; }

/* ─── Tab control ─────────────────────────────── */
.ws-tabs {
  position: sticky; top: 64px; z-index: 50;
  display: flex; gap: 2px;
  margin: 0 auto 18px;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border: 1.5px solid var(--border);
  border-radius: 100px; padding: 4px;
  box-shadow: var(--shadow-sm);
  max-width: max-content;
  width: max-content;
  overflow-x: auto; overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
@media (prefers-reduced-transparency: reduce) {
  .ws-tabs { backdrop-filter: none; background: #fdfdfe; }
}
@media (max-width: 760px) {
  .ws-tabs { max-width: 100%; width: 100%; justify-content: flex-start; }
}
.ws-section .container { display: block; }
.ws-section .ws-header { text-align: center; }
.ws-tabs::-webkit-scrollbar { display: none; }

.ws-tab {
  flex-shrink: 0;
  padding: 9px 20px;
  font-family: var(--font-display);
  font-size: 13.5px; font-weight: 600;
  letter-spacing: -.005em;
  color: var(--muted);
  background: transparent;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: background .25s var(--ease-out), color .25s var(--ease-out), box-shadow .25s var(--ease-out), transform .2s var(--ease-spring);
  white-space: nowrap;
}
.ws-tab:hover:not(.is-active) {
  color: var(--navy);
  background: var(--bg-alt);
}
.ws-tab.is-active {
  background: var(--red);
  color: white;
  letter-spacing: 0;
  box-shadow:
    0 1px 0 var(--red-dark),
    0 4px 10px -4px rgba(230,30,40,.4);
  position: relative;
}
.ws-tab:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

/* ─── Task router — restrained ────────────────── */
.ws-tasks {
  margin: 0 auto 28px;
  padding: 14px 20px 12px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 880px;
  box-shadow: var(--shadow-sm);
}
.ws-tasks-head {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-light);
}
.ws-tasks-eyebrow {
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--red);
  flex-shrink: 0;
}
.ws-tasks-title {
  font-family: var(--font-display);
  font-size: 16px; font-weight: 700; letter-spacing: -.01em;
  color: var(--navy);
  margin: 0;
}
.ws-tasks-primary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}
.ws-task {
  display: flex; flex-direction: row; align-items: center;
  gap: 10px; padding: 10px 14px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body); font-size: 13px; font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  text-align: left;
  transition: border-color .2s var(--ease-out), background .2s;
}
.ws-task:hover {
  border-color: var(--navy);
  background: var(--bg-alt);
}
.ws-task:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}
.ws-task-icon {
  width: 26px; height: 26px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 6px;
  background: var(--bg-alt);
  color: var(--slate);
  flex-shrink: 0;
  transition: background .2s, color .2s;
}
.ws-task-icon svg { width: 15px; height: 15px; }
.ws-task:hover .ws-task-icon {
  background: var(--navy);
  color: white;
}
.ws-task-label { line-height: 1.3; }
.ws-task.is-active {
  border-color: var(--red);
  background: var(--red-light);
  color: var(--navy);
}
.ws-task.is-active .ws-task-icon { background: var(--red); color: white; }

.ws-tasks-secondary {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  padding-top: 10px;
  border-top: 1px dashed var(--border-light);
}
.ws-tasks-secondary-label {
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted);
  padding-right: 4px;
}
.ws-task-secondary {
  display: inline-flex !important;
  flex-direction: row !important;
  padding: 5px 12px !important;
  background: var(--bg-alt) !important;
  border: 1px solid transparent !important;
  border-radius: 100px !important;
  font-size: 12px !important;
  color: var(--navy-soft) !important;
  gap: 0 !important;
  box-shadow: none !important;
}
.ws-task-secondary:hover {
  background: white !important;
  border-color: var(--navy) !important;
  color: var(--navy) !important;
}
.ws-task-secondary.is-active {
  background: var(--red) !important;
  border-color: var(--red) !important;
  color: white !important;
}

@media (max-width: 760px) {
  .ws-tabs { top: 60px; max-width: calc(100% - 16px); }
  .ws-tasks { padding: 12px 14px 10px; }
  .ws-tasks-primary { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .ws-task { padding: 9px 12px; font-size: 12px; }
  .ws-task-icon { width: 22px; height: 22px; }
  .ws-task-icon svg { width: 13px; height: 13px; }
}
@media (max-width: 420px) {
  .ws-tasks-primary { grid-template-columns: 1fr; }
}

/* ─── Panels ─────────────────────────────────── */
.ws-panel {
  width: 100%;
  animation: ws-fade .28s var(--ease-out);
}
.ws-panel[hidden] { display: none; }
@keyframes ws-fade {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.ws-block { margin-bottom: 32px; }
.ws-block:last-child { margin-bottom: 0; }
.ws-block-hd { margin-bottom: 14px; }
.ws-block-hd-tight { text-align: center; margin-bottom: 18px; }
.ws-block-eyebrow {
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .2em;
  color: var(--red);
  margin-bottom: 4px;
}
.ws-block-hd h3 {
  font-family: var(--font-display); font-size: 22px; font-weight: 700;
  letter-spacing: -.02em; color: var(--navy); margin: 0 0 4px;
}
.ws-block-hd p {
  font-size: 14px; color: var(--navy-soft); margin: 0;
  max-width: 620px;
}
.ws-block-hd-tight h3 { font-size: 20px; }

/* ─── First Steps · Access cards ──────────────── */
.ws-access-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 14px; list-style: none; padding: 0; margin: 0 0 14px;
}
.ws-access-card {
  background: white; border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 16px 18px;
  position: relative; overflow: hidden;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.ws-access-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.ws-access-card h4 {
  font-family: var(--font-display); font-size: 15px; font-weight: 700;
  color: var(--navy); margin: 6px 0 6px;
}
.ws-access-card p { font-size: 13px; color: var(--navy-soft); line-height: 1.45; margin: 0; }
.ws-access-tone {
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  display: inline-block; padding: 2px 8px;
  border-radius: 100px;
  background: var(--ws-tone-bg, var(--bg-alt));
  color: var(--ws-tone-fg, var(--slate));
}
.ws-access-neutral { --ws-tone-bg: #f1f5f9; --ws-tone-fg: #475569; }
.ws-access-amber   { --ws-tone-bg: #fef3c7; --ws-tone-fg: #92400e; border-color: rgba(245,158,11,.3); }
.ws-access-green   { --ws-tone-bg: #dcfce7; --ws-tone-fg: #166534; border-color: rgba(22,163,74,.3); }
.ws-access-green::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--green);
}
.ws-access-badge {
  position: absolute; top: 12px; right: 12px;
  background: var(--green); color: white;
  font-family: var(--font-mono); font-size: 9px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 4px;
}
@media (max-width: 760px) { .ws-access-grid { grid-template-columns: 1fr; } }

/* How-to disclosure */
.ws-howto {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0;
  margin-top: 8px;
}
.ws-howto > summary {
  list-style: none;
  padding: 12px 16px;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-body); font-size: 13px; font-weight: 600; color: var(--navy);
}
.ws-howto > summary::-webkit-details-marker { display: none; }
.ws-howto > summary svg { width: 14px; height: 14px; transition: transform .25s; color: var(--muted); }
.ws-howto[open] > summary svg { transform: rotate(180deg); }
.ws-howto-body { padding: 4px 16px 16px; border-top: 1px solid var(--border-light); }
.ws-howto-body ol { margin: 12px 0 8px 18px; padding: 0; font-size: 13px; color: var(--navy-soft); line-height: 1.65; }
.ws-howto-note { font-size: 12px; color: var(--muted); margin: 8px 0 0; font-style: italic; }
.ws-advanced-inline { margin-top: 12px; border-top: 1px solid var(--border-light); padding-top: 8px; }
.ws-advanced-inline > summary {
  cursor: pointer; font-family: var(--font-body); font-size: 12px; font-weight: 600;
  color: var(--muted); list-style: none;
}
.ws-advanced-inline > summary::-webkit-details-marker { display: none; }
.ws-advanced-inline[open] > summary { color: var(--navy); }
.ws-advanced-inline > div { font-size: 12px; color: var(--navy-soft); padding-top: 6px; }
.ws-advanced-inline > div ul { margin: 6px 0; padding-left: 18px; }

/* ─── First Steps · Playbook links ──── */
.ws-links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}
.ws-link-card {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.ws-link-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--red) 30%, var(--border));
  box-shadow: var(--shadow-md);
}
.ws-link-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--red);
  display: inline-block;
}
.ws-link-card h4 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
  line-height: 1.3;
}
.ws-link-card p {
  font-size: 13px;
  color: var(--navy-soft);
  line-height: 1.5;
  margin: 0 0 4px;
  flex: 1;
}
.ws-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 8px 14px;
  background: var(--navy);
  color: white;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.ws-link-btn:hover {
  background: var(--red);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -8px rgba(230, 30, 40, 0.45);
}
.ws-link-btn svg { width: 14px; height: 14px; }
@media (max-width: 760px) {
  .ws-links-grid { grid-template-columns: 1fr; }
}

/* ─── First Steps · Recommended tools table ──── */
.ws-tools-table-wrap {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.ws-tools-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ws-tools-table th, .ws-tools-table td {
  text-align: left; padding: 11px 16px;
  border-bottom: 1px solid var(--border-light);
  color: var(--navy-soft); vertical-align: middle;
}
.ws-tools-table thead th {
  background: var(--bg-alt); font-family: var(--font-mono);
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .2em; color: var(--muted);
}
.ws-tools-table tbody tr:last-child td { border-bottom: none; }
.ws-tools-table tbody tr:hover { background: var(--bg-alt); }
.ws-tools-table td:first-child { font-weight: 600; color: var(--navy); width: 22%; }
.ws-tools-table td:nth-child(2) { width: 28%; }
.ws-tools-table td a { color: var(--red); text-decoration: none; font-weight: 600; }
.ws-tools-table td a:hover { text-decoration: underline; }
@media (max-width: 600px) {
  .ws-tools-table thead { display: none; }
  .ws-tools-table tr { display: block; padding: 10px 14px; border-bottom: 1px solid var(--border-light); }
  .ws-tools-table td { display: block; padding: 2px 0; border: none; }
  .ws-tools-table td:first-child { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
}

/* ─── First Steps · Quick wins ────────────────── */
.ws-quick-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.ws-quick {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 16px;
  text-decoration: none; display: flex; flex-direction: column; gap: 4px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  position: relative;
}
.ws-quick:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--red); }
.ws-quick-icon { width: 26px; height: 26px; margin-bottom: 4px; }
.ws-quick-icon svg { width: 100%; height: 100%; }
.ws-quick b {
  font-family: var(--font-display); font-size: 14px; font-weight: 700;
  color: var(--navy);
}
.ws-quick-tool { font-size: 12px; color: var(--muted); }
@media (max-width: 760px) { .ws-quick-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .ws-quick-grid { grid-template-columns: 1fr; } }

/* ─── Toolkit panel additions ─────────────────── */
.arsenal-filter.ws-toolkit-filter {
  position: relative; top: 0;
  flex-wrap: wrap; justify-content: center;
  max-width: 100%;
  margin: 0 auto 18px;
}
.ws-day-bridge { margin-bottom: 14px; justify-content: center; }

/* Tool card badges (priority) */
.arsenal-card-badges {
  position: absolute; top: 10px; right: 10px;
  display: flex; flex-wrap: wrap; gap: 4px; max-width: 70%;
  justify-content: flex-end; pointer-events: none;
  z-index: 2;
}
.arsenal-card-badge {
  font-family: var(--font-mono); font-size: 9px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  padding: 3px 7px; border-radius: 4px;
  background: var(--badge-bg, var(--bg-alt));
  color: var(--badge-fg, var(--slate));
  border: 1px solid var(--badge-border, var(--border));
  white-space: nowrap;
}
.arsenal-card-badge[data-badge="Most Used"]         { --badge-bg:#fef2f2; --badge-fg:#9b1c1f; --badge-border:rgba(230,30,40,.25); }
.arsenal-card-badge[data-badge="Recommended"]       { --badge-bg:#dcfce7; --badge-fg:#166534; --badge-border:rgba(22,163,74,.3); }
.arsenal-card-badge[data-badge="Best Starting Point"]{ --badge-bg:#eff6ff; --badge-fg:#1e3a8a; --badge-border:rgba(59,130,246,.3); }
.arsenal-card-badge[data-badge="Advanced"]          { --badge-bg:#f5f3ff; --badge-fg:#5b21b6; --badge-border:rgba(124,58,237,.3); }
.arsenal-card-badge[data-badge="Experimental"]      { --badge-bg:#fffbeb; --badge-fg:#92400e; --badge-border:rgba(245,158,11,.3); }
.arsenal-card-badge[data-badge="Limited Access"]    { --badge-bg:#f1f5f9; --badge-fg:#475569; --badge-border:var(--border); }

/* ─── Most Used panel ─────────────────────────── */
.ws-most-used-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.ws-most-card {
  position: relative;
  background: white; border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 18px 18px 16px;
  display: flex; flex-direction: column; gap: 6px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.ws-most-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: var(--mu-color, var(--red));
  border-radius: 3px 0 0 3px;
}
.ws-most-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--mu-color, var(--red)); }
.ws-most-rank {
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  letter-spacing: .08em; color: var(--muted);
}
.ws-most-badge {
  position: absolute; top: 14px; right: 14px;
  font-family: var(--font-mono); font-size: 9px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  padding: 3px 7px; border-radius: 4px;
  background: var(--mu-color, var(--red)); color: white;
  opacity: .9;
}
.ws-most-card h4 {
  font-family: var(--font-display); font-size: 17px; font-weight: 700;
  color: var(--navy); margin: 0;
}
.ws-most-best, .ws-most-why {
  font-size: 13px; color: var(--navy-soft); line-height: 1.5; margin: 0;
}
.ws-most-best b { color: var(--navy); font-weight: 700; }
.ws-most-cta {
  display: inline-block; margin-top: 6px;
  font-family: var(--font-body); font-size: 12px; font-weight: 600;
  color: var(--mu-color, var(--red)); text-decoration: none;
}
.ws-most-cta:hover { text-decoration: underline; }

/* ─── Understand Better panel ────────────────── */
.ws-gov-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.ws-gov-card {
  background: white; border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 0;
  transition: border-color .25s;
}
.ws-gov-card[open] { border-color: var(--red); }
.ws-gov-card > summary {
  list-style: none; cursor: pointer;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px 14px; align-items: start;
}
.ws-gov-card > summary::-webkit-details-marker { display: none; }
.ws-gov-card > summary h4 {
  grid-column: 2; grid-row: 1;
  font-family: var(--font-display); font-size: 15px; font-weight: 700;
  color: var(--navy); margin: 0;
}
.ws-gov-card > summary p {
  grid-column: 2; grid-row: 2;
  font-size: 12px; color: var(--navy-soft); line-height: 1.5; margin: 0;
}
.ws-gov-num {
  grid-column: 1; grid-row: 1 / span 2;
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  color: var(--red); align-self: start;
}
.ws-gov-toggle {
  grid-column: 3; grid-row: 1 / span 2;
  font-family: var(--font-mono); font-size: 16px; font-weight: 600;
  color: var(--muted); align-self: center;
  transition: transform .25s;
}
.ws-gov-card[open] .ws-gov-toggle { transform: rotate(45deg); color: var(--red); }
.ws-gov-body {
  padding: 4px 16px 16px;
  border-top: 1px solid var(--border-light);
}
.ws-gov-body p { font-size: 13px; color: var(--navy-soft); line-height: 1.6; margin: 10px 0; }
@media (max-width: 760px) { .ws-gov-grid { grid-template-columns: 1fr; } }

.ws-safe-list {
  list-style: none; padding: 0; margin: 0;
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.ws-safe-list li {
  padding: 11px 18px 11px 40px;
  font-size: 13px; color: var(--navy-soft); line-height: 1.5;
  border-bottom: 1px solid var(--border-light);
  position: relative;
}
.ws-safe-list li:last-child { border-bottom: none; }
.ws-safe-list li::before {
  content: ''; position: absolute; left: 18px; top: 17px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--red);
}

.ws-advanced {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
}
.ws-advanced > summary {
  list-style: none; cursor: pointer;
  padding: 12px 16px;
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  font-family: var(--font-body); font-size: 13px; font-weight: 600;
  color: var(--navy);
}
.ws-advanced > summary::-webkit-details-marker { display: none; }
.ws-advanced[open] { border-color: rgba(15,23,41,.12); box-shadow: var(--shadow-sm); }
.ws-advanced-toggle {
  font-family: var(--font-mono); font-size: 16px; font-weight: 600;
  color: var(--muted); transition: transform .25s;
}
.ws-advanced[open] .ws-advanced-toggle { transform: rotate(45deg); color: var(--red); }
.ws-advanced-body {
  padding: 4px 16px 14px;
  border-top: 1px solid var(--border-light);
  font-size: 13px; color: var(--navy-soft); line-height: 1.65;
}
.ws-advanced-body p { margin: 10px 0; }
.ws-advanced-line {
  margin-top: 12px !important; padding: 10px 14px;
  background: var(--bg-alt); border-left: 3px solid var(--red);
  border-radius: 6px; font-style: italic;
}
.ws-agent-patterns { list-style: none; padding: 0; margin: 8px 0; }
.ws-agent-patterns li { padding: 6px 0; border-bottom: 1px dashed var(--border-light); }
.ws-agent-patterns li:last-child { border-bottom: none; }
.ws-agent-patterns b { color: var(--navy); font-weight: 700; }

/* Tool highlight when triggered by task chip */
.arsenal-card.ws-task-highlight {
  outline: 2px solid var(--red);
  outline-offset: 2px;
  animation: ws-pulse 1.4s var(--ease-out) 2;
}
@keyframes ws-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(230,30,40,0); }
  40%      { box-shadow: 0 0 0 6px rgba(230,30,40,.18); }
}

@media (prefers-reduced-motion: reduce) {
  .ws-panel { animation: none; }
  .arsenal-card.ws-task-highlight { animation: none; }
  .ws-tab,
  .ws-task,
  .ws-most-card,
  .ws-quick,
  .ws-access-card { transition: none !important; }
  .ws-tab:active { transform: none; }
}

/* ==========================================================
   DECISION TREE — infographic-style panel
   Lives inside the Start Here workspace as the "Decision Tree" tab.
   Visual goal: feels like a printed decision-tree poster, not a webpage.
   ========================================================== */
.dtree {
  --dtree-paper: #fafbfc;
  --dtree-grid: rgba(15,23,41,.04);
  --dtree-no: #0f172a;
  background:
    linear-gradient(180deg, #ffffff 0%, var(--dtree-paper) 100%),
    repeating-linear-gradient(0deg, var(--dtree-grid) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(90deg, var(--dtree-grid) 0 1px, transparent 1px 32px);
  background-blend-mode: normal, multiply, multiply;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px clamp(20px, 4vw, 48px) 40px;
  position: relative;
  overflow: hidden;
}
.dtree::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 10% 0%, rgba(230,30,40,.06), transparent 40%),
              radial-gradient(circle at 90% 100%, rgba(124,58,237,.06), transparent 40%);
  pointer-events: none;
}

/* Poster header */
.dtree-poster {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 36px;
  position: relative;
}
.dtree-poster-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
}
.dtree-poster-dot {
  width: 18px; height: 2px; background: var(--red); border-radius: 1px;
}
.dtree-poster-title {
  font-family: var(--font-display, 'Outfit'), 'DM Sans', system-ui, sans-serif;
  font-size: clamp(30px, 4vw, 46px); font-weight: 800;
  letter-spacing: -0.03em; color: var(--navy);
  margin: 0 0 16px;
  line-height: 1.1;
}
.dtree-poster-accent {
  background: linear-gradient(120deg, #E61E28 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.dtree-poster-sub {
  font-size: 15px; line-height: 1.6; color: var(--navy-soft);
  margin: 0;
}
.dtree-poster-sub strong { color: var(--navy); font-weight: 700; }

/* Inline chips inside the sub paragraph */
.dtree-chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 4px;
  vertical-align: 2px;
}
.dtree-chip-yes { background: #16a34a; color: white; }

/* The vertical chain of nodes */
.dtree-chain {
  list-style: none; padding: 0; margin: 0;
  max-width: 980px; margin-left: auto; margin-right: auto;
  position: relative;
  display: flex; flex-direction: column;
}

/* Each Q → result node */
.dtree-node {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 110px 1fr;
  align-items: center;
  gap: 0;
  padding: 18px 0;
  position: relative;
}

/* Black NO arrow connector between nodes — the "next question" indicator */
.dtree-node:not(.is-last)::after {
  content: '';
  position: absolute;
  left: calc(min(320px, 30%) / 2);
  top: calc(100% - 4px);
  width: 4px; height: 36px;
  background: var(--dtree-no);
  border-radius: 2px;
  z-index: 1;
}
.dtree-node:not(.is-last)::before {
  content: '';
  position: absolute;
  left: calc(min(320px, 30%) / 2);
  top: calc(100% + 28px);
  width: 0; height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 14px solid var(--dtree-no);
  transform: translateX(-50%);
  z-index: 2;
}

/* Question shape — hexagon-ish badge */
.dtree-q {
  background: white;
  border: 2px solid var(--node-color, var(--red));
  border-radius: 14px;
  padding: 18px 18px 18px 16px;
  display: flex; align-items: center; gap: 12px;
  box-shadow:
    0 1px 0 var(--node-color, var(--red)),
    0 4px 0 -2px color-mix(in srgb, var(--node-color, var(--red)) 30%, white),
    0 12px 24px -10px color-mix(in srgb, var(--node-color, var(--red)) 30%, transparent);
  position: relative; z-index: 4;
  min-height: 92px;
}

.dtree-q-badge {
  font-family: var(--font-mono); font-size: 13px; font-weight: 800;
  letter-spacing: .2em;
  background: var(--node-color, var(--red));
  color: white;
  width: 38px; height: 38px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 0 color-mix(in srgb, var(--node-color, var(--red)) 50%, black);
}
.dtree-q-text {
  font-size: 15px; line-height: 1.4; color: var(--navy);
  font-weight: 600;
}

/* YES rail — coloured horizontal arrow leading to the result card */
.dtree-yes-rail {
  display: flex; align-items: center; justify-content: center;
  gap: 8px;
  color: var(--node-color, var(--red));
  position: relative; z-index: 3;
}
.dtree-yes-pill {
  font-family: var(--font-mono); font-size: 11px; font-weight: 800;
  letter-spacing: .2em;
  background: var(--node-color, var(--red));
  color: white;
  padding: 4px 8px; border-radius: 4px;
  box-shadow: 0 2px 0 color-mix(in srgb, var(--node-color, var(--red)) 50%, black);
}
.dtree-yes-arrow {
  width: 50px; height: 22px;
  filter: drop-shadow(0 2px 0 color-mix(in srgb, var(--node-color, var(--red)) 50%, black));
}

/* Result card — non-interactive tool poster card */
.dtree-result {
  background: white;
  border: 2px solid var(--node-color, var(--red));
  border-radius: 14px;
  padding: 18px 20px;
  color: inherit;
  display: flex; gap: 14px; align-items: flex-start;
  box-shadow:
    0 1px 0 var(--node-color, var(--red)),
    0 4px 0 -2px color-mix(in srgb, var(--node-color, var(--red)) 30%, white),
    0 14px 28px -10px color-mix(in srgb, var(--node-color, var(--red)) 35%, transparent);
  position: relative; z-index: 4;
}
.dtree-result-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--node-color, var(--red)) 14%, white);
  color: var(--node-color, var(--red));
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  border: 1.5px solid color-mix(in srgb, var(--node-color, var(--red)) 30%, white);
}
.dtree-result-icon svg { width: 28px; height: 28px; }
.dtree-result-body { flex: 1; min-width: 0; }
.dtree-result-name {
  font-family: var(--font-display, 'Outfit'), 'DM Sans', system-ui, sans-serif;
  font-size: 17px; font-weight: 800; color: var(--navy);
  line-height: 1.2;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-bottom: 4px;
}
.dtree-result-tier {
  font-family: var(--font-mono); font-size: 9.5px; font-weight: 700;
  letter-spacing: .2em;
  background: color-mix(in srgb, var(--node-color, var(--red)) 14%, white);
  color: var(--node-color, var(--red));
  padding: 2px 8px; border-radius: 100px;
  text-transform: uppercase;
  border: 1px solid color-mix(in srgb, var(--node-color, var(--red)) 30%, white);
}
.dtree-result-byline {
  font-size: 13px; line-height: 1.45; color: var(--navy-soft);
  margin-bottom: 8px;
}
.dtree-result-when {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 4px;
  border-top: 1.5px dashed color-mix(in srgb, var(--node-color, var(--red)) 25%, white);
  padding-top: 8px;
}
.dtree-result-when li {
  font-size: 12.5px; line-height: 1.4; color: var(--navy-soft);
  padding-left: 14px; position: relative;
}
.dtree-result-when li::before {
  content: '';
  position: absolute; left: 0; top: 7px;
  width: 5px; height: 5px;
  background: var(--node-color, var(--red));
  border-radius: 50%;
}

/* Fallback band */
.dtree-fallback {
  max-width: 980px; margin: 56px auto 0;
  position: relative;
}
.dtree-fallback-label {
  display: inline-block;
  font-family: var(--font-mono); font-size: 11px; font-weight: 800;
  letter-spacing: .12em;
  color: var(--dtree-no);
  background: var(--dtree-paper);
  border: 1.5px solid var(--dtree-no);
  border-radius: 4px;
  padding: 4px 10px;
  margin-bottom: 14px;
}
.dtree-fallback-card {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: white;
  padding: 22px 24px;
  border-radius: var(--radius-lg);
  display: flex; align-items: center; gap: 18px;
  box-shadow: 0 14px 30px -10px rgba(15,23,42,.4);
}
.dtree-fallback-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: rgba(255,255,255,.08);
  color: white;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  border: 1.5px solid rgba(255,255,255,.15);
}
.dtree-fallback-icon svg { width: 28px; height: 28px; }
.dtree-fallback-title {
  font-family: var(--font-display, 'Outfit'), 'DM Sans', system-ui, sans-serif;
  font-size: 17px; font-weight: 800;
  color: white;
  margin-bottom: 4px;
}
.dtree-fallback-text {
  font-size: 13.5px; line-height: 1.5;
  color: rgba(255,255,255,.85);
}

/* Tip strip */
.dtree-tip {
  max-width: 980px; margin: 18px auto 0;
  background: white;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 22px;
  display: flex; align-items: center; gap: 14px;
  color: var(--navy-soft); font-size: 13.5px; line-height: 1.5;
}
.dtree-tip svg { width: 24px; height: 24px; flex-shrink: 0; color: var(--red); }
.dtree-tip strong { color: var(--navy); font-weight: 700; }
.dtree-tip kbd {
  display: inline-block;
  background: var(--bg-alt, #f1f5f9);
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 4px;
  font-family: var(--font-mono); font-size: 11px;
  padding: 1px 6px; margin: 0 2px;
  color: var(--navy);
}

/* ─── Responsive ─── */
@media (max-width: 880px) {
  .dtree { padding: 24px 18px 28px; }
  .dtree-node {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .dtree-node:not(.is-last)::after {
    left: 30px;
  }
  .dtree-node:not(.is-last)::before {
    left: 30px;
    transform: translateX(-50%);
  }
  .dtree-yes-rail {
    justify-content: flex-start;
    padding-left: 14px;
  }
  .dtree-yes-arrow {
    transform: rotate(90deg);
    width: 36px; height: 18px;
  }
  .dtree-fallback-card { flex-direction: column; align-items: flex-start; gap: 12px; }
}
