/* Incident flow: theme */
.protection-landlord-detail-page .landlord-incident-flow {
  --incident-bg: #f4f4f1;
  --incident-surface: rgba(255, 255, 255, .68);
  --incident-surface-strong: rgba(255, 255, 255, .82);
  --incident-border: rgba(24, 24, 26, .09);
  --incident-border-hover: rgba(128, 96, 0, .28);
  --incident-text: #1d1d1f;
  --incident-copy: rgba(29, 29, 31, .66);
  --incident-muted: rgba(29, 29, 31, .46);
  --incident-accent: #806000;
  --incident-shadow: 0 1.25rem 4rem rgba(62, 55, 34, .09);
  --incident-shadow-hover: 0 1.8rem 5rem rgba(62, 55, 34, .14);
  --incident-ease: cubic-bezier(.16, 1, .3, 1);
  position: relative;
  overflow: clip;
  padding: clamp(5rem, 8vw, 8rem) clamp(1rem, 4vw, 4rem) clamp(6.5rem, 9vw, 9.5rem);
  color: var(--incident-text);
  background:
    radial-gradient(circle at 14% 9%, rgba(245, 197, 24, .11), transparent 32rem),
    radial-gradient(circle at 86% 82%, rgba(29, 29, 31, .045), transparent 35rem),
    var(--incident-bg);
}

html.dark .protection-landlord-detail-page .landlord-incident-flow {
  --incident-bg: #0d0d11;
  --incident-surface: rgba(255, 255, 255, .045);
  --incident-surface-strong: rgba(255, 255, 255, .065);
  --incident-border: rgba(255, 255, 255, .08);
  --incident-border-hover: rgba(245, 197, 24, .32);
  --incident-text: #f7f6f0;
  --incident-copy: rgba(247, 246, 240, .64);
  --incident-muted: rgba(247, 246, 240, .42);
  --incident-accent: #f5c518;
  --incident-shadow: 0 1.25rem 4rem rgba(3, 3, 6, .22);
  --incident-shadow-hover: 0 1.8rem 5rem rgba(3, 3, 6, .34);
  background:
    radial-gradient(circle at 14% 9%, rgba(245, 197, 24, .065), transparent 32rem),
    radial-gradient(circle at 86% 82%, rgba(255, 255, 255, .035), transparent 35rem),
    var(--incident-bg);
}

.protection-landlord-detail-page .landlord-incident-flow__inner {
  width: min(100%, 88rem);
  margin-inline: auto;
}

/* Incident flow: compact header */
.protection-landlord-detail-page .landlord-incident-flow__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 65rem;
  margin-inline: auto;
  text-align: center;
}

.protection-landlord-detail-page .landlord-incident-flow__eyebrow,
.protection-landlord-detail-page .landlord-incident-flow__process-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid color-mix(in srgb, var(--incident-accent) 26%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--incident-accent) 9%, transparent);
  color: var(--incident-accent);
  font-size: .68rem;
  font-weight: 780;
  line-height: 1;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.protection-landlord-detail-page .landlord-incident-flow__eyebrow {
  margin-bottom: 1.15rem;
  padding: .58rem .78rem;
}

.protection-landlord-detail-page .landlord-incident-flow__header h2 {
  max-width: 20ch;
  margin: 0;
  color: var(--incident-text);
  font-family: var(--font-display);
  font-size: clamp(2.45rem, 4.8vw, 5rem);
  font-weight: 760;
  line-height: .98;
  letter-spacing: -.05em;
  text-wrap: balance;
}

.protection-landlord-detail-page .landlord-incident-flow__header p {
  max-width: 64ch;
  margin: 1.35rem 0 0;
  color: var(--incident-copy);
  font-size: clamp(.98rem, 1.15vw, 1.14rem);
  line-height: 1.7;
  text-wrap: pretty;
}

.protection-landlord-detail-page .landlord-incident-flow__header a:not(.landlord-incident-flow__cta),
.protection-landlord-detail-page .landlord-incident-flow__notice a {
  color: var(--incident-accent);
  font-weight: 720;
  text-decoration-color: color-mix(in srgb, var(--incident-accent) 42%, transparent);
  text-underline-offset: .18em;
}

