/* AI for Handyman Businesses: demo site in the Azure Innovation Station brand (same palette and font as azureinnovationstation.com). */
:root {
  --azure: #0078D4;
  --azure-dk: #005A9E;
  --onyx: #000F08;
  --ink2: #1B2A36;
  --muted: #4A5560;
  --line: #DBDBDB;
  --white: #FFFFFF;
  --bg: #FFFFFF;
  --t1: #F3F8FD;
  --t2: #E6F2FB;
  --t3: #CCE4F6;
  --green: #2EDC68;
  --green-dk: #128A3E;
  --red: #D83B3B;
  --amber: #E8920C;
  --font: "Open Sans", "Segoe UI", system-ui, sans-serif;
  --hdr-h: 72px;
  --r: 18px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow-lg: 0 28px 56px -30px rgba(0, 15, 8, .3), 0 2px 6px rgba(0, 15, 8, .04);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr-h) + 20px); scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--onyx); font: 400 1.0625rem/1.65 var(--font); -webkit-font-smoothing: antialiased; }
body.lock { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0 0 .5em; font-weight: 800; line-height: 1.12; letter-spacing: -.022em; text-wrap: balance; }
h2 { font-size: clamp(1.875rem, 1.25rem + 2.1vw, 2.75rem); }
h3 { font-size: 1.2rem; font-weight: 700; line-height: 1.3; letter-spacing: -.012em; }
p { margin: 0 0 1em; }
a { color: var(--azure); text-underline-offset: .18em; }
a:hover { color: var(--azure-dk); }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--azure); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sr-only:focus { position: fixed !important; left: 16px; top: 12px; width: auto; height: auto; padding: 10px 16px; clip: auto; z-index: 100; background: var(--azure); color: var(--white); border-radius: 10px; }
.icon { flex: none; width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.label { margin: 0 0 14px; color: var(--azure-dk); font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.lead { color: var(--muted); font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); }
.tile { display: inline-grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--t2); color: var(--azure); }
.tile .icon { width: 24px; height: 24px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--t2); color: var(--azure-dk); font-size: .75rem; font-weight: 700; letter-spacing: .02em; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 26px; border: 1px solid transparent; border-radius: 12px; font: 600 1rem/1.25 var(--font); text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.btn--primary { background: var(--azure); color: var(--white); box-shadow: 0 10px 24px -12px rgba(0, 120, 212, .7); }
.btn--primary:hover { background: var(--azure-dk); color: var(--white); }
.btn--secondary { background: var(--white); color: var(--onyx); border-color: var(--line); }
.btn--secondary:hover { border-color: var(--azure); color: var(--azure-dk); }
.btn--white { background: var(--white); color: var(--azure); }
.btn--white:hover { background: var(--t2); color: var(--azure-dk); }
.btn--sm { min-height: 42px; padding: 8px 16px; border-radius: 10px; font-size: .9375rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- header ---------- */
.hdr { position: sticky; top: 0; z-index: 20; height: var(--hdr-h); background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid #EEF1F4; }
.hdr .wrap { display: flex; align-items: center; gap: 24px; height: 100%; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--onyx); text-decoration: none; font-weight: 800; letter-spacing: -.01em; line-height: 1.1; }
.brand img { width: 40px; height: 40px; }
.brand small { display: block; color: var(--muted); font-weight: 600; font-size: .75rem; letter-spacing: .02em; }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav a { color: var(--ink2); font-weight: 600; font-size: .9375rem; text-decoration: none; }
.nav a:hover { color: var(--azure); }
@media (max-width: 760px) { .nav a:not(.btn) { display: none; } }

/* ---------- hero ---------- */
.hero { padding: clamp(40px, 6vw, 84px) 0 clamp(48px, 6vw, 88px); background: linear-gradient(180deg, var(--t1), var(--white) 85%); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 1.3rem + 2.4vw, 3.25rem); }
.hero h1 em { font-style: normal; color: var(--azure); }
.hero .lead { max-width: 34em; }
.hero__note { display: flex; align-items: center; gap: 8px; margin-top: 22px; color: var(--muted); font-size: .9375rem; }
.hero__note .icon { color: var(--green-dk); }
.hero__stage { border-radius: 24px; background: var(--white); border: 1px solid var(--t3); box-shadow: var(--shadow-lg); padding: 10px; }
@media (max-width: 920px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } }

