/* ── Landing + login pages (light pages: no jQuery/Chart.js) ── */

/* carousel captions fade between slides */
.car-cap { transition: opacity .3s ease; }
.car-cap.fade { opacity: 0; }
.car-dots button { transition: width .3s ease, background .3s ease; }
.car-view { container-type: inline-size; }

/* ── Live dashboard mock (first slide) ── */
.car-slide.live { background: #FAF8F5; }
.dm { --o:#F68C21; --od:#C46A0E; --ink:#2B2C31; --mut:#8A8B90; --ln:#EEEAE4;
  font-family: Manrope, system-ui, sans-serif; color: var(--ink);
  font-size: 1.18cqw; width: 100%; height: 100%; position: relative; display: grid; grid-template-columns: 15.5em 1fr; overflow: hidden; text-align: left; }
.dm * { box-sizing: border-box; }
.dm-side { background: #fff; border-right: 1px solid var(--ln); padding: 1.6em 1.1em; display: flex; flex-direction: column; gap: .3em; }
.dm-brand { display: flex; align-items: center; gap: .7em; margin-bottom: 1.6em; font-family: Sora, Manrope, sans-serif; font-weight: 700; font-size: 1.15em; }
.dm-brand img { width: 2.3em; height: 2.3em; }
.dm-brand span { color: var(--o); }
.dm-nav { display: flex; align-items: center; gap: .75em; padding: .65em .8em; border-radius: .7em; color: #5F6067; font-weight: 600; }
.dm-nav i { width: 1.1em; text-align: center; color: #A3A4AA; }
.dm-nav.on { background: #FEF0E1; color: #B55E08; }
.dm-nav.on i { color: var(--o); }
.dm-side .dm-loc { margin-top: auto; background: #FAF8F5; border: 1px solid var(--ln); border-radius: .8em; padding: .7em .8em; font-size: .9em; }
.dm-side .dm-loc b { display: block; font-size: 1.05em; }
.dm-side .dm-loc small { color: var(--mut); }

.dm-main { padding: 1.5em 1.8em; display: grid; grid-template-rows: auto auto 1fr; gap: 1.2em; min-width: 0; }
.dm-top { display: flex; align-items: center; gap: 1em; }
.dm-top h3 { font-family: Sora, Manrope, sans-serif; font-size: 1.55em; font-weight: 700; margin: 0; letter-spacing: -.03em; }
.dm-top p { margin: .15em 0 0; color: var(--mut); font-size: .95em; }
.dm-pill { margin-left: auto; display: flex; align-items: center; gap: .5em; background: #fff; border: 1px solid var(--ln); border-radius: 2em; padding: .5em 1em; font-weight: 600; font-size: .92em; }
.dm-pill i { color: var(--o); }
.dm-btn { background: var(--ink); color: #fff; border-radius: .7em; padding: .6em 1.1em; font-weight: 700; font-size: .92em; display: flex; gap: .5em; align-items: center; }

.dm-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1em; }
.dm-k { background: #fff; border: 1px solid var(--ln); border-radius: 1em; padding: 1em 1.1em; position: relative; overflow: hidden; }
.dm-k .l { color: var(--mut); font-size: .88em; font-weight: 600; display: flex; align-items: center; gap: .5em; }
.dm-k .l i { width: 2em; height: 2em; border-radius: .6em; display: grid; place-items: center; font-size: .95em; }
.dm-k .v { font-family: Sora, Manrope, sans-serif; font-weight: 700; font-size: 1.6em; margin-top: .45em; letter-spacing: -.03em; white-space: nowrap; }
.dm-k .d { font-size: .82em; font-weight: 700; margin-top: .2em; }
.up { color: #16A34A; } .dn { color: #DC2626; }
.t-o { background: #FEF0E1; color: #E5770C; } .t-g { background: #E8F7EE; color: #16A34A; }
.t-r { background: #FDECEC; color: #DC2626; } .t-v { background: #F1EBFE; color: #7C3AED; }
.dm-ring { position: absolute; right: 1em; top: 50%; width: 3.6em; height: 3.6em; transform: translateY(-50%) rotate(-90deg); }
.dm-ring circle { fill: none; stroke-width: 5; }
.dm-ring .bg { stroke: #F1ECE4; }
.dm-ring .fg { stroke: var(--o); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; }

.dm-row { display: grid; grid-template-columns: 1.75fr 1fr; gap: 1em; min-height: 0; }
.dm-card { background: #fff; border: 1px solid var(--ln); border-radius: 1em; padding: 1em 1.2em; min-height: 0; display: flex; flex-direction: column; }
.dm-card h4 { font-family: Sora, Manrope, sans-serif; font-size: 1.02em; font-weight: 700; margin: 0 0 .2em; display: flex; align-items: center; gap: .6em; }
.dm-card h4 small { margin-left: auto; font-family: Manrope, sans-serif; color: var(--mut); font-weight: 600; font-size: .82em; display: flex; gap: 1em; }
.dm-card h4 small b { display: inline-block; width: .7em; height: .7em; border-radius: 50%; margin-right: .35em; vertical-align: -.05em; }
.dm-chart { flex: 1; min-height: 0; position: relative; }
.dm-chart svg { width: 100%; height: 100%; display: block; overflow: visible; }
.dm-chart .grid line { stroke: #F1ECE4; stroke-width: 1; vector-effect: non-scaling-stroke; }
.dm-chart .rev { fill: none; stroke: var(--o); stroke-width: 2.6; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.dm-chart .exp { fill: none; stroke: #DC2626; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: .75; }
.dm-chart .area { fill: url(#dmGrad); opacity: 0; }
.dm-days { display: flex; justify-content: space-between; color: var(--mut); font-size: .78em; font-weight: 600; padding-top: .4em; }

.dm-rooms { display: flex; flex-direction: column; gap: .62em; margin-top: .5em; }
.dm-room { display: grid; grid-template-columns: 4.8em 1fr 5.2em; align-items: center; gap: .6em; font-size: .88em; font-weight: 600; }
.dm-room .bar { height: .7em; background: #F4F0EA; border-radius: 1em; overflow: hidden; }
.dm-room .bar i { display: block; height: 100%; border-radius: 1em; background: linear-gradient(90deg, #FBA94C, var(--o)); transform-origin: left; transform: scaleX(0); }
.dm-room .amt { text-align: right; color: var(--mut); }
.dm-sales { margin-top: .9em; border-top: 1px solid var(--ln); padding-top: .7em; display: flex; flex-direction: column; gap: .45em; }
.dm-sale { display: flex; align-items: center; gap: .6em; font-size: .86em; opacity: 0; transform: translateY(.6em); }
.dm-sale i { width: 1.9em; height: 1.9em; border-radius: .55em; display: grid; place-items: center; font-size: .9em; }
.dm-sale b { font-weight: 700; } .dm-sale small { color: var(--mut); display: block; font-size: .9em; }
.dm-sale .amt { margin-left: auto; font-weight: 700; }

.dm-toast { position: absolute; right: 1.6em; bottom: 1.6em; background: var(--ink); color: #fff; border-radius: .9em; padding: .75em 1.1em; display: flex; gap: .7em; align-items: center;
  font-size: 1.12em; box-shadow: 0 1em 2em -1em rgba(0,0,0,.45); opacity: 0; transform: translateY(1em) scale(.96); }
.dm-toast i { width: 2em; height: 2em; border-radius: 50%; background: #16A34A; display: grid; place-items: center; }
.dm-toast small { display: block; opacity: .7; font-size: .8em; }

/* play state (added by landing.js whenever the slide is shown) */
.play .dm-ring .fg { transition: stroke-dashoffset 1.4s cubic-bezier(.3,.7,.2,1) .3s; stroke-dashoffset: 25; }
.play .dm-chart .rev { animation: dmDraw 1.8s cubic-bezier(.4,.1,.2,1) .25s forwards; }
.play .dm-chart .exp { animation: dmDraw 1.8s cubic-bezier(.4,.1,.2,1) .55s forwards; }
.play .dm-chart .area { animation: dmFade .9s ease 1.4s forwards; }
.play .dm-room .bar i { animation: dmGrow 1.1s cubic-bezier(.3,.7,.2,1) forwards; }
.play .dm-room:nth-child(2) .bar i { animation-delay: .12s; } .play .dm-room:nth-child(3) .bar i { animation-delay: .24s; }
.play .dm-room:nth-child(4) .bar i { animation-delay: .36s; } .play .dm-room:nth-child(5) .bar i { animation-delay: .48s; }
.play .dm-sale { animation: dmIn .5s ease forwards; }
.play .dm-sale:nth-child(1) { animation-delay: 1.1s; } .play .dm-sale:nth-child(2) { animation-delay: 1.3s; } .play .dm-sale:nth-child(3) { animation-delay: 1.5s; }
.play .dm-toast { animation: dmToast 3.4s ease 2.6s forwards; }
.play .dm-k { animation: dmIn .5s ease both; }
.play .dm-k:nth-child(2) { animation-delay: .08s; } .play .dm-k:nth-child(3) { animation-delay: .16s; } .play .dm-k:nth-child(4) { animation-delay: .24s; }
.dm-pulse { animation: dmPulse 1s ease; }
@keyframes dmDraw { to { stroke-dashoffset: 0; } }
@keyframes dmFade { to { opacity: 1; } }
@keyframes dmGrow { to { transform: scaleX(var(--w, 1)); } }
@keyframes dmIn { from { opacity: 0; transform: translateY(.6em); } to { opacity: 1; transform: none; } }
@keyframes dmToast { 0% { opacity: 0; transform: translateY(1em) scale(.96); } 12%, 82% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(.4em); } }
@keyframes dmPulse { 0% { background: #FEF0E1; } 100% { background: #fff; } }

@container (max-width: 620px) {
  .dm { grid-template-columns: 1fr; font-size: 1.85cqw; }
  .dm-main { padding: 1.2em 1.3em; gap: .8em; }
  .dm-side, .dm-pill, .dm-top p, .dm-k .d, .dm-row > .dm-card:last-child { display: none; }
  .dm-kpis { grid-template-columns: 1fr 1fr; gap: .7em; }
  .dm-k { padding: .8em 1em; } .dm-k .v { font-size: 1.45em; margin-top: .3em; }
  .dm-ring { width: 3em; height: 3em; }
  .dm-row { grid-template-columns: 1fr; }
  .dm-toast { right: 1em; bottom: 1em; font-size: 1em; }
}

/* ── Login / setup page: light and warm ── */
.auth .art { background: radial-gradient(700px 420px at 15% 0%, rgba(246,140,33,.20), transparent 60%),
                         radial-gradient(600px 380px at 100% 100%, rgba(246,140,33,.12), transparent 60%), #FFF8F1;
  color: #2B2C31; border-right: 1px solid #F3E7DA; }
.auth .art:after { border-color: rgba(246,140,33,.22); }
.auth .art:before { border-color: rgba(246,140,33,.16); }
.auth .art .brand .t { color: #2B2C31 !important; }
.auth .art .brand .t span { color: #F68C21; }
.auth .art h2 { color: #2B2C31; font-weight: 700; }
.auth .art h2 span { color: #E5770C; }
.auth .art p { color: #5F6067; opacity: 1; }
.auth .art .feat { color: #4B4C52; opacity: 1; font-weight: 600; }
.auth .art .feat i { color: #F68C21; margin-right: 4px; }
.auth .formside { background: #fff; }

.auth .mini { position: relative; z-index: 1; width: min(360px, 100%); margin-top: 26px; background: #fff; border: 1px solid #F1E6DA; border-radius: 16px; padding: 16px 18px;
  box-shadow: 0 30px 60px -30px rgba(120,60,0,.35); animation: miniFloat 6s ease-in-out infinite; }
.auth .mini .l { color: #8A8B90; font-size: .8rem; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.auth .mini .l i { width: 26px; height: 26px; border-radius: 8px; background: #FEF0E1; color: #E5770C; display: grid; place-items: center; font-size: .8rem; }
.auth .mini .v { font-family: Sora, Manrope, sans-serif; font-weight: 700; font-size: 1.6rem; margin-top: 6px; letter-spacing: -.5px; }
.auth .mini .d { color: #16A34A; font-weight: 700; font-size: .8rem; }
.auth .mini svg { width: 100%; height: 54px; display: block; margin-top: 8px; overflow: visible; }
.auth .mini svg path.ln { fill: none; stroke: #F68C21; stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: dmDraw 1.8s cubic-bezier(.4,.1,.2,1) .3s forwards; }
.auth .mini svg path.ar { fill: url(#miniGrad); opacity: 0; animation: dmFade .8s ease 1.5s forwards; }
@keyframes miniFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth .art { display: none; }
  .auth .formside { min-height: 100vh; padding: 28px 20px; background: radial-gradient(500px 300px at 50% 0%, rgba(246,140,33,.12), transparent 70%), #fff; }
}

@media (prefers-reduced-motion: reduce) {
  .dm *, .auth .mini, .auth .mini * { animation-duration: .01ms !important; animation-delay: 0s !important; transition: none !important; }
  .car-track { transition: none !important; }
}

/* ── Tilted frame: draws the eye, straightens when you point at it ── */
.carousel { perspective: 2200px; }
.car-frame { transform: rotateX(10deg) rotateY(-4deg) rotateZ(-1deg) scale(.965); transform-origin: 50% 85%;
  transition: transform .9s cubic-bezier(.2,.7,.2,1), box-shadow .9s ease;
  box-shadow: 0 70px 90px -50px rgba(120,60,0,.55), 0 30px 50px -30px rgba(0,0,0,.25); will-change: transform; }
.carousel:hover .car-frame, .carousel:focus-within .car-frame { transform: none; box-shadow: 0 40px 80px -40px rgba(120,60,0,.45), 0 12px 30px -18px rgba(0,0,0,.25); }
@media (max-width: 640px) { .car-frame { transform: rotateX(7deg) scale(.98); } }

/* ── iPhone 17 Pro Max slide (cosmic orange) ── */
.car-slide.phone-slide { display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(60cqw 40cqw at 50% 110%, rgba(246,140,33,.45), transparent 70%), linear-gradient(180deg, #FFF6EC 0%, #FDE3C6 100%); }
.ip { position: relative; height: 56cqw; aspect-ratio: 78 / 163.4; border-radius: 5.3cqw; padding: .42cqw;
  background: linear-gradient(140deg, #FBB57A 0%, #EE7F2E 28%, #D9661B 55%, #F3994F 80%, #C9581A 100%);
  box-shadow: inset 0 0 0 .1cqw rgba(255,255,255,.45), inset 0 0 .5cqw rgba(120,40,0,.35), 0 3.5cqw 5cqw -2.5cqw rgba(110,45,0,.6), 0 1cqw 2cqw -1cqw rgba(0,0,0,.3);
  transform: rotate(-4deg); }
.ip-btn { position: absolute; width: .32cqw; border-radius: .2cqw; background: linear-gradient(90deg, #C9581A, #F3994F); }
.ip-act { left: -.26cqw; top: 9cqw; height: 2.6cqw; }
.ip-vu { left: -.26cqw; top: 13.4cqw; height: 4.4cqw; }
.ip-vd { left: -.26cqw; top: 18.8cqw; height: 4.4cqw; }
.ip-pw { right: -.26cqw; top: 13.6cqw; height: 6.6cqw; }
.ip-cam { right: -.26cqw; top: 34cqw; height: 3.6cqw; }
.ip-screen { position: relative; height: 100%; border: .55cqw solid #0A0A0B; border-radius: 4.9cqw; overflow: hidden; background: #F5F5F4; }
.ip-status { position: absolute; z-index: 2; top: 0; left: 0; right: 0; height: 3.4cqw; display: flex; align-items: center; justify-content: space-between;
  padding: .35cqw 1.9cqw 0 2.5cqw; font: 600 1.2cqw/1 -apple-system, "SF Pro Text", "Segoe UI", Manrope, system-ui, sans-serif; color: #111; letter-spacing: -.01em; }
.ip-island { position: absolute; z-index: 3; top: .75cqw; left: 50%; transform: translateX(-50%); width: 7.4cqw; height: 2.15cqw; border-radius: 2cqw; background: #000; }
.ip-island:after { content: ""; position: absolute; right: .75cqw; top: 50%; width: .75cqw; height: .75cqw; transform: translateY(-50%); border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #2B3550, #0B0D14 70%); }
.ip-icons { display: flex; align-items: center; gap: .45cqw; }
.ip-icons svg { height: 1.05cqw; width: auto; display: block; }
.ip-app { position: absolute; top: 3.4cqw; left: 0; right: 0; bottom: 0; overflow: hidden; }
.ip-app img { display: block; width: 410.26%; max-width: none; height: auto; margin-left: -154.99%; margin-top: -18.23%; user-select: none; pointer-events: none; }
.ip-home { position: absolute; z-index: 2; bottom: .55cqw; left: 50%; transform: translateX(-50%); width: 9cqw; height: .38cqw; border-radius: 1cqw; background: rgba(0,0,0,.82); }
.ip-glare { position: absolute; inset: 0; z-index: 4; border-radius: 4.4cqw; pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,.22) 0%, rgba(255,255,255,0) 32%); }
.phone-slide .ip { animation: ipFloat 7s ease-in-out infinite; }
@keyframes ipFloat { 0%, 100% { transform: rotate(-4deg) translateY(0); } 50% { transform: rotate(-4deg) translateY(-1cqw); } }
@media (prefers-reduced-motion: reduce) { .phone-slide .ip { animation: none; } .car-frame { transition: none; } }

/* ── Clean HTML charts for the landing slides ── */
.t-b { background: #E8F0FE; color: #2563EB; }
.mc { flex: 1; min-height: 0; display: grid; grid-template-columns: auto 1fr; grid-template-rows: 1fr auto; gap: .35em .6em; margin-top: .8em; }
.mc-y { grid-row: 1; display: flex; flex-direction: column; justify-content: space-between; font-size: .74em; color: #A3A4AA; font-weight: 600; text-align: right; transform: translateY(.5em); }
.mc-plot { position: relative; min-height: 0; }
.mc-grid i { position: absolute; left: 0; right: 0; border-top: 1px dashed #EEE8E0; }
.mc-grid i:first-child { border-top: 1px solid #E6DFD5; }
.mc-bars { position: absolute; inset: 0; display: flex; align-items: flex-end; }
.mc-col { flex: 1; height: 100%; display: flex; align-items: flex-end; justify-content: center; gap: .25em; padding: 0 .4em; }
.mc-col i { display: block; flex: 1; max-width: 2.6em; height: var(--h); border-radius: .45em .45em .15em .15em; transform-origin: bottom; transform: scaleY(0); }
.mc-col .b1 { background: linear-gradient(180deg, #FCC48A, #F9A65A); }
.mc-col.hi .b1 { background: linear-gradient(180deg, #F68C21, #E5770C); box-shadow: 0 .6em 1.2em -.6em rgba(229,119,12,.8); }
.mc-col .b2 { background: #DDE3EA; }
.mc-line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.mc-line path { fill: none; stroke: #16A34A; stroke-width: 2.4; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.dm:not(.rp) .mc-line path { stroke: #37383E; stroke-width: 2; stroke-dasharray: none; stroke-dashoffset: 0; clip-path: inset(0 100% 0 0); }
.mc-dot { position: absolute; width: .62em; height: .62em; margin: 0 0 -.31em -.31em; border-radius: 50%; background: #fff; border: .16em solid #16A34A; opacity: 0; transform: scale(.3); }
.dm:not(.rp) .mc-dot { border-color: #37383E; }
.mc-x { grid-column: 2; display: flex; font-size: .74em; color: #A3A4AA; font-weight: 600; }
.mc-x span { flex: 1; text-align: center; } .mc-x span.hi { color: #E5770C; font-weight: 800; }
.mc-tip { position: absolute; transform: translate(-50%, -.3em) scale(.8); opacity: 0; background: #2B2C31; color: #fff; font-size: .78em; font-weight: 600; border-radius: .6em; padding: .45em .75em; white-space: nowrap; z-index: 2;
  box-shadow: 0 .8em 1.6em -.8em rgba(0,0,0,.5); }
.mc-tip b { display: block; font-size: .85em; opacity: .7; font-weight: 600; }
.mc-tip:after { content: ""; position: absolute; left: 50%; bottom: -.35em; width: .7em; height: .7em; background: #2B2C31; transform: translateX(-50%) rotate(45deg); border-radius: .1em; }
.mc-spark { position: absolute; right: 1em; bottom: .9em; width: 38%; height: 2.4em; overflow: visible; }
.mc-spark path { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.rp .dm-main { grid-column: 1 / -1; }
.rp { grid-template-columns: 1fr; }
.rp .dm-row { grid-template-columns: 2.3fr 1fr; }
.rp-tabs { margin-left: auto; display: flex; background: #F1ECE4; border-radius: .7em; padding: .25em; font-size: .86em; font-weight: 700; color: #8A8B90; }
.rp-tabs span { padding: .4em .9em; border-radius: .5em; } .rp-tabs .on { background: #fff; color: #2B2C31; box-shadow: 0 .2em .5em -.2em rgba(0,0,0,.2); }
.rp-ins { display: flex; flex-direction: column; gap: .9em; margin-top: .8em; }
.rp-ins .dm-sale { font-size: .9em; }
.rp-pay { margin-top: auto; border-top: 1px solid #EEEAE4; padding-top: .9em; display: flex; flex-direction: column; gap: .6em; }
.rp-pay h5 { font-family: Sora, Manrope, sans-serif; font-size: .92em; font-weight: 700; margin: 0 0 .2em; }
.dm-sum { display: flex; align-items: baseline; gap: .7em; margin-top: .2em; }
.dm-sum b { font-family: Sora, Manrope, sans-serif; font-size: 1.45em; letter-spacing: -.03em; }
.dm-sum span { font-size: .82em; font-weight: 700; }
.ip-app canvas { display: block; width: 100%; height: auto; }

.play .mc-col i { animation: mcGrow .9s cubic-bezier(.3,.8,.25,1) forwards; animation-delay: calc(var(--i) * 55ms + .15s); }
.play .mc-col .b2 { animation-delay: calc(var(--i) * 55ms + .3s); }
.play .mc-line path { animation: dmDraw 1.6s cubic-bezier(.4,.1,.2,1) .9s forwards; }
.play .dm:not(.rp) .mc-line path { animation: mcReveal 1.5s cubic-bezier(.4,.1,.2,1) .7s forwards; }
.play .mc-dot { animation: mcDot .35s ease forwards; animation-delay: calc(var(--i) * 90ms + 1s); }
.play .mc-tip { animation: mcTip .45s cubic-bezier(.3,1.4,.5,1) 2s forwards; }
.play .mc-spark path { animation: dmDraw 1.4s ease .6s forwards; }
@keyframes mcGrow { to { transform: scaleY(1); } }
@keyframes mcReveal { to { clip-path: inset(0 0 0 0); } }
@keyframes mcDot { to { opacity: 1; transform: none; } }
@keyframes mcTip { to { opacity: 1; transform: translate(-50%, -.3em) scale(1); } }
@container (max-width: 620px) {
  .rp .dm-row { grid-template-columns: 1fr; }
  .mc-spark { display: none; }
  .rp-tabs { display: none; }
}