.protection-landlord-detail-page .landlord-incident-flow__cta {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  min-height: 3.15rem;
  margin-top: 1.6rem;
  padding: .5rem .52rem .5rem 1.25rem;
  border-radius: 999px;
  background: #f5c518;
  color: #181814;
  font-size: .84rem;
  font-weight: 780;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 1rem 2.6rem rgba(137, 103, 0, .16);
  transition:
    transform .48s var(--incident-ease),
    box-shadow .48s var(--incident-ease);
}

.protection-landlord-detail-page .landlord-incident-flow__cta span {
  display: inline-grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 50%;
  background: rgba(24, 24, 20, .1);
  transition: transform .48s var(--incident-ease);
}

.protection-landlord-detail-page .landlord-incident-flow__cta:focus-visible {
  outline: 3px solid var(--incident-text);
  outline-offset: 4px;
}

/* Incident flow: four checks */
.protection-landlord-detail-page .landlord-incident-flow__checks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(.75rem, 1.2vw, 1rem);
  margin-top: clamp(2.5rem, 4.5vw, 4.25rem);
}

.protection-landlord-detail-page .landlord-incident-flow__check {
  container-type: inline-size;
  position: relative;
  display: flex;
  min-height: clamp(14rem, 20vw, 18rem);
  flex-direction: column;
  overflow: hidden;
  padding: clamp(1.25rem, 2vw, 1.8rem);
  border: 1px solid var(--incident-border);
  border-radius: clamp(1.4rem, 2vw, 1.9rem);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--incident-text) 5%, transparent), transparent 62%),
    var(--incident-surface);
  -webkit-backdrop-filter: blur(16px) saturate(118%);
  backdrop-filter: blur(16px) saturate(118%);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, white 11%, transparent),
    var(--incident-shadow);
  transition:
    transform .65s var(--incident-ease),
    border-color .65s var(--incident-ease),
    box-shadow .65s var(--incident-ease);
}

.protection-landlord-detail-page .landlord-incident-flow__check::before {
  content: "";
  position: absolute;
  inset: .38rem;
  pointer-events: none;
  border: 1px solid color-mix(in srgb, var(--incident-text) 5%, transparent);
  border-radius: calc(clamp(1.4rem, 2vw, 1.9rem) - .38rem);
}

.protection-landlord-detail-page .landlord-incident-flow__check-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.45rem;
  height: 2.45rem;
  margin-bottom: auto;
  border-radius: .8rem;
  background: color-mix(in srgb, var(--incident-accent) 12%, transparent);
  color: var(--incident-accent);
  font-size: .76rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: .08em;
}

