:root {
  color-scheme: dark;
  --ink: #eff4f1;
  --muted: #9daaa4;
  --paper: #0d1110;
  --surface: #151b19;
  --surface-raised: #1a2220;
  --surface-soft: #111716;
  --line: #2c3834;
  --line-strong: #53645e;
  --teal: #47ccb4;
  --teal-dark: #91f0dc;
  --mint: #17362f;
  --amber: #efb15d;
  --amber-soft: #382715;
  --green: #75d58a;
  --green-soft: #172f20;
  --coral: #ef8876;
  --coral-soft: #3b201c;
  --blue: #82b9e7;
  --blue-soft: #182a3a;
  --shadow: 0 20px 52px rgba(0, 0, 0, 0.34);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

svg {
  width: 1.1rem;
  height: 1.1rem;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  flex: 0 0 auto;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 72px;
  padding: 0.8rem 2rem;
  border-bottom: 1px solid var(--line);
  background: rgba(13, 17, 16, 0.92);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 190px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--teal);
  color: #06110f;
  font-size: 0.78rem;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
  letter-spacing: 0;
}

.brand strong {
  line-height: 1.1;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-left: auto;
  color: var(--muted);
  font-size: 0.9rem;
}

.top-nav a {
  padding: 0.45rem 0.35rem;
  border-bottom: 2px solid transparent;
}

.top-nav a:hover {
  color: var(--ink);
  border-bottom-color: var(--teal);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.primary-button,
.ghost-button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 42px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
}

.primary-button {
  padding: 0.6rem 0.9rem;
  background: var(--teal);
  color: #06110f;
  font-weight: 700;
}

.primary-button:hover {
  background: #6fe0cb;
}

.ghost-button {
  padding: 0.6rem 0.85rem;
  background: var(--surface);
  color: var(--teal-dark);
  border-color: var(--line);
  font-weight: 700;
}

.ghost-button:hover {
  border-color: var(--teal);
}

.icon-button {
  width: 42px;
  padding: 0;
  background: var(--surface);
  color: var(--teal-dark);
  border-color: var(--line);
}

.icon-button:hover {
  border-color: var(--teal);
  background: var(--mint);
}

main {
  overflow: hidden;
}

.studio-section,
.tools-section,
.tutorials-section,
.documents-section,
.templates-section,
.seo-section,
.page-hero,
.page-section {
  padding: 2.5rem 2rem;
}

.studio-intro,
.workflow-console,
.section-heading,
.tool-grid,
.finder-layout,
.example-library,
.tutorial-grid,
.document-grid,
.template-list,
.page-shell,
.guide-grid,
.site-footer {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.studio-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.intro-copy {
  display: flex;
  min-height: 420px;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 0;
}

.eyebrow,
.panel-kicker {
  margin: 0 0 0.55rem;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 1rem;
  max-width: 780px;
  font-size: 3rem;
  line-height: 1.06;
  letter-spacing: 0;
}

.intro-copy p:not(.eyebrow) {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.08rem;
}

.intro-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.2rem;
}

.intro-stats span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 40px;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
}

.intro-stats strong {
  color: var(--ink);
  font-size: 1.15rem;
}

.workflow-map {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 1rem;
  min-height: 420px;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.map-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  min-height: 48px;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 0.88rem;
}

.map-toolbar div {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
}

.system-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(47, 125, 70, 0.14);
}

.map-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.36fr 0.82fr;
  gap: 0.8rem;
  min-height: 286px;
}

.map-lane {
  display: grid;
  align-content: start;
  gap: 0.65rem;
  min-width: 0;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.map-lane p {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.map-item,
.map-steps span {
  min-height: 46px;
  padding: 0.65rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-raised);
  color: var(--ink);
  font-size: 0.91rem;
  font-weight: 750;
}

.map-item {
  display: flex;
  align-items: center;
  border-left: 4px solid var(--blue);
}

.map-item.strong {
  border-left-color: var(--teal);
  background: rgba(71, 204, 180, 0.12);
}

.map-item.verified {
  border-left-color: var(--green);
}

.map-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.map-steps span {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.map-steps span::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--line-strong);
}

.map-steps span:nth-child(4),
.map-steps span:nth-child(5) {
  border-color: rgba(239, 177, 93, 0.5);
  background: var(--amber-soft);
}

.map-steps span:nth-child(4)::after,
.map-steps span:nth-child(5)::after {
  background: var(--amber);
}

