/* =========================================================
   Practice page
   ========================================================= */

/* ---------- Kicker (matches Foundations rhythm) ---------- */
.prac-kicker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  padding: 96px 0 56px;
  align-items: start;
}
.prac-kicker h1 {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--fs-h0);
  letter-spacing: -0.022em; line-height: 0.92;
  margin: 0;
  margin-top: -0.18em;
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: break-word;
}
.prac-kicker__intro p {
  font-size: var(--fs-h2);
  line-height: 1.3;
  letter-spacing: -0.005em;
  margin: 0; max-width: 32ch;
}

/* ---------- Brand Tools intro (matches Growth section rhythm) ---------- */
.prac-intro {
  padding: 56px 0 32px;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.prac-intro h2 {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--fs-h1);
  letter-spacing: -0.015em; line-height: 1;
  margin: 0;
}
.prac-intro__body p {
  font-size: var(--fs-body);
  line-height: 1.5;
  margin: 0 0 16px;
  max-width: 54ch;
}
.prac-intro__cta { margin-top: 4px; }
.prac-link {
  font-size: var(--fs-body);
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.prac-link:hover { opacity: 0.7; }

/* ---------- Tool section ---------- */
.tool-section {
  padding: 48px 0 40px;
  border-top: 1px solid var(--rule);
  scroll-margin-top: 140px;
}
.tool-section__hed {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.15;
  margin: 0 0 28px;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 44px 32px;
}

/* ---------- Tool card (icon + name + desc) ---------- */
.tool-card {
  display: flex; flex-direction: column;
  gap: 14px;
  text-align: left;
  font-family: inherit;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: inherit;
  scroll-margin-top: 160px;
  transition: opacity 160ms ease;
}
.tool-card:hover { opacity: 1; }
.tool-card.is-hidden { display: none; }
.tool-card.is-flash .tool-card__name {
  animation: prac-flash 1.4s ease;
}
@keyframes prac-flash {
  0%, 60% { background: rgba(201,69,54,0.18); }
  100% { background: transparent; }
}
.tool-card__icon {
  width: 50px;
  height: 50px;
  background: transparent;
  border: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  flex: 0 0 auto;
}
.tool-card__icon svg {
  width: 100%; height: 100%;
  display: block;
  stroke-width: 1.4;
  vector-effect: non-scaling-stroke;
}
.tool-card__name {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 4px 0 0;
  transition: background 200ms ease;
  padding: 1px 3px;
  margin-left: -3px;
  width: fit-content;
  max-width: 100%;
}
.tool-card__desc {
  font-size: 13.5px; line-height: 1.45;
  color: var(--ink-soft);
  margin: 0;
  max-width: 36ch;
}

/* "Try it now" badge — lime dot with asterisk, pinned to the icon's top-right */
.prac-intro__body p.prac-intro__legend {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 18px 0 0;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-weight: 400;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
  line-height: 1.15;
}
.prac-intro__spark {
  display: inline-grid; place-items: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: #d4ff4a;
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
  flex: 0 0 auto;
}
.prac-intro__spark svg { width: 14px; height: 14px; display: block; }
.tool-card__iconwrap {
  position: relative;
  width: 50px; height: 50px;
  flex: 0 0 auto;
}
.tool-card__iconwrap .tool-card__icon { width: 100%; height: 100%; }
.tool-card__spark {
  position: absolute;
  top: -4px; right: -6px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #d4ff4a;                /* lime */
  display: grid; place-items: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.18);
  animation: spark-pulse 2.4s ease-in-out infinite;
  will-change: transform;
  z-index: 2;
}
.tool-card__spark svg {
  width: 12px; height: 12px;
  animation: spark-spin 6s linear infinite;
  display: block;
}
.tool-card__spark::before {
  content: "";
  position: absolute;
  inset: -35%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(212,255,74,.55), rgba(212,255,74,0) 70%);
  animation: spark-halo 2.4s ease-in-out infinite;
  z-index: -1;
}
.tool-card:hover .tool-card__spark { animation-duration: 1.2s; }

