/* AutoImpact website. Palette from the AutoImpact flyer: navy #1f3aa8, blue #3355e0, ink #0f172a, slate #4b5468,
   rule #cfd5e3, pale #f4f6fb, lavender #cdd9ff / #e4eaff, mint #0b6e4d / #e3f6ee. */
@font-face { font-family: "Inter"; src: url("/assets/InterVariable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root {
  --navy: #1f3aa8; --blue: #3355e0; --blue-ink: #2440b8; --ink: #0f172a; --slate: #4b5468; --muted: #6b7489;
  --rule: #cfd5e3; --line: #e4e7ef; --pale: #f4f6fb; --paler: #f8f9fc; --lav: #cdd9ff; --lav2: #e4eaff; --soft: #eaf0ff;
  --mint: #0b6e4d; --mint-soft: #e3f6ee; --amber: #b26a00; --amber-soft: #fff3dc;
  --r: 14px; --max: 1180px; --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--ink); background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-ink); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); font-weight: 800; letter-spacing: -.028em; }
h2 { font-size: clamp(1.55rem, 2.6vw, 2.2rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 750; font-size: 1.15rem; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand small { display: block; font-size: .68rem; font-weight: 500; color: var(--muted); letter-spacing: .02em; margin-top: -2px; }
.nav { display: flex; gap: 2px; margin-left: auto; align-items: center; }
.nav a, .nav .btn { white-space: nowrap; }
.top .wrap { gap: 20px; }
.nav a { color: var(--slate); text-decoration: none; font-weight: 550; font-size: .92rem; padding: 8px 9px; border-radius: 8px; }
.nav .btn { padding: 10px 16px; margin-left: 6px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--pale); }
.btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; text-decoration: none; border-radius: 10px; padding: 12px 20px; border: 1px solid transparent; font-size: .97rem; line-height: 1.2; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--lav2); color: var(--navy); }
.btn-ghost { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.btn-outline { border-color: var(--rule); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--blue); color: var(--blue-ink); }
.nav .btn { margin-left: 8px; padding: 10px 16px; color: #fff; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--rule); border-radius: 8px; padding: 8px 10px; font: inherit; }

/* hero */
.hero { background: radial-gradient(900px 500px at 85% 20%, rgba(51, 85, 224, .55), transparent 60%), var(--navy); color: #fff; padding: 72px 0 0; overflow: hidden; }
.hero .grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: end; }
.hero .copy { padding-bottom: 72px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--lav); margin-bottom: 14px; }
.hero p.lead { font-size: 1.18rem; color: var(--lav2); max-width: 560px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 20px; }
.hero .engines { font-size: .92rem; color: var(--lav); }
.hero .engines b { color: #fff; }
.hero .shot { border-radius: 14px 14px 0 0; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .25); border-bottom: 0; }
.page-hero { background: var(--navy); color: #fff; padding: 56px 0 52px; }
.page-hero p.lead { font-size: 1.12rem; color: var(--lav2); max-width: 760px; margin: 0; }
.crumbs { font-size: .85rem; color: var(--lav); margin-bottom: 14px; }
.crumbs a { color: var(--lav); }
.crumbs ol { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0; flex-wrap: wrap; }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .6; }

/* sections */
section { padding: 76px 0; }
section.alt { background: var(--pale); }
section.tight { padding: 48px 0; }
.kicker { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--blue); margin-bottom: 10px; }
.intro { max-width: 760px; color: var(--slate); font-size: 1.08rem; margin-bottom: 36px; }
.cols { display: grid; gap: 22px; }
.c2 { grid-template-columns: repeat(2, 1fr); }
.c3 { grid-template-columns: repeat(3, 1fr); }
.c4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 26px; box-shadow: var(--shadow); }
section.alt .card { border-color: #e2e6f0; }
.card p { color: var(--slate); margin: 0; }
.card h3 { margin-bottom: 8px; }
.card .num { font-size: 2rem; font-weight: 800; color: var(--blue); line-height: 1; margin-bottom: 10px; letter-spacing: -.03em; }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; border-radius: 999px; padding: 4px 10px; margin-bottom: 12px; }
.tag-trace { background: #e6f6f8; color: #0b6b78; }
.tag-prism { background: #f6e9f3; color: #8a1f6e; }
.tag-met { background: var(--mint-soft); color: var(--mint); }
.tag-mapped { background: var(--soft); color: var(--navy); }
.tag-partly { background: var(--amber-soft); color: var(--amber); }
.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.split.rev { grid-template-columns: 1.15fr 1fr; }
.split.rev .media { order: -1; }
.media img { border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow); }
figure { margin: 0; }
figcaption { font-size: .86rem; color: var(--muted); margin-top: 10px; }
ul.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
ul.ticks li { padding-left: 30px; position: relative; margin: 10px 0; color: var(--slate); }
ul.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--mint-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b6e4d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center/12px no-repeat; }
ul.ticks li b { color: var(--ink); }
.steps { counter-reset: s; display: grid; gap: 18px; grid-template-columns: repeat(4, 1fr); }
.steps .card { position: relative; }
.steps .card::before { counter-increment: s; content: counter(s); display: block; font-size: 2.1rem; font-weight: 800; color: var(--blue); line-height: 1; margin-bottom: 12px; }

/* standards strip */
.strip { display: flex; flex-wrap: wrap; gap: 10px; }
.strip span { border: 1px solid var(--rule); background: #fff; border-radius: 999px; padding: 8px 14px; font-size: .9rem; font-weight: 600; color: var(--ink); }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: #fff; box-shadow: var(--shadow); }
table { border-collapse: collapse; width: 100%; font-size: .94rem; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--paler); font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--slate); }
tbody tr:last-child td { border-bottom: 0; }
td.us, th.us { background: var(--soft); }
th.us { color: var(--navy); }
.note { font-size: .86rem; color: var(--muted); margin-top: 12px; }