.map-steps span:nth-child(n + 6) {
  border-color: rgba(117, 213, 138, 0.48);
  background: var(--green-soft);
}

.map-steps span:nth-child(n + 6)::after {
  background: var(--green);
}

.assurance-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

.assurance-strip span {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 42px;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--teal-dark);
  font-size: 0.88rem;
  font-weight: 800;
}

.workflow-console {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
  align-items: start;
  scroll-margin-top: 92px;
}

.control-panel,
.demo-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
}

.control-panel {
  position: sticky;
  top: 92px;
  overflow: hidden;
}

.panel-block {
  padding: 1.15rem;
  border-bottom: 1px solid var(--line);
}

.panel-block:last-child {
  border-bottom: 0;
}

.panel-block h2,
.demo-heading h2,
.section-heading h2 {
  margin-bottom: 0.8rem;
  font-size: 1.35rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.segmented-control,
.role-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
  padding: 0.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.flow-picker {
  display: grid;
  gap: 0.55rem;
}

.flow-option {
  display: grid;
  gap: 0.18rem;
  min-height: 68px;
  padding: 0.7rem 0.75rem;
  border: 1px solid var(--line);
  border-left: 4px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface-raised);
  color: var(--muted);
  text-align: left;
  cursor: pointer;
}

.flow-option strong {
  color: var(--ink);
  font-size: 0.95rem;
}

.flow-option small {
  font-size: 0.8rem;
}

.flow-option.active {
  border-color: var(--teal);
  border-left-color: var(--teal);
  background: rgba(71, 204, 180, 0.13);
  color: var(--teal-dark);
}

.segment,
.role-tab {
  min-height: 38px;
  padding: 0.45rem 0.35rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
}

.segment.active,
.role-tab.active {
  background: var(--surface-raised);
  color: var(--teal-dark);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.32);
}

