:root {
  --motion-ease: cubic-bezier(.22,.75,.23,1);
}
.hero h1 > :is(span, em) { display: block; }
.hero-queue { position: absolute; z-index: 1; bottom: 1.25rem; right: 1.25rem; display: flex; align-items: center; gap: .38rem; max-width: 46%; padding: .5rem .65rem; border: 1px solid #fff4; border-radius: .55rem; background: #312121cf; color: #fff7f4; font-size: .79rem; font-weight: 650; }
.hero-queue svg { color: #ffc0bb; }
.hero-agent { z-index: 2; }
.mock[data-showcase] { position: relative; }
.motion-meter { position: absolute; z-index: 1; top: 0; inset-inline: 0; height: 3px; pointer-events: none; overflow: hidden; }
.motion-meter span { display: block; background: var(--motion-accent, #b95e68); height: 100%; transform: scaleX(0); transform-origin: left center; }
.agent-mock { --motion-accent: #ffc5c6; }
.crm-mock { --motion-accent: #5e9271; }
.operations-mock { --motion-accent: #b27862; }
.agent-section { background: radial-gradient(ellipse at 93% 16%, #a34a62a3, transparent 54%), linear-gradient(132deg, #281b2b, #412237 56%, #4f2534); }
.agent-launch { grid-template-columns: minmax(0,.82fr) minmax(0,1.18fr); }
.agent-mock .mock-top { padding: .96rem 1.15rem; }
.agent-mock .mock-controls { padding-inline: 1.15rem; }
.agent-mock-body { padding: 1.2rem 1.15rem .95rem; }
.agent-mock-scenes { min-height: 15rem; }
.agent-mock .mock-message { padding: .72rem .85rem; }
.agent-mock .mock-proposal { margin-top: 1rem; width: min(94%, 31rem); padding: .9rem; }
.agent-mock .mock-steps { border-top: 1px solid #ffffff24; }
.agent-mock .mock-bottom { padding-inline: 1.15rem; }
.tour-story { display: block; padding-block: clamp(2.6rem, 6vw, 5.4rem); }
.tour-story:last-child { padding-bottom: 0; }
.tour-copy { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0,.85fr); grid-template-areas: "label label" "title detail" "title cta"; column-gap: clamp(1.7rem, 6vw, 5.45rem); align-items: start; margin-bottom: clamp(1.35rem, 3.2vw, 2.65rem); }
.tour-copy .kicker { grid-area: label; }
.tour-copy h3 { grid-area: title; max-width: 14.5em; font-size: clamp(2.3rem, 4.45vw, 4.25rem); }
.tour-copy p { grid-area: detail; max-width: 29rem; }
.tour-copy .button { grid-area: cta; justify-self: start; margin-top: .9rem; }
.tour-stage { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) clamp(10.6rem, 18%, 13rem); gap: clamp(.8rem, 3vw, 2.5rem); align-items: center; border: 1px solid #392e4e25; border-radius: 1.45rem; min-height: 27rem; padding: clamp(1.25rem, 4.4vw, 3.65rem); background: radial-gradient(ellipse at 82% 13%, var(--stage-glow, #eb8c7966), transparent 57%), var(--stage-fill, linear-gradient(134deg, #312331 8%, #8d364a 63%, #ac4745)); }
.tour-stage::before { content: ""; z-index: -1; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(#ffeefc58 .75px, transparent .75px) 0 0/16px 16px; mask-image: linear-gradient(120deg, #0009, transparent 50%, #0009); pointer-events: none; }
.crm-stage { --stage-glow: #5abeb075; --stage-fill: linear-gradient(132deg, #182f3a 8%, #23615e 62%, #2e7061); --stage-accent: #b7fae0; }
.operations-stage { --stage-glow: #7aa4e58c; --stage-fill: linear-gradient(135deg, #1b253d 5%, #253d71 64%, #375da9); --stage-accent: #cadeff; }
.finance-stage { --stage-glow: #ec82ae75; --stage-fill: linear-gradient(130deg, #302441 8%, #67416f 64%, #824466); --stage-accent: #ffceec; }
.tour-stage .tour-mock { box-shadow: 0 22px 65px #16102650; }
.tour-mock .mock-top { padding: .78rem 1.05rem; }
.tour-mock-inner { min-height: 18.4rem; padding: 1rem; }
.tour-mock .mock-app strong { font-size: 1.055rem; }
.stage-aside { min-width: 0; background: #13102350; box-shadow: 0 8px 25px #21142c22; border: 1px solid #ffffff38; border-radius: .9rem; padding: .9rem; overflow-wrap: anywhere; display: grid; gap: .45rem; }
.stage-heading { color: var(--stage-accent, #ffd2ca); display: flex; gap: .38rem; align-items: center; font-size: .79rem; font-weight: 750; }
.stage-aside strong { color: #fff; font: 800 1.13rem/1.26 var(--display); letter-spacing: -.041em; }
.stage-aside > span:nth-last-child(2) { color: #fff8f4; font-size: .83rem; }
.stage-caption { color: #fff4f3; font-size: .75rem; border-top: 1px solid #ffffff38; padding-top: .5rem; margin-top: .13rem; }
.property-sheet { align-items: stretch; grid-template-columns: 1.24fr .76fr; padding: .55rem; }
.property-photo { min-width: 0; overflow: hidden; border-radius: .52rem; }
.property-photo img { display: block; width: 100%; height: 100%; min-height: 11rem; max-height: 14.5rem; object-fit: cover; }
.property-sheet-copy { justify-content: center; gap: .38rem; padding-inline: .26rem; }
.property-sheet-copy > strong { font-size: clamp(1.12rem, 2vw, 1.65rem); }
.property-sheet-copy .property-price { font-size: clamp(1.35rem, 2.4vw, 1.92rem); }
.property-pipeline > div, .calendar-preview > div { min-height: 12.35rem; padding: .72rem .57rem; }
.property-pipeline h4, .calendar-preview h4 { padding-bottom: .28rem; }
.pipeline-card, .calendar-event { padding: .55rem; gap: .27rem; }
.calendar-event-muted { border-color: #a9aeae; }
.calendar-event-muted > span { color: #575e60; }
.crm-overview { gap: .7rem; }
.crm-contact, .crm-demand { min-height: 7rem; padding: .8rem; }
.crm-timeline { margin-top: .7rem; }
.crm-timeline > div, .document-preview > div { padding: .68rem; }
.deal-summary, .cash-summary { padding: .85rem; min-height: 4.2rem; }
.deal-track { position: relative; isolation: isolate; margin: 1.5rem 0 1.25rem; }
.deal-track li span { width: 2.55rem; height: 2.55rem; }
.deal-track li:not(:last-child)::after { content: none; }
.deal-track::before, .deal-track::after { content: ""; position: absolute; z-index: -1; top: 1.23rem; left: 12.5%; width: 75%; height: 2px; background: #e7d0cd; }
.deal-track::after { width: 50%; background: #c57d82; transform-origin: left center; }
.cash-chart { height: 10.1rem; margin-top: .8rem; }
.cash-chart li span { width: min(100%, 3.25rem); }
.agency-day { background: linear-gradient(140deg, #fbe4e6, #fff8f4 56%, #eae8f6); border-top: 1px solid var(--edge); }
.day-layout { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: clamp(1.6rem, 6vw, 5rem); align-items: center; }
.day-layout header .button { margin-top: 1.2rem; }
.day-mock { background: white; border: 1px solid var(--edge); box-shadow: 0 15px 44px #6b3b4119; }
.day-controls { gap: .45rem; }
.day-controls .mock-tab { display: grid; justify-content: start; gap: .12rem; min-height: 2.8rem; }
.day-controls .mock-tab small { font-size: .75rem; opacity: .8; }
.day-scene { display: grid; grid-template-columns: auto minmax(0,1fr); align-content: center; gap: .9rem; padding: clamp(.85rem, 3.1vw, 2.2rem); min-height: 15rem; border-top: 1px solid var(--line); background: linear-gradient(132deg, #fdf2ef, #fffefa 75%); }
.day-symbol { display: inline-grid; place-items: center; width: 3.2rem; height: 3.2rem; border-radius: .75rem; background: #f2d5d2; color: var(--red-dark); font-size: 1.45rem; }
.day-scene h3 { margin: .35rem 0; font-size: clamp(1.22rem, 2.45vw, 2.1rem); line-height: 1.18; letter-spacing: -.045em; }
.day-scene p { color: var(--body); }
.day-tags { display: flex; flex-wrap: wrap; gap: .32rem; margin-top: .7rem; }
.day-tags span { border: 1px solid var(--edge); border-radius: 2rem; color: var(--red-dark); background: white; padding: .19rem .48rem; font-size: .8rem; font-weight: 650; }

@keyframes rise-in { from { opacity: .28; transform: translateY(17px); } to { opacity: 1; transform: none; } }
@keyframes slide-in { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
@keyframes wide-photo { from { transform: scale(1.018); } to { transform: scale(1.085) translate(-.9%,-.4%); } }
@keyframes draw-line { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes raise-bar { from { transform: scaleY(.02); } to { transform: scaleY(1); } }
@keyframes step-in { from { transform: scale(.8); opacity: .15; } to { transform: none; opacity: 1; } }
@keyframes active-step { 55% { box-shadow: 0 0 0 8px #af53594a; } }
@keyframes step-light { from { opacity: .2; } to { opacity: 1; } }

[data-motion="running"] :is([data-reveal].is-revealed, .feature-strip.is-revealed a) { animation: rise-in .72s var(--motion-ease) both; }
[data-motion="running"] .feature-strip.is-revealed a:nth-child(2) { animation-delay: 80ms; }
[data-motion="running"] .feature-strip.is-revealed a:nth-child(3) { animation-delay: 160ms; }
[data-motion="running"] .feature-strip.is-revealed a:nth-child(4) { animation-delay: 240ms; }
[data-motion="running"] .hero.is-revealed .hero-content > * { animation: rise-in .68s var(--motion-ease) both; }
[data-motion="running"] .hero.is-revealed h1 { animation-delay: 100ms; }
[data-motion="running"] .hero.is-revealed .hero-content > p { animation-delay: 185ms; }
[data-motion="running"] .hero.is-revealed .hero-actions { animation-delay: 265ms; }
[data-motion="running"] .hero.is-revealed .hero-note { animation-delay: 365ms; }
[data-motion="running"] .hero.is-revealed .hero-picture { animation: rise-in .9s 70ms var(--motion-ease) both; }
[data-motion="running"] .hero.is-in-view .hero-picture img { animation: wide-photo 20s alternate infinite ease-in-out; }
[data-motion="running"] .hero.is-in-view .hero-agent.is-updating { animation: slide-in .38s var(--motion-ease) both; }
[data-motion="running"] .hero.is-in-view .hero-queue.is-updating { animation: slide-in .45s 160ms var(--motion-ease) both; }
[data-motion="running"] .is-counting .motion-meter span { animation: draw-line var(--tour-duration, 7200ms) linear both; }
[data-motion="running"] .mock-scene.is-playing { animation: rise-in .52s var(--motion-ease) both; }
[data-motion="running"] .mock-scene.is-playing .mock-message { animation: slide-in .53s .14s var(--motion-ease) both; }
[data-motion="running"] .mock-scene.is-playing .mock-proposal { animation: rise-in .65s 1.12s var(--motion-ease) both; }
[data-motion="running"] .mock-scene.is-playing .mock-kv > div { animation: rise-in .39s 1.55s var(--motion-ease) both; }
[data-motion="running"] .mock-scene.is-playing .mock-kv > div:nth-child(2) { animation-delay: 1.68s; }
[data-motion="running"] .mock-scene.is-playing .mock-kv > div:nth-child(3) { animation-delay: 1.81s; }
[data-motion="running"] .agent-mock.is-reading :is(.mock-proposal, .mock-kv > div) { animation-fill-mode: both; }
[data-motion="running"] .agent-mock.is-reading .mock-steps li:nth-child(1) { animation: step-light .5s .25s both; }
[data-motion="running"] .agent-mock.is-reading .mock-steps li:nth-child(2) { animation: step-light .65s 1.08s both; }
[data-motion="running"] [data-approved] .mock-steps li:last-child span { animation: active-step .52s var(--motion-ease); }
[data-motion="running"] .mock-scene.is-playing :is(.pipeline-card, .calendar-event, .crm-timeline > div, .document-preview > div, .day-tags span, .property-sheet-copy > *) { animation: rise-in .55s .28s var(--motion-ease) both; }
[data-motion="running"] .mock-scene.is-playing :is(.property-pipeline > div:nth-child(2) .pipeline-card, .calendar-preview > div:nth-child(2) .calendar-event, .crm-timeline > div:nth-child(2), .document-preview > div:nth-child(2), .day-tags span:nth-child(2), .property-sheet-copy > :nth-child(2)) { animation-delay: .56s; }
[data-motion="running"] .mock-scene.is-playing :is(.property-pipeline > div:nth-child(3) .pipeline-card, .calendar-preview > div:nth-child(3) .calendar-event, .document-preview > div:nth-child(3), .day-tags span:nth-child(3), .property-sheet-copy > :nth-child(n+3)) { animation-delay: .88s; }
[data-motion="running"] .mock-scene.is-playing .property-photo img { animation: wide-photo 6.6s ease-out both; }
[data-motion="running"] .mock-scene.is-playing .deal-track::after { animation: draw-line 1.25s .3s var(--motion-ease) both; }
[data-motion="running"] .mock-scene.is-playing .deal-track li span { animation: step-in .5s var(--motion-ease) both; }
[data-motion="running"] .mock-scene.is-playing .deal-track li:nth-child(2) span { animation-delay: .5s; }
[data-motion="running"] .mock-scene.is-playing .deal-track .deal-current span { animation: step-in .55s 1s var(--motion-ease) both, active-step .75s 1.45s ease-out; }
[data-motion="running"] .mock-scene.is-playing .deal-track li:last-child span { animation-delay: 1.24s; }
[data-motion="running"] .mock-scene.is-playing .cash-chart li span { animation: raise-bar .95s var(--delay, 0ms) var(--motion-ease) both; }
[data-motion="running"] .mock-scene.is-playing .record-table tbody tr { animation: rise-in .55s var(--motion-ease) both; }
[data-motion="running"] .mock-scene.is-playing .record-table tbody tr:nth-child(2) { animation-delay: .28s; }
[data-motion="running"] .mock-scene.is-playing .record-table tbody tr:nth-child(3) { animation-delay: .56s; }
[data-motion="running"] .stage-aside.is-updating :is(strong, [data-stage-detail]) { animation: rise-in .5s var(--motion-ease) both; }
[data-motion="running"] .faq-list details[open] p { animation: rise-in .38s var(--motion-ease); }
[data-motion="paused"] { scroll-behavior: auto; }

@media (max-width: 64rem) {
  .hero-queue { display: none; }
  .tour-stage { grid-template-columns: minmax(0,1fr) 9.5rem; }
}
@media (max-width: 46rem) {
  .tour-stage { grid-template-columns: minmax(0,1fr); min-height: 0; }
  .stage-aside { grid-template-columns: minmax(0,1fr) auto; align-items: center; }
  .stage-heading, .stage-aside [data-stage-detail] { grid-column: 1 / -1; }
  .stage-aside strong { grid-column: 1 / -1; }
  .stage-caption { display: none; }
}
@media (max-width: 39rem) {
  .agent-launch, .day-layout { grid-template-columns: minmax(0,1fr); }
  .tour-copy { display: block; }
  .tour-copy h3 { font-size: clamp(2.1rem, 8vw, 3rem); }
  .tour-stage { border-radius: .95rem; padding: .55rem; gap: .5rem; }
  .tour-stage .mock { border-radius: .7rem; }
  .agent-mock :is(.mock-top, .mock-controls, .mock-bottom, .agent-mock-body), .tour-mock :is(.mock-top, .tour-mock-inner) { padding-inline: .62rem; }
  .tour-mock-inner { min-height: 15.8rem; }
  .stage-aside { padding: .62rem; border-radius: .6rem; }
  .property-pipeline > div, .calendar-preview > div { padding: .4rem .29rem; min-height: 9.4rem; }
  .pipeline-card, .calendar-event { padding: .42rem .28rem; }
  .property-photo img { min-height: 9rem; }
  .crm-demand, .crm-contact { padding: .55rem; }
  .day-scene { min-height: 16.3rem; gap: .61rem; }
  .day-symbol { width: 2.4rem; height: 2.4rem; font-size: 1.12rem; }
}
@media (max-width: 23rem) {
  .stage-heading { font-size: .73rem; }
  .day-tags span, .property-details, .pipeline-card, .calendar-event { font-size: .72rem; }
  .deal-track li { font-size: .73rem; }
  .mock-controls { column-gap: .24rem; }
}
@media (prefers-reduced-motion: reduce) {
  [data-motion="running"] *, [data-motion="running"] *::before, [data-motion="running"] *::after { animation: none !important; scroll-behavior: auto !important; }
}
