/* Homepage body (below hero). Do not change .hp-hero rules here. */

#tools-overview,
#evaluation {
  scroll-margin-top: 88px;
}

.hp-rest {
  padding-bottom: 0;
}

/* Section blocks own enter/exit. Dividers are hairlines only. */
#section-homepage-rest > .inner-page {
  padding-top: 0;
  padding-bottom: 0;
}

.hp-rest .section-block {
  margin-bottom: 0;
  padding-top: var(--section-enter);
  padding-bottom: var(--section-exit);
}

.hp-rest .section-header {
  margin-bottom: 32px;
}

.hp-rest .section-header p.eyebrow {
  margin-bottom: 22px;
}

.hp-rest .section-header h3:not(.hp-section-title) {
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #f4f6f8;
}

.hp-rest .section-header p.sub {
  max-width: none;
  font-size: 17px;
  line-height: 1.65;
}

.hp-rest .section-divider {
  margin: 0;
}

.hp-text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
  color: #4a9eff;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.hp-text-link:hover {
  color: #7eb8ff;
}

/* Homepage section 01 — original three-layer composition, scoped */
.hp-layers-home .section-header {
  margin-bottom: 32px;
}

.hp-layers-home .section-header p.eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 22px;
}

.hp-layers-home .section-header h3:not(.hp-section-title) {
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #f4f6f8;
}

.hp-layers-home .section-header h3 strong {
  color: var(--cyan);
  font-weight: 650;
}

.hp-layers-home .section-header p.sub {
  max-width: none;
  font-size: 15px;
  line-height: 1.7;
  margin-top: 24px;
}

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

.hp-layers-home-card {
  position: relative;
  overflow: hidden;
  padding: 28px 24px;
  min-height: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.015));
  border-color: rgba(255,255,255,0.08);
}

.hp-layers-home-card--l3 {
  border-color: rgba(74,158,255,0.5);
  background: linear-gradient(180deg, rgba(74,158,255,0.22), rgba(20,40,72,0.42));
  box-shadow: 0 0 48px rgba(74,158,255,0.16);
}

.hp-layers-home-kicker {
  font-family: var(--space);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(232,232,237,0.38);
  margin-bottom: 18px;
}

.hp-layers-home-kicker--l3 {
  color: var(--cyan);
}

.hp-layers-home-card .nf-stat-value {
  font-size: 20px;
  line-height: 1.25;
}

.hp-layers-home-card--l3 .nf-stat-label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.3;
  color: var(--cyan);
}

.hp-layers-home-card .nf-stat-context {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(232,232,237,0.78);
}

.hp-layers-home-card--l3 .nf-stat-context {
  color: rgba(232,232,237,0.9);
}

.hp-layers-home-banner {
  margin-top: 18px;
  margin-bottom: 0;
  padding: 22px 24px;
  border: 1px solid rgba(74,158,255,0.18);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(74,158,255,0.08), rgba(74,158,255,0.05));
  color: rgba(232,232,237,0.82);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 300;
}

.hp-layers-home-banner strong {
  display: block;
  font-weight: 500;
  color: #e8e8ed;
  margin-bottom: 6px;
}

/* Original How the Fabric works diagram — homepage only */
.hp-fabric-diagram {
  display: grid;
  grid-template-columns: minmax(380px, 560px) minmax(96px, 1fr) minmax(340px, 400px);
  align-items: center;
  width: 100%;
  min-height: 280px;
}

.hp-fabric-source-card {
  box-sizing: border-box;
  padding: 24px;
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 18px;
}

.hp-fabric-group-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.34);
  margin-bottom: 12px;
}

.hp-fabric-grid {
  display: grid;
  gap: 12px;
}