.risk-summary {
  min-height: 72px;
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.flow-summary {
  min-height: 88px;
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.role-list {
  display: grid;
  gap: 0.75rem;
  min-height: 178px;
  padding: 0;
  margin: 1rem 0 0;
  list-style: none;
}

.role-list li {
  display: flex;
  gap: 0.55rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.role-list svg {
  color: var(--green);
  margin-top: 0.15rem;
}

.artifact-stack {
  display: grid;
  gap: 0.6rem;
}

.artifact-stack a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 44px;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font-weight: 700;
}

.artifact-stack a:hover {
  border-color: var(--teal);
  background: var(--mint);
}

.demo-panel {
  min-width: 0;
  padding: 1.15rem;
}

.demo-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.demo-panel.running {
  border-color: rgba(239, 177, 93, 0.55);
  box-shadow: 0 0 0 4px rgba(239, 177, 93, 0.16), 0 14px 32px rgba(0, 0, 0, 0.28);
}

.demo-heading p:not(.panel-kicker) {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
}

.demo-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex: 0 0 auto;
}

.demo-status {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  max-width: 150px;
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.demo-panel.running .demo-status {
  border-color: rgba(239, 177, 93, 0.5);
  background: var(--amber-soft);
  color: var(--amber);
}

.phase-rail {
  display: grid;
  grid-template-columns: repeat(8, minmax(82px, 1fr));
  gap: 0.5rem;
  padding: 1rem 0;
  overflow-x: auto;
}

.phase-node {
  display: grid;
  gap: 0.25rem;
  align-content: start;
  min-height: 108px;
  min-width: 82px;
  padding: 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-raised);
  color: var(--muted);
  text-align: left;
  cursor: pointer;
}

.phase-node span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.phase-node strong {
  color: var(--ink);
  font-size: 0.94rem;
}

.phase-node small {
  font-size: 0.74rem;
  text-transform: capitalize;
}

.phase-node.complete {
  border-color: rgba(117, 213, 138, 0.5);
  background: var(--green-soft);
}

.phase-node.complete span {
  background: var(--green);
  color: #06110f;
}

.phase-node.active {
  border-color: rgba(239, 177, 93, 0.5);
  background: var(--amber-soft);
}

.phase-node.active span {
  background: var(--amber);
  color: #16100a;
}

.phase-node[aria-pressed="true"] {
  outline: 3px solid rgba(19, 111, 99, 0.18);
  border-color: var(--teal);
}

.phase-detail {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.phase-detail-head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.phase-number {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--teal);
  color: #06110f;
  font-weight: 800;
}

.phase-detail h3 {
  margin-bottom: 0;
  font-size: 1.5rem;
  line-height: 1.2;
}

.phase-detail > p {
  color: var(--muted);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.detail-grid h4 {
  margin-bottom: 0.45rem;
  font-size: 0.9rem;
}

.detail-grid ul {
  display: grid;
  gap: 0.45rem;
  padding-left: 1.1rem;
  margin: 0;
  color: var(--muted);
}

.evidence-area {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 1rem;
  margin-top: 1rem;
}

.evidence-table-wrap,
.packet-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.evidence-table-wrap {
  overflow-x: auto;
}

.evidence-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.evidence-table caption {
  padding: 0.85rem 1rem;
  color: var(--ink);
  text-align: left;
  font-weight: 800;
}

.evidence-table th,
.evidence-table td {
  padding: 0.7rem 1rem;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.evidence-table th {
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 0.78rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
  font-size: 0.78rem;
  font-weight: 800;
}

.status-pill.complete {
  background: var(--green-soft);
  color: var(--green);
}

.status-pill.active {
  background: var(--amber-soft);
  color: var(--amber);
}

.status-pill.pending {
  background: var(--surface-soft);
  color: var(--muted);
}

.packet-panel {
  display: flex;
  min-height: 430px;
  flex-direction: column;
}

.packet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
}

.packet-head h3 {
  margin: 0;
  font-size: 1rem;
}

.packet-actions {
  display: flex;
  gap: 0.4rem;
}

.packet-panel pre {
  flex: 1;
  min-height: 0;
  margin: 0;
  padding: 1rem;
  overflow: auto;
  background: #080d0c;
  color: #d9f2e7;
  font: 0.82rem/1.55 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  white-space: pre-wrap;
  word-break: break-word;
}

.packet-panel pre.copied {
  outline: 4px solid rgba(47, 125, 70, 0.26);
  outline-offset: -4px;
}

.tutorials-section {
  background: #0f1514;
  border-top: 1px solid var(--line);
}

.tutorial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.tutorial-card {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}

.tutorial-card iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #101816;
}

.tutorial-card span,
.tutorial-card small {
  display: block;
}

.tutorial-card span {
  color: var(--ink);
  font-weight: 800;
}

.tutorial-card small {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.documents-section {
  background: #101615;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  margin-bottom: 1.2rem;
}

.section-heading h2 {
  margin-bottom: 0.45rem;
  font-size: 2rem;
}

.section-heading p:not(.eyebrow) {
  max-width: 720px;
  color: var(--muted);
}

.page-hero {
  border-bottom: 1px solid var(--line);
}

.page-shell {
  display: grid;
  gap: 1.2rem;
}

.page-shell h1 {
  max-width: 900px;
}

.page-shell > p {
  max-width: 780px;
  color: var(--muted);
  font-size: 1.08rem;
}

.seo-section {
  background: #101615;
  border-top: 1px solid var(--line);
}

.tools-section {
  background: #101615;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.tool-card {
  display: grid;
  align-content: start;
  gap: 0.55rem;
  min-height: 170px;
  padding: 1rem;
  border: 1px solid var(--line);
  border-left: 5px solid var(--teal);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.24);
}

.tool-card:nth-child(2) {
  border-left-color: var(--blue);
}

.tool-card:nth-child(3) {
  border-left-color: var(--amber);
}

.tool-card:nth-child(4) {
  border-left-color: var(--coral);
}

.tool-card:hover {
  border-color: var(--teal);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.34);
}

.tool-card span {
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 800;
}

.tool-card small {
  color: var(--muted);
  font-size: 0.92rem;
}

.finder-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(360px, 0.82fr);
  gap: 1rem;
  align-items: start;
}

.tool-panel,
.result-panel,
.artifact-card,
.example-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

.tool-panel {
  overflow: hidden;
}

.choice-section {
  padding: 1rem;
  border-bottom: 1px solid var(--line);
}

.choice-section:last-child {
  border-bottom: 0;
}

.choice-section h2,
.result-panel h2,
.artifact-card h2,
.example-card h2 {
  margin-bottom: 0.65rem;
  font-size: 1.25rem;
  line-height: 1.2;
}

.muted-copy,
.choice-section p:not(.panel-kicker),
.result-panel p,
.artifact-card p,
.example-card p {
  color: var(--muted);
}

.choice-grid {
  display: grid;
  gap: 0.65rem;
}

.choice-grid.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.choice-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.18rem 0.6rem;
  min-height: 56px;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  cursor: pointer;
}

.choice-option input {
  margin-top: 0.18rem;
  accent-color: var(--teal);
}