.protection-landlord-detail-page .landlord-incident-flow__check h3 {
  margin: clamp(2.5rem, 4vw, 4.5rem) 0 .7rem;
  color: var(--incident-text);
  font-family: var(--font-display);
  font-size: clamp(1.42rem, 1.8vw, 2rem);
  font-weight: 720;
  line-height: 1.03;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.protection-landlord-detail-page .landlord-incident-flow__check p {
  margin: 0;
  color: var(--incident-copy);
  font-size: .92rem;
  line-height: 1.55;
  text-wrap: pretty;
}

/* Incident flow: process timeline */
.protection-landlord-detail-page .landlord-incident-flow__process {
  margin-top: clamp(5rem, 8vw, 8rem);
}

.protection-landlord-detail-page .landlord-incident-flow__process-header {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(20rem, 1.15fr);
  align-items: end;
  gap: clamp(2rem, 5vw, 6rem);
  margin-bottom: clamp(2.25rem, 4vw, 3.75rem);
}

.protection-landlord-detail-page .landlord-incident-flow__process-label {
  margin-bottom: 1rem;
  padding: .55rem .75rem;
}

.protection-landlord-detail-page .landlord-incident-flow__process-header h2 {
  max-width: 14ch;
  margin: 0;
  color: var(--incident-text);
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 4.2vw, 4.5rem);
  font-weight: 740;
  line-height: .98;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.protection-landlord-detail-page .landlord-incident-flow__process-header p {
  max-width: 58ch;
  margin: 0;
  color: var(--incident-copy);
  font-size: clamp(.98rem, 1.1vw, 1.1rem);
  line-height: 1.68;
  text-wrap: pretty;
}

.protection-landlord-detail-page .landlord-incident-flow__timeline {
  --phase-early: #79d7a0;
  --phase-warning: #f0ba4a;
  --phase-danger: #ed7168;
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.85rem, 1.5vw, 1.25rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.protection-landlord-detail-page .landlord-incident-flow__timeline::before {
  content: "";
  position: absolute;
  top: 2rem;
  right: 8%;
  left: 8%;
  height: 2px;
  background: linear-gradient(90deg, var(--phase-early), var(--phase-warning) 50%, var(--phase-danger));
  opacity: .58;
  box-shadow: 0 0 1.25rem color-mix(in srgb, var(--phase-warning) 30%, transparent);
}

.protection-landlord-detail-page .landlord-incident-flow__phase {
  --phase-color: var(--phase-early);
  position: relative;
  display: flex;
  min-height: clamp(20rem, 28vw, 25rem);
  flex-direction: column;
  padding: 4.65rem clamp(1.35rem, 2.2vw, 2rem) clamp(1.5rem, 2.2vw, 2rem);
  border: 1px solid color-mix(in srgb, var(--phase-color) 24%, var(--incident-border));
  border-radius: clamp(1.55rem, 2.2vw, 2rem);
  background:
    radial-gradient(circle at 12% 0%, color-mix(in srgb, var(--phase-color) 12%, transparent), transparent 17rem),
    var(--incident-surface);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  backdrop-filter: blur(18px) saturate(120%);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, white 11%, transparent),
    var(--incident-shadow);
  transition:
    transform .68s var(--incident-ease),
    border-color .68s var(--incident-ease),
    box-shadow .68s var(--incident-ease);
}

.protection-landlord-detail-page .landlord-incident-flow__phase--warning {
  --phase-color: var(--phase-warning);
}

.protection-landlord-detail-page .landlord-incident-flow__phase--danger {
  --phase-color: var(--phase-danger);
}

.protection-landlord-detail-page .landlord-incident-flow__phase::before {
  content: "";
  position: absolute;
  top: 1.5rem;
  left: clamp(1.35rem, 2.2vw, 2rem);
  width: 1.05rem;
  height: 1.05rem;
  border: .27rem solid var(--incident-bg);
  border-radius: 50%;
  background: var(--phase-color);
  box-shadow:
    0 0 0 .25rem color-mix(in srgb, var(--phase-color) 20%, transparent),
    0 0 1.2rem color-mix(in srgb, var(--phase-color) 48%, transparent);
}

.protection-landlord-detail-page .landlord-incident-flow__phase::after {
  content: "→";
  position: absolute;
  top: 1.27rem;
  right: -.98rem;
  z-index: 2;
  display: grid;
  width: 1.85rem;
  height: 1.85rem;
  place-items: center;
  border: 1px solid var(--incident-border);
  border-radius: 50%;
  background: var(--incident-surface-strong);
  color: var(--incident-muted);
  font-size: .86rem;
  box-shadow: 0 .5rem 1.5rem rgba(0, 0, 0, .08);
}

.protection-landlord-detail-page .landlord-incident-flow__phase:last-child::after {
  display: none;
}

.protection-landlord-detail-page .landlord-incident-flow__phase-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.protection-landlord-detail-page .landlord-incident-flow__phase-index {
  color: var(--incident-muted);
  font-size: .74rem;
  font-weight: 760;
  font-variant-numeric: tabular-nums;
  letter-spacing: .12em;
}

.protection-landlord-detail-page .landlord-incident-flow__status {
  display: inline-flex;
  width: fit-content;
  padding: .5rem .66rem;
  border: 1px solid color-mix(in srgb, var(--phase-color) 32%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--phase-color) 9%, transparent);
  color: var(--phase-color);
  font-size: .66rem;
  font-weight: 790;
  line-height: 1;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.protection-landlord-detail-page .landlord-incident-flow__phase h3 {
  max-width: 14ch;
  margin: auto 0 .9rem;
  color: var(--incident-text);
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.4vw, 2.65rem);
  font-weight: 730;
  line-height: 1;
  letter-spacing: -.04em;
  text-wrap: balance;
}

.protection-landlord-detail-page .landlord-incident-flow__phase p {
  margin: 0;
  color: var(--incident-copy);
  font-size: .95rem;
  line-height: 1.62;
  text-wrap: pretty;
}

.protection-landlord-detail-page .landlord-incident-flow__notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 1rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--incident-border);
  border-radius: 1.25rem;
  background: color-mix(in srgb, var(--incident-surface) 72%, transparent);
  color: var(--incident-copy);
  font-size: .88rem;
  line-height: 1.55;
}

.protection-landlord-detail-page .landlord-incident-flow__notice p {
  max-width: 74ch;
  margin: 0;
}