.hp-fabric-grid--agents {
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.hp-fabric-grid--apps {
  grid-template-columns: repeat(5, 1fr);
}

.hp-fabric-tile {
  height: 76px;
  min-width: 0;
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: rgba(255,255,255,.028);
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 12px;
}

.hp-fabric-tile img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.hp-fabric-tile img[src*="chatgpt-icon.svg"],
.hp-fabric-tile img[src*="openai-icon.svg"] {
  width: 32px;
  height: 32px;
}

.hp-fabric-tile span {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255,255,255,.82);
  line-height: 1;
  white-space: nowrap;
}

.hp-fabric-divider {
  height: 1px;
  background: rgba(255,255,255,.08);
  margin: 24px 0;
}

.hp-fabric-connector {
  align-self: stretch;
  position: relative;
  min-height: 220px;
}

.hp-fabric-line {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(50% + 56px);
  height: 2px;
  background: #4a9eff;
}

.hp-fabric-arrow-left,
.hp-fabric-arrow-right {
  position: absolute;
  top: calc(50% + 51px);
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

.hp-fabric-arrow-left {
  left: 0;
  border-right: 9px solid #4a9eff;
}

.hp-fabric-arrow-right {
  right: 0;
  border-left: 9px solid #4a9eff;
}

.hp-fabric-mcp {
  position: absolute;
  left: 50%;
  top: calc(50% + 41px);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 14px;
  box-sizing: border-box;
  background: #07070c;
  border: 1px solid rgba(74,158,255,.4);
  border-radius: 999px;
}

.hp-fabric-mcp-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #4a9eff;
}

.hp-fabric-mcp span {
  font-family: var(--space);
  font-size: 12px;
  letter-spacing: .06em;
  color: #a9eaf0;
}

.hp-fabric-memory-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hp-fabric-memory-row {
  height: 44px;
  box-sizing: border-box;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.065);
  border-radius: 11px;
}

.hp-fabric-memory-row span:first-child {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.4);
}

.hp-fabric-memory-row span:last-child,
.hp-fabric-memory-layer {
  font-family: var(--space);
  font-size: 11px;
  color: rgba(255,255,255,.24);
}

.hp-fabric-memory-row--l2 span:first-child {
  color: rgba(255,255,255,.48);
}

.hp-fabric-memory-row--l2 span:last-child {
  color: rgba(255,255,255,.26);
}

.hp-fabric-memory-main {
  height: 96px;
  box-sizing: border-box;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(74,158,255,.14), rgba(74,158,255,.05));
  border: 1px solid rgba(74,158,255,.42);
  border-radius: 14px;
  box-shadow: 0 20px 70px rgba(74,158,255,.15), inset 0 1px 0 rgba(174,236,241,.22);
}

.hp-fabric-memory-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hp-fabric-memory-brand img {
  width: 34px;
  height: 34px;
  flex: none;
}

.hp-fabric-memory-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hp-fabric-memory-copy strong {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: #eafbfd;
}

.hp-fabric-memory-copy span {
  font-size: 13px;
  color: rgba(234,251,253,.62);
}

.hp-fabric-memory-main .hp-fabric-memory-layer {
  font-size: 12px;
  color: rgba(169,234,240,.8);
}

.hp-fabric-note {
  margin: 22px 0 0;
  max-width: 680px;
  font-size: 16px;
  line-height: 1.65;
  color: rgba(232,232,237,.72);
}

.hp-connect-example {
  max-width: 680px;
  margin: 0 0 28px;
}

.hp-connect-example-q {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.65;
  color: #e8e8ed;
}

.hp-connect-example-a {
  margin: 0;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text2);
}

.hp-id {
  white-space: nowrap;
}

.hp-connect-home .hp-focus-frame {
  margin-top: 0;
}

/* Focused product visual */
.hp-focus-frame {
  margin-top: 8px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(74,158,255,0.12);
  box-shadow: 0 0 80px rgba(74,158,255,0.05), 0 24px 60px rgba(0,0,0,0.5);
  background: #111720;
  pointer-events: none;
}

.hp-focus-mockup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  min-height: 560px;
  height: auto;
  background: #111720;
  font-family: system-ui, -apple-system, sans-serif;
}

