.personas-page {
  background: #faf9f6;
}

.personas-hero {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(480px, .8fr);
  gap: clamp(48px, 7vw, 110px);
  width: min(100%, calc(var(--content) + (var(--page-pad) * 2)));
  min-height: calc(100dvh - 72px);
  align-items: center;
  margin: 0 auto;
  padding: clamp(46px, 5vw, 72px) var(--page-pad);
}

.personas-hero .hero-title {
  font-size: clamp(42px, 5.2vw, 70px);
}

.personas-hero .hero-title span {
  color: var(--iris-olive-dark);
}

.personas-hero .hero-lead {
  margin: 26px 0 0;
}

.person-product-wrap {
  position: relative;
  min-width: 0;
}

.product-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 10px 10px;
  color: var(--iris-muted);
  font-size: 12px;
}

.person-product {
  position: relative;
  overflow: hidden;
  min-height: 600px;
  border: 1px solid var(--iris-line);
  border-radius: var(--radius-lg);
  background: var(--iris-white);
  box-shadow: var(--shadow-soft);
}

.person-product::before {
  display: block;
  height: 7px;
  background: var(--iris-olive);
  content: "";
}

.person-product-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 34px 34px 26px;
  border-bottom: 1px solid var(--iris-line);
}

.person-product-head p {
  margin: 0 0 8px;
  color: var(--iris-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.person-product-head h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -.04em;
}

.person-product-head div > span {
  display: block;
  margin-top: 5px;
  color: var(--iris-muted);
}

.vehicle-state {
  padding: 5px 9px;
  border-radius: 20px;
  background: #ecf4ee;
  color: var(--iris-success);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.person-now {
  padding: 12px 34px 74px;
}

.person-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  min-height: 94px;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--iris-line);
}

.person-row:last-child {
  border-bottom: 0;
}

.row-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #cbd1ce;
  border-radius: 50%;
  color: var(--iris-navy);
  font-size: 12px;
  font-weight: 600;
}

.row-icon--attention {
  border-color: #e6c78f;
  background: #fff8e9;
  color: var(--iris-warning);
}

.row-icon--ok {
  border-color: #aed2bf;
  background: #eff8f2;
  color: var(--iris-success);
}

.person-row div {
  display: grid;
  gap: 4px;
}

.person-row div > strong {
  font-size: 15px;
}

.person-row div > span {
  color: var(--iris-muted);
  font-size: 13px;
}

.person-row .row-amount {
  color: var(--iris-navy);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.025em;
}

.row-status {
  color: var(--iris-success);
  font-size: 12px;
  font-weight: 600;
}

.product-event {
  transform-origin: top;
  animation: person-event-arrive .4s cubic-bezier(.22, .7, .2, 1) .8s both;
}

@keyframes person-event-arrive {
  from { opacity: 0; transform: translateY(-9px); }
  to { opacity: 1; transform: translateY(0); }
}

.person-product-context {
  position: absolute;
  right: 18px;
  bottom: 70px;
  left: 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 20px;
  border: 1px solid var(--iris-olive);
  border-radius: var(--radius-md);
  background: #f5f6ed;
  box-shadow: 0 12px 30px rgb(12 33 57 / 12%);
}

.person-product-context div {
  display: grid;
  gap: 4px;
}