@keyframes spark-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.12); }
}
@keyframes spark-spin {
  to { transform: rotate(360deg); }
}
@keyframes spark-halo {
  0%, 100% { opacity: .45; transform: scale(.85); }
  50%      { opacity: 1;   transform: scale(1.2); }
}
@media (prefers-reduced-motion: reduce) {
  .tool-card__spark, .tool-card__spark svg, .tool-card__spark::before { animation: none; }
}

/* ---------- Card action links ---------- */
.tool-card__actions {
  margin-top: 2px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.tool-card__action {
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: -0.005em;
  color: var(--ink);
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  transition: color 160ms ease, border-color 160ms ease;
}
.tool-card__action:hover {
  color: var(--muted);
  border-color: var(--muted);
}
.tool-card__action span { margin-left: 4px; font-size: 11px; }

/* ---------- Sticky find bar (mirrors glossary pattern) ---------- */
.tool-find {
  position: sticky;
  top: 64px;
  z-index: 40;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
  margin-top: 16px;
  transition: border-color 200ms ease;
}
.tool-find__inner {
  display: grid;
  grid-template-columns: minmax(240px, 320px) 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
}
.tool-find__search {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--rule);
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--bg);
}
.tool-find__search:focus-within { border-color: var(--ink); }
.tool-find__icon { width: 16px; height: 16px; flex-shrink: 0; color: var(--ink-soft); }
.tool-find__search input {
  border: 0; outline: 0; background: transparent;
  font: inherit;
  font-size: var(--fs-small);
  color: var(--ink);
  width: 100%;
}
.tool-find__search input::-webkit-search-cancel-button { appearance: none; }
.tool-find__jump { grid-column: 3; }
.tool-find__jump select {
  font: inherit;
  font-size: var(--fs-small);
  color: var(--ink);
  background: var(--bg)
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%230a0a0a' stroke-width='1.4' fill='none' stroke-linecap='round'/></svg>")
    no-repeat right 12px center;
  background-size: 10px;
  border: 1px solid var(--rule);
  padding: 8px 36px 8px 14px;
  border-radius: 999px;
  appearance: none;
  cursor: pointer;
  min-width: 220px;
}
.tool-find__jump select:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.tool-find__figma {
  grid-column: 4;
  align-self: center;
  justify-self: end;
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 8px 14px;
  white-space: nowrap;
  background: var(--bg);
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}
.tool-find__figma:hover { border-color: var(--ink); }

