.feature-board {
  background: #fff;
  color: #171821;
  padding-block: clamp(4.5rem, 8vw, 7.5rem) clamp(5rem, 10vw, 9rem);
}
.feature-board h2 { margin: 0 0 clamp(2.5rem, 4.5vw, 4.5rem); font-size: 2.1rem; line-height: 1.02; font-weight: 400; letter-spacing: -.052em; }
.feature-board h2 span { display: block; color: #717179; }
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 4rem) clamp(.9rem, 1.6vw, 1.55rem); }
.feature { grid-column: span 2; display: grid; grid-template-columns: subgrid; align-items: stretch; }
.feature-wide { grid-column: 2 / -1; }
.feature-wide .feature-scene { grid-column: span 2; aspect-ratio: auto; }
/* Safari needs an explicit width for these size-contained grid items. */
.feature-scene { width: 100%; aspect-ratio: 1.13; min-width: 0; display: grid; place-items: center; overflow: hidden; background: #f2f2f3; container-type: inline-size; color: #191d2b; }
.feature-copy { align-self: end; max-width: 27ch; }
.feature-copy h3 { margin: 0 0 .45rem; font-size: 1.05rem; line-height: 1.15; letter-spacing: -.035em; font-weight: 400; }
.feature-copy p { margin: 0; color: #66666e; font-size: clamp(.94rem, 1.15vw, 1.08rem); line-height: 1.45; }
.feature-scene strong { display: block; font-weight: 400; }
.mini-surface { background: white; border-radius: .55rem; box-shadow: 0 1px 3px #12142b0b, 0 9px 22px -8px #19214a22; }
.mini-label { color: #666871; font-size: .72rem; }
.flight-ticket { width: 78%; max-width: 15rem; padding: 6cqw; }
.airport-route { display: flex; align-items: center; gap: .5rem; margin-top: .8rem; font-size: clamp(1.15rem, 9cqw, 1.85rem); line-height: 1; letter-spacing: -.055em; }
.airport-route i { flex: 1; position: relative; height: 1px; background: #d8def4; }
.airport-route img { position: absolute; left: 68%; top: -.35rem; width: .7rem; height: .7rem; background: white; }
.airport-names, .ticket-fare, .notification-from { display: flex; align-items: center; justify-content: space-between; }
.airport-names, .ticket-fare span, .alert-note > span { color: #666871; font-size: .7rem; }
.airport-names { margin-top: .2rem; }
.ticket-fare { margin-top: .9rem; padding-top: .7rem; border-top: 1px dashed #dbdce1; }
.ticket-fare strong { color: var(--bound-blue); font-size: .9rem; }
@property --stay-points {
  syntax: "<integer>";
  inherits: false;
  initial-value: 850;
}
.stay-event { display: grid; justify-items: center; text-align: center; }
.points-mark { position: relative; width: clamp(3.5rem, 25cqw, 5rem); aspect-ratio: 276 / 147; margin-bottom: .45rem; }
.points-mark img { position: absolute; top: 0; left: 0; width: 54.348%; height: 100%; }
.points-mark img:nth-child(2) { left: 23.55%; --from-x: 45%; }
.points-mark img:nth-child(3) { left: 45.65%; --from-x: 82%; }
.points-total { color: var(--bound-blue); font-size: clamp(2.3rem, 18cqw, 3.8rem); line-height: 1.03; letter-spacing: -.06em; font-variant-numeric: tabular-nums; counter-reset: earned var(--stay-points, 850); }
.points-total::after { content: "+" counter(earned); }
.stay-event > span { margin-top: .2rem; font-size: .9rem; }
.stay-event small { margin-top: .68rem; color: #666871; font-size: .72rem; }

.status-scene { min-height: clamp(13rem, 20vw, 16.5rem); grid-template-columns: .8fr 1.2fr; gap: 6%; padding-inline: 8%; }
.status-summary { justify-self: start; }
.status-names, .status-cards { display: grid; }
.status-step { grid-area: 1 / 1; opacity: 0; }
.status-step:first-child { opacity: 1; }
.status-step:nth-child(1), .status-progress i:nth-child(1) { --phase: -.5s; }
.status-step:nth-child(2), .status-progress i:nth-child(2) { --phase: 2.5s; }
.status-step:nth-child(3), .status-progress i:nth-child(3) { --phase: 5.5s; }
.status-step:nth-child(4), .status-progress i:nth-child(4) { --phase: 8.5s; }
.status-names { margin: .35rem 0 .75rem; font-size: clamp(1.6rem, 7cqw, 2.6rem); line-height: 1; letter-spacing: -.05em; }
.status-progress { display: flex; gap: .2rem; }
.status-progress i { width: 1rem; height: 3px; border-radius: 2px; background: #d4d4da; }
.status-progress i:first-child { background: var(--indigo); }
.status-summary > span { display: block; margin-top: .45rem; color: #666871; font-size: .72rem; }
.status-cards { width: 100%; max-width: 17rem; transform: rotate(3deg); }
.status-cards img { width: 100%; border-radius: 5%; box-shadow: 0 6px 14px #17192e1c; }
.alert-stack { position: relative; width: 79%; max-width: 15rem; }
.alert-stack::before, .alert-stack::after { content: ''; position: absolute; inset: -.35rem 4% .35rem; background: #fafafa; border: 1px solid #e5e5e8; border-radius: .55rem; }
.alert-stack::before { inset: -.64rem 8% .6rem; }
.alert-note { position: relative; z-index: 1; padding: .85rem; }
.notification-from { justify-content: start; gap: .4rem; font-size: .75rem; }
.notification-from img, .chat-answer img { width: 1.35rem; height: 1.35rem; }
.notification-from small { margin-left: auto; color: #71717a; }
.alert-note > strong { margin: .65rem 0 .15rem; font-size: .99rem; letter-spacing: -.025em; }
.agent-chat { width: 82%; max-width: 16rem; display: grid; gap: .75rem; font-size: .8rem; line-height: 1.3; }
.chat-question, .chat-answer span { padding: .62rem .78rem; border-radius: .85rem; }
.chat-question { justify-self: end; max-width: 76%; background: #dfe6ff; color: var(--bound-blue); border-bottom-right-radius: .2rem; }
.chat-answer { display: flex; align-items: end; gap: .4rem; max-width: 93%; }
.chat-answer span { background: #fff; border-bottom-left-radius: .2rem; }

@media (prefers-reduced-motion: no-preference) {
  .in-view .airport-route img { animation: flight-path 5s ease-in-out infinite; }
  .in-view .points-mark img { animation: assemble-star 5.5s ease-in-out infinite; }
  .in-view .points-total { animation: count-stay 5.5s ease-out infinite; }
  .in-view .status-step { animation: upgrade 12s ease-in-out var(--phase) infinite both; }
  .in-view .status-progress i { animation: tier-marker 12s linear var(--phase) infinite both; }
  .in-view .alert-note { animation: message-in 5.8s ease-in-out infinite; }
  .in-view .chat-question { animation: message-in 7s ease-in-out infinite; }
  .in-view .chat-answer { animation: reply-in 7s ease-in-out infinite; }
}
@keyframes flight-path {
  0%, 8% { left: 0; opacity: 0; }
  18% { opacity: 1; }
  65%, 80% { left: 76%; opacity: 1; }
  95%, 100% { left: 76%; opacity: 0; }
}
@keyframes assemble-star {
  0%, 6%, 100% { transform: translateX(var(--from-x, -48%)); opacity: 0; }
  32%, 85% { transform: translateX(0); opacity: 1; }
}
@keyframes count-stay {
  0%, 12% { --stay-points: 0; opacity: 0; }
  22% { opacity: 1; }
  64%, 87% { --stay-points: 850; opacity: 1; }
  99%, 100% { --stay-points: 850; opacity: 0; }
}
@keyframes upgrade {
  0% { opacity: 0; translate: 0 .55rem; }
  4%, 24% { opacity: 1; translate: 0; }
  29%, 100% { opacity: 0; translate: 0 -.55rem; }
}
@keyframes tier-marker {
  0%, 24% { background: var(--indigo); }
  25%, 100% { background: #d4d4da; }
}
@keyframes message-in {
  0%, 100% { opacity: 0; translate: 0 .55rem; }
  13%, 87% { opacity: 1; translate: 0; }
}
@keyframes reply-in {
  0%, 24%, 100% { opacity: 0; translate: 0 .55rem; }
  36%, 87% { opacity: 1; translate: 0; }
}

@media (max-width: 900px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature, .feature-wide { grid-column: 1 / -1; }
  .feature-wide .feature-scene { grid-column: auto; aspect-ratio: 1.13; }
  .status-scene { min-height: 0; }
  .feature-copy { align-self: center; }
}
@media (max-width: 550px) {
  .feature-grid, .feature { grid-template-columns: minmax(0, 1fr); }
  .feature-grid { gap: 2.5rem; }
  .feature { gap: 1rem; }
  .feature-scene, .feature-wide .feature-scene { aspect-ratio: 1.65; }
  .feature-copy { max-width: 35ch; }
}