.hp-focus-graph {
  background: #0d1117;
  position: relative;
  overflow: hidden;
  min-height: 560px;
}

.hp-focus-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74,158,255,0.04) 0%, transparent 70%);
}

.hp-focus-graph svg {
  display: block;
  width: 100%;
  height: 100%;
}

.hp-focus-record {
  background: #111720;
  border-left: 1px solid rgba(255,255,255,0.06);
  padding: 18px 16px 16px;
  overflow: visible;
  text-align: left;
}

.hp-focus-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.hp-focus-badge-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff6b6b;
}

.hp-focus-badge-label {
  color: rgba(255,255,255,0.4);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hp-focus-title {
  color: #fff;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 12px;
}

.hp-focus-doc,
.hp-focus-dates {
  background: rgba(74,158,255,0.05);
  border: 1px solid rgba(74,158,255,0.14);
  border-radius: 7px;
  padding: 10px 12px;
  margin-bottom: 8px;
}

.hp-focus-doc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.hp-focus-doc-tag {
  background: rgba(74,158,255,0.12);
  border-radius: 4px;
  padding: 3px 7px;
  font-size: 8.5px;
  color: #4a9eff;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.hp-focus-doc-name {
  color: rgba(255,255,255,0.7);
  font-size: 11px;
}

.hp-focus-meta {
  font-size: 9.5px;
  color: rgba(255,255,255,0.3);
  margin-top: 5px;
}

.hp-focus-hash {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
  font-size: 10px;
}

.hp-focus-hash code {
  color: rgba(255,255,255,0.55);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10.5px;
}

.hp-focus-dates {
  font-size: 10.5px;
  margin-bottom: 14px;
}

.hp-focus-date-row {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-bottom: 3px;
}

.hp-focus-date-row strong {
  color: #fff;
}

.hp-focus-label {
  font-size: 11px;
  color: rgba(255,255,255,0.38);
  font-weight: 500;
  margin-bottom: 7px;
}

.hp-focus-prop {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 3px 0;
  font-size: 11px;
}

.hp-focus-prop span:first-child {
  color: rgba(255,255,255,0.35);
}

.hp-focus-prop span:last-child {
  color: #fff;
  font-weight: 600;
  text-align: right;
}

.hp-focus-connect {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  font-weight: 600;
  margin: 14px 0 8px;
}

.hp-focus-card {
  border-radius: 7px;
  padding: 9px 11px;
  margin-bottom: 7px;
}

.hp-focus-card-type {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 3px;
  color: rgba(255,255,255,0.4);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.hp-focus-card-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.hp-focus-card-name {
  color: #fff;
  font-size: 11.5px;
  font-weight: 500;
}

.hp-focus-card-sub {
  color: rgba(255,255,255,0.3);
  font-size: 9.5px;
}

@keyframes hp-focus-pulse {
  0%, 100% { opacity: .5; }
  50% { opacity: 1; }
}

/* Benefits */
.hp-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.hp-benefit {
  padding: 28px 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.015));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
}

.hp-benefit h4 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #e8e8ed;
  margin-bottom: 8px;
  line-height: 1.35;
}

.hp-benefit p {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(232,232,237,.7);
}

.hp-continuity-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
}

.hp-continuity-links .hp-text-link {
  margin-top: 0;
}

#entry-routes .hpj-chooser {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}

#entry-routes .hpj-route {
  min-width: 0;
  padding: 16px 18px;
  text-align: left;
  color: rgba(232,232,237,.72);
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 10px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  cursor: pointer;
  box-shadow: none;
  transform: none;
}

#entry-routes .hpj-route:hover {
  color: #fff;
  border-color: #64bccf;
  background: rgba(255,255,255,.04);
  box-shadow: none;
  filter: none;
  transform: none;
}

#entry-routes .hpj-route[aria-selected="true"] {
  color: #e8e8ed;
  border: 1px solid #4a9eff;
  background: rgba(74,158,255,.16);
  box-shadow: none;
}