.tool-find__empty {
  padding: 40px 0 56px;
  text-align: center;
  font-size: var(--fs-body);
  color: var(--muted);
  border-top: 1px solid var(--rule);
}
.tool-find__empty button {
  font: inherit;
  font-size: var(--fs-small);
  background: transparent;
  border: 1px solid var(--ink);
  color: var(--ink);
  padding: 8px 14px;
  margin-top: 14px;
  cursor: pointer;
}
.tool-find__empty button:hover { background: var(--ink); color: #fff; }

@media (max-width: 900px) {
  .tool-find { top: 47px; }
  .tool-grid { grid-template-columns: repeat(2, 1fr); }
  .tool-find__inner { grid-template-columns: 1fr; gap: 10px; }
  .tool-find__jump { grid-column: 1; }
  .tool-find__jump select { width: 100%; }
  .tool-find__figma { grid-column: 1; }
}

/* Modal */
.tool-modal-scrim {
  position: fixed; inset: 0; background: rgba(0,0,0,0.45);
  z-index: 90;
  opacity: 0; pointer-events: none;
  transition: opacity 220ms ease;
}
.tool-modal-scrim.is-on { opacity: 1; pointer-events: auto; }
.tool-modal {
  position: fixed;
  top: 48px; bottom: 48px; left: 50%;
  width: min(1100px, 92vw);
  transform: translate(-50%, 16px);
  opacity: 0; pointer-events: none;
  background: #fff;
  z-index: 100;
  display: flex; flex-direction: column;
  transition: transform 280ms cubic-bezier(.2,.8,.2,1), opacity 220ms;
  border: 1px solid var(--ink);
}
.tool-modal.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.tool-modal__head {
  padding: 18px 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  border-bottom: 1px solid var(--rule);
}
.tool-modal__title {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 24px;
  letter-spacing: -0.01em;
  margin: 0;
}
.tool-modal__kicker {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
  margin: 0 0 2px;
}
.tool-modal__actions {
  display: flex; gap: 16px; align-items: center;
}
.tool-modal__dl {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  transition: color 160ms ease, border-color 160ms ease;
}
.tool-modal__dl:hover {
  color: var(--accent, #c94536);
  border-color: var(--accent, #c94536);
}
.tool-modal__dl[hidden] { display: none; }
.tool-modal__dl span { margin-left: 4px; font-size: 11px; }
.tool-modal__close {
  background: none; border: 0;
  font-size: 22px; line-height: 1;
  cursor: pointer; padding: 4px 8px;
  color: var(--ink);
}
.tool-modal__body {
  flex: 1; overflow-y: auto;
  padding: 32px;
  background: #fafafa;
}
.tool-modal__foot {
  padding: 14px 24px;
  border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between;
  align-items: center;
  font-size: 12px; color: var(--muted);
  background: #fff;
}
.tool-modal__foot .reset-btn {
  background: none; border: 1px solid var(--rule);
  padding: 7px 12px; font-size: 11px;
  font-family: var(--font-mono, ui-monospace, monospace);
  cursor: pointer;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted);
}
.tool-modal__foot .reset-btn:hover { color: var(--ink); border-color: var(--ink); }
.tool-modal__foot-actions { display: flex; gap: 10px; align-items: center; }
.tool-modal__foot-actions .preview__btn { padding: 7px 12px; font-size: 11px; }
.tool-modal__foot-actions .preview__btn:disabled { opacity: .4; cursor: not-allowed; }

/* ---------- PNG preview modal ---------- */
.preview-scrim {
  position: fixed; inset: 0; background: rgba(0,0,0,.5);
  opacity: 0; pointer-events: none; transition: opacity .18s ease;
  z-index: 90;
}
.preview-scrim.is-on { opacity: 1; pointer-events: auto; }
.preview {
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%, -48%);
  width: min(980px, 94vw); max-height: 92vh;
  background: #fff; border: 1px solid var(--rule);
  box-shadow: 0 24px 72px rgba(0,0,0,.25);
  display: flex; flex-direction: column;
  opacity: 0; pointer-events: none; transition: opacity .18s ease, transform .18s ease;
  z-index: 100;
}
.preview.is-on {
  opacity: 1; pointer-events: auto;
  transform: translate(-50%, -50%);
}
.preview__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; border-bottom: 1px solid var(--rule);
}
.preview__title {
  font-family: var(--font-display, var(--font-sans));
  font-size: 18px; margin: 0; font-weight: 500;
}
.preview__close {
  background: none; border: 0; font-size: 18px; cursor: pointer;
  color: var(--muted); padding: 4px 8px;
}
.preview__close:hover { color: var(--ink); }
.preview__body {
  flex: 1; overflow: auto; padding: 20px;
  background: #fafafa; display: flex; justify-content: center; align-items: flex-start;
}
.preview__img {
  max-width: 100%; height: auto;
  border: 1px solid var(--rule); background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}
