/* =============================================================================
   havlo-composition.css
   Canonical CSS spine for the 9 Composition System primitives.
   Canon: docs/HAVLO_COMPOSITION_SYSTEM.md
   Master plan: §29
   Loaded after havlo-canonical.css + havlo-consumer.css so it inherits
   the canonical type stack, color tokens, and motion easings.
   ============================================================================= */

/* Shared primitive root - every primitive inherits these defaults. */
.hp-comp {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--hc-ink, #1c1c19);
}

/* -----------------------------------------------------------------------------
   #1 StateStrip — top, always present, one-line "where am I?"
   ----------------------------------------------------------------------------- */
.hp-comp--state-strip {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(28, 28, 25, 0.06);
}
.hp-comp-state-strip__inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: 76rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.hp-comp-state-strip__summary {
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--hc-carbon, #2a2a25);
}
.hp-comp-state-strip__posture {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 999px;
  background: rgba(163, 100, 66, 0.08);
  color: var(--hv-copper, #a36442);
}
.hp-comp-state-strip__posture--approval_required {
  background: rgba(214, 158, 46, 0.1);
  color: #92651b;
}
.hp-comp-state-strip__posture--off {
  background: rgba(28, 28, 25, 0.06);
  color: var(--hc-ink-2, #4a4a45);
}

/* -----------------------------------------------------------------------------
   #2 ActionCard (Primary) — center, dominant, exactly 1
   ----------------------------------------------------------------------------- */
.hp-comp--action-primary {
  margin: 2.5rem 0;
}
.hp-comp-action-primary__inner {
  max-width: 36rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
}
.hp-comp-action-primary__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 1.125rem 2.25rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  background: var(--hv-copper, #a36442);
  color: var(--hv-on-primary, #fcf9f4);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 200ms cubic-bezier(.4, 0, .2, 1),
              transform 200ms cubic-bezier(.4, 0, .2, 1);
}
.hp-comp-action-primary__cta:hover {
  background: var(--hv-copper-light, #dba070);
  transform: translateY(-1px);
}
.hp-comp-action-primary__cta--await {
  background: rgba(28, 28, 25, 0.08);
  color: var(--hc-ink-2, #4a4a45);
  cursor: default;
  position: relative;
}
.hp-comp-action-primary__pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hv-copper, #a36442);
  animation: hpCompPulse 2s cubic-bezier(.4, 0, .6, 1) infinite;
}
@keyframes hpCompPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.2); }
}
.hp-comp-action-primary__causality {
  margin-top: 1.25rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--hc-ink-2, #4a4a45);
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}
.hp-comp-action-primary__arrow {
  display: inline-block;
  transition: transform 200ms cubic-bezier(.4, 0, .2, 1);
}
.hp-comp-action-primary__cta:hover .hp-comp-action-primary__arrow {
  transform: translateX(3px);
}

/* -----------------------------------------------------------------------------
   #3 ActionCard (Secondary) — beneath/aside, max 2
   ----------------------------------------------------------------------------- */
.hp-comp--action-secondary {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 1rem auto 2.5rem;
  max-width: 36rem;
  padding: 0 1.5rem;
}
.hp-comp-action-secondary__item {
  display: inline-flex;
  align-items: center;
  padding: 0.625rem 1.25rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  background: transparent;
  color: var(--hc-ink-2, #4a4a45);
  border: 1px solid rgba(28, 28, 25, 0.12);
  border-radius: 4px;
  cursor: pointer;
  transition: border-color 200ms cubic-bezier(.4, 0, .2, 1),
              color 200ms cubic-bezier(.4, 0, .2, 1);
}
.hp-comp-action-secondary__item:hover {
  border-color: var(--hv-copper, #a36442);
  color: var(--hv-copper, #a36442);
}

/* -----------------------------------------------------------------------------
   #4 CausalityLine — standalone (when not inline in Primary)
   ----------------------------------------------------------------------------- */
.hp-comp--causality {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--hc-ink-2, #4a4a45);
  max-width: 36rem;
  margin: 0.75rem auto;
  text-align: center;
  padding: 0 1.5rem;
}

/* -----------------------------------------------------------------------------
   #5 TimelineRail — past → now → next
   ----------------------------------------------------------------------------- */
.hp-comp--timeline {
  list-style: none;
  margin: 2.5rem auto;
  padding: 0 1.5rem;
  max-width: 36rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.hp-comp-timeline__step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.875rem 0;
  position: relative;
}
.hp-comp-timeline__step + .hp-comp-timeline__step::before {
  content: '';
  position: absolute;
  left: 5px;
  top: -0.5rem;
  bottom: 50%;
  width: 1px;
  background: rgba(28, 28, 25, 0.12);
}
.hp-comp-timeline__dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(28, 28, 25, 0.18);
  flex-shrink: 0;
  margin-top: 0.375rem;
  position: relative;
  z-index: 1;
}
.hp-comp-timeline__step--past .hp-comp-timeline__dot {
  background: var(--hc-ink-2, #4a4a45);
}
.hp-comp-timeline__step--current .hp-comp-timeline__dot {
  background: var(--hv-copper, #a36442);
  box-shadow: 0 0 0 4px rgba(163, 100, 66, 0.2);
}
.hp-comp-timeline__step--next .hp-comp-timeline__dot {
  background: transparent;
  border: 1.5px solid rgba(28, 28, 25, 0.22);
}
.hp-comp-timeline__body {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  flex: 1;
}
.hp-comp-timeline__label {
  font-size: 0.9375rem;
  color: var(--hc-carbon, #2a2a25);
}
.hp-comp-timeline__step--current .hp-comp-timeline__label {
  font-weight: 600;
}
.hp-comp-timeline__step--next .hp-comp-timeline__label {
  color: var(--hc-ink-2, #4a4a45);
}
.hp-comp-timeline__time {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hc-ink-2, #4a4a45);
  opacity: 0.7;
}

/* -----------------------------------------------------------------------------
   #6 ProofBadge — inline subtle trust signal
   ----------------------------------------------------------------------------- */
.hp-comp--proof {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  background: rgba(28, 28, 25, 0.04);
  color: var(--hc-ink-2, #4a4a45);
  border-radius: 999px;
  text-decoration: none;
  position: relative;
}
.hp-comp-proof__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6b7d5f; /* calm green */
}
.hp-comp-proof--yellow .hp-comp-proof__dot { background: #c19a3d; }
.hp-comp-proof--red .hp-comp-proof__dot { background: #a85e5e; }
.hp-comp-proof__link {
  position: absolute;
  inset: 0;
}

/* -----------------------------------------------------------------------------
   #7 ConstraintHint — quiet rule disclosure
   ----------------------------------------------------------------------------- */
.hp-comp--constraint {
  list-style: none;
  margin: 1.25rem auto;
  padding: 0 1.5rem;
  max-width: 36rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.hp-comp-constraint__item {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--hc-ink-2, #4a4a45);
  padding-left: 1rem;
  position: relative;
}
.hp-comp-constraint__item::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--hv-copper, #a36442);
}

/* -----------------------------------------------------------------------------
   #8 DegradedNotice — graceful fallback
   ----------------------------------------------------------------------------- */
.hp-comp--degraded {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 1.25rem;
  margin: 1rem auto;
  max-width: 36rem;
  background: rgba(193, 154, 61, 0.06);
  border-left: 2px solid #c19a3d;
  border-radius: 2px;
}
.hp-comp-degraded__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c19a3d;
  animation: hpCompPulse 2s cubic-bezier(.4, 0, .6, 1) infinite;
}
.hp-comp-degraded__text {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--hc-ink-2, #4a4a45);
}

/* -----------------------------------------------------------------------------
   #9 DeepLink (footer escape hatch)
   ----------------------------------------------------------------------------- */
.hp-comp--deep-link {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 3rem auto 1.5rem;
  max-width: 36rem;
  padding: 1.5rem 1.5rem 0;
  border-top: 1px solid rgba(28, 28, 25, 0.06);
}
.hp-comp-deep-link__item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  color: var(--hc-ink-2, #4a4a45);
  text-decoration: none;
  transition: color 200ms cubic-bezier(.4, 0, .2, 1);
}
.hp-comp-deep-link__item:hover {
  color: var(--hv-copper, #a36442);
}
.hp-comp-deep-link__arrow {
  font-size: 0.75rem;
  opacity: 0.5;
  transition: transform 200ms cubic-bezier(.4, 0, .2, 1),
              opacity 200ms cubic-bezier(.4, 0, .2, 1);
}
.hp-comp-deep-link__item:hover .hp-comp-deep-link__arrow {
  transform: translateX(3px);
  opacity: 1;
}

/* -----------------------------------------------------------------------------
   Public intent composition — experience-state driven path rendering.
   ----------------------------------------------------------------------------- */
.hp-ask-composition {
  --hp-intent-accent: var(--hv-copper, #a36442);
  --hp-intent-ink: var(--hc-carbon, #2a2a25);
  --hp-intent-muted: var(--hc-ink-2, #4a4a45);
  --hp-intent-panel: rgba(255, 255, 255, 0.74);
  --hp-intent-panel-strong: rgba(255, 255, 255, 0.92);
  --hp-intent-rule: rgba(28, 28, 25, 0.1);
  margin-top: clamp(1rem, 2.6vw, 1.65rem);
  padding: clamp(1rem, 2.4vw, 1.35rem);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(246, 241, 232, 0.66)),
    var(--hp-intent-panel);
  border: 1px solid var(--hp-intent-rule);
  box-shadow: 0 26px 70px rgba(28, 28, 25, 0.08);
  color: var(--hp-intent-ink);
  transform-origin: top center;
  animation: hpIntentMaterialize 260ms cubic-bezier(.2, .8, .2, 1) both;
}

.hp-ask-composition--owner_conversion_guided {
  --hp-intent-accent: #1e3a5f;
}

.hp-ask-composition--resident_help_calm,
.hp-ask-composition--applicant_status_calm,
.hp-ask-composition--public_trust_centered {
  --hp-intent-accent: #6b5f4a;
}

.hp-ask-composition__header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.hp-ask-composition__header span {
  display: block;
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.68rem;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hp-intent-accent);
}

.hp-ask-composition__header strong {
  display: block;
  margin-top: 0.35rem;
  max-width: 34rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  line-height: 1.16;
  font-weight: 720;
  letter-spacing: 0;
  color: var(--hp-intent-ink);
}

.hp-ask-composition__summary {
  margin: 0.9rem 0 0;
  max-width: 42rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--hp-intent-muted);
}

.hp-ask-composition__sections {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(1rem, 2.4vw, 1.35rem);
  background: var(--hp-intent-rule);
}

.hp-ask-composition--density-low .hp-ask-composition__sections,
.hp-ask-composition--resident_help_calm .hp-ask-composition__sections,
.hp-ask-composition--applicant_status_calm .hp-ask-composition__sections {
  grid-template-columns: 1fr;
}

.hp-ask-composition__sections article {
  min-height: 8.75rem;
  padding: 1rem;
  background: var(--hp-intent-panel-strong);
}

.hp-ask-composition__sections strong {
  display: block;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.86rem;
  line-height: 1.35;
  font-weight: 740;
  color: var(--hp-intent-ink);
}

.hp-ask-composition__sections p {
  margin: 0.45rem 0 0;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.79rem;
  line-height: 1.55;
  color: var(--hp-intent-muted);
}

.hp-ask-composition__guardrails {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.hp-ask-composition--density-low .hp-ask-composition__guardrails {
  grid-template-columns: 1fr;
}

.hp-ask-composition__guardrails > div {
  padding: 0.78rem 0.9rem;
  background: rgba(28, 28, 25, 0.035);
  border-left: 2px solid var(--hp-intent-accent);
}

.hp-ask-composition__guardrails span {
  display: block;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  color: var(--hp-intent-accent);
}

.hp-ask-composition__guardrails p {
  margin: 0.35rem 0 0;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.76rem;
  line-height: 1.5;
  color: var(--hp-intent-muted);
}

.hp-ask-composition__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.hp-ask-composition__actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.72rem 1rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.8rem;
  line-height: 1.2;
  font-weight: 780;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--hv-on-primary, #fcf9f4);
  background: var(--hp-intent-accent);
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 160ms cubic-bezier(.2, .8, .2, 1),
              background-color 160ms cubic-bezier(.2, .8, .2, 1);
}

.hp-ask-composition__actions a:hover {
  transform: translateY(-1px);
}

@keyframes hpIntentMaterialize {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.992);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 760px) {
  .hp-ask-composition__sections,
  .hp-ask-composition__guardrails {
    grid-template-columns: 1fr;
  }
  .hp-ask-composition__sections article {
    min-height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hp-ask-composition {
    animation: none;
  }
  .hp-ask-composition__actions a {
    transition: none;
  }
}

/* -----------------------------------------------------------------------------
   Resident dashboard composition — keeps the resident room calm and complete.
   ----------------------------------------------------------------------------- */
.hp-resident-dashboard {
  max-width: 76rem;
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 3.25rem) 1.5rem 4rem;
}
.hp-resident-dashboard .hp-comp--state-strip {
  padding-top: 0;
}
.hp-resident-dashboard .hp-comp-state-strip__inner {
  padding-left: 0;
  padding-right: 0;
}
.hp-resident-dashboard__hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 26rem);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: end;
  padding: clamp(2rem, 5vw, 4rem) 0 clamp(1.5rem, 4vw, 3rem);
}
.hp-resident-dashboard__copy {
  max-width: 42rem;
}
.hp-resident-dashboard__eyebrow,
.hp-resident-dashboard__tile span,
.hp-resident-dashboard__panel-head p {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.6875rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hv-copper, #a36442);
}
.hp-resident-dashboard__copy h1 {
  margin: 0.75rem 0 0;
  max-width: 40rem;
  font-family: 'Instrument Sans', 'Inter', sans-serif;
  font-size: clamp(2.5rem, 6vw, 5.25rem);
  line-height: 0.98;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--hc-carbon, #2a2a25);
}
.hp-resident-dashboard__copy p:not(.hp-resident-dashboard__eyebrow) {
  margin: 1.25rem 0 0;
  max-width: 34rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--hc-ink-2, #4a4a45);
}
.hp-resident-dashboard__action {
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 24px 70px rgba(28, 28, 25, 0.07);
  padding: 1.1rem;
  border-radius: 0.65rem;
}
.hp-resident-dashboard__action .hp-comp--action-primary {
  margin: 0;
}
.hp-resident-dashboard__action .hp-comp-action-primary__inner {
  padding: 0;
}
.hp-resident-dashboard__action .hp-comp-action-primary__cta {
  width: 100%;
  justify-content: center;
  padding: 0.95rem 1.15rem;
}
.hp-resident-dashboard__action .hp-comp-action-primary__causality {
  display: none;
}
.hp-resident-dashboard__summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(28, 28, 25, 0.1);
  margin: 0 0 clamp(1.5rem, 4vw, 3rem);
}
.hp-resident-dashboard__tile {
  min-height: 9.5rem;
  background: rgba(255, 255, 255, 0.72);
  padding: 1.15rem 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
}
.hp-resident-dashboard__tile strong {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.95rem;
  line-height: 1.45;
  font-weight: 650;
  color: var(--hc-carbon, #2a2a25);
}
.hp-resident-dashboard__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(17rem, 24rem);
  gap: 1px;
  background: rgba(28, 28, 25, 0.1);
}
.hp-resident-dashboard__panel {
  background: rgba(255, 255, 255, 0.72);
  padding: clamp(1.25rem, 3vw, 2rem);
}
.hp-resident-dashboard__panel-head {
  max-width: 34rem;
}
.hp-resident-dashboard__panel-head h2 {
  margin: 0.45rem 0 0;
  max-width: 32rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: clamp(1.25rem, 2.4vw, 1.85rem);
  line-height: 1.18;
  font-weight: 680;
  letter-spacing: 0;
  color: var(--hc-carbon, #2a2a25);
}
.hp-resident-dashboard__panel .hp-comp--timeline,
.hp-resident-dashboard__panel .hp-comp--action-secondary,
.hp-resident-dashboard__panel .hp-comp--deep-link,
.hp-resident-dashboard__panel .hp-comp--degraded {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}
.hp-resident-dashboard__panel .hp-comp--timeline {
  margin: 1.5rem 0 0;
}
.hp-resident-dashboard__panel .hp-comp--action-secondary {
  justify-content: flex-start;
  margin: 1.15rem 0 1.25rem;
}
.hp-resident-dashboard__panel .hp-comp-action-secondary__item {
  width: 100%;
  justify-content: space-between;
}
.hp-resident-dashboard__panel .hp-comp--deep-link {
  margin: 1.5rem 0 0;
}
.hp-resident-dashboard__proof {
  margin-top: 0.75rem;
}

@media (max-width: 860px) {
  .hp-resident-dashboard__hero,
  .hp-resident-dashboard__body {
    grid-template-columns: 1fr;
  }
  .hp-resident-dashboard__summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .hp-resident-dashboard {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .hp-resident-dashboard__summary {
    grid-template-columns: 1fr;
  }
  .hp-resident-dashboard__tile {
    min-height: auto;
  }
  .hp-resident-dashboard .hp-comp-state-strip__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}

/* -----------------------------------------------------------------------------
   Resident move-in preparation — source-proof boundary, not a welcome brochure.
   ----------------------------------------------------------------------------- */
.hp-resident-prep {
  max-width: 76rem;
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 3.25rem) 1.5rem 4rem;
}
.hp-resident-prep .hp-comp--state-strip {
  padding-top: 0;
}
.hp-resident-prep .hp-comp-state-strip__inner {
  padding-left: 0;
  padding-right: 0;
}
.hp-resident-prep__hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 25rem);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: end;
  padding: clamp(2rem, 5vw, 3.75rem) 0 clamp(1.5rem, 4vw, 2.5rem);
}
.hp-resident-prep__copy {
  max-width: 43rem;
}
.hp-resident-prep__eyebrow,
.hp-resident-prep__tile span,
.hp-resident-prep__panel-head p {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.6875rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hv-copper, #a36442);
}
.hp-resident-prep__copy h1 {
  margin: 0.75rem 0 0;
  max-width: 41rem;
  font-family: 'Instrument Sans', 'Inter', sans-serif;
  font-size: clamp(2.35rem, 5.5vw, 4.85rem);
  line-height: 0.99;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--hc-carbon, #2a2a25);
}
.hp-resident-prep__copy p:not(.hp-resident-prep__eyebrow) {
  margin: 1.25rem 0 0;
  max-width: 35rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--hc-ink-2, #4a4a45);
}
.hp-resident-prep__action {
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 24px 70px rgba(28, 28, 25, 0.07);
  padding: 1rem;
  border-radius: 0.65rem;
}
.hp-resident-prep__action .hp-comp--action-primary {
  margin: 0;
}
.hp-resident-prep__action .hp-comp-action-primary__inner {
  padding: 0;
}
.hp-resident-prep__action .hp-comp-action-primary__cta {
  width: 100%;
  justify-content: center;
  padding: 0.95rem 1.15rem;
}
.hp-resident-prep__action .hp-comp-action-primary__causality {
  display: none;
}
.hp-resident-prep__summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(28, 28, 25, 0.1);
  margin: 0 0 clamp(1.5rem, 4vw, 3rem);
}
.hp-resident-prep__tile {
  min-height: 9.25rem;
  background: rgba(255, 255, 255, 0.72);
  padding: 1.15rem 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
}
.hp-resident-prep__tile strong {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.95rem;
  line-height: 1.45;
  font-weight: 650;
  color: var(--hc-carbon, #2a2a25);
}
.hp-resident-prep__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(18rem, 24rem);
  gap: 1px;
  background: rgba(28, 28, 25, 0.1);
}
.hp-resident-prep__panel {
  background: rgba(255, 255, 255, 0.72);
  padding: clamp(1.25rem, 3vw, 2rem);
}
.hp-resident-prep__panel-head {
  max-width: 34rem;
}
.hp-resident-prep__panel-head h2 {
  margin: 0.45rem 0 0;
  max-width: 32rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: clamp(1.2rem, 2.2vw, 1.75rem);
  line-height: 1.18;
  font-weight: 680;
  letter-spacing: 0;
  color: var(--hc-carbon, #2a2a25);
}
.hp-resident-prep__panel .hp-comp--timeline,
.hp-resident-prep__panel .hp-comp--action-secondary,
.hp-resident-prep__panel .hp-comp--deep-link,
.hp-resident-prep__panel .hp-comp--degraded {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}
.hp-resident-prep__panel .hp-comp--timeline {
  margin: 1.5rem 0 0;
}
.hp-resident-prep__panel .hp-comp--action-secondary {
  justify-content: flex-start;
  margin: 1.15rem 0 1.25rem;
}
.hp-resident-prep__panel .hp-comp-action-secondary__item {
  width: 100%;
  justify-content: space-between;
}
.hp-resident-prep__panel .hp-comp--deep-link {
  margin: 1.5rem 0 0;
}
.hp-resident-prep__panel--checklist {
  grid-column: span 1;
}
.hp-resident-prep__checklist {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.5rem;
}
.hp-resident-prep__check {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 0.8rem;
  align-items: start;
  padding: 1rem;
  background: rgba(252, 249, 244, 0.72);
}
.hp-resident-prep__check .material-symbols-outlined {
  color: var(--hv-copper, #a36442);
  font-size: 1.25rem;
}
.hp-resident-prep__check strong {
  display: block;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.9rem;
  color: var(--hc-carbon, #2a2a25);
}
.hp-resident-prep__check p {
  margin: 0.25rem 0 0;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--hc-ink-2, #4a4a45);
}
.hp-resident-prep__proof {
  margin-top: 0.75rem;
}
.hp-resident-prep__constraints .hp-comp--constraint {
  max-width: none;
}

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

@media (max-width: 860px) {
  .hp-resident-prep__hero {
    grid-template-columns: 1fr;
  }
  .hp-resident-prep__summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .hp-resident-prep {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .hp-resident-prep__summary {
    grid-template-columns: 1fr;
  }
  .hp-resident-prep__tile {
    min-height: auto;
  }
  .hp-resident-prep .hp-comp-state-strip__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}

.hp-ask-composition {
  grid-column: 1 / -1;
  margin-top: 0.9rem;
  padding: 0.9rem;
  color: var(--hc-carbon, #2a2a25);
  background: rgba(255, 253, 248, 0.94);
  border: 1px solid rgba(163, 100, 66, 0.18);
  border-radius: 0.9rem;
  box-shadow: 0 1.1rem 2.8rem rgba(16, 32, 51, 0.12);
  animation: hpAskComposeIn 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.hp-ask-composition__header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.hp-ask-composition__header span,
.hp-ask-composition__guardrails span {
  display: block;
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hv-copper, #a36442);
}

.hp-ask-composition__header strong {
  display: block;
  margin-top: 0.18rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.2;
  color: var(--hc-carbon, #2a2a25);
}

.hp-ask-composition__header small {
  color: var(--hc-ink-2, #4a4a45);
  font-size: 0.72rem;
  text-align: right;
}

.hp-ask-composition__summary {
  margin: 0.7rem 0 0;
  max-width: 56rem;
  color: var(--hc-ink-2, #4a4a45);
  font-size: 0.9rem;
  line-height: 1.55;
}

.hp-ask-composition__sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 0.6rem;
  margin-top: 0.85rem;
}

.hp-ask-composition__sections article,
.hp-ask-composition__guardrails > div {
  padding: 0.72rem 0.78rem;
  background: rgba(246, 244, 239, 0.82);
  border-radius: 0.65rem;
}

.hp-ask-composition__sections strong {
  display: block;
  color: var(--hc-carbon, #2a2a25);
  font-size: 0.8rem;
  line-height: 1.25;
}

.hp-ask-composition__sections p,
.hp-ask-composition__guardrails p {
  margin: 0.24rem 0 0;
  color: var(--hc-ink-2, #4a4a45);
  font-size: 0.76rem;
  line-height: 1.48;
}

.hp-ask-composition__guardrails {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 0.6rem;
  margin-top: 0.72rem;
}

.hp-ask-composition__guardrails .is-blocked {
  border-left: 3px solid var(--hv-copper, #a36442);
}

.hp-ask-composition__guardrails .is-proof {
  border-left: 3px solid var(--hc-carbon, #2a2a25);
}

.hp-ask-composition__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.82rem;
}

.hp-ask-composition__actions a {
  display: inline-flex;
  align-items: center;
  min-height: 2.35rem;
  padding: 0.58rem 0.82rem;
  border-radius: 999px;
  color: #fff8ec;
  background: var(--hv-copper, #a36442);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

@keyframes hpAskComposeIn {
  from {
    opacity: 0;
    transform: translateY(0.35rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Reduced motion honors prefers-reduced-motion globally. */
@media (prefers-reduced-motion: reduce) {
  .hp-comp *,
  .hp-comp *::before,
  .hp-comp *::after {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }
}
