:root {
  --ink: #1d1b18;
  --ink-2: #34312b;
  --muted: #6f6a60;
  --paper: #f7f4ec;
  --paper-2: #eee8da;
  --surface: #fffdf9;
  --surface-soft: #fbfaf5;
  --line: #e5ddcd;
  --sage: #87947f;
  --sage-soft: #f0f4ec;
  --gold: #b5a267;
  --gold-soft: #f8f0dc;
  --blue: #8897a0;
  --blue-soft: #ecf0f2;
  --danger: #9f4d43;
  --radius: 8px;
  --shadow: 0 1px 0 rgba(33, 29, 19, 0.045), 0 6px 14px rgba(33, 29, 19, 0.03);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
  --motion-fast: 150ms;
  --motion-mid: 220ms;
  color-scheme: light;
  font-family: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--paper);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
}

body:before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(23, 22, 19, 0.007) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 22, 19, 0.005) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.16), transparent 58%);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.is-hidden {
  display: none !important;
}

.gate {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 20% 10%, rgba(127, 155, 110, 0.18), transparent 34%),
    radial-gradient(circle at 80% 80%, rgba(211, 173, 79, 0.16), transparent 32%),
    linear-gradient(135deg, #f8f4ea, #ede5d3);
}

.gate__panel {
  width: min(480px, 100%);
  padding: 30px;
  border-radius: 14px;
  background: rgba(255, 253, 248, 0.88);
  box-shadow: 0 28px 70px rgba(33, 29, 19, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(16px);
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--ink);
  color: var(--surface);
  font-weight: 760;
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 740;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.gate h1 {
  margin: 0;
  font-size: clamp(30px, 6vw, 44px);
  line-height: 1.02;
  letter-spacing: 0;
  text-wrap: balance;
  font-weight: 760;
}

.gate__copy {
  margin: 14px 0 24px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
  text-wrap: pretty;
}

.gate__form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 800;
}

.gate__input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.gate input {
  min-height: 48px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 0 14px;
  color: var(--ink);
  outline: none;
}

.gate input:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(127, 155, 110, 0.18);
}

.gate button,
.btn {
  min-height: 38px;
  border: 0;
  border-radius: 7px;
  padding: 0 14px;
  font-weight: 700;
  color: var(--surface);
  background: var(--ink-2);
  transition: transform var(--motion-fast) var(--ease-out-quart), box-shadow var(--motion-fast) var(--ease-out-quart), background var(--motion-fast) var(--ease-out-quart);
}

.gate button:hover,
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 12px rgba(22, 21, 18, 0.09);
}

.gate button:active,
.btn:active {
  transform: scale(0.96);
}

.gate__error {
  min-height: 20px;
  margin: 10px 0 0;
  color: var(--danger);
  font-weight: 700;
}

.app-shell {
  min-height: 100dvh;
}

.layout {
  min-height: 100dvh;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 760;
  font-size: 15px;
}

.brand__mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--sage-soft);
  color: var(--ink);
}

.main {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 22px 0 28px;
  min-width: 0;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 12px;
}

.topbar__title {
  min-width: 0;
}

.topbar__meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar__meta .eyebrow {
  margin: 0;
}

.topbar h1 {
  margin: 4px 0 0;
  max-width: 760px;
  font-size: clamp(26px, 2.35vw, 34px);
  line-height: 1.08;
  letter-spacing: 0;
  text-wrap: balance;
  font-weight: 760;
}

.controls {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  justify-content: flex-end;
  min-width: max-content;
}

.select,
.segmented {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.8);
  color: var(--ink);
  padding: 0 10px;
  font-weight: 700;
  font-size: 13px;
}

.segmented {
  display: flex;
  gap: 4px;
  padding: 4px;
}

.segmented button {
  border: 0;
  border-radius: 6px;
  background: transparent;
  min-height: 30px;
  padding: 0 10px;
  color: var(--muted);
  font-weight: 700;
  transition: background var(--motion-mid) var(--ease-out-quart), color var(--motion-mid) var(--ease-out-quart), transform var(--motion-fast) var(--ease-out-quart);
}

.segmented button:hover {
  transform: translateY(-1px);
  color: var(--ink);
}

.segmented button.is-active {
  background: var(--paper-2);
  color: var(--ink);
}

.surface {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid rgba(231, 223, 207, 0.64);
  box-shadow: var(--shadow);
  animation: none;
}