.preview__foot {
  padding: 12px 20px; border-top: 1px solid var(--rule);
  display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap;
  background: #fff;
}
.preview__btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 14px; font-size: 12px;
  font-family: var(--font-mono, ui-monospace, monospace);
  letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid var(--ink); cursor: pointer;
  text-decoration: none; background: #fff; color: var(--ink);
  transition: background .15s, color .15s;
}
.preview__btn[hidden] { display: none !important; }
.preview__btn--ghost:hover { background: var(--ink); color: #fff; }
.preview__btn--primary { background: var(--ink); color: #fff; }
.preview__btn--primary:hover { background: #000; }
@media (max-width: 640px) {
  .preview__foot { justify-content: center; }
  .preview__btn { flex: 1 1 auto; justify-content: center; }
}

.ws-accent-rows {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ws-accent-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.ws-accent-cell--inline {
  border: 0;
  padding: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  column-gap: 10px;
}
.ws-accent-cell--inline .ws-inline-label {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  white-space: nowrap;
  padding-bottom: 6px;
}
.ws-accent-cell--inline input {
  border: 0;
  border-bottom: 1px solid var(--ink);
  padding: 4px 0 6px;
  font: inherit;
  font-size: 14px;
  background: transparent;
  width: 100%;
}
.ws-accent-cell--inline input:focus { outline: 0; border-bottom-color: var(--cap-2); }

/* Worksheet surface shared by tool modals */
.ws {
  background: #fff;
  max-width: 1100px;
  margin: 0 auto;
  border: 1px solid var(--rule);
}
.ws--paneled {
  display: grid;
  grid-template-columns: 280px 1fr;
  align-items: stretch;
  min-height: 640px;
}
.ws__panel {
  background: #0a0a0a;
  color: #fff;
  padding: 28px 26px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
}
.ws__panel-kicker {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.7;
  margin: 0 0 16px;
}
.ws__panel-title {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 34px;
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0 0 22px;
}
.ws__panel-subtitle {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.3;
  color: #fff;
  margin: 0 0 10px;
}
.ws__panel-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ws__panel-body p {
  font-size: 12px;
  line-height: 1.55;
  margin: 0;
  color: rgba(255,255,255,0.78);
}
.ws__howto {
  border-top: 1px solid rgba(255,255,255,0.25);
  padding-top: 12px;
  margin-top: 16px;
}
.ws__howto-label {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.8;
  margin: 0 0 10px;
}
.ws__howto-list {
  list-style: decimal;
  padding-left: 18px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ws__howto-list li {
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255,255,255,0.85);
}
.ws--paneled .ws__content {
  padding: 32px 32px 36px;
  background: #fff;
  overflow: auto;
}

/* ---------- Banner-style header (default for interactive tools) ---------- */
.ws--banner {
  display: block;
  padding: 0;
}
.ws--banner .ws__banner {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 32px;
  padding: 28px 32px 28px;
  align-items: stretch;
}
.ws--banner .ws__banner-mark {
  background: #0a0a0a;
  color: #fff;
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 180px;
}
.ws--banner .ws__banner-kicker {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.75;
  margin: 0;
}
.ws--banner .ws__banner-title {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 40px;
  line-height: 0.98;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 40px 0 0;
}
.ws--banner .ws__banner-copy {
  padding-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: flex-end;
}
.ws--banner .ws__banner-subtitle {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.25;
  margin: 0 0 4px;
  color: var(--ink);
}
.ws--banner .ws__banner-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ws--banner .ws__banner-body p {
  font-size: 13.5px;
  line-height: 1.55;
  margin: 0;
  color: var(--ink);
}
.ws--banner .ws__howto {
  border-top: 1px solid var(--rule);
  padding-top: 12px;
  margin-top: 10px;
}
.ws--banner .ws__howto-label {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 1;
  margin: 0 0 10px;
  color: var(--ink);
}
.ws--banner .ws__howto-list {
  list-style: decimal;
  padding-left: 18px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ws--banner .ws__howto-list li {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink);
}
.ws--banner .ws__banner-rule {
  border: 0;
  border-top: 1px solid var(--ink);
  margin: 0 32px;
}
.ws--banner .ws__content {
  padding: 28px 32px 36px;
}

/* Orange number kicker above each accent field */
.ws-accent-num {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--cap-2);
  margin: 0 0 8px;
}
}
.ws__header {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 20px;
  margin-bottom: 24px;
  align-items: stretch;
}
.ws__marker {
  background: #0a0a0a; color: #fff;
  padding: 20px;
  aspect-ratio: 3 / 4;
  font-family: var(--font-sans);
  display: flex; flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}
.ws__marker-kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.7;
  line-height: 1.1;
}
.ws__marker-title {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: -0.005em;
}
.ws__intro {
  display: flex; flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
}
.ws__intro p {
  font-size: 14px; line-height: 1.55;
  margin: 0; color: var(--ink-soft);
  max-width: 68ch;
}

/* Editable fields */
.ws textarea, .ws input[type="text"] {
  font-family: var(--font-sans);
  font-size: 14px; line-height: 1.45;
  color: var(--ink);
  border: 1px dashed var(--rule);
  padding: 10px 12px;
  background: #fff;
  resize: vertical;
  width: 100%;
  display: block;
  transition: border-color 160ms;
}
.ws textarea:focus, .ws input:focus {
  outline: none; border-color: var(--ink); border-style: solid;
}
.ws label.ws-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 6px;
}

