/* Homepage v4 (2026-11-03): living product scenes with illustrated people.
   Product screens follow the Mover OS mockup look (sidebar, stage colours, white cards on a cool tint).
   People come from people.js (original art). Motion only with html.motion (boot.js); looping scenes only
   run while on screen (.anim-zone.is-live from motion.js, or home.js for the hero). Reduced motion = static.
   Every screen is an Example with made-up entries. */

:root {
  --tint-page: #F3F6FC;
  --st-blue: #2563EB; --st-blue-bg: #EFF6FF;
  --st-green: #0F766E; --st-green-bg: #ECFDF5;
  --st-amber: #C2410C; --st-amber-bg: #FFF7ED;
  --st-violet: #7C3AED; --st-violet-bg: #F5F3FF;
  --card-shadow: 0 1px 2px rgba(11, 31, 59, 0.05), 0 18px 40px -18px rgba(11, 31, 59, 0.22);
  --deep-shadow: 0 2px 6px rgba(11, 31, 59, 0.06), 0 40px 80px -30px rgba(11, 31, 59, 0.38);
}
body { background: var(--tint-page); }

/* ---------- Shared ---------- */
.app p, .app li, .phn p, .phn li, .bw p, .bw li, .b4-vis p, .b4-vis li, .rs p, .rs li, .bub, .chips4 li, .kept4 li, .parade-tags li, .any-list li, .principles4 li, .web4-list li, .cw p, .pr li, .appc > p { max-width: none; }
.sec { padding: clamp(3.5rem, 2rem + 5vw, 7rem) 0; position: relative; }
.sec-head { display: grid; gap: 0.75rem; max-width: 46rem; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.25rem); }
.sec-head h2 { margin: 0; font-size: clamp(2.1rem, 1.1rem + 3.9vw, 4.25rem); line-height: 1.02; letter-spacing: -0.04em; font-weight: 500; }
.sec-head p { margin: 0; font-size: clamp(1.05rem, 1rem + 0.3vw, 1.25rem); color: var(--muted); max-width: 38rem; }
.sec-head-c h2 { text-wrap: balance; }
.sec-head-split { max-width: none; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); column-gap: clamp(2rem, 1rem + 4vw, 6rem); align-items: end; }
.sec-head-split p { justify-self: end; max-width: 30rem; }
@media (max-width: 63.99rem) { .sec-head-split { grid-template-columns: 1fr; } .sec-head-split p { justify-self: start; } }
.sec-head-c { max-width: 54rem; margin-left: auto; margin-right: auto; text-align: center; justify-items: center; }
.cap { margin: 1.25rem auto 0; max-width: 48rem; text-align: center; font-size: 0.85rem; color: var(--label); }
.ex4 { display: inline-block; padding: 0.05rem 0.45rem; border-radius: 999px; background: #FEF3C7; color: #78350F; font-size: 0.7em; font-weight: 600; line-height: 1.5; letter-spacing: 0; vertical-align: middle; }
.ph-mk { display: inline-grid; place-items: center; width: 1.6em; height: 1.6em; border-radius: 0.45em; background: #0B1F3B; color: #fff; font-size: 0.7em; font-weight: 700; letter-spacing: 0.02em; flex: none; }

/* Stage chips shared by app screens */
.pf-c { display: inline-flex; align-items: center; gap: 0.3em; padding: 0.15em 0.6em; border-radius: 999px; font-size: 0.8em; font-weight: 600; white-space: nowrap; }
.pf-c::before { content: ""; width: 0.45em; height: 0.45em; border-radius: 50%; background: currentColor; }
.c-b { background: var(--st-blue-bg); color: var(--st-blue); }
.c-g { background: var(--st-green-bg); color: var(--st-green); }
.c-a { background: var(--st-amber-bg); color: var(--st-amber); }
.c-v { background: var(--st-violet-bg); color: var(--st-violet); }

/* ---------- Hero ---------- */
.hero4 { position: relative; padding: clamp(2rem, 1rem + 3vw, 3.75rem) 0 clamp(2.5rem, 2rem + 2vw, 4rem); overflow: hidden;
  background:
    radial-gradient(48rem 30rem at 12% 8%, rgba(14, 165, 233, 0.13), transparent 60%),
    radial-gradient(52rem 34rem at 92% 30%, rgba(139, 92, 246, 0.14), transparent 62%),
    radial-gradient(40rem 26rem at 50% 100%, rgba(59, 130, 246, 0.12), transparent 60%),
    var(--tint-page); }
.hero4-copy { display: grid; justify-items: center; text-align: center; gap: 1.1rem; max-width: 62rem; margin: 0 auto; }
.hero4 h1 { margin: 0; font-size: clamp(2.6rem, 1.2rem + 5.6vw, 6rem); line-height: 0.98; letter-spacing: -0.045em; font-weight: 500; max-width: 17ch; text-wrap: balance; }
.hero4-lead { margin: 0; max-width: 40rem; font-size: clamp(1.08rem, 1rem + 0.45vw, 1.35rem); color: var(--muted); text-wrap: pretty; }
.hero4-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; justify-content: center; margin-top: 0.35rem; }
.hero4-actions .btn { min-height: 3.25rem; padding: 0.8rem 1.6rem; font-size: 0.9375rem; font-weight: 500; }
.hero4-figure { margin: clamp(1.5rem, 0.5rem + 2.5vw, 2.75rem) auto 0; max-width: 84rem; padding: 0 1rem; }

/* Fixed-size canvas scaled to fit (home.js sets --s and the wrapper height; media queries are the no-JS fallback). */
.cv-wrap { position: relative; width: 100%; height: calc(780px * var(--s, 0.9)); --s: 0.9; }
.cv { position: absolute; left: 50%; top: 0; width: 1240px; height: 780px; transform: translateX(-50%) scale(var(--s)); transform-origin: top center; }
@media (max-width: 80rem) { .cv-wrap { --s: 0.72; } }
@media (max-width: 64rem) { .cv-wrap { --s: 0.55; } }
@media (max-width: 47.99rem) {
  .cv-wrap { --s: 0.75; height: calc(760px * var(--s)); }
  .cv { width: 460px; height: 760px; overflow: hidden; border-radius: 0 0 24px 24px; }
}

/* The desktop app */
.app {
  position: absolute; left: 0; top: 20px; width: 930px; height: 610px; display: grid; grid-template-columns: 178px 1fr;
  border-radius: 22px; overflow: hidden; background: #F5F8FD; border: 1px solid #DCE4F0; box-shadow: var(--deep-shadow);
  font-family: "Urbanist", system-ui, sans-serif; font-size: 12.5px; line-height: 1.35; color: #0B1F3B; text-align: left;
}
.app::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, #0EA5E9, #3B82F6, #8B5CF6); z-index: 2; }
.app p, .app ul, .app ol { margin: 0; padding: 0; list-style: none; }
.app-side { background: #fff; border-right: 1px solid #E5EAF2; padding: 18px 12px; display: flex; flex-direction: column; gap: 4px; }
.app-org { display: flex; gap: 9px; align-items: center; margin-bottom: 14px !important; }
.app-org-mk { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: #0B1F3B; color: #fff; font-weight: 700; font-size: 11px; flex: none; }
.app-org b { display: block; font-size: 13px; line-height: 1.2; }
.app-org-s { display: block; margin-top: 2px; font-size: 13px; }
.app-nav-h { font-size: 10px; font-weight: 600; color: #64748B; margin: 10px 8px 2px !important; letter-spacing: 0.04em; }
.app-nav li { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 9px; color: #334155; font-weight: 500; }
.app-nav li .ic { width: 15px; height: 15px; color: #64748B; }
.app-nav li.is-on { background: #EAF1FF; color: #1D4ED8; }
.app-nav li.is-on .ic { color: #1D4ED8; }
.app-badge { margin-left: auto; min-width: 18px; height: 18px; border-radius: 999px; display: grid; place-items: center; background: #C2410C; color: #fff; font-size: 10px; font-weight: 700; padding: 0 5px; }
.app-badge.is-v { background: #7C3AED; }
.app-main { padding: 18px 20px 18px; display: grid; grid-template-rows: auto auto 1fr; gap: 14px; min-width: 0; }
.app-head { display: flex; align-items: center; gap: 12px; }
.app-head > div { flex: 1; min-width: 0; }
.app-h { font-size: 21px; font-weight: 700; letter-spacing: -0.02em; }
.app-sub { color: #475569; font-size: 12px; margin-top: 2px !important; }
.app-search { padding: 8px 14px; min-width: 180px; border-radius: 999px; background: #fff; border: 1px solid #E2E8F0; color: #94A3B8; font-size: 11.5px; }
.app-new { padding: 8px 14px; border-radius: 999px; background: #0B1F3B; color: #fff; font-weight: 600; font-size: 11.5px; white-space: nowrap; }
.app-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.app-kpis li, .rs-kpis li { position: relative; background: #fff; border-radius: 14px; padding: 11px 13px 13px; border: 1px solid #E8EDF5; overflow: hidden; display: grid; gap: 2px; }
.app-kpis li::after, .rs-kpis li::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; }
.k-blue::after { background: var(--st-blue); } .k-violet::after { background: var(--st-violet); } .k-green::after { background: var(--st-green); } .k-amber::after { background: var(--st-amber); }
.k-l { font-size: 11px; color: #475569; font-weight: 500; }
.k-n { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.app-grid { display: grid; grid-template-columns: 1.65fr 1fr; grid-template-rows: 1fr auto; gap: 12px; min-height: 0; }
.app-card { background: #fff; border: 1px solid #E8EDF5; border-radius: 16px; padding: 12px 13px; min-width: 0; min-height: 0; }
.app-card-t { font-weight: 700; font-size: 13.5px; margin-bottom: 9px !important; display: flex; align-items: center; gap: 6px; }
.app-board { grid-row: 1; grid-column: 1; overflow: hidden; }
.app-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.app-col { background: #F7F9FC; border-radius: 12px; padding: 7px; border-top: 3px solid; min-height: 190px; }
.c-new { border-top-color: var(--st-violet); } .c-prog { border-top-color: var(--st-blue); } .c-done { border-top-color: var(--st-green); }
.app-col-t { font-size: 11px; font-weight: 600; color: #334155; margin: 0 2px 6px !important; display: flex; align-items: center; gap: 5px; }
.app-col-t i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.c-new .app-col-t { color: var(--st-violet); } .c-prog .app-col-t { color: var(--st-blue); } .c-done .app-col-t { color: var(--st-green); }
.scn-cards { display: grid; gap: 6px; }
.scn-card { background: #fff; border: 1px solid #E5EAF2; border-radius: 10px; padding: 7px 8px; display: grid; gap: 6px; box-shadow: 0 1px 2px rgba(11,31,59,.04); }
.scn-card-t { font-weight: 600; font-size: 11.5px; line-height: 1.3; }
.scn-card-f { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.scn-chip { font-size: 10px; font-weight: 600; padding: 1px 7px; border-radius: 999px; background: var(--st-blue-bg); color: var(--st-blue); white-space: nowrap; }
.scn-chip.is-wait { background: var(--st-amber-bg); color: var(--st-amber); }
.scn-chip.is-done { background: var(--st-green-bg); color: var(--st-green); }
.scn-av { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 8px; font-weight: 700; flex: none; }
.av-owner { background: #0B1F3B; } .av-manager { background: #0F766E; } .av-office { background: #7C3AED; } .av-team { background: #D97706; } .av-books { background: #64748B; }
.scn-card.is-lift { box-shadow: 0 16px 30px -12px rgba(37, 99, 235, 0.55); border-color: #93C5FD; position: relative; z-index: 3; }
.app-needs { grid-row: 1 / span 2; grid-column: 2; }
.app-count { margin-left: auto; min-width: 20px; height: 20px; border-radius: 999px; background: #FEE2E2; color: #B91C1C; display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.needs { display: grid; }
.need { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 10px 0; border-top: 1px solid #EEF2F7; transition: opacity 0.4s ease, transform 0.4s ease; }
.need:first-child { border-top: 0; padding-top: 2px; }
.need-ic { width: 28px; height: 28px; border-radius: 9px; }
.n-v { background: var(--st-violet-bg); box-shadow: inset 0 0 0 7px var(--st-violet-bg), inset 0 0 0 14px #C4B5FD; }
.n-a { background: var(--st-amber-bg); box-shadow: inset 0 0 0 7px var(--st-amber-bg), inset 0 0 0 14px #FDBA74; }
.n-g { background: var(--st-green-bg); box-shadow: inset 0 0 0 7px var(--st-green-bg), inset 0 0 0 14px #6EE7B7; }
.need-b { display: grid; gap: 2px; min-width: 0; }
.need-b b { font-size: 12px; }
.need-s { font-size: 11px; color: #64748B; }
.need-btns { display: flex; gap: 5px; margin-top: 5px; }
.nb { padding: 3px 10px; border-radius: 999px; border: 1px solid #E2E8F0; font-size: 10.5px; font-weight: 600; background: #fff; }
.nb-dark { background: #0B1F3B; color: #fff; border-color: #0B1F3B; }
.need.is-done { opacity: 0.45; }
.need.is-done b { text-decoration: line-through; }
.need.is-press .nb-dark { box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.35); }
.app-week { grid-row: 2; grid-column: 1; }
.week { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; }
.week li { border: 1px solid #E8EDF5; border-radius: 11px; padding: 6px 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 3px; }
.week li span { width: 100%; font-size: 10.5px; color: #64748B; }
.week li b { width: 100%; font-size: 15px; }
.week li i { width: 14px; height: 4px; border-radius: 2px; }
.week li.is-today { border-color: #3B82F6; box-shadow: 0 0 0 2px #DBEAFE; }
.w-g { background: var(--st-green); } .w-b { background: var(--st-blue); } .w-a { background: var(--st-amber); }

/* Phones */
.phn { position: absolute; width: 260px; height: 540px; border-radius: 42px; background: #0B1F3B; padding: 9px; box-shadow: var(--deep-shadow), inset 0 0 0 2px #23395C; font-family: "Urbanist", system-ui, sans-serif; font-size: 12px; line-height: 1.35; color: #0B1F3B; text-align: left; }
.ph-screen { position: relative; height: 100%; border-radius: 34px; overflow: hidden; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px;
  background: radial-gradient(18rem 12rem at 100% 0%, #EDE9FE, transparent 60%), radial-gradient(16rem 12rem at 0% 30%, #E0F2FE, transparent 60%), #F8FAFC; }
.phn p, .phn ul, .phn ol { margin: 0; padding: 0; list-style: none; }
.ph-status { display: flex; justify-content: space-between; align-items: center; font-size: 11px; font-weight: 600; padding: 0 6px; }
.ph-status span:last-child { font-size: 6px; letter-spacing: 1px; }
.ph-isl { width: 76px; height: 20px; border-radius: 999px; background: #0B1F3B; }
.ph-app { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 700; letter-spacing: -0.02em; margin-top: 4px !important; }
.ph-hero { left: 968px; top: 50px; }
.ph-thread { display: grid; gap: 8px; }
.ph-sub { font-size: 12px; font-weight: 700; color: #334155; padding: 4px 2px 0; }
.ph-msg { display: grid; gap: 3px; padding: 10px 12px; border-radius: 16px 16px 16px 4px; background: #fff; border: 1px solid #E5EAF2; font-size: 12px; }
.ph-from { font-size: 10px; font-weight: 600; color: #64748B; }
.ph-draft { border-radius: 16px 16px 4px 16px; background: #EFF6FF; border: 1.5px dashed #93C5FD; margin-left: 18px !important; }
.ph-btns { display: flex; gap: 6px; justify-content: flex-end; }
.ph-ok, .ph-edit { padding: 6px 14px; border-radius: 999px; font-weight: 600; font-size: 11.5px; }
.ph-ok { background: #0B1F3B; color: #fff; transition: box-shadow 0.25s ease, transform 0.25s ease; }
.ph-edit { background: #fff; border: 1px solid #E2E8F0; }
.ph-done { justify-self: end; font-size: 11px; font-weight: 600; color: var(--st-green); opacity: 0; transition: opacity 0.3s ease; }
.ph-done::before { content: "\2713  "; }
.scn.is-approved .ph-ok { box-shadow: 0 0 0 5px rgba(59, 130, 246, 0.3); transform: scale(0.96); }
.scn.is-approved .ph-done { opacity: 1; }
.ph-sec { font-size: 11px; font-weight: 700; color: #64748B; margin-top: 4px !important; }
.ph-earlier { display: grid; gap: 6px; }
.ph-earlier li { display: grid; gap: 4px; justify-items: start; padding: 8px 10px; border-radius: 12px; background: #fff; border: 1px solid #E5EAF2; font-size: 11px; font-weight: 500; }
.ph-tabs { margin-top: auto !important; display: flex; justify-content: space-around; padding: 10px 0 4px; border-top: 1px solid #E5EAF2; }
.ph-tabs span { width: 22px; height: 6px; border-radius: 3px; background: #CBD5E1; }
.ph-tabs span.is-on { background: #2563EB; }

/* Hero people + bubbles (canvas px) */
.pp-h1 { left: 22px; top: 556px; }
.pp-h2 { left: 760px; top: 560px; }
.pp-h3 { left: 1118px; top: 556px; }
.bub { position: absolute; z-index: 5; margin: 0; max-width: 230px; padding: 9px 13px; border-radius: 14px; background: #fff; color: #0B1F3B; font-size: 13px; line-height: 1.35; box-shadow: var(--card-shadow); border: 1px solid #E5EAF2; transition: opacity 0.3s ease, transform 0.3s ease; }
.bub::after { content: ""; position: absolute; width: 12px; height: 12px; background: #fff; border: 1px solid #E5EAF2; border-top: 0; border-left: 0; transform: rotate(45deg); bottom: -7px; left: 22px; }
.bub-who { font-weight: 700; }
.bub-who::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 5px; vertical-align: 1px; }
.bub-1 { left: 150px; top: 652px; } .bub-1::after { left: -6px; bottom: auto; top: 16px; transform: rotate(135deg); } .bub-1 .bub-who::before { background: #0B1F3B; }
.bub-2 { left: 560px; top: 652px; max-width: 190px; } .bub-2 .bub-who::before { background: #0F766E; } .bub-2::after { left: auto; right: -6px; bottom: auto; top: 16px; transform: rotate(-45deg); }
.bub-3 { left: 905px; top: 690px; max-width: 200px; } .bub-3 .bub-who::before { background: #D97706; } .bub-3::after { left: auto; right: -6px; bottom: auto; top: 16px; transform: rotate(-45deg); }
.motion .scn-stage.is-swap .bub { animation: bub-in 0.5s ease both; }
.motion .scn-stage.is-swap .bub-2 { animation-delay: 0.12s; }
.motion .scn-stage.is-swap .bub-3 { animation-delay: 0.24s; }
@keyframes bub-in { from { opacity: 0; transform: translateY(8px) scale(0.96); } }
.motion .scn-stage.is-swap .scn-card { animation: card-in 0.45s ease both; }
@keyframes card-in { from { opacity: 0; transform: translateY(6px); } }
.motion .scn-stage.is-swap [data-k] { animation: fade-in 0.4s ease both; }
@keyframes fade-in { from { opacity: 0.2; } }

@media (max-width: 47.99rem) {
  .ph-hero { left: 190px; top: 70px; }
  .pp-h1 { left: 4px; top: 548px; }
  .pp-h2, .bub-2, .bub-3 { display: none; }
  .pp-h3 { left: 340px; top: 548px; }
  .bub-1 { left: 96px; top: 618px; max-width: 220px; }
  .bub-1::after { left: -6px; bottom: auto; top: 16px; transform: rotate(135deg); }
}

/* Carousel controls */
.scn-controls { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.25rem; flex-wrap: wrap; }
.scn-controls[hidden] { display: none; }
.scn-pause { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; padding: 0.4rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: 0.9rem; font-weight: 600; cursor: pointer; box-shadow: 0 1px 2px rgba(11,31,59,.06); }
.scn-pause:hover { border-color: var(--line-strong); }
.scn-ic { width: 14px; height: 14px; fill: currentColor; }
.scn-ic-play { display: none; }
.scn-pause[aria-pressed="true"] .scn-ic-pause { display: none; }
.scn-pause[aria-pressed="true"] .scn-ic-play { display: inline; }
.scn-dots { display: flex; gap: 0.3rem; flex-wrap: wrap; justify-content: center; padding: 0.25rem; border-radius: 999px; background: color-mix(in srgb, var(--surface) 70%, transparent); border: 1px solid var(--line); }
.scn-dot { min-height: 2.25rem; padding: 0 0.85rem; border: 0; border-radius: 999px; background: none; color: var(--muted); font: inherit; font-size: 0.88rem; font-weight: 500; cursor: pointer; }
.scn-dot[aria-current="true"] { background: #0B1F3B; color: #fff; font-weight: 600; }
.scn-dot:hover:not([aria-current="true"]) { color: var(--ink); background: var(--surface-2); }
.scn-pause:focus-visible, .scn-dot:focus-visible, .wl:focus-visible, .org-role:focus-visible, .org-panel:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
@media (max-width: 40rem) { .scn-dot { padding: 0 0.55rem; font-size: 0.8rem; } .scn-dots { gap: 0; border-radius: 18px; } }

/* ---------- What it replaces ---------- */
.sec-replace { background: #fff; }
.tc { margin: 0; }
.tc .cv-wrap { height: calc(640px * var(--s, 0.9)); --s: 0.9; }
.tc .cv { left: 0; width: 1100px; height: 640px; transform: scale(var(--s)); transform-origin: top left; border-radius: 32px; overflow: hidden; border: 1px solid #E3E9F4;
  background: radial-gradient(26rem 18rem at 50% 52%, rgba(59, 130, 246, 0.2), transparent 70%), radial-gradient(22rem 16rem at 12% 88%, rgba(236, 72, 153, 0.13), transparent 70%), radial-gradient(24rem 16rem at 90% 10%, rgba(139, 92, 246, 0.16), transparent 70%), linear-gradient(180deg, #F7F9FE, #EEF3FC);
  --cx: 550px; --cy: 320px; --p: 1; }
.tc-chips, .tc-kept, .tc-rows, .tc-nav { list-style: none; margin: 0; padding: 0; }
/* Chips: start scattered at --x/--y, travel to the centre as --t goes 0 -> 1 (scroll-driven; resting state = collapsed) */
.tc-chip { position: absolute; left: var(--x); top: var(--y); width: 190px; z-index: 2; --t: 1;
  --in: 1; --m: 1; --ex: 0px;
  transform: translate(calc((var(--cx) - var(--x) - 95px) * var(--t) + var(--ex) * (1 - var(--in))), calc((var(--cy) - var(--y) - 26px) * var(--t) + 14px * (1 - var(--in)))) scale(calc((1 - 0.7 * var(--m)) * (0.92 + 0.08 * var(--in))));
  opacity: calc(var(--in) * (1 - var(--m))); }
.tc-c1 { --x: 40px; --y: 40px; } .tc-c2 { --x: 300px; --y: 22px; } .tc-c3 { --x: 630px; --y: 30px; } .tc-c4 { --x: 880px; --y: 70px; } .tc-c5 { --x: 20px; --y: 170px; } .tc-c6 { --x: 905px; --y: 195px; } .tc-c7 { --x: 30px; --y: 330px; } .tc-c8 { --x: 910px; --y: 335px; } .tc-c9 { --x: 60px; --y: 475px; } .tc-c10 { --x: 890px; --y: 465px; } .tc-c11 { --x: 270px; --y: 565px; } .tc-c12 { --x: 650px; --y: 570px; }
.tc-chip-in { display: grid; grid-template-columns: 32px 1fr; gap: 9px; align-items: center; padding: 9px 11px; border-radius: 14px; background: #fff; border: 1px solid #E5EAF2; box-shadow: 0 12px 26px -14px rgba(11, 31, 59, 0.35); font-size: 12px; color: #64748B; line-height: 1.25; }
.tc-chip-in b { display: block; font-size: 13.5px; color: #0B1F3B; font-weight: 600; }
.tc-chip:nth-child(odd) .tc-chip-in { transform: rotate(-2.5deg); } .tc-chip:nth-child(3n) .tc-chip-in { transform: rotate(2deg); }
.motion .tc.is-live:not(.is-paused) .tc-chip-in { animation: tc-drift 5.5s ease-in-out infinite alternate; }
.tc-chip:nth-child(2n) .tc-chip-in { animation-delay: -2.2s !important; } .tc-chip:nth-child(3n) .tc-chip-in { animation-duration: 7s !important; }
@keyframes tc-drift { from { translate: 0 0; } to { translate: 6px -10px; } }
.tc-ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.tc-ic .ic { width: 16px; height: 16px; }
.t-v { background: var(--st-violet-bg, #EDE9FE); color: var(--st-violet, #7C3AED); } .t-b { background: var(--st-blue-bg); color: var(--st-blue); }
.t-a { background: var(--st-amber-bg); color: var(--st-amber); } .t-g { background: var(--st-green-bg); color: var(--st-green); }
/* The system screen */
.tc-screen { position: absolute; left: 290px; top: 100px; width: 520px; height: 440px; z-index: 3; background: #fff; border-radius: 22px; border: 1px solid #E3E9F4; overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(11, 31, 59, 0.45), 0 0 0 calc(10px * var(--p)) rgba(59, 130, 246, calc(0.1 * var(--p)));
  transform: scale(calc(0.86 + 0.14 * var(--p))); }
.tc-screen::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, #06B6D4, #3B82F6, #8B5CF6); }
.tc-top { display: flex; align-items: center; gap: 8px; padding: 13px 14px; border-bottom: 1px solid #EEF2F7; font-size: 14px; color: #0B1F3B; }
.tc-search { margin-left: auto; font-size: 11px; color: #94A3B8; border: 1px solid #E5EAF2; border-radius: 999px; padding: 4px 12px; }
.tc-body { display: grid; grid-template-columns: 112px 1fr; height: calc(100% - 52px); }
.tc-nav { padding: 10px 8px; border-right: 1px solid #EEF2F7; background: #FAFBFE; display: grid; align-content: start; gap: 2px; }
.tc-nav li { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: #475569; padding: 6px 8px; border-radius: 8px; }
.tc-nav li .ic { width: 13px; height: 13px; }
.tc-nav li.is-on { background: #EAF1FE; color: #1D4ED8; font-weight: 600; }
.tc-main { padding: 12px 14px; min-width: 0; }
.tc-h { margin: 0; font-family: var(--font-head); font-size: 17px; font-weight: 600; color: #0B1F3B; }
.tc-sub { margin: 1px 0 8px; font-size: 11px; color: #64748B; }
.tc-row { display: grid; grid-template-columns: 30px 1fr auto; gap: 9px; align-items: center; padding: 7px 0; border-top: 1px solid #F1F5F9; }
.tc-row .tc-ic { width: 30px; height: 30px; border-radius: 9px; }
.tc-row-t { min-width: 0; font-size: 10.5px; color: #64748B; line-height: 1.25; } .tc-row-t b { display: block; font-size: 12.5px; color: #0B1F3B; }
.tc-pill { font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.motion .tc-row { transition: opacity 0.4s ease, transform 0.4s ease; }
.motion .tc-row:not(.is-in) { opacity: 0.18; transform: translateX(-8px); }
/* Kept tools: placed on an ellipse round the screen (JS moves them slowly while live) */
.tc-k { position: absolute; z-index: 4; display: flex; align-items: center; gap: 8px; padding: 8px 12px 8px 9px; border-radius: 999px; background: #fff; border: 1.5px dashed #93C5FD; font-size: 10.5px; color: #16A34A; box-shadow: 0 8px 20px -12px rgba(11, 31, 59, 0.3); white-space: nowrap;
  left: calc(var(--cx) + var(--kx, 0px) - 70px); top: calc(var(--cy) + var(--ky, 0px) - 20px); opacity: var(--kp, 1); }
.tc-k b { display: block; font-size: 12.5px; color: #0B1F3B; } .tc-k .ic { width: 18px; height: 18px; color: #2563EB; }
.tc-k1 { --kx: -400px; --ky: -170px; } .tc-k2 { --kx: 400px; --ky: -170px; } .tc-k3 { --kx: 400px; --ky: 170px; } .tc-k4 { --kx: -400px; --ky: 170px; }
.motion .tc.is-live:not(.is-paused) .tc-k { animation: tc-orbit 9s linear infinite; } .tc-k2 { animation-delay: -2.2s !important; } .tc-k3 { animation-delay: -4.5s !important; } .tc-k4 { animation-delay: -6.7s !important; }
@keyframes tc-orbit { 0% { translate: 12px 0; } 25% { translate: 0 8px; } 50% { translate: -12px 0; } 75% { translate: 0 -8px; } 100% { translate: 12px 0; } }
.tc-lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; opacity: var(--kl, 1); pointer-events: none; }
.tc-lines path { fill: none; stroke: #93C5FD; stroke-width: 2; stroke-dasharray: 6 6; }
.motion .tc.is-live:not(.is-paused) .tc-lines path { animation: tc-flow 1.2s linear infinite; }
@keyframes tc-flow { to { stroke-dashoffset: -12; } }
.tc-p { left: 236px; top: 420px; width: 110px; z-index: 5; }
.tc-bub { left: 30px; top: 318px; z-index: 6; max-width: 200px; } .tc-bub::after { left: auto; right: 26px; }
.motion .tc .tc-bub { transition: opacity 0.4s ease, transform 0.4s ease; }
.motion .tc:not(.is-done) .tc-bub { opacity: 0; transform: translateY(6px); }
.tc-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1rem; margin-top: 0.6rem; }
.tc-ctl .cap { margin: 0; flex: 1 1 24rem; }
@media (max-width: 47.99rem) {
  .tc .cv-wrap { height: calc(900px * var(--s, 0.62)); --s: 0.62; }
  .tc .cv { width: 560px; height: 900px; --cx: 280px; --cy: 450px; }
  .tc-c1 { --x: 20px; --y: 20px; } .tc-c2 { --x: 300px; --y: 30px; } .tc-c3 { --x: 30px; --y: 95px; } .tc-c4 { --x: 310px; --y: 110px; } .tc-c5 { --x: 10px; --y: 170px; } .tc-c6 { --x: 320px; --y: 185px; } .tc-c7 { --x: 20px; --y: 650px; } .tc-c8 { --x: 310px; --y: 665px; } .tc-c9 { --x: 30px; --y: 725px; } .tc-c10 { --x: 300px; --y: 745px; } .tc-c11 { --x: 10px; --y: 800px; } .tc-c12 { --x: 320px; --y: 820px; }
  .tc-chip { width: 220px; } .tc-chip-in { font-size: 13px; } .tc-chip-in b { font-size: 15px; }
  .tc-screen { left: 20px; top: 235px; width: 520px; height: 430px; }
  .tc-k1 { --kx: -150px; --ky: -225px; } .tc-k2 { --kx: 140px; --ky: -225px; } .tc-k3 { --kx: 140px; --ky: 225px; } .tc-k4 { --kx: -150px; --ky: 225px; }
  .tc-p, .tc-bub, .tc-lines { display: none; }
}

/* ---------- Apps ---------- */
.sec-apps { background: linear-gradient(180deg, #fff 0%, var(--tint-page) 30%); }
.apps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.appc { position: relative; border-radius: 28px; padding: 1.5rem 1.25rem 1.4rem; background: #fff; border: 1px solid #E5EAF2; box-shadow: var(--card-shadow); display: grid; justify-items: center; text-align: center; align-content: start; overflow: hidden; }
.appc::before { content: ""; position: absolute; inset: 0 0 40% 0; background: radial-gradient(16rem 12rem at 50% 30%, var(--glow-c, rgba(59,130,246,.16)), transparent 70%); pointer-events: none; }
.appc:nth-child(2) { --glow-c: rgba(139, 92, 246, 0.18); } .appc:nth-child(3) { --glow-c: rgba(217, 119, 6, 0.16); } .appc:nth-child(4) { --glow-c: rgba(14, 165, 233, 0.18); }
.appc .phn { position: relative; width: 220px; height: 450px; border-radius: 36px; padding: 7px; font-size: 11px; }
.appc .ph-screen { border-radius: 29px; padding: 10px 12px; gap: 9px; }
.appc .ph-app { font-size: 15px; }
.appc h3 { margin: 1.25rem 0 0.35rem; font-size: 1.2rem; letter-spacing: -0.02em; }
.appc > p { margin: 0; color: var(--muted); font-size: 0.95rem; max-width: 18rem; }
.appc .pp-slot { width: 70px; right: 6px; top: 338px; z-index: 3; }
.appc:nth-child(odd) .pp-slot { right: auto; left: 6px; }
.po-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.po-kpis p { background: #fff; border-radius: 12px; padding: 8px 9px; border: 1px solid #E5EAF2; display: grid; }
.po-kpis b { font-size: 15px; } .po-kpis span { font-size: 10px; color: #64748B; }
.po-chart { display: flex; align-items: flex-end; gap: 5px; height: 70px; padding: 8px; background: #fff; border-radius: 12px; border: 1px solid #E5EAF2; }
.po-chart i { flex: 1; border-radius: 4px 4px 2px 2px; background: linear-gradient(#60A5FA, #8B5CF6); transform-origin: bottom; }
.po-chart i:nth-child(1) { height: 40%; } .po-chart i:nth-child(2) { height: 62%; } .po-chart i:nth-child(3) { height: 48%; } .po-chart i:nth-child(4) { height: 80%; }
.po-chart i:nth-child(5) { height: 66%; } .po-chart i:nth-child(6) { height: 92%; } .po-chart i:nth-child(7) { height: 74%; }
.motion .apps.is-live .po-chart i { animation: grow 2.8s ease-in-out infinite alternate; }
.po-chart i:nth-child(2n) { animation-delay: -1.2s !important; }
@keyframes grow { from { transform: scaleY(0.55); } }
.po-h { font-size: 11px; font-weight: 700; color: #334155; }
.po-row { display: flex; justify-content: space-between; align-items: center; gap: 6px; background: #fff; border: 1px solid #E5EAF2; border-radius: 12px; padding: 8px 9px; font-size: 10.5px; font-weight: 600; }
.po-ok { padding: 3px 9px; border-radius: 999px; background: #0B1F3B; color: #fff; font-size: 10px; }
.motion .apps.is-live .po-row:first-of-type .po-ok { animation: press 3s ease-in-out infinite; }
@keyframes press { 0%, 70%, 100% { box-shadow: none; transform: none; } 78% { box-shadow: 0 0 0 5px rgba(59,130,246,.35); transform: scale(0.94); } }
.pf-list { display: grid; gap: 6px; }
.pa-n { display: inline-grid; place-items: center; min-width: 17px; height: 17px; border-radius: 999px; background: #EDE9FE; color: #6D28D9; font-size: 10px; margin-left: 4px; }
.po-row em, .pf-list em { display: block; font-style: normal; font-weight: 500; font-size: 10px; color: #94A3B8; }
.pf-list b em { display: inline; margin-left: 4px; }
.pa-s { font-size: 10.5px; color: #64748B; }
.pa-filters { display: flex; gap: 5px; }
.pa-filters span { padding: 3px 9px; border-radius: 999px; background: #fff; border: 1px solid #E5EAF2; font-size: 10.5px; font-weight: 600; color: #475569; }
.pa-filters span.is-on { background: #0B1F3B; border-color: #0B1F3B; color: #fff; }
.pa-next { display: grid; gap: 1px; padding: 8px 10px; border-radius: 12px; background: #EFF6FF; border: 1px solid #DBEAFE; font-size: 10.5px; }
.pa-next span { color: #1D4ED8; font-weight: 700; } .pa-next b { font-size: 12px; color: #0B1F3B; } .pa-next em { font-style: normal; color: #64748B; }
.pa-msg { padding: 8px 10px; border-radius: 12px; background: #fff; border: 1px solid #E5EAF2; font-size: 11px; line-height: 1.35; }
.pa-msg span { display: block; font-weight: 700; font-size: 10.5px; color: #0B1F3B; }
.pa-docs { display: grid; gap: 5px; }
.pa-docs li { display: flex; justify-content: space-between; padding: 7px 10px; border-radius: 10px; background: #fff; border: 1px solid #E5EAF2; font-size: 11px; font-weight: 600; }
.pa-docs em { font-style: normal; color: #64748B; font-weight: 500; }
.pf-list li { display: grid; gap: 4px; justify-items: start; background: #fff; border: 1px solid #E5EAF2; border-radius: 12px; padding: 8px 10px; font-size: 11px; }
.motion .apps.is-live .pf-new { animation: slide-in 4s ease infinite; }
@keyframes slide-in { 0% { opacity: 0; transform: translateY(-14px); } 12%, 100% { opacity: 1; transform: none; } }
.pc-job { display: grid; gap: 3px; padding: 10px; border-radius: 14px; background: #fff; border: 1px solid #E5EAF2; border-left: 4px solid var(--st-green); }
.pc-time { font-size: 10px; color: #64748B; } .pc-job b { font-size: 12px; }
.pc-chip { justify-self: start; font-size: 9.5px; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: var(--st-green-bg); color: var(--st-green); }
.pc-check { display: grid; gap: 5px; }
.pc-check li { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 10px; background: #fff; border: 1px solid #E5EAF2; font-size: 10.5px; font-weight: 500; }
.pc-check li::before { content: ""; width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid #CBD5E1; flex: none; background: #fff center / 10px no-repeat; }
.pc-check li.is-done::before, html:not(.motion) .pc-check li:nth-child(-n+2)::before { background-color: var(--st-green); border-color: var(--st-green); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 5.2l2 2 4-4.4' fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.pc-photos { display: flex; gap: 6px; }
.pc-photos i { width: 46px; height: 40px; border-radius: 8px; background: linear-gradient(135deg, #BAE6FD, #C7D2FE); }
.pc-photos i:nth-child(2) { background: linear-gradient(135deg, #FDE68A, #FCA5A5); } .pc-photos i:nth-child(3) { background: linear-gradient(135deg, #A7F3D0, #93C5FD); }
.pt-steps { display: grid; gap: 0; padding: 4px 4px 4px 2px; }
.pt-steps li { position: relative; padding: 0 0 14px 26px; font-size: 11.5px; font-weight: 600; color: #94A3B8; }
.pt-steps li::before { content: ""; position: absolute; left: 4px; top: 1px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #CBD5E1; background: #fff; }
.pt-steps li::after { content: ""; position: absolute; left: 10px; top: 16px; bottom: 0; width: 2px; background: #E2E8F0; }
.pt-steps li:last-child::after { display: none; }
.pt-steps li.is-on, html:not(.motion) .pt-steps li:nth-child(-n+3) { color: #0B1F3B; }
.pt-steps li.is-on::before, html:not(.motion) .pt-steps li:nth-child(-n+3)::before { background: #2563EB; border-color: #2563EB; }
.pt-card { display: grid; gap: 4px; padding: 12px; background: #fff; border: 1px solid #E5EAF2; border-radius: 14px; font-size: 10.5px; color: #64748B; }
.pt-card b { font-size: 18px; color: #0B1F3B; }
.pt-pay { margin-top: 4px; text-align: center; padding: 7px; border-radius: 999px; background: linear-gradient(90deg, #2563EB, #7C3AED); color: #fff; font-weight: 600; font-size: 11px; }
@media (max-width: 75rem) { .apps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 47.99rem) {
  .apps { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 0.9rem; margin: 0 -1rem; padding: 0.5rem 1rem 1.25rem; scrollbar-width: none; }
  .apps::-webkit-scrollbar { display: none; }
  .appc { flex: 0 0 78%; scroll-snap-align: center; }
}

/* ---------- What we build (bento of mini screens) ---------- */
.bento4 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.b4 { background: #fff; border: 1px solid #E5EAF2; border-radius: 26px; padding: 0.75rem 0.75rem 1.4rem; box-shadow: var(--card-shadow); display: grid; align-content: start; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.b4:hover { transform: translateY(-3px); box-shadow: var(--deep-shadow); }
.b4 h3 { margin: 1.1rem 0.75rem 0.3rem; font-size: 1.25rem; letter-spacing: -0.02em; }
.b4 > p { margin: 0 0.75rem; color: var(--muted); font-size: 0.97rem; }
.b4-crm { grid-column: span 2; }
.b4-vis { position: relative; height: 270px; border-radius: 18px; overflow: hidden; display: grid; place-items: center; }
.b4-crm .b4-vis { background: linear-gradient(135deg, #EEF4FF, #F5F3FF); }
.b4-auto .b4-vis { background: linear-gradient(135deg, #ECFDF5, #EFF6FF); }
.b4-portal .b4-vis { background: linear-gradient(135deg, #F5F3FF, #FDF2F8); }
.b4-dash .b4-vis { background: linear-gradient(135deg, #EFF6FF, #ECFEFF); }
.b4-int .b4-vis { background: linear-gradient(135deg, #FFF7ED, #F5F3FF); }
.b4-vis p { margin: 0; }
/* CRM mini board: a person drags the first card to the next stage */
.mcrm { position: relative; display: grid; grid-template-columns: repeat(3, 150px); gap: 12px; padding-left: 40px; }
.mcrm-col { display: grid; gap: 8px; align-content: start; background: rgba(255,255,255,.7); border-radius: 14px; padding: 10px; min-height: 160px; }
.mcrm-col p { font-size: 0.78rem; font-weight: 700; color: #334155; }
.mc { display: block; height: 38px; border-radius: 10px; background: #fff; box-shadow: 0 1px 2px rgba(11,31,59,.08); border-left: 4px solid var(--st-violet); }
.mcrm-col:nth-child(2) .mc { border-left-color: var(--st-blue); }
.mc-g { border-left-color: var(--st-green) !important; }
.mc-mv { position: relative; z-index: 2; }
.motion .bento4.is-live .mc-mv { animation: drag-card 5s cubic-bezier(.5,0,.3,1) infinite; }
@keyframes drag-card { 0%, 15% { transform: none; box-shadow: 0 1px 2px rgba(11,31,59,.08); } 25% { transform: translate(0, -6px) rotate(-3deg); box-shadow: 0 16px 28px -10px rgba(37,99,235,.5); } 60%, 80% { transform: translate(162px, 46px) rotate(0); box-shadow: 0 1px 2px rgba(11,31,59,.08); border-left-color: var(--st-blue); } 100% { transform: translate(162px, 46px); opacity: 0; } }
.pp-b1 { right: 14px; bottom: -34px; width: 92px; }
@keyframes drag-walk { 0%, 15% { transform: none; } 60%, 80% { transform: translateX(160px); } 100% { transform: translateX(160px); opacity: 0; } }
/* Automations flow */
.mflow { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; width: 78%; counter-reset: f; }
.mflow li { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px; background: #fff; font-size: 0.82rem; font-weight: 600; color: #0B1F3B; box-shadow: 0 1px 2px rgba(11,31,59,.06); }
.mflow li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #CBD5E1; flex: none; }
.motion .bento4.is-live .mflow li::before { animation: step-on 4s steps(1) infinite; }
.mflow li:nth-child(2)::before { animation-delay: 1s !important; } .mflow li:nth-child(3)::before { animation-delay: 2s !important; } .mflow li:nth-child(4)::before { animation-delay: 3s !important; }
html:not(.motion) .mflow li::before { background: var(--st-green); }
@keyframes step-on { 0% { background: var(--st-green); box-shadow: 0 0 0 4px #A7F3D0; } 25%, 100% { background: var(--st-green); box-shadow: none; } }
/* Portal sign-in then job status */
.mportal { position: relative; width: 70%; background: #fff; border-radius: 16px; padding: 14px; box-shadow: 0 12px 30px -16px rgba(11,31,59,.35); display: grid; gap: 7px; }
.mp-h { font-weight: 700; font-size: 0.85rem; }
.mp-f { height: 22px; border-radius: 7px; background: #F1F5F9; border: 1px solid #E2E8F0; }
.mp-btn { text-align: center; padding: 5px; border-radius: 999px; background: linear-gradient(90deg, #3B82F6, #8B5CF6); color: #fff; font-weight: 600; font-size: 0.78rem; }
.mp-ok { position: absolute; inset: 0; border-radius: 16px; background: #fff; display: grid; place-content: center; text-align: center; gap: 2px; opacity: 0; font-size: 0.82rem; color: #475569; }
.mp-ok b { color: var(--st-green); font-size: 0.95rem; }
.motion .bento4.is-live .mp-ok { animation: portal 5s ease infinite; }
html:not(.motion) .mp-ok { opacity: 1; }
@keyframes portal { 0%, 45% { opacity: 0; } 55%, 92% { opacity: 1; } 100% { opacity: 0; } }
/* Dashboard */
.mdash { width: 80%; display: grid; gap: 8px; }
.md-n { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.03em; color: #0B1F3B; }
.md-n span { font-size: 0.8rem; font-weight: 500; color: #64748B; letter-spacing: 0; }
.md-bars { display: flex; align-items: flex-end; gap: 6px; height: 90px; }
.md-bars i { flex: 1; border-radius: 6px 6px 2px 2px; background: linear-gradient(#38BDF8, #6366F1); transform-origin: bottom; }
.md-bars i:nth-child(1) { height: 30%; } .md-bars i:nth-child(2) { height: 46%; } .md-bars i:nth-child(3) { height: 38%; } .md-bars i:nth-child(4) { height: 60%; }
.md-bars i:nth-child(5) { height: 52%; } .md-bars i:nth-child(6) { height: 74%; } .md-bars i:nth-child(7) { height: 66%; } .md-bars i:nth-child(8) { height: 92%; }
.motion .bento4.is-live .md-bars i { animation: grow 2.4s ease-in-out infinite alternate; }
.md-bars i:nth-child(odd) { animation-delay: -1s !important; }
/* Integrations */
.mint { position: relative; width: 300px; height: 160px; }
.mi-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.mi-lines path { fill: none; stroke: #A5B4FC; stroke-width: 2; stroke-dasharray: 5 6; }
.motion .bento4.is-live .mi-lines path { animation: dash 1.2s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -22; } }
.mi-hub { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 16px; background: #0B1F3B url("/assets/logo-mark.webp") center / 30px no-repeat; box-shadow: 0 10px 24px -10px rgba(11,31,59,.5); z-index: 1; }
.mi { position: absolute; padding: 4px 10px; border-radius: 999px; background: #fff; font-size: 0.75rem; font-weight: 600; color: #334155; box-shadow: 0 1px 3px rgba(11,31,59,.12); z-index: 1; }
.mi.n1 { left: 0; top: 14px; } .mi.n2 { right: 0; top: 14px; } .mi.n3 { left: 0; bottom: 14px; } .mi.n4 { right: 0; bottom: 14px; }
.b4-more { margin: 1.75rem 0 0; color: var(--muted); }
/* v5 kit windows inside the bento (real example content, no grey bars) */
.b5-win { position: absolute; inset: 14px 14px auto 14px; background: #fff; border-radius: 16px; border: 1px solid #E5EAF2; box-shadow: 0 18px 36px -22px rgba(11, 31, 59, 0.4); padding: 10px 12px 12px; font-size: 11.5px; color: #334155; }
.b5-bar { display: flex; align-items: baseline; gap: 8px; margin-bottom: 9px !important; }
.b5-bar b { font-family: var(--font-head); font-size: 14px; font-weight: 600; color: #0B1F3B; }
.b5-bar span { color: #64748B; font-size: 11px; }
.b5-bar .ex4 { margin-left: auto; font-size: 10px; color: #78350F; }
.b5-crm { right: 120px; }
.b5-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.b5-col { background: #F7F9FD; border-radius: 12px; padding: 7px; border-top: 3px solid var(--st-violet); }
.b5-col.c-prog { border-top-color: var(--st-blue); } .b5-col.c-done { border-top-color: var(--st-green); }
.b5-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.b5-col .app-col-t { margin-bottom: 6px !important; }
.b5-flag { border-color: #FCD34D; }
.b5-empty { border: 1.5px dashed #CBD5E1; border-radius: 10px; padding: 9px 8px; color: #94A3B8; font-size: 10.5px; text-align: center; }
.motion .bento4.is-live .b5-mv { animation: b5-lift 4.5s ease-in-out infinite; }
@keyframes b5-lift { 0%, 40%, 100% { transform: none; box-shadow: 0 1px 2px rgba(11,31,59,.04); } 55%, 80% { transform: translate(3px, -4px) rotate(-1.5deg); box-shadow: 0 14px 26px -12px rgba(37, 99, 235, 0.5); border-color: #93C5FD; } }
.b5-auto .mflow { width: 100%; }
.b5-auto .mflow li { box-shadow: none; border: 1px solid #EEF2F7; padding: 7px 10px; }
.mflow em { margin-left: auto; font-style: normal; font-weight: 500; color: #64748B; font-size: 0.72rem; }
.b5-steps { list-style: none; margin: 0 0 10px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.b5-steps li { position: relative; padding-top: 14px; font-size: 10px; color: #64748B; text-align: center; }
.b5-steps li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; border-radius: 3px; background: #E2E8F0; }
.b5-steps li.is-on { color: #0F766E; } .b5-steps li.is-on::before { background: var(--st-green); }
.b5-steps li.is-now { color: #1D4ED8; font-weight: 600; } .b5-steps li.is-now::before { background: linear-gradient(90deg, #3B82F6 60%, #E2E8F0 60%); }
.motion .bento4.is-live .b5-steps li.is-now::before { animation: b5-now 2.4s ease-in-out infinite alternate; background-size: 200% 100%; }
@keyframes b5-now { from { background: linear-gradient(90deg, #3B82F6 20%, #E2E8F0 20%); } to { background: linear-gradient(90deg, #3B82F6 85%, #E2E8F0 85%); } }
.b5-msg { padding: 8px 10px; border-radius: 12px; background: #F1F5F9; margin-bottom: 8px !important; line-height: 1.35; }
.b5-msg span { display: block; font-weight: 700; color: #0B1F3B; font-size: 10.5px; }
.b5-inv { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; border: 1px solid #E5EAF2; }
.b5-inv b { font-size: 14px; color: #0B1F3B; } .b5-inv em { margin-left: auto; font-style: normal; font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--st-green-bg); color: var(--st-green); }
.b5-kpis { list-style: none; margin: 0 0 8px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.b5-kpis li { display: grid; padding: 7px 9px; border-radius: 11px; border: 1px solid #EEF2F7; border-bottom: 3px solid var(--st-green); }
.b5-kpis li.k-violet { border-bottom-color: var(--st-violet); }
.b5-kpis span { font-size: 10px; color: #64748B; } .b5-kpis b { font-family: var(--font-head); font-size: 18px; color: #0B1F3B; }
.b5-dash .md-bars { height: 70px; }
.b5-days { display: flex; justify-content: space-around; font-size: 9.5px; color: #94A3B8; margin-top: 4px !important; }
@media (max-width: 64rem) { .bento4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 47.99rem) {
  .bento4 { grid-template-columns: 1fr; }
  .b4-crm { grid-column: auto; }
  .mcrm { grid-template-columns: repeat(3, 92px); gap: 8px; padding-left: 0; }
  .pp-b1 { display: none; }
  .b5-crm { right: 14px; }
  .b5-cols { grid-template-columns: repeat(3, 150px); }
  .b4-crm .b4-vis { height: 300px; }
  .motion .bento4.is-live .mc-mv { animation-name: drag-card-s; }
  @keyframes drag-card-s { 0%, 15% { transform: none; } 25% { transform: translate(0, -6px) rotate(-3deg); } 60%, 80% { transform: translate(100px, 46px); border-left-color: var(--st-blue); } 100% { transform: translate(100px, 46px); opacity: 0; } }
}

/* ---------- Web builds ---------- */
.sec-web { background: #0B1F3B; color: #F8FAFC; overflow: hidden;
  background-image: radial-gradient(40rem 28rem at 85% 0%, rgba(139, 92, 246, 0.28), transparent 60%), radial-gradient(40rem 28rem at 0% 100%, rgba(14, 165, 233, 0.22), transparent 60%); }
.sec-web .sec-head h2 { color: #fff; }
.sec-web .sec-head p { color: #CBD5E1; }
.web4 { position: relative; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.bw { border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); color: #0B1F3B; }
.br-bar { display: flex; align-items: center; gap: 6px; margin: 0; padding: 10px 14px; background: #EEF2F7; border-bottom: 1px solid #E2E8F0; font-size: 0.78rem; }
.br-bar i { width: 10px; height: 10px; border-radius: 50%; background: #CBD5E1; }
.br-bar i:nth-child(1) { background: #F87171; } .br-bar i:nth-child(2) { background: #FBBF24; } .br-bar i:nth-child(3) { background: #34D399; }
.br-url { margin-left: 10px; flex: 1; padding: 3px 12px; border-radius: 999px; background: #fff; color: #475569; font-weight: 500; }
.br-bar .ex4 { font-size: 0.7rem; }
.web4-shots { position: relative; aspect-ratio: 1200 / 750; background: #E2E8F0; }
.web4-shots img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.6s ease; }
.web4-shots img.is-on { opacity: 1; }
.web4-cap { margin: 0; padding: 12px 16px 14px; display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: baseline; font-size: 0.95rem; color: #475569; }
.web4-cap b { color: #0B1F3B; }
.web4-cap a { margin-left: auto; color: #1D4ED8; font-weight: 600; }
.web4-side { display: grid; gap: 1rem; }
.bf { position: relative; height: 150px; padding: 12px 14px; }
.bf-steps { list-style: none; margin: 0 0 10px; padding: 0; display: flex; gap: 6px; font-size: 0.72rem; font-weight: 600; color: #94A3B8; }
.bf-steps li { flex: 1; padding-top: 6px; border-top: 3px solid #E2E8F0; }
.bf-pane { position: absolute; left: 14px; right: 14px; top: 44px; display: flex; flex-wrap: wrap; gap: 6px; opacity: 0; transition: opacity 0.4s ease; }
.bf-slot { padding: 7px 10px; border-radius: 10px; border: 1px solid #E2E8F0; font-size: 0.8rem; font-weight: 600; }
.bf-slot.is-pick { border-color: #2563EB; background: #EFF6FF; color: #1D4ED8; }
.bf-in { flex: 1 1 100%; height: 24px; border-radius: 8px; background: #F1F5F9; border: 1px solid #E2E8F0; }
.bf-go { padding: 6px 14px; border-radius: 999px; background: #0B1F3B; color: #fff; font-size: 0.78rem; font-weight: 600; }
.bf-3 { display: grid; gap: 2px; font-size: 0.85rem; color: #475569; } .bf-3 b { color: var(--st-green); font-size: 1rem; }
.bf[data-step="1"] .bf-1, .bf[data-step="2"] .bf-2, .bf[data-step="3"] .bf-3, .bf:not([data-step]) .bf-3 { opacity: 1; }
.bf[data-step="1"] .bf-steps li:nth-child(-n+1), .bf[data-step="2"] .bf-steps li:nth-child(-n+2), .bf[data-step="3"] .bf-steps li, .bf:not([data-step]) .bf-steps li { border-top-color: #2563EB; color: #1D4ED8; }
.wd { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px 14px; }
.wd-k { margin: 0; display: grid; padding: 8px 10px; border-radius: 12px; background: #F8FAFC; border: 1px solid #E2E8F0; }
.wd-k b { font-size: 1.15rem; } .wd-k span { font-size: 0.72rem; color: #64748B; }
.wd-line { grid-column: span 2; width: 100%; height: 56px; }
.wd-line path { fill: none; stroke: #6366F1; stroke-width: 2.5; stroke-linejoin: round; stroke-dasharray: 300; }
.motion .web4.is-live .wd-line path { animation: draw 3.5s ease-in-out infinite; }
@keyframes draw { from { stroke-dashoffset: 300; } 60%, to { stroke-dashoffset: 0; } }
.web4-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
html:not(.js) .web4-list { display: none; }
.wl { min-height: 2.5rem; padding: 0.3rem 0.9rem; border-radius: 999px; border: 1px solid rgba(248,250,252,.25); background: transparent; color: #E2E8F0; font: inherit; font-size: 0.88rem; font-weight: 500; cursor: pointer; }
.wl:hover { border-color: rgba(248,250,252,.6); }
.wl.is-on { background: #fff; color: #0B1F3B; border-color: #fff; font-weight: 600; }
.web4-all { color: #7DD3FC; font-weight: 600; }
.web4-note { margin: 0; padding-right: 100px; font-size: 0.85rem; color: #94A3B8; }
@media (max-width: 64rem) { .web4-note { padding-right: 0; } }
.ph-app .ex4 { margin-left: auto; font-size: 10px; font-weight: 600; letter-spacing: 0; }
.pp-w1 { right: 1%; bottom: -70px; width: 92px; z-index: 5; }
@media (max-width: 64rem) { .web4 { grid-template-columns: 1fr; } .pp-w1 { display: none; } .web4-side { grid-template-columns: 1fr 1fr; } .web4-list, .web4-all, .web4-note { grid-column: span 2; } }
@media (max-width: 47.99rem) { .web4-side { grid-template-columns: 1fr; } .web4-list, .web4-all, .web4-note { grid-column: auto; } }

/* ---------- Any industry ---------- */
.sec-any { background: #fff; padding-bottom: clamp(3rem, 2rem + 3vw, 5rem); }
.parade { position: relative; height: 260px; margin: 0 0 2rem; overflow: hidden;
  background: linear-gradient(180deg, transparent 0 78%, #EEF2F8 78% 79%, transparent 79%), radial-gradient(40rem 12rem at 50% 70%, rgba(59,130,246,.10), transparent 70%); }
.parade-tags { list-style: none; margin: 0; padding: 0; position: absolute; left: 0; top: 18px; display: flex; gap: 0.6rem; width: max-content; }
.parade-tags li { padding: 0.5rem 1rem; border-radius: 999px; background: #fff; border: 1px solid #E2E8F0; box-shadow: 0 6px 16px -10px rgba(11,31,59,.3); font-weight: 600; color: #0B1F3B; white-space: nowrap; }
.parade-tags li:nth-child(3n+1) { background: var(--st-blue-bg); border-color: #BFDBFE; }
.parade-tags li:nth-child(3n+2) { background: var(--st-violet-bg); border-color: #DDD6FE; }
.motion .parade.is-live .parade-tags { animation: marquee 50s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }
html:not(.motion) .parade-tags { position: static; flex-wrap: wrap; justify-content: center; width: auto; padding: 1rem; }
html:not(.motion) .parade { height: auto; padding-bottom: 210px; }
.parade-walk .pp-slot { top: 76px; width: 92px; }
.motion .parade.is-live .parade-walk .pp-slot { animation: cross var(--dur, 22s) linear infinite; animation-delay: var(--del, 0s); }
@keyframes cross { from { left: -120px; } to { left: 100%; } }
.any-list { list-style: none; margin: 0 auto; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; }
.any-list a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0.4rem 1.1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 600; text-decoration: none; }
.any-list a:hover { border-color: var(--line-strong); box-shadow: 0 6px 16px -10px rgba(11,31,59,.35); }

/* ---------- Roles ---------- */
.sec-roles { background: var(--tint-page); }
.org { display: grid; gap: 1.5rem; }
@media (min-width: 60rem) { .org { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: 3rem; } }
.org-chart { display: grid; gap: 2.2rem; justify-items: center; }
.org-row { position: relative; width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; justify-items: center; }
.org-top { position: relative; }
.org-top::after { content: ""; position: absolute; left: 50%; top: 100%; height: 1.1rem; border-left: 2px solid var(--line-strong); margin-left: -1px; }
.org-row::before { content: ""; position: absolute; left: 16.67%; right: 16.67%; top: -1.1rem; height: 1.1rem; border: 2px solid var(--line-strong); border-bottom: 0; border-radius: 10px 10px 0 0; }
.org-row::after { content: ""; position: absolute; left: 50%; top: -1.1rem; height: 1.1rem; border-left: 2px solid var(--line-strong); margin-left: -1px; }
.org-role { display: grid; justify-items: center; gap: 0.35rem; width: 100%; max-width: 9.5rem; padding: 0.8rem 0.5rem 0.7rem; border-radius: 18px; background: #fff; border: 1.5px solid #E5EAF2; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem; box-shadow: 0 1px 2px rgba(11,31,59,.05); transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease; }
.org-role img { width: 64px; height: auto; }
.org-role:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.org-role[aria-selected="true"] { border-color: #3B82F6; box-shadow: 0 0 0 4px #DBEAFE, 0 14px 30px -16px rgba(37,99,235,.5); }
.org-role[aria-selected="true"] span { color: #1D4ED8; }
.org-panel { min-width: 0; }
.org-say { margin: 0 0 1rem; font-family: var(--font-head); font-weight: 600; font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); color: var(--ink); }
.rs { background: #F5F8FD; border: 1px solid #DCE4F0; border-radius: 22px; padding: 18px; box-shadow: var(--deep-shadow); font-family: "Urbanist", system-ui, sans-serif; color: #0B1F3B; position: relative; overflow: hidden; }
.rs::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, #0EA5E9, #3B82F6, #8B5CF6); }
.rs p, .rs ul { margin: 0; padding: 0; list-style: none; }
.rs-h { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.05rem; margin-bottom: 14px !important; }
.rs-h .ph-mk { font-size: 0.75rem; }
.rs-h .ex4 { margin-left: auto; }
.rs-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rs-kpis .k-n { font-size: 1.8rem; }
.rs-kpis .k-l { font-size: 0.85rem; }
.rs-list { display: grid; gap: 8px; }
.rs-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #fff; border: 1px solid #E8EDF5; border-radius: 14px; padding: 12px 14px; font-weight: 500; font-size: 0.95rem; }
.rs-list .pf-c { font-size: 0.78rem; }
.rs-phone { max-width: 22rem; margin: 0 auto; border-radius: 36px; border: 8px solid #0B1F3B; }
.motion .org-panel:not([hidden]) .rs { animation: card-in 0.35s ease both; }
@media (max-width: 30rem) { .org-role img { width: 52px; } .org-role { font-size: 0.85rem; } }

/* ---------- How it works ---------- */
.sec-how { background: #fff; }
.principles4 { list-style: none; margin: 2rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.principles4 li { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.5rem 1rem; border-radius: 999px; background: var(--st-green-bg); color: #0F5F58; font-weight: 600; font-size: 0.92rem; }
.principles4 li::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--st-green); }
.hs-more { margin: 1.5rem 0 0; color: var(--muted); }
/* Crew: 4-step timeline with an illustrated role and a live mini screen per step */
.crew { position: relative; --cur: 4; }
.crew-line { list-style: none; margin: 0 0 1.1rem; padding: 0 0 1.1rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; position: relative; }
.crew-line::before, .crew-line::after { content: ""; position: absolute; left: 0; bottom: 0; height: 4px; border-radius: 2px; }
.crew-line::before { right: 0; background: #E3E9F4; }
.crew-line::after { width: calc(var(--cur) * 25%); background: linear-gradient(90deg, #06B6D4, #3B82F6, #8B5CF6); transition: width 0.9s cubic-bezier(.5,0,.25,1); }
.crew-line li { position: relative; font-family: var(--font-head); font-weight: 500; font-size: 1.05rem; color: var(--ink); display: grid; gap: 0.1rem; }
.crew-line li span { font-family: var(--font-body); font-size: 0.85rem; color: var(--muted); font-weight: 400; }
.crew-line li::after { content: ""; position: absolute; left: 0; bottom: calc(-1.1rem - 5px); width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid #CBD5E1; z-index: 1; transition: border-color 0.4s ease, box-shadow 0.4s ease; }
.crew-line li.is-on::after { border-color: #3B82F6; box-shadow: 0 0 0 5px rgba(59, 130, 246, 0.18); }
.crew-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.cw { background: #fff; border: 1px solid #E5EAF2; border-radius: 26px; padding: 0.75rem 0.75rem 1.4rem; box-shadow: 0 18px 40px -26px rgba(11, 31, 59, 0.35); transition: transform 0.4s ease, box-shadow 0.4s ease; }
.cw.is-cur { transform: translateY(-6px); box-shadow: 0 30px 60px -28px rgba(37, 99, 235, 0.45); }
.cw h3 { margin: 1.1rem 0.6rem 0.15rem; font-size: 1.3rem; }
.cw-role { margin: 0 0.6rem 0.5rem !important; font-size: 0.9rem; font-weight: 600; color: #2563EB; }
.cw > p:last-child { margin: 0 0.6rem; color: var(--muted); font-size: 0.95rem; line-height: 1.5; }
.cw-vis { position: relative; height: 400px; border-radius: 20px; overflow: hidden; }
.cw-1 .cw-vis { background: radial-gradient(14rem 10rem at 80% 10%, rgba(139, 92, 246, 0.22), transparent 70%), #F3F0FF; }
.cw-2 .cw-vis { background: radial-gradient(14rem 10rem at 80% 10%, rgba(59, 130, 246, 0.22), transparent 70%), #EEF4FF; }
.cw-3 .cw-vis { background: radial-gradient(14rem 10rem at 80% 10%, rgba(245, 158, 11, 0.22), transparent 70%), #FFF7EB; }
.cw-4 .cw-vis { background: radial-gradient(14rem 10rem at 80% 10%, rgba(16, 185, 129, 0.22), transparent 70%), #ECFBF4; }
.cw-p { left: calc(50% - 66px); top: 186px; width: 132px; z-index: 1; }
.cw-ui { position: absolute; left: 12px; right: 12px; top: 12px; z-index: 2; background: #fff; border-radius: 16px; border: 1px solid #E5EAF2; padding: 11px 12px; box-shadow: 0 16px 34px -18px rgba(11, 31, 59, 0.4); font-size: 11.5px; color: #334155; }
.cw-ui p { margin: 0; }
.cw-ui-t { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-weight: 700; font-size: 12.5px; color: #0B1F3B; margin-bottom: 8px !important; }
.cw-ui-n { margin-top: 8px !important; font-size: 10.5px; color: #64748B; }
.cw-ui ul, .cw-ui ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.cw-bars li { display: grid; grid-template-columns: 62px 1fr; align-items: center; gap: 8px; }
.cw-bars i { height: 7px; border-radius: 4px; background: #EEF2F7; position: relative; overflow: hidden; }
.cw-bars i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 4px; background: linear-gradient(90deg, #8B5CF6, #3B82F6); transition: width 1s ease; }
.b-1 { --w: 100%; } .b-2 { --w: 80%; } .b-3 { --w: 60%; } .b-4 { --w: 35%; }
.motion .crew .cw-1:not(.is-cur):not(.was-cur) .cw-bars i::after { width: 0; }
.motion .crew .cw-1.is-cur .b-2::after { transition-delay: 0.25s; } .motion .crew .cw-1.is-cur .b-3::after { transition-delay: 0.5s; } .motion .crew .cw-1.is-cur .b-4::after { transition-delay: 0.75s; }
.cw-flow ol { grid-template-columns: 1fr; gap: 0; }
.cw-flow li { position: relative; padding: 6px 10px 6px 28px; border-radius: 10px; font-weight: 600; color: #0B1F3B; transition: background-color 0.3s ease; }
.cw-flow li::before { content: ""; position: absolute; left: 9px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: #3B82F6; box-shadow: 0 0 0 3px #DBEAFE; }
.cw-flow li + li::after { content: ""; position: absolute; left: 13px; top: -6px; height: 12px; width: 2px; background: #BFDBFE; }
.cw-flow li { background: #EFF6FF; margin-bottom: 4px; }
.motion .crew .cw-2:not(.was-cur) .cw-flow li { background: transparent; }
.motion .crew .cw-2:not(.was-cur) .cw-flow li::before { background: #CBD5E1; box-shadow: 0 0 0 3px #F1F5F9; }
.motion .crew .cw-2.is-cur .cw-flow li { animation: cw-node 0.4s ease both; }
.cw-2.is-cur .cw-flow li:nth-child(2) { animation-delay: 0.45s !important; } .cw-2.is-cur .cw-flow li:nth-child(3) { animation-delay: 0.9s !important; } .cw-2.is-cur .cw-flow li:nth-child(4) { animation-delay: 1.35s !important; }
@keyframes cw-node { from { background: transparent; } to { background: #EFF6FF; } }
.cw-table li { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding-bottom: 6px; border-bottom: 1px solid #F1F5F9; }
.cw-table b { font-size: 10px; padding: 2px 8px; border-radius: 999px; }
.s-live { background: var(--st-green-bg); color: var(--st-green); } .s-next { background: #F1F5F9; color: #64748B; }
.s-flip { background: var(--st-green-bg); color: var(--st-green); transition: background-color 0.4s ease, color 0.4s ease; }
.motion .crew .cw-3.is-cur .s-flip { transition-delay: 0.9s; }
.motion .crew .cw-3:not(.was-cur):not(.is-cur) .s-flip { background: var(--st-amber-bg); color: var(--st-amber); }
.cw-msg { padding: 7px 10px; border-radius: 12px; line-height: 1.35; max-width: 88%; }
.cw-in { background: #F1F5F9; }
.cw-out { background: #0B1F3B; color: #fff; margin: 6px 0 0 auto !important; }
.cw-chat { min-height: 128px; } .cw-chat .cw-dots { bottom: auto; top: 92px; }
.cw-dots { display: none; position: absolute; right: 12px; bottom: 14px; gap: 3px; padding: 8px 10px; background: #F1F5F9; border-radius: 12px; width: max-content; }
.cw-dots i { width: 5px; height: 5px; border-radius: 50%; background: #94A3B8; animation: cw-dot 1s ease-in-out infinite; }
.cw-dots i:nth-child(2) { animation-delay: 0.15s; } .cw-dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes cw-dot { 50% { transform: translateY(-3px); opacity: 0.5; } }
.motion .crew .cw-4.is-cur .cw-dots { display: flex; animation: cw-hide 0.2s linear 1.3s forwards; }
@keyframes cw-hide { to { opacity: 0; visibility: hidden; } }
.motion .crew .cw-4:not(.was-cur):not(.is-cur) .cw-out { opacity: 0; transform: translateY(6px); }
.motion .crew .cw-4.is-cur .cw-out { animation: cw-up 0.4s ease 1.4s both; }
@keyframes cw-up { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.crew-cap { margin-top: 0.9rem; }
.cw-2 .cw-p { top: 228px; } .cw-4 .cw-p { top: 262px; }
.cw-flow li { padding-top: 5px; padding-bottom: 5px; }
.cw-reqs { margin-top: 10px !important; padding-top: 8px !important; border-top: 1px solid #F1F5F9; }
.cw-reqs li { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.cw-reqs b { font-size: 10px; padding: 2px 8px; border-radius: 999px; }
.motion .crew .cw-4:not(.was-cur):not(.is-cur) .cw-reqs li:first-child b { background: #F1F5F9; color: #64748B; }
.motion .crew .cw-4.is-cur .cw-reqs li:first-child b { animation: cw-done 0.3s ease 1.9s both; }
@keyframes cw-done { from { background: #F1F5F9; color: #64748B; } to { background: var(--st-green-bg); color: var(--st-green); } }
@media (max-width: 63.99rem) {
  .crew-line { display: none; }
  .crew-cards { grid-template-columns: repeat(4, minmax(17rem, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -1rem; padding: 0.5rem 1rem 1rem; scrollbar-width: thin; }
  .cw { scroll-snap-align: start; }
}

/* ---------- Promise ---------- */
.sec-promise { background: var(--tint-page); }
.promise4 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.pr { border-radius: 24px; padding: 1.75rem; background: #fff; border: 1px solid #E5EAF2; box-shadow: var(--card-shadow); }
.pr h3 { margin: 0 0 1rem; font-size: 1.3rem; }
.pr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.8rem; }
.pr li { position: relative; padding-left: 2rem; color: var(--muted); }
.pr li::before { content: ""; position: absolute; left: 0; top: 0.1rem; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: center / 0.75rem no-repeat; }
.pr-no li::before { background-color: #FEE2E2; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2.5 2.5l5 5M7.5 2.5l-5 5' stroke='%23B91C1C' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); }
.pr-yes li::before { background-color: var(--st-green-bg); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 5.2l2 2 4-4.4' fill='none' stroke='%230F766E' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.pr-yes { border-color: #A7F3D0; }
@media (max-width: 47.99rem) { .promise4 { grid-template-columns: 1fr; } }

/* No motion: freeze everything that would move. */
@media (prefers-reduced-motion: reduce) {
  .pp-slot, .pp-slot * { animation: none !important; transition: none !important; }
}

.sys-tag, .work-sys { display: inline-flex; align-items: center; padding: 0.15rem 0.6rem; border-radius: 999px; font-size: 0.78rem; font-weight: 600; background: rgba(125, 211, 252, 0.16); color: #7DD3FC; border: 1px solid rgba(125, 211, 252, 0.4); white-space: nowrap; }
.sys-tag[hidden] { display: none; }

/* ---------- Hero v5: text left, living scene right (hero.js) ---------- */
.hero5 { position: relative; overflow: hidden; padding: clamp(1.5rem, 0.5rem + 2vw, 2.5rem) 0 clamp(2rem, 1rem + 2vw, 3rem);
  background:
    radial-gradient(42rem 30rem at 8% 12%, rgba(14, 165, 233, 0.12), transparent 60%),
    radial-gradient(56rem 38rem at 78% 34%, rgba(139, 92, 246, 0.15), transparent 62%),
    radial-gradient(40rem 26rem at 60% 100%, rgba(59, 130, 246, 0.12), transparent 60%),
    var(--tint-page); }
.hero5-in { max-width: 92rem; margin: 0 auto; padding: 0 clamp(1rem, 0.5rem + 2vw, 2.5rem); display: grid; grid-template-columns: minmax(0, 33rem) minmax(0, 1fr); gap: clamp(1.5rem, 1rem + 2vw, 3.5rem); align-items: center; }
.hero5-copy { display: grid; gap: 1.15rem; align-content: center; }
.hero5 h1 { margin: 0; font-size: clamp(2.5rem, 1.6rem + 2.3vw, 3.6rem); line-height: 1; letter-spacing: -0.045em; font-weight: 500; text-wrap: balance; }
.hero5-lead { margin: 0; max-width: 30rem; font-size: clamp(1.05rem, 1rem + 0.35vw, 1.25rem); color: var(--muted); }
.hero5-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 0.3rem; }
.hero5-actions .btn { min-height: 3.1rem; padding: 0.75rem 1.5rem; font-size: 0.9375rem; font-weight: 500; }
.h5-ctl { display: grid; gap: 0.6rem; margin-top: 1rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.h5-ctl[hidden] { display: none; }
.h5-ctl-l { margin: 0; font-size: 0.9rem; color: var(--muted); }
.h5-tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.h5-tab { min-height: 2.6rem; padding: 0 1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: 0.92rem; font-weight: 500; cursor: pointer; box-shadow: 0 1px 2px rgba(11,31,59,.05); }
.h5-tab:hover { border-color: var(--line-strong); }
.h5-tab[aria-current="true"] { background: #0B1F3B; border-color: #0B1F3B; color: #fff; }
.h5-pause { justify-self: start; display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.6rem; padding: 0 0.9rem; border: 0; background: none; color: var(--muted); font: inherit; font-size: 0.9rem; font-weight: 500; cursor: pointer; border-radius: 999px; }
.h5-pause:hover { color: var(--ink); background: var(--surface); }
.h5-pause[hidden] { display: none; }
.h5-pause[aria-pressed="true"] .scn-ic-pause { display: none; }
.h5-pause[aria-pressed="true"] .scn-ic-play { display: inline; }
.h5-tab:focus-visible, .h5-pause:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.hero5-fig { margin: 0 calc(-1 * clamp(1rem, 0.5rem + 2vw, 2.5rem)) 0 0; min-width: 0; }
.h5 .h5-b { font-size: 15px; padding: 10px 14px; }
.h5 .bub-who { display: block; font-size: 12px; font-weight: 600; color: #64748B; margin-bottom: 2px; }
.h5 .h5-say { font-weight: 600; }
.h5 .h5-say:empty::after { content: "\00a0"; }
.hero5-fig .cap { margin-top: 0.5rem; text-align: left; }

/* Canvas: 1040x840 scaled from the top left (home.js fit() sets --s) */
.h5 .cv-wrap { height: calc(830px * var(--s, 0.78)); --s: 0.78; }
.h5 .cv { left: 0; width: 980px; height: 830px; transform: scale(var(--s)); transform-origin: top left; }
.h5-app { top: 0; width: 860px; height: 660px; }
.h5-app .app-head { gap: 10px; }
.h5-app .app-grid { grid-template-columns: 1fr 1.75fr; }
.h5-app .app-needs { grid-column: 1; grid-row: 1 / span 2; }
.h5-app .app-board { grid-column: 2; grid-row: 1; }
.h5-app .app-week { grid-column: 2; grid-row: 2; }
.h5-app .app-search { min-width: 150px; }
.h5-phone { left: 702px; top: 196px; z-index: 3; }
.h5-p { width: 110px; z-index: 4; }
.h5-p0 { left: 190px; top: 612px; }
.h5-p1 { left: 440px; top: 616px; }
.h5-p2 { left: 846px; top: 606px; }
.h5-b0 { left: 236px; top: 548px; } .h5-b0 .bub-who::before { background: #0F766E; }
.h5-b1 { left: 566px; top: 668px; max-width: 170px; } .h5-b1 .bub-who::before { background: #0B1F3B; } .h5-b1::after { left: -6px; bottom: auto; top: 14px; transform: rotate(135deg); }
.h5-b2 { left: 652px; top: 752px; max-width: 190px; } .h5-b2 .bub-who::before { background: #D97706; } .h5-b2::after { left: auto; right: -6px; transform: rotate(-45deg); }
.motion .h5 .h5-b { opacity: 0; transform: translateY(6px); }
.motion .h5 .h5-b.is-on { opacity: 1; transform: none; }
.motion .h5-stage.is-swap .h5-app, .motion .h5-stage.is-swap .h5-phone { animation: fade-in 0.45s ease both; }

/* Kit details added for v5 */
.h5-amt { font-weight: 700; color: #0B1F3B; white-space: nowrap; }
.h5-sub { font-size: 10px; color: #64748B; margin-top: -3px; }
.h5-note { font-size: 10px; color: #64748B; }
.h5-cnt { margin-left: auto; font-size: 10px; color: #64748B; font-weight: 600; background: #EEF2F7; border-radius: 999px; padding: 0 6px; }
.h5-age { font-style: normal; color: #94A3B8; margin-left: 4px; }
.h5-wnote { margin-left: auto; font-size: 10.5px; font-weight: 500; color: #64748B; }
.h5-job { margin: 0; display: grid; gap: 2px; padding: 9px 11px; border-radius: 14px; background: #fff; border: 1px solid #E5EAF2; font-size: 11.5px; }
.h5-job b { font-size: 12px; } .h5-job span { color: #64748B; font-size: 10.5px; }
.h5-check { list-style: none; margin: 0; padding: 4px 10px; display: grid; background: #fff; border: 1px solid #E5EAF2; border-radius: 14px; }
.h5-check li { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 11.5px; border-top: 1px solid #F1F5F9; }
.h5-check li:first-child { border-top: 0; }
.h5-check i { width: 15px; height: 15px; border-radius: 5px; border: 1.5px solid #CBD5E1; flex: none; }
.h5-check li.is-on i { background: #0F766E; border-color: #0F766E; box-shadow: inset 0 0 0 3px #0F766E, inset 0 0 0 5px #fff; }
.h5-check li.is-on { color: #64748B; }
.h5-photos { margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.h5-photos i { aspect-ratio: 1; border-radius: 8px; background: linear-gradient(160deg, #BAE6FD, #93C5FD 55%, #64748B); }
.h5-photos i:nth-child(2) { background: linear-gradient(160deg, #FDE68A, #F59E0B 60%, #78350F); }
.h5-photos i:nth-child(3) { background: linear-gradient(160deg, #BBF7D0, #4ADE80 55%, #166534); }
.h5-photos i:nth-child(4) { background: linear-gradient(160deg, #E9D5FF, #A78BFA 55%, #4C1D95); }
.h5-lines, .h5-picks { list-style: none; margin: 0; padding: 4px 10px; background: #fff; border: 1px solid #E5EAF2; border-radius: 14px; }
.h5-lines li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; font-size: 11px; border-top: 1px solid #F1F5F9; }
.h5-lines li:first-child { border-top: 0; }
.h5-lines .h5-total { font-size: 12.5px; font-weight: 700; }
.h5-picks li { display: grid; grid-template-columns: 24px 1fr 15px; align-items: center; gap: 8px; padding: 7px 0; font-size: 11.5px; border-top: 1px solid #F1F5F9; }
.h5-picks li:first-child { border-top: 0; }
.h5-picks b { font-size: 11px; background: #EEF2F7; border-radius: 6px; text-align: center; padding: 1px 0; }
.h5-picks i { width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid #CBD5E1; }
.h5-picks li.is-on i { background: #16A34A; border-color: #16A34A; }
.h5-picks li.is-on span { color: #64748B; text-decoration: line-through; }
.h5.is-approved .ph-ok { box-shadow: 0 0 0 5px rgba(59, 130, 246, 0.3); transform: scale(0.96); }
.h5.is-approved .ph-done { opacity: 1; }
.h5.is-approved .h5-check li i, .h5.is-approved .h5-picks li i { background: #16A34A; border-color: #16A34A; }

@media (max-width: 63.99rem) {
  .hero5-in { grid-template-columns: 1fr; }
  .hero5-fig { margin-right: 0; }
  .hero5-copy { max-width: 40rem; }
}
@media (max-width: 47.99rem) {
  .hero5 { padding-top: 1.5rem; }
  .hero5-copy { gap: 0.9rem; }
  .h5-ctl { margin-top: 0.4rem; padding-top: 0.8rem; }
  .h5-ctl-l { display: none; }
  .h5-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -1rem; padding: 0 1rem 2px; }
  .h5-tab { flex: none; }
  .h5-pause { position: absolute; }
  .h5-ctl { position: relative; padding-bottom: 2.6rem; }
  .h5-pause { left: 0; bottom: 0; }
  .h5 .cv-wrap { height: calc(820px * var(--s, 0.78)); --s: 0.78; }
  .h5 .cv { width: 460px; height: 820px; overflow: hidden; border-radius: 0 0 24px 24px; }
  .h5-app { width: 460px; height: 600px; }
  .h5-app { grid-template-columns: 1fr; }
  .h5-app .app-side { display: none; }
  .h5-app .app-search, .h5-app .app-new { display: none; }
  .h5-app .app-kpis { grid-template-columns: repeat(2, 1fr); }
  .h5-app .app-grid { grid-template-columns: 1fr; }
  .h5-app .app-needs, .h5-app .app-week { display: none; }
  .h5-app .app-board { grid-column: 1; }
  .h5-phone { left: 196px; top: 236px; }
  .h5-p0 { left: 0; top: 600px; }
  .h5-p1, .h5-b1 { display: none; }
  .h5-p2 { left: 350px; top: 600px; }
  .h5-b0 { left: 98px; top: 600px; max-width: 200px; }
  .h5-b2 { left: 140px; top: 715px; max-width: 200px; }
}
.h5-b0::after { left: 30px; }

/* Apps v5: bigger, fuller phones; people stand at the card corner so the screen stays readable */
.appc { padding: 1.25rem 0.6rem 1.4rem; }
.appc .phn { width: 244px; height: 510px; }
.po-chart { flex: none; }
.pa-filters span { white-space: nowrap; }
.appc .pp-slot { width: 62px; top: 478px; right: auto; left: -6px; }
.appc:nth-child(even) .pp-slot { left: auto; right: -6px; }
@media (max-width: 75rem) { .appc .phn { width: 260px; height: 540px; } .appc .pp-slot { top: 450px; } }
/* Hero glow panel: one big rounded stage holding the copy and the scene */
.hero5 { background: var(--tint-page); padding: clamp(0.75rem, 0.4rem + 1vw, 1.25rem) clamp(0.5rem, 0.2rem + 1vw, 1.25rem) clamp(1.5rem, 1rem + 1.5vw, 2.5rem); }
.hero5-in { position: relative; overflow: hidden; border-radius: 32px; border: 1px solid rgba(255, 255, 255, 0.9);
  padding: clamp(1.75rem, 1rem + 2.5vw, 3.25rem) clamp(1rem, 0.4rem + 2.5vw, 3rem) clamp(1.25rem, 0.8rem + 1.5vw, 2rem);
  background:
    radial-gradient(38rem 28rem at 6% 8%, rgba(56, 189, 248, 0.16), transparent 62%),
    radial-gradient(52rem 36rem at 82% 30%, rgba(139, 92, 246, 0.17), transparent 62%),
    radial-gradient(40rem 24rem at 55% 108%, rgba(59, 130, 246, 0.16), transparent 60%),
    linear-gradient(180deg, #EAF0FB, #E7ECF8);
  box-shadow: 0 30px 70px -40px rgba(11, 31, 59, 0.35), inset 0 1px 0 #fff; }
.hero5-fig { margin: 0; }
@media (max-width: 47.99rem) {
  .hero5-in { border-radius: 24px; padding: 1.5rem 1rem 1rem; }
  .hero5-fig .cap { padding: 0 0.25rem; }
}

/* Tools collapse v2: pinned scroll. The track is ~2.4 screens tall; the stage sticks while chips arrive one by one,
   hold, gather, then merge into the system screen. Without motion the track is normal height (JS shows before/after). */
.motion .tc-track { height: 240vh; }
.motion .tc-track > .tc { position: sticky; top: 92px; }
.tc-chip.is-new .tc-chip-in { border-color: #93C5FD; box-shadow: 0 0 0 5px rgba(59, 130, 246, 0.14), 0 16px 30px -14px rgba(37, 99, 235, 0.45); }
.tc-chip-in { transition: border-color 0.3s ease, box-shadow 0.3s ease; }
.tc-count { position: absolute; left: var(--cx); top: var(--cy); z-index: 2; margin: 0; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 2px; text-align: center;
  font-size: 15px; font-weight: 600; color: #475569; opacity: var(--co, 0); }
.tc-count b { font-family: var(--font-head); font-size: 76px; line-height: 1; letter-spacing: -0.04em; color: #0B1F3B; font-weight: 600; }
.motion .tc-screen { opacity: calc(0.1 + 0.9 * var(--p)); }
.tc-ba { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.tc-ba-l { margin: 0 0 0.4rem; font-weight: 700; color: #0B1F3B; }
.tc-before .tc-chip { --t: 0; --in: 1; --m: 0; }
.tc-before .tc-count { --co: 1; }
.tc-before .tc-screen, .tc-before .tc-kept, .tc-before .tc-lines, .tc-before .tc-p, .tc-before .tc-bub { display: none; }
@media (max-width: 47.99rem) {
  .motion .tc-track { height: 230vh; }
  .motion .tc-track > .tc { top: 80px; }
  .tc-ba { grid-template-columns: 1fr; }
  .tc-count b { font-size: 64px; }
}
.motion .tc-screen { opacity: var(--p); }
.tc-chip-in { font-size: 12.5px; } .tc-chip-in b { font-size: 14.5px; }
@media (max-width: 47.99rem) { .tc-ctl .tc-pause { position: static; } }

/* Hero v6 (2026-11-03): bigger dashboard, phone out at its right edge (never over CRM content),
   people next to what they use: office person by the Needs list, owner at the bottom-right corner, crew on the phone. */
.h5 .cv-wrap { height: calc(815px * var(--s, 0.8)); }
.h5 .cv { width: 1136px; height: 815px; }
.h5-app { left: 30px; top: 54px; }
.h5-phone { left: 878px; top: 236px; }
.h5-p0 { left: 0; top: 476px; }
.h5-p1 { left: 772px; top: 600px; z-index: 5; }
.h5-p2 { left: 953px; top: 30px; z-index: 4; }
.h5-b0 { left: 92px; top: 470px; max-width: 170px; } .h5-b0::after { left: -6px; bottom: auto; top: 14px; transform: rotate(135deg); }
.h5-b1 { left: 620px; top: 748px; max-width: 150px; } .h5-b1::after { left: auto; right: -6px; bottom: auto; top: 16px; transform: rotate(-45deg); }
.h5-b2 { left: 712px; top: 0; max-width: 230px; } .h5-b2::after { left: auto; right: -6px; bottom: auto; top: 16px; transform: rotate(-45deg); }
@media (min-width: 64rem) {
  .hero5-in { grid-template-columns: minmax(0, 25rem) minmax(0, 1fr); gap: clamp(1.25rem, 0.5rem + 1.5vw, 2.25rem); }
  .hero5 h1 { font-size: clamp(2.4rem, 1.5rem + 1.9vw, 3.2rem); }
  .hero5-fig { margin-right: calc(-1 * clamp(1rem, 0.4rem + 2.5vw, 3rem) + 0.75rem); }
}
@media (max-width: 47.99rem) {
  .h5 .cv-wrap { height: calc(820px * var(--s, 0.78)); }
  .h5 .cv { width: 460px; height: 820px; }
  .h5-app { left: 0; top: 0; }
  .h5-phone { left: 196px; top: 236px; }
  .h5-p0 { left: 0; top: 600px; }
  .h5-p2 { left: 350px; top: 600px; }
  .h5-b0 { left: 98px; top: 600px; max-width: 200px; }
  .h5-b2 { left: 120px; top: 715px; max-width: 220px; }
}
/* Hero v6 at phone width: dashboard on top, the phone below it overlapping only its bottom edge, people beside it */
@media (max-width: 47.99rem) {
  .h5 .cv-wrap { height: calc(1010px * var(--s, 0.72)); }
  .h5 .cv { height: 1010px; overflow: visible; }
  .h5-phone { left: 248px; top: 572px; transform: scale(0.8); transform-origin: top left; }
  .h5-p0 { left: 0; top: 792px; }
  .h5-p2 { left: 132px; top: 790px; }
  .h5-b0 { left: 4px; top: 622px; max-width: 230px; } .h5-b0::after { left: 40px; top: auto; bottom: -6px; transform: rotate(45deg); }
  .h5-b2 { left: 4px; top: 704px; max-width: 230px; } .h5-b2::after { left: auto; right: 60px; top: auto; bottom: -6px; transform: rotate(45deg); }
}
@media (max-width: 47.99rem) {
  .h5 .cv-wrap { height: calc(1036px * var(--s, 0.72)); } .h5 .cv { height: 1036px; }
  .h5-phone { top: 598px; } .h5-p0 { top: 818px; } .h5-p2 { top: 816px; } .h5-b0 { top: 648px; } .h5-b2 { top: 730px; }
}
/* Owner stands in front of the empty foot of the Needs column, so no KPI or week cell is hidden */
@media (min-width: 48rem) {
  .h5-p1 { left: 286px; top: 602px; }
  .h5-b1 { left: 396px; top: 744px; } .h5-b1::after { left: -6px; right: auto; top: 14px; transform: rotate(135deg); }
}
/* Hero v6b: wider panel use. Headline column ~380px, less side padding, scene bleeds to the panel edge;
   phone at 82% so the dashboard itself gets most of the width. */
@media (min-width: 48rem) {
  .h5 .cv { width: 1062px; }
  .h5-app { left: 0; }
  .h5-phone { left: 848px; top: 236px; transform: scale(0.82); transform-origin: top left; }
  .h5-p0 { left: -20px; }
  .h5-p1 { left: 256px; }
  .h5-p2 { left: 899px; top: 34px; }
  .h5-b0 { left: 72px; }
  .h5-b1 { left: 366px; }
  .h5-b2 { left: 664px; }
}
@media (min-width: 64rem) {
  .hero5-in { grid-template-columns: minmax(0, 23.75rem) minmax(0, 1fr); gap: 1.75rem; padding-left: clamp(1.25rem, 0.5rem + 1.2vw, 1.75rem); padding-top: 1.75rem; }
  .hero5-fig { margin-right: calc(-1 * clamp(1rem, 0.4rem + 2.5vw, 3rem) + 0.4rem); }
  .h5-tab { padding-left: 0.95rem; padding-right: 0.95rem; }
}

/* ---------- First load (2026-11-03): reserve canvas height from the first frame (no shift when JS scales it),
   then a short staged entrance: panel glow, headline, copy, dashboard, phone, people. Motion only; ~1.3s. ---------- */
.h5 .cv-wrap { height: auto !important; aspect-ratio: 1062 / 815; max-height: 815px; }
.tc .cv-wrap { height: auto !important; aspect-ratio: 1100 / 640; max-height: 640px; }
@media (max-width: 47.99rem) {
  .h5 .cv-wrap { aspect-ratio: 460 / 1036; max-height: 1036px; }
  .tc .cv-wrap { aspect-ratio: 560 / 900; max-height: 900px; }
}
.hero5-in::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(30rem 22rem at 70% 40%, rgba(139, 92, 246, 0.14), transparent 65%), radial-gradient(26rem 18rem at 10% 10%, rgba(56, 189, 248, 0.14), transparent 65%); }
.hero5-copy, .hero5-fig { position: relative; z-index: 1; }
@keyframes ld-fade { from { opacity: 0; } }
@keyframes ld-rise { from { opacity: 0; translate: 0 14px; } }
@keyframes ld-rise-lcp { from { translate: 0 14px; } } /* h1 = LCP element: rise without the fade (2026-11-12) */
@keyframes ld-up { from { opacity: 0; translate: 0 44px; } }
@keyframes ld-in-r { from { opacity: 0; translate: 40px 10px; } }
@keyframes ld-walk { from { opacity: 0; translate: -36px 0; } }
.motion.load .hero5-in::before { animation: ld-fade 0.9s ease both; }
.motion.load .hero5 h1 { animation: ld-rise-lcp 0.6s cubic-bezier(.2, .7, .2, 1) 0.05s both; }
.motion.load .hero5-lead { animation: ld-rise 0.6s cubic-bezier(.2, .7, .2, 1) 0.14s both; }
.motion.load .hero5-actions { animation: ld-rise 0.6s cubic-bezier(.2, .7, .2, 1) 0.22s both; }
.motion.load .h5-ctl { animation: ld-rise 0.6s cubic-bezier(.2, .7, .2, 1) 0.3s both; }
.motion.load .h5-app { animation: ld-up 0.75s cubic-bezier(.2, .7, .2, 1) 0.25s both; }
.motion.load .h5-phone { animation: ld-in-r 0.7s cubic-bezier(.2, .7, .2, 1) 0.55s both; }
.motion.load .h5-p0 { animation: ld-walk 0.6s ease-out 0.8s both; }
.motion.load .h5-p1 { animation: ld-walk 0.6s ease-out 0.92s both; }
.motion.load .h5-p2 { animation: ld-rise 0.6s ease-out 1.02s both; }
.motion.load .hero5-fig .cap { animation: ld-fade 0.6s ease 1s both; }

/* Tools collapse v3 (owner 2026-11-03): no pinning. It auto-plays once in view (~8s) with Pause and Replay. */
.motion .tc-track { height: auto; }
.motion .tc-track > .tc { position: static; }
.tc-ctl .tc-replay { margin-left: -0.5rem; }
/* Nav v6: the hero panel starts at the top of the page; the nav sits inside its top edge (styles.css) */
.hero5 { padding-top: var(--pg); padding-left: var(--pg); padding-right: var(--pg); background: var(--notch); }

/* Full-bleed hero (owner 2026-11-03): the first screen is the panel; content in a centred ~1400px column */
.hero5 { padding-bottom: var(--pg); }
.hero5 .hero5-in { max-width: none; min-height: calc(100vh - 2 * var(--pg)); min-height: calc(100svh - 2 * var(--pg)); align-content: center;
  padding-left: max(clamp(1rem, 0.5rem + 1.2vw, 1.75rem), calc((100% - var(--col)) / 2)); padding-right: max(clamp(1rem, 0.5rem + 1.2vw, 1.75rem), calc((100% - var(--col)) / 2)); }
@media (max-width: 47.99rem) { .hero5 .hero5-in { padding-left: 1rem; padding-right: 1rem; align-content: start; } }
@media (min-width: 64rem) { .hero5 .hero5-in { padding-right: max(0.4rem, calc((100% - var(--col)) / 2)); } .hero5 .hero5-fig { margin-right: 0; } }

/* ---------- Per-niche palette (owner 2026-11-03): each example gets its own accent (app UI) and panel glow tint.
   Headline/body text stay navy, logo unchanged. Registered custom properties so the switch crossfades (~600ms). ---------- */
@property --n-ac { syntax: "<color>"; inherits: true; initial-value: transparent; }
@property --n-ink { syntax: "<color>"; inherits: true; initial-value: transparent; }
@property --n-soft { syntax: "<color>"; inherits: true; initial-value: transparent; }
@property --n-a2 { syntax: "<color>"; inherits: true; initial-value: transparent; }
@property --n-g1 { syntax: "<color>"; inherits: true; initial-value: transparent; }
@property --n-g2 { syntax: "<color>"; inherits: true; initial-value: transparent; }
@property --n-g3 { syntax: "<color>"; inherits: true; initial-value: transparent; }
@property --n-t1 { syntax: "<color>"; inherits: true; initial-value: transparent; }
@property --n-t2 { syntax: "<color>"; inherits: true; initial-value: transparent; }
.hero5[data-niche="moving"] { --n-ac: #2563EB; --n-ink: #1D4ED8; --n-soft: #EAF1FF; --n-a2: #0EA5E9; --n-g1: rgba(56,189,248,0.16); --n-g2: rgba(139,92,246,0.17); --n-g3: rgba(59,130,246,0.16); --n-t1: #EAF0FB; --n-t2: #E7ECF8; }
.hero5[data-niche="dental"] { --n-ac: #0F766E; --n-ink: #0F766E; --n-soft: #E3F6F2; --n-a2: #2DD4BF; --n-g1: rgba(45,212,191,0.20); --n-g2: rgba(56,189,248,0.13); --n-g3: rgba(16,185,129,0.12); --n-t1: #E9F6F3; --n-t2: #E5EFF1; }
.hero5[data-niche="roofing"] { --n-ac: #C2410C; --n-ink: #9A3412; --n-soft: #FFEFE5; --n-a2: #FB923C; --n-g1: rgba(251,146,60,0.18); --n-g2: rgba(244,114,182,0.10); --n-g3: rgba(234,88,12,0.10); --n-t1: #FBF1EA; --n-t2: #F3ECEA; }
.hero5[data-niche="wholesale"] { --n-ac: #6D28D9; --n-ink: #6D28D9; --n-soft: #F1EBFE; --n-a2: #A78BFA; --n-g1: rgba(167,139,250,0.22); --n-g2: rgba(129,140,248,0.16); --n-g3: rgba(192,132,252,0.12); --n-t1: #F0EDFB; --n-t2: #ECEAF8; }
.hero5[data-niche="property"] { --n-ac: #15803D; --n-ink: #166534; --n-soft: #E6F6EC; --n-a2: #4ADE80; --n-g1: rgba(74,222,128,0.17); --n-g2: rgba(45,212,191,0.12); --n-g3: rgba(132,204,22,0.10); --n-t1: #ECF5EE; --n-t2: #E7F0EB; }
.hero5:not([data-niche]) { --n-ac: #2563EB; --n-ink: #1D4ED8; --n-soft: #EAF1FF; --n-a2: #0EA5E9; --n-g1: rgba(56,189,248,0.16); --n-g2: rgba(139,92,246,0.17); --n-g3: rgba(59,130,246,0.16); --n-t1: #EAF0FB; --n-t2: #E7ECF8; }
.motion .hero5 { transition: --n-ac 0.6s ease, --n-ink 0.6s ease, --n-soft 0.6s ease, --n-a2 0.6s ease, --n-g1 0.6s ease, --n-g2 0.6s ease, --n-g3 0.6s ease, --n-t1 0.6s ease, --n-t2 0.6s ease; }
.hero5 .hero5-in { background:
    radial-gradient(38rem 28rem at 6% 8%, var(--n-g1), transparent 62%),
    radial-gradient(52rem 36rem at 82% 30%, var(--n-g2), transparent 62%),
    radial-gradient(40rem 24rem at 55% 108%, var(--n-g3), transparent 60%),
    linear-gradient(180deg, var(--n-t1), var(--n-t2)); }
.hero5 .hero5-in::before { background: radial-gradient(30rem 22rem at 70% 40%, var(--n-g2), transparent 65%), radial-gradient(26rem 18rem at 10% 10%, var(--n-g1), transparent 65%); }
.h5-app::before { background: linear-gradient(90deg, var(--n-a2), var(--n-ac)); }
.h5-app .app-org-mk, .h5-phone .ph-mk { background: var(--n-ac); }
.h5-app .app-nav li.is-on { background: var(--n-soft); color: var(--n-ink); }
.h5-app .app-nav li.is-on .ic { color: var(--n-ink); }
.h5-app .app-new, .h5-app .nb-dark, .h5-phone .ph-ok { background: var(--n-ac); border-color: var(--n-ac); color: #fff; }
.h5-app .k-blue::after, .h5-app .k-green::after { background: var(--n-ac); }
.h5-app .k-violet::after { background: var(--n-a2); }
.h5-app .c-prog { border-top-color: var(--n-ac); } .h5-app .c-prog .app-col-t { color: var(--n-ink); }
.h5-app .scn-chip:not([class*="is-"]) { background: var(--n-soft); color: var(--n-ink); }
.h5-app .week li.is-today { border-color: var(--n-ac); box-shadow: 0 0 0 2px var(--n-soft); }
.h5-app .w-b { background: var(--n-ac); }
.h5.is-approved .ph-ok, .scn.is-approved .h5-phone .ph-ok { box-shadow: 0 0 0 5px var(--n-soft); }
/* Dental: today's chairs */
.sched { display: grid; gap: 5px; }
.sched li { display: grid; grid-template-columns: 2.6rem 1fr auto; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 9px; border-left: 3px solid var(--n-ac); background: #F7F9FC; font-size: 11px; }
.sched li span { color: #64748B; font-weight: 600; } .sched li b { font-weight: 600; } .sched li em { font-style: normal; color: #64748B; font-size: 10.5px; }
.sched .s-g { border-left-color: var(--st-green); }
.sched .s-gap { border: 1px dashed var(--n-ac); border-left-width: 3px; border-left-style: solid; background: var(--n-soft); }
.sched .s-gap b { color: var(--n-ink); }
/* Wholesale: orders table */
.otbl { width: 100%; border-collapse: collapse; font-size: 11px; }
.otbl th { text-align: left; font-size: 10px; font-weight: 600; color: #64748B; padding: 0 6px 5px; border-bottom: 1px solid #EEF2F7; }
.otbl td { padding: 6px; border-bottom: 1px solid #F1F5F9; color: #334155; white-space: nowrap; }
.otbl tr:last-child td { border-bottom: 0; }
.otbl .is-v { background: var(--st-violet-bg, #EDE9FE); color: var(--st-violet, #6D28D9); }
.otbl .is-b { background: var(--n-soft); color: var(--n-ink); }
.otbl .is-g { background: var(--st-green-bg, #DCFCE7); color: var(--st-green, #15803D); }
.otbl th { background: none; color: #64748B; } .otbl td, .otbl th { border-left: 0; border-right: 0; }
/* Featured build section sits on the light tint (bento CSS lives in styles.css) */
.sec-web { background: radial-gradient(40rem 26rem at 90% 0%, rgba(139, 92, 246, 0.1), transparent 70%), radial-gradient(36rem 24rem at 0% 100%, rgba(56, 189, 248, 0.1), transparent 70%), var(--tint-page, #F3F6FC); color: var(--ink); }
.sec-web .sec-head h2, .sec-web h3 { color: var(--ink); } .sec-web .sec-head p { color: var(--muted); }
.bn-feat .bn-win img { object-position: left top; }
/* Fluid width: hero copy column and type grow on big screens; the scene scales (hero.js) */
.hero5 .hero5-in, .hero5 .hero5-in.hero5-in { padding-left: max(1rem, calc(var(--gut) - var(--pg))); padding-right: max(0.4rem, calc(var(--gut) - var(--pg))); }
.h5 .cv-wrap, .tc .cv-wrap { max-height: none; }
@media (min-width: 64rem) { .hero5 .hero5-in { grid-template-columns: minmax(0, clamp(23.75rem, 10rem + 14vw, 38rem)) minmax(0, 1fr); gap: clamp(1.75rem, 2vw, 4rem); } }
@media (min-width: 100rem) { .sec-head.sec-head-split { max-width: none; } .sec-head-split p { max-width: 40rem; } }
@media (min-width: 48rem) { .tc .cv { left: max(0px, calc((100% - 1100px * var(--s, 1)) / 2)); } }

/* Websites card in "What we build" (owner 2026-11-03): a real build of ours in a browser + phone frame */
/* Hotfix 2026-11-03: six equal cards, 3 + 3 (2 x 3 at 64rem and below, 1 column on phones) */
.b4-web .b4-vis { background: linear-gradient(135deg, #FFF7ED, #EEF4FF); }
.b4-web .bn-br { left: 6%; right: 18%; top: 1.1rem; }
.b4-web .bn-ph { width: 22%; bottom: -18%; right: 5%; }
.b4-web .bn-win img { height: auto; }
.bn-ours { margin-left: auto; padding: 2px 8px; border-radius: 999px; background: #DCFCE7; color: #166534; font-weight: 700; }
.b4-web p a { color: #1D4ED8; font-weight: 600; }
.b4-web .bn-ours { margin-left: 6px; }
.bento4 > .b4, .bento4 > .b4-crm, .bento4 > .b4-web { grid-column: auto; }
.bento4 { align-items: stretch; }
.b4 { align-content: stretch; grid-template-rows: auto auto 1fr; }
.b4-vis { height: clamp(270px, 110px + 11vw, 400px); }
@media (max-width: 47.99rem) { .b4-vis, .b4-crm .b4-vis { height: 300px; } }
.b4-crm .b4-vis { container-type: inline-size; }
@container (min-width: 0px) { .b5-crm { right: 92px; } .b5-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } .b5-cols > :nth-child(3) { display: none; } .pp-b1 { width: 78px; right: 8px; } }
@container (max-width: 340px) { .b5-crm { right: 14px; } .pp-b1 { display: none; } }
.b4-web .bn-ph { bottom: -8%; }
/* Hotfix 2026-11-03: the featured build grows with the screen (no small frame floating in an empty cell) */
@media (min-width: 64rem) {
  .bn-feat .bn-stage { width: 100%; max-height: none; aspect-ratio: auto; height: clamp(22rem, 34vw, 74vh); }
  .bn-feat { grid-template-columns: minmax(0, 1.7fr) minmax(22rem, 1fr); }
}
@media (min-width: 64rem) {
  .bn-feat .bn-ph { width: auto; height: 92%; bottom: -6%; right: 5%; border-radius: 30px; padding: 7px; }
  .bn-feat .bn-ph .bn-win { border-radius: 24px; }
  .bn-feat .bn-br { left: 5%; right: 14%; top: 1.75rem; }
}
/* Hotfix 2026-11-03: type and phones keep pace with very wide screens */

/* ---------- Spacing v1 (owner 2026-11-03): homepage on the shared spacing tokens (styles.css). Up to 1920 the
   numbers match aidepo.ai; above 1920 the earlier wide-screen growth rules still apply. ---------- */
:root { --pg: var(--gx); --gut: calc(var(--gx) + var(--inset)); }
/* One page tint, sections separated by --sy only (no bands, no bottom padding) */
main > .sec { padding: var(--sy) 0 0; background: none; }
.sec-head { margin-bottom: var(--head-mb); row-gap: var(--head-row); }
.sec-head-split { column-gap: var(--head-gap); }
.sec-head-split p { max-width: 27.5rem; }
/* Hero: panel inset by the gutter, 36px radius, copy at the panel inset */
.hero5 { padding: var(--gx) var(--gx) 0; }
.hero5 .hero5-in { border-radius: var(--r-panel); padding-top: var(--hero-pt); }
@media (max-width: 47.99rem) { .hero5 .hero5-in { padding-left: var(--inset-panel); padding-right: var(--inset-panel); } }
.hero5-copy { gap: 0; }
.hero5-lead { margin-top: clamp(20px, 6svh, 72px); }
.hero5-actions { margin-top: 22px; }
.h5-ctl { margin-top: var(--after); }
.hero5-actions .btn { min-height: var(--btn-h); padding: 0 var(--btn-px); }
/* Grids and cards */
.apps { gap: var(--gap); }
.appc { padding: var(--card-pad); border-radius: var(--r-panel); }
@media (max-width: 47.99rem) { .apps { margin: 0 calc(-1 * var(--gut)); padding: 0.5rem var(--gut) 1.25rem; } }
.bento4, .crew-cards { gap: var(--gap-sm); }
.crew-line { column-gap: var(--gap-sm); }
.b4, .cw { padding: var(--tile-pad); border-radius: var(--r-card); }
.b4-vis, .cw-vis { border-radius: var(--r-inner); }
.sec-web .bn-grid, .web4 { gap: var(--gap); }
.sec-web .bn-feat { border-radius: var(--r-panel); }
/* After a grid: captions, controls, more-links */
.cap, .b4-more, .hs-more, .principles4, .crew-cap, .tc-ctl { margin-top: var(--after); }
.parade { margin-bottom: var(--after); }
@media (max-width: 47.99rem) { .hero5 .hero5-in.hero5-in { padding: 76px var(--inset-panel) 36px; } }
@media (max-width: 43.75rem) { .hero5-lead { margin-top: 20px; } }

/* ---------- Container v2 (owner 2026-11-03): full-bleed hero; everything below sits in ONE 1384px centred container
   (aidepo.ai measured). No wide-screen growth for content sections. Only the footer card is wider. ---------- */
.sec-head h2 { font-size: var(--h2); line-height: 1; }
.sec-head p { font-size: var(--lede); line-height: 1.55; }
main > .sec > .wrap, .fcta > .wrap { max-width: calc(86.5rem + 2 * var(--gut)); margin-left: auto; margin-right: auto; }
.anchor-alias { display: block; height: 0; overflow: hidden; }
/* Universal card (aidepo 3-card strip): 28/24/30 padding, 36px radius, 24px gap, h3 22px, body 15px/1.45 */
.bento4, .cta5 { gap: var(--gap); }
.bento4 { align-items: start; }
.b4, .cta5 .cta4, .cta5-light, .sec-web .bn-feat { padding: var(--card-pad); border-radius: var(--r-panel); }
.b4 { grid-template-rows: auto auto auto; }
.b4-vis { height: 220px; }
.b4 h3 { margin: 22px 0 4px; font-size: 1.375rem; line-height: 1.15; }
.b4 > p { margin: 0; font-size: 0.9375rem; line-height: 1.45; }
@media (max-width: 47.99rem) { .b4-vis, .b4-crm .b4-vis { height: 220px; } }
@media (min-width: 64rem) { .bn-feat .bn-stage { height: clamp(22rem, 34vw, 29.4rem); } }
/* Hero composition (aidepo measured at 1440/2560): H1 across the panel at 4.4% of its width (2 lines),
   a 325-440px copy column under it, the product scene to its right. */
@media (min-width: 64rem) {
  .hero5 .hero5-in { align-content: start; grid-template-columns: minmax(0, clamp(20.3rem, 11.06rem + 10.27vw, 27.5rem)) minmax(0, 1fr); grid-template-rows: auto auto auto auto 1fr; column-gap: clamp(2rem, 3vw, 4.5rem); row-gap: 0; }
  .hero5-copy { display: contents; }
  .hero5 h1 { grid-column: 1 / -1; grid-row: 1; max-width: none; font-size: min(calc((100vw - 2 * var(--gx)) * 0.044), 7.8svh); line-height: 0.98; }
  .hero5-lead { grid-column: 1; grid-row: 2; max-width: none; font-size: 1.0625rem; line-height: 1.5; }
  .hero5-actions { grid-column: 1; grid-row: 3; align-self: start; }
  .h5-ctl { grid-column: 1; grid-row: 4; align-self: start; }
  .hero5 .hero5-fig { grid-column: 2; grid-row: 2 / -1; align-self: start; margin-top: clamp(20px, 3svh, 40px); }
}
@media (min-width: 64rem) { .hero5 h1 { max-width: 14em; } }
.bento4 { align-items: stretch; }
.b4-vis, .b4-crm .b4-vis { height: 180px; }
.b4 { grid-template-rows: 180px auto 1fr; align-content: start; }
.b4 > .b4-vis { margin: 0; }
/* Hero scene v7 (owner 2026-11-03, aidepo measured at 2481): the scene is anchored to the panel's right edge (phone ~1.8%
   inside), starts just under the H1's first line and bleeds off the panel bottom. The app is ~47% of the panel width. People:
   one above the phone, one left of the app at mid-height, one bottom-centre over the app. */
@media (min-width: 64rem) {
  .hero5 .hero5-in { --h1fs: min(calc((100vw - 2 * var(--gx)) * 0.044), 7.8svh); }
  .hero5 h1 { position: relative; z-index: 2; max-width: 19em; text-wrap: wrap; font-size: var(--h1fs); }
  .hero5 .hero5-fig { position: static; grid-column: 1; grid-row: 5; align-self: end; margin: 0; z-index: auto; }
  .hero5 .hero5-fig .cap { position: relative; z-index: 2; margin: 0; max-width: 27.5rem; }
  .hero5 .h5 { position: absolute; z-index: 0; right: 1.83%; width: 57.6%; top: calc(var(--hero-pt) + 1.02 * var(--h1fs)); }
  .hero5-lead, .hero5-actions, .h5-ctl { position: relative; z-index: 2; }
  .h5-p0 { left: -130px; top: 284px; z-index: 5; }
  .h5-b0 { left: -60px; top: 226px; max-width: 170px; } .h5-b0::after { left: 22px; right: auto; top: auto; bottom: -7px; transform: rotate(45deg); }
  .h5-p1 { left: 380px; top: 500px; z-index: 5; }
  .h5-b1 { left: 500px; top: 520px; max-width: 160px; } .h5-b1::after { left: -6px; right: auto; bottom: auto; top: 14px; transform: rotate(135deg); }
  .h5-p2 { left: 899px; top: 34px; }
  .h5-b2 { left: 664px; top: 0; }
}
/* Between 64 and 80rem the left person would touch the copy column */
@media (min-width: 64rem) and (max-width: 79.99rem) { .h5-p0, .h5-b0 { display: none; } }
@media (min-width: 64rem) { .hero5 h1 { max-width: 15.5em; } }

/* Hero v7 (2026-11-04, people option C): phone at the dashboard's right edge; the office person peeks over the
   phone from behind it (phone in front, idle loop keeps running); owner and crew stand on the dashboard's bottom edge.
   Nobody covers the sidebar. Bubbles sit just above each head. */
@media (min-width: 48rem) {
  .h5-p { --pc: 1.5; }
  .h5-p0 { left: 916px; top: 205px; z-index: 2; }
  .h5-phone { z-index: 3; }
  .h5-p1 { left: 300px; top: 513px; z-index: 4; }
  .h5-p2 { left: 580px; top: 513px; z-index: 4; }
  .h5-b0 { left: 749px; top: 0; max-width: 220px; } .h5-b0::after { left: auto; right: 34px; top: auto; bottom: -7px; transform: rotate(45deg); }
  .h5-b1 { left: 286px; top: 352px; max-width: 220px; } .h5-b1::after { left: 50px; right: auto; top: auto; bottom: -7px; transform: rotate(45deg); }
  .h5-b2 { left: 566px; top: 352px; max-width: 240px; } .h5-b2::after { left: 50px; right: auto; top: auto; bottom: -7px; transform: rotate(45deg); }
}
@media (min-width: 64rem) and (max-width: 79.99rem) { .h5-p0 { display: block; } .h5-b0 { display: block; } }
/* Phone width: dashboard, phone at its lower right, one bigger person (crew) at the lower left */
@media (max-width: 47.99rem) {
  .h5-p0, .h5-b0 { display: none; }
  .h5-p2 { --pc: 1.7; left: 70px; top: 812px; }
  .h5-b2 { left: 0; top: 612px; max-width: 240px; } .h5-b2::after { left: 60px; right: auto; top: auto; bottom: -7px; transform: rotate(45deg); }
}

/* Hero v8 (owner 2026-11-04): each bubble is anchored to ITS person. People and bubbles read the same position
   variables, so a bubble's tail always points at its person's head at every width, whatever the bubble's text
   length (bubbles type in). Image top inside a slot = slot top - 212.6px * (pc - 1) (see .pp-c in styles.css).
   The office person stands higher behind the phone, so head, shoulders and pointing arm clear the phone's top edge. */
@media (min-width: 48rem) { .h5 .cv { --x0: 916px; --y0: 158px; --x1: 300px; --y1: 513px; --x2: 580px; --y2: 513px; --c: 1.5; } }
@media (max-width: 47.99rem) { .h5 .cv { --x2: 70px; --y2: 812px; --c: 1.7; } }
.h5 .h5-p { --pc: var(--c); }
.h5 .h5-p0 { left: var(--x0); top: var(--y0); }
.h5 .h5-p1 { left: var(--x1); top: var(--y1); }
.h5 .h5-p2 { left: var(--x2); top: var(--y2); }
.h5 .h5-b { right: auto; bottom: auto; width: max-content; }
.h5 .h5-b::after { top: auto; bottom: -7px; transform: rotate(45deg); }
/* crew + owner: bubble above the head, tail (centre 56px from the bubble's left) over the head's centre (slot centre = x + 55px) */
.h5 .h5-b1 { left: calc(var(--x1) - 1px); top: calc(var(--y1) - 212.6px * (var(--c) - 1) - 6px); translate: 0 -100%; }
.h5 .h5-b2 { left: calc(var(--x2) - 1px); top: calc(var(--y2) - 212.6px * (var(--c) - 1) - 6px); translate: 0 -100%; }
.h5 .h5-b1::after, .h5 .h5-b2::after { left: 50px; right: auto; }
/* office: bubble above and to the left of her head (the panel edge is to her right); its right edge is fixed, tail at the right */
.h5 .h5-b0 { left: calc(var(--x0) + 91px); top: calc(var(--y0) - 212.6px * (var(--c) - 1) - 6px); translate: -100% -100%; }
.h5 .h5-b0::after { left: auto; right: 30px; }

/* ---------- Hero v9 (owner 2026-11-04): smaller people (~1/6.5 of the hero), 4 per example in fixed slots with depth.
   perch = sits on the app's top edge (legs over it), behind = behind the app (head and shoulders over its top edge),
   peek = behind the phone (head over its top), left / bottom = in front of the app's lower edge.
   A slot gives the person's feet point (--fx, --fy in canvas px) and --an, the share of the figure above that point
   (a sitting figure's seat is at 81%). Person and bubble read the same variables, so each bubble's tail (28px from
   its edge) sits over its person's head centre at every width. ---------- */
.h5 .cv { --H: 170px; --W: calc(var(--H) * 0.6962); }
.h5 .h5-app { z-index: 1; }
.h5 .h5-phone { z-index: 3; }
.h5 .s-perch { --fx: 640px; --fy: 55px; --an: 0.813; }
.h5 .s-behind { --fx: 806px; --fy: 122px; --an: 1; }
.h5 .s-peek { --fx: 962px; --fy: 302px; --an: 1; }
.h5 .s-left { --fx: 40px; --fy: 742px; --an: 1; }
.h5 .s-bottom { --fx: 420px; --fy: 748px; --an: 1; }
.h5 .h5-q { position: absolute; z-index: 4; left: calc(var(--fx) - var(--W) / 2); top: calc(var(--fy) - var(--an) * var(--H));
  width: var(--W); height: var(--H); --pc: 1; transform-origin: 50% calc(var(--an) * 100%); }
.h5 .h5-q .pp-c { width: 100%; height: 100%; margin: 0; }
.h5 .h5-q.s-behind { z-index: 0; }
.h5 .h5-q.s-peek { z-index: 2; }
.h5 .h5-b { z-index: 6; max-width: 230px; left: calc(var(--fx) - 28px); top: calc(var(--fy) - (var(--an) - 0.12) * var(--H) - 6px); translate: 0 -100%; }
.h5 .h5-b::after { left: 22px; right: auto; }
.h5 .h5-b.s-peek, .h5 .h5-b.s-behind { left: calc(var(--fx) + 28px); translate: -100% -100%; }
.h5 .h5-b.s-peek::after, .h5 .h5-b.s-behind::after { left: auto; right: 22px; }
.h5-k0 { --i: 0; } .h5-k1 { --i: 1; } .h5-k2 { --i: 2; } .h5-k3 { --i: 3; }
.h5-b.h5-k0 .bub-who::before { background: #0F766E; }
.h5-b.h5-k1 .bub-who::before { background: #0B1F3B; }
.h5-b.h5-k2 .bub-who::before { background: #D97706; }
@media (max-width: 47.99rem) {
  .h5 .cv { --H: 190px; }
  .h5 .s-perch { --fx: 418px; --fy: 599px; }
  .h5 .s-peek { --fx: 288px; --fy: 712px; }
  .h5 .s-left { --fx: 72px; --fy: 862px; }
  .h5 .s-bottom { --fx: 178px; --fy: 1022px; }
  .h5 .h5-q.s-behind, .h5 .h5-b.s-behind { display: none; }
  .h5 .h5-q.s-perch { z-index: 4; }
  .h5 .h5-b { max-width: 210px; }
}
/* First load: people arrive one after another */
.motion.load .h5-q { animation: q-rise-in 0.6s cubic-bezier(.2, .7, .2, 1) calc(0.8s + var(--i) * 0.12s) both; }
/* Switch: leavers go first, arrivals follow ~120ms apart; bubbles start after they land (hero.js play(900)) */
.h5 .h5-q.is-out { z-index: 4; pointer-events: none; }
.h5 .h5-q.is-out.s-behind { z-index: 0; } .h5 .h5-q.is-out.s-peek { z-index: 2; }
.h5-q.is-out { animation: q-fade-out 0.4s ease both; }
.h5-q.is-in { animation: fade-in 0.4s ease both; }
.motion .h5-q.is-out.s-left, .motion .h5-q.is-out.s-bottom { animation: q-walk-out 0.7s ease-in calc(var(--i) * 0.11s) both; }
.motion .h5-q.is-out.s-behind, .motion .h5-q.is-out.s-peek { animation: q-duck 0.55s cubic-bezier(.5, 0, .8, .4) calc(var(--i) * 0.11s) both; }
.motion .h5-q.is-out.s-perch { animation: q-hop-off 0.6s ease-in calc(var(--i) * 0.11s) both; }
.motion .h5-q.is-in.s-left, .motion .h5-q.is-in.s-bottom { animation: q-walk-in 0.75s ease-out calc(0.2s + var(--i) * 0.13s) both; }
.motion .h5-q.is-in.s-behind, .motion .h5-q.is-in.s-peek { animation: q-rise-in 0.8s cubic-bezier(.3, .6, .35, 1.08) calc(0.25s + var(--i) * 0.13s) both; }
.motion .h5-q.is-in.s-perch { animation: q-hop-on 0.8s ease-out calc(0.2s + var(--i) * 0.13s) both; }
/* walking = body bob + side-to-side rock (2-frame stride) while the slot slides */
.motion .h5-q.is-out.s-left .pp-c, .motion .h5-q.is-out.s-bottom .pp-c { animation: q-step 0.18s steps(1, end) calc(var(--i) * 0.11s) 4 alternate; transform-origin: 50% 100%; }
.motion .h5-q.is-in.s-left .pp-c, .motion .h5-q.is-in.s-bottom .pp-c { animation: q-step 0.18s steps(1, end) calc(0.2s + var(--i) * 0.13s) 4 alternate; transform-origin: 50% 100%; }
/* interrupted mid-move (fast clicks): frozen where it was (hero.js), quick fade */
.h5 .h5-q.is-out.is-gone, .motion .h5 .h5-q.is-out.is-gone { animation: q-fade-out 0.22s ease both; }
.h5 .h5-q.is-gone .pp-c { animation: none; }
@keyframes q-fade-out { to { opacity: 0; } }
@keyframes q-walk-out { 20% { opacity: 1; } to { translate: -150px 0; opacity: 0; } }
@keyframes q-walk-in { from { translate: -150px 0; opacity: 0; } 35% { opacity: 1; } to { translate: 0 0; } }
@keyframes q-step { 0% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-6px) rotate(4deg); } 100% { transform: translateY(0) rotate(-4deg); } }
@keyframes q-duck { 75% { opacity: 1; } to { translate: 0 80%; opacity: 0; } }
@keyframes q-rise-in { from { translate: 0 80%; } to { translate: 0 0; } }
@keyframes q-hop-off { 30% { translate: 0 -18px; opacity: 1; } to { translate: 26px 40px; opacity: 0; } }
@keyframes q-hop-on { 0% { translate: 0 -70px; opacity: 0; scale: 1 1; } 45% { translate: 0 0; opacity: 1; scale: 1 1; }
  60% { scale: 1.12 0.86; } 78% { scale: 0.95 1.06; } 100% { translate: 0 0; scale: 1 1; } }

/* Hero headline is 3 lines since the 2026-11-17 outcome-first copy: a slightly smaller size, and the scene starts one line lower so no line runs under it */
@media (min-width: 64rem) {
  .hero5 .hero5-in { --h1fs: min(calc((100vw - 2 * var(--gx)) * 0.037), 6.6svh); }
  .hero5 .h5 { top: calc(var(--hero-pt) + 2.15 * var(--h1fs)); }
}
