:root {
  --ink: #1b1d1f;
  --muted: #50514f;
  --paper: #fbf8f2;
  --paper-soft: #fdfbf7;
  --paper-cool: #f0f2f1;
  --line: rgba(35, 39, 41, 0.14);
  --blue: #365f86;
  --blue-soft: rgba(224, 232, 237, 0.78);
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --mono: "IBM Plex Mono", monospace;
  --body: "Inter", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

html {
  min-width: 320px;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image: linear-gradient(112deg, #fdfaf5 0%, #faf7f1 46%, #f1f3f3 100%);
  background-attachment: fixed;
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.page-shell {
  display: grid;
  grid-template-rows: 88px minmax(0, 1fr) 56px;
  min-height: 100svh;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: clamp(24px, 4vw, 56px);
}

.site-header {
  border-bottom: 1px solid var(--line);
}

.wordmark {
  font-family: var(--display);
  font-size: 27px;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1;
  text-decoration: none;
}

.wordmark:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 8px;
}

.session-state,
.figure-label,
.site-footer {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.25em;
}

.session-state {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #2f5679;
}

.session-state__signal {
  width: 7px;
  height: 7px;
  background: #d7e0e6;
  box-shadow: 0 0 0 1px rgba(65, 111, 159, 0.12);
  animation: signal 3.4s ease-in-out 1 both;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(480px, 0.96fr);
  min-height: 0;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(48px, 5vw, 72px) clamp(32px, 4.5vw, 68px);
  border-right: 1px solid var(--line);
}

.figure-label {
  margin: 0 0 38px;
  color: #2f587e;
}

h1 {
  max-width: 740px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(56px, 5vw, 76px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 0.9;
  text-wrap: balance;
}

h1 span {
  display: block;
  white-space: nowrap;
}

.lede {
  max-width: 610px;
  margin: 34px 0 0;
  color: var(--muted);
  font-family: var(--display);
  font-size: clamp(21px, 1.75vw, 28px);
  font-weight: 400;
  line-height: 1.38;
}

.status-tags {
  display: flex;
  gap: 16px;
  margin-top: 30px;
}

.status-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 12px;
  color: #2f587e;
  background: var(--blue-soft);
  border: 1px solid transparent;
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: 0.015em;
}

.status-tag--outline {
  background: rgba(253, 251, 247, 0.9);
  border-color: var(--blue);
}

.plan-panel {
  display: grid;
  place-items: center;
  min-width: 0;
  padding: clamp(48px, 4vw, 64px);
  background: linear-gradient(112deg, rgba(253, 250, 245, 0.08), rgba(224, 228, 229, 0.22));
  overflow: hidden;
}

.plan {
  position: relative;
  width: min(100%, 540px);
  aspect-ratio: 1;
  margin: 0;
  border: 1px solid var(--blue);
}

.plan-boundary {
  position: absolute;
  inset: 9% 5.2% 5.2%;
  border: 1px dashed rgba(54, 95, 134, 0.58);
}

.plan-heading {
  position: absolute;
  top: 3.6%;
  left: 5.2%;
  display: flex;
  gap: 10px;
  color: #2f587e;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.plan-heading span + span {
  color: #506c84;
}

.signal-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.signal-lines path {
  fill: none;
  stroke: rgba(54, 95, 134, 0.62);
  stroke-width: 0.42;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 2 6;
  animation: signal-flow 3.4s linear 1 both;
  animation-delay: var(--path-delay);
}

.signal-lines marker path {
  fill: var(--blue);
  stroke: none;
  animation: none;
}

.signal-node {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 7px;
  border: 1px solid rgba(54, 95, 134, 0.74);
  color: #244b70;
  background: rgba(255, 253, 249, 0.98);
  font-family: var(--body);
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.045em;
  line-height: 1;
  transform: translate(-50%, -50%);
  animation: signal-node 3.4s cubic-bezier(0.45, 0, 0.4, 1) 1 both;
  animation-delay: var(--delay);
}

.signal-node::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid transparent;
  pointer-events: none;
}

.signal-node__index {
  color: #3f617e;
  font-family: var(--mono);
  font-size: 7.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.signal-node--buyer { left: 50%; top: 13%; }
.signal-node--pain { left: 19%; top: 29%; }
.signal-node--value { left: 81%; top: 29%; }
.signal-node--proof { left: 15%; top: 57%; }
.signal-node--risk { left: 85%; top: 57%; }
.signal-node--timing { left: 29%; top: 83%; }
.signal-node--momentum { left: 71%; top: 83%; }

.deal-core {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  display: grid;
  width: 44%;
  height: 38%;
  padding: 4% 4% 3%;
  place-items: center;
  border: 1px solid var(--blue);
  color: var(--ink);
  background: rgba(249, 250, 247, 0.98);
  box-shadow: 0 0 0 7px rgba(65, 111, 159, 0.035);
  transform: translate(-50%, -50%);
}

.agent-mark {
  position: relative;
  display: grid;
  width: clamp(25px, 3vw, 34px);
  height: clamp(25px, 3vw, 34px);
  place-items: center;
  color: var(--blue);
}

.agent-mark::before {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px solid rgba(65, 111, 159, 0.2);
  transform: rotate(45deg);
  animation: agent-think 4.9s cubic-bezier(0.45, 0, 0.4, 1) 1 both;
}

.agent-mark svg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.agent-mark path,
.agent-mark circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
  vector-effect: non-scaling-stroke;
}

.agent-mark circle {
  fill: var(--paper-cool);
}

.deal-core::before,
.deal-core::after {
  content: "";
  position: absolute;
  inset: -8px;
  border: 1px solid rgba(65, 111, 159, 0.18);
  animation: core-read 4.9s cubic-bezier(0, 0, 0.4, 1) 1 both;
}

.deal-core::after {
  inset: -16px;
  animation-delay: 0.4s;
}

.deal-core__eyebrow,
.deal-core__status,
.deal-core__output {
  font-family: var(--body);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.065em;
}

.deal-core__eyebrow {
  color: #4d6980;
  white-space: nowrap;
}

.deal-core strong {
  font-family: var(--display);
  font-size: clamp(16px, 1.75vw, 22px);
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.deal-core__status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #2f587e;
  white-space: nowrap;
}

.deal-core__status i {
  width: 4px;
  height: 4px;
  background: var(--blue);
  animation: status-pulse 1.1s ease-in-out 4 both;
}

.deal-core__output {
  position: absolute;
  left: 50%;
  bottom: -23px;
  width: max-content;
  padding: 4px 7px;
  border: 1px solid rgba(65, 111, 159, 0.42);
  color: #2f587e;
  background: var(--paper-cool);
  transform: translateX(-50%);
}

.deal-core__output b {
  font-size: 10px;
  font-weight: 400;
}

.plan-caption {
  position: absolute;
  left: 50%;
  bottom: -13px;
  padding-inline: 8px;
  color: #62696b;
  background: var(--paper-cool);
  font-family: var(--body);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.055em;
  white-space: nowrap;
  transform: translateX(-50%);
}

.plan-caption b {
  font-weight: 600;
}

.registration-mark {
  position: absolute;
  width: 11px;
  height: 11px;
  z-index: 1;
}

.registration-mark::before,
.registration-mark::after {
  content: "";
  position: absolute;
  background: #35526e;
}

.registration-mark::before { left: 5px; width: 1px; height: 11px; }
.registration-mark::after { top: 5px; width: 11px; height: 1px; }
.registration-mark--tl { left: -6px; top: -6px; }
.registration-mark--tr { right: -6px; top: -6px; }
.registration-mark--bl { left: -6px; bottom: -6px; }
.registration-mark--br { right: -6px; bottom: -6px; }

.site-footer {
  border-top: 1px solid var(--line);
  color: #62696b;
  white-space: nowrap;
}

.footer-note {
  color: #686a67;
}

@keyframes signal {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; background: #adc0d3; }
}

@keyframes signal-flow {
  to { stroke-dashoffset: -36; }
}

@keyframes signal-node {
  0%, 76%, 100% {
    border-color: rgba(54, 95, 134, 0.74);
    background: rgba(255, 253, 249, 0.98);
  }
  82% {
    border-color: var(--blue);
    background: #e1e9ed;
  }
}

@keyframes core-read {
  0%, 58% { opacity: 0; transform: scale(0.97); }
  72% { opacity: 0.65; }
  92%, 100% { opacity: 0; transform: scale(1.05); }
}

@keyframes status-pulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}