/* pricing */
.price { font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; margin: 8px 0 6px; }
.price-card.hl { background: var(--mint); color: #fff; border-color: var(--mint); }
.price-card.hl p, .price-card.hl .sub { color: var(--mint-soft); }
.sub { color: var(--muted); font-size: .92rem; }

/* faq */
details { border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; background: #fff; margin-bottom: 12px; }
details summary { font-weight: 650; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--blue); }
details[open] summary::after { content: "–"; }
details p { color: var(--slate); margin: 12px 0 0; }

/* cta band */
.cta { background: var(--navy); color: #fff; border-radius: 20px; padding: 48px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: center; }
.cta p { color: var(--lav2); margin: 0; }
.cta .actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }

/* footer */
footer { background: var(--ink); color: #cbd5e1; padding: 56px 0 32px; margin-top: 0; font-size: .92rem; }
footer .cols { grid-template-columns: 1.4fr repeat(3, 1fr); }
footer h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 12px; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin: 7px 0; }
footer a { color: #cbd5e1; text-decoration: none; }
footer a:hover { color: #fff; }
footer .legal { border-top: 1px solid #1e293b; margin-top: 36px; padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: #94a3b8; font-size: .84rem; }

/* contact */
.form { display: grid; gap: 14px; }
.form label { font-weight: 600; font-size: .92rem; display: grid; gap: 6px; }
.form input, .form select, .form textarea { font: inherit; border: 1px solid var(--rule); border-radius: 10px; padding: 11px 13px; background: #fff; }
.form textarea { min-height: 130px; }
.prose { max-width: 780px; }
.prose h2 { margin-top: 1.6em; font-size: 1.45rem; }
.prose li { margin: 6px 0; color: var(--slate); }
.prose p { color: var(--slate); }

/* video clips */
.media.video video { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--pale); }

/* roadmap */
.phases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.phase { display: flex; flex-direction: column; }
.phase.now { border: 2px solid var(--blue); }
.phase h3 { font-size: 1.05rem; }
.phase ul.ticks.plan li::before { background: var(--soft); background-image: none; border: 2px solid var(--blue); width: 12px; height: 12px; top: 6px; left: 3px; }
.phase .gate { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-size: .9rem; }

/* get started */
ol.gs { list-style: none; counter-reset: g; padding: 0; margin: 0; display: grid; gap: 20px; }
ol.gs > li { counter-increment: g; display: grid; grid-template-columns: 1fr 1.5fr; gap: 32px; align-items: center; }
ol.gs > li:not(:has(figure)) { grid-template-columns: 1fr; }
ol.gs .gs-text { position: relative; padding-left: 58px; }
ol.gs .gs-text::before { content: counter(g); position: absolute; left: 0; top: -2px; width: 40px; height: 40px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 800; display: grid; place-items: center; }
ol.gs .media img { border-radius: 10px; }

@media (max-width: 1260px) {
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 12px 20px 20px; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav .btn { margin: 8px 0 0; justify-content: center; }
}
@media (max-width: 1020px) {
  .phases { grid-template-columns: 1fr 1fr; }
  ol.gs > li { grid-template-columns: 1fr; }
  .hero .grid, .split, .split.rev, .cta { grid-template-columns: 1fr; }
  .split.rev .media { order: 0; }
  .c4, .steps { grid-template-columns: repeat(2, 1fr); }
  .c3 { grid-template-columns: 1fr 1fr; }
  footer .cols { grid-template-columns: 1fr 1fr; }
  .cta .actions { justify-content: flex-start; }
}
@media (max-width: 760px) {
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 12px 20px 20px; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav .btn { margin: 8px 0 0; justify-content: center; }
  .c2, .c3, .c4, .steps, .phases { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
  .cta { padding: 32px; }
}
/* ------------------------------------------------------------ marketing additions */
.tag-new { background: var(--blue); color: #fff; }
.kicker .tag { margin: 0 8px 0 0; vertical-align: 1px; }
.new-note .tag { margin: 0 6px 0 0; padding: 2px 8px; font-size: .66rem; vertical-align: 1px; }
.cta p.mail { margin-top: 14px; font-size: .92rem; color: var(--lav); }
.cta p.mail a { color: #fff; }
.link-card { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.link-card:hover { border-color: var(--blue); color: var(--ink); transform: translateY(-2px); }
.link-card h3 { color: var(--ink); }
.link-card .more { margin-top: auto; padding-top: 14px; font-weight: 650; color: var(--blue-ink); font-size: .94rem; }
.link-card .more::after { content: " →"; }
.link-card .tag { align-self: flex-start; }
.link-card.dl { background: var(--navy); border-color: var(--navy); }
.link-card.dl h3 { color: #fff; } .link-card.dl p { color: var(--lav2); } .link-card.dl .more { color: #fff; }
.rule { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .95rem; background: var(--lav2); color: var(--navy);
  border-left: 4px solid var(--blue); border-radius: 8px; padding: 14px 16px; margin: 8px 0 16px; overflow-wrap: anywhere; line-height: 1.5; }
.rule.xl { background: var(--mint-soft); color: var(--mint); border-left-color: var(--mint); }
.rule-card .sub { margin-bottom: 4px; }
.card p.rule { color: var(--navy); margin: 8px 0 16px; }
.card p.rule.xl { color: var(--mint); }
.nums .card { padding: 22px; }
.nums .num { overflow-wrap: anywhere; }
ol.next-steps { list-style: none; counter-reset: n; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
ol.next-steps li { counter-increment: n; }
ol.next-steps li::before { content: counter(n); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 800; margin-bottom: 12px; }
.fit .card h2 { font-size: 1.4rem; }
ul.cross { list-style: none; padding: 0; margin: 0 0 1em; }
ul.cross li { padding-left: 30px; position: relative; margin: 10px 0; color: var(--slate); }
ul.cross li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--lav2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f3aa8' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7 7 17'/%3E%3C/svg%3E") center/11px no-repeat; }
.byline { margin: 18px 0 0; font-size: .92rem; color: var(--lav); }
.article { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
.article .prose { max-width: 760px; min-width: 0; }
.article .prose > p:first-child { font-size: 1.1rem; color: var(--ink); }
.article .prose h2:first-of-type { margin-top: 1.2em; }
.article .prose ul.ticks li { margin: 10px 0; }
.article .table-wrap { margin: 8px 0 20px; }
.aside { position: sticky; top: 92px; display: grid; gap: 18px; }
.aside .card { padding: 22px; }
.aside .btn { width: 100%; justify-content: center; }
ul.related { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
ul.related.v { display: grid; gap: 10px; }
.formula { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--pale); border: 1px solid var(--line); border-radius: 10px;
  padding: 14px 16px; color: var(--ink) !important; overflow-x: auto; white-space: nowrap; font-size: .95rem; }
ol.steps-list { padding-left: 22px; } ol.steps-list li { margin: 10px 0; }
ul.sources { padding-left: 20px; } ul.sources li { overflow-wrap: anywhere; }
.start { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1020px) {
  ol.next-steps { grid-template-columns: 1fr 1fr; }
  .article { grid-template-columns: 1fr; }
  .aside { position: static; grid-template-columns: 1fr 1fr; }
  .start { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  ol.next-steps, .aside, .start { grid-template-columns: 1fr; }
  .cta .actions .btn { width: 100%; justify-content: center; }
}
footer .cols { grid-template-columns: 1.3fr repeat(4, 1fr); }
@media (max-width: 1020px) { footer .cols { grid-template-columns: 1fr 1fr; } }
@media print { .top, footer, .cta { display: none; } }

/* ------------------------------------------------------------ explainer animation */
.xp { --xp-navy: #142a86; --xp-ink: #0b1440; max-width: 1120px; margin: 0 auto; }
.xp-stage { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 18px; container-type: inline-size;
  background: radial-gradient(120% 90% at 85% 0%, #3355e0 0%, #1f3aa8 38%, var(--xp-ink) 100%); color: #fff; box-shadow: 0 30px 60px -30px rgba(15, 23, 42, .55); }
.xp-stage::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 4cqw 4cqw; }
.xp-s { position: absolute; inset: 0; padding: 4.2cqw 5cqw; opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility 0s linear .5s; font-size: max(11px, 1.45cqw); z-index: 1; }
.xp-s.on { opacity: 1; visibility: visible; transition: opacity .5s ease; }
.xp-h { margin-bottom: 2.6cqw; }
.xp-h h3 { color: #fff; font-size: max(17px, 3.3cqw); letter-spacing: -.03em; line-height: 1.08; margin: .5cqw 0 0; max-width: 80%; }
.xp-k { display: inline-block; font-size: max(10px, 1.05cqw); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: .35cqw .9cqw; border-radius: 99px; background: rgba(255,255,255,.14); color: #cdd9ff; }
.xp-k.t { background: #e6f6f8; color: #0b6b78; } .xp-k.p { background: #f6e9f3; color: #8a1f6e; }
.xp-s .xp-h, .xp-brand, .xp-end { opacity: 0; transform: translateY(1.2cqw); }
.xp-s.on .xp-h, .xp-s.on .xp-brand, .xp-s.on .xp-end { animation: xpUp .7s cubic-bezier(.2,.7,.2,1) .1s forwards; }
@keyframes xpUp { to { opacity: 1; transform: none; } }
@keyframes xpIn { from { opacity: 0; transform: translateY(1cqw) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes xpPop { 0% { opacity: 0; transform: scale(.6); } 70% { opacity: 1; transform: scale(1.06); } 100% { opacity: 1; transform: none; } }

/* 1: the desk */
.xp-desk { position: absolute; inset: 14cqw 5cqw 4cqw; }
.xp-you { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: .4cqw; text-align: center; }
.xp-av { width: 8cqw; height: 8cqw; border-radius: 50%; background: #fff; color: #1f3aa8; display: grid; place-items: center; font-weight: 800; font-size: max(13px, 1.8cqw); box-shadow: 0 0 0 1.2cqw rgba(255,255,255,.12); }
.xp-you b { font-size: max(12px, 1.6cqw); } .xp-you small { color: #cdd9ff; }
.xp-day { font-style: normal; display: inline-grid; height: 1.3em; overflow: hidden; vertical-align: bottom; }
.xp-day i { font-style: normal; font-weight: 800; color: #fff; grid-area: 1 / 1; opacity: 0; }
.s1.on .xp-day i { animation: xpTick 6s steps(1) forwards; }
.s1.on .xp-day i:nth-child(1) { animation-name: xpT1; } .s1.on .xp-day i:nth-child(2) { animation-name: xpT2; }
.s1.on .xp-day i:nth-child(3) { animation-name: xpT3; } .s1.on .xp-day i:nth-child(4) { animation-name: xpT4; }
@keyframes xpT1 { 0%, 24% { opacity: 1; } 25%, 100% { opacity: 0; } }
@keyframes xpT2 { 0%, 24% { opacity: 0; } 25%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes xpT3 { 0%, 49% { opacity: 0; } 50%, 74% { opacity: 1; } 75%, 100% { opacity: 0; } }
@keyframes xpT4 { 0%, 74% { opacity: 0; } 75%, 100% { opacity: 1; color: #fbbf24; } }
.xp-file { position: absolute; background: #fff; color: var(--ink); border-radius: .8cqw; padding: .7cqw 1.1cqw; font-weight: 600; font-size: max(10px, 1.2cqw);
  box-shadow: 0 1cqw 2cqw -1cqw rgba(0,0,0,.5); white-space: nowrap; opacity: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.xp-file::before { content: ""; display: inline-block; width: .9cqw; height: 1.1cqw; margin-right: .6cqw; border-radius: .15cqw; background: #cfd5e3; vertical-align: -.1cqw; }
.xp-file.mail { background: #fff7e6; color: #8a5a00; font-family: inherit; } .xp-file.mail::before { background: #f59e0b; }
.f1 { left: 2%; top: 4%; } .f2 { left: 6%; top: 46%; } .f3 { left: 0%; top: 84%; } .f4 { left: 31%; top: 0%; }
.f5 { right: 30%; top: 90%; } .f6 { right: 2%; top: 6%; } .f7 { right: 0%; top: 48%; } .f8 { right: 8%; top: 82%; }
.s1.on .xp-file { animation: xpDrop .6s cubic-bezier(.2,.8,.3,1.2) forwards, xpBob 3.2s ease-in-out infinite alternate; }
.s1.on .f1 { animation-delay: .5s, 1.1s; } .s1.on .f2 { animation-delay: .9s, 1.5s; } .s1.on .f3 { animation-delay: 1.3s, 1.9s; } .s1.on .f4 { animation-delay: 1.7s, 2.3s; }
.s1.on .f5 { animation-delay: 2.1s, 2.7s; } .s1.on .f6 { animation-delay: 2.5s, 3.1s; } .s1.on .f7 { animation-delay: 2.9s, 3.5s; } .s1.on .f8 { animation-delay: 3.3s, 3.9s; }
@keyframes xpDrop { from { opacity: 0; transform: translateY(-3cqw) rotate(-4deg); } to { opacity: 1; transform: rotate(var(--r, 0deg)); } }
@keyframes xpBob { from { transform: translateY(0) rotate(var(--r, 0deg)); } to { transform: translateY(-.8cqw) rotate(calc(var(--r, 0deg) * -1)); } }
.f1, .f5, .f8 { --r: -3deg; } .f2, .f6 { --r: 2deg; } .f3, .f7 { --r: 3deg; } .f4 { --r: -2deg; }

/* 2: reconciliation grid */
.xp-grid { position: relative; background: #fff; color: var(--ink); border-radius: 1.2cqw; overflow: hidden; max-width: 78cqw; box-shadow: 0 2cqw 4cqw -2cqw rgba(0,0,0,.5); }
.xp-row { display: grid; grid-template-columns: 1.3fr 1.2fr 1fr 1fr 1fr; gap: 1cqw; padding: .85cqw 1.6cqw; border-top: 1px solid #e4e7ef; font-size: max(10px, 1.25cqw); opacity: 0; }
.xp-row span:nth-child(n+3) { text-align: right; font-variant-numeric: tabular-nums; } .xp-row span:first-child { font-family: ui-monospace, Menlo, monospace; }
.xp-row.hd { background: #f4f6fb; font-weight: 700; color: #6b7489; text-transform: uppercase; letter-spacing: .06em; font-size: max(9px, .95cqw); border-top: 0; }
.s2.on .xp-row { animation: xpIn .4s ease forwards; }
.s2.on .xp-row:nth-child(1) { animation-delay: .3s; } .s2.on .xp-row:nth-child(2) { animation-delay: .5s; } .s2.on .xp-row:nth-child(3) { animation-delay: .7s; }
.s2.on .xp-row:nth-child(4) { animation-delay: .9s; } .s2.on .xp-row:nth-child(5) { animation-delay: 1.1s; } .s2.on .xp-row:nth-child(6) { animation-delay: 1.3s; } .s2.on .xp-row:nth-child(7) { animation-delay: 1.5s; }
.s2.on .xp-row.bad { animation: xpIn .4s ease forwards, xpRed .5s ease forwards; }
.s2.on .xp-row.bad:nth-child(3) { animation-delay: .7s, 2.6s; } .s2.on .xp-row.bad:nth-child(5) { animation-delay: 1.1s, 3.3s; } .s2.on .xp-row.bad:nth-child(7) { animation-delay: 1.5s, 4s; }
@keyframes xpRed { to { background: #fdecea; color: #b42318; } }
.xp-lens { position: absolute; width: 7cqw; height: 7cqw; border-radius: 50%; border: .5cqw solid #3355e0; background: rgba(51,85,224,.08); right: 6%; top: 20%; opacity: 0; }
.xp-lens::after { content: ""; position: absolute; width: .6cqw; height: 3cqw; background: #3355e0; border-radius: .3cqw; right: -1.6cqw; bottom: -2.6cqw; transform: rotate(-45deg); }
.s2.on .xp-lens { animation: xpLens 4.2s ease-in-out 1.8s forwards; }
@keyframes xpLens { 0% { opacity: 0; top: 15%; right: 40%; } 10% { opacity: 1; } 33% { top: 32%; right: 4%; } 55% { top: 58%; right: 30%; } 80% { top: 82%; right: 6%; } 100% { opacity: 1; top: 82%; right: 6%; } }

/* 3: three bases */
.xp-bases { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 5cqw; }
.xp-base { display: grid; gap: 1cqw; align-content: start; opacity: 0; }
.xp-base b { font-size: max(13px, 1.9cqw); }
.s3.on .xp-base { animation: xpIn .6s ease forwards; } .s3.on .xp-base:nth-child(2) { animation-delay: .5s; } .s3.on .xp-base:nth-child(3) { animation-delay: 1s; }
.s3.on .xp-base:nth-child(1) { animation-delay: .2s; }
.xp-sheet { background: #fff; color: var(--ink); border-radius: .8cqw; padding: 1.4cqw 1.2cqw 1.4cqw 3.6cqw; position: relative; font-family: ui-monospace, Menlo, monospace; font-size: max(9px, 1.1cqw); box-shadow: 0 1cqw 2cqw -1cqw rgba(0,0,0,.5); }
.xp-sheet::before { content: "X"; position: absolute; left: 1cqw; top: 50%; transform: translateY(-50%); width: 1.8cqw; height: 1.8cqw; border-radius: .3cqw; background: #107c41; color: #fff; font: 700 max(9px, 1.1cqw)/1.8cqw Inter, sans-serif; text-align: center; }
.xp-sheet + .xp-sheet { transform: rotate(-1.5deg) translateX(.8cqw); }
.xp-neq { position: absolute; top: 35%; left: calc(33.3% - 1.6cqw); font-size: max(20px, 4.4cqw); font-weight: 800; color: #fbbf24; opacity: 0; }
.xp-neq.n2 { left: calc(66.6% - .6cqw); }
.s3.on .xp-neq { animation: xpPop .5s ease 2.4s forwards, xpPulse 1.2s ease-in-out 3s infinite alternate; } .s3.on .xp-neq.n2 { animation-delay: 2.9s, 3.5s; }
@keyframes xpPulse { to { transform: scale(1.15); } }

/* 4: audit questions */
.xp-qs { position: relative; height: 26cqw; }
.xp-q { position: absolute; background: #fff; color: var(--ink); padding: 1.4cqw 2cqw; border-radius: 1.6cqw 1.6cqw 1.6cqw .3cqw; font-weight: 600; font-size: max(11px, 1.6cqw); box-shadow: 0 1.5cqw 3cqw -1.5cqw rgba(0,0,0,.55); opacity: 0; max-width: 46cqw; }
.q1 { left: 0; top: 0; } .q2 { right: 2cqw; top: 6cqw; border-radius: 1.6cqw 1.6cqw .3cqw 1.6cqw; } .q3 { left: 8cqw; top: 14cqw; } .q4 { right: 10cqw; top: 21cqw; border-radius: 1.6cqw 1.6cqw .3cqw 1.6cqw; background: #fff7e6; color: #8a5a00; }
.s4.on .xp-q { animation: xpPop .55s ease forwards; } .s4.on .q1 { animation-delay: .5s; } .s4.on .q2 { animation-delay: 1.4s; } .s4.on .q3 { animation-delay: 2.3s; } .s4.on .q4 { animation-delay: 3.2s; }

/* 5: brand */
.xp-brand { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; gap: 1.4cqw; }
.xp-logo { width: 9cqw; height: 9cqw; display: block; } .xp-logo svg { width: 100%; height: 100%; }
.s5.on .xp-logo { animation: xpPop .7s ease .2s both; }
.xp-brand h3 { color: #fff; font-size: max(24px, 5.4cqw); letter-spacing: -.04em; margin: 0; }
.xp-brand p { color: #cdd9ff; font-size: max(12px, 1.9cqw); margin: 0; max-width: 60cqw; }
.xp-engines { display: flex; gap: 1.6cqw; margin-top: 1cqw; }
.xp-engines span { padding: 1cqw 2cqw; border-radius: 99px; font-weight: 800; letter-spacing: .08em; font-size: max(11px, 1.5cqw); opacity: 0; }
.xp-engines small { font-weight: 500; letter-spacing: 0; margin-left: .5cqw; }
.xp-engines .t { background: #e6f6f8; color: #0b6b78; } .xp-engines .p { background: #f6e9f3; color: #8a1f6e; }
.s5.on .xp-engines span { animation: xpIn .5s ease 1.3s forwards; } .s5.on .xp-engines .p { animation-delay: 1.7s; }

/* 6: TRACE flow */
.xp-flow { display: grid; grid-template-columns: 1fr 1.2fr 1.2fr; gap: 3cqw; align-items: center; }
.xp-in { display: grid; gap: 1cqw; }
.xp-chip { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); border-radius: .8cqw; padding: .9cqw 1.2cqw; font-weight: 600; opacity: 0; }
.s6.on .xp-chip { animation: xpIn .4s ease forwards, xpSlide .9s ease-in forwards; }
.s6.on .c1 { animation-delay: .3s, 1.2s; } .s6.on .c2 { animation-delay: .45s, 1.35s; } .s6.on .c3 { animation-delay: .6s, 1.5s; } .s6.on .c4 { animation-delay: .75s, 1.65s; }
@keyframes xpSlide { to { opacity: .25; transform: translateX(6cqw) scale(.9); } }
.xp-engine { background: #fff; color: var(--ink); border-radius: 1.4cqw; padding: 2cqw; box-shadow: 0 0 0 .6cqw rgba(230,246,248,.25), 0 2cqw 4cqw -2cqw rgba(0,0,0,.5); }
.xp-engine b { color: #0b6b78; letter-spacing: .1em; font-size: max(12px, 1.6cqw); }
.xp-engine ul { list-style: none; padding: 0; margin: 1.2cqw 0 0; display: grid; gap: .9cqw; }
.xp-engine li { padding-left: 2.6cqw; position: relative; color: #4b5468; }
.xp-engine li::before { content: ""; position: absolute; left: 0; top: 50%; width: 1.7cqw; height: 1.7cqw; margin-top: -.85cqw; border-radius: 50%; border: 2px solid #cfd5e3; box-sizing: border-box; }
.s6.on .xp-engine li::before { animation: xpTickOn .35s ease forwards; } .s6.on .k1::before { animation-delay: 1.6s; } .s6.on .k2::before { animation-delay: 2.2s; } .s6.on .k3::before { animation-delay: 2.8s; }
@keyframes xpTickOn { to { border-color: #0b6e4d; background: #0b6e4d url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center/70% no-repeat; } }
.xp-out { display: grid; gap: 1cqw; opacity: 0; }
.s6.on .xp-out { animation: xpIn .5s ease 1.6s forwards; }
.xp-big { font-size: max(12px, 1.5cqw); color: #cdd9ff; } .xp-big b, .xp-pct b { display: block; color: #fff; font-size: max(22px, 4.2cqw); letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.xp-pct { color: #cdd9ff; }
.xp-meter { height: 1cqw; border-radius: 99px; background: rgba(255,255,255,.16); overflow: hidden; }
.xp-meter i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #34d399, #0b6e4d); border-radius: inherit; }
.s6.on .xp-meter i { animation: xpFill 1.4s cubic-bezier(.3,.7,.2,1) 2.2s forwards; }
@keyframes xpFill { to { width: 99.8%; } }
.xp-note { font-size: max(10px, 1.1cqw); color: #fde68a; }

/* 7: PRISM */
.xp-prism { display: grid; grid-template-columns: 1.1fr .5fr 1.2fr; align-items: center; height: 30cqw; }
.xp-proj { background: #fff; color: var(--ink); border-radius: 1.4cqw; padding: 1.8cqw; box-shadow: 0 2cqw 4cqw -2cqw rgba(0,0,0,.5); }
.xp-proj b { color: #8a1f6e; font-size: max(12px, 1.4cqw); }
.xp-bars { display: flex; align-items: flex-end; gap: .6cqw; height: 13cqw; margin-top: 1.2cqw; border-bottom: 2px solid #e4e7ef; }
.xp-bars i { flex: 1; background: linear-gradient(#3355e0, #1f3aa8); border-radius: .4cqw .4cqw 0 0; height: 0; }
.s7.on .xp-bars i { animation: xpGrow .7s cubic-bezier(.2,.7,.2,1) forwards; }
.xp-bars i:nth-child(1) { --h: 55%; } .xp-bars i:nth-child(2) { --h: 70%; } .xp-bars i:nth-child(3) { --h: 92%; } .xp-bars i:nth-child(4) { --h: 66%; }
.xp-bars i:nth-child(5) { --h: 60%; } .xp-bars i:nth-child(6) { --h: 74%; } .xp-bars i:nth-child(7) { --h: 52%; } .xp-bars i:nth-child(8) { --h: 44%; }
.xp-bars i:nth-child(9) { --h: 38%; } .xp-bars i:nth-child(10) { --h: 31%; } .xp-bars i:nth-child(11) { --h: 25%; } .xp-bars i:nth-child(12) { --h: 19%; }
.s7.on .xp-bars i:nth-child(n) { animation-delay: calc(.3s + var(--d, 0s)); }
.xp-bars i:nth-child(2) { --d: .05s; } .xp-bars i:nth-child(3) { --d: .1s; } .xp-bars i:nth-child(4) { --d: .15s; } .xp-bars i:nth-child(5) { --d: .2s; } .xp-bars i:nth-child(6) { --d: .25s; }
.xp-bars i:nth-child(7) { --d: .3s; } .xp-bars i:nth-child(8) { --d: .35s; } .xp-bars i:nth-child(9) { --d: .4s; } .xp-bars i:nth-child(10) { --d: .45s; } .xp-bars i:nth-child(11) { --d: .5s; } .xp-bars i:nth-child(12) { --d: .55s; }
@keyframes xpGrow { to { height: var(--h); } }
.xp-fan { width: 100%; height: 22cqw; overflow: visible; }
.xp-fan path { fill: none; stroke: #cdd9ff; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-dasharray: 200; stroke-dashoffset: 200; }
.s7.on .xp-fan path { animation: xpDraw .8s ease 1.1s forwards; } .s7.on .xp-fan path:nth-child(2) { animation-delay: 1.25s; } .s7.on .xp-fan path:nth-child(3) { animation-delay: 1.4s; }
@keyframes xpDraw { to { stroke-dashoffset: 0; } }
.xp-res { display: grid; gap: 1.6cqw; }
.xp-res span { background: #fff; color: var(--ink); border-radius: 1.2cqw; padding: 1.2cqw 1.8cqw; opacity: 0; box-shadow: 0 1.5cqw 3cqw -1.5cqw rgba(0,0,0,.5); }
.xp-res small { display: block; color: #6b7489; font-size: max(10px, 1.05cqw); } .xp-res b { font-size: max(16px, 2.6cqw); letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: #1f3aa8; }
.s7.on .xp-res span { animation: xpIn .5s ease forwards; } .s7.on .r1 { animation-delay: 1.5s; } .s7.on .r2 { animation-delay: 1.7s; } .s7.on .r3 { animation-delay: 1.9s; }

/* 8: sign-off */
.xp-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 4cqw; align-items: center; }
.xp-people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4cqw; }
.xp-people > span { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); border-radius: 1.2cqw; padding: 1.4cqw; display: grid; gap: .3cqw; }
.xp-people i { font-style: normal; width: 3cqw; height: 3cqw; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.18); font-weight: 800; }
.xp-people small { color: #cdd9ff; }
.s8.on .xp-people > span:not(.xp-lock) { animation: xpSigned .4s ease forwards; } .s8.on .g1 { animation-delay: .8s; } .s8.on .g2 { animation-delay: 1.6s; } .s8.on .g3 { animation-delay: 2.4s; }
@keyframes xpSigned { to { background: #fff; color: var(--ink); border-color: #fff; } }
.s8.on .xp-people > span i { animation: xpSignI .4s ease forwards; } .s8.on .g1 i { animation-delay: .8s; } .s8.on .g2 i { animation-delay: 1.6s; } .s8.on .g3 i { animation-delay: 2.4s; }
@keyframes xpSignI { to { background: #0b6e4d; color: #fff; } }
.s8.on .xp-people > span small { animation: xpSignS .4s ease forwards; } .s8.on .g1 small { animation-delay: .8s; } .s8.on .g2 small { animation-delay: 1.6s; } .s8.on .g3 small { animation-delay: 2.4s; }
@keyframes xpSignS { to { color: #0b6e4d; } }
.xp-lock { grid-column: 1 / -1; text-align: center; opacity: 0; background: #0b6e4d !important; border-color: #0b6e4d !important; }
.xp-lock b { font-size: max(13px, 1.8cqw); } .xp-lock small { color: #d1fae5 !important; }
.s8.on .xp-lock { animation: xpPop .5s ease 3.2s forwards; }
.xp-xl { background: #fff; color: var(--ink); border-radius: 1.2cqw; overflow: hidden; box-shadow: 0 2cqw 4cqw -2cqw rgba(0,0,0,.5); opacity: 0; }
.s8.on .xp-xl { animation: xpIn .5s ease 3.8s forwards; }
.xp-xlh { background: #107c41; color: #fff; font-weight: 700; padding: 1cqw 1.6cqw; }
.xp-xlg { display: grid; grid-template-columns: 1.2fr 1.3fr 1.3fr .6fr; font-size: max(9px, 1.1cqw); font-variant-numeric: tabular-nums; }
.xp-xlg span { padding: .8cqw 1.2cqw; border-top: 1px solid #e4e7ef; border-right: 1px solid #e4e7ef; }
.xp-xlg span:nth-child(-n+4) { background: #f4f6fb; font-weight: 700; color: #6b7489; border-top: 0; }
.xp-xlg span:nth-child(4n+2), .xp-xlg span:nth-child(4n+3) { text-align: right; }
.xp-xlg .ok { color: #0b6e4d; font-weight: 800; text-align: center; opacity: 0; }
.s8.on .xp-xlg .ok { animation: xpPop .35s ease forwards; } .s8.on .xp-xlg .ok:nth-of-type(8) { animation-delay: 4.5s; }
.s8.on .xp-xlg span.ok { animation-delay: 4.5s; }

/* 9: end */
.xp-end { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; gap: 1.6cqw; padding: 0 6cqw; }
.xp-end h3 { color: #fff; font-size: max(24px, 5cqw); letter-spacing: -.04em; line-height: 1.05; margin: 0; }
.xp-end ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 1.2cqw; flex-wrap: wrap; justify-content: center; }
.xp-end li { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); border-radius: 99px; padding: .9cqw 1.8cqw; font-weight: 600; opacity: 0; }
.s9.on .xp-end li { animation: xpIn .45s ease forwards; } .s9.on .xp-end li:nth-child(1) { animation-delay: .9s; } .s9.on .xp-end li:nth-child(2) { animation-delay: 1.2s; } .s9.on .xp-end li:nth-child(3) { animation-delay: 1.5s; }
.xp-end p { color: #cdd9ff; margin: 0; font-size: max(12px, 1.6cqw); }

/* controls */
.xp-ctl { display: flex; align-items: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.xp-ctl button { border: 1px solid var(--line); background: #fff; border-radius: 999px; width: 38px; height: 38px; display: grid; place-items: center; cursor: pointer; color: var(--navy); }
.xp-ctl button:hover { border-color: var(--blue); }
.xp-ctl button:focus-visible, .xp-dots button:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.xp-ctl svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.xp-play .i-play { fill: currentColor; stroke: none; display: none; } .xp.paused .xp-play .i-play { display: block; } .xp.paused .xp-play .i-pause { display: none; }
.xp-dots { display: flex; gap: 6px; }
.xp-dots button { width: 10px; height: 10px; padding: 0; border-radius: 99px; border: 0; background: var(--rule); cursor: pointer; transition: width .3s; }
.xp-dots button[aria-current="step"] { width: 26px; background: var(--blue); }
.xp-cap { margin: 0; flex: 1 1 320px; color: var(--slate); font-size: .95rem; min-height: 2.8em; }
.xp-progress { height: 3px; background: var(--line); border-radius: 99px; overflow: hidden; margin-top: 6px; }
.xp-progress i { display: block; height: 100%; width: 0; background: var(--blue); }
.xp-tr { margin-top: 10px; } .xp-tr summary { cursor: pointer; color: var(--blue); font-weight: 600; font-size: .92rem; }
.xp-tr ol { color: var(--slate); margin: 10px 0 0; padding-left: 20px; } .xp-tr li { margin: 6px 0; }

/* reduced motion: every scene shows its finished state, stepped by hand */
.xp.reduced .xp-s *, .xp.reduced .xp-s { animation: none !important; transition: none !important; }
.xp.reduced .xp-s.on * { opacity: 1 !important; }
.xp.reduced .xp-meter i { width: 99.8%; } .xp.reduced .xp-bars i { height: var(--h); } .xp.reduced .xp-fan path { stroke-dashoffset: 0; }
.xp.reduced .xp-s .xp-h, .xp.reduced .xp-brand, .xp.reduced .xp-end { transform: none; }
.xp.reduced .xp-day i { opacity: 0 !important; } .xp.reduced .xp-day i:last-child { opacity: 1 !important; }
.xp.reduced .xp-row.bad { background: #fdecea; color: #b42318; } .xp.reduced .xp-lens { display: none; }
.xp.reduced .xp-people > span:not(.xp-lock) { background: #fff; color: var(--ink); } .xp.reduced .xp-people i { background: #0b6e4d; color: #fff; }

/* narrow screens: taller stage so the words stay readable */
@media (max-width: 760px) {
  .xp-stage { aspect-ratio: 4 / 5; }
  .xp-s { padding: 6cqw; font-size: max(11px, 3.1cqw); }
  .xp-h h3 { font-size: max(18px, 6.4cqw); max-width: none; }
  .xp-desk { inset: 34cqw 4cqw 6cqw; } .xp-file { font-size: max(9px, 2.6cqw); } .xp-av { width: 18cqw; height: 18cqw; }
  .f4 { left: 2%; top: 22%; } .f5 { right: 2%; top: 70%; } .f3 { left: 0; top: 92%; } .f8 { right: 0; top: 94%; }
  .xp-grid { max-width: none; } .xp-row { font-size: max(9px, 2.4cqw); padding: 1.6cqw 2.4cqw; grid-template-columns: 1.3fr 1.1fr 1fr 1fr .8fr; } .xp-row.hd { font-size: max(8px, 2cqw); }
  .xp-bases { grid-template-columns: 1fr; gap: 3cqw; } .xp-neq { display: none; } .xp-sheet { font-size: max(9px, 2.6cqw); } .xp-base b { font-size: max(13px, 4cqw); }
  .xp-qs { height: 90cqw; } .xp-q { max-width: 80cqw; font-size: max(11px, 3.6cqw); } .q1 { top: 0; } .q2 { top: 20cqw; } .q3 { left: 2cqw; top: 42cqw; } .q4 { right: 2cqw; top: 64cqw; }
  .xp-flow, .xp-sign { grid-template-columns: 1fr; gap: 3cqw; } .xp-in { grid-template-columns: 1fr 1fr; } .s6.on .xp-chip { animation: xpIn .4s ease forwards; }
  .xp-big b, .xp-pct b { font-size: max(22px, 8cqw); }
  .xp-prism { grid-template-columns: 1fr; height: auto; gap: 3cqw; } .xp-fan { display: none; } .xp-bars { height: 22cqw; } .xp-res b { font-size: max(16px, 5cqw); } .xp-res small { font-size: max(10px, 2.4cqw); }
  .xp-xlg { font-size: max(9px, 2.4cqw); }
  .xp-brand h3, .xp-end h3 { font-size: max(26px, 9cqw); } .xp-brand p, .xp-end p { font-size: max(12px, 3.6cqw); } .xp-logo { width: 18cqw; height: 18cqw; }
  .xp-engines span { font-size: max(11px, 3cqw); }
}
.xp-s { display: flex; flex-direction: column; }
.xp-s > .xp-grid, .xp-s > .xp-bases, .xp-s > .xp-qs, .xp-s > .xp-flow, .xp-s > .xp-prism, .xp-s > .xp-sign { margin-top: auto; margin-bottom: auto; width: 100%; }
.xp-s > .xp-grid { width: auto; align-self: center; min-width: 70cqw; }
.xp-bases .xp-sheet { padding-top: 1.8cqw; padding-bottom: 1.8cqw; }
@media (max-width: 760px) { .xp-sheet + .xp-sheet { transform: none; } .xp-s > .xp-grid { min-width: 0; width: 100%; } }

/* home hero led by the explainer */
.hero.hero-xp { padding: 34px 0 34px; }
.hero-xp .xp-tr { margin-bottom: 0; }
.hx-copy { text-align: center; max-width: 900px; margin: 0 auto 26px; }
.hx-copy .eyebrow { margin-bottom: 8px; }
.hx-copy h1 { margin-bottom: 10px; font-size: clamp(2.1rem, 4.2vw, 3.3rem); }
.hx-copy p.lead { font-size: 1.08rem; }
.hero-xp .xp { max-width: clamp(720px, calc((100vh - 380px) * 16 / 9), 1120px); }
.hx-copy p.lead { margin: 0 auto; max-width: 720px; }
.hx-copy .actions { justify-content: center; margin: 18px 0 0; }
.hero-xp .xp-stage { box-shadow: 0 0 0 1px rgba(255,255,255,.22), 0 40px 80px -30px rgba(0,0,0,.6); }
.hero-xp .xp-ctl button { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.3); color: #fff; }
.hero-xp .xp-ctl button:hover { border-color: #fff; }
.hero-xp .xp-dots button { background: rgba(255,255,255,.3); } .hero-xp .xp-dots button[aria-current="step"] { background: #fff; }
.hero-xp .xp-cap { color: var(--lav2); }
.hero-xp .xp-progress { background: rgba(255,255,255,.18); } .hero-xp .xp-progress i { background: #fff; }
.hero-xp .xp-tr { background: transparent; border-color: rgba(255,255,255,.22); color: var(--lav2); }
.hero-xp .xp-tr summary { color: #fff; } .hero-xp .xp-tr ol, .hero-xp .xp-tr li { color: var(--lav2); }
.hero-xp .xp-ctl button:focus-visible, .hero-xp .xp-dots button:focus-visible { outline-color: #fff; }
@media (max-width: 760px) { .hero-xp .xp { max-width: none; } .hx-copy p.lead { font-size: 1rem; } .hero.hero-xp { padding: 28px 0 24px; } .hx-copy { text-align: left; } .hx-copy .actions { justify-content: flex-start; } }

.hx-after { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
@media (max-width: 760px) { .hx-after { justify-content: flex-start; } }

/* without JavaScript the first scene still plays, and the controls that need it are hidden */
.xp:not(.xp-js) .xp-ctl { display: none; }
@media (max-width: 760px) { .cols.nums { grid-template-columns: 1fr 1fr; gap: 14px; } .nums .card { padding: 18px; } .nums .num { font-size: 1.5rem; } }
.shots { margin-top: 28px; } .shots figcaption { margin-top: 8px; }

/* ---- product animations (anim.js): looping scenes, fictional data ---- */
.an { margin: 0; }
.an-stage { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; color: var(--ink); }
.an-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--pale); border-bottom: 1px solid var(--line); font-size: .8rem; font-weight: 650; color: var(--slate); }
.an-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--rule); }
.an-bar span { margin-left: 8px; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.an-pause { font: inherit; font-size: .74rem; font-weight: 650; border: 1px solid var(--rule); background: #fff; color: var(--slate); border-radius: 7px; padding: 3px 9px; cursor: pointer; }
.an:not(.an-js) .an-pause { display: none; }
.an-body { padding: 18px 20px 20px; min-height: 300px; font-size: .9rem; display: grid; gap: 12px; align-content: start; }
.an figcaption { font-size: .88rem; color: var(--muted); margin-top: 10px; }
.an-js [data-at] { opacity: 0; transform: translateY(8px); transition: opacity .45s ease, transform .45s ease; }
.an-js [data-at].in { opacity: 1; transform: none; }
.an:not(.an-js) [data-out] { display: none; }
.an-swap { display: grid; } .an-swap > * { grid-area: 1 / 1; }
.an-muted { color: var(--muted); font-size: .84rem; margin: 0; }
.an small { display: block; color: var(--muted); font-size: .78rem; font-weight: 500; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85em; }
.an-badge { display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: var(--pale); color: var(--slate); white-space: nowrap; justify-self: start; }
.an-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.an-badge.ok { background: var(--mint-soft); color: var(--mint); } .an-badge.warn { background: var(--amber-soft); color: var(--amber); }
.an-badge.bad { background: #fde8e8; color: #b42318; }
.an-js .pop.in { animation: anPop .5s cubic-bezier(.2,.8,.3,1.3); }
@keyframes anPop { 0% { transform: scale(.6); } 70% { transform: scale(1.12); } 100% { transform: none; } }
.an-file { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--paler); }
.an-file.small { padding: 8px 12px; } .an-file .an-badge { margin-left: auto; }
.an-doc { width: 26px; height: 32px; border-radius: 4px; background: linear-gradient(var(--lav2), var(--lav2)) 6px 9px / 14px 2px no-repeat, linear-gradient(var(--lav2), var(--lav2)) 6px 15px / 14px 2px no-repeat, linear-gradient(var(--lav2), var(--lav2)) 6px 21px / 9px 2px no-repeat, var(--blue); flex: none; }
.an-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.an-tick { display: flex; gap: 9px; align-items: center; }
.an-tick::before { content: "✓"; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--mint-soft); color: var(--mint); font-weight: 800; font-size: .72rem; flex: none; }
.an-meter { position: relative; height: 10px; border-radius: 99px; background: var(--line); overflow: visible; display: flex; align-items: center; }
.an-meter > b { position: absolute; right: 0; top: -22px; font-size: .8rem; }
.an-fill { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--blue), #5b7bff); width: 0; }
.an-js .an-fill[data-at] { opacity: 1; transform: none; transition: width 1.5s cubic-bezier(.3,.7,.2,1); }
.an-js .an-fill.in, .an:not(.an-js) .an-fill { width: var(--w); }
.an-fill.stop { background: linear-gradient(90deg, var(--blue), #d14b4b); }
.an-result { display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); }
.an-result.ok { background: var(--mint-soft); border-color: #bfe8d6; } .an-result.ok b { color: var(--mint); }
.an-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.an-kpi { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; } .an-kpi b { font-size: 1.35rem; display: block; }
.an-table { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; font-size: .82rem; }
.an-tr { display: grid; grid-template-columns: 1fr 1.25fr 1fr auto; gap: 10px; align-items: center; padding: 7px 12px; border-top: 1px solid var(--line); }
.an-tr.hd { border-top: 0; background: var(--pale); font-weight: 700; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; }
.an-row-end { display: flex; gap: 10px; align-items: center; justify-content: flex-end; min-height: 34px; }
.an-btn { border: 1px solid var(--rule); border-radius: 8px; padding: 6px 12px; font-weight: 650; font-size: .8rem; background: #fff; }
.an-js .an-btn.in { animation: anPulse 1s ease 2; }
@keyframes anPulse { 50% { box-shadow: 0 0 0 6px rgba(51, 85, 224, .18); border-color: var(--blue); } }
.an-toast { background: var(--ink); color: #fff; border-radius: 10px; padding: 8px 12px; font-size: .82rem; font-weight: 600; justify-self: start; }
.an-toast.bad { background: #b42318; }
.an-rule { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; }
.an-lanes { min-height: 110px; } .an-lane { display: grid; gap: 10px; align-content: start; }
.an-lab { display: flex; justify-content: space-between; font-size: .84rem; } .an-lab span { color: var(--muted); }
.an-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.an-step { border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: grid; gap: 6px; align-content: start; font-size: .82rem; min-height: 112px; }
.an-step b { line-height: 1.25; }
.an-dots { display: flex; gap: 5px; margin-top: auto; }
.an-dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: .66rem; font-weight: 800; background: var(--pale); color: transparent; border: 1px solid var(--line); }
.an-js .an-dot[data-at] { opacity: 1; transform: none; transition: background .35s, color .35s, transform .35s; }
.an-dot.in, .an:not(.an-js) .an-dot[data-at] { background: var(--blue); color: #fff; border-color: var(--blue); }
.an-js .an-dot[data-at].in { animation: anPop .45s cubic-bezier(.2,.8,.3,1.3); }
.an-notes { min-height: 54px; align-items: start; }
.an-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: .78rem; color: var(--muted); }
.an-legend span { display: inline-flex; align-items: center; gap: 6px; } .an-legend .an-dot { width: 22px; height: 22px; font-size: .58rem; }
.an-diff { display: grid; border: 1px solid var(--line); border-radius: 10px; padding: 8px 0; background: var(--paler); }
.an-diff code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .8rem; padding: 1px 14px; white-space: pre; }
.an-diff code.del { background: #fde8e8; color: #9b1c1c; } .an-diff code.add { background: var(--mint-soft); color: var(--mint); }
.an-sentence p { margin: 0; padding: 10px 14px; border-radius: 10px; background: var(--pale); } .an-sentence p.new { background: var(--soft); }
.an-sentence mark { background: #fff1b8; padding: 0 2px; border-radius: 3px; }
.an-doc-sheet { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; display: grid; gap: 9px; background: linear-gradient(#fff, #fff) padding-box; }
.an-doc-h { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: .86rem; }
.an-doc-h .hl { color: var(--blue-ink); font-weight: 700; }
.an-sec { display: grid; gap: 4px; font-size: .82rem; }
.an-sec i { display: block; height: 6px; border-radius: 3px; background: var(--line); } .an-sec i.short { width: 62%; }
.an-newrow { font-size: .78rem; background: var(--amber-soft); color: var(--amber); border-radius: 6px; padding: 3px 8px; justify-self: start; font-weight: 650; }
.an-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.an-grid .an.wide { grid-column: 1 / -1; }
@media (max-width: 860px) { .an-grid { grid-template-columns: 1fr; } .an-steps { grid-template-columns: repeat(2, 1fr); } .an-kpis { grid-template-columns: repeat(2, 1fr); } .an-tr { grid-template-columns: 1fr auto; } .an-tr > :nth-child(2), .an-tr > :nth-child(3) { display: none; } }
@media (prefers-reduced-motion: reduce) { .an-js [data-at], .an-js .an-fill[data-at], .an-js .an-dot[data-at] { transition: none !important; animation: none !important; } }