.muted {
  color: var(--muted);
}

.mono {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-variant-numeric: tabular-nums;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.pill--dark { background: var(--paper-2); color: var(--ink-2); }
.pill--green { background: var(--sage-soft); color: #52604b; }
.pill--gold { background: var(--gold-soft); color: #6d5c2b; }
.pill--blue { background: var(--blue-soft); color: #33485a; }
.pill--soft { background: var(--paper-2); color: #544f45; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(22, 21, 18, 0.09);
}

.btn--full {
  width: 100%;
}

.btn--soft {
  background: var(--paper-2);
  color: var(--ink);
  box-shadow: none;
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  border: 1px solid var(--line);
}

.demo-guide {
  min-height: 32px;
  min-width: max-content;
  padding: 0 10px;
  box-shadow: none;
}

.diagnostic {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 16px;
}

.diagnostic__hero {
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.diagnostic__hero:before,
.lead:before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background:
    linear-gradient(90deg, var(--sage) 0 46%, transparent 46% 49%, var(--gold) 49% 67%, transparent 67% 70%, var(--blue) 70% 100%);
  opacity: 0.42;
}

.diagnostic h2,
.lead h2,
.proof h2 {
  margin: 7px 0 9px;
  font-size: clamp(26px, 2.8vw, 34px);
  line-height: 1.08;
  letter-spacing: 0;
  text-wrap: balance;
  font-weight: 760;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.metric {
  padding: 11px;
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.metric--green { background: rgba(241, 245, 237, 0.72); }

.metric--opportunity {
  grid-column: 1 / -1;
  background: rgba(248, 240, 220, 0.58);
}

.metric__value {
  margin-top: 4px;
  font-size: 28px;
  font-weight: 740;
  line-height: 1;
}

.step-list,
.opportunity-list,
.drawer-sections {
  display: grid;
  gap: 8px;
}

.step {
  padding: 12px;
  border-radius: var(--radius);
  background: var(--surface-soft);
  transition: transform var(--motion-fast) var(--ease-out-quart), background var(--motion-fast) var(--ease-out-quart);
}

.diagnostic__steps {
  margin-top: 14px;
}

.step:hover {
  transform: translateY(-1px);
  background: #fffdf9;
}

.started-panel {
  padding: 20px;
  display: grid;
  gap: 13px;
  align-content: start;
}

.started-panel__cta {
  justify-self: start;
  background: var(--paper-2);
  color: var(--ink);
  box-shadow: none;
}

.started-panel__title {
  margin: -4px 0 0;
  max-width: 340px;
  font-size: 24px;
  line-height: 1.08;
  font-weight: 760;
}

.issue-count {
  font-size: 52px;
  line-height: 1;
  font-weight: 740;
  letter-spacing: -0.02em;
}

.mini-bars {
  display: grid;
  gap: 10px;
}

.mini-bar__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  font-size: 13px;
}

.bar {
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  background: #ece6d8;
}

.bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--sage);
  transform-origin: left;
  animation: grow 540ms var(--ease-out-quint) both;
}

.bar .gold { background: var(--gold); }
.bar .blue { background: var(--blue); }

@keyframes grow {
  from { transform: scaleX(0.2); opacity: 0.4; }
  to { transform: scaleX(1); opacity: 1; }
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: var(--motion-mid);
  animation-timing-function: var(--ease-out-quart);
}

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 16px;
}

.lead {
  position: relative;
  padding: 20px;
  overflow: hidden;
}

.lead .actions {
  margin-top: 14px;
}

.lead__top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.lead__copy {
  max-width: 720px;
  font-size: 14px;
  line-height: 1.5;
}

.lead__pills {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.benchmark {
  min-width: 196px;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--paper);
}

.benchmark__current {
  display: flex;
  align-items: end;
  gap: 8px;
}

.benchmark__bar {
  height: 9px;
  margin: 8px 0;
  border-radius: 999px;
  overflow: hidden;
  background: #e9e2d2;
}

.benchmark__bar span {
  display: block;
  width: 18%;
  height: 100%;
  border-radius: inherit;
  background: var(--sage);
}

.lead-blocks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.lead-block {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 9px;
  align-items: start;
  padding: 11px;
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 16px;
}

.evidence-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.evidence-links button,
.stack-action {
  min-height: 36px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ink-2);
  padding: 0 8px;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(23, 22, 19, 0.18);
  text-underline-offset: 4px;
  transition: background var(--motion-fast) var(--ease-out-quart), transform var(--motion-fast) var(--ease-out-quart), text-decoration-color var(--motion-fast) var(--ease-out-quart);
}

.evidence-links button:hover,
.stack-action:hover {
  background: var(--paper);
  transform: translateY(-1px);
  text-decoration-color: rgba(23, 22, 19, 0.42);
}

.agent-receipt {
  display: grid;
  grid-template-columns: minmax(190px, 0.88fr) minmax(0, 1.12fr);
  gap: 12px;
  align-items: stretch;
  margin-top: 14px;
  padding: 12px;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 0 0, rgba(135, 155, 123, 0.055), transparent 36%),
    var(--surface-soft);
  overflow: hidden;
}