#entry-routes .hpj-route[aria-selected="true"]:hover {
  color: #fff;
  border-color: #4a9eff;
  background: rgba(74,158,255,.22);
  box-shadow: none;
  filter: none;
  transform: none;
}

#entry-routes .hpj-route:focus-visible,
#entry-routes .hpj-step:focus-visible {
  outline: 2px solid #4a9eff;
  outline-offset: 3px;
}

#entry-routes .hpj-route-desc {
  max-width: 720px;
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.65;
  color: rgba(232,232,237,.78);
}

#entry-routes .hpj-route-note,
#entry-routes .hpj-example {
  margin: 0 0 28px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(232,232,237,.55);
}

#entry-routes .hpj-example {
  margin-bottom: 16px;
  color: #4a9eff;
  font-weight: 600;
  letter-spacing: 0.01em;
}

#entry-routes .hpj-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(420px, 1.18fr);
  gap: 40px 48px;
  align-items: start;
}

#entry-routes .hpj-steps {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

#entry-routes .hpj-step {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  width: 100%;
  margin: 0;
  padding: 18px 16px;
  text-align: left;
  color: rgba(232,232,237,.62);
  background: transparent;
  border: 0;
  border-left: 2px solid rgba(255,255,255,.1);
  border-radius: 0 12px 12px 0;
  font: inherit;
  cursor: pointer;
}

#entry-routes .hpj-step[aria-selected="true"] {
  color: #e8e8ed;
  border-left-color: #4a9eff;
  background: linear-gradient(90deg, rgba(74,158,255,.1), transparent 80%);
}

#entry-routes .hpj-step-num {
  font-family: var(--space);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  background: linear-gradient(135deg, #4a9eff, #6ed9e2);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

#entry-routes .hpj-step-title {
  display: block;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

#entry-routes .hpj-visual {
  min-width: 0;
  padding-bottom: 28px;
}

#entry-routes .hpj-frame[hidden] {
  display: none;
}

#entry-routes .hpj-frame .hpj-panel {
  width: 100%;
  max-width: 640px;
  min-height: 360px;
}

#entry-routes .hpj-finish {
  margin: 28px 0 0;
}

#entry-routes .hpj-finish .btn-secondary {
  width: auto;
  margin-top: 0;
}

#entry-routes .hpj-services {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

#entry-routes .hpj-service {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  color: rgba(232,232,237,.7);
  font-size: 12px;
  font-weight: 500;
}

#entry-routes .hpj-service img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

#entry-routes .hpj-or {
  margin: 16px 0 0;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(232,232,237,.45);
}

#entry-routes .hpj-ui-kicker {
  margin: 0 0 14px;
  font-size: 13px;
  color: rgba(232,232,237,.55);
}

#entry-routes .hpj-ui-kicker strong {
  color: #e8e8ed;
  font-weight: 600;
}

#entry-routes .hpj-auth {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(74,158,255,.28);
  background: rgba(74,158,255,.08);
  color: #e8e8ed;
  font-size: 13px;
  font-weight: 500;
}

#entry-routes .hpj-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

#entry-routes .hpj-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.06);
  color: rgba(232,232,237,.7);
  font-size: 13px;
}

#entry-routes .hpj-menu-item.is-on {
  border-color: rgba(74,158,255,.45);
  color: #e8e8ed;
}

#entry-routes .hpj-menu-item.hpj-plus {
  align-self: flex-start;
  min-width: 44px;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
}

#memory-layers {
  scroll-margin-top: calc(var(--header-min-height) + 16px);
  margin-top: 48px;
}

#memory-layers > h3 {
  margin: 0 0 12px;
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #f4f6f8;
}

/* Homepage security */
#section-security {
  scroll-margin-top: var(--header-min-height);
}

.hp-security {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.35fr);
  gap: clamp(32px, 4vw, 72px);
  align-items: center;
}

