/* Motion — the TravelUse landing-page language: one easing curve, fade-and-rise reveals,
   spring pops. Hidden-before-reveal states apply only under html.motion, which a tiny head
   script sets when the visitor has no reduced-motion preference; motion.js adds .in as
   things scroll into view. Only opacity and the individual translate/scale/rotate
   properties animate, so component transforms and hover states keep working. */
:root{
  --spring-pop:cubic-bezier(.34,1.56,.64,1);
  --spring-tag:cubic-bezier(.34,1.56,.64,1);
  --spring-lift:cubic-bezier(.34,1.3,.64,1);
  --spring-fan:cubic-bezier(.22,1,.36,1);
  --spring-pill:cubic-bezier(.22,1,.36,1);
}
/* Damped springs sampled from the TravelUse settings (stiffness / damping). */
@supports (transition-timing-function:linear(0,1)){
  :root{
    --spring-pop:linear(0,.025,.089,.179,.287,.402,.519,.631,.734,.827,.906,.972,1.025,1.064,1.092,1.109,1.117,1.119,1.115,1.107,1.095,1.082,1.068,1.055,1.041,1.029,1.019,1.009,1.002,.996,.992,.989,.987,.986,.986,.986,.988,.989,.991,.992,.994,.995,.997,.998,.999,1,1.001,1.001,1);
    --spring-tag:linear(0,.041,.135,.261,.415,.562,.701,.826,.937,1.019,1.08,1.121,1.144,1.151,1.146,1.132,1.113,1.092,1.069,1.047,1.028,1.012,.999,.989,.982,.979,.977,.978,.98,.982,.986,.989,.992,.995,.998,1,1.002,1.003,1.003,1.003,1.003,1.003,1.003,1.002,1.002,1.001,1.001,1,1);
    --spring-lift:linear(0,.025,.087,.174,.275,.384,.492,.596,.691,.776,.85,.912,.962,1.002,1.031,1.052,1.065,1.072,1.074,1.072,1.068,1.061,1.054,1.046,1.038,1.031,1.023,1.017,1.012,1.007,1.003,1,.998,.996,.995,.995,.995,.995,.995,.995,.996,.997,.997,.998,.998,.999,.999,.999,1);
    --spring-fan:linear(0,.012,.042,.085,.136,.193,.252,.312,.368,.425,.48,.531,.58,.624,.665,.703,.736,.767,.795,.82,.842,.862,.88,.896,.909,.921,.932,.941,.949,.957,.963,.968,.973,.977,.98,.983,.986,.988,.99,.992,.993,.994,.995,.996,.997,.997,.998,.998,1);
    --spring-pill:linear(0,.017,.053,.102,.16,.223,.288,.354,.418,.487,.545,.599,.649,.694,.735,.772,.805,.838,.863,.885,.904,.921,.935,.947,.957,.967,.974,.98,.985,.989,.992,.995,.997,.999,1,1.001,1.001,1.002,1.002,1.002,1.002,1.002,1.002,1.002,1.002,1.002,1.002,1.002,1);
  }
}

@keyframes m-rise{from{opacity:0;translate:0 var(--rise,28px)}}
@keyframes m-pop{from{opacity:0;scale:.5}}
@keyframes m-fade{from{opacity:0}}
@keyframes m-menu{from{opacity:0;translate:0 -6px;scale:.985}}
@keyframes m-sheet{from{opacity:0;translate:0 -8px}}
@keyframes m-dialog{from{opacity:0;translate:0 14px;scale:.97}}
@keyframes m-pulse{0%{box-shadow:0 0 0 0 rgb(18 183 106 / .45)}70%,100%{box-shadow:0 0 0 7px rgb(18 183 106 / 0)}}
/* If motion.js never loads, nothing stays hidden. */
@keyframes m-failsafe{to{opacity:1;translate:none;scale:none;rotate:none}}

/* ── Scroll reveals ─────────────────────────────────────── */
html.motion [data-reveal]:not(.in),
html.motion [data-reveal-group]:not(.in)>*{opacity:0;translate:0 var(--ry,24px)}
html.motion [data-reveal].in{transition:opacity .9s var(--ease) var(--d,0s),translate .9s var(--ease) var(--d,0s)}
html.motion [data-reveal-group].in>*{transition:opacity .9s var(--ease) calc(var(--d,0s) + var(--i,0) * 80ms),translate .9s var(--ease) calc(var(--d,0s) + var(--i,0) * 80ms)}
html.motion:not(.motion-ready) :is([data-reveal],[data-reveal-group]>*,.fan-card,.price-row,.chat-window :is(.bubble-row,.tool-line,.widget-card,.chat-answer)){animation:m-failsafe .4s ease 2.5s forwards}