.agent-receipt strong {
  display: block;
}

.receipt-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.receipt-flow div {
  position: relative;
  padding: 11px;
  border-radius: 7px;
  background: rgba(255, 253, 248, 0.82);
  box-shadow: inset 0 0 0 1px rgba(231, 223, 207, 0.74);
}

.receipt-flow div:not(:last-child):after {
  content: "";
  position: absolute;
  right: -8px;
  top: 50%;
  width: 8px;
  height: 2px;
  background: var(--line);
}

.receipt-flow span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 720;
  letter-spacing: 0.065em;
  text-transform: uppercase;
}

.stack {
  margin-top: 14px;
  padding: 15px;
}

.stack__header,
.action-center__header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
}

.opportunity {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(110px, auto);
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  transition: background var(--motion-fast) var(--ease-out-quart), padding var(--motion-fast) var(--ease-out-quart);
}

.opportunity:hover {
  background: rgba(247, 243, 234, 0.58);
  padding-left: 10px;
  padding-right: 10px;
}

.opportunity strong {
  font-size: 15px;
  font-weight: 720;
}

.opportunity__title {
  display: flex;
  gap: 7px;
  align-items: center;
  flex-wrap: wrap;
}

.action-center {
  padding: 15px;
  height: max-content;
  position: sticky;
  top: 16px;
}

.decision {
  padding: 12px;
  border-radius: var(--radius);
  background: rgba(250, 243, 223, 0.52);
}

.decision__title,
.drawer-card__title,
.metric__top,
.trend__title,
.product-title {
  display: flex;
  align-items: center;
  gap: 7px;
}

.metric__top {
  align-items: flex-start;
}

.metric__top .eyebrow {
  margin-bottom: 0;
}

.divider {
  height: 1px;
  background: var(--line);
  margin: 16px 0;
}

.progress-list {
  display: grid;
  gap: 12px;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  font-weight: 720;
  font-size: 12px;
}

.progress-label span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.status-mark {
  position: relative;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--paper-2);
  box-shadow: inset 0 0 0 1px rgba(231, 223, 207, 0.82);
}

.status-mark:before {
  content: "";
  display: block;
}

.status-mark--agent {
  background: var(--sage-soft);
  color: #52604b;
}

.status-mark--agent:before {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--sage);
  box-shadow: 0 0 0 3px rgba(135, 148, 127, 0.16);
}

.status-mark--human {
  background: var(--gold-soft);
  color: #6d5c2b;
}

.status-mark--human:before {
  content: "!";
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
}

.status-mark--proof {
  background: var(--blue-soft);
}

.status-mark--proof:before {
  width: 10px;
  height: 6px;
  border-right: 1px solid var(--blue);
  border-left: 1px solid var(--blue);
  border-radius: 2px;
}

.status-mark--up {
  background: var(--sage-soft);
}

.status-mark--up:before {
  width: 7px;
  height: 7px;
  border-top: 1px solid var(--sage);
  border-right: 1px solid var(--sage);
  transform: translateY(2px) rotate(-45deg);
}

.status-mark--pending {
  background: var(--gold-soft);
}

.status-mark--pending:before {
  width: 10px;
  height: 2px;
  border-radius: 999px;
  background: var(--gold);
}

.panel-title {
  margin: 5px 0 0;
  font-size: 20px;
  line-height: 1.12;
  font-weight: 760;
}

.proof {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 324px;
  gap: 16px;
}

.proof-main,
.proof-side {
  padding: 19px;
}