.hp-security .eyebrow {
  margin: 0 0 var(--kicker-gap, 22px);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--cyan);
}

.hp-security .sub {
  margin-top: 20px;
  max-width: 440px;
  font-size: 17px;
  line-height: 1.65;
  color: rgba(232, 232, 237, 0.7);
}

.hp-security-cta {
  margin-top: 32px;
  width: fit-content;
}

.hp-security-cta:focus-visible {
  outline: 3px solid #6ed9e2;
  outline-offset: 5px;
}

.hp-security-badges {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px 12px;
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.hp-security-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 0;
}

.hp-security-ring {
  display: block;
  width: clamp(72px, 6.9vw, 102px);
  height: clamp(72px, 6.9vw, 102px);
  filter: drop-shadow(0 0 14px rgba(59, 126, 244, 0.28));
}

.hp-security-ring svg,
.hp-security-ring img {
  width: 100%;
  height: auto;
  display: block;
}

.hp-security-badge-label {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #f4f6f8;
}

.hp-security-badge-sub {
  margin-top: 4px;
  font-size: 12px;
  color: rgba(232, 232, 237, 0.42);
}

/* Closer */
#section-pricing {
  padding-top: var(--section-enter);
  padding-bottom: var(--section-exit);
}

#section-pricing > .inner-page {
  padding-top: 0;
  padding-bottom: 0;
}

.hp-close {
  text-align: center;
  padding: 0;
}

.hp-close h3 {
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: #f4f6f8;
  margin-bottom: 24px;
}

.hp-close p {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(232,232,237,.7);
  margin: 0 auto 32px;
  max-width: 520px;
}

.hp-close-terms {
  margin: 20px auto 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text2);
  font-weight: 300;
}

.hp-close p.hp-close-terms {
  margin: 20px auto 0;
}

.hp-close-terms a {
  color: inherit;
  text-decoration: none;
}

.hp-close-terms a span {
  color: var(--cyan);
}

/* ── Illustrated journey ── */
.hpj-stage {
  display: grid;
  grid-template-columns: 56px minmax(200px, 400px) minmax(360px, 460px);
  gap: 0 64px;
  align-items: start;
  min-height: 380px;
}

.hpj-number-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 6px;
}