/* ── Page heroes play once on load ──────────────────────── */
html.motion :is(.hero .yc-badge,.about-hero .yc-badge){animation:m-rise .9s var(--ease) both;--rise:12px}
html.motion .hero-line{animation:m-rise .9s var(--ease) .05s both}
html.motion .hero-line+.hero-line{animation-delay:.2s}
html.motion :is(.photo-cluster img,.agent-cluster .atile){animation:m-pop .67s var(--spring-pop) both}
html.motion .photo-cluster img:nth-child(1){animation-delay:.35s}
html.motion .photo-cluster img:nth-child(2){animation-delay:.43s}
html.motion .photo-cluster img:nth-child(3){animation-delay:.51s}
html.motion .agent-cluster .atile:nth-child(1){animation-delay:.55s}
html.motion .agent-cluster .atile:nth-child(2){animation-delay:.63s}
html.motion .agent-cluster .atile:nth-child(3){animation-delay:.71s}
html.motion .hero-lead{animation:m-rise .9s var(--ease) .32s both;--rise:16px}
html.motion .works-with{animation:m-rise .9s var(--ease) .45s both;--rise:16px}
html.motion .hero-actions{animation:m-rise .9s var(--ease) .55s both;--rise:16px}
html.motion .hero-checks{animation:m-rise .9s var(--ease) .62s both;--rise:16px}
html.motion .playground-stage{animation:m-rise .9s var(--ease) .7s both;--rise:48px}
/* Two-tone page titles: each line rises, then the lead and controls. */
html.motion :is(.pricing-hero,.mcp-hero,.q-hero,.about-hero) .two-tone>span{animation:m-rise .9s var(--ease) .05s both}
html.motion :is(.pricing-hero,.mcp-hero,.q-hero,.about-hero) .two-tone>span+span{animation-delay:.14s}
html.motion :is(.pricing-hero,.mcp-hero,.q-hero,.about-hero) .t-lead{animation:m-rise .9s var(--ease) .22s both;--rise:16px}
html.motion :is(.mcp-agents,.q-nav){animation:m-rise .9s var(--ease) .3s both;--rise:16px}
html.motion :is(.mcp-install,.about-facts-wrap){animation:m-rise .9s var(--ease) .45s both;--rise:48px}
html.motion .about-facts li{animation:m-pop .67s var(--spring-pop) both;animation-delay:calc(.75s + var(--i,0) * 80ms)}
html.motion .signin-panel{animation:m-rise .9s var(--ease) both;--rise:20px}
html.motion .signin-tile{animation:m-rise .9s var(--ease) .15s both;--rise:24px}

/* ── Compare fan: cards spring out of a stack behind the best price ── */
@media (min-width:1024px){
  html.motion .fan:not(.in) .fan-card{opacity:0;translate:var(--sx,0px) var(--sy,18px);rotate:calc(var(--rot,0deg) * -.65);scale:.9}
  html.motion .fan:not(.in) .fan-card.center{translate:0 8px;scale:.96}
  html.motion .fan.in .fan-card{--fd:calc(.25s + var(--o,0) * 70ms);transition:translate .95s var(--spring-fan) var(--fd),rotate .95s var(--spring-fan) var(--fd),scale .95s var(--spring-fan) var(--fd),opacity .35s var(--ease) .12s}
  html.motion .fan.in .fan-card.center{transition-delay:.25s,.25s,.25s,0s}
  html.motion .fan.done .fan-card{transition:translate .62s var(--spring-lift)}
  html.motion .fan.done .fan-card:hover{translate:0 -8px}
}
@media (max-width:1023px){
  html.motion .fan:not(.in)>.fan-card{opacity:0;translate:0 16px}
  html.motion .fan.in>.fan-card{transition:opacity .6s var(--ease) calc(var(--o,0) * 70ms),translate .6s var(--ease) calc(var(--o,0) * 70ms)}
}

/* ── Feature tiles: photos ease in closer; card rows slide in ── */
html.motion :is(.bento-tile,.about-story-tile)>img.bg{transition:scale 1.4s var(--ease)}
html.motion :is(.bento-tile,.about-story-tile):hover>img.bg{scale:1.04}
html.motion [data-reveal-group]:not(.in) .bento-card :is(.bento-hotel,.bento-room,.bento-cover,.chip-row>*){opacity:0;translate:-8px 0}
html.motion [data-reveal-group].in .bento-card :is(.bento-hotel,.bento-room,.bento-cover,.chip-row>*){--bd:calc(var(--i,0) * 80ms + .35s + var(--r,0) * 90ms);transition:opacity .5s var(--ease) var(--bd),translate .5s var(--ease) var(--bd)}