/* ---------- sections ---------- */
.sec { padding: clamp(56px, 7vw, 104px) 0; }
.sec--tint { background: var(--t1); }
.sec__head { max-width: 760px; margin-bottom: 40px; }

.pains { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pain { padding: 22px; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); }
.pain__time { color: var(--azure-dk); font-weight: 800; font-size: .8125rem; letter-spacing: .06em; text-transform: uppercase; }
.pain h3 { margin: 8px 0 6px; }
.pain p { color: var(--muted); font-size: .9375rem; margin: 0 0 12px; }
.pain__fix { display: flex; flex-wrap: wrap; gap: 6px; }
.pain__fix a { text-decoration: none; }
@media (max-width: 980px) { .pains { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pains { grid-template-columns: 1fr; } }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { text-decoration: none; position: relative; display: flex; flex-direction: column; gap: 12px; padding: 24px; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); color: inherit; text-align: left; cursor: pointer; transition: border-color .2s, box-shadow .25s var(--ease), transform .25s var(--ease); }
.card:hover { border-color: var(--t3); box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.card__top { display: flex; align-items: center; justify-content: space-between; }
.card__num { color: var(--muted); font-weight: 800; font-size: .875rem; letter-spacing: .04em; }
.card h3 { margin: 4px 0 0; }
.card p { margin: 0; color: var(--muted); font-size: .9688rem; line-height: 1.55; }
.card__go { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 6px; color: var(--azure); font-weight: 700; font-size: .9375rem; }
.card:hover .card__go .icon { transform: translateX(3px); }
.card__go .icon { transition: transform .2s var(--ease); }
@media (max-width: 980px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; } }

