/* Observation Window entry surfaces. Bulma supplies the responsive columns. */
.landing-hero,
.pi-home-shell {
  background: var(--pi-bg);
  color: var(--pi-text);
  font-family: var(--pi-font-body, sans-serif);
  padding: clamp(2rem, 4vw, 4rem) 1.5rem 3rem;
}
.landing-hero > .container,
.pi-home-shell > .container { max-width: 1280px; }
.landing-hero .columns.is-variable { --bulma-column-gap: 1.25rem; }
.landing-intro,
.pi-home-intro { position: relative; }
.landing-intro { padding-block: 1rem 2rem; }
.landing-intro .column { min-width: 0; }
.landing-hero .pi-entry-eyebrow,
.pi-home-shell .pi-entry-eyebrow {
  color: var(--pi-brand); font-family: var(--pi-font-body); font-size: 1rem;
  font-weight: 600; letter-spacing: normal; line-height: 1.5;
  text-transform: none; margin-bottom: 1rem;
}
.landing-hero .pi-entry-title,
.pi-home-shell .pi-entry-title {
  color: var(--pi-text); font-family: var(--pi-font-display);
  font-size: clamp(2.5rem, 4.8vw, 4.5rem); font-weight: 600;
  line-height: 1.12; letter-spacing: -.025em; margin: 0 0 1.8rem; text-transform: none;
}
.landing-hero .pi-entry-title .pi-entry-thesis { display: block; color: var(--pi-text); }
.landing-hero .pi-entry-title .pi-entry-thesis--perspective,
.pi-home-shell .pi-entry-title span { color: var(--pi-brand); }
.landing-hero .pi-entry-lead {
  color: var(--pi-muted); max-width: 35rem; font-size: 1.125rem; line-height: 1.65;
}
.landing-hero .landing-entry-actions .button { font-size: 1rem; min-height: 3.1rem; height: auto; white-space: normal; padding: .8rem 1.3rem; }
.landing-hero .landing-primary-cta { background: var(--pi-action); color: var(--pi-brand-contrast); border-color: var(--pi-action); }
.pi-action-arrow { font-size: 1.5rem; font-weight: 400; line-height: 1; margin-left: 2rem; }
.pi-phase-art { margin: 0; }
.pi-phase-frame { position: relative; }
.pi-phase-frame::before,
.pi-phase-frame::after {
  content: ""; pointer-events: none; position: absolute; width: 2.5rem; height: 2.5rem;
  border-color: var(--pi-border-strong); border-style: solid;
}
.pi-phase-frame::before { left: 0; top: 0; border-width: 1px 0 0 1px; }
.pi-phase-frame::after { right: 0; bottom: 0; border-width: 0 1px 1px 0; }
.pi-phase-image { display: block; width: 100%; height: auto; }
.landing-art-column .pi-phase-image { max-height: 430px; object-fit: contain; }
.pi-phase-image--dark { display: none; }
html.dark-mode .pi-phase-image--light,
body.dark-mode .pi-phase-image--light { display: none; }
html.dark-mode .pi-phase-image--dark,
body.dark-mode .pi-phase-image--dark { display: block; }
.pi-phase-art figcaption {
  display: flex; justify-content: space-between; gap: 1rem; margin-top: 1rem;
  color: var(--pi-muted); font-family: var(--pi-font-body); font-size: 1rem; line-height: 1.5;
}
.pi-phase-art figcaption span:first-child { color: var(--pi-brand); letter-spacing: normal; }
.landing-hero [data-landing-artwork="circles"] .pi-phase-frame::before,
.landing-hero [data-landing-artwork="circles"] .pi-phase-frame::after { content: none; }
.landing-hero [data-landing-artwork="circles"] figcaption { border-top: 1px solid var(--pi-border-strong); padding-top: 1rem; }
.landing-hero .pi-research-strip {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .75rem; background: var(--pi-action); color: var(--pi-brand-contrast); margin: 3rem 0 4rem;
  padding: 1.35rem 1.75rem; font-family: var(--pi-font-display);
  font-size: clamp(1.25rem, 2.8vw, 2.7rem); font-weight: 700; line-height: 1.1;
  letter-spacing: -.015em; text-transform: none;
}
.pi-section-heading { margin-bottom: 1.5rem; }
.pi-section-heading .pi-entry-eyebrow { margin: 0; }
.pi-section-meta { color: var(--pi-muted); font-size: 1.125rem; margin-top: .65rem; }
.landing-hero .landing-research-layers { margin: 0 0 4rem; }
.landing-hero .landing-layer { border-bottom: 1px solid var(--pi-border); padding: 1.5rem 0; margin: 0; }
.landing-hero .landing-layer .column { padding-block: 0; min-width: 0; }
.landing-hero .landing-layer .column:first-child { padding-left: 0; }
.landing-hero .landing-layer .column:last-child { padding-right: 0; }
.landing-hero .landing-layer h3 {
  font-family: var(--pi-font-display); font-size: 1.625rem;
  font-weight: 600; letter-spacing: -.015em; line-height: 1.3; color: var(--pi-text);
}
.landing-hero .landing-layer p { font-size: 1.125rem; max-width: 42rem; line-height: 1.65; color: var(--pi-text); }
.landing-hero .landing-entry-evidence { padding-top: 3rem; border-top: 3px solid var(--pi-text); }
.landing-hero .pi-entry-section-title {
  font-family: var(--pi-font-display); font-weight: 600;
  font-size: clamp(1.75rem, 3vw, 2.375rem); line-height: 1.25; letter-spacing: -.015em;
  text-transform: none; color: var(--pi-text); margin-bottom: .75rem;
}
.landing-hero .pi-entry-section-title span { color: var(--pi-brand); }
.landing-hero .pi-entry-note { font-size: 1.125rem; line-height: 1.65; color: var(--pi-muted); }
.landing-hero .landing-data-column,
.landing-hero .landing-signup-column { max-width: none; }
.landing-hero .landing-data-column .sa-panel.sa-landing-crs { margin: 0; width: 100%; max-width: 440px; }
.landing-hero .signup-box { width: 100%; margin: 0; background: var(--pi-surface); border: 1px solid var(--pi-border); border-radius: 2px; box-shadow: none; }
.landing-hero .signup-area { padding: 1.8rem; }
.landing-hero .signup-area .title {
  font-family: var(--pi-font-display); font-size: 2rem;
  letter-spacing: -.015em; font-weight: 700; color: var(--pi-text);
}
.landing-hero .signup-subtitle,
.landing-hero .signup-footnote { color: var(--pi-muted); font-size: 1rem; line-height: 1.65; }
.landing-hero .signup-area .input { background: var(--pi-bg); border-color: var(--pi-border-strong); color: var(--pi-text); }
.landing-hero .signup-area .input::placeholder { color: var(--pi-muted); opacity: 1; }
.landing-hero .signup-area #signup-button { background: var(--pi-action); border-color: var(--pi-action); color: var(--pi-brand-contrast); }
html body.pi-site .landing-hero .signup-area :is(.label, .input, .button, .signup-subtitle, .signup-footnote) { font-size: 1rem; }
/* Public evidence reflows with enlarged reading text; values retain their meaning. */
.landing-hero .sa-panel.sa-landing-crs :is(.sa-landing-driver-stack, .sa-landing-driver-group, .sa-landing-driver-list, .sa-landing-driver-row > div) { min-width: 0; }
.landing-hero .sa-panel.sa-landing-crs .sa-landing-driver-row { grid-template-columns: minmax(0, 1fr) auto; }
.landing-hero .sa-panel.sa-landing-crs .sa-landing-driver-score { flex-wrap: wrap; }
.landing-hero .sa-panel.sa-landing-crs .sa-landing-row-title { font-size: 1rem; line-height: 1.4; overflow-wrap: anywhere; }
.landing-hero .sa-panel.sa-landing-crs :is(.sa-landing-row-meta, .sa-landing-price-meta, .sa-landing-score-meta) { font-size: .875rem; line-height: 1.5; }
.landing-hero .landing-citation-card {
  margin: 4rem 0 0; border: 0; border-top: 1px solid var(--pi-border-strong);
  border-radius: 0; padding: 2.5rem 0 0; box-shadow: none; background: transparent; max-width: none;
}
.landing-hero .landing-citation-card blockquote {
  max-width: 56rem; font-family: var(--pi-font-body); font-style: italic;
  font-size: clamp(1.25rem, 2.2vw, 1.85rem); font-weight: 500; line-height: 1.45; color: var(--pi-text); letter-spacing: -.02em;
}
.landing-hero .landing-citation-card figcaption {
  margin-top: 1.3rem; font-family: var(--pi-font-body); font-size: 1rem;
  color: var(--pi-brand); letter-spacing: normal; text-transform: none;
}
.pi-home-shell .pi-home-intro { margin-bottom: 1.5rem; border-bottom: 1px solid var(--pi-border-strong); padding-bottom: 1.5rem; }
.pi-home-shell .pi-home-intro .pi-entry-title { font-size: clamp(2.75rem, 5vw, 4.75rem); }
.pi-home-shell .pi-entry-home-note { max-width: 35rem; color: var(--pi-muted); font-size: .95rem; line-height: 1.6; }
.pi-home-shell .pi-home-art { max-height: 320px; overflow: hidden; }
.pi-home-shell .pi-home-art .pi-phase-image { max-height: 290px; object-fit: contain; }
.pi-home-shell .pi-home-orientation { max-width: 54rem; color: var(--pi-muted); font-size: .92rem; line-height: 1.8; }
.pi-home-shell .pi-home-orientation p + p { margin-top: .6rem; }
.pi-home-shell .pi-dashboard-entry { margin: .5rem 0 1.5rem; padding: 1.5rem; border-left: 3px solid var(--pi-brand); background: var(--pi-surface); box-shadow: none; }
.pi-home-shell .pi-access-board { margin-bottom: 2rem; }
.pi-home-shell .pi-access-board-heading { padding-bottom: 1.1rem; border-bottom: 1px solid var(--pi-border); margin-bottom: 1.25rem; }
.pi-home-shell .pi-access-tier { padding: 1.25rem; box-shadow: none; }
.pi-home-shell .pi-access-tier--current { border-color: var(--pi-brand); }
.pi-home-shell .pi-access-tier-head { padding-bottom: .75rem; border-bottom: 1px solid var(--pi-border); }
.pi-home-shell .pi-access-tier h2 { font-family: var(--pi-font-display); font-size: 1.2rem; font-weight: 700; }
/* Access explanations are reading content, with status labels kept secondary. */
html body.pi-site .pi-home-shell :is(.pi-access-feature-label, .pi-access-feature-link, .pi-access-feature p) { font-size: 1rem; line-height: 1.5; }
html body.pi-site .pi-home-shell :is(.pi-access-current-label, .pi-access-context, .pi-access-tier-note, .pi-access-state) { font-size: .875rem; line-height: 1.4; }
html body.pi-site .pi-home-shell :is(.pi-access-board-heading, .pi-access-tier-head, .pi-access-feature-main) { display: flex; flex-wrap: wrap; }
html body.pi-site .pi-home-shell :is(.pi-access-context, .pi-access-state) { height: auto; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.pi-home-shell .pi-access-feature { padding-top: .8rem; padding-bottom: .8rem; }
.pi-home-shell .pi-metric-card { height: 100%; text-align: left; background: transparent; border: 0; border-top: 1px solid var(--pi-border); border-radius: 0; box-shadow: none; padding: 1.25rem 0; }
.pi-home-shell .pi-metric-card h2 { font: 600 1.75rem/1.3 var(--pi-font-display); margin-bottom: .85rem; color: var(--pi-text); }
.pi-home-shell .pi-metric-card p { font-size: 1rem; line-height: 1.7; color: var(--pi-muted); }
@media (min-width: 769px) and (max-width: 1023px) {
  .landing-hero .pi-entry-title { font-size: clamp(2.5rem, 5.2vw, 4rem); }
  .pi-phase-art figcaption { flex-direction: column; gap: .2rem; }
}
@media (max-width: 768px) {
  .landing-hero, .pi-home-shell { padding: 2rem 1rem; }
  .landing-hero .columns.is-variable,
  .pi-home-shell .pi-home-intro.columns.is-variable { --bulma-column-gap: .75rem; }
  .landing-hero .pi-entry-title { font-size: 2.5rem; }
  .landing-hero .pi-entry-lead { max-width: 28rem; }
  .landing-art-column { max-width: 460px; margin-inline: auto; }
  .pi-phase-art { padding: .5rem 0 0; }
  .pi-phase-art figcaption { gap: .5rem; }
  .landing-art-column .pi-phase-image { max-height: 300px; }
  .landing-hero .pi-research-strip { margin: 1.5rem 0 2.5rem; padding: 1rem .8rem; gap: .4rem; font-size: clamp(.83rem, 3.6vw, 1.5rem); }
  .landing-hero .landing-research-layers { margin-bottom: 2.5rem; }
  .pi-section-heading { margin-bottom: .8rem; }
  .landing-hero .landing-layer { padding-block: 1.25rem; }
  .landing-hero .landing-layer .column { padding-inline: 0; }
  .landing-hero .landing-layer p { max-width: 28rem; margin-top: .75rem; }
  .landing-hero .landing-entry-evidence { padding-top: 2rem; }
  .landing-hero .landing-signup-column { margin-top: 1.5rem; }
  .landing-hero .landing-data-column .sa-panel.sa-landing-crs { max-width: none; }
  .landing-hero .sa-panel.sa-landing-crs .sa-landing-driver-row { grid-template-columns: minmax(0, 1fr); }
  .landing-hero .signup-area { padding: 1.2rem; }
  .landing-hero .landing-citation-card { margin-top: 2.5rem; padding-top: 1.75rem; }
  .pi-home-shell .pi-home-intro .pi-entry-title { font-size: clamp(2rem, 9.6vw, 4.3rem); }
  .pi-home-shell .pi-home-art { display: none; }
  .pi-home-shell .pi-dashboard-entry { padding: 1.1rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .pi-phase-frame { animation: pi-lens-arrive 700ms ease-out both; }
  @keyframes pi-lens-arrive { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
}

/* A mathematically generated density, reserved for the public identity surface. */
.pi-latent-notation { position: absolute; top: 1.3rem; left: 1.2rem; color: var(--pi-brand); font: italic clamp(1.5rem, 2.5vw, 2.25rem) Georgia, serif; letter-spacing: -.025em; }
.pi-latent-art figcaption { display: block; margin-top: .6rem; }
.pi-latent-art .pi-latent-title { color: var(--pi-brand); letter-spacing: normal; font-size: 1.25rem; font-weight: 600; }
.pi-latent-art .pi-latent-caption { font-family: var(--pi-font-body); font-size: 1.125rem; color: var(--pi-muted); margin: .25rem 0 .6rem; }
.pi-latent-art .pi-latent-scope { font-size: .875rem; line-height: 1.65; color: var(--pi-muted); }
.pi-latent-art .button { min-width: 2.25rem; min-height: 2.25rem; }
.pi-latent-help-modal .modal-card { width: min(42rem, calc(100vw - 2rem)); max-height: calc(100dvh - 3rem); }
.pi-latent-help-modal :is(.modal-card-head, .modal-card-body, .modal-card-foot) { padding: clamp(1rem, 4vw, 1.75rem); }
.pi-latent-help-modal .modal-card-head { gap: .8rem; flex-shrink: 0; }
.pi-latent-help-modal .modal-card-title { min-width: 0; flex: 1 1 0; line-height: 1.35; font-size: 1.1rem; overflow-wrap: anywhere; }
.pi-latent-help-modal .delete { flex-shrink: 0; }
.pi-latent-help-modal .modal-card-body { overflow-y: auto; font-size: 1rem; }
.pi-latent-help-modal .modal-card-foot { flex-shrink: 0; }
.pi-latent-help-modal .content li + li { margin-top: .75rem; }
.pi-latent-help-modal .pi-latent-equation { font: italic clamp(1.2rem, 3.4vw, 1.7rem) Georgia, serif; color: var(--pi-brand); text-align: center; padding: 1.1rem .2rem .55rem; }
.pi-latent-help-modal .pi-latent-equation-key { color: var(--pi-muted); font-size: 1rem; text-align: center; margin-bottom: 1.5rem; }
.pi-latent-help-modal .pi-latent-model-note { border-top: 1px solid var(--pi-border); padding-top: 1rem; color: var(--pi-muted); font-size: .875rem; }
@media (max-width: 768px) {
  .pi-latent-art .pi-phase-frame { max-width: 380px; margin-inline: auto; }
  .pi-latent-art .button { min-width: 44px; min-height: 44px; }
}