/* ── Chat window plays its conversation ──────────────────── */
html.motion .chat-window:not(.in) :is(.bubble-row,.tool-line,.widget-card,.chat-answer){opacity:0;translate:0 12px}
html.motion .chat-window.in :is(.bubble-row,.tool-line,.widget-card,.chat-answer){transition:opacity .6s var(--ease) var(--cd,0s),translate .6s var(--ease) var(--cd,0s)}
.chat-window .bubble-row{--cd:.25s}
.chat-window .tool-line{--cd:.85s}
.chat-window .widget-card{--cd:1.85s}
.chat-window .chat-answer{--cd:3.15s}
.chat-window .price-rows{--base:2.05s}
.signin-widget .price-rows{--base:.55s}
/* motion.js wraps the tool status so "Searching…" gives way to the result line. */
.tool-swap{display:inline-grid}
.tool-swap>*{grid-area:1/1;white-space:nowrap}
.tool-swap .tool-final{opacity:0}
html.motion .chat-window.in .tool-swap .tool-status{opacity:0;transition:opacity .3s ease 1.75s}
html.motion .chat-window.in .tool-swap .tool-final{opacity:1;transition:opacity .4s ease 1.9s}

/* ── Price rows rise in turn, bars grow, then the best rate lights up ── */
.price-rows{--settle:calc(var(--base,0s) + var(--n,4) * 70ms + .45s)}
.price-row .bar>i{transform-origin:left center}
html.motion .price-rows:not(.in) .price-row{opacity:0;translate:0 8px}
html.motion .price-rows:not(.in) .price-row.best{background-color:transparent}
html.motion .price-rows:not(.in) .bar>i{scale:0 1}
html.motion .price-rows:not(.in) .tag-best{opacity:0;scale:.6}
html.motion .price-rows.in .price-row{--rd:calc(var(--base,0s) + var(--i,0) * 70ms);transition:opacity .5s var(--ease) var(--rd),translate .5s var(--ease) var(--rd),background-color .5s ease var(--settle)}
html.motion .price-rows.in .bar>i{transition:scale 1.1s var(--ease) calc(var(--rd) + .12s)}
html.motion .price-rows.in .tag-best{transition:opacity .25s ease calc(var(--settle) + .05s),scale .69s var(--spring-tag) calc(var(--settle) + .05s)}

/* ── Live dots pulse ────────────────────────────────────── */
html.motion :is(.chat-head,.widget-card,.q-provider) .dot{animation:m-pulse 2s ease-out infinite}

/* ── Selected tab pills slide between options ────────────── */
.has-pill{position:relative}
.has-pill>:not(.seg-pill){position:relative;z-index:1}
.seg.has-pill>:is([aria-selected="true"],[aria-pressed="true"]){background:transparent;box-shadow:none}
.agentbar.has-pill>[aria-selected="true"]{background:transparent}
.seg-pill{position:absolute;left:0;top:0;z-index:0;border-radius:999px;background:#fff;box-shadow:0 1px 2px rgba(16,24,40,.08),0 2px 8px rgba(16,24,40,.06);pointer-events:none;transition:translate .39s var(--spring-pill),width .39s var(--spring-pill),height .39s var(--spring-pill)}
.agentbar .seg-pill{background:var(--ink);box-shadow:none}
.seg-pill.instant{transition:none}

/* ── Menus, sheets and dialogs ───────────────────────────── */
html.motion :is(.product-menu,.account-menu-panel):not([hidden]){animation:m-menu .45s var(--ease)}
html.motion .mobile-menu:not([hidden]){animation:m-sheet .4s var(--ease)}
html.motion :is(dialog#app-dialog,dialog.docs-search)[open]{animation:m-dialog .4s var(--ease)}
html.motion :is(dialog#app-dialog,dialog.docs-search)[open]::backdrop{animation:m-fade .3s ease}

/* ── Small interactions ──────────────────────────────────── */
html.motion :is(.btn,.text-link)>svg:last-child:not(:first-child){transition:translate .3s var(--ease)}
html.motion :is(.btn,.text-link):hover>svg:last-child:not(:first-child){translate:3px 0}
html.motion .copied svg{animation:m-pop .4s var(--spring-pop)}
html.motion :is(.faq-item,.pg-limits)[open]>:not(summary){animation:m-rise .45s var(--ease) both;--rise:-6px}

/* ── Quality chart: the line draws itself in ─────────────── */
html.motion .quality-chart-wrap:not(.in) .series-line{stroke-dasharray:1;stroke-dashoffset:1}
html.motion .quality-chart-wrap:not(.in) :is(.series-area,.series-focus){opacity:0}
html.motion .quality-chart-wrap.in .series-line{stroke-dasharray:1;stroke-dashoffset:0;transition:stroke-dashoffset 1.6s var(--ease) .2s}
html.motion .quality-chart-wrap.in :is(.series-area,.series-focus){transition:opacity .8s ease 1s}

@media (prefers-reduced-motion:reduce){
  html.motion *{animation:none!important;transition:none!important}
  html.motion :is([data-reveal],[data-reveal-group]>*,.fan-card,.price-row,.price-row .bar>i,.tag-best,.chat-window *){opacity:1!important;translate:none!important;scale:none!important;rotate:none!important}
}
@media print{
  html.motion *{animation:none!important;transition:none!important;opacity:1!important;translate:none!important;scale:none!important;rotate:none!important}
}