.proof__intro {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.proof-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.proof-ladder {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.proof-step {
  position: relative;
  min-height: 106px;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--surface-soft);
  overflow: hidden;
}

.proof-step:before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  opacity: 0.48;
  transform-origin: left;
  animation: grow 540ms var(--ease-out-quint) both;
}

.proof-step.is-done:before {
  background: var(--sage);
}

.proof-step.is-live:before {
  width: 68%;
  background: var(--blue);
}

.proof-step.is-pending:before {
  width: 28%;
  background: var(--gold);
}

.proof-step .status-mark {
  position: relative;
  margin-bottom: 10px;
}

.proof-step strong,
.proof-step p {
  position: relative;
}

.proof-step p {
  margin: 6px 0 0;
  color: var(--muted);
}

.week-update__hero {
  display: grid;
  align-content: start;
}

.week-receipt {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.week-receipt div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 9px;
  align-items: center;
  padding: 12px;
  border-radius: var(--radius);
  background: rgba(250, 248, 243, 0.74);
}

.week-receipt .status-mark {
  grid-row: span 2;
}

.week-receipt strong {
  font-size: 21px;
  line-height: 1;
}

.week-receipt span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.signal-panel {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding: 12px;
  border-radius: var(--radius);
  background: rgba(250, 248, 243, 0.72);
}

.signal-panel__header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  padding-bottom: 4px;
}

.signal-panel__header h3 {
  margin: 4px 0 0;
  font-size: 18px;
  line-height: 1.18;
  font-weight: 760;
}

.signal-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid rgba(231, 223, 207, 0.58);
  border-radius: var(--radius);
  background: rgba(255, 253, 249, 0.72);
}

.signal-row--pending {
  background: rgba(249, 244, 232, 0.7);
}

.signal-row__label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.signal-row__label strong,
.signal-row__label p {
  margin: 0;
}

.signal-row__label p {
  margin-top: 3px;
  font-size: 13px;
  line-height: 1.35;
}

.signal-row__values {
  display: inline-grid;
  grid-template-columns: repeat(2, max-content);
  gap: 6px;
  align-items: center;
  justify-content: end;
}

.signal-row__values span {
  display: grid;
  gap: 2px;
  min-width: 66px;
  padding: 7px 9px;
  border-radius: 8px;
  background: var(--paper);
}

.signal-row__values em {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.signal-row__values strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.1;
}

.trend-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.trend {
  display: grid;
  grid-template-columns: 1fr 190px;
  gap: 12px;
  align-items: center;
  padding: 11px;
  border-radius: var(--radius);
  background: var(--surface-soft);
  transition: transform var(--motion-fast) var(--ease-out-quart), background var(--motion-fast) var(--ease-out-quart);
}

.trend:hover {
  transform: translateY(-1px);
  background: #fffdf9;
}

.trend__numbers {
  display: flex;
  justify-content: space-between;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 8px;
}

.trend__title {
  margin-bottom: 3px;
}

.product-strip {
  display: grid;
  gap: 7px;
}

.product-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: var(--radius);
  background: var(--surface-soft);
  transition: transform var(--motion-fast) var(--ease-out-quart), background var(--motion-fast) var(--ease-out-quart);
}

.product-item:hover {
  transform: translateY(-1px);
  background: #fffdf9;
}

.product-thumb {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(127, 155, 110, 0.72), rgba(211, 173, 79, 0.54)),
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.9), transparent 30%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.product-main {
  display: flex;
  gap: 9px;
  align-items: center;
}

.product-title {
  gap: 6px;
}

.product-title .status-mark {
  width: 18px;
  height: 18px;
}

.product-title .status-mark--agent:before {
  width: 6px;
  height: 6px;
  box-shadow: 0 0 0 2px rgba(135, 148, 127, 0.14);
}

.product-title .status-mark--human:before {
  font-size: 10px;
}

.guardrail-title {
  margin: 7px 0;
  font-size: 22px;
  line-height: 1.12;
  font-weight: 760;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(23, 22, 19, 0.14);
  backdrop-filter: blur(2px);
  display: flex;
  justify-content: flex-end;
  padding: 14px;
  z-index: 30;
  animation: fadeIn 160ms ease-out both;
}

.dialog-backdrop {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(23, 22, 19, 0.18);
  backdrop-filter: blur(2px);
  z-index: 35;
  animation: fadeIn 160ms ease-out both;
}