.protection-landlord-detail-page .landlord-incident-flow__notice a {
  flex: 0 0 auto;
  white-space: nowrap;
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .protection-landlord-detail-page .landlord-incident-flow__check,
  .protection-landlord-detail-page .landlord-incident-flow__phase {
    background-color: color-mix(in srgb, var(--incident-bg) 90%, var(--incident-text));
  }
}

@media (hover: hover) and (pointer: fine) {
  .protection-landlord-detail-page .landlord-incident-flow__check:hover,
  .protection-landlord-detail-page .landlord-incident-flow__phase:hover {
    transform: translate3d(0, -.3rem, 0);
    border-color: var(--incident-border-hover);
    box-shadow:
      inset 0 1px 0 color-mix(in srgb, white 13%, transparent),
      var(--incident-shadow-hover);
  }

  .protection-landlord-detail-page .landlord-incident-flow__phase:hover {
    border-color: color-mix(in srgb, var(--phase-color) 48%, transparent);
    box-shadow:
      inset 0 1px 0 color-mix(in srgb, white 13%, transparent),
      0 1.8rem 5rem color-mix(in srgb, var(--phase-color) 13%, transparent);
  }

  .protection-landlord-detail-page .landlord-incident-flow__cta:hover {
    transform: scale(.985);
    box-shadow: 0 1.2rem 3rem rgba(137, 103, 0, .22);
  }

  .protection-landlord-detail-page .landlord-incident-flow__cta:hover span {
    transform: translate3d(.14rem, -.14rem, 0) scale(1.04);
  }

  .protection-landlord-detail-page .landlord-incident-flow__cta:active {
    transform: scale(.97);
  }
}

/* Incident flow: responsive */
@media (max-width: 68rem) {
  .protection-landlord-detail-page .landlord-incident-flow__checks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .protection-landlord-detail-page .landlord-incident-flow__check {
    min-height: 16rem;
  }

  .protection-landlord-detail-page .landlord-incident-flow__process-header {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 1.25rem;
  }

  .protection-landlord-detail-page .landlord-incident-flow__process-header h2 {
    max-width: 18ch;
  }
}

@media (max-width: 48rem) {
  .protection-landlord-detail-page .landlord-incident-flow {
    padding: 4.75rem .75rem 6rem;
  }

  .protection-landlord-detail-page .landlord-incident-flow__header h2 {
    font-size: clamp(2.35rem, 11.5vw, 3.6rem);
  }

  .protection-landlord-detail-page .landlord-incident-flow__checks {
    grid-template-columns: 1fr;
  }

  .protection-landlord-detail-page .landlord-incident-flow__check {
    min-height: 14rem;
  }

  .protection-landlord-detail-page .landlord-incident-flow__check h3 {
    margin-top: 2.5rem;
  }

  .protection-landlord-detail-page .landlord-incident-flow__process {
    margin-top: 5.25rem;
  }

  .protection-landlord-detail-page .landlord-incident-flow__timeline {
    grid-template-columns: 1fr;
    gap: .85rem;
    padding-left: 3.1rem;
  }

  .protection-landlord-detail-page .landlord-incident-flow__timeline::before {
    top: 1.75rem;
    right: auto;
    bottom: 1.75rem;
    left: 1.15rem;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, var(--phase-early), var(--phase-warning) 50%, var(--phase-danger));
  }

  .protection-landlord-detail-page .landlord-incident-flow__phase {
    min-height: 19rem;
    padding-top: 1.45rem;
  }

  .protection-landlord-detail-page .landlord-incident-flow__phase::before {
    top: 1.55rem;
    left: -2.48rem;
  }

  .protection-landlord-detail-page .landlord-incident-flow__phase::after {
    content: "↓";
    top: auto;
    right: auto;
    bottom: -.98rem;
    left: -2.88rem;
  }

  .protection-landlord-detail-page .landlord-incident-flow__phase h3 {
    margin-top: 4.5rem;
  }

  .protection-landlord-detail-page .landlord-incident-flow__notice {
    align-items: flex-start;
    flex-direction: column;
    gap: .8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .protection-landlord-detail-page .landlord-incident-flow__check,
  .protection-landlord-detail-page .landlord-incident-flow__phase,
  .protection-landlord-detail-page .landlord-incident-flow__cta,
  .protection-landlord-detail-page .landlord-incident-flow__cta span {
    transition: none;
    transform: none;
  }
}