/* =========================================================
   Tool-specific embedded UIs
   ========================================================= */

/* Purpose Wheel */
.pw {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px;
  align-items: center;
}
.pw__stage {
  position: relative;
  aspect-ratio: 1;
  max-width: 440px;
  margin: 0 auto;
}
.pw__stage svg { width: 100%; height: 100%; overflow: visible; }
.pw__slice { cursor: pointer; transition: opacity 180ms; }
.pw__slice:hover { opacity: 0.85; }
.pw__slice.is-dim { opacity: 0.25; }
.pw__slice.is-on { opacity: 1; }
.pw__labels text {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.04em;
  fill: #fff;
  pointer-events: none;
  text-transform: uppercase;
}
.pw__panel h4 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 8px;
}
.pw__panel .selected-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--cap-2); color: #fff;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.pw__panel .selected-pill .chip {
  width: 6px; height: 6px; background: #fff;
}
.pw__panel textarea { min-height: 110px; }
.pw__step {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
  margin: 0 0 4px;
}

/* Map the Market 2x2 */
.mtm {
  display: grid; grid-template-columns: 1fr 320px; gap: 32px;
  align-items: start;
}
.mtm__stage {
  position: relative;
  aspect-ratio: 1;
  background: #fff;
  border: 1px solid var(--ink);
}
.mtm__axis {
  position: absolute;
  background: var(--ink);
}
.mtm__axis--v { top: 0; bottom: 0; left: 50%; width: 1px; }
.mtm__axis--h { left: 0; right: 0; top: 50%; height: 1px; }
.mtm__axis-label {
  position: absolute;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
  white-space: nowrap;
}
.mtm__axis-label.top    { top: 8px; left: 50%; transform: translateX(-50%); }
.mtm__axis-label.bottom { bottom: 8px; left: 50%; transform: translateX(-50%); }
.mtm__axis-label.left   { left: 8px; top: 50%; transform: translateY(-50%); }
.mtm__axis-label.right  { right: 8px; top: 50%; transform: translateY(-50%); }
.mtm__axis-label input {
  border: 0; background: transparent;
  font: inherit; color: inherit;
  text-transform: inherit; letter-spacing: inherit;
  padding: 2px 4px;
  border-bottom: 1px dashed var(--rule);
  min-width: 80px;
}
.mtm__axis-label input:focus {
  outline: none; border-bottom-color: var(--ink); border-bottom-style: solid;
}
.mtm__dot {
  position: absolute;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--ink); color: #fff;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 14px;
  text-align: center;
  transform: translate(-50%, -50%);
  cursor: move;
  user-select: none;
  transition: transform 80ms ease, box-shadow 160ms;
}
.mtm__dot[data-kind="us"] {
  background: var(--cap-2);
  width: 18px; height: 18px;
  line-height: 18px;
  box-shadow: 0 0 0 3px rgba(242,92,59,0.2);
}
.mtm__dot-label {
  position: absolute;
  left: 12px; top: -4px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
}

.mtm__panel h4 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 10px;
}
.mtm__brands { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.mtm__brand-row {
  display: grid; grid-template-columns: 20px 1fr auto;
  gap: 8px; align-items: center;
  font-size: 13px;
}
.mtm__brand-row .swatch {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--ink);
}
.mtm__brand-row .swatch.us { background: var(--cap-2); }
.mtm__brand-row input {
  font: inherit;
  border: 0; border-bottom: 1px dashed var(--rule);
  padding: 4px 2px;
  background: transparent;
}
.mtm__brand-row input:focus { outline: none; border-bottom-color: var(--ink); border-bottom-style: solid; }
.mtm__brand-row button {
  background: none; border: 0;
  color: var(--muted); cursor: pointer;
  font-size: 16px; line-height: 1;
}
.mtm__brand-row button:hover { color: var(--ink); }
.mtm__add {
  background: none; border: 1px dashed var(--rule);
  padding: 8px 10px;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  color: var(--ink-soft);
  width: 100%;
  text-align: left;
}
.mtm__add:hover { color: var(--ink); border-color: var(--ink); }