.dialog-backdrop.no-motion {
  animation: none;
}

.drawer {
  position: relative;
  z-index: 1;
  width: min(500px, 100%);
  height: 100%;
  overflow: auto;
  border-radius: 12px;
  background: #fffdf8;
  border: 1px solid rgba(231, 223, 207, 0.9);
  box-shadow: 0 18px 70px rgba(23, 22, 19, 0.24);
  padding: 19px;
  animation: drawerIn var(--motion-mid) var(--ease-out-quint) both;
}

.principles-dialog {
  width: min(680px, 100%);
  max-height: calc(100dvh - 36px);
  overflow: auto;
  padding: 20px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid rgba(231, 223, 207, 0.9);
  box-shadow: 0 18px 70px rgba(23, 22, 19, 0.2);
  animation: dialogIn var(--motion-mid) var(--ease-out-quint) both;
}

.principles-dialog.no-motion {
  animation: none;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes drawerIn {
  from { transform: translateX(24px); opacity: 0.75; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes dialogIn {
  from { transform: translateY(12px); opacity: 0.78; }
  to { transform: translateY(0); opacity: 1; }
}

.drawer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.principles-dialog__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: flex-start;
}

.drawer h2 {
  margin: 6px 0 8px;
  font-size: 27px;
  line-height: 1.08;
  font-weight: 760;
  text-wrap: balance;
}

.principles-dialog h2 {
  margin: 6px 0 8px;
  font-size: 30px;
  line-height: 1.05;
  font-weight: 760;
  text-wrap: balance;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--ink);
  font-size: 20px;
}

.principle-tabs {
  display: inline-flex;
  gap: 4px;
  margin-top: 16px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(247, 244, 236, 0.72);
}

.principle-tabs button {
  min-height: 32px;
  border: 0;
  border-radius: 6px;
  padding: 0 11px;
  background: transparent;
  color: var(--muted);
  font-weight: 760;
}

.principle-tabs button.is-active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.principle-copy {
  margin-top: 18px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.principle-copy h3 {
  max-width: 560px;
  margin: 4px 0 14px;
  font-size: 21px;
  line-height: 1.15;
  font-weight: 760;
  text-wrap: balance;
}

.principle-list {
  display: grid;
  gap: 8px;
}

.principle-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius);
  background: rgba(255, 253, 249, 0.76);
}

.principle-item > span {
  color: var(--sage);
  font-size: 12px;
  font-weight: 760;
}

.principle-item strong,
.principle-item p {
  margin: 0;
}

.principle-item p {
  margin-top: 4px;
  line-height: 1.42;
}

.before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.before-after > div,
.drawer-card {
  padding: 12px;
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.drawer-card--with-icon {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
}

.before-after > div:last-child {
  background: var(--sage-soft);
}

.drawer-products {
  margin-top: 16px;
  display: grid;
  gap: 8px;
}

.drawer-footer {
  margin-top: 18px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.drawer-sections--spaced {
  margin-top: 16px;
}

@media (max-width: 1060px) {
  .home-grid,
  .diagnostic,
  .proof {
    grid-template-columns: 1fr;
  }

  .action-center {
    position: relative;
    top: auto;
  }
}

@media (max-width: 760px) {
  .main {
    width: min(100% - 32px, 1180px);
    padding: 16px 0;
  }

  .topbar,
  .lead__top,
  .stack__header {
    align-items: stretch;
  }

  .topbar {
    grid-template-columns: 1fr;
  }

  .topbar__meta {
    flex-wrap: wrap;
  }

  .controls,
  .segmented {
    justify-content: stretch;
  }

  .controls {
    flex-wrap: wrap;
  }

  .segmented {
    overflow-x: auto;
  }

  .metric-grid,
  .lead-blocks,
  .week-receipt,
  .proof-metrics,
  .proof-ladder,
  .agent-receipt,
  .receipt-flow,
  .signal-row,
  .trend,
  .opportunity,
  .before-after {
    grid-template-columns: 1fr;
  }

  .benchmark {
    min-width: 0;
  }

  .gate__input-row {
    grid-template-columns: 1fr;
  }

  .principles-dialog__top,
  .principle-item {
    grid-template-columns: 1fr;
  }

  .receipt-flow div:not(:last-child):after {
    right: auto;
    left: 18px;
    top: auto;
    bottom: -8px;
    width: 2px;
    height: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none !important;
  }
}