/* ---------- value calculator ---------- */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.calc__in, .calc__out { padding: 28px; border-radius: 24px; background: var(--white); border: 1px solid var(--line); }
.calc__out { background: var(--onyx); color: var(--white); border-color: var(--onyx); position: sticky; top: calc(var(--hdr-h) + 24px); }
.field { margin-bottom: 22px; }
.field:last-child { margin-bottom: 0; }
.field__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-weight: 700; font-size: .9688rem; }
.field__row output { color: var(--azure); font-weight: 800; font-size: 1.125rem; white-space: nowrap; }
.field small { display: block; color: var(--muted); font-size: .8125rem; margin-top: 2px; }
.field input[type=range] { width: 100%; margin: 10px 0 0; accent-color: var(--azure); height: 28px; }
.out__row { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.out__row span { color: #C9D3DC; font-size: .9375rem; }
.out__row span small { display: block; color: #8E9BA7; font-size: .8125rem; }
.out__row b { font-size: 1.125rem; white-space: nowrap; }
.out__total { padding-top: 20px; }
.out__total span { color: #C9D3DC; font-weight: 700; font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; }
.out__total b { display: block; font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; color: var(--white); }
.out__total em { font-style: normal; color: var(--green); font-weight: 700; }
.out__fine { margin: 16px 0 0; color: #8E9BA7; font-size: .8125rem; line-height: 1.5; }
@media (max-width: 900px) { .calc { grid-template-columns: 1fr; } .calc__out { position: static; } }

/* ---------- how we start ---------- */
.start { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: st; }
.start li { padding: 26px; border-radius: var(--r); background: var(--white); border: 1px solid var(--line); }
.start li::before { counter-increment: st; content: counter(st); display: inline-grid; place-items: center; width: 36px; height: 36px; margin-bottom: 14px; border-radius: 50%; background: var(--azure); color: var(--white); font-weight: 800; }
.start p { margin: 0; color: var(--muted); font-size: .9688rem; }
@media (max-width: 820px) { .start { grid-template-columns: 1fr; } }

.cta { padding: clamp(48px, 6vw, 80px) 0; background: var(--azure); color: var(--white); }
.cta .wrap { display: flex; gap: 32px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta h2 { color: var(--white); margin: 0 0 8px; }
.cta p { margin: 0; color: #DCEBF8; max-width: 36em; }
.cta__who { display: flex; align-items: center; gap: 16px; }
.cta__who img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255, 255, 255, .6); }

.ftr { padding: 28px 0; background: var(--onyx); color: #B9C3CC; font-size: .875rem; }
.ftr .wrap { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.ftr a { color: var(--white); }

/* ---------- player ---------- */
.player { position: fixed; inset: 0; z-index: 50; display: grid; grid-template-rows: auto 1fr; background: var(--white); }
.pl__bar { display: flex; align-items: center; gap: 12px; padding: 10px clamp(12px, 2vw, 24px); border-bottom: 1px solid #EEF1F4; }
.pl__bar .brand img { width: 32px; height: 32px; }
.pl__count { margin-left: 8px; color: var(--muted); font-weight: 700; font-size: .875rem; }
.pl__spacer { flex: 1; }
.ibtn { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 11px; background: var(--white); color: var(--ink2); cursor: pointer; transition: border-color .2s, color .2s; }
.ibtn:hover { border-color: var(--azure); color: var(--azure); }
.ibtn--fill { background: var(--azure); border-color: var(--azure); color: var(--white); }
.ibtn--fill:hover { background: var(--azure-dk); color: var(--white); }
.pl__main { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(340px, 1fr); min-height: 0; }
.pl__stagewrap { display: flex; flex-direction: column; gap: 14px; justify-content: center; padding: clamp(12px, 2vw, 28px); background: var(--t1); min-height: 0; }
.pl__fit { position: relative; flex: 1; min-height: 0; display: grid; place-items: center; }
.pl__ctl { display: flex; align-items: center; justify-content: center; gap: 10px; }
.pl__keys { color: var(--muted); font-size: .8125rem; text-align: center; }
.pl__keys kbd { display: inline-block; padding: 1px 6px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; background: var(--white); font: 600 .75rem var(--font); }
.pl__info { overflow-y: auto; padding: clamp(18px, 2.4vw, 36px); border-left: 1px solid #EEF1F4; }
.pl__info h2 { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.125rem); margin: 10px 0 8px; }
.pl__info .lead { font-size: 1rem; margin-bottom: 22px; }
.pl__head { display: flex; align-items: center; gap: 12px; }

.steps { display: grid; gap: 6px; margin-bottom: 24px; counter-reset: s; }
.steps li { position: relative; display: grid; grid-template-columns: 30px 1fr; gap: 2px 12px; padding: 12px 14px; border-radius: 14px; cursor: pointer; transition: background-color .25s; overflow: hidden; }
.steps li::before { counter-increment: s; content: counter(s); grid-row: span 2; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line); color: var(--muted); font-weight: 800; font-size: .8125rem; transition: all .25s; }
.steps b { font-weight: 700; line-height: 1.35; align-self: center; color: var(--muted); transition: color .25s; }
.steps span { grid-column: 2; color: var(--muted); font-size: .875rem; line-height: 1.5; display: none; }
.steps li:hover { background: var(--t1); }
.steps li.done::before { background: var(--t2); border-color: var(--t2); color: var(--azure); }
.steps li.done b { color: var(--ink2); }
.steps li.cur { background: var(--t1); }
.steps li.cur::before { background: var(--azure); border-color: var(--azure); color: var(--white); }
.steps li.cur b { color: var(--onyx); }
.steps li.cur span { display: block; }
.steps li .bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--azure); }
.steps li.cur .bar.run { animation: bar linear forwards; }
@keyframes bar { to { width: 100%; } }

.value { padding: 20px 22px; border-radius: 18px; background: var(--onyx); color: var(--white); }
.value h3 { color: var(--white); font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; }
.value ul { display: grid; gap: 8px; }
.value li { display: flex; gap: 10px; font-size: .9375rem; line-height: 1.5; }
.value li .icon { color: var(--green); margin-top: 2px; }
.value .ex { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .15); color: #C9D3DC; font-size: .875rem; }
.value .ex b { color: var(--white); }
.control { display: flex; gap: 10px; margin-top: 14px; padding: 14px 16px; border-radius: 14px; background: var(--t1); color: var(--ink2); font-size: .875rem; line-height: 1.5; }
.control .icon { color: var(--azure); margin-top: 1px; }

@media (max-width: 960px) {
  .player { overflow-y: auto; display: block; }
  .pl__bar { position: sticky; top: 0; background: var(--white); z-index: 2; }
  .pl__main { display: block; }
  .pl__fit { flex: none; }
  .pl__info { border-left: 0; overflow: visible; }
  .pl__keys { display: none; }
}
@media (max-width: 520px) { .pl__bar .brand span { display: none; } }

/* ================= animated scenes ================= */
.fit { position: relative; width: 800px; height: 500px; }
.fitbox { position: relative; overflow: hidden; }
.scene { position: absolute; left: 0; top: 0; width: 800px; height: 500px; transform-origin: 0 0; font-family: var(--font); color: var(--onyx); font-size: 13px; line-height: 1.4; }
.demo-tag { position: absolute; right: 10px; top: 8px; z-index: 5; padding: 2px 8px; border-radius: 999px; background: rgba(0, 15, 8, .06); color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.scene .icon { width: 16px; height: 16px; }

/* reveal system: data-s = first step shown, data-e = last step shown */
.scene [data-s] { opacity: 0; transform: translateY(10px) scale(.98); transition: opacity .45s var(--ease), transform .55s var(--ease), max-height .5s var(--ease), padding .5s var(--ease), margin .5s var(--ease); }
.scene [data-s].on { opacity: 1; transform: none; transition-delay: var(--d, 0ms); }
.stk > [data-s]:not(.on) { max-height: 0 !important; padding-top: 0 !important; padding-bottom: 0 !important; margin-top: -10px !important; border-width: 0; overflow: hidden; }
.stk > [data-s].on { max-height: 400px; }
.scene .hl { animation: hl 1.4s var(--ease) both; animation-delay: var(--hd, 0ms); }
@keyframes hl { 0% { box-shadow: 0 0 0 0 rgba(0, 120, 212, .55); } 60% { box-shadow: 0 0 0 10px rgba(0, 120, 212, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 120, 212, 0); } }
.scene .dim { opacity: .32 !important; filter: grayscale(1); transition: opacity .5s, filter .5s; }

.L, .M, .R { position: absolute; top: 36px; }
.L { left: 16px; }
.M { left: 272px; width: 256px; height: 428px; }
.R { left: 564px; }
.stk { display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.stk.L, .stk.R { width: 220px; height: 428px; }
.cap { position: absolute; top: 10px; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* phone */
.ph { width: 220px; height: 428px; border-radius: 32px; border: 7px solid #0E1A24; background: var(--white); box-shadow: 0 24px 40px -24px rgba(0, 15, 8, .45); overflow: hidden; display: flex; flex-direction: column; }
.ph__top { display: flex; align-items: center; gap: 8px; padding: 14px 12px 10px; border-bottom: 1px solid #EEF1F4; background: #FAFBFC; }
.ph__av { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--azure); color: var(--white); font-weight: 800; font-size: 12px; flex: none; }
.ph__av--g { background: #7A8691; }
.ph__top b { display: block; font-size: 12px; line-height: 1.2; }
.ph__top small { display: block; color: var(--muted); font-size: 10px; }
.ph__body { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 7px; padding: 10px; overflow: hidden; }
.ph--lock { background: linear-gradient(170deg, #1C3A55, #0B1A27); color: var(--white); }
.ph--lock .ph__clock { padding: 26px 0 6px; text-align: center; font-size: 46px; font-weight: 300; letter-spacing: -.02em; line-height: 1; }
.ph--lock .ph__date { text-align: center; font-size: 11px; color: #C9D3DC; }
.ph--lock .ph__body { justify-content: flex-start; padding-top: 18px; }

.bub { max-width: 86%; padding: 7px 10px; border-radius: 14px; font-size: 11.5px; line-height: 1.4; }
.bub.i { align-self: flex-start; background: #EEF1F4; border-bottom-left-radius: 4px; }
.bub.o { align-self: flex-end; background: var(--azure); color: var(--white); border-bottom-right-radius: 4px; }
.bub ul { margin: 3px 0 0; padding: 0; }
.bub ul li { padding-left: 10px; position: relative; }
.bub ul li::before { content: ""; position: absolute; left: 1px; top: 7px; width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .8; }
.bub .bbtn { display: block; margin-top: 7px; padding: 6px; border-radius: 9px; background: var(--azure); color: var(--white); text-align: center; font-weight: 700; }
.bub .qrow { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; border-bottom: 1px solid rgba(0, 0, 0, .07); font-size: 10.5px; }
.bub .qrow:last-of-type { border-bottom: 0; font-weight: 800; }
.sys { align-self: center; padding: 4px 10px; border-radius: 999px; background: #EEF1F4; color: var(--muted); font-size: 10.5px; font-weight: 700; display: inline-flex; gap: 6px; align-items: center; }
.sys--red { background: #FDECEC; color: var(--red); }
.sys--green { background: #E3F8EA; color: var(--green-dk); }
.ring .icon { animation: ring .5s ease-in-out infinite alternate; }
@keyframes ring { from { transform: rotate(-14deg); } to { transform: rotate(14deg); } }

.n { display: flex; gap: 9px; align-items: flex-start; padding: 9px 10px; border-radius: 14px; background: rgba(255, 255, 255, .14); backdrop-filter: blur(6px); color: var(--white); font-size: 10.5px; line-height: 1.35; }
.ph:not(.ph--lock) .n, .stk .n { background: var(--white); color: var(--onyx); border: 1px solid var(--line); box-shadow: 0 10px 20px -16px rgba(0, 15, 8, .5); }
.n b { display: block; font-size: 11.5px; }
.n span { opacity: .85; }
.n__ic { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: var(--azure); color: var(--white); flex: none; }
.n__ic .icon { width: 13px; height: 13px; }
.n__ic--red { background: var(--red); }
.n__ic--green { background: var(--green-dk); }
.n__ic--amber { background: var(--amber); }

/* AI card */
.ai { position: relative; padding: 11px 12px; border-radius: 14px; background: var(--white); border: 1.5px solid var(--t3); box-shadow: 0 14px 28px -22px rgba(0, 90, 158, .7); }
.ai__h { display: flex; align-items: center; gap: 7px; margin-bottom: 6px; color: var(--azure-dk); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.ai__h .icon { color: var(--azure); width: 14px; height: 14px; }
.ai p { margin: 0 0 4px; font-size: 11.5px; }
.ai.work::after { content: ""; position: absolute; inset: -1.5px; border-radius: 14px; padding: 1.5px; background: conic-gradient(from var(--a, 0deg), transparent 0 70%, var(--azure) 85%, transparent 100%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spin 1.6s linear infinite; }
@property --a { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes spin { to { --a: 360deg; } }
.ai--ok { border-color: #A9E9BF; }
.ai--ok .ai__h, .ai--ok .ai__h .icon { color: var(--green-dk); }
.ai--red { border-color: #F3B9B9; }
.ai--red .ai__h, .ai--red .ai__h .icon { color: var(--red); }
.kv { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; border-top: 1px solid #EEF1F4; font-size: 11px; }
.kv span { color: var(--muted); }
.kv b { text-align: right; }

/* documents */
.doc { padding: 12px; border-radius: 14px; background: var(--white); border: 1px solid var(--line); box-shadow: 0 14px 28px -22px rgba(0, 15, 8, .5); }
.doc__h { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; font-weight: 800; font-size: 12px; }
.doc__h small { color: var(--muted); font-weight: 600; font-size: 10px; }
.li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 5px 0; border-top: 1px solid #EEF1F4; font-size: 11px; }
.li > span:first-child { min-width: 0; }
.li small { display: block; color: var(--muted); font-size: 9.5px; }
.li b { white-space: nowrap; }
.li em { font-style: normal; font-weight: 700; color: var(--azure-dk); white-space: nowrap; }
.tot { display: flex; justify-content: space-between; padding-top: 7px; margin-top: 2px; border-top: 2px solid var(--onyx); font-weight: 800; font-size: 12px; }
.tg { display: inline-block; padding: 1px 7px; border-radius: 999px; font-size: 9.5px; font-weight: 800; white-space: nowrap; background: var(--t2); color: var(--azure-dk); }
.tg--g { background: #E3F8EA; color: var(--green-dk); }
.tg--r { background: #FDECEC; color: var(--red); }
.tg--a { background: #FFF2DC; color: #9A5B00; }
.tg--n { background: #EEF1F4; color: var(--muted); }
.btns { display: flex; gap: 6px; margin-top: 9px; }
.b { flex: 1; padding: 6px; border-radius: 9px; border: 1px solid var(--line); text-align: center; font-weight: 700; font-size: 11px; }
.b--ok { background: var(--azure); border-color: var(--azure); color: var(--white); }
.b.hl { animation: tap 1.2s var(--ease) both; animation-delay: var(--hd, 0ms); }
@keyframes tap { 0%, 100% { transform: scale(1); } 40% { transform: scale(.92); background: var(--azure-dk); } 70% { box-shadow: 0 0 0 8px rgba(0, 120, 212, 0); } }
.stamp { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; padding: 3px 9px; border-radius: 999px; background: #E3F8EA; color: var(--green-dk); font-weight: 800; font-size: 10.5px; }

/* photos and media */
.photos { display: flex; gap: 6px; }
.photo { position: relative; width: 74px; height: 64px; border-radius: 10px; overflow: hidden; display: grid; place-items: center; color: rgba(255, 255, 255, .9); }
.photo--wall { background: radial-gradient(circle at 55% 50%, #3B3026 0 13px, #8C7E70 14px 16px, transparent 17px), linear-gradient(135deg, #E9E2D6, #CFC4B3); }
.photo--door { background: linear-gradient(90deg, transparent 22px, #8A5A33 22px 52px, transparent 52px), linear-gradient(#EFE8DC, #D9CDBA); }
.photo--door::after { content: ""; position: absolute; left: 45px; top: 30px; width: 5px; height: 5px; border-radius: 50%; background: #E6C35C; }
.photo .scan { position: absolute; left: 0; right: 0; height: 2px; background: var(--azure); box-shadow: 0 0 8px 2px rgba(0, 120, 212, .6); animation: scan 1.6s ease-in-out infinite alternate; }
@keyframes scan { from { top: 4px; } to { top: calc(100% - 6px); } }
.photo--sm { width: 54px; height: 46px; border-radius: 8px; }
.photo--sm.photo--door { background: linear-gradient(90deg, transparent 16px, #8A5A33 16px 38px, transparent 38px), linear-gradient(#EFE8DC, #D9CDBA); }
.photo--sm.photo--door::after { left: 33px; top: 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }

.rec { display: grid; justify-items: center; gap: 10px; padding: 18px 0 8px; }
.rec__btn { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; background: var(--red); color: var(--white); animation: pulse 1.6s ease-out infinite; }
.rec__btn .icon { width: 26px; height: 26px; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(216, 59, 59, .45); } 100% { box-shadow: 0 0 0 18px rgba(216, 59, 59, 0); } }
.wave { display: flex; align-items: center; gap: 3px; height: 30px; }
.wave i { width: 3px; border-radius: 2px; background: var(--azure); animation: wv 1s ease-in-out infinite alternate; }
.wave i:nth-child(3n) { animation-duration: .7s; } .wave i:nth-child(4n) { animation-duration: 1.3s; } .wave i:nth-child(5n) { animation-duration: .85s; }
@keyframes wv { from { height: 4px; } to { height: 28px; } }
.rec__t { color: var(--red); font-weight: 800; font-size: 12px; }

/* map */
.map { position: absolute; left: 16px; top: 36px; width: 470px; height: 428px; border-radius: 18px; overflow: hidden; border: 1px solid var(--t3); background: #F4F7F2; }
.map svg { width: 100%; height: 100%; display: block; }
.map .road { stroke: #FFFFFF; stroke-width: 10; fill: none; }
.map .road2 { stroke: #E3E8DE; stroke-width: 4; fill: none; }
.map .pin { transition: transform .5s var(--ease); }
.map text { font: 800 10px var(--font); letter-spacing: .1em; fill: #8B968A; text-transform: uppercase; }
.map .draw { stroke-dasharray: 900; stroke-dashoffset: 900; transition: stroke-dashoffset 2.4s ease-in-out, opacity .4s; }
.map .draw.on { stroke-dashoffset: 0; }
.map .zig { stroke-dasharray: 6 6; }
.map-tag { position: absolute; padding: 5px 10px; border-radius: 10px; background: var(--white); border: 1px solid var(--line); font-weight: 800; font-size: 11px; box-shadow: 0 8px 18px -12px rgba(0, 15, 8, .5); }
.day { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--white); border: 1px solid var(--line); }
.day i { width: 10px; height: 38px; border-radius: 5px; flex: none; }
.day b { display: block; font-size: 12px; }
.day span { color: var(--muted); font-size: 10.5px; }
.day .blocks { display: flex; gap: 3px; margin-top: 5px; }
.day .blocks u { height: 7px; border-radius: 3px; text-decoration: none; opacity: .75; }
.big { font-size: 22px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.big s { color: var(--muted); font-weight: 600; font-size: 15px; }
.big .up { color: var(--green-dk); }

/* KPI tiles */
.kpis { position: absolute; left: 272px; top: 36px; width: 512px; height: 428px; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, 1fr); gap: 12px; }
.kpi { padding: 14px 16px; border-radius: 16px; background: var(--white); border: 1px solid var(--line); box-shadow: 0 14px 28px -22px rgba(0, 15, 8, .5); display: flex; flex-direction: column; justify-content: space-between; }
.kpi small { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.kpi b { font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.kpi b s { text-decoration: none; color: var(--muted); font-size: 16px; font-weight: 700; }
.kpi .delta { font-size: 11px; font-weight: 700; color: var(--green-dk); }
.kpi .meter { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: #EEF1F4; }
.kpi .meter i { display: block; background: var(--azure); }
.kpi .meter i + i { background: var(--amber); }
.kpi .stars { color: #F2B01E; font-size: 14px; letter-spacing: 1px; }
.spark { display: flex; align-items: flex-end; gap: 4px; height: 26px; }
.spark i { flex: 1; border-radius: 3px 3px 0 0; background: var(--t3); }
.spark i:last-child { background: var(--azure); }

.flow { position: absolute; height: 2px; background: repeating-linear-gradient(90deg, var(--azure) 0 6px, transparent 6px 11px); background-size: 22px 2px; animation: flow .6s linear infinite; }
.flow::after { content: ""; position: absolute; right: -2px; top: -4px; border-left: 7px solid var(--azure); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.flow--rev { transform: scaleX(-1); }
.scene .flow--rev.on { transform: scaleX(-1); }
@keyframes flow { to { background-position: 22px 0; } }

.stars { color: #F2B01E; letter-spacing: 1px; }
.pdf { height: 150px; border-radius: 10px; background: repeating-linear-gradient(#FFFFFF 0 12px, #EEF1F4 12px 16px); border: 1px solid var(--line); position: relative; }
.pdf::before { content: "PDF"; position: absolute; right: 8px; top: 8px; padding: 2px 6px; border-radius: 5px; background: var(--red); color: var(--white); font-weight: 800; font-size: 9px; }
.pdf--stack { box-shadow: 5px 5px 0 -1px #FFFFFF, 5px 5px 0 0 var(--line), 10px 10px 0 -1px #FFFFFF, 10px 10px 0 0 var(--line); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scene *, .scene *::before, .scene *::after { animation: none !important; transition-duration: .01ms !important; }
}