/* Brand Archetypes wheel */
.arch {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  align-items: center;
}
.arch__stage {
  position: relative;
  aspect-ratio: 1;
  max-width: 480px;
  margin: 0 auto;
}
.arch__stage svg { width: 100%; height: 100%; overflow: visible; }
.arch__wedge { cursor: pointer; transition: all 180ms; }
.arch__wedge.is-dim { opacity: 0.35; }
.arch__wedge.is-on path { fill: var(--cap-2); }
.arch__wedge text {
  font-family: var(--font-sans);
  font-size: 8px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  fill: var(--ink);
}
.arch__wedge.is-on text { fill: #fff; }
.arch__panel .selected {
  display: flex; align-items: baseline; gap: 12px;
  margin-bottom: 12px;
}
.arch__panel .selected h4 {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 26px;
  letter-spacing: -0.01em;
  margin: 0;
}
.arch__panel .selected .tag {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.arch__panel p.desc {
  font-size: 14px; line-height: 1.5; margin: 0 0 6px;
  color: var(--ink);
  max-width: 48ch;
}
.arch__panel dl {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 6px 16px;
  font-size: 13px;
  margin: 12px 0;
}
.arch__panel dt {
  font-weight: 500;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 2px;
}
.arch__panel dd { margin: 0; }

/* Tone of Voice slider */
.tov {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
}
.tov__slider {
  display: grid; grid-template-columns: 110px 1fr 110px;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule-soft);
}
.tov__slider:first-of-type { border-top: 1px solid var(--rule); }
.tov__slider .left, .tov__slider .right {
  font-size: 12px;
  color: var(--ink-soft);
}
.tov__slider .left { text-align: right; }
.tov__slider input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 1px;
  background: var(--ink); outline: none;
}
.tov__slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--cap-2);
  cursor: pointer;
}
.tov__slider input[type="range"]::-moz-range-thumb {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--cap-2);
  cursor: pointer; border: 0;
}
.tov__preview {
  background: #fff;
  padding: 20px; border: 1px solid var(--rule);
  font-size: 14px; line-height: 1.5;
  min-height: 180px;
}
.tov__preview .speaker {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
  margin: 0 0 4px;
}

/* Brand Star */
.bs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
}
.bs__stage {
  position: relative;
  aspect-ratio: 1;
  max-width: 440px;
  margin: 0 auto;
}
.bs__stage svg { width: 100%; height: 100%; overflow: visible; }
.bs__point {
  position: absolute;
  transform: translate(-50%, -50%);
  background: #fff;
  padding: 6px 8px;
  border: 1px solid var(--rule);
  font-size: 11px;
  min-width: 90px; max-width: 140px;
  text-align: center;
}
.bs__point input {
  border: 0;
  background: transparent;
  text-align: center;
  font: inherit;
  width: 100%;
}
.bs__point input:focus { outline: none; }
.bs__panel h4 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 10px;
}
.bs__panel p { font-size: 14px; line-height: 1.5; margin: 0 0 12px; color: var(--ink-soft); max-width: 48ch; }

/* Worksheet formats */
.ws-grid-2 {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.ws-grid-3 {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px;
}
.ws-field { display: flex; flex-direction: column; gap: 6px; }
.ws-field--boxed {
  border: 1px solid var(--rule);
  padding: 14px;
  background: #fff;
}
.ws-field--boxed .ws-label { margin-bottom: 8px; }
.ws-field--boxed textarea {
  border: 0; padding: 0;
  min-height: 70px;
}
.ws-field--boxed textarea:focus { border: 0; }

.ws-hint {
  font-size: 12px; color: var(--muted);
  font-style: italic;
  margin: -2px 0 6px;
}

.ws-q {
  border-top: 1px solid var(--rule);
  padding: 16px 0;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
}
.ws-q:last-child { border-bottom: 1px solid var(--rule); }
.ws-q__n {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--cap-2);
  padding-top: 10px;
}
.ws-q__body { display: flex; flex-direction: column; gap: 8px; }
.ws-q__prompt {
  font-size: 15px; font-weight: 500;
  margin: 0;
  line-height: 1.3;
}
.ws-q__hint {
  font-size: 12px; color: var(--muted);
  margin: 0;
}
.ws-q textarea { min-height: 70px; }