.hpj-num {
  font-family: var(--space);
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(135deg, #4a9eff, #6ed9e2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 16px;
}

.hpj-line {
  width: 2px;
  flex: 1;
  min-height: 80px;
  background: linear-gradient(180deg, #4a9eff 0%, rgba(110,217,226,0.15) 100%);
  border-radius: 1px;
}

.hpj-text {
  padding-top: 4px;
}

.hpj-heading {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #e8e8ed;
  margin-bottom: 10px;
  line-height: 1.25;
}

.hpj-desc {
  font-size: 16px;
  line-height: 1.65;
  color: rgba(232,232,237,.65);
  max-width: 360px;
}

/* Illustration panel */
.hpj-illust {
  position: relative;
  padding-bottom: 20px;
}

.hpj-panel {
  position: relative;
  width: 100%;
  max-width: 440px;
  min-height: 320px;
  background: rgba(17,23,32,0.9);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 28px 24px 48px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.35);
  overflow: visible;
}

.hpj-panel-strokes {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 28px;
}

.hpj-stroke {
  height: 2px;
  border-radius: 1px;
  background: rgba(255,255,255,0.04);
}
.hpj-stroke:first-child { width: 55%; }
.hpj-stroke:last-child { width: 35%; }

.hpj-agents {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.hpj-agent {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
  transition: border-color 0.4s ease;
}

.hpj-agent img {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  object-fit: contain;
}

.hpj-agent span {
  font-size: 13px;
  font-weight: 500;
  color: rgba(232,232,237,0.5);
  transition: color 0.4s ease;
}

.hpj-agent--selected {
  border-color: rgba(74,158,255,0.4);
}
.hpj-agent--selected span {
  color: #e8e8ed;
}

/* Connection strip */
.hpj-strip {
  position: absolute;
  bottom: -20px;
  left: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(10,12,18,0.95);
  border: 1.5px solid rgba(74,158,255,0.3);
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(74,158,255,0.08);
  opacity: 1;
  transform: translateY(0);
}

.hpj-strip-label {
  font-family: var(--space);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(74,158,255,0.6);
  white-space: nowrap;
}

.hpj-strip-url {
  font-family: var(--mono);
  font-size: 12.5px;
  color: rgba(232,232,237,0.8);
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hpj-strip-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(74,158,255,0.08);
  color: #4a9eff;
  flex-shrink: 0;
  cursor: default;
}

/* Pointer */
.hpj-pointer {
  position: absolute;
  width: 18px;
  height: 18px;
  background: rgba(74,158,255,0.9);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(74,158,255,0.15);
  pointer-events: none;
  opacity: 0;
  z-index: 5;
  transition: none;
}

/* Animation states — applied by JS */
.hpj-stage.is-animating .hpj-pointer,
.hpj-frame.is-animating .hpj-pointer { opacity: 1; }
.hpj-stage.is-animating .hpj-agent--selected,
.hpj-frame.is-animating .hpj-agent--selected {
  border-color: #4a9eff;
}
.hpj-stage.is-animating .hpj-strip,
.hpj-frame.is-animating .hpj-strip {
  opacity: 0;
  transform: translateY(8px);
}
.hpj-stage.is-animating.step-strip .hpj-strip,
.hpj-frame.is-animating.step-strip .hpj-strip {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.hpj-stage.is-animating .hpj-icon-check,
.hpj-frame.is-animating .hpj-icon-check {
  color: #4ade80;
}

/* Stage spacing */
.hpj-stage + .hpj-stage {
  margin-top: 24px;
}
.hpj-stage--last .hpj-line {
  display: none;
}

/* Stage 02: Providers grid */
.hpj-providers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

/* Stage 02: Key entry strip */
.hpj-key-strip {
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
}
.hpj-key-label {
  font-family: var(--space);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(74,158,255,0.6);
}
.hpj-key-field {
  font-family: var(--mono);
  font-size: 13px;
  color: rgba(232,232,237,0.5);
  letter-spacing: 2px;
  min-height: 20px;
}
.hpj-key-dots {
  opacity: 0;
  transition: opacity 0.4s ease;
}
.hpj-key-save {
  align-self: flex-end;
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid rgba(74,158,255,0.25);
  background: rgba(74,158,255,0.06);
  color: #4a9eff;
  font-size: 12px;
  font-weight: 500;
  font-family: var(--sans);
  cursor: default;
  transition: all 0.3s ease;
}

/* Stage 03: Upload area */
.hpj-upload-area {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  border: 1.5px dashed rgba(74,158,255,0.15);
  border-radius: 12px;
  margin-bottom: 20px;
  transition: border-color 0.4s ease;
}

/* Stage 03: Document sheet */
.hpj-doc-sheet {
  position: absolute;
  top: 50px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  width: 160px;
  background: rgba(30,35,48,0.95);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 16px 14px;
  z-index: 3;
}
.hpj-doc-corner {
  position: absolute;
  top: 0;
  right: 0;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, transparent 50%, rgba(74,158,255,0.12) 50%);
  border-radius: 0 8px 0 0;
}
.hpj-doc-strokes {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}
.hpj-doc-name {
  font-size: 11px;
  font-weight: 500;
  color: rgba(232,232,237,0.7);
}

/* Stage 03: Status strip */
.hpj-status-strip {
  gap: 8px;
}
.hpj-status-text {
  font-size: 12px;
  color: rgba(232,232,237,0.6);
  transition: color 0.3s ease;
}
.hpj-status-check {
  display: none;
  align-items: center;
}

/* Stage 04: Mini graph panel */
.hpj-graph-panel {
  padding: 20px 20px 48px;
  min-height: 280px;
}
.hpj-mini-graph {
  width: 100%;
  max-width: 380px;
  height: auto;
  display: block;
  margin: 0 auto;
}
.hpj-mini-graph .hpj-node { opacity: 0; transition: opacity 0.5s ease; }
.hpj-mini-graph .hpj-node-tag { opacity: 0; transition: opacity 0.5s ease; }
.hpj-mini-graph .hpj-edge { opacity: 0; transition: opacity 0.5s ease; }
.hpj-mini-graph .hpj-agent-line { opacity: 0; transition: opacity 0.5s ease; }

/* Stage 04: Neural Fabric brand identifier */
.hpj-nf-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.hpj-nf-brand img {
  width: 18px;
  height: 18px;
}
.hpj-nf-brand span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(232,232,237,0.5);
}

/* Stage 04: Badges positioned at SVG line endpoints.
   SVG viewBox 0 0 380 220 renders inside the panel.
   Qora line ends at (40,50), Claude line ends at (340,40).
   Badges use %-based positioning to stay aligned as the panel scales.
   Qora: right edge meets its line. Claude: left edge meets its line. */

.hpj-claude-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: rgba(17,23,32,0.9);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.5s ease;
  white-space: nowrap;
}
.hpj-claude-badge span {
  font-size: 11px;
  color: rgba(232,232,237,0.7);
  font-weight: 500;
}

