/* Landing hero: animated tour of the XoozCar client app (sample data). Built by xoozcar-app-tour.js */
.at-stage { position: absolute; left: 0; top: 0; width: 375px; height: 812px; transform-origin: 0 0; font-family: var(--font-body, system-ui, sans-serif); color: #1B0B33; background: #F6F5FA; overflow: hidden; }
.at-stage * { box-sizing: border-box; }
.at-sc { position: absolute; inset: 0; opacity: 0; transform: translateX(40px); transition: opacity .35s ease, transform .45s cubic-bezier(.2,.8,.2,1); pointer-events: none; }
.at-sc.on { opacity: 1; transform: none; }
.at-sc.off { opacity: 0; transform: translateX(-40px); }
.at-status { display: flex; justify-content: space-between; padding: 14px 26px 6px; font-size: 12px; font-weight: 700; }

/* generic pieces */
.at-pop { opacity: 0; transform: translateY(14px) scale(.97); transition: opacity .35s ease, transform .4s cubic-bezier(.2,.9,.3,1.2); }
.at-pop.in { opacity: 1; transform: none; }
.at-h { font-weight: 800; letter-spacing: -.3px; }
.at-pill { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border-radius: 99px; font-size: 11px; font-weight: 700; background: #fff; color: #5B21B6; box-shadow: 0 2px 8px rgba(46,16,101,.12); }
.at-pill.g { background: #E6F6EE; color: #15803D; box-shadow: none; }
.at-btn { display: flex; align-items: center; justify-content: center; height: 48px; border-radius: 16px; font-weight: 800; font-size: 15px; background: #2E1065; color: #fff; }
.at-btn.o { background: #EA580C; box-shadow: 0 10px 22px -8px rgba(234,88,12,.55); }
.at-btn.t { transition: transform .15s; } .at-btn.press { transform: scale(.95); }

/* bottom nav */
.at-nav { position: absolute; left: 0; right: 0; bottom: 0; height: 72px; background: #fff; border-top: 1px solid #EDEAF4; display: flex; justify-content: space-around; align-items: center; padding-bottom: 8px; }
.at-nav i { width: 46px; height: 40px; border-radius: 14px; display: flex; align-items: center; justify-content: center; color: #8C82A0; }
.at-nav i.on { background: #F1EBFB; color: #2E1065; }
.at-nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* home */
.at-seg { margin: 6px 16px 0; display: grid; grid-template-columns: 1fr 1fr; background: #ECE8F6; border-radius: 14px; padding: 4px; font-size: 13px; font-weight: 700; text-align: center; color: #8C82A0; }
.at-seg b { background: #2E1065; color: #fff; border-radius: 11px; padding: 9px 0; }
.at-seg span { padding: 9px 0; }
.at-search { margin: 12px 16px 0; height: 48px; border-radius: 16px; background: #fff; border: 1px solid #E5E0F0; display: flex; align-items: center; gap: 10px; padding: 0 14px; color: #A9A2BC; font-size: 14px; }
.at-search svg { width: 20px; height: 20px; fill: none; stroke: #2E1065; stroke-width: 2; stroke-linecap: round; }
.at-cats { display: flex; gap: 22px; padding: 14px 16px 4px; font-size: 12px; font-weight: 700; color: #8C82A0; }
.at-cats span.on { color: #2E1065; border-bottom: 2px solid #EA580C; padding-bottom: 6px; }
.at-sec { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px 10px; }
.at-sec b { font-size: 17px; font-weight: 800; } .at-sec span { font-size: 12px; font-weight: 700; color: #EA580C; }
.at-row { display: flex; gap: 14px; padding: 0 16px; transition: transform .7s cubic-bezier(.4,0,.2,1); }
.at-card { flex: none; width: 320px; }
.at-photo { position: relative; height: 230px; border-radius: 22px; background: linear-gradient(160deg, #7B2FD3, #5B21B6); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.at-photo img { width: 92%; height: auto; display: block; }
.at-photo .at-pill { position: absolute; left: 12px; top: 12px; } .at-photo .at-pill + .at-pill { top: 44px; }
.at-photo .at-heart { position: absolute; right: 12px; top: 12px; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; }
.at-heart svg { width: 17px; height: 17px; fill: #fff; }
.at-meta { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 4px 0; }
.at-meta b { font-size: 17px; font-weight: 800; } .at-meta strong { font-size: 18px; font-weight: 800; } .at-meta small { color: #8C82A0; font-weight: 600; }
.at-loc { padding: 4px 4px 0; font-size: 12px; color: #EA580C; font-weight: 600; display: flex; justify-content: space-between; } .at-loc em { font-style: normal; color: #8C82A0; font-weight: 500; }
.at-car2 { background: linear-gradient(160deg, #3b2a63, #2E1065); } .at-car2 svg { width: 70%; fill: #c9bfe6; }

/* car view */
.at-hero { position: relative; height: 270px; background: linear-gradient(160deg, #7B2FD3, #5B21B6); display: flex; align-items: center; justify-content: center; }
.at-hero img { width: 82%; }
.at-back { position: absolute; left: 14px; top: 14px; width: 36px; height: 36px; border-radius: 50%; background: rgba(0,0,0,.35); }
.at-body { position: absolute; left: 0; right: 0; top: 246px; bottom: 0; background: #fff; border-radius: 26px 26px 0 0; padding: 20px 18px; }
.at-chips { display: flex; gap: 8px; flex-wrap: wrap; } .at-chips .at-pill { box-shadow: none; background: #F1EBFB; }
.at-title { font-size: 25px; font-weight: 800; letter-spacing: -.5px; margin: 14px 0 6px; color: #2E1065; }
.at-owner { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.at-av { width: 46px; height: 46px; border-radius: 50%; background: #EA580C; color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.at-owner b { font-size: 15px; } .at-owner small { display: block; color: #8C82A0; font-size: 12px; margin-top: 2px; } .at-ok { color: #15803D; font-size: 12px; font-weight: 700; margin-left: 6px; }
.at-info { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; font-size: 14px; font-weight: 700; color: #2E1065; }
.at-bar { position: absolute; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid #EDEAF4; padding: 14px 16px 22px; border-radius: 22px 22px 0 0; box-shadow: 0 -10px 30px rgba(46,16,101,.1); }
.at-bar .r { display: flex; justify-content: space-between; align-items: center; }
.at-bar .r b { font-size: 22px; font-weight: 800; } .at-bar .r small { color: #8C82A0; font-weight: 700; font-size: 13px; }
.at-bar .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }

/* sheets */
.at-shade { position: absolute; inset: 0; background: rgba(20,8,40,.5); opacity: 0; transition: opacity .3s; }
.at-shade.in { opacity: 1; }
.at-sheet { position: absolute; left: 0; right: 0; bottom: 0; background: #fff; border-radius: 26px 26px 0 0; padding: 18px 18px 26px; transform: translateY(105%); transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.at-sheet.in { transform: none; }
.at-sheet h4 { margin: 0 0 4px; font-size: 20px; font-weight: 800; }
.at-sheet .sub { color: #8C82A0; font-size: 13px; }
.at-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px 0; margin-top: 14px; text-align: center; font-size: 15px; font-weight: 600; }
.at-cal .w { color: #2E1065; font-weight: 800; font-size: 12px; padding-bottom: 4px; }
.at-cal span { height: 38px; display: flex; align-items: center; justify-content: center; border-radius: 50%; position: relative; z-index: 1; transition: background .25s, color .25s; }
.at-cal span.x { color: #CFC9DD; text-decoration: line-through; }
.at-cal span.mid { background: #FBD5C0; border-radius: 0; } .at-cal span.sel { background: #EA580C; color: #fff; }
.at-total { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; }
.at-total b { font-size: 24px; font-weight: 800; } .at-total small { display: block; color: #8C82A0; font-size: 12px; }
.at-total .at-btn { width: 130px; height: 46px; }
.at-field { margin: 16px 0 12px; height: 62px; border: 2px solid #EA580C; border-radius: 16px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; font-size: 28px; font-weight: 800; color: #2E1065; }
.at-field small { font-size: 14px; color: #8C82A0; font-weight: 700; }
.at-caret::after { content: ""; display: inline-block; width: 2px; height: 28px; background: #EA580C; margin-left: 2px; vertical-align: -5px; animation: atBlink .7s steps(2) infinite; }
@keyframes atBlink { 50% { opacity: 0; } }
.at-toast { position: absolute; left: 20px; right: 20px; top: 70px; background: #2E1065; color: #fff; border-radius: 16px; padding: 14px 16px; font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 10px; transform: translateY(-120px); transition: transform .5s cubic-bezier(.2,.9,.3,1.2); }
.at-toast.in { transform: none; } .at-toast i { width: 26px; height: 26px; border-radius: 50%; background: #15803D; display: flex; align-items: center; justify-content: center; font-style: normal; }

/* confirmed + QR */
.at-done { padding: 54px 24px 0; text-align: center; }
.at-tick { width: 84px; height: 84px; margin: 0 auto 16px; border-radius: 50%; background: #E6F6EE; display: flex; align-items: center; justify-content: center; }
.at-tick svg { width: 42px; height: 42px; fill: none; stroke: #15803D; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; transition: stroke-dashoffset .6s .2s ease; }
.at-tick.in svg { stroke-dashoffset: 0; }
.at-done h4 { font-size: 24px; font-weight: 800; margin: 0 0 6px; } .at-done p { margin: 0; color: #8C82A0; font-size: 14px; }
.at-qrbox { width: 210px; margin: 26px auto 14px; padding: 16px; background: #fff; border-radius: 22px; box-shadow: 0 14px 34px -14px rgba(46,16,101,.35); }
.at-qrbox svg { width: 100%; display: block; }
.at-done .t { font-weight: 800; font-size: 15px; }

/* finger */
.at-finger { position: absolute; left: 0; top: 0; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: rgba(46,16,101,.22); border: 2px solid rgba(46,16,101,.45); opacity: 0; z-index: 50; transition: transform .6s cubic-bezier(.4,0,.2,1), opacity .25s; pointer-events: none; }
.at-finger.on { opacity: 1; } .at-finger.tap { animation: atTap .35s ease; }
@keyframes atTap { 50% { transform: var(--p) scale(.7); background: rgba(234,88,12,.45); } }

@media (prefers-reduced-motion: reduce) { .at-sc, .at-pop, .at-sheet, .at-row { transition: none; } .at-caret::after { animation: none; } }