.ws-stack { display: flex; flex-direction: column; gap: 16px; }

/* Accent-group: orange section label + boxed field(s) with orange border */
.ws-accent-group { margin: 28px 0; }
.ws-accent-group + .ws-accent-group { margin-top: 32px; }
.ws-accent-group__label {
  font-family: var(--font-sans);
  font-size: 22px; font-weight: 600;
  color: var(--cap-2);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.ws-field--accent {
  border: 1px solid var(--cap-2);
  padding: 16px 18px;
}
.ws-field--accent .ws-accent-heading {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  margin: 0 0 6px;
  line-height: 1.3;
}
.ws-field--accent .ws-accent-subheading {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  margin: 0 0 10px;
  line-height: 1.3;
}
.ws-field--accent .ws-accent-hint {
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
  margin: 0 0 8px;
  line-height: 1.45;
}
.ws-field--accent textarea {
  border: 0; padding: 0;
  min-height: 96px;
  background: transparent;
}
.ws-field--accent textarea:focus { border: 0; outline: 0; }

/* Fill-in-the-blank line(s) with an optional label above the group and a sub-label below each */
.ws-fill-lines { margin: 24px 0; display: flex; flex-direction: column; gap: 20px; }
.ws-rule {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 36px 0 28px;
}.ws-fill-lines__label {
  font-family: var(--font-sans);
  font-size: 15px; font-weight: 600;
  margin: 0 0 4px; color: var(--ink);
  line-height: 1.3;
}
.ws-fill-line {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-items: end;
}
.ws-fill-line__prefix {
  grid-column: 1; grid-row: 1;
  font-family: var(--font-sans);
  font-size: 15px; font-weight: 500;
  color: var(--ink);
  padding-bottom: 6px;
  white-space: nowrap;
}
.ws-fill-line input {
  grid-column: 2; grid-row: 1;
  border: 0;
  border-bottom: 1px solid var(--ink);
  padding: 4px 0 6px;
  font: inherit; font-size: 15px;
  background: transparent;
  width: 100%;
}
.ws-fill-line input:focus { outline: 0; border-bottom-color: var(--cap-2); }
.ws-fill-line__sub {
  grid-column: 2; grid-row: 2;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
  margin-top: 4px;
  text-align: center;
}

/* Accent variant: orange label + orange prefix (Value Prop / Positioning) */
.ws-fill-lines--accent .ws-fill-lines__label {
  color: var(--cap-2);
  font-size: 22px;
  margin-bottom: 18px;
}
.ws-fill-lines--accent .ws-fill-line__prefix {
  font-size: 20px;
  font-weight: 600;
  padding-bottom: 8px;
}
.ws-fill-lines--accent .ws-fill-line__sub {
  text-align: left;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
  color: #999;
}
.ws-fill-lines--accent .ws-fill-line input {
  font-size: 16px;
}
.ws-fill-line__terminal {
  grid-column: 3; grid-row: 1;
  align-self: end;
  padding-bottom: 6px;
  font-size: 18px;
  font-weight: 500;
}
.ws-fill-line--split {
  grid-template-columns: auto 1fr auto 1fr auto;
}
.ws-fill-line--split .ws-fill-line__p1 { grid-column: 1; grid-row: 1; }
.ws-fill-line--split .ws-fill-line__i1 { grid-column: 2; grid-row: 1; }
.ws-fill-line--split .ws-fill-line__p2 { grid-column: 3; grid-row: 1; padding-left: 6px; }
.ws-fill-line--split .ws-fill-line__i2 { grid-column: 4; grid-row: 1; }
.ws-fill-line--split .ws-fill-line__terminal { grid-column: 5; grid-row: 1; }
.ws-fill-line--split .ws-fill-line__s1 { grid-column: 2; grid-row: 2; }
.ws-fill-line--split .ws-fill-line__s2 { grid-column: 4; grid-row: 2; }

.ws-headline {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(24px, 3vw, 36px);
  letter-spacing: -0.01em;
  line-height: 1.1;
  text-align: center;
  padding: 40px 20px;
  border: 1px dashed var(--rule);
  background: #fff;
  color: var(--ink);
  min-height: 120px;
  width: 100%;
  resize: none;
}
.ws-headline:focus {
  outline: none; border-style: solid; border-color: var(--ink);
}

@media (max-width: 900px) {
  .practice-kicker,
  .tools-banner {
    grid-template-columns: 1fr; gap: 20px; padding: 56px 0 32px;
  }
  .tool-grid { grid-template-columns: 1fr; gap: 32px; }
  .pw, .mtm, .arch, .tov, .bs {
    grid-template-columns: 1fr; gap: 24px;
  }

  /* Modal: full-bleed on mobile so tools have room to breathe */
  .tool-modal {
    top: 47px; bottom: 0; left: 0;
    width: 100%;
    transform: translate(0, 16px);
    border: 0;
  }
  .tool-modal.is-on { transform: translate(0, 0); }
  .tool-modal__head {
    padding: 14px 18px;
    grid-template-columns: 1fr auto;
    gap: 12px;
  }
  .tool-modal__title { font-size: 18px; }
  .tool-modal__actions { gap: 10px; }
  .tool-modal__dl { font-size: 12px; }
  .tool-modal__body { padding: 20px; }
  .tool-modal__foot {
    padding: 10px 18px;
    flex-wrap: wrap; gap: 10px;
  }

  /* Worksheet shells collapse to one column */
  .ws--paneled { grid-template-columns: 1fr; }
  .ws__panel { border-right: 0; border-bottom: 1px solid var(--rule); }
  .ws--banner .ws__banner { grid-template-columns: 1fr; }
  .ws__header { grid-template-columns: 1fr; gap: 12px; }

  /* Stacks of columns inside tools */
  .ws-accent-row { grid-template-columns: 1fr; }
  .ws-accent-cell--inline { grid-template-columns: 1fr; }
  .ws-grid-2, .ws-grid-3 { grid-template-columns: 1fr; }

  /* "Position / fill-the-blank" split reflows to stacked rows */
  .ws-fill-line--split {
    grid-template-columns: auto 1fr auto;
  }
  .ws-fill-line--split .ws-fill-line__p1 { grid-column: 1; grid-row: 1; }
  .ws-fill-line--split .ws-fill-line__i1 { grid-column: 2 / span 2; grid-row: 1; }
  .ws-fill-line--split .ws-fill-line__p2 { grid-column: 1; grid-row: 3; padding-left: 0; }
  .ws-fill-line--split .ws-fill-line__i2 { grid-column: 2; grid-row: 3; }
  .ws-fill-line--split .ws-fill-line__terminal { grid-column: 3; grid-row: 3; }
  .ws-fill-line--split .ws-fill-line__s1 { grid-column: 2 / span 2; grid-row: 2; }
  .ws-fill-line--split .ws-fill-line__s2 { grid-column: 2 / span 2; grid-row: 4; }

  /* Tone of voice sliders: label / slider / label stack */
  .tov__slider {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 14px 0;
  }
  .tov__slider .left { text-align: left; }

  /* Mapping the marketplace: panel under stage */
  .mtm { grid-template-columns: 1fr; }

  /* Mini-fill questionnaire rows: keep 2-col (28px number + body) — already fine */
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .prac-kicker {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 64px 0 40px;
  }
  .prac-intro {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 40px 0 24px;
  }
}

/* Print — used when the modal is printed to a PDF. */
@media print {
  body * { visibility: hidden; }
  .tool-modal, .tool-modal * { visibility: visible; }
  .tool-modal {
    position: absolute !important;
    top: 0; left: 0; width: 100%; height: auto;
    transform: none !important;
    border: 0;
    box-shadow: none;
  }
  .tool-modal__head, .tool-modal__foot { display: none; }
  .tool-modal__body { padding: 0; background: #fff; }
  .ws { border: 0; padding: 0; max-width: 100%; }
}