.hpj-qora-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: rgba(17,23,32,0.9);
  border: 1px solid rgba(74,158,255,0.15);
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.5s ease;
  white-space: nowrap;
}
.hpj-qora-badge img {
  width: 16px;
  height: 16px;
}
.hpj-qora-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.hpj-qora-name {
  font-size: 11px;
  font-weight: 600;
  color: rgba(232,232,237,0.8);
}
.hpj-qora-role {
  font-size: 9px;
  color: rgba(232,232,237,0.5);
}

/* Stage 04: Ready strip */
.hpj-ready-strip {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  gap: 8px;
}

/* Reduced motion — show static completed state */
@media (prefers-reduced-motion: reduce) {
  .hpj-pointer { display: none !important; }
  .hpj-strip, .hpj-key-strip, .hpj-status-strip, .hpj-ready-strip {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .hpj-agent--selected {
    border-color: #4a9eff !important;
    transition: none !important;
  }
  .hpj-doc-sheet {
    opacity: 1 !important;
    transform: translateX(-50%) translateY(0) !important;
    transition: none !important;
  }
  .hpj-key-dots { opacity: 1 !important; }
  .hpj-mini-graph .hpj-node,
  .hpj-mini-graph .hpj-node-tag,
  .hpj-mini-graph .hpj-edge,
  .hpj-mini-graph .hpj-agent-line {
    opacity: 1 !important;
    transition: none !important;
  }
  .hpj-claude-badge, .hpj-qora-badge { opacity: 1 !important; transition: none !important; }
  .hpj-status-check { display: inline-flex !important; }
}

.hpj-frame.is-settled .hpj-strip,
.hpj-frame.is-settled .hpj-ready-strip,
.hpj-frame.is-settled .hpj-key-dots,
.hpj-frame.is-settled .hpj-node,
.hpj-frame.is-settled .hpj-node-tag,
.hpj-frame.is-settled .hpj-edge,
.hpj-frame.is-settled .hpj-agent-line,
.hpj-frame.is-settled .hpj-qora-badge,
.hpj-frame.is-settled .hpj-claude-badge {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}
.hpj-frame.is-settled .hpj-doc-sheet {
  opacity: 1 !important;
  transform: translateX(-50%) translateY(0) !important;
  transition: none !important;
}
.hpj-frame.is-settled .hpj-status-check {
  display: inline-flex !important;
}
.hpj-frame.is-settled .hpj-pointer {
  display: none !important;
}

/* Mobile */
@media (max-width: 980px) {
  .hpj-stage {
    grid-template-columns: 48px 1fr;
    gap: 0 20px;
  }
  .hpj-illust {
    grid-column: 1 / -1;
    margin-top: 28px;
    display: flex;
    justify-content: center;
  }
  .hpj-panel {
    max-width: 400px;
  }
}

@media (max-width: 640px) {
  .hpj-stage {
    grid-template-columns: 40px 1fr;
    gap: 0 14px;
  }
  .hpj-num { font-size: 22px; }
  .hpj-heading { font-size: 22px; }
  .hpj-panel {
    max-width: 100%;
    padding: 22px 18px 44px;
  }
}

/* Orphaned journey card CSS — can be removed */
.hp-journey {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.hp-journey-step {
  padding: 24px 20px;
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px;
}

.hp-journey-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid rgba(74,158,255,.3);
  background: rgba(74,158,255,.06);
  font-family: var(--space);
  font-size: 13px;
  font-weight: 600;
  color: #4a9eff;
  margin-bottom: 14px;
}

.hp-journey-title {
  font-size: 15px;
  font-weight: 600;
  color: #e8e8ed;
  margin-bottom: 6px;
  line-height: 1.35;
}

.hp-journey-desc {
  font-size: 13px;
  line-height: 1.55;
  color: rgba(232,232,237,.6);
}

.hp-eval-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 1180px) {
  .hp-fabric-diagram {
    grid-template-columns: minmax(300px, 1.2fr) minmax(72px, 1fr) minmax(280px, 360px);
  }

  .hp-fabric-tile span {
    white-space: normal;
    text-align: center;
    line-height: 1.15;
  }
}