.person-product-context span {
  color: var(--iris-olive-dark);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.person-product-context p {
  margin: 2px 0 0;
  color: var(--iris-muted);
  font-size: 13px;
}

.person-product-context button {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border: 0;
  background: transparent;
  font-size: 24px;
  cursor: pointer;
}

.person-mobile-nav {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 60px;
  align-items: center;
  border-top: 1px solid var(--iris-line);
  background: var(--iris-white);
  color: var(--iris-muted);
  font-size: 11px;
  text-align: center;
}

.person-mobile-nav [aria-current="page"] {
  color: var(--iris-olive-dark);
  font-weight: 600;
}

.scattered-section {
  border-top: 1px solid var(--iris-line);
  background: var(--iris-white);
}

.scattered-map {
  position: relative;
  min-height: 370px;
  overflow: hidden;
  border-top: 1px solid var(--iris-line);
  border-bottom: 1px solid var(--iris-line);
}

.scattered-map svg {
  position: absolute;
  inset: 30px 3% 55px;
  width: 94%;
  height: 285px;
  fill: none;
  stroke: #cdd2ce;
  stroke-dasharray: 4 8;
  stroke-width: 1.2;
}

.source {
  position: absolute;
  z-index: 2;
  display: grid;
  min-width: 130px;
  min-height: 48px;
  place-items: center;
  padding: 8px 14px;
  border: 1px solid var(--iris-line);
  border-radius: 24px;
  background: var(--iris-white);
  color: var(--iris-graphite);
  font-size: 13px;
  font-weight: 500;
}

.source--one { top: 26px; left: 2%; }
.source--two { top: 30px; right: 2%; }
.source--three { top: 134px; left: 13%; }
.source--four { top: 138px; right: 15%; }
.source--five { top: 52px; left: calc(50% - 65px); }

.map-iris {
  position: absolute;
  z-index: 3;
  bottom: 30px;
  left: 50%;
  display: grid;
  min-width: 230px;
  min-height: 100px;
  grid-template-columns: 38px 1fr;
  grid-template-rows: auto auto;
  align-content: center;
  gap: 0 14px;
  padding: 20px 24px;
  border: 1px solid var(--iris-navy);
  border-radius: var(--radius-md);
  background: var(--iris-navy);
  color: var(--iris-white);
  transform: translateX(-50%);
}

.map-iris .focus-mark {
  grid-row: 1 / 3;
  align-self: center;
}

.map-iris strong {
  align-self: end;
  letter-spacing: .14em;
}

.map-iris small {
  color: #c8d0d7;
}

.upcoming-section {
  background: #f1f2ec;
}

.upcoming-layout,
.history-layout,
.costs-layout {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(440px, .75fr);
  align-items: center;
  gap: clamp(50px, 9vw, 140px);
}

.upcoming-copy .section-lead,
.history-layout .section-lead,
.costs-copy .section-lead {
  margin: 24px 0;
}

.upcoming-list {
  border-top: 3px solid var(--iris-olive);
  background: var(--iris-white);
  box-shadow: var(--shadow-soft);
}

.upcoming-label {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 24px;
  border-bottom: 1px solid var(--iris-line);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.upcoming-list article {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  min-height: 104px;
  align-items: center;
  gap: 18px;
  padding: 12px 24px;
  border-bottom: 1px solid var(--iris-line);
}

.upcoming-list article:last-child {
  border-bottom: 0;
}

.upcoming-list time {
  display: grid;
  color: var(--iris-muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
}

.upcoming-list time strong {
  color: var(--iris-navy);
  font-size: 18px;
  letter-spacing: -.02em;
}

.upcoming-list article > div {
  display: grid;
  gap: 4px;
}

.upcoming-list article > div span {
  color: var(--iris-muted);
  font-size: 13px;
}

.priority {
  padding: 4px 8px;
  border-radius: 20px;
  background: #eff1f3;
  color: var(--iris-muted);
  font-size: 10px;
  font-weight: 600;
}

.priority--attention {
  background: #fff5e3;
  color: var(--iris-warning);
}

.history-section {
  background: var(--iris-navy);
  color: var(--iris-white);
}

.history-section .eyebrow {
  color: #bdc895;
}

.history-section .section-title,
.history-section .section-lead {
  color: var(--iris-white);
}

.history-section .section-lead {
  opacity: .72;
}

.vehicle-timeline {
  position: relative;
  padding-left: 32px;
}

.vehicle-timeline::before {
  position: absolute;
  top: 12px;
  bottom: 16px;
  left: 6px;
  width: 1px;
  background: #66758a;
  content: "";
}

.vehicle-timeline section + section {
  margin-top: 34px;
}

.vehicle-timeline h3 {
  margin: 0 0 14px;
  color: #bdc895;
  font-size: 15px;
  letter-spacing: .08em;
}

.vehicle-timeline ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.vehicle-timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgb(255 255 255 / 13%);
}

.vehicle-timeline li::before {
  position: absolute;
  top: 21px;
  left: -31px;
  width: 9px;
  height: 9px;
  border: 2px solid var(--iris-navy);
  border-radius: 50%;
  background: #bdc895;
  content: "";
}

.vehicle-timeline time {
  color: #aeb8c1;
  font-size: 12px;
  text-transform: uppercase;
}

.costs-section {
  background: var(--iris-white);
}

.cost-summary {
  padding: 30px;
  border: 1px solid var(--iris-line);
  border-radius: var(--radius-md);
}

.cost-summary header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--iris-line);
}