.choice-option span {
  color: var(--ink);
  font-weight: 800;
}

.choice-option small {
  grid-column: 2;
  color: var(--muted);
  font-size: 0.86rem;
}

.choice-option:has(input:checked) {
  border-color: rgba(71, 204, 180, 0.65);
  background: rgba(71, 204, 180, 0.12);
}

.result-panel {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
}

.score-strip {
  padding: 0.8rem;
  border: 1px solid rgba(239, 177, 93, 0.45);
  border-radius: var(--radius);
  background: var(--amber-soft);
  color: var(--amber);
  font-size: 0.9rem;
  font-weight: 800;
}

.result-panel ol {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding-left: 1.25rem;
  color: var(--muted);
}

.copy-block {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #080d0c;
}

.copy-block-head,
.artifact-card-head,
.artifact-group-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.copy-block-head {
  align-items: center;
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
}

.copy-block-head h3,
.ledger-panel h3,
.comparison-grid h3 {
  margin: 0;
  font-size: 0.98rem;
}

.copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0.45rem 0.72rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-raised);
  color: var(--teal-dark);
  cursor: pointer;
  font-weight: 800;
}

.copy-button:hover,
.copy-button.copied {
  border-color: var(--teal);
  background: var(--mint);
}

.copy-block pre,
.artifact-code,
.comparison-grid pre,
.ledger-panel pre {
  margin: 0;
  overflow: auto;
  background: #080d0c;
  color: #d9f2e7;
  font: 0.82rem/1.55 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  white-space: pre-wrap;
  word-break: break-word;
}

.copy-block pre {
  max-height: 430px;
  padding: 0.9rem;
}

.assessment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 1rem;
}