@media (max-width: 980px) {
  .hp-layers-home-grid {
    grid-template-columns: 1fr;
  }

  .hp-fabric-diagram {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hp-fabric-connector {
    min-height: 72px;
  }

  .hp-fabric-line {
    top: 50%;
    left: 50%;
    right: auto;
    width: 2px;
    height: 72px;
    transform: translate(-50%, -50%);
  }

  .hp-fabric-arrow-left,
  .hp-fabric-arrow-right {
    display: none;
  }

  .hp-fabric-mcp {
    top: 50%;
  }

  .hp-benefits {
    grid-template-columns: 1fr;
  }

  #entry-routes .hpj-chooser,
  #entry-routes .hpj-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .hp-security {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 768px) {
  #entry-routes .hpj-layout,
  #entry-routes .hpj-finish,
  #entry-routes .hpj-route-desc,
  #entry-routes .hpj-route-note,
  #entry-routes .hpj-example {
    padding-right: 72px;
  }

  #entry-routes .hpj-visual {
    padding-bottom: 88px;
  }

  #entry-routes .hpj-strip {
    flex-wrap: wrap;
    row-gap: 4px;
  }

  #entry-routes .hpj-strip-url {
    flex: 1 0 100%;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  .hp-security-badges {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 400px;
    gap: 28px 20px;
  }

  .hp-security-ring {
    width: 84px;
    height: 84px;
  }

  .hp-security-badge-label {
    font-size: 13px;
    line-height: 1.3;
    padding-inline: 6px;
  }

  .hp-eval-grid {
    grid-template-columns: 1fr;
  }

  .hp-focus-mockup {
    grid-template-columns: 1fr;
    height: auto;
    width: 100%;
    transform: none;
  }

  .hp-focus-graph {
    height: 340px;
    min-height: 340px;
  }

  .hp-focus-record {
    border-left: 0;
    border-top: 1px solid rgba(255,255,255,0.06);
    max-height: none;
    overflow: visible;
  }

  .hp-rest .section-header {
    margin-bottom: 32px;
  }
}

@media (max-width: 640px) {
  .hp-fabric-grid--agents,
  .hp-fabric-grid--apps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hp-fabric-tile span {
    white-space: normal;
    text-align: center;
    line-height: 1.2;
  }

  .hp-journey {
    grid-template-columns: 1fr;
  }
}