.cost-summary header div {
  display: grid;
  gap: 4px;
}

.cost-summary header span:first-child {
  color: var(--iris-muted);
  font-size: 13px;
}

.cost-summary header strong {
  font-size: 22px;
}

.cost-summary dl {
  margin: 0;
}

.cost-summary dl div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--iris-line);
}

.cost-summary dt {
  color: var(--iris-muted);
}

.cost-summary dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.cost-summary .cost-total {
  padding-top: 20px;
  border-bottom: 0;
  font-size: 21px;
  font-weight: 600;
}

.cost-summary .cost-total dt {
  color: var(--iris-navy);
}

.personas-final {
  display: grid;
  min-height: 520px;
  place-items: center;
  align-content: center;
  gap: 30px;
  padding: 80px var(--page-pad);
  background: #eceee3;
  text-align: center;
}

.personas-final > .focus-mark {
  width: 46px;
  height: 46px;
}

.personas-final h2 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(38px, 6vw, 70px);
  font-weight: 500;
  letter-spacing: -.05em;
  line-height: 1.05;
}

@media (max-width: 1040px) {
  .personas-hero {
    grid-template-columns: minmax(0, 1fr) minmax(420px, .9fr);
    gap: 44px;
  }

  .person-product-head,
  .person-now {
    padding-inline: 24px;
  }
}

@media (max-width: 840px) {
  .personas-hero {
    grid-template-columns: 1fr;
    padding-top: 72px;
  }

  .personas-hero-copy {
    max-width: 700px;
  }

  .person-product-wrap {
    width: min(100%, 600px);
    margin: 0 auto;
  }

  .upcoming-layout,
  .history-layout,
  .costs-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .personas-hero {
    min-height: auto;
    padding-block: 56px 76px;
  }

  .personas-hero .hero-title {
    font-size: clamp(40px, 11.5vw, 52px);
  }

  .personas-hero .hero-title br {
    display: none;
  }

  .person-product {
    min-height: 542px;
    border-radius: var(--radius-md);
  }

  .person-product-head {
    padding: 25px 20px 20px;
  }

  .person-product-head h2 {
    font-size: 27px;
  }

  .person-now {
    padding: 4px 20px 70px;
  }

  .person-row {
    grid-template-columns: 32px minmax(0, 1fr) auto;
    min-height: 84px;
    gap: 10px;
  }

  .row-icon {
    width: 30px;
    height: 30px;
  }

  .person-row .product-action {
    min-height: 44px;
    font-size: 12px;
  }

  .scattered-map {
    min-height: 470px;
  }

  .scattered-map svg {
    display: none;
  }

  .source {
    min-width: 120px;
  }

  .source--one { top: 20px; left: 0; }
  .source--two { top: 20px; right: 0; }
  .source--three { top: 92px; left: 5%; }
  .source--four { top: 92px; right: 5%; }
  .source--five { top: 164px; left: calc(50% - 60px); }

  .map-iris {
    bottom: 42px;
    width: min(100%, 270px);
  }

  .map-iris::before {
    position: absolute;
    bottom: 100%;
    left: 50%;
    width: 1px;
    height: 88px;
    background: var(--iris-line);
    content: "";
  }

  .upcoming-list article {
    grid-template-columns: 52px minmax(0, 1fr);
    padding-inline: 18px;
  }

  .upcoming-list .priority {
    grid-column: 2;
    width: max-content;
  }

  .cost-summary {
    padding: 22px;
  }

  .personas-final {
    min-height: 430px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-event {
    animation: none;
  }
}