.assessment-item {
  display: grid;
  gap: 0.45rem;
  min-width: 0;
  margin: 0;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.assessment-item legend {
  padding: 0 0.2rem;
  color: var(--ink);
  font-weight: 800;
}

.assessment-item label {
  display: flex;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.assessment-item input {
  accent-color: var(--teal);
}

.score-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.85rem;
  align-items: center;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.score-number {
  display: grid;
  place-items: center;
  width: 104px;
  min-height: 104px;
  border: 1px solid rgba(71, 204, 180, 0.52);
  border-radius: var(--radius);
  background: var(--mint);
  color: var(--teal-dark);
}

.score-number strong,
.score-number span {
  display: block;
}

.score-number strong {
  color: var(--ink);
  font-size: 1.45rem;
}

.score-number span {
  font-weight: 800;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.chip-list span {
  min-height: 34px;
  padding: 0.42rem 0.68rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--teal-dark);
  font-size: 0.86rem;
  font-weight: 800;
}

.artifact-group {
  display: grid;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}

.artifact-group-title {
  align-items: center;
}

.artifact-group-title h2 {
  margin: 0;
  font-size: 1.35rem;
}

.artifact-group-title span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.artifact-library {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.artifact-card {
  display: grid;
  min-width: 0;
  overflow: hidden;
}

.artifact-card-head {
  padding: 1rem;
  border-bottom: 1px solid var(--line);
}

.artifact-card-head p:last-child {
  margin-bottom: 0;
}

.artifact-code {
  max-height: 360px;
  padding: 1rem;
}

.example-library {
  display: grid;
  gap: 1rem;
}

.example-card {
  display: grid;
  gap: 1rem;
  min-width: 0;
  padding: 1rem;
}

.comparison-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: 1rem;
}

.comparison-grid > div,
.ledger-panel {
  min-width: 0;
}

.comparison-grid h3,
.ledger-panel h3 {
  margin-bottom: 0.45rem;
}

.comparison-grid pre,
.ledger-panel pre {
  max-height: 260px;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.ledger-panel {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.guide-card,
.setup-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

.guide-card,
.setup-panel {
  padding: 1rem;
}

.guide-card h2,
.setup-panel h2 {
  margin-bottom: 0.6rem;
  font-size: 1.2rem;
}

.guide-card ol,
.setup-panel ol,
.setup-panel ul {
  display: grid;
  gap: 0.55rem;
  padding-left: 1.25rem;
  margin: 0.7rem 0 0;
  color: var(--muted);
}

.guide-card code,
.setup-panel code {
  color: var(--teal-dark);
}

.guide-card pre,
.setup-panel pre {
  overflow: auto;
  margin: 0.85rem 0 0;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #080d0c;
  color: #d9f2e7;
  font: 0.82rem/1.55 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 1rem;
  width: min(1180px, 100%);
  margin: 0 auto;
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  color: var(--ink);
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-soft);
  color: var(--ink);
  font: inherit;
  padding: 0.7rem 0.75rem;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 3px solid rgba(71, 204, 180, 0.18);
  border-color: var(--teal);
}

.hidden-field {
  display: none;
}

.form-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.setup-panel p {
  color: var(--muted);
}

.source-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.source-list a {
  min-height: 34px;
  padding: 0.4rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--teal-dark);
  font-size: 0.85rem;
  font-weight: 800;
}

.document-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.document-card {
  display: grid;
  align-content: start;
  gap: 0.65rem;
  min-height: 172px;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.document-card:hover {
  border-color: var(--teal);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.32);
}

.document-card svg {
  width: 1.4rem;
  height: 1.4rem;
  color: var(--teal);
}

.document-card span {
  font-weight: 800;
}

.document-card small {
  color: var(--muted);
  font-size: 0.88rem;
}

.template-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.8rem;
}

.template-list a {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-weight: 800;
}

.template-list a:nth-child(1) {
  border-left: 5px solid var(--teal);
}

.template-list a:nth-child(2) {
  border-left: 5px solid var(--blue);
}

.template-list a:nth-child(3) {
  border-left: 5px solid var(--amber);
}

.template-list a:nth-child(4) {
  border-left: 5px solid var(--coral);
}

.template-list a:nth-child(5) {
  border-left: 5px solid var(--green);
}

.template-list a:nth-child(6) {
  border-left: 5px solid var(--line-strong);
}

.compact-links {
  margin-top: 1rem;
}

.template-list a:hover {
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.32);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.6rem 2rem 2.2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer span:first-child {
  color: var(--ink);
  font-weight: 800;
}

@media (max-width: 1100px) {
  .studio-intro,
  .workflow-console,
  .finder-layout {
    grid-template-columns: 1fr;
  }

  .result-panel {
    position: static;
  }

  .intro-copy,
  .workflow-map {
    min-height: auto;
  }

  .workflow-map {
    min-height: 390px;
  }

  .control-panel {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .panel-block {
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .panel-block:last-child {
    border-right: 0;
  }

  .evidence-area,
  .tool-grid,
  .artifact-library,
  .tutorial-grid,
  .document-grid,
  .guide-grid,
  .contact-grid,
  .template-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-header {
    position: static;
    flex-wrap: wrap;
    padding: 0.8rem 1rem;
  }

  .brand {
    min-width: 0;
  }

  .top-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-left: 0;
  }

  .header-actions {
    margin-left: auto;
  }

  .ghost-button {
    width: 42px;
    padding: 0;
    font-size: 0;
  }

  .studio-section,
  .tools-section,
  .tutorials-section,
  .documents-section,
  .templates-section,
  .seo-section,
  .page-hero,
  .page-section {
    padding: 1.5rem 1rem;
  }

  h1 {
    font-size: 2.15rem;
    line-height: 1.12;
  }

  .intro-copy {
    padding: 0.5rem 0;
  }

  .control-panel,
  .map-grid,
  .detail-grid,
  .evidence-area,
  .tool-grid,
  .choice-grid.compact,
  .assessment-grid,
  .artifact-library,
  .comparison-grid,
  .tutorial-grid,
  .document-grid,
  .guide-grid,
  .contact-grid,
  .template-list {
    grid-template-columns: 1fr;
  }

  .panel-block {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .panel-block:last-child {
    border-bottom: 0;
  }

  .phase-rail {
    grid-template-columns: repeat(4, minmax(110px, 1fr));
  }

  .phase-node {
    min-width: 110px;
  }

  .assurance-strip {
    grid-template-columns: 1fr;
  }

  .demo-heading {
    align-items: center;
  }

  .demo-actions {
    align-items: flex-end;
    flex-direction: column-reverse;
  }

  .demo-status {
    max-width: 126px;
  }

  .site-footer {
    display: grid;
    padding-right: 1rem;
    padding-left: 1rem;
  }
}

@media (max-width: 520px) {
  .site-header .primary-button:has(svg) {
    width: 42px;
    padding: 0;
    font-size: 0;
  }

  .intro-stats {
    display: grid;
  }

  .phase-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow-x: visible;
  }

  .phase-node {
    min-width: 0;
  }

  .segmented-control,
  .role-tabs {
    grid-template-columns: 1fr;
  }
}