@keyframes agent-think {
  0%, 35%, 100% { opacity: 0.2; transform: rotate(45deg) scale(0.92); }
  55%, 72% { opacity: 0.72; transform: rotate(45deg) scale(1.03); }
}

@media (max-width: 1100px) {
  .page-shell {
    grid-template-rows: 72px auto 52px;
  }

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

  .hero-copy {
    min-height: calc(100svh - 124px);
    padding-block: 72px;
    border-right: 0;
  }

  .plan-panel {
    min-height: min(100vw, 720px);
    border-top: 1px solid var(--line);
  }

  .plan {
    width: min(78vw, 540px);
  }
}

@media (max-width: 600px) {
  .site-header,
  .site-footer {
    padding-inline: 20px;
  }

  .wordmark {
    font-size: 23px;
  }

  .session-state,
  .site-footer {
    font-size: 8px;
    letter-spacing: 0.18em;
  }

  .hero-copy {
    justify-content: flex-start;
    min-height: 0;
    padding: 62px 20px 70px;
  }

  .figure-label {
    margin-bottom: 30px;
    font-size: 8px;
    letter-spacing: 0.2em;
  }

  h1 {
    font-size: clamp(48px, 15.4vw, 67px);
    line-height: 0.91;
  }

  h1 span {
    white-space: normal;
  }

  .lede {
    margin-top: 28px;
    font-size: 21px;
  }

  .status-tags {
    flex-wrap: wrap;
    gap: 10px;
  }

  .plan-panel {
    min-height: 112vw;
    padding: 54px 34px;
  }

  .plan {
    width: min(80vw, 430px);
  }

  .footer-note {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .session-state__signal,
  .plan *,
  .plan *::before,
  .plan *::after {
    animation: none;
  }

}
